rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
set.add(provider()); while (en.hasMoreElements()) { BufferedReader rdr = new BufferedReader(new InputStreamReader (((URL) (en.nextElement())).openStream())); while (true) { String s = rdr.readLine(); if (s == null) break; CharsetProvider p = (CharsetProvider) ((Class.forName(s)).newInstance()); set.add(p); } } | while (i.hasNext()) set.add(i.next()); | private static CharsetProvider[] providers2() { if (providers == null) { try { Enumeration en = ClassLoader.getSystemResources ("META-INF/services/java.nio.charset.spi.CharsetProvider"); LinkedHashSet set = new LinkedHashSet(); set.add(provider()); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java |
UTF_16LE() { super("UTF-16LE", null); | UTF_16LE () { super ("UTF-16LE", null); | UTF_16LE() { super("UTF-16LE", null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8ae362581db96c93e8717373852fc0c5fa2b24ba/UTF_16LE.java/buggy/core/src/classpath/gnu/gnu/java/nio/charset/UTF_16LE.java |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return JobState.class; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/JobState.java/buggy/core/src/classpath/javax/javax/print/attribute/standard/JobState.java |
public final String getName() | public String getName() | public final String getName() { return "job-state"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/JobState.java/buggy/core/src/classpath/javax/javax/print/attribute/standard/JobState.java |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return NumberUp.class; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/NumberUp.java/buggy/core/src/classpath/javax/javax/print/attribute/standard/NumberUp.java |
public final String getName() | public String getName() | public final String getName() { return "number-up"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/NumberUp.java/buggy/core/src/classpath/javax/javax/print/attribute/standard/NumberUp.java |
VmClassLoader vmc = new VmClassLoader(new File(".").toURL(), new VmX86Architecture()); | VmSystemClassLoader vmc = new VmSystemClassLoader(new File(".").toURL(), new VmX86Architecture()); | public static void main(String args[]) throws SecurityException, IOException, ClassNotFoundException { String className = "org.jnode.vm.compiler.ir.IRGenerator"; if (args.length > 0) { className = args[0]; } VmClassLoader vmc = new VmClassLoader(new File(".").toURL(), new VmX86Architecture()); VmType type = vmc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/IRGenerator.java/clean/core/src/core/org/jnode/vm/compiler/ir/IRGenerator.java |
renumberArray = new SSAStack[bytecode.getMaxStack() + bytecode.getNoLocals()]; | public IRControlFlowGraph(VmByteCode bytecode) { // First determine the basic blocks final IRBasicBlockFinder bbf = new IRBasicBlockFinder(); BytecodeParser.parse(bytecode, bbf); this.bblocks = bbf.createBasicBlocks(); startBlock = bblocks[0]; renumberArray = new SSAStack[bytecode.getMaxStack() + bytecode.getNoL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/79bb5a92ef7c411cd222bab5d581025bb5cb5184/IRControlFlowGraph.java/buggy/core/src/core/org/jnode/vm/compiler/ir/IRControlFlowGraph.java | |
this(dataType, w, h, 0, numberOfBits, 0); } | this(dataType, w, h, numberOfBits, 0, 0); } | public MultiPixelPackedSampleModel(int dataType, int w, int h, int numberOfBits) { this(dataType, w, h, 0, numberOfBits, 0); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/56dd85c2d68db074b01d0997c45677975dbe5fed/MultiPixelPackedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/MultiPixelPackedSampleModel.java |
} | } | public SampleModel createCompatibleSampleModel(int w, int h) { /* FIXME: We can avoid recalculation of bit offsets and sample sizes here by passing these from the current instance to a special private constructor. */ return new MultiPixelPackedSampleModel(dataType, w, h, numberOfBits); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/56dd85c2d68db074b01d0997c45677975dbe5fed/MultiPixelPackedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/MultiPixelPackedSampleModel.java |
} | } | public DataBuffer createDataBuffer() { int size; // FIXME: The comment refers to SinglePixelPackedSampleModel. See if the // same can be done for MultiPixelPackedSampleModel. // We can save (scanlineStride - width) pixels at the very end of // the buffer. The Sun reference implementation (J2SE 1.3.1... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/56dd85c2d68db074b01d0997c45677975dbe5fed/MultiPixelPackedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/MultiPixelPackedSampleModel.java |
} | } | public SampleModel createSubsetSampleModel(int[] bands) { int numBands = bands.length; if (numBands != 1) throw new RasterFormatException("MultiPixelPackedSampleModel only" + " supports one band"); return new MultiPixelPackedSampleModel(dataType, width, height, numberOfBits, scanlin... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/56dd85c2d68db074b01d0997c45677975dbe5fed/MultiPixelPackedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/MultiPixelPackedSampleModel.java |
} | } | public int getBitOffset(int x) { return (dataBitOffset + x*numberOfBits) % elemBits; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/56dd85c2d68db074b01d0997c45677975dbe5fed/MultiPixelPackedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/MultiPixelPackedSampleModel.java |
} | } | public int getNumDataElements() { return 1; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/56dd85c2d68db074b01d0997c45677975dbe5fed/MultiPixelPackedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/MultiPixelPackedSampleModel.java |
} | } | public int getOffset(int x, int y) { return scanlineStride * y + ((dataBitOffset + x*numberOfBits) / elemBits); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/56dd85c2d68db074b01d0997c45677975dbe5fed/MultiPixelPackedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/MultiPixelPackedSampleModel.java |
} | } | public int[] getSampleSize() { return sampleSize; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/56dd85c2d68db074b01d0997c45677975dbe5fed/MultiPixelPackedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/MultiPixelPackedSampleModel.java |
} | } | public String toString() { StringBuffer result = new StringBuffer(); result.append(getClass().getName()); result.append("["); result.append("scanlineStride=").append(scanlineStride); for(int i=0; i < bitMasks.length; i+=1) { result.append(", mask[").append(i).append("]=0x").append(Integer.toHe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/56dd85c2d68db074b01d0997c45677975dbe5fed/MultiPixelPackedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/MultiPixelPackedSampleModel.java |
return new primitiveArrayTypeCode(TCKind.tk_short); | return new ArrayTypeCode(TCKind.tk_short); | public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_short); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/UShortSeqHelper.java/buggy/core/src/classpath/org/org/omg/CORBA/UShortSeqHelper.java |
buffer = new BufferedInputStream(stream); buffer.mark(READLIMIT); | public MemoryCacheImageInputStream(InputStream stream) { this.stream = stream; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/MemoryCacheImageInputStream.java/clean/core/src/classpath/javax/javax/imageio/stream/MemoryCacheImageInputStream.java | |
throws IOException, NotImplementedException | throws IOException | public void flushBefore(long position) throws IOException, NotImplementedException { // FIXME: Implement me. throw new Error("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/MemoryCacheImageInputStream.java/clean/core/src/classpath/javax/javax/imageio/stream/MemoryCacheImageInputStream.java |
throw new Error("not implemented"); | long prevFlushedPosition = getFlushedPosition(); super.flushBefore(position); buffer.reset(); buffer.skip(getFlushedPosition() - prevFlushedPosition); buffer.mark(READLIMIT); | public void flushBefore(long position) throws IOException, NotImplementedException { // FIXME: Implement me. throw new Error("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/MemoryCacheImageInputStream.java/clean/core/src/classpath/javax/javax/imageio/stream/MemoryCacheImageInputStream.java |
return stream.read(); | int retval = buffer.read(); if (retval != -1) streamPos++; return retval; | public int read() throws IOException { setBitOffset(0); return stream.read(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/MemoryCacheImageInputStream.java/clean/core/src/classpath/javax/javax/imageio/stream/MemoryCacheImageInputStream.java |
throws MARSHAL, InvalidName, CannotProceed, NotFound | throws MARSHAL, InvalidName, CannotProceed, NotFound | protected void throw4(InputStream in, String id) throws MARSHAL, InvalidName, CannotProceed, NotFound { if (id.equals(NotFoundHelper.id())) throw NotFoundHelper.read(in); else if (id.equals(CannotProceedHelper.id())) throw CannotProceedHelper.read(in); else if (i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/389a8c811e91dbf626693fbb413506535b9ebd2e/_NamingContextStub.java/buggy/core/src/classpath/org/org/omg/CosNaming/_NamingContextStub.java |
for (int i0 = 0; i0 < value.component_data.length; i0++) output.write_octet(value.component_data [ i0 ]); | try { output.write(value.component_data); } catch (IOException e) { MARSHAL m = new MARSHAL(); m.initCause(e); throw m; } | public static void write(OutputStream output, TaggedComponent value) { output.write_long(value.tag); output.write_long(value.component_data.length); for (int i0 = 0; i0 < value.component_data.length; i0++) output.write_octet(value.component_data [ i0 ]); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/TaggedComponentHelper.java/buggy/core/src/classpath/org/org/omg/IOP/TaggedComponentHelper.java |
value.component_data = new byte[ input.read_long() ]; for (int i0 = 0; i0 < value.component_data.length; i0++) value.component_data [ i0 ] = input.read_octet(); | value.component_data = new byte[input.read_long()]; try { input.read(value.component_data); } catch (IOException e) { MARSHAL m = new MARSHAL(); m.initCause(e); throw m; } | public static TaggedComponent read(InputStream input) { TaggedComponent value = new TaggedComponent(); value.tag = input.read_long(); value.component_data = new byte[ input.read_long() ]; for (int i0 = 0; i0 < value.component_data.length; i0++) value.component_data [ i0 ] = input.read_octet(); re... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/TaggedComponentHelper.java/buggy/core/src/classpath/org/org/omg/IOP/TaggedComponentHelper.java |
public void doPass2(BootableHashMap liveVariables) { | public void doPass2() { | public void doPass2(BootableHashMap liveVariables) { refs[0] = refs[0].simplify(); if (refs[0] instanceof Variable) { Variable v = (Variable) refs[0]; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/79bb5a92ef7c411cd222bab5d581025bb5cb5184/VarReturnQuad.java/clean/core/src/core/org/jnode/vm/compiler/ir/quad/VarReturnQuad.java |
if (refs[0] instanceof Variable) { Variable v = (Variable) refs[0]; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } | public void doPass2(BootableHashMap liveVariables) { refs[0] = refs[0].simplify(); if (refs[0] instanceof Variable) { Variable v = (Variable) refs[0]; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/79bb5a92ef7c411cd222bab5d581025bb5cb5184/VarReturnQuad.java/clean/core/src/core/org/jnode/vm/compiler/ir/quad/VarReturnQuad.java | |
public InflaterHuffmanTree(byte[] codeLengths) throws DataFormatException | InflaterHuffmanTree(byte[] codeLengths) throws DataFormatException | public InflaterHuffmanTree(byte[] codeLengths) throws DataFormatException { buildTree(codeLengths); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/InflaterHuffmanTree.java/buggy/core/src/classpath/java/java/util/zip/InflaterHuffmanTree.java |
public int getSymbol(StreamManipulator input) throws DataFormatException | int getSymbol(StreamManipulator input) throws DataFormatException | public int getSymbol(StreamManipulator input) throws DataFormatException { int lookahead, symbol; if ((lookahead = input.peekBits(9)) >= 0) { if ((symbol = tree[lookahead]) >= 0) { input.dropBits(symbol & 15); return symbol >> 4; } int subtree = -(symbol >> 4); int bitlen = symbol & 15; if ((l... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/InflaterHuffmanTree.java/buggy/core/src/classpath/java/java/util/zip/InflaterHuffmanTree.java |
throw new Error("Do not use add() on JInternalPane directly. Use getContentPane().add() instead"); super.addImpl(comp, constraints, index); | throw new Error("Do not use add() on JInternalFrame directly. Use " + "getContentPane().add() instead"); getContentPane().add(comp, constraints, index); } | protected void addImpl(Component comp, Object constraints, int index) { if (isRootPaneCheckingEnabled()) throw new Error("Do not use add() on JInternalPane directly. Use getContentPane().add() instead"); super.addImpl(comp, constraints, index); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/JInternalFrame.java/buggy/core/src/classpath/javax/javax/swing/JInternalFrame.java |
if (operation != DO_NOTHING_ON_CLOSE && operation != HIDE_ON_CLOSE && operation != DISPOSE_ON_CLOSE) throw new Error("Close operation must be one of DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE"); | /* Reference implementation allows invalid operations to be specified. In that case, behaviour defaults to DO_NOTHING_ON_CLOSE. processWindowEvent handles the behaviour. getDefaultCloseOperation must return the invalid operator code. */ | public void setDefaultCloseOperation(int operation) { if (operation != DO_NOTHING_ON_CLOSE && operation != HIDE_ON_CLOSE && operation != DISPOSE_ON_CLOSE) throw new Error("Close operation must be one of DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE"); defaultCloseOperation = operation; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/JInternalFrame.java/buggy/core/src/classpath/javax/javax/swing/JInternalFrame.java |
restartItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_restart")); | restartItem = new MenuItem(Messages.getString("StandaloneAppletWindow.MenuRestart")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java |
reloadItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_reload")); | reloadItem = new MenuItem(Messages.getString("StandaloneAppletWindow.MenuReload")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java |
cancelItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_cancel")); | cancelItem = new MenuItem(Messages.getString("StandaloneAppletWindow.MenuCancel")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java |
saveItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_save")); | saveItem = new MenuItem(Messages.getString("StandaloneAppletWindow.MenuSave")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java |
startItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_start")); | startItem = new MenuItem(Messages.getString("StandaloneAppletWindow.MenuStart")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java |
cloneItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_clone")); | cloneItem = new MenuItem(Messages.getString("StandaloneAppletWindow.MenuClone")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java |
closeItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_close")); | closeItem = new MenuItem(Messages.getString("StandaloneAppletWindow.MenuClose")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java |
new MenuItem(Main.messages.getString("gcjwebplugin.menu_tag")); | new MenuItem(Messages.getString("StandaloneAppletWindow.MenuTag")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java |
new MenuItem(Main.messages.getString("gcjwebplugin.menu_info")); | new MenuItem(Messages.getString("StandaloneAppletWindow.MenuInfo")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java |
new MenuItem(Main.messages.getString("gcjwebplugin.menu_edit")); | new MenuItem(Messages.getString("StandaloneAppletWindow.MenuEdit")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java |
new MenuItem(Main.messages.getString("gcjwebplugin.menu_encoding")); | new MenuItem(Messages.getString("StandaloneAppletWindow.MenuEncoding")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java |
new MenuItem(Main.messages.getString("gcjwebplugin.menu_print")); | new MenuItem(Messages.getString("StandaloneAppletWindow.MenuPrint")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java |
new MenuItem(Main.messages.getString("gcjwebplugin.menu_properties")); | new MenuItem(Messages.getString("StandaloneAppletWindow.MenuProperties")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java |
quitItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_quit")); | quitItem = new MenuItem(Messages.getString("StandaloneAppletWindow.MenuQuit")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java |
Menu menuApplet = new Menu(Main.messages.getString("gcjwebplugin.menu_title")); | Menu menuApplet = new Menu(Messages.getString("StandaloneAppletWindow.MenuTitle")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java |
setTitle("GNU Classpath Applet Viewer: " + tag.code); | setTitle(Messages.getString("StandaloneAppletWindow.WindowTitle") + " " + tag.code); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletWindow.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java |
public MenuItem add(MenuItem item) { | add(MenuItem item) { | public MenuItem add(MenuItem item) { items.addElement(item); if (item.parent != null) { item.parent.remove(item); } item.parent = this; if (peer != null) { MenuPeer mp = (MenuPeer) peer; mp.addItem(item); } return item; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Menu.java/buggy/core/src/classpath/java/java/awt/Menu.java |
if (item.parent != null) { | if (item.parent != null) { | public MenuItem add(MenuItem item) { items.addElement(item); if (item.parent != null) { item.parent.remove(item); } item.parent = this; if (peer != null) { MenuPeer mp = (MenuPeer) peer; mp.addItem(item); } return item; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Menu.java/buggy/core/src/classpath/java/java/awt/Menu.java |
if (peer != null) { | if (peer != null) { | public MenuItem add(MenuItem item) { items.addElement(item); if (item.parent != null) { item.parent.remove(item); } item.parent = this; if (peer != null) { MenuPeer mp = (MenuPeer) peer; mp.addItem(item); } return item; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Menu.java/buggy/core/src/classpath/java/java/awt/Menu.java |
} | } | public MenuItem add(MenuItem item) { items.addElement(item); if (item.parent != null) { item.parent.remove(item); } item.parent = this; if (peer != null) { MenuPeer mp = (MenuPeer) peer; mp.addItem(item); } return item; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Menu.java/buggy/core/src/classpath/java/java/awt/Menu.java |
public void addSeparator() { add(separator); } | addSeparator() { add(new MenuItem(separatorLabel)); } | public void addSeparator() { add(separator); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Menu.java/buggy/core/src/classpath/java/java/awt/Menu.java |
if (width != 0 && height != 0) stub.appletResize (width, height); | public final void setStub(AppletStub stub) { this.stub = stub; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e32ed4d0b771e0ed9b5a8daf23f7ad9df5afb15/Applet.java/buggy/core/src/classpath/java/java/applet/Applet.java | |
public synchronized void setText(String text) { | setText(String text) { | public synchronized void setText(String text) { this.text = text; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setText(text); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Label.java/buggy/core/src/classpath/java/java/awt/Label.java |
if (peer != null) { | if (peer != null) { | public synchronized void setText(String text) { this.text = text; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setText(text); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Label.java/buggy/core/src/classpath/java/java/awt/Label.java |
lp.setText(text); } | lp.setText (text); | public synchronized void setText(String text) { this.text = text; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setText(text); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Label.java/buggy/core/src/classpath/java/java/awt/Label.java |
} | public synchronized void setText(String text) { this.text = text; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setText(text); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Label.java/buggy/core/src/classpath/java/java/awt/Label.java | |
final Class cls = Thread.currentThread().getContextClassLoader().loadClass(className); | final ClassLoader cl = getPluginClassLoader(); final Class cls = cl.loadClass(className); | private Plugin createPlugin() throws PluginException { if (className == null) { return new EmptyPlugin(this); } else { try { final Class cls = Thread.currentThread().getContextClassLoader().loadClass(className); final Constructor cons = cls.getConstructor(new Class[] { PluginDescriptor.class }); return ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/PluginDescriptorModel.java/clean/core/src/core/org/jnode/plugin/model/PluginDescriptorModel.java |
protected final String getAttribute(XMLElement e, String name, boolean required) throws PluginException { | protected final String getAttribute(XMLElement e, String name, boolean required) throws PluginException { | protected final String getAttribute(XMLElement e, String name, boolean required) throws PluginException { final String v = e.getStringAttribute(name); if (required) { if (v == null) { throw new PluginException("Required attribute " + name + " in element " + e.getName() + " not found"); } } return v; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/AbstractModelObject.java/buggy/core/src/core/org/jnode/plugin/model/AbstractModelObject.java |
return v; | return v; | protected final String getAttribute(XMLElement e, String name, boolean required) throws PluginException { final String v = e.getStringAttribute(name); if (required) { if (v == null) { throw new PluginException("Required attribute " + name + " in element " + e.getName() + " not found"); } } return v; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/AbstractModelObject.java/buggy/core/src/core/org/jnode/plugin/model/AbstractModelObject.java |
protected abstract void resolve() throws PluginException; | protected abstract void resolve() throws PluginException; | protected abstract void resolve() throws PluginException; | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/AbstractModelObject.java/buggy/core/src/core/org/jnode/plugin/model/AbstractModelObject.java |
|| name.equals(Registry.DSS_KPG)) | || name.equalsIgnoreCase(Registry.DSS_KPG)) | public static IKeyPairGenerator getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator(); }... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a41d0899aa65f05fc526d9fb2ea0b096d1ff3f8c/KeyPairGeneratorFactory.java/clean/core/src/classpath/gnu/gnu/java/security/key/KeyPairGeneratorFactory.java |
hs.add(Registry.DSA_KPG); | public static final Set getNames() { HashSet hs = new HashSet(); hs.add(Registry.DSS_KPG); hs.add(Registry.RSA_KPG); hs.add(Registry.DH_KPG); hs.add(Registry.SRP_KPG); return Collections.unmodifiableSet(hs); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a41d0899aa65f05fc526d9fb2ea0b096d1ff3f8c/KeyPairGeneratorFactory.java/clean/core/src/classpath/gnu/gnu/java/security/key/KeyPairGeneratorFactory.java | |
IllegalArgumentException iae = new IllegalArgumentException ("strong crypto key pair generator not available: " + clazz); iae.initCause (x); throw iae; | throw new IllegalArgumentException( "strong crypto key pair generator not available: " + clazz, x); | private static IKeyPairGenerator makeInstance (String clazz) { try { Class c = Class.forName (clazz); Constructor ctor = c.getConstructor (new Class[0]); return (IKeyPairGenerator) ctor.newInstance (new Object[0]); } catch (Exception x) { IllegalArgumentException iae ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a41d0899aa65f05fc526d9fb2ea0b096d1ff3f8c/KeyPairGeneratorFactory.java/clean/core/src/classpath/gnu/gnu/java/security/key/KeyPairGeneratorFactory.java |
setHorizontalAlignment(LEFT); | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); setText(s); setOpaque(true); if (isSelected) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultListCellRenderer.java/clean/core/src/classpath/javax/javax/swing/DefaultListCellRenderer.java | |
this(null, null); | this(null, null, false); | public JToggleButton() { this(null, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/JToggleButton.java/buggy/core/src/classpath/javax/javax/swing/JToggleButton.java |
return null; | /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleJToggleButton(); } return accessibleContext; | public AccessibleContext getAccessibleContext() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/JToggleButton.java/buggy/core/src/classpath/javax/javax/swing/JToggleButton.java |
ButtonUI b = (ButtonUI)UIManager.getUI(this); setUI(b); | setUI((ButtonUI)UIManager.getUI(this)); | public void updateUI() { ButtonUI b = (ButtonUI)UIManager.getUI(this); setUI(b); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/JToggleButton.java/buggy/core/src/classpath/javax/javax/swing/JToggleButton.java |
public static ComponentUI createUI(final JComponent c) { | public static ComponentUI createUI(JComponent c) { | public static ComponentUI createUI(final JComponent c) { return new BasicCheckBoxUI(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicCheckBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicCheckBoxUI.java |
window.getRootPane().add(contents); | window.getContentPane().add(contents); | public JWindowPopup(Component owner, Component contents, int x, int y) { /* Checks whether contents is null. */ super(owner, contents, x, y); window = new JWindow(); window.getRootPane().add(contents); window.setLocation(x, y); window.pack(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/Popup.java/buggy/core/src/classpath/javax/javax/swing/Popup.java |
window.pack(); | window.setFocusableWindowState(false); | public JWindowPopup(Component owner, Component contents, int x, int y) { /* Checks whether contents is null. */ super(owner, contents, x, y); window = new JWindow(); window.getRootPane().add(contents); window.setLocation(x, y); window.pack(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/Popup.java/buggy/core/src/classpath/javax/javax/swing/Popup.java |
window.setSize(contents.getSize()); | public void show() { window.show(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/Popup.java/buggy/core/src/classpath/javax/javax/swing/Popup.java | |
if (canStart(d)) { BootLog.debug("Starting " + d.getId()); d.getPlugin().start(); } else { BootLog.warn("Skipping start of " + d.getId() + " due to to depencies."); | try { if (canStart(d)) { BootLog.debug("Starting " + d.getId()); d.getPlugin().start(); } else { BootLog.warn("Skipping start of " + d.getId() + " due to to depencies."); } } catch (PluginException ex) { BootLog.error("Error starting " + d.getId()); throw ex; } catch (Throwable ex) { BootLog.error("Error starting " + d... | public void startPlugin(PluginDescriptor d) throws PluginException { if (canStart(d)) { BootLog.debug("Starting " + d.getId()); d.getPlugin().start(); } else { BootLog.warn("Skipping start of " + d.getId() + " due to to depencies."); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/DefaultPluginManager.java/buggy/core/src/core/org/jnode/plugin/manager/DefaultPluginManager.java |
errors.add(ex); | errors.add(new StartError(ex, descr.getId())); | public void startPlugins() throws PluginException { final List descrList = createPluginDescriptorList(); final ArrayList errors = new ArrayList(descrList.size()); for (Iterator i = descrList.iterator(); i.hasNext();) { final PluginDescriptor descr = (PluginDescriptor) i.next(); try { //===== Removed to call ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/DefaultPluginManager.java/buggy/core/src/core/org/jnode/plugin/manager/DefaultPluginManager.java |
final Throwable ex = (Throwable) i.next(); BootLog.error("Error starting plugins", ex); | final StartError error = (StartError) i.next(); BootLog.error("Error starting plugin " + error.getPluginId(), error.getException()); | public void startPlugins() throws PluginException { final List descrList = createPluginDescriptorList(); final ArrayList errors = new ArrayList(descrList.size()); for (Iterator i = descrList.iterator(); i.hasNext();) { final PluginDescriptor descr = (PluginDescriptor) i.next(); try { //===== Removed to call ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/DefaultPluginManager.java/buggy/core/src/core/org/jnode/plugin/manager/DefaultPluginManager.java |
public final void start() throws PluginException { | public final void start() throws PluginException { | public final void start() throws PluginException { if (!started) { startPlugin(); started = true; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/Plugin.java/buggy/core/src/core/org/jnode/plugin/Plugin.java |
} else { BootLog.debug("Plugin " + descriptor.getId() + " already started"); | public final void start() throws PluginException { if (!started) { startPlugin(); started = true; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/Plugin.java/buggy/core/src/core/org/jnode/plugin/Plugin.java | |
assertCondition(kind > 0, "Invalid kind"); | Item(int kind, int offsetToFP) { this.kind = kind; this.offsetToFP = offsetToFP; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/Item.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/Item.java | |
throw new Error("not implemented"); | if (done) throw new NoSuchElementException(); switch (srcSegType) { case PathIterator.SEG_CLOSE: return srcSegType; case PathIterator.SEG_MOVETO: case PathIterator.SEG_LINETO: coords[0] = srcPosX; coords[1] = srcPosY; return srcSegType; case PathIterator.SEG_QUADTO: if (stackSize == 0) { coords[0] = srcPosX; coords[... | public int currentSegment(double[] coords) { throw new Error("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/FlatteningPathIterator.java/buggy/core/src/classpath/java/java/awt/geom/FlatteningPathIterator.java |
return PathIterator.SEG_LINETO; case PathIterator.SEG_CUBICTO: if (stackSize == 0) { coords[0] = srcPosX; coords[1] = srcPosY; } else { int sp = stack.length - 6 * stackSize; coords[0] = stack[sp + 4]; coords[1] = stack[sp + 5]; } return PathIterator.SEG_LINETO; } throw new IllegalStateException(); } | public int currentSegment(double[] coords) { throw new Error("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/FlatteningPathIterator.java/buggy/core/src/classpath/java/java/awt/geom/FlatteningPathIterator.java | |
return flatness; | return Math.sqrt(flatnessSq); | public double getFlatness() { return flatness; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/FlatteningPathIterator.java/buggy/core/src/classpath/java/java/awt/geom/FlatteningPathIterator.java |
return limit; | return recursionLimit; | public int getRecursionLimit() { return limit; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/FlatteningPathIterator.java/buggy/core/src/classpath/java/java/awt/geom/FlatteningPathIterator.java |
return subIterator.getWindingRule(); | return srcIter.getWindingRule(); | public int getWindingRule() { return subIterator.getWindingRule(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/FlatteningPathIterator.java/buggy/core/src/classpath/java/java/awt/geom/FlatteningPathIterator.java |
return subIterator.isDone(); | return done; | public boolean isDone() { return subIterator.isDone(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/FlatteningPathIterator.java/buggy/core/src/classpath/java/java/awt/geom/FlatteningPathIterator.java |
throw new Error("not implemented"); | if (stackSize > 0) { --stackSize; if (stackSize > 0) { switch (srcSegType) { case PathIterator.SEG_QUADTO: subdivideQuadratic(); return; case PathIterator.SEG_CUBICTO: subdivideCubic(); return; default: throw new IllegalStateException(); } } } srcIter.next(); fetchSegment(); | public void next() { throw new Error("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/FlatteningPathIterator.java/buggy/core/src/classpath/java/java/awt/geom/FlatteningPathIterator.java |
final boolean jdkStatic = ((jdkFields[i].getModifiers() & Modifier.STATIC) != 0); if (f.isStatic() != jdkStatic) { jdkFields[i] = null; exact = false; } | private final Field[] toJdkFields(Class jdkType, List jnodeFields) { final int cnt = jnodeFields.size(); final Field[] jdkFields = new Field[cnt]; for (int i = 0; i < cnt; i++) { final VmField f = (VmField)jnodeFields.get(i); try { jdkFields[i] = jdkType.get... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c7b556b58c468c2b7e6657a7325f68aa4173d7d6/FieldInfo.java/buggy/builder/src/builder/org/jnode/build/FieldInfo.java | |
if (knownMod != modCount) throw new ConcurrentModificationException(); | public boolean hasNext() { if (knownMod != modCount) throw new ConcurrentModificationException(); return count > 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63ff6161906dfae5c6cd8e9ab83aca650e00923d/HashMap.java/clean/core/src/classpath/5.0/java/util/HashMap.java | |
if (e instanceof AbstractMap.BasicMapEntry) | if (e instanceof AbstractMap.SimpleEntry) | public void putAll(Map<? extends K, ? extends V> m) { Map<K,V> addMap; addMap = (Map<K,V>) m; for (Map.Entry<K,V> e : addMap.entrySet()) { // Optimize in case the Entry is one of our own. if (e instanceof AbstractMap.BasicMapEntry) { AbstractMap.BasicMapEntry<? extends... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63ff6161906dfae5c6cd8e9ab83aca650e00923d/HashMap.java/clean/core/src/classpath/5.0/java/util/HashMap.java |
AbstractMap.BasicMapEntry<? extends K, ? extends V> entry = (AbstractMap.BasicMapEntry<? extends K, ? extends V>) e; | AbstractMap.SimpleEntry<? extends K, ? extends V> entry = (AbstractMap.SimpleEntry<? extends K, ? extends V>) e; | public void putAll(Map<? extends K, ? extends V> m) { Map<K,V> addMap; addMap = (Map<K,V>) m; for (Map.Entry<K,V> e : addMap.entrySet()) { // Optimize in case the Entry is one of our own. if (e instanceof AbstractMap.BasicMapEntry) { AbstractMap.BasicMapEntry<? extends... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63ff6161906dfae5c6cd8e9ab83aca650e00923d/HashMap.java/clean/core/src/classpath/5.0/java/util/HashMap.java |
lmPI = Math.min(piList.lastModified(), systemPluginList.lastModified()); | lmPI = Math.max(piList.lastModified(), systemPluginList.lastModified()); | public void execute() throws BuildException { final long start = System.currentTimeMillis(); final PluginList piList; final PluginList systemPluginList; final long lmPI; try { piList = getPluginList(); systemPluginList = getSystemPluginList(); if (... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fdd19eb80c775a25c93a892ac09b07797a2cb058/InitJarBuilder.java/clean/builder/src/builder/org/jnode/build/InitJarBuilder.java |
for (PluginList inc : includes) { max = Math.max(max, inc.lastModified()); } | public long lastModified() throws IOException { long max = 0; for (int i = 0; i < descrList.length; i++) { final URLConnection conn2 = pluginList[i].openConnection(); max = Math.max(max, conn2.getLastModified()); } return max; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fdd19eb80c775a25c93a892ac09b07797a2cb058/PluginList.java/buggy/builder/src/builder/org/jnode/build/PluginList.java | |
if (isShowing()) | if (isShowing() && isLightweight()) | public void show() { // We must set visible before showing the peer. Otherwise the // peer could post paint events before visible is true, in which // case lightweight components are not initially painted -- // Container.paint first calls isShowing () before painting itself // and its children. if... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/Component.java/buggy/core/src/classpath/java/java/awt/Component.java |
else { position(limit()); limit(capacity()); } | public CharBuffer compact () { if (position () > 0) { int count = limit () - position (); bb.shiftDown(offset, offset + 2 * position(), 2 * count); position (count); limit (capacity ()); } return this; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e32ed4d0b771e0ed9b5a8daf23f7ad9df5afb15/CharViewBufferImpl.java/buggy/core/src/classpath/java/java/nio/CharViewBufferImpl.java | |
if(Modifier.isPublic(method.getModifiers()) && !Modifier.isStatic(method.getModifiers())) { | if(Modifier.isPublic(method.getModifiers())) { | public void addMethod(Method method) { if(Modifier.isPublic(method.getModifiers()) && !Modifier.isStatic(method.getModifiers())) { String name = ClassHelper.getTruncatedName(method.getName()); Class retType = method.getReturnType(); Class[] params = method.getParameterTypes(); boolean isVoid = retType.equals(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IntrospectionIncubator.java/buggy/core/src/classpath/gnu/gnu/java/beans/IntrospectionIncubator.java |
return new cdrEncapsCodec(orb, | return new CdrEncapsCodecImpl(orb, | public Codec create_codec(Encoding for_encoding) throws UnknownEncoding { if (for_encoding.format != ENCODING_CDR_ENCAPS.value) throw new UnknownEncoding("Only ENCODING_CDR_ENCAPS is " + "supported by this factory." ); return new cdrEncapsCodec(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/gnuCodecFactory.java/buggy/core/src/classpath/gnu/gnu/CORBA/gnuCodecFactory.java |
public boolean dispatchEvent (AWTEvent e) { if (e instanceof WindowEvent) { Window target = (Window) e.getSource (); if (e.id == WindowEvent.WINDOW_ACTIVATED) setGlobalActiveWindow (target); else if (e.id == WindowEvent.WINDOW_GAINED_FOCUS) setGlobalFocusedWindow (targe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/DefaultKeyboardFocusManager.java/clean/core/src/classpath/java/java/awt/DefaultKeyboardFocusManager.java | ||
} | public boolean dispatchEvent (AWTEvent e) { if (e instanceof WindowEvent) { Window target = (Window) e.getSource (); if (e.id == WindowEvent.WINDOW_ACTIVATED) setGlobalActiveWindow (target); else if (e.id == WindowEvent.WINDOW_GAINED_FOCUS) setGlobalFocusedWindow (targe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/DefaultKeyboardFocusManager.java/clean/core/src/classpath/java/java/awt/DefaultKeyboardFocusManager.java | |
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPan... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/JScrollPane.java/buggy/core/src/classpath/javax/javax/swing/JScrollPane.java | ||
pt.x = 0; if (rowHeader != null && rowHeader.getViewPosition() != pt) rowHeader.setViewPosition(pt); pt.x = xpos; pt.y = 0; if (columnHeader != null && columnHeader.getViewPosition() != pt) columnHeader.setViewPosition(pt); | ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPan... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/JScrollPane.java/buggy/core/src/classpath/javax/javax/swing/JScrollPane.java | |
public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPane.this.getViewport(); if (vp != null && event.getSource() == vp) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/JScrollPane.java/buggy/core/src/classpath/javax/javax/swing/JScrollPane.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.