rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
public abstract void setValue(Object value);
void setValue(Object value);
public abstract void setValue(Object value);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/PropertyEditor.java/buggy/core/src/classpath/java/java/beans/PropertyEditor.java
public abstract boolean supportsCustomEditor();
boolean supportsCustomEditor();
public abstract boolean supportsCustomEditor();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/PropertyEditor.java/buggy/core/src/classpath/java/java/beans/PropertyEditor.java
protected AssemblerModule(final Map labels) {
protected AssemblerModule(final Map labels, final Map constants) {
protected AssemblerModule(final Map labels) { this.labels = labels; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0eb77a721758241efd6a7a22288b70242d8c842a/AssemblerModule.java/buggy/builder/src/builder/org/jnode/jnasm/assembler/AssemblerModule.java
this.constants = constants;
protected AssemblerModule(final Map labels) { this.labels = labels; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0eb77a721758241efd6a7a22288b70242d8c842a/AssemblerModule.java/buggy/builder/src/builder/org/jnode/jnasm/assembler/AssemblerModule.java
return new TextHitInfo();
return new TextHitInfo (offset, true);
public static TextHitInfo afterOffset(int offset) { return new TextHitInfo(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/TextHitInfo.java/clean/core/src/classpath/java/java/awt/font/TextHitInfo.java
return new TextHitInfo();
return new TextHitInfo (offset, false);
public static TextHitInfo beforeOffset(int offset) { return new TextHitInfo(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/TextHitInfo.java/clean/core/src/classpath/java/java/awt/font/TextHitInfo.java
public boolean equals(Object obj) { if(obj instanceof TextHitInfo) return this.equals((TextHitInfo) obj); return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/TextHitInfo.java/clean/core/src/classpath/java/java/awt/font/TextHitInfo.java
return -1;
return charIndex;
public int getCharIndex() { return -1; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/TextHitInfo.java/clean/core/src/classpath/java/java/awt/font/TextHitInfo.java
return -1;
return (leadingEdge ? charIndex : charIndex + 1);
public int getInsertionIndex() { return -1; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/TextHitInfo.java/clean/core/src/classpath/java/java/awt/font/TextHitInfo.java
return new TextHitInfo();
return new TextHitInfo (charIndex + offset, leadingEdge);
public TextHitInfo getOffsetHit(int offset) { return new TextHitInfo(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/TextHitInfo.java/clean/core/src/classpath/java/java/awt/font/TextHitInfo.java
return new TextHitInfo();
return (leadingEdge ? trailing (charIndex - 1) : leading (charIndex + 1));
public TextHitInfo getOtherHit() { return new TextHitInfo(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/TextHitInfo.java/clean/core/src/classpath/java/java/awt/font/TextHitInfo.java
return getCharIndex();
return charIndex;
public int hashCode() { return getCharIndex(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/TextHitInfo.java/clean/core/src/classpath/java/java/awt/font/TextHitInfo.java
return false;
return leadingEdge;
public boolean isLeadingEdge() { return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/TextHitInfo.java/clean/core/src/classpath/java/java/awt/font/TextHitInfo.java
return new TextHitInfo();
return new TextHitInfo (charIndex, true);
public static TextHitInfo leading(int charIndex) { return new TextHitInfo(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/TextHitInfo.java/clean/core/src/classpath/java/java/awt/font/TextHitInfo.java
return "";
return "TextHitInfo[" + charIndex + (leadingEdge ? "L" : "T" ) + "]";
public String toString() { return ""; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/TextHitInfo.java/clean/core/src/classpath/java/java/awt/font/TextHitInfo.java
return new TextHitInfo();
return new TextHitInfo (charIndex, false);
public static TextHitInfo trailing(int charIndex) { return new TextHitInfo(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/TextHitInfo.java/clean/core/src/classpath/java/java/awt/font/TextHitInfo.java
if (replace) inputAttributes.removeAttributes(inputAttributes);
public void setCharacterAttributes(AttributeSet attribute, boolean replace) { int dot = getCaret().getDot(); int start = getSelectionStart(); int end = getSelectionEnd(); if (start == dot && end == dot) // There is no selection, update insertAttributes instead ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JTextPane.java/buggy/core/src/classpath/javax/javax/swing/JTextPane.java
{ return new PlainEditorKit(); }
{ return new PlainEditorKit(); }
protected EditorKit createDefaultEditorKit() { return new PlainEditorKit(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JEditorPane.java/buggy/core/src/classpath/javax/javax/swing/JEditorPane.java
EditorKit getEditorKit() { return kit; }
public EditorKit getEditorKit() { return kit; }
EditorKit getEditorKit() { return kit; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JEditorPane.java/buggy/core/src/classpath/javax/javax/swing/JEditorPane.java
{ return "EditorPaneUI"; }
{ return "EditorPaneUI"; }
public String getUIClassID() { return "EditorPaneUI"; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JEditorPane.java/buggy/core/src/classpath/javax/javax/swing/JEditorPane.java
void insertString(int offset, String str, AttributeSet a);
void insertString(int offset, String str, AttributeSet a) throws BadLocationException;
void insertString(int offset, String str, AttributeSet a);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/Document.java/buggy/core/src/classpath/javax/javax/swing/text/Document.java
{ return "JEditorPane"; }
{ return "JEditorPane"; }
protected String paramString() { return "JEditorPane"; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JEditorPane.java/buggy/core/src/classpath/javax/javax/swing/JEditorPane.java
void replaceSelection(String content)
public void replaceSelection(String content)
void replaceSelection(String content) { //Replaces the currently selected content with new content represented by the given string. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JEditorPane.java/buggy/core/src/classpath/javax/javax/swing/JEditorPane.java
void replaceSelection(String content) { //Replaces the currently selected content with new content represented by the given string. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JEditorPane.java/buggy/core/src/classpath/javax/javax/swing/JEditorPane.java
void setEditorKit(EditorKit kit)
public void setEditorKit(EditorKit kit)
void setEditorKit(EditorKit kit) { this.kit = kit; invalidate(); repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JEditorPane.java/buggy/core/src/classpath/javax/javax/swing/JEditorPane.java
return dropAction & targetActions & ((DragSourceContext) source).getSourceActions();
return (dropAction & targetActions & ((DragSourceContext) source).getSourceActions());
public int getDropAction() { return dropAction & targetActions & ((DragSourceContext) source).getSourceActions(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/DragSourceDragEvent.java/buggy/core/src/classpath/java/java/awt/dnd/DragSourceDragEvent.java
public StandardVGAIO(ResourceOwner owner, MemoryResource mem) throws ResourceNotFreeException {
public StandardVGAIO(ResourceOwner owner, MemoryResource mem) throws ResourceNotFreeException, DriverException {
public StandardVGAIO(ResourceOwner owner, MemoryResource mem) throws ResourceNotFreeException { try { ResourceManager rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME); vgaIO = rm.claimIOResource(owner, VGA_FIRST_PORT, VGA_LAST_PORT - VGA_FIRST_PORT + 1); this.mem = mem; current_mode = getColo...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/StandardVGAIO.java/buggy/gui/src/driver/org/jnode/driver/video/vga/StandardVGAIO.java
vgaIO = rm.claimIOResource(owner, VGA_FIRST_PORT, VGA_LAST_PORT - VGA_FIRST_PORT + 1);
vgaIO = claimPorts(rm, owner, VGA_FIRST_PORT, VGA_LAST_PORT - VGA_FIRST_PORT + 1);
public StandardVGAIO(ResourceOwner owner, MemoryResource mem) throws ResourceNotFreeException { try { ResourceManager rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME); vgaIO = rm.claimIOResource(owner, VGA_FIRST_PORT, VGA_LAST_PORT - VGA_FIRST_PORT + 1); this.mem = mem; current_mode = getColo...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/StandardVGAIO.java/buggy/gui/src/driver/org/jnode/driver/video/vga/StandardVGAIO.java
public final void copyArea(int srcX, int srcY, int w, int h, int dstX, int dstY) { if ((dstY < this.height) && (dstX < this.width)) { if (dstX < 0) { srcX -= dstX; w += dstX; dstX = 0; } if (dstY < 0) { srcY -= dstY; h += dstY; dstY = 0; } w = Math.min(w, width - dstX); h = Math.min(h, height - dstY); if ((w > 0) && (h...
public final void copyArea(int srcX, int srcY, int w, int h, int dstX, int dstY) { if ((dstY < this.height) && (dstX < this.width)) { if (dstX < 0) { srcX -= dstX; w += dstX; dstX = 0; } if (dstY < 0) { srcY -= dstY; h += dstY; dstY = 0; } w = Math.min(w, width - dstX); h = Math.min(h, height - dstY); if ((w > 0) && (h...
public final void copyArea(int srcX, int srcY, int w, int h, int dstX, int dstY) { if ((dstY < this.height) && (dstX < this.width)) { if (dstX < 0) { srcX -= dstX; w += dstX; dstX = 0; } if (dstY < 0) { srcY -= dstY; h += dstY; dstY = 0; } w = Math.min(w, width - dstX); h = Math.min(h, h...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1673c0916d234cb0a5f708f465f57aca2db213b2/BitmapGraphics.java/buggy/gui/src/awt/org/jnode/awt/util/BitmapGraphics.java
}
}
public final void copyArea(int srcX, int srcY, int w, int h, int dstX, int dstY) { if ((dstY < this.height) && (dstX < this.width)) { if (dstX < 0) { srcX -= dstX; w += dstX; dstX = 0; } if (dstY < 0) { srcY -= dstY; h += dstY; dstY = 0; } w = Math.min(w, width - dstX); h = Math.min(h, h...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1673c0916d234cb0a5f708f465f57aca2db213b2/BitmapGraphics.java/buggy/gui/src/awt/org/jnode/awt/util/BitmapGraphics.java
public final void drawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int w, int h, int bgColor) { if ((dstY < this.height) && (dstX < this.width)) { if (dstX < 0) { srcX -= dstX; w += dstX; dstX = 0; } if (dstY < 0) { srcY -= dstY; h += dstY; dstY = 0; } w = Math.min(w, width - dstX); h = Math.min(h, height ...
public final void drawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int w, int h) { if ((dstY < this.height) && (dstX < this.width)) { if (dstX < 0) { srcX -= dstX; w += dstX; dstX = 0; } if (dstY < 0) { srcY -= dstY; h += dstY; dstY = 0; } w = Math.min(w, width - dstX); h = Math.min(h, height - dstY); if (...
public final void drawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int w, int h, int bgColor) { if ((dstY < this.height) && (dstX < this.width)) { if (dstX < 0) { srcX -= dstX; w += dstX; dstX = 0; } if (dstY < 0) { srcY -= dstY; h += dstY; dstY = 0; } w = Math.min(w, width - ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1673c0916d234cb0a5f708f465f57aca2db213b2/BitmapGraphics.java/buggy/gui/src/awt/org/jnode/awt/util/BitmapGraphics.java
try { if ((y >= 0) && (y < height) && (x < width)) { if (x < 0) { w += x; x = 0; } w = Math.min(w, width - x); if (w > 0) { doDrawLine(x, y, w, color, mode); } } } catch (IndexOutOfBoundsException ex) { log.error("Index out of bounds: x=" + x + ", y=" + y + ", w=" + w + ", width=" + width + ", height=" + height); } }
try { if ((y >= 0) && (y < height) && (x < width)) { if (x < 0) { w += x; x = 0; } w = Math.min(w, width - x); if (w > 0) { doDrawLine(x, y, w, color, mode); } } } catch (IndexOutOfBoundsException ex) { log.error("Index out of bounds: x=" + x + ", y=" + y + ", w=" + w + ", width=" + width + ", height=" + height); } }
public final void drawLine(int x, int y, int w, int color, int mode) { try { if ((y >= 0) && (y < height) && (x < width)) { if (x < 0) { w += x; x = 0; } w = Math.min(w, width - x); if (w > 0) { doDrawLine(x, y, w, color, mode); } } } catch (IndexOutOfBoundsException ex) { log.error(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1673c0916d234cb0a5f708f465f57aca2db213b2/BitmapGraphics.java/buggy/gui/src/awt/org/jnode/awt/util/BitmapGraphics.java
try { if ((x >= 0) && (x < width) && (y >= 0) && (y < height)) { doDrawPixels(x, y, count, color, mode); } } catch (IndexOutOfBoundsException ex) { log.error("Index out of bounds: x=" + x + ", y=" + y + ", width=" + width + ", height=" + height); } }
try { if ((x >= 0) && (x < width) && (y >= 0) && (y < height)) { doDrawPixels(x, y, count, color, mode); } } catch (IndexOutOfBoundsException ex) { log.error("Index out of bounds: x=" + x + ", y=" + y + ", width=" + width + ", height=" + height); } }
public final void drawPixels(int x, int y, int count, int color, int mode) { try { if ((x >= 0) && (x < width) && (y >= 0) && (y < height)) { doDrawPixels(x, y, count, color, mode); } } catch (IndexOutOfBoundsException ex) { log.error("Index out of bounds: x=" + x + ", y=" + y + ", width=" + width + ", heig...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1673c0916d234cb0a5f708f465f57aca2db213b2/BitmapGraphics.java/buggy/gui/src/awt/org/jnode/awt/util/BitmapGraphics.java
public Identity(String name)
protected Identity()
public Identity(String name) { this.name = name; this.scope = null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/217dae2077114aeb271c90f647f5baacd1bf28b4/Identity.java/buggy/core/src/classpath/java/java/security/Identity.java
this.name = name; this.scope = null;
public Identity(String name) { this.name = name; this.scope = null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/217dae2077114aeb271c90f647f5baacd1bf28b4/Identity.java/buggy/core/src/classpath/java/java/security/Identity.java
public GeneralSecurityException(String msg)
public GeneralSecurityException()
public GeneralSecurityException(String msg) { super(msg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/375948b746a7ee130ddcfdc51ac2e51092612050/GeneralSecurityException.java/buggy/core/src/classpath/java/java/security/GeneralSecurityException.java
super(msg);
public GeneralSecurityException(String msg) { super(msg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/375948b746a7ee130ddcfdc51ac2e51092612050/GeneralSecurityException.java/buggy/core/src/classpath/java/java/security/GeneralSecurityException.java
Rectangle r = a.getBounds(); childAllocation(childIndex, r); Shape result = child.modelToView(pos, r, bias); if (result == null) throw new AssertionError("" + child.getClass().getName() + ".modelToView() must not return null"); return result;
Shape childAlloc = getChildAllocation(childIndex, a); if (childAlloc == null) ret = createDefaultLocation(a, bias); Shape result = child.modelToView(pos, childAlloc, bias); if (result != null) ret = result; else ret = createDefaultLocation(a, bias);
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex != -1) { View child = getView(childIndex); Rectangle r = a.getBounds(); childAllocation(childIndex, r); Shape result = child....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/CompositeView.java/buggy/core/src/classpath/javax/javax/swing/text/CompositeView.java
throw new BadLocationException("No child view for the specified location", pos);
ret = createDefaultLocation(a, bias); return ret;
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex != -1) { View child = getView(childIndex); Rectangle r = a.getBounds(); childAllocation(childIndex, r); Shape result = child....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/CompositeView.java/buggy/core/src/classpath/javax/javax/swing/text/CompositeView.java
public int getViewIndex(int pos, Position.Bias b)
public int getViewIndex(float x, float y, Shape allocation)
public int getViewIndex(int pos, Position.Bias b) { return -1; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
public BadLocationException (String str, int offset)
public BadLocationException(String str, int offset)
public BadLocationException (String str, int offset) { super (str); this.offset = offset; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/BadLocationException.java/buggy/core/src/classpath/javax/javax/swing/text/BadLocationException.java
super (str);
super(str);
public BadLocationException (String str, int offset) { super (str); this.offset = offset; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/BadLocationException.java/buggy/core/src/classpath/javax/javax/swing/text/BadLocationException.java
if (parent == null) { int numChildren = getViewCount(); for (int i = 0; i < numChildren; i++) getView(i).setParent(this); }
public void setParent(View parent) { this.parent = parent; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
public void assign(DynAny from) throws TypeMismatch
public void assign(DynAny from) throws TypeMismatch
public void assign(DynAny from) throws TypeMismatch { checkType(official_type, from.type()); if (from instanceof gnuDynFixed) { gnuDynFixed other = (gnuDynFixed) from; value = other.value; } else if (from instanceof DynFixedOperations) { value = new BigDecima...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/gnuDynFixed.java/buggy/core/src/classpath/gnu/gnu/CORBA/DynAn/gnuDynFixed.java
public void from_any(Any an_any) throws TypeMismatch, InvalidValue
public void from_any(Any an_any) throws TypeMismatch, InvalidValue
public void from_any(Any an_any) throws TypeMismatch, InvalidValue { try { checkType(official_type, an_any.type()); value = an_any.extract_fixed(); valueChanged(); } catch (BAD_OPERATION e) { InvalidValue t = new InvalidValue(); t.initCause(e); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/gnuDynFixed.java/buggy/core/src/classpath/gnu/gnu/CORBA/DynAn/gnuDynFixed.java
public gnuDynFixed(TypeCode oType, TypeCode aType, gnuDynAnyFactory aFactory, ORB anOrb
public gnuDynFixed(TypeCode oType, TypeCode aType, gnuDynAnyFactory aFactory, ORB anOrb
public gnuDynFixed(TypeCode oType, TypeCode aType, gnuDynAnyFactory aFactory, ORB anOrb ) { super(oType, aType, aFactory, anOrb); try { digits = final_type.fixed_digits(); scale = final_type.fixed_scale(); } catch (Exception e) { thr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/gnuDynFixed.java/buggy/core/src/classpath/gnu/gnu/CORBA/DynAn/gnuDynFixed.java
public BigDecimal (String num) throws NumberFormatException
public BigDecimal (BigInteger num)
public BigDecimal (String num) throws NumberFormatException { int len = num.length(); int start = 0, point = 0; int dot = -1; boolean negative = false; if (num.charAt(0) == '+') { ++start; ++point; } else if (num.charAt(0) == '-') { ++start; ++point; negative = true; } while...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/BigDecimal.java/buggy/core/src/classpath/java/java/math/BigDecimal.java
int len = num.length(); int start = 0, point = 0; int dot = -1; boolean negative = false; if (num.charAt(0) == '+') { ++start; ++point; } else if (num.charAt(0) == '-') { ++start; ++point; negative = true; } while (point < len) { char c = num.charAt (point); if (c == '.') { if (dot >= 0) throw new NumberFormatExceptio...
this (num, 0);
public BigDecimal (String num) throws NumberFormatException { int len = num.length(); int start = 0, point = 0; int dot = -1; boolean negative = false; if (num.charAt(0) == '+') { ++start; ++point; } else if (num.charAt(0) == '-') { ++start; ++point; negative = true; } while...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/BigDecimal.java/buggy/core/src/classpath/java/java/math/BigDecimal.java
return getType(ch) == DECIMAL_DIGIT_NUMBER;
return isDigit((int)ch);
public static boolean isDigit(char ch) { return getType(ch) == DECIMAL_DIGIT_NUMBER; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/Character.java/buggy/core/src/classpath/5.0/java/lang/Character.java
Class cls = Class.forName(clsname);
final ClassLoader cl = Thread.currentThread().getContextClassLoader(); final Class cls = cl.loadClass(clsname);
private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/URL.java/clean/core/src/classpath/java/java/net/URL.java
public ServerSocket() throws IOException
ServerSocket(SocketImpl impl) throws IOException
public ServerSocket() throws IOException { if (factory != null) impl = factory.createSocketImpl(); else impl = new PlainSocketImpl(); impl.create(true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
if (factory != null) impl = factory.createSocketImpl(); else impl = new PlainSocketImpl();
if (impl == null) throw new NullPointerException("impl may not be null");
public ServerSocket() throws IOException { if (factory != null) impl = factory.createSocketImpl(); else impl = new PlainSocketImpl(); impl.create(true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
impl.create(true);
this.impl = impl; this.impl.create(true);
public ServerSocket() throws IOException { if (factory != null) impl = factory.createSocketImpl(); else impl = new PlainSocketImpl(); impl.create(true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
public Socket accept () throws IOException
public Socket accept() throws IOException
public Socket accept () throws IOException { if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ()); Socket s = new Socket(); implAccept (s); return s; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
if (impl == null) throw new IOException ("Cannot initialize Socket implementation");
SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkListen(impl.getLocalPort());
public Socket accept () throws IOException { if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ()); Socket s = new Socket(); implAccept (s); return s; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ());
Socket socket = new Socket();
public Socket accept () throws IOException { if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ()); Socket s = new Socket(); implAccept (s); return s; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
Socket s = new Socket(); implAccept (s);
try { implAccept(socket); } catch (IOException e) { try { socket.close(); } catch (IOException e2) { }
public Socket accept () throws IOException { if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ()); Socket s = new Socket(); implAccept (s); return s; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
return s;
throw e; } return socket;
public Socket accept () throws IOException { if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ()); Socket s = new Socket(); implAccept (s); return s; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
public void bind (SocketAddress endpoint) throws IOException
public void bind(SocketAddress endpoint) throws IOException
public void bind (SocketAddress endpoint) throws IOException { bind (endpoint, 50); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
bind (endpoint, 50);
bind(endpoint, 50);
public void bind (SocketAddress endpoint) throws IOException { bind (endpoint, 50); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
public void close () throws IOException
public void close() throws IOException
public void close () throws IOException { if (impl != null) impl.close (); if (ch != null) ch.close (); closed = true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
if (impl != null) impl.close ();
if (isClosed()) return;
public void close () throws IOException { if (impl != null) impl.close (); if (ch != null) ch.close (); closed = true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
if (ch != null) ch.close ();
impl.close(); impl = null; bound = false;
public void close () throws IOException { if (impl != null) impl.close (); if (ch != null) ch.close (); closed = true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
closed = true;
if (getChannel() != null) getChannel().close();
public void close () throws IOException { if (impl != null) impl.close (); if (ch != null) ch.close (); closed = true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
return ch;
return null;
public ServerSocketChannel getChannel() { return ch; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
return (InetAddress) impl.getOption (SocketOptions.SO_BINDADDR);
return (InetAddress) impl.getOption(SocketOptions.SO_BINDADDR);
public InetAddress getInetAddress() { try { return (InetAddress) impl.getOption (SocketOptions.SO_BINDADDR); } catch (SocketException e) { return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
public InetAddress getInetAddress() { try { return (InetAddress) impl.getOption (SocketOptions.SO_BINDADDR); } catch (SocketException e) { return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
if (! isBound()) return -1;
public int getLocalPort() { return impl.getLocalPort(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
InetAddress addr = getInetAddress();
if (! isBound()) return null;
public SocketAddress getLocalSocketAddress() { InetAddress addr = getInetAddress(); if (addr != null) return new InetSocketAddress (getInetAddress(), getLocalPort()); return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
if (addr != null) return new InetSocketAddress (getInetAddress(), getLocalPort()); return null;
return new InetSocketAddress(getInetAddress(), getLocalPort());
public SocketAddress getLocalSocketAddress() { InetAddress addr = getInetAddress(); if (addr != null) return new InetSocketAddress (getInetAddress(), getLocalPort()); return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
public int getReceiveBufferSize () throws SocketException
public int getReceiveBufferSize() throws SocketException
public int getReceiveBufferSize () throws SocketException { if (impl == null) throw new SocketException ("Not connected"); Object buf = impl.getOption (SocketOptions.SO_RCVBUF); if (!(buf instanceof Integer)) throw new SocketException ("Internal Error: Unexpected type"); return ((Integer...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
if (impl == null) throw new SocketException ("Not connected");
if (isClosed()) throw new SocketException("ServerSocket is closed");
public int getReceiveBufferSize () throws SocketException { if (impl == null) throw new SocketException ("Not connected"); Object buf = impl.getOption (SocketOptions.SO_RCVBUF); if (!(buf instanceof Integer)) throw new SocketException ("Internal Error: Unexpected type"); return ((Integer...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
Object buf = impl.getOption (SocketOptions.SO_RCVBUF);
Object buf = impl.getOption(SocketOptions.SO_RCVBUF);
public int getReceiveBufferSize () throws SocketException { if (impl == null) throw new SocketException ("Not connected"); Object buf = impl.getOption (SocketOptions.SO_RCVBUF); if (!(buf instanceof Integer)) throw new SocketException ("Internal Error: Unexpected type"); return ((Integer...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
if (!(buf instanceof Integer)) throw new SocketException ("Internal Error: Unexpected type");
if (! (buf instanceof Integer)) throw new SocketException("Internal Error: Unexpected type");
public int getReceiveBufferSize () throws SocketException { if (impl == null) throw new SocketException ("Not connected"); Object buf = impl.getOption (SocketOptions.SO_RCVBUF); if (!(buf instanceof Integer)) throw new SocketException ("Internal Error: Unexpected type"); return ((Integer...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
return ((Integer) buf).intValue ();
return ((Integer) buf).intValue();
public int getReceiveBufferSize () throws SocketException { if (impl == null) throw new SocketException ("Not connected"); Object buf = impl.getOption (SocketOptions.SO_RCVBUF); if (!(buf instanceof Integer)) throw new SocketException ("Internal Error: Unexpected type"); return ((Integer...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
public boolean getReuseAddress() throws SocketException
public boolean getReuseAddress() throws SocketException
public boolean getReuseAddress() throws SocketException { if (impl == null) throw new SocketException ("Cannot initialize Socket implementation"); Object reuseaddr = impl.getOption (SocketOptions.SO_REUSEADDR); if (!(reuseaddr instanceof Boolean)) throw new SocketException ("Internal Error"); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
if (impl == null) throw new SocketException ("Cannot initialize Socket implementation");
if (isClosed()) throw new SocketException("ServerSocket is closed");
public boolean getReuseAddress() throws SocketException { if (impl == null) throw new SocketException ("Cannot initialize Socket implementation"); Object reuseaddr = impl.getOption (SocketOptions.SO_REUSEADDR); if (!(reuseaddr instanceof Boolean)) throw new SocketException ("Internal Error"); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
Object reuseaddr = impl.getOption (SocketOptions.SO_REUSEADDR);
Object reuseaddr = impl.getOption(SocketOptions.SO_REUSEADDR);
public boolean getReuseAddress() throws SocketException { if (impl == null) throw new SocketException ("Cannot initialize Socket implementation"); Object reuseaddr = impl.getOption (SocketOptions.SO_REUSEADDR); if (!(reuseaddr instanceof Boolean)) throw new SocketException ("Internal Error"); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
if (!(reuseaddr instanceof Boolean)) throw new SocketException ("Internal Error");
if (! (reuseaddr instanceof Boolean)) throw new SocketException("Internal Error");
public boolean getReuseAddress() throws SocketException { if (impl == null) throw new SocketException ("Cannot initialize Socket implementation"); Object reuseaddr = impl.getOption (SocketOptions.SO_REUSEADDR); if (!(reuseaddr instanceof Boolean)) throw new SocketException ("Internal Error"); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
return ((Boolean) reuseaddr).booleanValue ();
return ((Boolean) reuseaddr).booleanValue();
public boolean getReuseAddress() throws SocketException { if (impl == null) throw new SocketException ("Cannot initialize Socket implementation"); Object reuseaddr = impl.getOption (SocketOptions.SO_REUSEADDR); if (!(reuseaddr instanceof Boolean)) throw new SocketException ("Internal Error"); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
public int getSoTimeout () throws IOException
public int getSoTimeout() throws IOException
public int getSoTimeout () throws IOException { Object timeout = impl.getOption(SocketOptions.SO_TIMEOUT); if (!(timeout instanceof Integer)) throw new IOException("Internal Error"); return ((Integer)timeout).intValue(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
if (!(timeout instanceof Integer))
if (! (timeout instanceof Integer))
public int getSoTimeout () throws IOException { Object timeout = impl.getOption(SocketOptions.SO_TIMEOUT); if (!(timeout instanceof Integer)) throw new IOException("Internal Error"); return ((Integer)timeout).intValue(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
return ((Integer)timeout).intValue();
return ((Integer) timeout).intValue();
public int getSoTimeout () throws IOException { Object timeout = impl.getOption(SocketOptions.SO_TIMEOUT); if (!(timeout instanceof Integer)) throw new IOException("Internal Error"); return ((Integer)timeout).intValue(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
protected final void implAccept (Socket s) throws IOException
protected final void implAccept(Socket socket) throws IOException
protected final void implAccept (Socket s) throws IOException { if (ch != null && !ch.isBlocking()) throw new IllegalBlockingModeException(); impl.accept(s.impl); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
if (ch != null && !ch.isBlocking())
if (isClosed()) throw new SocketException("ServerSocket is closed"); if (getChannel() != null && ! getChannel().isBlocking() && ! ((PlainSocketImpl) getImpl()).isInChannelOperation())
protected final void implAccept (Socket s) throws IOException { if (ch != null && !ch.isBlocking()) throw new IllegalBlockingModeException(); impl.accept(s.impl); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
impl.accept(s.impl);
impl.accept(socket.impl); socket.implCreated = true;
protected final void implAccept (Socket s) throws IOException { if (ch != null && !ch.isBlocking()) throw new IllegalBlockingModeException(); impl.accept(s.impl); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
try { Object bindaddr = impl.getOption (SocketOptions.SO_BINDADDR); } catch (SocketException e) { return false; } return true;
return bound;
public boolean isBound() { try { Object bindaddr = impl.getOption (SocketOptions.SO_BINDADDR); } catch (SocketException e) { return false; } return true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
return closed;
return impl == null;
public boolean isClosed() { return closed; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
public void setReceiveBufferSize (int size) throws SocketException
public void setReceiveBufferSize(int size) throws SocketException
public void setReceiveBufferSize (int size) throws SocketException { if (impl == null) throw new SocketException ("Not connected"); if (size <= 0) throw new IllegalArgumentException ("SO_RCVBUF value must be > 0"); impl.setOption (SocketOptions.SO_RCVBUF, new Integer (size)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
if (impl == null) throw new SocketException ("Not connected");
if (isClosed()) throw new SocketException("ServerSocket is closed");
public void setReceiveBufferSize (int size) throws SocketException { if (impl == null) throw new SocketException ("Not connected"); if (size <= 0) throw new IllegalArgumentException ("SO_RCVBUF value must be > 0"); impl.setOption (SocketOptions.SO_RCVBUF, new Integer (size)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
throw new IllegalArgumentException ("SO_RCVBUF value must be > 0");
throw new IllegalArgumentException("SO_RCVBUF value must be > 0");
public void setReceiveBufferSize (int size) throws SocketException { if (impl == null) throw new SocketException ("Not connected"); if (size <= 0) throw new IllegalArgumentException ("SO_RCVBUF value must be > 0"); impl.setOption (SocketOptions.SO_RCVBUF, new Integer (size)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
impl.setOption (SocketOptions.SO_RCVBUF, new Integer (size));
impl.setOption(SocketOptions.SO_RCVBUF, new Integer(size));
public void setReceiveBufferSize (int size) throws SocketException { if (impl == null) throw new SocketException ("Not connected"); if (size <= 0) throw new IllegalArgumentException ("SO_RCVBUF value must be > 0"); impl.setOption (SocketOptions.SO_RCVBUF, new Integer (size)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
public void setReuseAddress (boolean on) throws SocketException
public void setReuseAddress(boolean on) throws SocketException
public void setReuseAddress (boolean on) throws SocketException { if (impl == null) throw new SocketException ("Cannot initialize Socket implementation"); impl.setOption (SocketOptions.SO_REUSEADDR, new Boolean (on)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
if (impl == null) throw new SocketException ("Cannot initialize Socket implementation");
if (isClosed()) throw new SocketException("ServerSocket is closed");
public void setReuseAddress (boolean on) throws SocketException { if (impl == null) throw new SocketException ("Cannot initialize Socket implementation"); impl.setOption (SocketOptions.SO_REUSEADDR, new Boolean (on)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
impl.setOption (SocketOptions.SO_REUSEADDR, new Boolean (on));
impl.setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on));
public void setReuseAddress (boolean on) throws SocketException { if (impl == null) throw new SocketException ("Cannot initialize Socket implementation"); impl.setOption (SocketOptions.SO_REUSEADDR, new Boolean (on)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
public void setSoTimeout (int timeout) throws SocketException
public void setSoTimeout(int timeout) throws SocketException
public void setSoTimeout (int timeout) throws SocketException { if (timeout < 0) throw new IllegalArgumentException("SO_TIMEOUT value must be >= 0"); impl.setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
if (isClosed()) throw new SocketException("ServerSocket is closed");
public void setSoTimeout (int timeout) throws SocketException { if (timeout < 0) throw new IllegalArgumentException("SO_TIMEOUT value must be >= 0"); impl.setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
public static synchronized void setSocketFactory (SocketImplFactory fac)
public static synchronized void setSocketFactory(SocketImplFactory fac)
public static synchronized void setSocketFactory (SocketImplFactory fac) throws IOException { factory = fac; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
public String toString ()
public String toString()
public String toString () { return "ServerSocket" + impl.toString(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
return "ServerSocket" + impl.toString();
if (! isBound()) return "ServerSocket[unbound]"; return ("ServerSocket[addr=" + getInetAddress() + ",port=" + impl.getPort() + ",localport=" + impl.getLocalPort() + "]");
public String toString () { return "ServerSocket" + impl.toString(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java