rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
if (Configuration.DEBUG) | public static final void main(String[] args) { log.entering(Main.class.getName(), "main", args); //$NON-NLS-1$ Main tool = new Main(); int result = 1; try { tool.setup(); tool.start(args); result = 0; } catch (OptionException x) { System.err.println(x.getMess... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/Main.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/Main.java | |
private void setup() { log.entering(this.getClass().getName(), "setup"); //$NON-NLS-1$ cmdLineParser = getParser(); gnuCryptoProviderNdx = ProviderUtil.addProvider(new GnuCrypto()); gnuCallbacksNdx = ProviderUtil.addProvider(new GnuCallbacks()); log.exiting(this.getClass().getName(), "setup"); //$NON-... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/Main.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/Main.java | ||
if (Configuration.DEBUG) | private void setup() { log.entering(this.getClass().getName(), "setup"); //$NON-NLS-1$ cmdLineParser = getParser(); gnuCryptoProviderNdx = ProviderUtil.addProvider(new GnuCrypto()); gnuCallbacksNdx = ProviderUtil.addProvider(new GnuCallbacks()); log.exiting(this.getClass().getName(), "setup"); //$NON-... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/Main.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/Main.java | |
private void start(String[] args) throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ if (args == null || args.length == 0) throw new OptionException(""); //$NON-NLS-1$ String opt; Command cmd; while (args.length > 0) { opt = args[0]; cmd = null; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/Main.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/Main.java | ||
if (Configuration.DEBUG) | private void start(String[] args) throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ if (args == null || args.length == 0) throw new OptionException(""); //$NON-NLS-1$ String opt; Command cmd; while (args.length > 0) { opt = args[0]; cmd = null; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/Main.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/Main.java | |
private void teardown() | void teardown() | private void teardown() { log.entering(this.getClass().getName(), "teardown"); //$NON-NLS-1$ // if we added our own providers remove them if (gnuCryptoProviderNdx > 0) ProviderUtil.removeProvider(Registry.GNU_CRYPTO); if (gnuCallbacksNdx > 0) ProviderUtil.removeProvider("GNU-CALLBACKS"); //$NON... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/Main.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/Main.java |
private void teardown() { log.entering(this.getClass().getName(), "teardown"); //$NON-NLS-1$ // if we added our own providers remove them if (gnuCryptoProviderNdx > 0) ProviderUtil.removeProvider(Registry.GNU_CRYPTO); if (gnuCallbacksNdx > 0) ProviderUtil.removeProvider("GNU-CALLBACKS"); //$NON... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/Main.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/Main.java | ||
if (Configuration.DEBUG) | private void teardown() { log.entering(this.getClass().getName(), "teardown"); //$NON-NLS-1$ // if we added our own providers remove them if (gnuCryptoProviderNdx > 0) ProviderUtil.removeProvider(Registry.GNU_CRYPTO); if (gnuCallbacksNdx > 0) ProviderUtil.removeProvider("GNU-CALLBACKS"); //$NON... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/Main.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/Main.java | |
determineNumLines(); | public WrappedLine(Element elem) { super(elem); determineNumLines(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java | |
void determineNumLines() | private int determineNumLines() | void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
numLines = 0; | int nLines = 0; | void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
if (end == 0) return; int breakPoint; | void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java | |
numLines ++; | nLines++; | void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
breakPoint = calculateBreakPosition(i, end); | int breakPoint = calculateBreakPosition(i, end); | void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
if (breakPoint == 0) return; | void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java | |
break; | i = breakPoint + 1; | void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
return nLines; | void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java | |
updateDamage((Rectangle)a); | Rectangle r = a instanceof Rectangle ? (Rectangle) a : a.getBounds(); updateDamage(r); | public void insertUpdate (DocumentEvent changes, Shape a, ViewFactory f) { updateDamage((Rectangle)a); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
updateDamage((Rectangle)a); | Rectangle r = a instanceof Rectangle ? (Rectangle) a : a.getBounds(); updateDamage(r); | public void removeUpdate (DocumentEvent changes, Shape a, ViewFactory f) { // Note: This method is not called when characters from the // end of the document are removed. The reason for this // can be found in the implementation of View.forwardUpdate: // The document event will denote offsets... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
if (a == null || a.isEmpty()) | int nLines = determineNumLines(); if (numLines != nLines) | void updateDamage (Rectangle a) { // If the allocation area is empty we can't do anything useful. // As determining the number of lines is impossible in that state we // reset it to an invalid value which can then be recalculated at a // later point. if (a == null || a.isEmpty()) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
numLines = 1; return; | numLines = nLines; preferenceChanged(this, false, true); getContainer().repaint(); | void updateDamage (Rectangle a) { // If the allocation area is empty we can't do anything useful. // As determining the number of lines is impossible in that state we // reset it to an invalid value which can then be recalculated at a // later point. if (a == null || a.isEmpty()) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
int oldNumLines = numLines; determineNumLines(); if (numLines != oldNumLines) preferenceChanged(this, false, true); else | else if (a != null) | void updateDamage (Rectangle a) { // If the allocation area is empty we can't do anything useful. // As determining the number of lines is impossible in that state we // reset it to an invalid value which can then be recalculated at a // later point. if (a == null || a.isEmpty()) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
return end; | return end - 1; | public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); // Although calling modelToView with the last possible offset will // cause a BadLocationException in CompositeView it is... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomInset()-ti); if (alloc.isEmpty()) return 0; updateMetrics(); | Segment s = new Segment(); | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
getDocument().getText(p0, p1 - p0, getLineBuffer()); | getDocument().getText(p0, p1 - p0, s); | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
catch (BadLocationException ble) | catch (BadLocationException ex) | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
throw new InternalError("Invalid offsets p0: " + p0 + " - p1: " + p1); | assert false : "Couldn't load text"; | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
int width = getWidth(); int pos; | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java | |
return p0 + Utilities.getBreakLocation(lineBuffer, metrics, alloc.x, alloc.x + alloc.width, this, 0); | pos = p0 + Utilities.getBreakLocation(s, metrics, tabBase, tabBase + width, this, p0); | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
return p0 + Utilities.getTabbedTextOffset(lineBuffer, metrics, alloc.x, alloc.x + alloc.width, this, 0, true); | pos = p0 + Utilities.getTabbedTextOffset(s, metrics, tabBase, tabBase + width, this, p0, false); return pos; | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomI... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
super.changedUpdate(e, a, viewFactory); | updateChildren(e, a); | public void changedUpdate (DocumentEvent e, Shape a, ViewFactory f) { super.changedUpdate(e, a, viewFactory); // No repaint needed, as this is done by the WrappedLine instances. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
super.insertUpdate(e, a, viewFactory); | updateChildren(e, a); | public void insertUpdate (DocumentEvent e, Shape a, ViewFactory f) { super.insertUpdate(e, a, viewFactory); // No repaint needed, as this is done by the WrappedLine instances. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
Rectangle r = a != null && isAllocationValid() ? getInsideAllocation(a) : null; View v = getViewAtPosition(e.getOffset(), r); if (v != null) v.insertUpdate(e, r, f); | public void insertUpdate (DocumentEvent e, Shape a, ViewFactory f) { super.insertUpdate(e, a, viewFactory); // No repaint needed, as this is done by the WrappedLine instances. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java | |
JTextComponent host = (JTextComponent)getContainer(); float tabSizePixels = getTabSize() * host.getFontMetrics(host.getFont()).charWidth('m'); return (float) (Math.floor(x / tabSizePixels) + 1) * tabSizePixels; | int next = (int) x; if (tabSize != 0) { int numTabs = ((int) x - tabBase) / tabSize; next = tabBase + (numTabs + 1) * tabSize; } return next; | public float nextTabStop(float x, int tabStop) { JTextComponent host = (JTextComponent)getContainer(); float tabSizePixels = getTabSize() * host.getFontMetrics(host.getFont()).charWidth('m'); return (float) (Math.floor(x / tabSizePixels) + 1) * tabSizePixels; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
Rectangle r = a instanceof Rectangle ? (Rectangle) a : a.getBounds(); tabBase = r.x; | public void paint(Graphics g, Shape a) { JTextComponent comp = (JTextComponent)getContainer(); // Ensure metrics are up-to-date. updateMetrics(); selectionStart = comp.getSelectionStart(); selectionEnd = comp.getSelectionEnd(); selectedColor = comp.getSelectedTextColor(); unselectedColor = c... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java | |
super.removeUpdate(e, a, viewFactory); | updateChildren(e, a); | public void removeUpdate (DocumentEvent e, Shape a, ViewFactory f) { super.removeUpdate(e, a, viewFactory); // No repaint needed, as this is done by the WrappedLine instances. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java |
Rectangle r = a != null && isAllocationValid() ? getInsideAllocation(a) : null; View v = getViewAtPosition(e.getOffset(), r); if (v != null) v.removeUpdate(e, r, f); | public void removeUpdate (DocumentEvent e, Shape a, ViewFactory f) { super.removeUpdate(e, a, viewFactory); // No repaint needed, as this is done by the WrappedLine instances. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java | |
tabSize = getTabSize()* metrics.charWidth('m'); | void updateMetrics() { Container component = getContainer(); metrics = component.getFontMetrics(component.getFont()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java | |
return width; | return span[X_AXIS]; | public int getWidth() { return width; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java |
return height; | return span[Y_AXIS]; | public int getHeight() { return height; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java |
if (this.width != (int) width) layoutChanged(X_AXIS); if (this.height != (int) height) layoutChanged(Y_AXIS); this.width = (int) width; this.height = (int) height; Rectangle outside = new Rectangle(0, 0, this.width, this.height); Rectangle inside = getInsideAllocation(outside); if (!isAllocationValid()) layout(inside... | layout((int) width, (int) height); | public void setSize(float width, float height) { if (this.width != (int) width) layoutChanged(X_AXIS); if (this.height != (int) height) layoutChanged(Y_AXIS); this.width = (int) width; this.height = (int) height; Rectangle outside = new Rectangle(0, 0, this.width, this.height); Rectangle ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java |
xLayoutValid = false; | layoutValid[X_AXIS] = false; | public void preferenceChanged (View child, boolean width, boolean height) { if (width) xLayoutValid = false; if (height) yLayoutValid = false; super.preferenceChanged(child, width, height); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java |
yLayoutValid = false; | layoutValid[Y_AXIS] = false; | public void preferenceChanged (View child, boolean width, boolean height) { if (width) xLayoutValid = false; if (height) yLayoutValid = false; super.preferenceChanged(child, width, height); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java |
throws NotImplementedException | public void caretUpdate(CaretEvent e) { // TODO: fire appropriate event. dot = e.getDot(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
throws NotImplementedException | public void changedUpdate(DocumentEvent e) { // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
throws NotImplementedException | public boolean doAccessibleAction(int i) { return false; // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
throws NotImplementedException | public int getAccessibleActionCount() { return 0; // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
throws NotImplementedException | public String getAccessibleActionDescription(int i) { // TODO: Not implemented fully return super.getAccessibleDescription(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
throws NotImplementedException | public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet state = super.getAccessibleStateSet(); // TODO: Figure out what state must be added here to the super's state. return state; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
throws NotImplementedException | public String getAfterIndex(int part, int index) { return null; // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
throws NotImplementedException | public String getAtIndex(int part, int index) { return null; // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
throws NotImplementedException | public String getBeforeIndex(int part, int index) { return null; // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
throws NotImplementedException | public AttributeSet getCharacterAttribute(int index) { return null; // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
throws NotImplementedException | public Rectangle getCharacterBounds(int index) { return null; // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
throws NotImplementedException | public int getIndexAtPoint(Point p) { return 0; // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
throws NotImplementedException | public void insertTextAtIndex(int index, String s) { replaceText(index, index, s); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
throws NotImplementedException | public void insertUpdate(DocumentEvent e) { // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
throws NotImplementedException | public void removeUpdate(DocumentEvent e) { // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
throws NotImplementedException | public void setAttributes(int start, int end, AttributeSet s) { // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
throws NotImplementedException | public void setTextContents(String s) { // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
if (isEnabled()) | public void copy() { doTransferAction("copy", TransferHandler.getCopyAction()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
if (editable && isEnabled()) | public void cut() { doTransferAction("cut", TransferHandler.getCutAction()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
if (editable && isEnabled()) | public void paste() { doTransferAction("paste", TransferHandler.getPasteAction()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
public void mouseClicked (MouseEvent e) { // FIXME: implement this } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/MouseDragGestureRecognizer.java/buggy/core/src/classpath/java/java/awt/dnd/MouseDragGestureRecognizer.java | ||
public void mouseDragged (MouseEvent e) { // FIXME: implement this } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/MouseDragGestureRecognizer.java/buggy/core/src/classpath/java/java/awt/dnd/MouseDragGestureRecognizer.java | ||
public void mouseEntered (MouseEvent e) { // FIXME: implement this } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/MouseDragGestureRecognizer.java/buggy/core/src/classpath/java/java/awt/dnd/MouseDragGestureRecognizer.java | ||
public void mouseExited (MouseEvent e) { // FIXME: implement this } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/MouseDragGestureRecognizer.java/buggy/core/src/classpath/java/java/awt/dnd/MouseDragGestureRecognizer.java | ||
public void mouseMoved (MouseEvent e) { // FIXME: implement this } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/MouseDragGestureRecognizer.java/buggy/core/src/classpath/java/java/awt/dnd/MouseDragGestureRecognizer.java | ||
public void mousePressed (MouseEvent e) { // FIXME: implement this } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/MouseDragGestureRecognizer.java/buggy/core/src/classpath/java/java/awt/dnd/MouseDragGestureRecognizer.java | ||
public void mouseReleased (MouseEvent e) { // FIXME: implement this } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/MouseDragGestureRecognizer.java/buggy/core/src/classpath/java/java/awt/dnd/MouseDragGestureRecognizer.java | ||
component.addMouseListener (this); component.addMouseMotionListener (this); | protected void registerListeners () { // FIXME: implement this } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/MouseDragGestureRecognizer.java/buggy/core/src/classpath/java/java/awt/dnd/MouseDragGestureRecognizer.java | |
component.removeMouseListener (this); component.removeMouseMotionListener (this); | protected void unregisterListeners () { // FIXME: implement this } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/MouseDragGestureRecognizer.java/buggy/core/src/classpath/java/java/awt/dnd/MouseDragGestureRecognizer.java | |
ref.invoke(this, $method_clean_0, new java.lang.Object[] {$param_0, new java.lang.Long($param_1), $param_2, new java.lang.Boolean($param_3)}, -5803803475088455571L); | ref.invoke(this, $method_clean_0, new java.lang.Object[] {$param_0, new java.lang.Long($param_1), $param_2, Boolean.valueOf($param_3)}, -5803803475088455571L); | public void clean(java.rmi.server.ObjID[] $param_0, long $param_1, java.rmi.dgc.VMID $param_2, boolean $param_3) throws java.rmi.RemoteException { try { if (useNewInvoke) { ref.invoke(this, $method_clean_0, new java.lang.Object[] {$param_0, new java.lang.Long($param_1), $param_2, ne... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/DGCImpl_Stub.java/buggy/core/src/classpath/gnu/gnu/java/rmi/dgc/DGCImpl_Stub.java |
RandomAccessFile raf = this.raf; if (raf == null) return; | public void close() throws IOException { synchronized (raf) { closed = true; entries = null; raf.close(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/ZipFile.java/clean/core/src/classpath/java/java/util/zip/ZipFile.java | |
String name = new String(buffer, 0, 0, nameLen); | String name; try { name = new String(buffer, 0, nameLen, "UTF-8"); } catch (UnsupportedEncodingException uee) { throw new AssertionError(uee); } | private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/ZipFile.java/clean/core/src/classpath/java/java/util/zip/ZipFile.java |
entry.setComment(new String(buffer, 0, commentLen)); | try { entry.setComment(new String(buffer, 0, commentLen, "UTF-8")); } catch (UnsupportedEncodingException uee) { throw new AssertionError(uee); } | private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/ZipFile.java/clean/core/src/classpath/java/java/util/zip/ZipFile.java |
public Formatter(Appendable app, Locale loc) | public Formatter() | public Formatter(Appendable app, Locale loc) { this.out = app == null ? new StringBuilder() : app; this.locale = loc; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63ff6161906dfae5c6cd8e9ab83aca650e00923d/Formatter.java/buggy/core/src/classpath/5.0/java/util/Formatter.java |
this.out = app == null ? new StringBuilder() : app; this.locale = loc; | this(null, Locale.getDefault()); | public Formatter(Appendable app, Locale loc) { this.out = app == null ? new StringBuilder() : app; this.locale = loc; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63ff6161906dfae5c6cd8e9ab83aca650e00923d/Formatter.java/buggy/core/src/classpath/5.0/java/util/Formatter.java |
public Formatter format(String format, Object... args) | public Formatter format(Locale loc, String fmt, Object... args) | public Formatter format(String format, Object... args) { return format(locale, format, args); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63ff6161906dfae5c6cd8e9ab83aca650e00923d/Formatter.java/buggy/core/src/classpath/5.0/java/util/Formatter.java |
return format(locale, format, args); | if (closed) throw new FormatterClosedException(); int implicitArgumentIndex = 1; int previousArgumentIndex = 0; try { fmtLocale = loc; format = fmt; length = format.length(); for (index = 0; index < length; ++index) { char c = format.charAt(index); if (c != '%') { out.append(c); continue; } int start = index; advan... | public Formatter format(String format, Object... args) { return format(locale, format, args); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63ff6161906dfae5c6cd8e9ab83aca650e00923d/Formatter.java/buggy/core/src/classpath/5.0/java/util/Formatter.java |
public MemoryImageSource(int w, int h, int pix[], int off, int scan) { this(w, h, ColorModel.getRGBdefault(), pix, off, scan, null); | public MemoryImageSource(int w, int h, ColorModel cm, byte pix[], int off, int scan) { this ( w, h, cm, pix, off, scan, null ); | public MemoryImageSource(int w, int h, int pix[], int off, int scan) { this(w, h, ColorModel.getRGBdefault(), pix, off, scan, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/MemoryImageSource.java/buggy/core/src/classpath/java/java/awt/image/MemoryImageSource.java |
return context.addStyle(nm, parent); | Style newStyle = context.addStyle(nm, parent); if (styleChangeListener == null) styleChangeListener = new StyleChangeListener(); newStyle.addChangeListener(styleChangeListener); return newStyle; | public Style addStyle(String nm, Style parent) { StyleContext context = (StyleContext) getAttributeContext(); return context.addStyle(nm, parent); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java |
throw new AssertionError("BadLocationException must not be thrown " + "here."); | AssertionError ae = new AssertionError("Unexpected bad location"); ae.initCause(ex); throw ae; | protected void insertUpdate(DefaultDocumentEvent ev, AttributeSet attr) { super.insertUpdate(ev, attr); int offset = ev.getOffset(); int length = ev.getLength(); int endOffset = offset + length; Segment txt = new Segment(); try { getText(offset, length, txt); } catch (BadLocatio... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java |
abstract void dump(boolean dumpStack, VmStackReader stackReader); | final void dump(boolean dumpStack, VmStackReader stackReader) { Unsafe.debug(name); Unsafe.debug("-queue:\n"); VmThreadQueueEntry e = first; if (e == null) { Unsafe.debug("Empty\n"); } else { while (e != null) { Unsafe.debug(e.thread.getName()); Unsafe.debug(" id0x"); Unsafe.debug(e.thread.getId()); Unsafe.debug(" s0x"... | abstract void dump(boolean dumpStack, VmStackReader stackReader); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/62994783631e20e868b65c6250b1b0c82dff528a/VmThreadQueue.java/buggy/core/src/core/org/jnode/vm/scheduler/VmThreadQueue.java |
public void setSample(int x, int y, int b, double s) { sampleModel.setSample(x - sampleModelTranslateX, y - sampleModelTranslateY, b, s, dataBuffer); | public void setSample(int x, int y, int b, int s) { sampleModel.setSample(x-sampleModelTranslateX, y-sampleModelTranslateY, b, s, dataBuffer); | public void setSample(int x, int y, int b, double s) { sampleModel.setSample(x - sampleModelTranslateX, y - sampleModelTranslateY, b, s, dataBuffer); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/WritableRaster.java/buggy/core/src/classpath/java/java/awt/image/WritableRaster.java |
VMChannel.close(native_fd); | VmChannel.close(native_fd); | public void close() throws IOException { if (!valid) throw new IOException("invalid file descriptor"); try { VMChannel.close(native_fd); } finally { valid = false; closed = true; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3f4783156e307054db2296225d84ac8fdf4a3998/VMChannel.java/buggy/core/src/classpath/vm/gnu/java/nio/VMChannel.java |
int new_fd = accept(nfd.getNativeFD()); | int new_fd = VmChannel.accept(nfd.getNativeFD()); | public VMChannel accept() throws IOException { int new_fd = accept(nfd.getNativeFD()); if (new_fd == -1) // non-blocking accept had no pending connection return null; return new VMChannel(new_fd); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3f4783156e307054db2296225d84ac8fdf4a3998/VMChannel.java/buggy/core/src/classpath/vm/gnu/java/nio/VMChannel.java |
return available(nfd.getNativeFD()); | return VmChannel.available(nfd.getNativeFD()); | public int available() throws IOException { return available(nfd.getNativeFD()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3f4783156e307054db2296225d84ac8fdf4a3998/VMChannel.java/buggy/core/src/classpath/vm/gnu/java/nio/VMChannel.java |
return connect(fd, addr.getAddress(), saddr.getPort(), | return VmChannel.connect(fd, addr.getAddress(), saddr.getPort(), | public boolean connect(InetSocketAddress saddr, int timeout) throws SocketException { int fd; InetAddress addr = saddr.getAddress(); // Translates an IOException into a SocketException to conform // to the throws clause. try { fd = nfd.getNativeFD(); } catch (IOException ioe) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3f4783156e307054db2296225d84ac8fdf4a3998/VMChannel.java/buggy/core/src/classpath/vm/gnu/java/nio/VMChannel.java |
return connect6(fd, addr.getAddress(), saddr.getPort(), | return VmChannel.connect6(fd, addr.getAddress(), saddr.getPort(), | public boolean connect(InetSocketAddress saddr, int timeout) throws SocketException { int fd; InetAddress addr = saddr.getAddress(); // Translates an IOException into a SocketException to conform // to the throws clause. try { fd = nfd.getNativeFD(); } catch (IOException ioe) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3f4783156e307054db2296225d84ac8fdf4a3998/VMChannel.java/buggy/core/src/classpath/vm/gnu/java/nio/VMChannel.java |
disconnect(nfd.getNativeFD()); | VmChannel.disconnect(nfd.getNativeFD()); | public void disconnect() throws IOException { if (kind != Kind.SOCK_DGRAM) throw new IOException("can only disconnect datagram channels"); disconnect(nfd.getNativeFD()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3f4783156e307054db2296225d84ac8fdf4a3998/VMChannel.java/buggy/core/src/classpath/vm/gnu/java/nio/VMChannel.java |
return flush(nfd.getNativeFD(), metadata); | return VmChannel.flush(nfd.getNativeFD(), metadata); | public boolean flush(boolean metadata) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return flush(nfd.getNativeFD(), metadata); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3f4783156e307054db2296225d84ac8fdf4a3998/VMChannel.java/buggy/core/src/classpath/vm/gnu/java/nio/VMChannel.java |
int namelen = getsockname(nfd.getNativeFD(), name); | int namelen = VmChannel.getsockname(nfd.getNativeFD(), name); | public InetSocketAddress getLocalAddress() throws IOException { if (!nfd.isValid()) return null; ByteBuffer name = ByteBuffer.allocateDirect(18); int namelen = getsockname(nfd.getNativeFD(), name); if (namelen == 0) // not bound return null; // XXX return some wildcard? if (namelen == 4) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3f4783156e307054db2296225d84ac8fdf4a3998/VMChannel.java/buggy/core/src/classpath/vm/gnu/java/nio/VMChannel.java |
int namelen = getpeername (nfd.getNativeFD(), name); | int namelen = VmChannel.getpeername (nfd.getNativeFD(), name); | public InetSocketAddress getPeerAddress() throws IOException { if (!nfd.isValid()) return null; ByteBuffer name = ByteBuffer.allocateDirect(18); int namelen = getpeername (nfd.getNativeFD(), name); if (namelen == 0) // not connected yet return null; if (namelen == 4) // IPv4 { by... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3f4783156e307054db2296225d84ac8fdf4a3998/VMChannel.java/buggy/core/src/classpath/vm/gnu/java/nio/VMChannel.java |
return new VMChannel(stderr_fd()); | return new VMChannel(VmChannel.stderr_fd()); | public static VMChannel getStderr() throws IOException { return new VMChannel(stderr_fd()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3f4783156e307054db2296225d84ac8fdf4a3998/VMChannel.java/buggy/core/src/classpath/vm/gnu/java/nio/VMChannel.java |
return new VMChannel(stdin_fd()); | return new VMChannel(VmChannel.stdin_fd()); | public static VMChannel getStdin() throws IOException { return new VMChannel(stdin_fd()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3f4783156e307054db2296225d84ac8fdf4a3998/VMChannel.java/buggy/core/src/classpath/vm/gnu/java/nio/VMChannel.java |
return new VMChannel(stdout_fd()); | return new VMChannel(VmChannel.stdout_fd()); | public static VMChannel getStdout() throws IOException { return new VMChannel(stdout_fd()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3f4783156e307054db2296225d84ac8fdf4a3998/VMChannel.java/buggy/core/src/classpath/vm/gnu/java/nio/VMChannel.java |
nfd.setNativeFD(socket(stream)); | nfd.setNativeFD(VmChannel.socket(stream)); | public void initSocket(boolean stream) throws IOException { if (nfd.isValid()) throw new IOException("native FD already initialized"); if (stream) kind = Kind.SOCK_STREAM; else kind = Kind.SOCK_DGRAM; nfd.setNativeFD(socket(stream)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3f4783156e307054db2296225d84ac8fdf4a3998/VMChannel.java/buggy/core/src/classpath/vm/gnu/java/nio/VMChannel.java |
return lock(nfd.getNativeFD(), pos, len, shared, wait); | return VmChannel.lock(nfd.getNativeFD(), pos, len, shared, wait); | public boolean lock(long pos, long len, boolean shared, boolean wait) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return lock(nfd.getNativeFD(), pos, len, shared, wait); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3f4783156e307054db2296225d84ac8fdf4a3998/VMChannel.java/buggy/core/src/classpath/vm/gnu/java/nio/VMChannel.java |
return map(nfd.getNativeFD(), mode, position, size); | return VmChannel.map(nfd.getNativeFD(), mode, position, size); | public MappedByteBuffer map(char mode, long position, int size) throws IOException { if (kind != Kind.FILE) throw new IOException("not a file"); return map(nfd.getNativeFD(), mode, position, size); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3f4783156e307054db2296225d84ac8fdf4a3998/VMChannel.java/buggy/core/src/classpath/vm/gnu/java/nio/VMChannel.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.