rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
final int heapObjSize = ObjectLayout.objectAlign(heapClass .getObjectSize());
final Word heapObjSize = Word.fromIntZeroExtend(ObjectLayout.objectAlign(heapClass .getObjectSize())); final Word flags = Word.fromIntZeroExtend(ObjectFlags.GC_DEFAULT_COLOR);
protected static VmAbstractHeap setupHeap(HeapHelper helper, Address start, VmNormalClass heapClass, int slotSize) { final int headerSize = ObjectLayout .objectAlign((ObjectLayout.HEADER_SLOTS + 1) * slotSize); final Offset vmtOffset = Offset.fromIntSignExtend(ObjectLayout.TI...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java
heapPtr.store(ObjectFlags.GC_DEFAULT_COLOR, flagsOffset);
heapPtr.store(flags, flagsOffset);
protected static VmAbstractHeap setupHeap(HeapHelper helper, Address start, VmNormalClass heapClass, int slotSize) { final int headerSize = ObjectLayout .objectAlign((ObjectLayout.HEADER_SLOTS + 1) * slotSize); final Offset vmtOffset = Offset.fromIntSignExtend(ObjectLayout.TI...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java
helper.clear(heapPtr, heapObjSize);
helper.clear(heapPtr, heapObjSize.toInt());
protected static VmAbstractHeap setupHeap(HeapHelper helper, Address start, VmNormalClass heapClass, int slotSize) { final int headerSize = ObjectLayout .objectAlign((ObjectLayout.HEADER_SLOTS + 1) * slotSize); final Offset vmtOffset = Offset.fromIntSignExtend(ObjectLayout.TI...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java
final int headerSize = this.headerSize;
final Word headerSize = Word.fromIntZeroExtend(this.headerSize);
protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java
int offset = headerSize; final int size = getSize();
Word offset = headerSize; final Word size = Word.fromIntZeroExtend(getSize());
protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java
while (offset < size) {
while (offset.LT(size)) {
protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java
final int objSize;
final Word objSize;
protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java
objSize = ptr.loadInt(sizeOffset);
objSize = ptr.loadWord(sizeOffset);
protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java
offset = size;
return;
protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java
offset += objSize + headerSize;
offset = offset.add(objSize).add(headerSize);
protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java
while (offset < size) {
while (offset.LT(size)) {
protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java
final int objSize = ptr.loadInt(sizeOffset);
final Word objSize = ptr.loadWord(sizeOffset);
protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java
offset = size;
return;
protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java
offset += objSize + headerSize;
offset = offset.add(objSize).add(headerSize);
protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java
final String devId = (args.length > 0) ? args[0] : "fb0";
final String devId = (args.length > 0) ? args[0] : "" /*"fb0"*/;
public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "fb0"; final int count = (args.length > 1) ? Integer.parseInt(args[1]) : 100; final String tests = (args.length > 2) ? args[2] : "plrREQ"; Surface g = null; try { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff8dc28348b95a592959b256bf52c563e0bb5ad7/FBTest.java/buggy/gui/src/test/org/jnode/test/gui/FBTest.java
public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "fb0"; final int count = (args.length > 1) ? Integer.parseInt(args[1]) : 100; final String tests = (args.length > 2) ? args[2] : "plrREQ"; Surface g = null; try { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff8dc28348b95a592959b256bf52c563e0bb5ad7/FBTest.java/buggy/gui/src/test/org/jnode/test/gui/FBTest.java
final DeviceManager dm = (DeviceManager) InitialNaming.lookup(DeviceManager.NAME); final Device dev = dm.getDevice(devId);
Device dev = null; if("".equals(devId)){ final Collection<Device> devs = DeviceUtils.getDevicesByAPI(FrameBufferAPI.class); int dev_count = devs.size(); if(dev_count > 0){ Device[] dev_a = devs.toArray(new Device[dev_count]); dev = dev_a[0]; } } if(dev == null){ final DeviceManager dm = (DeviceManager) InitialNaming.l...
public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "fb0"; final int count = (args.length > 1) ? Integer.parseInt(args[1]) : 100; final String tests = (args.length > 2) ? args[2] : "plrREQ"; Surface g = null; try { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff8dc28348b95a592959b256bf52c563e0bb5ad7/FBTest.java/buggy/gui/src/test/org/jnode/test/gui/FBTest.java
void addHyperlinkListener(HyperlinkListener listener) { }
public void addHyperlinkListener(HyperlinkListener listener) { listenerList.add (HyperlinkListener.class, listener); }
void addHyperlinkListener(HyperlinkListener listener) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JEditorPane.java/clean/core/src/classpath/javax/javax/swing/JEditorPane.java
void removeHyperlinkListener(HyperlinkListener listener) { }
public void removeHyperlinkListener (HyperlinkListener listener) { listenerList.remove (HyperlinkListener.class, listener); }
void removeHyperlinkListener(HyperlinkListener listener) { //Removes a hyperlink listener. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JEditorPane.java/clean/core/src/classpath/javax/javax/swing/JEditorPane.java
throws IOException
void setPage(String url) { // Sets the current URL being displayed. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JEditorPane.java/clean/core/src/classpath/javax/javax/swing/JEditorPane.java
loc);
loc, ClassLoader.getSystemClassLoader());
private static BreakIterator getInstance (String type, Locale loc) { String className; try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc); className = res.getString(type); } catch (MissingResourceException x) { return null; } try ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BreakIterator.java/clean/core/src/classpath/java/java/text/BreakIterator.java
src.position(src.position() + len);
public int write (ByteBuffer src) throws IOException { int len = src.remaining (); if (src.hasArray()) { byte[] buffer = src.array(); write(buffer, src.arrayOffset() + src.position(), len); } else { // Use a more efficient native method! FIXME! byte[] buffer = new byte [len]; src.get (buf...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/FileChannelImpl.java/buggy/core/src/classpath/gnu/gnu/java/nio/channels/FileChannelImpl.java
public abstract int read(ByteBuffer dst) throws IOException;
public abstract long read(ByteBuffer[] dsts, int offset, int length) throws IOException;
public abstract int read(ByteBuffer dst) throws IOException;
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/FileChannel.java/buggy/core/src/classpath/java/java/nio/channels/FileChannel.java
public abstract int write (ByteBuffer src) throws IOException;
public final long write(ByteBuffer[] srcs) throws IOException { long result = 0; for (int i = 0; i < srcs.length; i++) result += write(srcs[i]); return result; }
public abstract int write (ByteBuffer src) throws IOException;
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/FileChannel.java/buggy/core/src/classpath/java/java/nio/channels/FileChannel.java
if (! (obj instanceof FieldPosition))
if (this == obj) return true; if (obj == null || obj.getClass() != this.getClass())
public boolean equals (Object obj) { if (! (obj instanceof FieldPosition)) return false; FieldPosition fp = (FieldPosition) obj; return (field_id == fp.field_id && begin == fp.begin && end == fp.end); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/FieldPosition.java/clean/core/src/classpath/java/java/text/FieldPosition.java
&& (field_attribute == fp.field_attribute || (field_attribute != null && field_attribute.equals(fp.field_attribute)))
public boolean equals (Object obj) { if (! (obj instanceof FieldPosition)) return false; FieldPosition fp = (FieldPosition) obj; return (field_id == fp.field_id && begin == fp.begin && end == fp.end); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/FieldPosition.java/clean/core/src/classpath/java/java/text/FieldPosition.java
return (getClass ().getName () + "[field=" + getField () + ",beginIndex=" + getBeginIndex () + ",endIndex=" + getEndIndex () + "]");
return (getClass ().getName () + "[field=" + getField () + ",attribute=" + getFieldAttribute () + ",beginIndex=" + getBeginIndex () + ",endIndex=" + getEndIndex () + "]");
public String toString () { return (getClass ().getName () + "[field=" + getField () + ",beginIndex=" + getBeginIndex () + ",endIndex=" + getEndIndex () + "]"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/FieldPosition.java/clean/core/src/classpath/java/java/text/FieldPosition.java
equals(Object obj) {
public final boolean equals (Object obj) {
equals(Object obj){ if (obj == this) return(true); else return(false);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/AttributedCharacterIterator.java/clean/core/src/classpath/java/java/text/AttributedCharacterIterator.java
return(true);
return true;
equals(Object obj){ if (obj == this) return(true); else return(false);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/AttributedCharacterIterator.java/clean/core/src/classpath/java/java/text/AttributedCharacterIterator.java
return(false); }
return false; }
equals(Object obj){ if (obj == this) return(true); else return(false);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/AttributedCharacterIterator.java/clean/core/src/classpath/java/java/text/AttributedCharacterIterator.java
hashCode() { return(super.hashCode()); }
public final int hashCode() { return super.hashCode(); }
hashCode(){ return(super.hashCode());}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/AttributedCharacterIterator.java/clean/core/src/classpath/java/java/text/AttributedCharacterIterator.java
toString() { return(getClass().getName() + "(" + getName() + ")"); }
public String toString() { return getClass().getName() + "(" + getName() + ")"; }
toString(){ return(getClass().getName() + "(" + getName() + ")");}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/AttributedCharacterIterator.java/clean/core/src/classpath/java/java/text/AttributedCharacterIterator.java
if (maxTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension(maxTotalColumnWidth, table.getRowCount()* (table.getRowHeight()+table.getRowMargin()));
return new Dimension(maxTotalColumnWidth, getHeight());
public Dimension getMaximumSize(JComponent comp) { int maxTotalColumnWidth = 0; for (int i = 0; i < table.getColumnCount(); i++) maxTotalColumnWidth += table.getColumnModel().getColumn(i).getMaxWidth(); if (maxTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java
if (minTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension(minTotalColumnWidth, table.getRowCount()*table.getRowHeight());
return new Dimension(minTotalColumnWidth, getHeight());
public Dimension getMinimumSize(JComponent comp) { int minTotalColumnWidth = 0; for (int i = 0; i < table.getColumnCount(); i++) minTotalColumnWidth += table.getColumnModel().getColumn(i).getMinWidth(); if (minTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java
int width = table.getColumnModel().getTotalColumnWidth(); int height = table.getRowCount() * (table.getRowHeight()+table.getRowMargin()); return new Dimension(width, height);
int prefTotalColumnWidth = 0; for (int i = 0; i < table.getColumnCount(); i++) { TableColumn col = table.getColumnModel().getColumn(i); prefTotalColumnWidth += col.getPreferredWidth(); } return new Dimension(prefTotalColumnWidth, getHeight());
public Dimension getPreferredSize(JComponent comp) { int width = table.getColumnModel().getTotalColumnWidth(); int height = table.getRowCount() * (table.getRowHeight()+table.getRowMargin()); return new Dimension(width, height); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java
y += table.getRowHeight(r);
y += table.getRowHeight(r);
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java
private static int getCharUnit(char[] input, int index, CharUnit unit) throws REException {
private static int getCharUnit(char[] input, int index, CharUnit unit, boolean quot) throws REException {
private static int getCharUnit(char[] input, int index, CharUnit unit) throws REException { unit.ch = input[index++]; if (unit.bk = (unit.ch == '\\')) if (index < input.length) unit.ch = input[index++]; else throw new REException(getLocalizedMessage("ends.with.backslash"),REException.REG_ESCAPE,index)...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
if (unit.bk = (unit.ch == '\\'))
unit.bk = (unit.ch == '\\' && (!quot || index >= input.length || input[index] == 'E')); if (unit.bk)
private static int getCharUnit(char[] input, int index, CharUnit unit) throws REException { unit.ch = input[index++]; if (unit.bk = (unit.ch == '\\')) if (index < input.length) unit.ch = input[index++]; else throw new REException(getLocalizedMessage("ends.with.backslash"),REException.REG_ESCAPE,index)...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
index = getCharUnit(input,index,unit);
index = getCharUnit(input,index,unit,false);
private int getMinMax(char[] input,int index,IntPair minMax,RESyntax syntax) throws REException { // Precondition: input[index-1] == '{', minMax != null boolean mustMatch = !syntax.get(RESyntax.RE_NO_BK_BRACES); int startIndex = index; if (index == input.length) { if (mustMatch) throw new REEx...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
while (((index = getCharUnit(input,index,unit)) != input.length) && Character.isDigit(unit.ch))
while (((index = getCharUnit(input,index,unit,false)) != input.length) && Character.isDigit(unit.ch))
private int getMinMax(char[] input,int index,IntPair minMax,RESyntax syntax) throws REException { // Precondition: input[index-1] == '{', minMax != null boolean mustMatch = !syntax.get(RESyntax.RE_NO_BK_BRACES); int startIndex = index; if (index == input.length) { if (mustMatch) throw new REEx...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
index = getCharUnit(pattern,index,unit);
index = getCharUnit(pattern,index,unit,quot); if (unit.bk) if (unit.ch == 'Q') { quot = true; continue; } else if (unit.ch == 'E') { quot = false; continue; } if (quot) unit.bk = false;
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
if ( ( (unit.ch == '|' && (syntax.get(RESyntax.RE_NO_BK_VBAR) ^ unit.bk)) || (syntax.get(RESyntax.RE_NEWLINE_ALT) && (unit.ch == '\n') && !unit.bk) )
if ( ( (unit.ch == '|' && (syntax.get(RESyntax.RE_NO_BK_VBAR) ^ (unit.bk || quot))) || (syntax.get(RESyntax.RE_NEWLINE_ALT) && (unit.ch == '\n') && !(unit.bk || quot)) )
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
else if ((unit.ch == '{') && syntax.get(RESyntax.RE_INTERVALS) && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ unit.bk)) {
else if ((unit.ch == '{') && syntax.get(RESyntax.RE_INTERVALS) && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ (unit.bk || quot))) {
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
else if ((unit.ch == '[') && !unit.bk) {
else if ((unit.ch == '[') && !(unit.bk || quot)) {
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
else if ((unit.ch == '(') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk)) {
else if ((unit.ch == '(') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot))) {
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
while ( ((nextIndex = getCharUnit(pattern,endIndex,unit)) > 0) && !(nested == 0 && (unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk)) )
while ( ((nextIndex = getCharUnit(pattern,endIndex,unit,false)) > 0) && !(nested == 0 && (unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot))) )
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
else if (unit.ch == '(' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk))
else if (unit.ch == '(' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot)))
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
else if (unit.ch == ')' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk))
else if (unit.ch == ')' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot)))
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
else if (!syntax.get(RESyntax.RE_UNMATCHED_RIGHT_PAREN_ORD) && ((unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk))) {
else if (!syntax.get(RESyntax.RE_UNMATCHED_RIGHT_PAREN_ORD) && ((unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot)))) {
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
else if ((unit.ch == '^') && !unit.bk) {
else if ((unit.ch == '^') && !(unit.bk || quot)) {
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
else if ((unit.ch == '$') && !unit.bk) {
else if ((unit.ch == '$') && !(unit.bk || quot)) {
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
else if ((unit.ch == '.') && !unit.bk) {
else if ((unit.ch == '.') && !(unit.bk || quot)) {
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
else if ((unit.ch == '*') && !unit.bk) {
else if ((unit.ch == '*') && !(unit.bk || quot)) {
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
else if ((unit.ch == '+') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ unit.bk)) {
else if ((unit.ch == '+') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ (unit.bk || quot))) {
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
if (currentToken instanceof RETokenRepeated) throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,index); if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)
if (currentToken instanceof RETokenRepeated) { RETokenRepeated tokenRep = (RETokenRepeated)currentToken; if (syntax.get(RESyntax.RE_POSSESSIVE_OPS) && !tokenRep.isPossessive() && !tokenRep.isStingy()) tokenRep.makePossessive(); else throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,in...
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
if (currentToken.getMinimumLength() == 0)
else if (currentToken.getMinimumLength() == 0)
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
currentToken = setRepeated(currentToken,1,Integer.MAX_VALUE,index);
else currentToken = setRepeated(currentToken,1,Integer.MAX_VALUE,index);
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
else if ((unit.ch == '?') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ unit.bk)) {
else if ((unit.ch == '?') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ (unit.bk || quot))) {
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
if (syntax.get(RESyntax.RE_STINGY_OPS) && !((RETokenRepeated)currentToken).isStingy()) ((RETokenRepeated)currentToken).makeStingy(); else throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,index); } else if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWo...
RETokenRepeated tokenRep = (RETokenRepeated)currentToken; if (syntax.get(RESyntax.RE_STINGY_OPS) && !tokenRep.isStingy() && !tokenRep.isPossessive()) tokenRep.makeStingy(); else throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,index); } else if (currentToken instanceof RETokenWordBound...
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d1d376182f968e79fabd4973eccaeb923e1fd5b9/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
empty = false;
void clear(int index) { offset = index; this.index = 0; for (int i = 0; i < start.length; i++) { start[i] = end[i] = -1; } next = null; // cut off alternates }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/REMatch.java/buggy/core/src/classpath/gnu/gnu/regexp/REMatch.java
RETokenOneOf(int subIndex, Vector options, boolean negative) {
RETokenOneOf(int subIndex, String optionsStr, boolean negative, boolean insens) {
RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); this.options = options; this.negative = negative; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/RETokenOneOf.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenOneOf.java
this.options = options;
options = new Vector();
RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); this.options = options; this.negative = negative; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/RETokenOneOf.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenOneOf.java
for (int i = 0; i < optionsStr.length(); i++) options.addElement(new RETokenChar(subIndex,optionsStr.charAt(i),insens));
RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); this.options = options; this.negative = negative; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/RETokenOneOf.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenOneOf.java
alwaysEmpty = (min == 0 && max == 0);
RETokenRepeated(int subIndex, REToken token, int min, int max) { super(subIndex); this.token = token; this.min = min; this.max = max; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/RETokenRepeated.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenRepeated.java
public void addCellEditorListener(CellEditorListener listener) { }
public void addCellEditorListener (CellEditorListener listener) { listenerList.add (CellEditorListener.class, listener); }
public void addCellEditorListener(CellEditorListener listener) { // TODO } // addCellEditorListener()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractCellEditor.java/clean/core/src/classpath/javax/javax/swing/AbstractCellEditor.java
protected void fireEditingCanceled() { }
protected void fireEditingCanceled() { CellEditorListener[] listeners = getCellEditorListeners(); for (int index = 0; index < listeners.length; index++) { listeners [index].editingCanceled (changeEvent); } }
protected void fireEditingCanceled() { // TODO } // fireEditingCanceled()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractCellEditor.java/clean/core/src/classpath/javax/javax/swing/AbstractCellEditor.java
protected void fireEditingStopped() { }
protected void fireEditingStopped() { CellEditorListener[] listeners = getCellEditorListeners(); for (int index = 0; index < listeners.length; index++) { listeners [index].editingStopped (changeEvent); } }
protected void fireEditingStopped() { // TODO } // fireEditingStopped()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractCellEditor.java/clean/core/src/classpath/javax/javax/swing/AbstractCellEditor.java
public void removeCellEditorListener(CellEditorListener listener) { }
public void removeCellEditorListener (CellEditorListener listener) { listenerList.remove (CellEditorListener.class, listener); }
public void removeCellEditorListener(CellEditorListener listener) { // TODO } // removeCellEditorListener()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractCellEditor.java/clean/core/src/classpath/javax/javax/swing/AbstractCellEditor.java
throws XMLStreamException
public boolean hasNext() throws XMLStreamException { // XXX ??? return super.hasNext(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/FilteredEventReader.java/buggy/core/src/classpath/gnu/gnu/xml/stream/FilteredEventReader.java
public XMLEvent next() throws XMLStreamException
public Object next()
public XMLEvent next() throws XMLStreamException { XMLEvent ret; do { ret = super.next(); } while (!filter.accept(ret)); return ret; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/FilteredEventReader.java/buggy/core/src/classpath/gnu/gnu/xml/stream/FilteredEventReader.java
XMLEvent ret; do
try
public XMLEvent next() throws XMLStreamException { XMLEvent ret; do { ret = super.next(); } while (!filter.accept(ret)); return ret; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/FilteredEventReader.java/buggy/core/src/classpath/gnu/gnu/xml/stream/FilteredEventReader.java
ret = super.next();
return nextEvent();
public XMLEvent next() throws XMLStreamException { XMLEvent ret; do { ret = super.next(); } while (!filter.accept(ret)); return ret; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/FilteredEventReader.java/buggy/core/src/classpath/gnu/gnu/xml/stream/FilteredEventReader.java
while (!filter.accept(ret)); return ret;
catch (XMLStreamException e) { RuntimeException e2 = new RuntimeException(); e2.initCause(e); throw e2; }
public XMLEvent next() throws XMLStreamException { XMLEvent ret; do { ret = super.next(); } while (!filter.accept(ret)); return ret; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/FilteredEventReader.java/buggy/core/src/classpath/gnu/gnu/xml/stream/FilteredEventReader.java
public EventReaderDelegate(XMLEventReader reader)
public EventReaderDelegate()
public EventReaderDelegate(XMLEventReader reader) { parent = reader; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/EventReaderDelegate.java/buggy/core/src/classpath/javax/javax/xml/stream/util/EventReaderDelegate.java
parent = reader;
public EventReaderDelegate(XMLEventReader reader) { parent = reader; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/EventReaderDelegate.java/buggy/core/src/classpath/javax/javax/xml/stream/util/EventReaderDelegate.java
throws XMLStreamException
public boolean hasNext() throws XMLStreamException { if (parent != null) return parent.hasNext(); return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/EventReaderDelegate.java/buggy/core/src/classpath/javax/javax/xml/stream/util/EventReaderDelegate.java
public XMLEvent next() throws XMLStreamException
public Object next()
public XMLEvent next() throws XMLStreamException { if (parent != null) return parent.next(); throw new NoSuchElementException(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/EventReaderDelegate.java/buggy/core/src/classpath/javax/javax/xml/stream/util/EventReaderDelegate.java
if (splitPane.hasFocus()) { g.setColor(UIManager.getColor("SplitPane.dividerFocusColor")); g.fillRect(0, 0, s.width, s.height); }
public void paint(Graphics g) { Dimension s = getSize(); // Paint border if one exists. Border border = getBorder(); if (border != null) border.paintBorder(this, g, 0, 0, s.width, s.height); MetalUtils.fillMetalPattern(splitPane, g, 2, 2, s.width - 4, s.height - 4, ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/MetalSplitPaneDivider.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalSplitPaneDivider.java
private static Icon currentIcon(AbstractButton b)
static Icon currentIcon(AbstractButton b)
private static Icon currentIcon(AbstractButton b) { Icon i = b.getIcon(); ButtonModel model = b.getModel(); if (model.isPressed() && b.getPressedIcon() != null) i = b.getPressedIcon(); else if (model.isRollover()) { if (b.isSelected() && b.getRolloverSelectedIcon() != null) i = ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/BasicButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicButtonUI.java
else paintButtonNormal(g, vr, c);
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); if (b.isBorderPainted()) SwingUtilities.calculateInnerArea(b, vr); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/BasicButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicButtonUI.java
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); menuItem.setBackground(defaults.getColor("MenuItem.background")); menuItem.setBorder(defaults.getBorder("MenuItem.border")); menuItem.setFont(defaults.getFont("MenuItem.font")); menuItem.setForeground(defaults.getColor("MenuItem.foreground")); menuItem.setMargi...
LookAndFeel.installBorder(menuItem, "MenuItem.border"); LookAndFeel.installColorsAndFont(menuItem, "MenuItem.background", "MenuItem.foreground", "MenuItem.font"); menuItem.setMargin(UIManager.getInsets("MenuItem.margin")); acceleratorFont = UIManager.getFont("MenuItem.acceleratorFont"); acceleratorForeground = UIManage...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); menuItem.setBackground(defaults.getColor("MenuItem.background")); menuItem.setBorder(defaults.getBorder("MenuItem.border")); menuItem.setFont(defaults.getFont("MenuItem.font")); menuItem.setForeground(defaults...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicMenuItemUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuItemUI.java
menuItem.setOpaque(true);
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); menuItem.setBackground(defaults.getColor("MenuItem.background")); menuItem.setBorder(defaults.getBorder("MenuItem.border")); menuItem.setFont(defaults.getFont("MenuItem.font")); menuItem.setForeground(defaults...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicMenuItemUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuItemUI.java
NIOServerSocket socket = (NIOServerSocket) ((ServerSocketChannelImpl) ch).socket(); return socket.getPlainSocketImpl().getNativeFD();
try { return ((ServerSocketChannelImpl) ch).getVMChannel().getState().getNativeFD(); } catch (IOException ioe) { throw new IllegalStateException(ioe); }
public int getNativeFD() { NIOServerSocket socket = (NIOServerSocket) ((ServerSocketChannelImpl) ch).socket(); return socket.getPlainSocketImpl().getNativeFD(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b178c65c33dbad8dc1c9e11c353aa40d71b61453/ServerSocketChannelSelectionKey.java/clean/core/src/classpath/gnu/gnu/java/nio/ServerSocketChannelSelectionKey.java
if (loader == null) loader = ClassLoader.getSystemClassLoader();
ProxyType(ClassLoader loader, Class[] interfaces) { if (loader == null) loader = ClassLoader.getSystemClassLoader(); this.loader = loader; this.interfaces = interfaces; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/Proxy.java/clean/core/src/classpath/java/java/lang/reflect/Proxy.java
int hash = loader.hashCode();
int hash = loader == null ? 0 : loader.hashCode();
public int hashCode() { //loader is always not null int hash = loader.hashCode(); for (int i = 0; i < interfaces.length; i++) hash = hash * 31 + interfaces[i].hashCode(); return hash; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/Proxy.java/clean/core/src/classpath/java/java/lang/reflect/Proxy.java
return getDefaultProtectionDomain();
return Policy.getPolicy().getPermissions(cs);
public Object run() { return getDefaultProtectionDomain(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f04abefd7ae06ec51e8f4cbc12f3512d60f9391d/ClassLoader.java/buggy/core/src/classpath/vm/java/lang/ClassLoader.java
VmType<?> vmClass = vmClassLoader.findLoadedClass(name);
VmType< ? > vmClass = vmClassLoader.findLoadedClass(name);
protected final Class findLoadedClass(String name) { VmType<?> vmClass = vmClassLoader.findLoadedClass(name); if (vmClass != null) { return vmClass.asClass(); } else { return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f04abefd7ae06ec51e8f4cbc12f3512d60f9391d/ClassLoader.java/buggy/core/src/classpath/vm/java/lang/ClassLoader.java
setEditorKit(createDefaultEditorKit());
public JEditorPane() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JEditorPane.java/clean/core/src/classpath/javax/javax/swing/JEditorPane.java
return ctype;
return getEditorKit().getContentType();
public String getContentType() { return ctype; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JEditorPane.java/clean/core/src/classpath/javax/javax/swing/JEditorPane.java
return kit;
return editorKit;
public EditorKit getEditorKit() { return kit; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JEditorPane.java/clean/core/src/classpath/javax/javax/swing/JEditorPane.java
return kit;
return editorKit;
public EditorKit getEditorKitForContentType(String type) { return kit; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JEditorPane.java/clean/core/src/classpath/javax/javax/swing/JEditorPane.java
return page_url;
return page;
public URL getPage() { return page_url; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JEditorPane.java/clean/core/src/classpath/javax/javax/swing/JEditorPane.java
ctype = type; invalidate(); repaint();
if (editorKit != null && editorKit.getContentType().equals(type)) return; EditorKit kit = getEditorKitForContentType(type); if (kit != null) setEditorKit(kit);
public void setContentType(String type) { ctype = type; invalidate(); repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JEditorPane.java/clean/core/src/classpath/javax/javax/swing/JEditorPane.java
public void setEditorKit(EditorKit kit)
public void setEditorKit(EditorKit newValue)
public void setEditorKit(EditorKit kit) { this.kit = kit; invalidate(); repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JEditorPane.java/clean/core/src/classpath/javax/javax/swing/JEditorPane.java
this.kit = kit;
if (editorKit == newValue) return; if (editorKit != null) editorKit.deinstall(this); EditorKit oldValue = editorKit; editorKit = newValue; if (editorKit != null) { editorKit.install(this); setDocument(editorKit.createDefaultDocument()); } firePropertyChange("editorKit", oldValue, newValue);
public void setEditorKit(EditorKit kit) { this.kit = kit; invalidate(); repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JEditorPane.java/clean/core/src/classpath/javax/javax/swing/JEditorPane.java
ctype = type; setEditorKit(k);
public void setEditorKitForContentType(String type, EditorKit k) { ctype = type; setEditorKit(k); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JEditorPane.java/clean/core/src/classpath/javax/javax/swing/JEditorPane.java
setPage(new URL(url));
public void setPage(String url) throws IOException { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JEditorPane.java/clean/core/src/classpath/javax/javax/swing/JEditorPane.java
DefaultMutableTreeNode last = null;
TreeNode last = null;
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
last = (DefaultMutableTreeNode) start.getLastPathComponent();
last = (TreeNode) start.getLastPathComponent();
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java