rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
public synchronized void includeModule(IRubyObject arg) { testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaClass().getName() + " (expected Module...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f7fd42a4ed234e7ec538d58da2024183eee3d0f4/RubyModule.java/clean/src/org/jruby/RubyModule.java
Map moduleMethods = module.getMethods();
public synchronized void includeModule(IRubyObject arg) { testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaClass().getName() + " (expected Module...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f7fd42a4ed234e7ec538d58da2024183eee3d0f4/RubyModule.java/clean/src/org/jruby/RubyModule.java
for (Iterator iter = moduleMethods.keySet().iterator(); iter.hasNext();) { String methodName = (String) iter.next(); getRuntime().getCacheMap().remove(methodName, searchMethod(methodName));
infectBy(module); RubyModule p, c; boolean changed = false; boolean skip = false; c = this; while (module != null) { if (getNonIncludedClass() == module.getNonIncludedClass()) { throw getRuntime().newArgumentError("cyclic include detected"); } boolean superclassSeen = false; for (p = getSuperClass(); p != null; p = ...
public synchronized void includeModule(IRubyObject arg) { testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaClass().getName() + " (expected Module...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f7fd42a4ed234e7ec538d58da2024183eee3d0f4/RubyModule.java/clean/src/org/jruby/RubyModule.java
setSuperClass(module.newIncludeClass(getSuperClass())); module.callMethod("included", this);
if (changed) { for (Iterator iter = ((RubyModule) arg).getMethods().keySet().iterator(); iter.hasNext();) { String methodName = (String) iter.next(); getRuntime().getCacheMap().remove(methodName, searchMethod(methodName)); } }
public synchronized void includeModule(IRubyObject arg) { testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaClass().getName() + " (expected Module...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f7fd42a4ed234e7ec538d58da2024183eee3d0f4/RubyModule.java/clean/src/org/jruby/RubyModule.java
return module.getMethods() == getMethods();
return this == module;
public boolean isSame(RubyModule module) { // FIXME: lame equality check; need something better return module.getMethods() == getMethods(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f7fd42a4ed234e7ec538d58da2024183eee3d0f4/RubyModule.java/clean/src/org/jruby/RubyModule.java
public void handleChange(IObservable source) {
public void handleChange(ChangeEvent event) {
public void handleChange(IObservable source) { count++; this.source = source; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/UnmodifiableObservableListTest.java/clean/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/internal/observable/UnmodifiableObservableListTest.java
this.source = source;
this.source = event.getObservable();
public void handleChange(IObservable source) { count++; this.source = source; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/UnmodifiableObservableListTest.java/clean/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/internal/observable/UnmodifiableObservableListTest.java
public void handleListChange(IObservableList source, ListDiff diff) {
public void handleListChange(ListChangeEvent event) {
public void handleListChange(IObservableList source, ListDiff diff) { count++; this.source = source; this.diff = diff; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/UnmodifiableObservableListTest.java/clean/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/internal/observable/UnmodifiableObservableListTest.java
this.source = source; this.diff = diff;
this.source = event.getObservableList(); this.diff = event.diff;
public void handleListChange(IObservableList source, ListDiff diff) { count++; this.source = source; this.diff = diff; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/UnmodifiableObservableListTest.java/clean/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/internal/observable/UnmodifiableObservableListTest.java
public void handleStale(IObservable source) {
public void handleStale(StaleEvent event) {
public void handleStale(IObservable source) { count++; this.source = source; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/UnmodifiableObservableListTest.java/clean/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/internal/observable/UnmodifiableObservableListTest.java
this.source = source;
this.source = event.getObservable();
public void handleStale(IObservable source) { count++; this.source = source; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/UnmodifiableObservableListTest.java/clean/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/internal/observable/UnmodifiableObservableListTest.java
throw new RubyNameException(ruby, name + " is not struct member");
throw new NameError(ruby, name + " is not struct member");
public RubyObject get() { String name = ruby.getRubyFrame().getLastFunc(); RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); if (member.isNil()) { throw new RubyBugException("uninitialized struct"); } for (int i = 0; i < member.getLength(); i+...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyStruct.java/clean/org/jruby/RubyStruct.java
throw new RubyNameException(ruby, name + " is not struct member");
throw new NameError(ruby, name + " is not struct member");
private RubyObject getByName(String name) { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); if (member.isNil()) { throw new RubyBugException("uninitialized struct"); } for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).to...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyStruct.java/clean/org/jruby/RubyStruct.java
throw new RubyNameException(ruby, name + " is not struct member");
throw new NameError(ruby, name + " is not struct member");
public RubyObject set(RubyObject value) { String name = ruby.getRubyFrame().getLastFunc(); RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); if (member.isNil()) { throw new RubyBugException("uninitialized struct"); } modify(); for (int ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyStruct.java/clean/org/jruby/RubyStruct.java
throw new RubyNameException(ruby, name + " is not struct member");
throw new NameError(ruby, name + " is not struct member");
private RubyObject setByName(String name, RubyObject value) { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); if (member.isNil()) { throw new RubyBugException("uninitialized struct"); } modify(); for (int i = 0; i < member.getLength(); i++) ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyStruct.java/clean/org/jruby/RubyStruct.java
IRubyObject receiver = state.begin(iVisited.getReceiverNode());
IRubyObject receiver = EvaluationState.eval(runtime.getCurrentContext(), iVisited.getReceiverNode(), runtime.getCurrentContext().getFrameSelf());
public Instruction visitCallNode(CallNode iVisited) { IRubyObject receiver = state.begin(iVisited.getReceiverNode()); if (iVisited.getArgsNode() == null) { // attribute set. receiver.callMethod(iVisited.getName(), new IRubyObject[] {value}, CallType.NORMAL); } else { // element set ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e15491217631472c05c6928672f9c7064a978b3/AssignmentVisitor.java/buggy/src/org/jruby/evaluator/AssignmentVisitor.java
RubyArray args = (RubyArray)state.begin(iVisited.getArgsNode());
RubyArray args = (RubyArray)EvaluationState.eval(runtime.getCurrentContext(), iVisited.getArgsNode(), runtime.getCurrentContext().getFrameSelf());
public Instruction visitCallNode(CallNode iVisited) { IRubyObject receiver = state.begin(iVisited.getReceiverNode()); if (iVisited.getArgsNode() == null) { // attribute set. receiver.callMethod(iVisited.getName(), new IRubyObject[] {value}, CallType.NORMAL); } else { // element set ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e15491217631472c05c6928672f9c7064a978b3/AssignmentVisitor.java/buggy/src/org/jruby/evaluator/AssignmentVisitor.java
state.getThreadContext().getRubyClass().setClassVar(iVisited.getName(), value);
runtime.getCurrentContext().getRubyClass().setClassVar(iVisited.getName(), value);
public Instruction visitClassVarAsgnNode(ClassVarAsgnNode iVisited) { state.getThreadContext().getRubyClass().setClassVar(iVisited.getName(), value); return null; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e15491217631472c05c6928672f9c7064a978b3/AssignmentVisitor.java/buggy/src/org/jruby/evaluator/AssignmentVisitor.java
ThreadContext tc = state.getThreadContext(); if (state.runtime.getVerbose().isTrue()
ThreadContext tc = runtime.getCurrentContext(); if (runtime.getVerbose().isTrue()
public Instruction visitClassVarDeclNode(ClassVarDeclNode iVisited) { ThreadContext tc = state.getThreadContext(); if (state.runtime.getVerbose().isTrue() && tc.getRubyClass().isSingleton()) { state.runtime.getWarnings().warn(iVisited.getPosition(), "Declaring singleton class variable."); } ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e15491217631472c05c6928672f9c7064a978b3/AssignmentVisitor.java/buggy/src/org/jruby/evaluator/AssignmentVisitor.java
state.runtime.getWarnings().warn(iVisited.getPosition(),
runtime.getWarnings().warn(iVisited.getPosition(),
public Instruction visitClassVarDeclNode(ClassVarDeclNode iVisited) { ThreadContext tc = state.getThreadContext(); if (state.runtime.getVerbose().isTrue() && tc.getRubyClass().isSingleton()) { state.runtime.getWarnings().warn(iVisited.getPosition(), "Declaring singleton class variable."); } ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e15491217631472c05c6928672f9c7064a978b3/AssignmentVisitor.java/buggy/src/org/jruby/evaluator/AssignmentVisitor.java
state.getThreadContext().getRubyClass().defineConstant(iVisited.getName(), value);
runtime.getCurrentContext().getRubyClass().defineConstant(iVisited.getName(), value);
public Instruction visitConstDeclNode(ConstDeclNode iVisited) { if (iVisited.getPathNode() == null) { state.getThreadContext().getRubyClass().defineConstant(iVisited.getName(), value); } else { ((RubyModule) state.begin(iVisited.getPathNode())).defineConstant(iVisited.getName(), value); } return null; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e15491217631472c05c6928672f9c7064a978b3/AssignmentVisitor.java/buggy/src/org/jruby/evaluator/AssignmentVisitor.java
((RubyModule) state.begin(iVisited.getPathNode())).defineConstant(iVisited.getName(), value);
((RubyModule) EvaluationState.eval(runtime.getCurrentContext(), iVisited.getPathNode(), runtime.getCurrentContext().getFrameSelf())).defineConstant(iVisited.getName(), value);
public Instruction visitConstDeclNode(ConstDeclNode iVisited) { if (iVisited.getPathNode() == null) { state.getThreadContext().getRubyClass().defineConstant(iVisited.getName(), value); } else { ((RubyModule) state.begin(iVisited.getPathNode())).defineConstant(iVisited.getName(), value); } return null; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e15491217631472c05c6928672f9c7064a978b3/AssignmentVisitor.java/buggy/src/org/jruby/evaluator/AssignmentVisitor.java
state.getThreadContext().getCurrentDynamicVars().set(iVisited.getName(), value);
runtime.getCurrentContext().getCurrentDynamicVars().set(iVisited.getName(), value);
public Instruction visitDAsgnNode(DAsgnNode iVisited) { state.getThreadContext().getCurrentDynamicVars().set(iVisited.getName(), value); return null; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e15491217631472c05c6928672f9c7064a978b3/AssignmentVisitor.java/buggy/src/org/jruby/evaluator/AssignmentVisitor.java
state.runtime.getGlobalVariables().set(iVisited.getName(), value);
runtime.getGlobalVariables().set(iVisited.getName(), value);
public Instruction visitGlobalAsgnNode(GlobalAsgnNode iVisited) { state.runtime.getGlobalVariables().set(iVisited.getName(), value); return null; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e15491217631472c05c6928672f9c7064a978b3/AssignmentVisitor.java/buggy/src/org/jruby/evaluator/AssignmentVisitor.java
state.getSelf().setInstanceVariable(iVisited.getName(), value);
self.setInstanceVariable(iVisited.getName(), value);
public Instruction visitInstAsgnNode(InstAsgnNode iVisited) { state.getSelf().setInstanceVariable(iVisited.getName(), value); return null; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e15491217631472c05c6928672f9c7064a978b3/AssignmentVisitor.java/buggy/src/org/jruby/evaluator/AssignmentVisitor.java
state.runtime.getCurrentContext().getFrameScope().setValue(iVisited.getCount(), value);
runtime.getCurrentContext().getFrameScope().setValue(iVisited.getCount(), value);
public Instruction visitLocalAsgnNode(LocalAsgnNode iVisited) { state.runtime.getCurrentContext().getFrameScope().setValue(iVisited.getCount(), value); return null; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e15491217631472c05c6928672f9c7064a978b3/AssignmentVisitor.java/buggy/src/org/jruby/evaluator/AssignmentVisitor.java
value = RubyArray.newArray(state.runtime, value);
value = RubyArray.newArray(runtime, value);
public Instruction visitMultipleAsgnNode(MultipleAsgnNode iVisited) { if (!(value instanceof RubyArray)) { value = RubyArray.newArray(state.runtime, value); } state.setResult(state.getThreadContext() .mAssign(state.getSelf(), iVisited, (RubyArray) value, check)); return null; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e15491217631472c05c6928672f9c7064a978b3/AssignmentVisitor.java/buggy/src/org/jruby/evaluator/AssignmentVisitor.java
state.setResult(state.getThreadContext() .mAssign(state.getSelf(), iVisited, (RubyArray) value, check));
result = runtime.getCurrentContext() .mAssign(self, iVisited, (RubyArray) value, check);
public Instruction visitMultipleAsgnNode(MultipleAsgnNode iVisited) { if (!(value instanceof RubyArray)) { value = RubyArray.newArray(state.runtime, value); } state.setResult(state.getThreadContext() .mAssign(state.getSelf(), iVisited, (RubyArray) value, check)); return null; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e15491217631472c05c6928672f9c7064a978b3/AssignmentVisitor.java/buggy/src/org/jruby/evaluator/AssignmentVisitor.java
long[] idxs = ((RubyRange) args[0]).getBeginLength(getValue().length(), false, true);
long[] idxs = ((RubyRange) args[0]).getBeginLength(getValue().length(), true, true);
public RubyObject aset(RubyObject[] args) { int strLen = getValue().length(); if (argCount(args, 2, 3) == 3) { RubyString repl = stringValue(args[2]); int beg = RubyNumeric.fix2int(args[0]); int len = RubyNumeric.fix2int(args[1]); if (len < 0) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/5882d0febb3f8ecc0652256e027730f39165ff8d/RubyString.java/buggy/org/jruby/RubyString.java
try { return (RubyString) other.convertType(RubyString.class, "String", "to_str"); } catch (Exception ex) { throw new ArgumentError(other.getRuby(), "can't convert arg to String: " + ex.getMessage()); }
return (RubyString) other.convertType(RubyString.class, "String", "to_str");
public static RubyString stringValue(RubyObject other) { if (other instanceof RubyString) { return (RubyString) other; } else { try { return (RubyString) other.convertType(RubyString.class, "String", "to_str"); } catch (Exception ex) { thr...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/5882d0febb3f8ecc0652256e027730f39165ff8d/RubyString.java/buggy/org/jruby/RubyString.java
public boolean isRemoveable(){return true;}
public boolean isRemoveable(){return removeable;}
public boolean isRemoveable(){return true;}
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/70b3f8bad2b35c1e312d39cc905d223c842e06c6/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
if (((Member) iSet.next()).getUserId().equals(aId))
if (((Member) iSet.next()).getUserEid().equals(aId))
public void doGroup_update ( RunData data ) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); Set gMemberSet = (Set) state.getAttribute(STATE_GROUP_MEMBERS); Site site = getStateSite(state); String title...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/70b3f8bad2b35c1e312d39cc905d223c842e06c6/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
gMemberSet.add(site.getMember(aId));
try { User u = UserDirectoryService.getUser(aId); gMemberSet.add(site.getMember(u.getId())); } catch (UserNotDefinedException e) { try { User u2 = UserDirectoryService.getUserByEid(aId); gMemberSet.add(site.getMember(u2.getId())); } catch (UserNotDefinedException ee) { M_log.warn(this + ee.getMessage() + aId); } }
public void doGroup_update ( RunData data ) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); Set gMemberSet = (Set) state.getAttribute(STATE_GROUP_MEMBERS); Site site = getStateSite(state); String title...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/70b3f8bad2b35c1e312d39cc905d223c842e06c6/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
String eId = null;
String id = null;
public void doUpdate_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); Site s = getStateSite(state); String realmId = SiteService.siteReference(s.getId()); if (AuthzGroupService....
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/70b3f8bad2b35c1e312d39cc905d223c842e06c6/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
Object participant = (Object) participants.get(i); if (participant.getClass().equals(Participant.class)) { eId = ((Participant) participant).getUniqname(); } else if (participant.getClass().equals(CourseMember.class)) { eId = ((CourseMember) participant).getUniqname(); }
Participant participant = (Participant) participants.get(i); id = participant.getUniqname();
public void doUpdate_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); Site s = getStateSite(state); String realmId = SiteService.siteReference(s.getId()); if (AuthzGroupService....
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/70b3f8bad2b35c1e312d39cc905d223c842e06c6/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
if (eId != null)
if (id != null)
public void doUpdate_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); Site s = getStateSite(state); String realmId = SiteService.siteReference(s.getId()); if (AuthzGroupService....
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/70b3f8bad2b35c1e312d39cc905d223c842e06c6/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
String inputRoleField = "role" + eId;
String inputRoleField = "role" + id;
public void doUpdate_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); Site s = getStateSite(state); String realmId = SiteService.siteReference(s.getId()); if (AuthzGroupService....
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/70b3f8bad2b35c1e312d39cc905d223c842e06c6/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
String activeGrantField = "activeGrant" + eId;
String activeGrantField = "activeGrant" + id;
public void doUpdate_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); Site s = getStateSite(state); String realmId = SiteService.siteReference(s.getId()); if (AuthzGroupService....
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/70b3f8bad2b35c1e312d39cc905d223c842e06c6/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
boolean fromProvider = false; if (participant.getClass().equals(CourseMember.class))
boolean fromProvider = !participant.isRemoveable(); if(fromProvider && !roleId.equals(participant.getProviderRole()))
public void doUpdate_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); Site s = getStateSite(state); String realmId = SiteService.siteReference(s.getId()); if (AuthzGroupService....
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/70b3f8bad2b35c1e312d39cc905d223c842e06c6/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
if (roleId.equals(((CourseMember) participant).getProviderRole())) { fromProvider = true; }
fromProvider=false;
public void doUpdate_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); Site s = getStateSite(state); String realmId = SiteService.siteReference(s.getId()); if (AuthzGroupService....
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/70b3f8bad2b35c1e312d39cc905d223c842e06c6/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
try { User user = UserDirectoryService.getUserByEid(eId); realmEdit.addMember(user.getId(), roleId, activeGrant, fromProvider); } catch (UserNotDefinedException e) { M_log.warn(this + " IdUnusedException " + eId + ". "); }
realmEdit.addMember(id, roleId, activeGrant, fromProvider);
public void doUpdate_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); Site s = getStateSite(state); String realmId = SiteService.siteReference(s.getId()); if (AuthzGroupService....
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/70b3f8bad2b35c1e312d39cc905d223c842e06c6/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
String rEId = (String) removals.get(i);
String rId = (String) removals.get(i);
public void doUpdate_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); Site s = getStateSite(state); String realmId = SiteService.siteReference(s.getId()); if (AuthzGroupService....
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/70b3f8bad2b35c1e312d39cc905d223c842e06c6/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
User user = UserDirectoryService.getUserByEid(rEId);
User user = UserDirectoryService.getUser(rId);
public void doUpdate_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); Site s = getStateSite(state); String realmId = SiteService.siteReference(s.getId()); if (AuthzGroupService....
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/70b3f8bad2b35c1e312d39cc905d223c842e06c6/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
M_log.warn(this + " IdUnusedException " + rEId + ". ");
M_log.warn(this + " IdUnusedException " + rId + ". ");
public void doUpdate_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); Site s = getStateSite(state); String realmId = SiteService.siteReference(s.getId()); if (AuthzGroupService....
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/70b3f8bad2b35c1e312d39cc905d223c842e06c6/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
participants.add(member);
try { User user = UserDirectoryService.getUserByEid(memberUniqname); Participant participant = new Participant(); participant.name = user.getSortName(); participant.uniqname = user.getId(); participant.role = member.getRole(); participant.providerRole = member.getProviderRole(); participant.course = member.getCourse()...
private List getParticipantList(SessionState state) { List members = new Vector(); List participants = new Vector(); String realmId = SiteService.siteReference((String) state.getAttribute(STATE_SITE_INSTANCE_ID)); List providerCourseList = null; providerCourseList = getProviderCourseList(StringUtil.trimToNull(g...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/70b3f8bad2b35c1e312d39cc905d223c842e06c6/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
if (listChangeListeners == null) { boolean hadListeners = hasListeners(); listChangeListeners = listener; if (!hadListeners) { firstListenerAdded(); } return; } Collection listenerList; if (listChangeListeners instanceof Collection) { listenerList = (Collection) listChangeListeners; } else { IListChangeListener l = (I...
addListener(ListChangeEvent.TYPE, listener);
public synchronized void addListChangeListener(IListChangeListener listener) { if (listChangeListeners == null) { boolean hadListeners = hasListeners(); listChangeListeners = listener; if (!hadListeners) { firstListenerAdded(); } return; } Collection listenerList; if (listChangeListeners instanceof Co...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/ObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/list/ObservableList.java
listChangeListeners = null;
public synchronized void dispose() { listChangeListeners = null; super.dispose(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/ObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/list/ObservableList.java
if (listChangeListeners == null) { return; } if (listChangeListeners instanceof IListChangeListener) { ((IListChangeListener) listChangeListeners).handleListChange(this, diff); return; } Collection changeListenerCollection = (Collection) listChangeListeners; IListChangeListener[] listeners = (IListChangeListener[])...
fireEvent(new ListChangeEvent(this, diff));
protected void fireListChange(ListDiff diff) { // fire general change event first super.fireChange(); if (listChangeListeners == null) { return; } if (listChangeListeners instanceof IListChangeListener) { ((IListChangeListener) listChangeListeners).handleListChange(this, diff); return; } Collection ch...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/ObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/list/ObservableList.java
if (listChangeListeners == listener) { listChangeListeners = null; if (!hasListeners()) { lastListenerRemoved(); } return; } if (listChangeListeners instanceof Collection) { Collection listenerList = (Collection) listChangeListeners; listenerList.remove(listener); if (listenerList.isEmpty()) { listChangeListeners = nu...
removeListener(ListChangeEvent.TYPE, listener);
public synchronized void removeListChangeListener(IListChangeListener listener) { if (listChangeListeners == listener) { listChangeListeners = null; if (!hasListeners()) { lastListenerRemoved(); } return; } if (listChangeListeners instanceof Collection) { Collection listenerList = (Collection) listChan...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/ObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/list/ObservableList.java
public static void addRosterEntry(
public static JSONObject addRosterEntry(
public static void addRosterEntry( HttpSession ses, String companyId, String emailAddress) throws PortalException, SystemException, XMPPException { Roster roster = getRoster(ses); User user = UserLocalServiceUtil.getUserByEmailAddress( companyId, emailAddress); String smackId = getXmppId(user); String name = ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/b7ef9a16a98b011fe24947015b232506e57bf6ff/MessagingUtil.java/buggy/portal-ejb/src/com/liferay/portlet/messaging/util/MessagingUtil.java
JSONObject jo = new JSONObject();
public static void addRosterEntry( HttpSession ses, String companyId, String emailAddress) throws PortalException, SystemException, XMPPException { Roster roster = getRoster(ses); User user = UserLocalServiceUtil.getUserByEmailAddress( companyId, emailAddress); String smackId = getXmppId(user); String name = ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/b7ef9a16a98b011fe24947015b232506e57bf6ff/MessagingUtil.java/buggy/portal-ejb/src/com/liferay/portlet/messaging/util/MessagingUtil.java
jo.put("name", name); jo.put("user", smackId); jo.put("status", "success"); return jo;
public static void addRosterEntry( HttpSession ses, String companyId, String emailAddress) throws PortalException, SystemException, XMPPException { Roster roster = getRoster(ses); User user = UserLocalServiceUtil.getUserByEmailAddress( companyId, emailAddress); String smackId = getXmppId(user); String name = ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/b7ef9a16a98b011fe24947015b232506e57bf6ff/MessagingUtil.java/buggy/portal-ejb/src/com/liferay/portlet/messaging/util/MessagingUtil.java
roster.setSubscriptionMode(Roster.SUBSCRIPTION_ACCEPT_ALL);
public static void createXMPPConnection(HttpSession ses, String userId) throws XMPPException { if (isJabberEnabled()) { XMPPConnection con = null; try { con = new XMPPConnection(SERVER_ADDRESS, SERVER_PORT); } catch (XMPPException e) { return; } try { con.login(userId, USER_PASSWORD, ses.getId()...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/b7ef9a16a98b011fe24947015b232506e57bf6ff/MessagingUtil.java/buggy/portal-ejb/src/com/liferay/portlet/messaging/util/MessagingUtil.java
public void addAccount(AccountID id){ String acctString = id.toString(); addAccount(acctString); }
private void addAccount(AccountID id) { FIXMatcherEditor<String> matcherEditor = new FIXMatcherEditor<String>(Account.FIELD, id.toString(), id.getAccountNickname()); if (accountMatchers.indexOf(matcherEditor) < 0){ accountMatchers.add(matcherEditor); } }
public void addAccount(AccountID id){ String acctString = id.toString(); addAccount(acctString); }
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/6a34478b554292b36701d7eaebf25a934e3abba0/FiltersView.java/clean/source/trunk/src/main/java/org/marketcetera/photon/views/FiltersView.java
String symbolString = symbol.toString(); addSymbol(symbolString);
FIXMatcherEditor<String> matcherEditor = new FIXMatcherEditor<String>(Symbol.FIELD, symbol.getBaseSymbol(), symbol.toString()); if (symbolMatchers.indexOf(matcherEditor) < 0){ symbolMatchers.add(matcherEditor); }
public void addSymbol(MSymbol symbol){ String symbolString = symbol.toString(); addSymbol(symbolString); }
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/6a34478b554292b36701d7eaebf25a934e3abba0/FiltersView.java/clean/source/trunk/src/main/java/org/marketcetera/photon/views/FiltersView.java
accountMatchers.add(new FIXMatcherEditor<String>(Account.FIELD, "FOO", "FOO")); accountMatchers.add(new FIXMatcherEditor<String>(Account.FIELD, "QWER", "QWER"));
addAccount(new AccountID("FOO"));
private void initContent() { accountMatchers.add(new FIXMatcherEditor<String>(Account.FIELD, null, "<NO ACCOUNT>")); accountMatchers.add(new FIXMatcherEditor<String>(Account.FIELD, "FOO", "FOO")); accountMatchers.add(new FIXMatcherEditor<String>(Account.FIELD, "QWER", "QWER")); symbolMatche...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/6a34478b554292b36701d7eaebf25a934e3abba0/FiltersView.java/clean/source/trunk/src/main/java/org/marketcetera/photon/views/FiltersView.java
addSymbol(new MSymbol("BAR"));
private void initContent() { accountMatchers.add(new FIXMatcherEditor<String>(Account.FIELD, null, "<NO ACCOUNT>")); accountMatchers.add(new FIXMatcherEditor<String>(Account.FIELD, "FOO", "FOO")); accountMatchers.add(new FIXMatcherEditor<String>(Account.FIELD, "QWER", "QWER")); symbolMatche...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/6a34478b554292b36701d7eaebf25a934e3abba0/FiltersView.java/clean/source/trunk/src/main/java/org/marketcetera/photon/views/FiltersView.java
addAccount(accountString);
addAccount(new AccountID(accountString));
public void orderActionTaken(Message message) { try { String accountString = message.getString(Account.FIELD); addAccount(accountString); } catch (FieldNotFound e) { // do nothing } try { String symbolString = message.getString(Symbol.FIELD); addSymbol(symbolString); } catch (FieldNotFound e...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/6a34478b554292b36701d7eaebf25a934e3abba0/FiltersView.java/clean/source/trunk/src/main/java/org/marketcetera/photon/views/FiltersView.java
addSymbol(symbolString);
addSymbol(new MSymbol(symbolString));
public void orderActionTaken(Message message) { try { String accountString = message.getString(Account.FIELD); addAccount(accountString); } catch (FieldNotFound e) { // do nothing } try { String symbolString = message.getString(Symbol.FIELD); addSymbol(symbolString); } catch (FieldNotFound e...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/6a34478b554292b36701d7eaebf25a934e3abba0/FiltersView.java/clean/source/trunk/src/main/java/org/marketcetera/photon/views/FiltersView.java
return InternalPlatform.getDefault().getAdapterManager().getAdapter(this, adapter);
return Platform.getAdapterManager().getAdapter(this, adapter);
public Object getAdapter(Class adapter) { if (adapter == IWorkingSet.class || adapter == IPersistableElement.class) { return this; } return InternalPlatform.getDefault().getAdapterManager().getAdapter(this, adapter); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1eecb4cb6d1d8d20a6085ebf7bf7f7c3b8a0d31c/WorkingSet.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkingSet.java
protected void fillCoolBar(ICoolBarManager coolBar) { IToolBarManager toolBar = new ToolBarManager(SWT.FLAT | SWT.TRAIL); coolBar.add(new ToolBarContributionItem(toolBar, "standard")); //ActionContributionItem viewSecurityCI = new ActionContributionItem(viewSecurityAction); //toolBar.add(viewSecurityCI); ActionCo...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/7afe71d84458a2ffe38e68abe421913f2cfbd24a/ApplicationActionBarAdvisor.java/buggy/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/ApplicationActionBarAdvisor.java
menu.add(new Separator()); preferencesAction = ActionFactory.PREFERENCES.create(window); menu.add(preferencesAction);
if (!PhotonConstants.isOSX){ menu.add(new Separator()); menu.add(preferencesAction); }
protected void fillMenuBar(IMenuManager menuBar) { // File menu MenuManager menu = new MenuManager( Messages.ApplicationActionBarAdvisor_FileMenuName); menu.add(reconnectJMSAction); menu.add(new Separator()); menu.add(saveAction); menu.add(new Separator()); menu.add(closeAllAction); menu.add(closeAction); ...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/7afe71d84458a2ffe38e68abe421913f2cfbd24a/ApplicationActionBarAdvisor.java/buggy/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/ApplicationActionBarAdvisor.java
menu.add(new Separator()); menu.add(aboutAction);
if (!PhotonConstants.isOSX){ menu.add(new Separator()); menu.add(aboutAction); }
protected void fillMenuBar(IMenuManager menuBar) { // File menu MenuManager menu = new MenuManager( Messages.ApplicationActionBarAdvisor_FileMenuName); menu.add(reconnectJMSAction); menu.add(new Separator()); menu.add(saveAction); menu.add(new Separator()); menu.add(closeAllAction); menu.add(closeAction); ...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/7afe71d84458a2ffe38e68abe421913f2cfbd24a/ApplicationActionBarAdvisor.java/buggy/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/ApplicationActionBarAdvisor.java
preferencesAction = ActionFactory.PREFERENCES.create(window); register(preferencesAction);
protected void makeActions(IWorkbenchWindow window) { this.window = window; commandStatusLineContribution = new CommandStatusLineContribution(CommandStatusLineContribution.ID); jmsStatusLineContribution = new FeedStatusLineContribution("jmsStatus", new String[] {"jms"}); //Application.getJMSConnector().addFeedComp...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/7afe71d84458a2ffe38e68abe421913f2cfbd24a/ApplicationActionBarAdvisor.java/buggy/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/ApplicationActionBarAdvisor.java
rubyObj = RubyBoolean.newBoolean(runtime, true);
rubyObj = runtime.getTrue();
private IRubyObject unmarshalObjectDirectly(int type, IRubyObject proc) throws IOException { IRubyObject rubyObj = null; switch (type) { case '0' : rubyObj = runtime.getNil(); break; case 'T' : rubyObj = RubyBoolean.newBoolean(runtime, tr...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/UnmarshalStream.java/clean/src/org/jruby/runtime/marshal/UnmarshalStream.java
rubyObj = RubyBoolean.newBoolean(runtime, false);
rubyObj = runtime.getFalse();
private IRubyObject unmarshalObjectDirectly(int type, IRubyObject proc) throws IOException { IRubyObject rubyObj = null; switch (type) { case '0' : rubyObj = runtime.getNil(); break; case 'T' : rubyObj = RubyBoolean.newBoolean(runtime, tr...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/UnmarshalStream.java/clean/src/org/jruby/runtime/marshal/UnmarshalStream.java
throw new ArgumentError(getRuntime(), "dump format error(" + type + ")");
throw getRuntime().newArgumentError("dump format error(" + type + ")");
private IRubyObject unmarshalObjectDirectly(int type, IRubyObject proc) throws IOException { IRubyObject rubyObj = null; switch (type) { case '0' : rubyObj = runtime.getNil(); break; case 'T' : rubyObj = RubyBoolean.newBoolean(runtime, tr...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/UnmarshalStream.java/clean/src/org/jruby/runtime/marshal/UnmarshalStream.java
RubyString.newString(runtime, marshaled));
runtime.newString(marshaled));
private IRubyObject userUnmarshal() throws IOException { String className = unmarshalObject().asSymbol(); String marshaled = unmarshalString(); RubyModule classInstance = runtime.getModule(className); IRubyObject result = classInstance.callMethod( "_load", RubyStrin...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/UnmarshalStream.java/clean/src/org/jruby/runtime/marshal/UnmarshalStream.java
String categoryId, String topicId, String messageId,
String categoryId, String messageId,
public void addMessageResources( String categoryId, String topicId, String messageId, boolean addCommunityPermissions, boolean addGuestPermissions) throws PortalException, SystemException { MBCategory category = MBCategoryUtil.findByPrimaryKey(categoryId); MBMessage message = MBMessageUtil.findByPrimaryKey( n...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
new MBMessagePK(topicId, messageId));
new MBMessagePK(MBMessage.DEPRECATED_TOPIC_ID, messageId));
public void addMessageResources( String categoryId, String topicId, String messageId, boolean addCommunityPermissions, boolean addGuestPermissions) throws PortalException, SystemException { MBCategory category = MBCategoryUtil.findByPrimaryKey(categoryId); MBMessage message = MBMessageUtil.findByPrimaryKey( n...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
public void deleteDiscussionMessage(String topicId, String messageId)
public void deleteDiscussionMessage(String messageId)
public void deleteDiscussionMessage(String topicId, String messageId) throws PortalException, SystemException { deleteMessage(topicId, messageId); }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
deleteMessage(topicId, messageId);
deleteMessage(messageId);
public void deleteDiscussionMessage(String topicId, String messageId) throws PortalException, SystemException { deleteMessage(topicId, messageId); }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
deleteMessage(message.getTopicId(), message.getMessageId());
deleteMessage(message.getMessageId());
public void deleteDiscussionMessages(String className, String classPK) throws PortalException, SystemException { try { MBDiscussion discussion = MBDiscussionUtil.findByC_C(className, classPK); List messages = MBMessageUtil.findByT_P( discussion.getThreadId(), MBMessage.DEFAULT_PARENT_MESSAGE_ID); MBMessa...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
public void deleteMessage(String topicId, String messageId)
public void deleteMessage(String messageId)
public void deleteMessage(String topicId, String messageId) throws PortalException, SystemException { MBMessage message = MBMessageUtil.findByPrimaryKey( new MBMessagePK(topicId, messageId)); deleteMessage(message); }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
new MBMessagePK(topicId, messageId));
new MBMessagePK(MBMessage.DEPRECATED_TOPIC_ID, messageId));
public void deleteMessage(String topicId, String messageId) throws PortalException, SystemException { MBMessage message = MBMessageUtil.findByPrimaryKey( new MBMessagePK(topicId, messageId)); deleteMessage(message); }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
public MBMessage getMessage(String topicId, String messageId)
public MBMessage getMessage(String messageId)
public MBMessage getMessage(String topicId, String messageId) throws PortalException, SystemException { return MBMessageUtil.findByPrimaryKey( new MBMessagePK(topicId, messageId)); }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
new MBMessagePK(topicId, messageId));
new MBMessagePK(MBMessage.DEPRECATED_TOPIC_ID, messageId));
public MBMessage getMessage(String topicId, String messageId) throws PortalException, SystemException { return MBMessageUtil.findByPrimaryKey( new MBMessagePK(topicId, messageId)); }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
public MBMessageDisplay getMessageDisplay( String topicId, String messageId, String userId)
public MBMessageDisplay getMessageDisplay(String messageId, String userId)
public MBMessageDisplay getMessageDisplay( String topicId, String messageId, String userId) throws PortalException, SystemException { MBMessage message = getMessage(topicId, messageId); return getMessageDisplay(message, userId); }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
MBMessage message = getMessage(topicId, messageId);
MBMessage message = getMessage(messageId);
public MBMessageDisplay getMessageDisplay( String topicId, String messageId, String userId) throws PortalException, SystemException { MBMessage message = getMessage(topicId, messageId); return getMessageDisplay(message, userId); }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
public void subscribeMessage( String userId, String topicId, String messageId)
public void subscribeMessage(String userId, String messageId)
public void subscribeMessage( String userId, String topicId, String messageId) throws PortalException, SystemException { MBMessage message = MBMessageUtil.findByPrimaryKey( new MBMessagePK(topicId, messageId)); SubscriptionLocalServiceUtil.addSubscription( userId, MBThread.class.getName(), message.getThreadId...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
new MBMessagePK(topicId, messageId));
new MBMessagePK(MBMessage.DEPRECATED_TOPIC_ID, messageId));
public void subscribeMessage( String userId, String topicId, String messageId) throws PortalException, SystemException { MBMessage message = MBMessageUtil.findByPrimaryKey( new MBMessagePK(topicId, messageId)); SubscriptionLocalServiceUtil.addSubscription( userId, MBThread.class.getName(), message.getThreadId...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
public void unsubscribeMessage( String userId, String topicId, String messageId)
public void unsubscribeMessage(String userId, String messageId)
public void unsubscribeMessage( String userId, String topicId, String messageId) throws PortalException, SystemException { MBMessage message = MBMessageUtil.findByPrimaryKey( new MBMessagePK(topicId, messageId)); SubscriptionLocalServiceUtil.deleteSubscription( userId, MBThread.class.getName(), message.getThr...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
new MBMessagePK(topicId, messageId));
new MBMessagePK(MBMessage.DEPRECATED_TOPIC_ID, messageId));
public void unsubscribeMessage( String userId, String topicId, String messageId) throws PortalException, SystemException { MBMessage message = MBMessageUtil.findByPrimaryKey( new MBMessagePK(topicId, messageId)); SubscriptionLocalServiceUtil.deleteSubscription( userId, MBThread.class.getName(), message.getThr...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
String topicId, String messageId, String subject, String body)
String messageId, String subject, String body)
public MBMessage updateDiscussionMessage( String topicId, String messageId, String subject, String body) throws PortalException, SystemException { String categoryId = Company.SYSTEM; List files = new ArrayList(); PortletPreferences prefs = null; return updateMessage( topicId, messageId, categoryId, subject, b...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
topicId, messageId, categoryId, subject, body, files, prefs);
messageId, categoryId, subject, body, files, prefs);
public MBMessage updateDiscussionMessage( String topicId, String messageId, String subject, String body) throws PortalException, SystemException { String categoryId = Company.SYSTEM; List files = new ArrayList(); PortletPreferences prefs = null; return updateMessage( topicId, messageId, categoryId, subject, b...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
String topicId, String messageId, String categoryId, String subject, String body, List files, PortletPreferences prefs)
String messageId, String categoryId, String subject, String body, List files, PortletPreferences prefs)
public MBMessage updateMessage( String topicId, String messageId, String categoryId, String subject, String body, List files, PortletPreferences prefs) throws PortalException, SystemException { // Message MBCategory category = MBCategoryUtil.findByPrimaryKey(categoryId); Date now = new Date(); validate(subjec...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
new MBMessagePK(topicId, messageId));
new MBMessagePK(MBMessage.DEPRECATED_TOPIC_ID, messageId));
public MBMessage updateMessage( String topicId, String messageId, String categoryId, String subject, String body, List files, PortletPreferences prefs) throws PortalException, SystemException { // Message MBCategory category = MBCategoryUtil.findByPrimaryKey(categoryId); Date now = new Date(); validate(subjec...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
category.getCategoryId(), message.getTopicId(), message.getThreadId(), messageId, subject, body);
category.getCategoryId(), message.getThreadId(), messageId, subject, body);
public MBMessage updateMessage( String topicId, String messageId, String categoryId, String subject, String body, List files, PortletPreferences prefs) throws PortalException, SystemException { // Message MBCategory category = MBCategoryUtil.findByPrimaryKey(categoryId); Date now = new Date(); validate(subjec...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBMessageLocalServiceImpl.java
e instanceof CaptchaException ||
e instanceof CaptchaTextException ||
public void processAction( ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req, ActionResponse res) throws Exception { String cmd = ParamUtil.getString(req, Constants.CMD); try { if (cmd.equals(Constants.ADD) || cmd.equals(Constants.UPDATE)) { updateCategory(req); } else if ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/fa825e278fff56c5878f6bf4ebfe8e8c47fa5e6f/EditCategoryAction.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/action/EditCategoryAction.java
doc.add(LuceneFields.getKeyword( LuceneFields.COMPANY_ID, companyId)); doc.add(LuceneFields.getKeyword( LuceneFields.PORTLET_ID, portletId));
doc.add( LuceneFields.getKeyword(LuceneFields.COMPANY_ID, companyId)); doc.add( LuceneFields.getKeyword(LuceneFields.PORTLET_ID, portletId));
public static void addFile( String companyId, String portletId, String groupId, String repositoryId, String fileName) throws IOException { synchronized (IndexWriter.class) { if (_log.isDebugEnabled()) { _log.debug( "Indexing document " + companyId + " " + portletId + " " + groupId + " " + repositor...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/fa825e278fff56c5878f6bf4ebfe8e8c47fa5e6f/IndexerImpl.java/buggy/documentlibrary-ejb/src/com/liferay/documentlibrary/util/IndexerImpl.java
if ( panel.c.css instanceof CSSBank ) {
if ( panel.c.css instanceof XRStyleReference ) { inspector = new DOMInspector( panel.doc, panel.c, (XRStyleReference)panel.c.css ); } else {
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e4269a76c483365a1f7518bc84ebcc30f88d003b/HTMLTest.java/clean/src/java/org/xhtmlrenderer/swing/HTMLTest.java
} else { inspector = new DOMInspector( panel.doc, panel.c, (XRStyleReference)panel.c.css );
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e4269a76c483365a1f7518bc84ebcc30f88d003b/HTMLTest.java/clean/src/java/org/xhtmlrenderer/swing/HTMLTest.java
if ( panel.c.css instanceof CSSBank ) {
if ( panel.c.css instanceof XRStyleReference ) { inspector.setForDocument( panel.doc, panel.c, (XRStyleReference)panel.c.css ); } else {
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e4269a76c483365a1f7518bc84ebcc30f88d003b/HTMLTest.java/clean/src/java/org/xhtmlrenderer/swing/HTMLTest.java
} else { inspector.setForDocument( panel.doc, panel.c, (XRStyleReference)panel.c.css );
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e4269a76c483365a1f7518bc84ebcc30f88d003b/HTMLTest.java/clean/src/java/org/xhtmlrenderer/swing/HTMLTest.java
addFileLoadAction( test, "expansion-bug", "/home/tobe/Projekt/xhtmlrenderer/demos/expansion-bug.html" );
public HTMLTest( String[] args ) throws Exception { super( BASE_TITLE ); panel.setPreferredSize( new Dimension( text_width, text_width ) ); JScrollPane scroll = new JScrollPane( panel ); scroll.setVerticalScrollBarPolicy( scroll.VERTICAL_SCROLLBAR_ALWAYS ); scroll.setHorizo...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e4269a76c483365a1f7518bc84ebcc30f88d003b/HTMLTest.java/clean/src/java/org/xhtmlrenderer/swing/HTMLTest.java
if(event.getType() == IResourceChangeEvent.PRE_BUILD){ refreshJob.buildDone = false;
Collection changedMarkers = new ArrayList(); Collection addedMarkers = new ArrayList(); Collection removedMarkers = new ArrayList(); if (event.getType() == IResourceChangeEvent.PRE_BUILD) { updateJob.buildDone = false;
public void resourceChanged(IResourceChangeEvent event) { String[] markerTypes = getMarkerTypes(); if(event.getType() == IResourceChangeEvent.PRE_BUILD){ refreshJob.buildDone = false; return; } if(event.getType() == IResourceChangeEvent.POST_BUILD){ refreshJob.buildDone = true; refreshJob.sch...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
if(event.getType() == IResourceChangeEvent.POST_BUILD){ refreshJob.buildDone = true; refreshJob.schedule(100);
if (event.getType() == IResourceChangeEvent.POST_BUILD) { updateJob.buildDone = true; updateJob.schedule();
public void resourceChanged(IResourceChangeEvent event) { String[] markerTypes = getMarkerTypes(); if(event.getType() == IResourceChangeEvent.PRE_BUILD){ refreshJob.buildDone = false; return; } if(event.getType() == IResourceChangeEvent.POST_BUILD){ refreshJob.buildDone = true; refreshJob.sch...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
public void resourceChanged(IResourceChangeEvent event) { String[] markerTypes = getMarkerTypes(); if(event.getType() == IResourceChangeEvent.PRE_BUILD){ refreshJob.buildDone = false; return; } if(event.getType() == IResourceChangeEvent.POST_BUILD){ refreshJob.buildDone = true; refreshJob.sch...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
refreshJob.addChangedMarker(delta.getMarker());
changedMarkers.add(delta.getMarker());
public void resourceChanged(IResourceChangeEvent event) { String[] markerTypes = getMarkerTypes(); if(event.getType() == IResourceChangeEvent.PRE_BUILD){ refreshJob.buildDone = false; return; } if(event.getType() == IResourceChangeEvent.POST_BUILD){ refreshJob.buildDone = true; refreshJob.sch...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
refreshJob.addAddedMarker(delta.getMarker()); }
addedMarkers.add(delta.getMarker()); }
public void resourceChanged(IResourceChangeEvent event) { String[] markerTypes = getMarkerTypes(); if(event.getType() == IResourceChangeEvent.PRE_BUILD){ refreshJob.buildDone = false; return; } if(event.getType() == IResourceChangeEvent.POST_BUILD){ refreshJob.buildDone = true; refreshJob.sch...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java