rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
}
}
private EventType(String type) { this.type = type; } // EventType()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/DocumentEvent.java/clean/core/src/classpath/javax/javax/swing/event/DocumentEvent.java
public String toString() { return type; }
public String toString() { return type; }
public String toString() { return type; // TODO } // toString()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/DocumentEvent.java/clean/core/src/classpath/javax/javax/swing/event/DocumentEvent.java
System.out.println("Michael: FieldView.getPreferredSpan: Error");
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return fm.getHeight(); String text; Element elem = getElement(); try { text = elem.getDocument().getText(elem.g...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/FieldView.java/clean/core/src/classpath/javax/javax/swing/text/FieldView.java
resetRecognizer();
protected void fireDragGestureRecognized(int dragAction, Point p) { if(dragGestureListener != null) dragGestureListener.dragGestureRecognized (new DragGestureEvent(this, dragAction, p, events)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/DragGestureRecognizer.java/clean/core/src/classpath/java/java/awt/dnd/DragGestureRecognizer.java
public void resetRecognizer() throws NotImplementedException { events = new ArrayList(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/DragGestureRecognizer.java/clean/core/src/classpath/java/java/awt/dnd/DragGestureRecognizer.java
public abstract byte[] getEncoded(int format);
public byte[] getEncoded() { return getEncoded(IKeyPairCodec.RAW_FORMAT); }
public abstract byte[] getEncoded(int format);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a41d0899aa65f05fc526d9fb2ea0b096d1ff3f8c/GnuRSAKey.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/GnuRSAKey.java
public UndoableEditSupport() { }
public UndoableEditSupport() { realSource = this; }
public UndoableEditSupport() { // TODO } // UndoableEditSupport()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/UndoableEditSupport.java/buggy/core/src/classpath/javax/javax/swing/undo/UndoableEditSupport.java
protected void _postEdit(UndoableEdit value0) { }
protected void _postEdit(UndoableEdit edit) { UndoableEditEvent event; Iterator iter; if (listeners.isEmpty()) return; event = new UndoableEditEvent(realSource, edit); iter = ((Vector) listeners.clone()).iterator(); while (iter.hasNext()) ((UndoableEditListener) iter.next()).undoableEditHappened(event); }
protected void _postEdit(UndoableEdit value0) { // TODO } // _postEdit()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/UndoableEditSupport.java/buggy/core/src/classpath/javax/javax/swing/undo/UndoableEditSupport.java
public synchronized void addUndoableEditListener(UndoableEditListener value0) { }
public synchronized void addUndoableEditListener(UndoableEditListener val) { listeners.add(val); }
public synchronized void addUndoableEditListener(UndoableEditListener value0) { // TODO } // addUndoableEditListener()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/UndoableEditSupport.java/buggy/core/src/classpath/javax/javax/swing/undo/UndoableEditSupport.java
public synchronized void beginUpdate() { }
public synchronized void beginUpdate() { if (compoundEdit == null) compoundEdit = createCompoundEdit(); ++updateLevel; }
public synchronized void beginUpdate() { // TODO } // beginUpdate()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/UndoableEditSupport.java/buggy/core/src/classpath/javax/javax/swing/undo/UndoableEditSupport.java
protected CompoundEdit createCompoundEdit() { return null; }
protected CompoundEdit createCompoundEdit() { return new CompoundEdit(); }
protected CompoundEdit createCompoundEdit() { return null; // TODO } // createCompoundEdit()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/UndoableEditSupport.java/buggy/core/src/classpath/javax/javax/swing/undo/UndoableEditSupport.java
public synchronized void endUpdate() { }
public synchronized void endUpdate() { if (updateLevel == 0) throw new IllegalStateException(); if (--updateLevel > 0) return; compoundEdit.end(); _postEdit(compoundEdit); compoundEdit = null; }
public synchronized void endUpdate() { // TODO } // endUpdate()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/UndoableEditSupport.java/buggy/core/src/classpath/javax/javax/swing/undo/UndoableEditSupport.java
public int getUpdateLevel() { return 0; }
public int getUpdateLevel() { return updateLevel; }
public int getUpdateLevel() { return 0; // TODO } // getUpdateLevel()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/UndoableEditSupport.java/buggy/core/src/classpath/javax/javax/swing/undo/UndoableEditSupport.java
public synchronized void postEdit(UndoableEdit value0) { }
public synchronized void postEdit(UndoableEdit edit) { if (compoundEdit != null) compoundEdit.addEdit(edit); else _postEdit(edit); }
public synchronized void postEdit(UndoableEdit value0) { // TODO } // postEdit()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/UndoableEditSupport.java/buggy/core/src/classpath/javax/javax/swing/undo/UndoableEditSupport.java
public synchronized void removeUndoableEditListener(UndoableEditListener value0) { }
public synchronized void removeUndoableEditListener(UndoableEditListener val) { listeners.removeElement(val); }
public synchronized void removeUndoableEditListener(UndoableEditListener value0) { // TODO } // removeUndoableEditListener()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/UndoableEditSupport.java/buggy/core/src/classpath/javax/javax/swing/undo/UndoableEditSupport.java
public String toString() { return null; }
public String toString() { return super.toString() + " updateLevel: " + updateLevel + " listeners: " + listeners + " compoundEdit: " + compoundEdit; }
public String toString() { return null; // TODO } // toString()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/UndoableEditSupport.java/buggy/core/src/classpath/javax/javax/swing/undo/UndoableEditSupport.java
public void paint(Graphics g, Shape s) { if (horizontalVisibility == null) checkContainer(); Shape newAlloc = adjustAllocation(s); // Set a clip to prevent drawing outside of the allocation area. // TODO: Is there a better way to achieve this? Shape clip = g.getClip(); g.setClip(s); sup...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/FieldView.java/buggy/core/src/classpath/javax/javax/swing/text/FieldView.java
public void paint(Graphics g, Shape s) { if (horizontalVisibility == null) checkContainer(); Shape newAlloc = adjustAllocation(s); // Set a clip to prevent drawing outside of the allocation area. // TODO: Is there a better way to achieve this? Shape clip = g.getClip(); g.setClip(s); sup...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/FieldView.java/buggy/core/src/classpath/javax/javax/swing/text/FieldView.java
branchClone.replace(0, numChildren, cloneChildren);
branchClone.replace(0, 0, cloneChildren);
public Element clone(Element parent, Element clonee) { Element clone = clonee; // We can only handle AbstractElements here. if (clonee instanceof BranchElement) { BranchElement branchEl = (BranchElement) clonee; BranchElement branchClone = new BranchElement(pare...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
BranchElement rightBranch = new BranchElement(parent, parentAtts);
BranchElement rightBranch = (BranchElement) createBranchElement(parent, parentAtts);
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
leftBranch = new BranchElement(parent, parentAtts);
leftBranch = (BranchElement) createBranchElement(parent, parentAtts);
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
BranchElement br = new BranchElement(parent, curr.getAttributes());
BranchElement br = (BranchElement) createBranchElement(parent, curr.getAttributes());
private Element[] recreateAfterFracture(Element[] recreate, BranchElement parent, int startFrom, int startOffset) { Element[] added = new Element[recreate.length - startFrom]; int j = 0; for (int i = startFrom; i < recreat...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
BranchElement newPar = (BranchElement) new BranchElement(el.getParentElement(),
BranchElement newPar = (BranchElement) createBranchElement(el.getParentElement(),
private Element[] split(Element el, int offset, int space, int editIndex) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
BranchElement newPar = (BranchElement) new BranchElement(el.getParentElement(),
BranchElement newPar = (BranchElement) createBranchElement(el.getParentElement(),
private Element[] split(Element el, int offset, int space, int editIndex) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
content.remove(0, content.length()); buffer = new ElementBuffer(createDefaultRoot()); insert(0, data);
int len = getLength(); if (len > 0) remove(0, len); StringBuilder b = new StringBuilder(); for (int i = 0; i < data.length; ++i) { ElementSpec el = data[i]; if (el.getArray() != null && el.getLength() > 0) b.append(el.getArray(), el.getOffset(), el.getLength()); } Content content = getContent(); UndoableEdit cEdit =...
protected void create(ElementSpec[] data) { try { // Clear content. content.remove(0, content.length()); // Clear buffer and root element. buffer = new ElementBuffer(createDefaultRoot()); // Insert the data. insert(0, data); } catch (BadLocationException ex) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
finally { writeUnlock(); }
protected void create(ElementSpec[] data) { try { // Clear content. content.remove(0, content.length()); // Clear buffer and root element. buffer = new ElementBuffer(createDefaultRoot()); // Insert the data. insert(0, data); } catch (BadLocationException ex) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
BranchElement paragraph = new BranchElement(section, null);
BranchElement paragraph = (BranchElement) createBranchElement(section, null);
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; SectionElement section = new SectionElement(); BranchElement paragraph = new BranchElement(section, null); tmp = new Element[1]; tmp[0] = paragraph; section.replace(0, 0, tmp); LeafElement leaf = new LeafElement(para...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
LeafElement leaf = new LeafElement(paragraph, null, 0, 1);
Element leaf = createLeafElement(paragraph, null, 0, 1);
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; SectionElement section = new SectionElement(); BranchElement paragraph = new BranchElement(section, null); tmp = new Element[1]; tmp[0] = paragraph; section.replace(0, 0, tmp); LeafElement leaf = new LeafElement(para...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
if (edit instanceof ElementChange)
if (edit instanceof DocumentEvent.ElementChange)
public boolean addEdit(UndoableEdit edit) { if (edit instanceof ElementChange) { ElementChange elEdit = (ElementChange) edit; changes.put(elEdit.getElement(), elEdit); } return super.addEdit(edit); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
ElementChange elEdit = (ElementChange) edit;
DocumentEvent.ElementChange elEdit = (DocumentEvent.ElementChange) edit;
public boolean addEdit(UndoableEdit edit) { if (edit instanceof ElementChange) { ElementChange elEdit = (ElementChange) edit; changes.put(elEdit.getElement(), elEdit); } return super.addEdit(edit); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
if (showingResizeCursor) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; }
public void mouseExited(MouseEvent e) { // There is nothing to do when the mouse exits // the border area. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/BasicInternalFrameUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java
if (showingResizeCursor && e.getSource() != frame) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } else if (e.getSource()==frame && frame.isResizable()) { int cursor; switch (sectionOfClick(e.getX(), e.getY())) { case NORTH: cursor = Cursor.N_RESIZE_CURSOR; break; case NORTH_EAST: cursor =...
public void mouseMoved(MouseEvent e) { // There is nothing to do when the mouse moves // over the border area. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/BasicInternalFrameUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java
protected void calculateTabRects(int tabPlacement, int tabCount) { if (tabCount == 0) return; FontMetrics fm = getFontMetrics(); SwingUtilities.calculateInnerArea(tabPane, calcRect); Insets tabAreaInsets = getTabAreaInsets(tabPlacement); Insets insets = tabPane.getInsets(); i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8a49a412752cdcc88a774cac2de160a23c6f550/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java
private final void addBranch(int target, boolean nextIsSuccessor) {
private final void addBranch(int target, byte flags) {
private final void addBranch(int target, boolean nextIsSuccessor) { IRBasicBlock pred = this.currentBlock; IRBasicBlock succ = startBB(target); pred.addSuccessor(succ); endBB(nextIsSuccessor); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
endBB(nextIsSuccessor);
endBB(flags);
private final void addBranch(int target, boolean nextIsSuccessor) { IRBasicBlock pred = this.currentBlock; IRBasicBlock succ = startBB(target); pred.addSuccessor(succ); endBB(nextIsSuccessor); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
if (nextIsSuccessor && bbIndex < list.length) { bb.addSuccessor(list[bbIndex]); }
public IRBasicBlock[] createBasicBlocks() { // Sort the blocks on start PC Collections.sort(blocks, this); // Create the array final IRBasicBlock[] list = (IRBasicBlock[])blocks.toArray(new IRBasicBlock[blocks.size()]); // Set the EndPC's and flags final byte[] opcodeFlags = this.opcodeFlags; final int len = op...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
private final void endBB(boolean nextIsSuccessor) {
private final void endBB(byte flags) {
private final void endBB(boolean nextIsSuccessor) { nextIsStartOfBB = true; this.nextIsSuccessor = nextIsSuccessor; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
this.nextIsSuccessor = nextIsSuccessor;
int address = getInstructionAddress(); branchFlags[address] |= flags;
private final void endBB(boolean nextIsSuccessor) { nextIsStartOfBB = true; this.nextIsSuccessor = nextIsSuccessor; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
IRBasicBlock pred = this.currentBlock;
public void startInstruction(int address) { super.startInstruction(address); opcodeFlags[address] |= BytecodeFlags.F_START_OF_INSTRUCTION; if (nextIsStartOfBB || isStartOfBB(address)) { IRBasicBlock pred = this.currentBlock; this.currentBlock = startBB(address); if (nextIsSuccessor) { pred.addSuccessor(thi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
if (nextIsSuccessor) { pred.addSuccessor(this.currentBlock); }
public void startInstruction(int address) { super.startInstruction(address); opcodeFlags[address] |= BytecodeFlags.F_START_OF_INSTRUCTION; if (nextIsStartOfBB || isStartOfBB(address)) { IRBasicBlock pred = this.currentBlock; this.currentBlock = startBB(address); if (nextIsSuccessor) { pred.addSuccessor(thi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
nextIsSuccessor = true;
public void startInstruction(int address) { super.startInstruction(address); opcodeFlags[address] |= BytecodeFlags.F_START_OF_INSTRUCTION; if (nextIsStartOfBB || isStartOfBB(address)) { IRBasicBlock pred = this.currentBlock; this.currentBlock = startBB(address); if (nextIsSuccessor) { pred.addSuccessor(thi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
branchFlags = new byte[length];
public void startMethod(VmMethod method) { final VmByteCode bc = method.getBytecode(); byteCode = bc; final int length = bc.getLength(); opcodeFlags = new byte[length]; // The first instruction is always the start of a BB. this.currentBlock = startBB(0); currentBlock.setStackOffset(bc.getNoLocals()); // The ex...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
endBB(false);
endBB(UNCONDITIONAL_BRANCH);
public void visit_areturn() { endBB(false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
endBB(false);
endBB(UNCONDITIONAL_BRANCH);
public void visit_athrow() { endBB(false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
endBB(false);
endBB(UNCONDITIONAL_BRANCH);
public void visit_dreturn() { endBB(false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
endBB(false);
endBB(UNCONDITIONAL_BRANCH);
public void visit_freturn() { endBB(false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, false);
addBranch(address, UNCONDITIONAL_BRANCH);
public void visit_goto(int address) { addBranch(address, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, true);
addBranch(address, CONDITIONAL_BRANCH);
public void visit_if_acmpeq(int address) { addBranch(address, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, true);
addBranch(address, CONDITIONAL_BRANCH);
public void visit_if_acmpne(int address) { addBranch(address, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, true);
addBranch(address, CONDITIONAL_BRANCH);
public void visit_if_icmpeq(int address) { addBranch(address, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, true);
addBranch(address, CONDITIONAL_BRANCH);
public void visit_if_icmpge(int address) { addBranch(address, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, true);
addBranch(address, CONDITIONAL_BRANCH);
public void visit_if_icmpgt(int address) { addBranch(address, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, true);
addBranch(address, CONDITIONAL_BRANCH);
public void visit_if_icmple(int address) { addBranch(address, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, true);
addBranch(address, CONDITIONAL_BRANCH);
public void visit_if_icmplt(int address) { addBranch(address, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, true);
addBranch(address, CONDITIONAL_BRANCH);
public void visit_if_icmpne(int address) { addBranch(address, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, true);
addBranch(address, CONDITIONAL_BRANCH);
public void visit_ifeq(int address) { addBranch(address, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, true);
addBranch(address, CONDITIONAL_BRANCH);
public void visit_ifge(int address) { addBranch(address, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, true);
addBranch(address, CONDITIONAL_BRANCH);
public void visit_ifgt(int address) { addBranch(address, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, true);
addBranch(address, CONDITIONAL_BRANCH);
public void visit_ifle(int address) { addBranch(address, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, true);
addBranch(address, CONDITIONAL_BRANCH);
public void visit_iflt(int address) { addBranch(address, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, true);
addBranch(address, CONDITIONAL_BRANCH);
public void visit_ifne(int address) { addBranch(address, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, true);
addBranch(address, CONDITIONAL_BRANCH);
public void visit_ifnonnull(int address) { addBranch(address, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, true);
addBranch(address, CONDITIONAL_BRANCH);
public void visit_ifnull(int address) { addBranch(address, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
endBB(false);
endBB(UNCONDITIONAL_BRANCH);
public void visit_ireturn() { endBB(false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
public void visit_jsr(int address) { // Not sure about this, the next block I believe it NOT a // direct successor. This will have to be tested. addBranch(address, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(address, false);
public void visit_jsr(int address) { // Not sure about this, the next block I believe it NOT a // direct successor. This will have to be tested. addBranch(address, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(addresses[i], true);
addBranch(addresses[i], CONDITIONAL_BRANCH);
public void visit_lookupswitch(int defValue, int[] matchValues, int[] addresses) { for (int i = 0; i < addresses.length; i++) { // Next block could be successor, e.g. switch could fall through addBranch(addresses[i], true); } // Same for default case addBranch(defValue, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(defValue, true);
addBranch(defValue, CONDITIONAL_BRANCH);
public void visit_lookupswitch(int defValue, int[] matchValues, int[] addresses) { for (int i = 0; i < addresses.length; i++) { // Next block could be successor, e.g. switch could fall through addBranch(addresses[i], true); } // Same for default case addBranch(defValue, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
endBB(false);
endBB(UNCONDITIONAL_BRANCH);
public void visit_lreturn() { endBB(false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
endBB(false);
endBB(UNCONDITIONAL_BRANCH);
public void visit_ret(int index) { // Not sure about this either, this needs testing endBB(false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
endBB(false);
endBB(UNCONDITIONAL_BRANCH);
public void visit_return() { endBB(false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(addresses[i], true);
addBranch(addresses[i], CONDITIONAL_BRANCH);
public void visit_tableswitch(int defValue, int lowValue, int highValue, int[] addresses) { for (int i = 0; i < addresses.length; i++) { // Next block could be successor, e.g. switch could fall through addBranch(addresses[i], true); } // Same for default case addBranch(defValue, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
addBranch(defValue, true);
addBranch(defValue, CONDITIONAL_BRANCH);
public void visit_tableswitch(int defValue, int lowValue, int highValue, int[] addresses) { for (int i = 0; i < addresses.length; i++) { // Next block could be successor, e.g. switch could fall through addBranch(addresses[i], true); } // Same for default case addBranch(defValue, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/45ead85672dd3b03b3febaade7f4686f84df2469/IRBasicBlockFinder.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlockFinder.java
public IRBasicBlock(int address) { this(address, -1, false);
public IRBasicBlock( int startPC, int endPC, boolean startOfExceptionHandler) { this.startPC = startPC; this.endPC = endPC; this.startOfExceptionHandler = startOfExceptionHandler; this.stackOffset = -1; this.name = "B" + startPC; predecessors = new BootableArrayList(); successors = new BootableArrayList(); dominated...
public IRBasicBlock(int address) { this(address, -1, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/79bb5a92ef7c411cd222bab5d581025bb5cb5184/IRBasicBlock.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRBasicBlock.java
if ((((Identity) identity).getName() == this.name) && (((Identity) identity).getScope() == this.scope))
if ((((Identity) identity).getName().equals(this.name)) && (((Identity) identity).getScope().equals(this.scope)))
public final boolean equals(Object identity) { if (identity instanceof Identity) { if (identity == this) return true; if ((((Identity) identity).getName() == this.name) && (((Identity) identity).getScope() == this.scope)) return true; return identityEquals((Identity) identity); } return false...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/217dae2077114aeb271c90f647f5baacd1bf28b4/Identity.java/clean/core/src/classpath/java/java/security/Identity.java
return ((identity.getName() == this.name) && (identity.getPublicKey() == this.publicKey));
return ((identity.getName().equals(this.name)) && (identity.getPublicKey().equals(this.publicKey)));
protected boolean identityEquals(Identity identity) { return ((identity.getName() == this.name) && (identity.getPublicKey() == this.publicKey)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/217dae2077114aeb271c90f647f5baacd1bf28b4/Identity.java/clean/core/src/classpath/java/java/security/Identity.java
public CommandShell() throws NameNotFoundException, ShellException { this((TextConsole) ((ConsoleManager) InitialNaming .lookup(ConsoleManager.NAME)).getFocus()); }
public CommandShell() throws NameNotFoundException, ShellException { this((TextConsole) ((ConsoleManager) InitialNaming .lookup(ConsoleManager.NAME)).getFocus()); }
public CommandShell() throws NameNotFoundException, ShellException { this((TextConsole) ((ConsoleManager) InitialNaming .lookup(ConsoleManager.NAME)).getFocus()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
public void addCommandToHistory(String cmdLineStr) { if (!cmdLineStr.equals(newestLine)) history.addCommand(cmdLineStr); }
public void addCommandToHistory(String cmdLineStr) { if (!cmdLineStr.equals(newestLine)) history.addCommand(cmdLineStr); }
public void addCommandToHistory(String cmdLineStr) { // Add this command to the history. if (!cmdLineStr.equals(newestLine)) history.addCommand(cmdLineStr); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
CompletionInfo complete(String partial) { try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { }
CompletionInfo complete(String partial) { try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { }
CompletionInfo complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } completion = new CompletionInfo(); String result = null; try { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
completion = new CompletionInfo(); String result = null; try { CommandLine cl = new CommandLine(partial); String cmd = ""; if (cl.hasNext()) { cmd = cl.next(); if (!cmd.trim().equals("") && cl.hasNext()) try { CommandInfo cmdClass = getCommandClass(cmd); Help.Info info = Help.getInfo(cmdClass.getCommandClass());
completion = new CompletionInfo(); String result = null; try { CommandLine cl = new CommandLine(partial); String cmd = ""; if (cl.hasNext()) { cmd = cl.next(); if (!cmd.trim().equals("") && cl.hasNext()) try { CommandInfo cmdClass = getCommandClass(cmd); Help.Info info = Help.getInfo(cmdClass.getCommandClass());
CompletionInfo complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } completion = new CompletionInfo(); String result = null; try { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
result = cmd + " " + info.complete(cl); completion.setCompleted(result); } catch (ClassNotFoundException ex) { throw new CompletionException( "Command class not found"); } catch (HelpException ex) { ex.printStackTrace(); throw new CompletionException( "Command class not found"); } } if (result == null) result = de...
result = cmd + " " + info.complete(cl); completion.setCompleted(result); } catch (ClassNotFoundException ex) { throw new CompletionException("Command class not found"); } catch (HelpException ex) { ex.printStackTrace(); throw new CompletionException("Command class not found"); } } if (result == null) result = defa...
CompletionInfo complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } completion = new CompletionInfo(); String result = null; try { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
if (!partial.equals(result) && !completion.hasItems()) { completion.setCompleted(result); completion.setNewPrompt(false); } } catch (CompletionException ex) { out.println(); err.println(ex.getMessage()); completion.setCompleted(partial); completion.setNewPrompt(true); }
if (!partial.equals(result) && !completion.hasItems()) { completion.setCompleted(result); completion.setNewPrompt(false); } } catch (CompletionException ex) { out.println(); err.println(ex.getMessage()); completion.setCompleted(partial); completion.setNewPrompt(true); }
CompletionInfo complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } completion = new CompletionInfo(); String result = null; try { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
return completion; }
return completion; }
CompletionInfo complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } completion = new CompletionInfo(); String result = null; try { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
public AliasManager getAliasManager() { return aliasMgr; }
public AliasManager getAliasManager() { return aliasMgr; }
public AliasManager getAliasManager() { return aliasMgr; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
protected CommandInfo getCommandClass(String cmd) throws ClassNotFoundException { try { Class cls = aliasMgr.getAliasClass(cmd); return new CommandInfo(cls, aliasMgr.isInternal(cmd)); } catch (NoSuchAliasException ex) { final ClassLoader cl = Thread.currentThread() .getContextClassLoader(); return new CommandInfo(cl.lo...
protected CommandInfo getCommandClass(String cmd) throws ClassNotFoundException { try { Class cls = aliasMgr.getAliasClass(cmd); return new CommandInfo(cls, aliasMgr.isInternal(cmd));
protected CommandInfo getCommandClass(String cmd) throws ClassNotFoundException { try { Class cls = aliasMgr.getAliasClass(cmd); return new CommandInfo(cls, aliasMgr.isInternal(cmd)); } catch (NoSuchAliasException ex) { final ClassLoader cl = Thread.currentThread() ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
catch (NoSuchAliasException ex) { final ClassLoader cl = Thread.currentThread() .getContextClassLoader(); return new CommandInfo(cl.loadClass(cmd), false); } }
protected CommandInfo getCommandClass(String cmd) throws ClassNotFoundException { try { Class cls = aliasMgr.getAliasClass(cmd); return new CommandInfo(cls, aliasMgr.isInternal(cmd)); } catch (NoSuchAliasException ex) { final ClassLoader cl = Thread.currentThread() ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
public CommandHistory getCommandHistory() { return history; }
public CommandHistory getCommandHistory() { return history; }
public CommandHistory getCommandHistory() { return history; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
public Console getConsole() { return console; }
public Console getConsole() { return console; }
public Console getConsole() { return console; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
public DefaultCommandInvoker getDefaultCommandInvoker() { return defaultCommandInvoker; }
public DefaultCommandInvoker getDefaultCommandInvoker() { return defaultCommandInvoker; }
public DefaultCommandInvoker getDefaultCommandInvoker() { return defaultCommandInvoker; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
public PrintStream getErrorStream() { return err; }
public PrintStream getErrorStream() { return err; }
public PrintStream getErrorStream() { return err; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
public void invokeCommand(String command){ processCommand( command ); }
public void invokeCommand(String command) { processCommand(command); }
public void invokeCommand(String command){ processCommand( command ); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
public void keyPressed(KeyboardEvent ke) { if (!isActive) return;
public void keyPressed(KeyboardEvent ke) { if (!isActive) return;
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
switch (ke.getKeyCode()) { case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { newestLine = currentLine.getContent(); historyIndex = history.size(); } historyIndex--; redisplay(); break; case KeyEvent.VK_DOWN: ke.consume(); if (historyIndex == history.size() - 1) historyIndex = -2; else if (historyIndex == -1...
switch (ke.getKeyCode()) { case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { newestLine = currentLine.getContent(); historyIndex = history.size(); } historyIndex--; redisplay(); break; case KeyEvent.VK_DOWN: ke.consume(); if (historyIndex == history.size() - 1) historyIndex = -2; else if (historyIndex == -1...
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
case KeyEvent.VK_BACK_SPACE: ke.consume(); if (currentLine.backspace()) { refreshCurrentLine(); } break;
case KeyEvent.VK_BACK_SPACE: ke.consume(); if (currentLine.backspace()) { refreshCurrentLine(); } break;
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
case KeyEvent.VK_DELETE: ke.consume(); currentLine.delete(); refreshCurrentLine(); break;
case KeyEvent.VK_DELETE: ke.consume(); currentLine.delete(); refreshCurrentLine(); break;
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
case KeyEvent.VK_ENTER: ke.consume(); currentLine.moveEnd(); refreshCurrentLine(); out.print(ke.getKeyChar()); synchronized (this) { isActive = false; threadSuspended = false; notifyAll(); } break;
case KeyEvent.VK_ENTER: ke.consume(); currentLine.moveEnd(); refreshCurrentLine(); out.print(ke.getKeyChar()); synchronized (this) { isActive = false; threadSuspended = false; notifyAll(); } break;
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
case KeyEvent.VK_TAB:
case KeyEvent.VK_TAB: ke.consume(); /*CompletionInfo info =*/ currentLine.complete(currentPrompt); if (completion.needNewPrompt()) { currentLine.start(true); } refreshCurrentLine(); break; default: char ch = ke.getKeyChar(); if (!Character.isISOControl(ch)) { if (ke.isControlDown() && ch == 'l') { this.console.clea...
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
/*CompletionInfo info =*/ currentLine.complete(currentPrompt); if(completion.needNewPrompt()) { currentLine.start(true); } refreshCurrentLine(); break; default: char ch = ke.getKeyChar(); if (!Character.isISOControl(ch)) { if(ke.isControlDown() && ch == 'l'){ this.console.clear(); this.console.setCursor(this.consol...
currentLine.appendChar(ch); refreshCurrentLine(); }
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
}
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
public void keyReleased(KeyboardEvent ke) { }
public void keyReleased(KeyboardEvent ke) { }
public void keyReleased(KeyboardEvent ke) { // do nothing }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34de2dc986de957bf3cb702395f863f43c74672f/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java