rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
if ((debugOptions & LOG_OPTION) != 0) { logStream().println(prefix() + " Drawing round rect: " + new Rectangle(x, y, width, height) + " arcWidth: " + arcWidth + " arcHeight: " + arcHeight); } | public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) { graphics.drawRoundRect(x, y, width, height, arcWidth, arcHeight); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java | |
if ((debugOptions & LOG_OPTION) != 0) { logStream().println(prefix() + " Drawing string: \"" + string + "\" at: " + new Point(x, y)); } | public void drawString(String string, int x, int y) { graphics.drawString(string, x, y); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java | |
if ((debugOptions & LOG_OPTION) != 0) { logStream().println(prefix() + " Filling 3D rect: " + new Rectangle(x, y, width, height) + "Raised bezel: " + raised); } | public void fill3DRect(int x, int y, int width, int height, boolean raised) { graphics.fill3DRect(x, y, width, height, raised); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java | |
if ((debugOptions & LOG_OPTION) != 0) { logStream().println(prefix() + " Filling arc: " + new Rectangle(x, y, width, height) + " startAngle: " + startAngle + " arcAngle: " + arcAngle); } | public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) { graphics.fillArc(x, y, width, height, startAngle, arcAngle); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java | |
if ((debugOptions & LOG_OPTION) != 0) { logStream().println(prefix() + " Filling oval: " + new Rectangle(x, y, width, height)); } | public void fillOval(int x, int y, int width, int height) { graphics.fillOval(x, y, width, height); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java | |
if ((debugOptions & LOG_OPTION) != 0) { logStream().println(prefix() + " Drawing polygon: nPoints: " + npoints + " X's: " + xpoints + " Y's: " + ypoints); } | public void fillPolygon(int[] xpoints, int[] ypoints, int npoints) { graphics.fillPolygon(xpoints, ypoints, npoints); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java | |
graphics.setColor(color); | public void fillRect(int x, int y, int width, int height) { for (int index = 0; index < (debugFlashCount - 1); ++index) { graphics.setColor(color); graphics.fillRect(x, y, width, height); sleep(debugFlashTime); graphics.setColor(debugFlashColor); graphics.fillRect(x, y, width, height); sleep(debugFlashTime)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java | |
if ((debugOptions & LOG_OPTION) != 0) { logStream().println(prefix() + " Filling round rect: " + new Rectangle(x, y, width, height) + " arcWidth: " + arcWidth + " arcHeight: " + arcHeight); } | public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) { graphics.fillRoundRect(x, y, width, height, arcWidth, arcHeight); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java | |
return color; | return graphics.getColor(); | public Color getColor() { return color; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java |
if ((debugOptions & LOG_OPTION) != 0) { logStream().println(prefix() + " Setting new clipRect: " + new Rectangle(x, y, width, height)); } | public void setClip(int x, int y, int width, int height) { graphics.setClip(x, y, width, height); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java | |
this.color = color; | if ((debugOptions & LOG_OPTION) != 0) logStream().println(prefix() + " Setting color: " + color); graphics.setColor(color); | public void setColor(Color color) { this.color = color; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java |
if ((debugOptions & LOG_OPTION) != 0) if (options == NONE_OPTION) logStream().println(prefix() + "Disabling debug"); else logStream().println(prefix() + "Enabling debug"); | public void setDebugOptions(int options) { debugOptions = options; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java | |
if ((debugOptions & LOG_OPTION) != 0) logStream().println(prefix() + " Setting font: " + font); | public void setFont(Font font) { graphics.setFont(font); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java | |
if ((debugOptions & LOG_OPTION) != 0) logStream().println(prefix() + " Setting paint mode"); | public void setPaintMode() { graphics.setPaintMode(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java | |
if ((debugOptions & LOG_OPTION) != 0) logStream().println(prefix() + " Setting XOR mode: " + color); | public void setXORMode(Color color) { graphics.setXORMode(color); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java | |
if ((debugOptions & LOG_OPTION) != 0) logStream().println(prefix() + " Translating by: " + new Point(x, y)); | public void translate(int x, int y) { graphics.translate(x, y); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java | |
sem.send(); | if (sem.send()) { | private void sendIt (Frame parent, SendEMail sem) { if (parent == null) parent = new JFrame(); try { sem.send(); JOptionPane.showMessageDialog(parent, LangTool.getString("em.confirmationMessage") + " "... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/688e5034bbea070acdcad4fb202b33b76c6c665d/SendEMailDialog.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMailDialog.java |
JOptionPane.showMessageDialog(parent, LangTool.getString("em.confirmationMessage") + " " + (String)toAddress.getSelectedItem(), LangTool.getString("em.titleConfirmation"), JOptionPane.INFORMATION_MESSAGE); | JOptionPane.showMessageDialog(parent, LangTool.getString("em.confirmationMessage") + " " + (String)toAddress.getSelectedItem(), LangTool.getString("em.titleConfirmation"), JOptionPane.INFORMATION_MESSAGE); | private void sendIt (Frame parent, SendEMail sem) { if (parent == null) parent = new JFrame(); try { sem.send(); JOptionPane.showMessageDialog(parent, LangTool.getString("em.confirmationMessage") + " "... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/688e5034bbea070acdcad4fb202b33b76c6c665d/SendEMailDialog.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMailDialog.java |
if (session != null) { config.setProperty("emailTo", getToTokens(config.getStringProperty("emailTo"), toAddress)); config.saveSessionProps(); setToCombo(config.getStringProperty("emailTo"),toAddress); | if (session != null) { config.setProperty("emailTo", getToTokens(config.getStringProperty("emailTo"), toAddress)); config.saveSessionProps(); setToCombo(config.getStringProperty("emailTo"),toAddress); } | private void sendIt (Frame parent, SendEMail sem) { if (parent == null) parent = new JFrame(); try { sem.send(); JOptionPane.showMessageDialog(parent, LangTool.getString("em.confirmationMessage") + " "... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/688e5034bbea070acdcad4fb202b33b76c6c665d/SendEMailDialog.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMailDialog.java |
catch (SendFailedException sfe) { showFailedException(parent, sfe); } | private void sendIt (Frame parent, SendEMail sem) { if (parent == null) parent = new JFrame(); try { sem.send(); JOptionPane.showMessageDialog(parent, LangTool.getString("em.confirmationMessage") + " "... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/688e5034bbea070acdcad4fb202b33b76c6c665d/SendEMailDialog.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMailDialog.java | |
vstack.push(createConst(type, fpv1 + fpv2)); | vstack.push(createConst(ifac, type, fpv1 + fpv2)); | final static void add(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(type, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/FPUHelper.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUHelper.java |
final IntItem res = IntItem.createReg(resr); | final ItemFactory ifac = ec.getItemFactory(); final IntItem res = (IntItem)ifac.createReg(JvmType.INT, resr); | final static void compare(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final Register reg; reg = prepareForOperation(o... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/FPUHelper.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUHelper.java |
vstack.push(createConst(toType, getFPValue(v))); | vstack.push(createConst(ifac, toType, getFPValue(v))); | final static void convert(EmitterContext ec, VirtualStack vstack, int fromType, int toType) { final Item v = vstack.pop(fromType); if (v.isConstant()) { vstack.push(createConst(toType, getFPValue(v))); } else { v.pushToFPU(ec); vstack.fpuStack.pop(v); final Item result = createFPUStack(toType); vstack.p... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/FPUHelper.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUHelper.java |
final Item result = createFPUStack(toType); | final Item result = ifac.createFPUStack(toType); | final static void convert(EmitterContext ec, VirtualStack vstack, int fromType, int toType) { final Item v = vstack.pop(fromType); if (v.isConstant()) { vstack.push(createConst(toType, getFPValue(v))); } else { v.pushToFPU(ec); vstack.fpuStack.pop(v); final Item result = createFPUStack(toType); vstack.p... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/FPUHelper.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUHelper.java |
private final static Item createConst(int type, double value) { | private final static Item createConst(ItemFactory ifac, int type, double value) { | private final static Item createConst(int type, double value) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createConst(value); case JvmType.FLOAT: return FloatItem.createConst((float) value); case JvmType.INT: return IntItem.createConst((int) value); case JvmType.LONG: return LongItem.createCo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/FPUHelper.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUHelper.java |
return DoubleItem.createConst(value); | return ifac.createDConst(value); | private final static Item createConst(int type, double value) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createConst(value); case JvmType.FLOAT: return FloatItem.createConst((float) value); case JvmType.INT: return IntItem.createConst((int) value); case JvmType.LONG: return LongItem.createCo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/FPUHelper.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUHelper.java |
return FloatItem.createConst((float) value); | return ifac.createFConst((float) value); | private final static Item createConst(int type, double value) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createConst(value); case JvmType.FLOAT: return FloatItem.createConst((float) value); case JvmType.INT: return IntItem.createConst((int) value); case JvmType.LONG: return LongItem.createCo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/FPUHelper.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUHelper.java |
return IntItem.createConst((int) value); | return ifac.createIConst((int) value); | private final static Item createConst(int type, double value) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createConst(value); case JvmType.FLOAT: return FloatItem.createConst((float) value); case JvmType.INT: return IntItem.createConst((int) value); case JvmType.LONG: return LongItem.createCo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/FPUHelper.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUHelper.java |
return LongItem.createConst((long) value); | return ifac.createLConst((long) value); | private final static Item createConst(int type, double value) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createConst(value); case JvmType.FLOAT: return FloatItem.createConst((float) value); case JvmType.INT: return IntItem.createConst((int) value); case JvmType.LONG: return LongItem.createCo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/FPUHelper.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUHelper.java |
vstack.push(createConst(type, fpv1 / fpv2)); | vstack.push(createConst(ifac, type, fpv1 / fpv2)); | final static void div(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(type, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/FPUHelper.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUHelper.java |
vstack.push(createConst(type, fpv1 * fpv2)); | vstack.push(createConst(ifac, type, fpv1 * fpv2)); | final static void mul(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(type, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/FPUHelper.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUHelper.java |
vstack.push(createConst(type, -fpv)); | vstack.push(createConst(ifac, type, -fpv)); | final static void neg(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v = vstack.pop(type); if (v.isConstant()) { final double fpv = getFPValue(v); vstack.push(createConst(type, -fpv)); } else { // Prepare final FPUStack fpuStack = vstack.fpuStack; prepareForOperatio... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/FPUHelper.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUHelper.java |
vstack.push(createConst(type, fpv1 % fpv2)); | vstack.push(createConst(ifac, type, fpv1 % fpv2)); | final static void rem(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(type, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/FPUHelper.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUHelper.java |
vstack.push(createConst(type, fpv1 - fpv2)); | vstack.push(createConst(ifac, type, fpv1 - fpv2)); | final static void sub(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(type, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/FPUHelper.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUHelper.java |
REMatch newMatch = null; REMatch last = null; | REMatch.REMatchList newMatch = new REMatch.REMatchList(); | private boolean matchP(CharIndexed input, REMatch mymatch) { REMatch newMatch = null; REMatch last = null; REToken tk; for (int i=0; i < options.size(); i++) { // In ordaer that the backtracking can work, // each option must be chained to the next token. // But the chain method has some side effect, so ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/RETokenOneOf.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenOneOf.java |
private boolean matchP(CharIndexed input, REMatch mymatch) { REMatch newMatch = null; REMatch last = null; REToken tk; for (int i=0; i < options.size(); i++) { // In ordaer that the backtracking can work, // each option must be chained to the next token. // But the chain method has some side effect, so ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/RETokenOneOf.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenOneOf.java | ||
if (last == null) { newMatch = tryMatch; last = tryMatch; } else { last.next = tryMatch; last = tryMatch; } | newMatch.addTail(tryMatch); | private boolean matchP(CharIndexed input, REMatch mymatch) { REMatch newMatch = null; REMatch last = null; REToken tk; for (int i=0; i < options.size(); i++) { // In ordaer that the backtracking can work, // each option must be chained to the next token. // But the chain method has some side effect, so ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/RETokenOneOf.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenOneOf.java |
if (newMatch != null) { | if (newMatch.head != null) { | private boolean matchP(CharIndexed input, REMatch mymatch) { REMatch newMatch = null; REMatch last = null; REToken tk; for (int i=0; i < options.size(); i++) { // In ordaer that the backtracking can work, // each option must be chained to the next token. // But the chain method has some side effect, so ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/RETokenOneOf.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenOneOf.java |
mymatch.assignFrom(newMatch); | mymatch.assignFrom(newMatch.head); | private boolean matchP(CharIndexed input, REMatch mymatch) { REMatch newMatch = null; REMatch last = null; REToken tk; for (int i=0; i < options.size(); i++) { // In ordaer that the backtracking can work, // each option must be chained to the next token. // But the chain method has some side effect, so ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/RETokenOneOf.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenOneOf.java |
{ } | { } | UnicastServerRef(){} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
private void buildMethodHash(Class cls, boolean build) { | private void buildMethodHash(Class cls, boolean build) { | private void buildMethodHash(Class cls, boolean build) { Method[] meths = cls.getMethods(); for (int i = 0; i < meths.length; i++) { /* Don't need to include any java.xxx related stuff */ if (meths[i].getDeclaringClass().getName().startsWith("java.")) { continue; } long hash = RMIHashes.getMethodHash(meths[i]); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
for (int i = 0; i < meths.length; i++) { | for (int i = 0; i < meths.length; i++) { | private void buildMethodHash(Class cls, boolean build) { Method[] meths = cls.getMethods(); for (int i = 0; i < meths.length; i++) { /* Don't need to include any java.xxx related stuff */ if (meths[i].getDeclaringClass().getName().startsWith("java.")) { continue; } long hash = RMIHashes.getMethodHash(meths[i]); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
if (meths[i].getDeclaringClass().getName().startsWith("java.")) { | if (meths[i].getDeclaringClass().getName().startsWith("java.")) { | private void buildMethodHash(Class cls, boolean build) { Method[] meths = cls.getMethods(); for (int i = 0; i < meths.length; i++) { /* Don't need to include any java.xxx related stuff */ if (meths[i].getDeclaringClass().getName().startsWith("java.")) { continue; } long hash = RMIHashes.getMethodHash(meths[i]); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
if(build) methods.put(new Long (hash), meths[i]); | if (build) methods.put(new Long(hash), meths[i]); | private void buildMethodHash(Class cls, boolean build) { Method[] meths = cls.getMethods(); for (int i = 0; i < meths.length; i++) { /* Don't need to include any java.xxx related stuff */ if (meths[i].getDeclaringClass().getName().startsWith("java.")) { continue; } long hash = RMIHashes.getMethodHash(meths[i]); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
methods.remove(new Long (hash)); | methods.remove(new Long(hash)); } | private void buildMethodHash(Class cls, boolean build) { Method[] meths = cls.getMethods(); for (int i = 0; i < meths.length; i++) { /* Don't need to include any java.xxx related stuff */ if (meths[i].getDeclaringClass().getName().startsWith("java.")) { continue; } long hash = RMIHashes.getMethodHash(meths[i]); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
} | private void buildMethodHash(Class cls, boolean build) { Method[] meths = cls.getMethods(); for (int i = 0; i < meths.length; i++) { /* Don't need to include any java.xxx related stuff */ if (meths[i].getDeclaringClass().getName().startsWith("java.")) { continue; } long hash = RMIHashes.getMethodHash(meths[i]); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java | |
public RemoteStub exportObject(Remote obj) throws RemoteException { if (myself == null) { | public Remote exportObject(Remote obj) throws RemoteException { if (myself == null) { | public RemoteStub exportObject(Remote obj) throws RemoteException { if (myself == null) { myself = obj; // Save it to server manager, to let client calls in the same VM to issue // local call manager.serverobj = obj; // Find and install the stub Class cls = obj.getClass(); Class expCls; try { // where ist th... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
public RemoteStub exportObject(Remote obj) throws RemoteException { if (myself == null) { myself = obj; // Save it to server manager, to let client calls in the same VM to issue // local call manager.serverobj = obj; // Find and install the stub Class cls = obj.getClass(); Class expCls; try { // where ist th... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java | ||
Class expCls; try { | public RemoteStub exportObject(Remote obj) throws RemoteException { if (myself == null) { myself = obj; // Save it to server manager, to let client calls in the same VM to issue // local call manager.serverobj = obj; // Find and install the stub Class cls = obj.getClass(); Class expCls; try { // where ist th... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java | |
expCls = findStubSkelClass(cls); } catch (Exception ex) { throw new RemoteException("can not find stubs for class: " + cls, ex); | Class expCls = expCls = findStubSkelClass(cls); if (expCls != null) { stub = (RemoteStub) getHelperClass(expCls, "_Stub"); skel = (Skeleton) getHelperClass(expCls, "_Skel"); } | public RemoteStub exportObject(Remote obj) throws RemoteException { if (myself == null) { myself = obj; // Save it to server manager, to let client calls in the same VM to issue // local call manager.serverobj = obj; // Find and install the stub Class cls = obj.getClass(); Class expCls; try { // where ist th... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
stub = (RemoteStub)getHelperClass(expCls, "_Stub"); if (stub == null) { throw new RemoteException("failed to export: " + cls); } skel = (Skeleton)getHelperClass(expCls, "_Skel"); | if (stub == null) stub = createProxyStub(obj.getClass(), this); | public RemoteStub exportObject(Remote obj) throws RemoteException { if (myself == null) { myself = obj; // Save it to server manager, to let client calls in the same VM to issue // local call manager.serverobj = obj; // Find and install the stub Class cls = obj.getClass(); Class expCls; try { // where ist th... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
return (stub); } | return stub; } | public RemoteStub exportObject(Remote obj) throws RemoteException { if (myself == null) { myself = obj; // Save it to server manager, to let client calls in the same VM to issue // local call manager.serverobj = obj; // Find and install the stub Class cls = obj.getClass(); Class expCls; try { // where ist th... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
private Class findStubSkelClass(Class startCls) throws Exception { | private Class findStubSkelClass(Class startCls) { | private Class findStubSkelClass(Class startCls) throws Exception { Class cls = startCls; while (true) { try { String stubClassname = cls.getName() + "_Stub"; ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(stubClassname) : cl.loadClass(stubClassname); return cls; // found it... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
while (true) { try { | while (true) { try { | private Class findStubSkelClass(Class startCls) throws Exception { Class cls = startCls; while (true) { try { String stubClassname = cls.getName() + "_Stub"; ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(stubClassname) : cl.loadClass(stubClassname); return cls; // found it... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
} catch (ClassNotFoundException e) { | } catch (ClassNotFoundException e) { | private Class findStubSkelClass(Class startCls) throws Exception { Class cls = startCls; while (true) { try { String stubClassname = cls.getName() + "_Stub"; ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(stubClassname) : cl.loadClass(stubClassname); return cls; // found it... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
throw new Exception("Neither " + startCls + " nor one of their superclasses (like" + cls + ")" + " has a _Stub"); | return null; | private Class findStubSkelClass(Class startCls) throws Exception { Class cls = startCls; while (true) { try { String stubClassname = cls.getName() + "_Stub"; ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(stubClassname) : cl.loadClass(stubClassname); return cls; // found it... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
} | } | private Class findStubSkelClass(Class startCls) throws Exception { Class cls = startCls; while (true) { try { String stubClassname = cls.getName() + "_Stub"; ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(stubClassname) : cl.loadClass(stubClassname); return cls; // found it... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
public String getClientHost() throws ServerNotActiveException { | public String getClientHost() throws ServerNotActiveException { | public String getClientHost() throws ServerNotActiveException { return RemoteServer.getClientHost();} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
} | } | public String getClientHost() throws ServerNotActiveException { return RemoteServer.getClientHost();} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
private Object getHelperClass(Class cls, String type) { try { | private Object getHelperClass(Class cls, String type) { try { | private Object getHelperClass(Class cls, String type) { try { String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(classname + type) : cl.loadClass(classname + type); if (type.equals("_Stub")) { try { // JDK 1.2 stubs Constructor con = sc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
if (type.equals("_Stub")) { try { | if (type.equals("_Stub")) { try { | private Object getHelperClass(Class cls, String type) { try { String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(classname + type) : cl.loadClass(classname + type); if (type.equals("_Stub")) { try { // JDK 1.2 stubs Constructor con = sc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
return (con.newInstance(new Object[]{this})); | return (con.newInstance(new Object[] { this })); | private Object getHelperClass(Class cls, String type) { try { String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(classname + type) : cl.loadClass(classname + type); if (type.equals("_Stub")) { try { // JDK 1.2 stubs Constructor con = sc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
catch (NoSuchMethodException e) { | catch (NoSuchMethodException e) { | private Object getHelperClass(Class cls, String type) { try { String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(classname + type) : cl.loadClass(classname + type); if (type.equals("_Stub")) { try { // JDK 1.2 stubs Constructor con = sc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
catch (InstantiationException e) { | catch (InstantiationException e) { | private Object getHelperClass(Class cls, String type) { try { String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(classname + type) : cl.loadClass(classname + type); if (type.equals("_Stub")) { try { // JDK 1.2 stubs Constructor con = sc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
catch (IllegalAccessException e) { | catch (IllegalAccessException e) { | private Object getHelperClass(Class cls, String type) { try { String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(classname + type) : cl.loadClass(classname + type); if (type.equals("_Stub")) { try { // JDK 1.2 stubs Constructor con = sc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
catch (IllegalArgumentException e) { | catch (IllegalArgumentException e) { | private Object getHelperClass(Class cls, String type) { try { String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(classname + type) : cl.loadClass(classname + type); if (type.equals("_Stub")) { try { // JDK 1.2 stubs Constructor con = sc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
catch (InvocationTargetException e) { | catch (InvocationTargetException e) { | private Object getHelperClass(Class cls, String type) { try { String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(classname + type) : cl.loadClass(classname + type); if (type.equals("_Stub")) { try { // JDK 1.2 stubs Constructor con = sc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
RemoteStub stub = (RemoteStub)scls.newInstance(); | RemoteStub stub = (RemoteStub) scls.newInstance(); | private Object getHelperClass(Class cls, String type) { try { String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(classname + type) : cl.loadClass(classname + type); if (type.equals("_Stub")) { try { // JDK 1.2 stubs Constructor con = sc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
else { | else { | private Object getHelperClass(Class cls, String type) { try { String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(classname + type) : cl.loadClass(classname + type); if (type.equals("_Stub")) { try { // JDK 1.2 stubs Constructor con = sc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
catch (ClassNotFoundException e) { | catch (ClassNotFoundException e) { | private Object getHelperClass(Class cls, String type) { try { String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(classname + type) : cl.loadClass(classname + type); if (type.equals("_Stub")) { try { // JDK 1.2 stubs Constructor con = sc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
catch (InstantiationException e) { | catch (InstantiationException e) { | private Object getHelperClass(Class cls, String type) { try { String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(classname + type) : cl.loadClass(classname + type); if (type.equals("_Stub")) { try { // JDK 1.2 stubs Constructor con = sc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
catch (IllegalAccessException e) { | catch (IllegalAccessException e) { | private Object getHelperClass(Class cls, String type) { try { String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(classname + type) : cl.loadClass(classname + type); if (type.equals("_Stub")) { try { // JDK 1.2 stubs Constructor con = sc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
} | } | private Object getHelperClass(Class cls, String type) { try { String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); Class scls = cl == null ? Class.forName(classname + type) : cl.loadClass(classname + type); if (type.equals("_Stub")) { try { // JDK 1.2 stubs Constructor con = sc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
{ if (method == -1) { Method meth = (Method)methods.get(new Long (hash)); | { if (method == - 1) { Method meth = (Method) methods.get(new Long(hash)); | Class getMethodReturnType(int method, long hash) throws Exception{ if (method == -1) { Method meth = (Method)methods.get(new Long (hash)); return meth.getReturnType(); }else return null;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
}else | } else | Class getMethodReturnType(int method, long hash) throws Exception{ if (method == -1) { Method meth = (Method)methods.get(new Long (hash)); return meth.getReturnType(); }else return null;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
} | } | Class getMethodReturnType(int method, long hash) throws Exception{ if (method == -1) { Method meth = (Method)methods.get(new Long (hash)); return meth.getReturnType(); }else return null;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
public RemoteStub getStub(){ | public Remote getStub() { | public RemoteStub getStub(){ return stub;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
} | } | public RemoteStub getStub(){ return stub;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception { | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception { | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
if (method == -1) { Method meth = (Method)methods.get(new Long (hash)); if (meth == null) { | if (method == - 1) { Method meth = (Method) methods.get(new Long(hash)); if (meth == null) { | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
for (int i = 0; i < nrargs; i++) { | for (int i = 0; i < nrargs; i++) { | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
* For debugging purposes - we don't handle CodeBases * quite right so we don't always find the stubs. This * lets us know that. | * For debugging purposes - we don't handle CodeBases quite right so * we don't always find the stubs. This lets us know that. | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
try { | try { | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
args[i] = ((RMIObjectInputStream)in).readValue(meth.getParameterTypes()[i]); | args[i] = ((RMIObjectInputStream) in) .readValue(meth.getParameterTypes()[i]); | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
catch (Exception t) { | catch (Exception t) { | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
try{ | try { | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
}catch(InvocationTargetException e){ | } catch (InvocationTargetException e) { | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
if (cause instanceof Exception) { throw (Exception)cause; | if (cause instanceof Exception) { throw (Exception) cause; | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
else if (cause instanceof Error) { throw (Error)cause; | else if (cause instanceof Error) { throw (Error) cause; | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
else { throw new Error("The remote method threw a java.lang.Throwable that is neither java.lang.Exception nor java.lang.Error.", e); | else { throw new Error( "The remote method threw a java.lang.Throwable that"+ " is neither java.lang.Exception nor java.lang.Error.", e); | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
else { if (skel == null) { | else { if (skel == null) { | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
if (!call.isReturnValue()) | if (! call.isReturnValue()) | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
} | } | public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
public boolean unexportObject(Remote obj, boolean force) { | public boolean unexportObject(Remote obj, boolean force) { | public boolean unexportObject(Remote obj, boolean force) { // Remove all hashes of methods which may be called. buildMethodHash(obj.getClass(), false); return UnicastServer.unexportObject(this, force);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
} | } | public boolean unexportObject(Remote obj, boolean force) { // Remove all hashes of methods which may be called. buildMethodHash(obj.getClass(), false); return UnicastServer.unexportObject(this, force);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java |
(screenSize.height - frameSize.height) / 2); | (screenSize.height - frameSize.height) / 3); | private void jbInit() throws Exception { try { setIconImage(GUIGraphicsUtils.getApplicationIcon().getImage()); // set title setTitle(LangTool.getString("xtfr.wizardTitle")); // Load the JDBC driver. Driver driver2 = (Driver)Class.forName("com.ibm.as400.access.AS400JDBCDri... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/57450b8f025865c21497e968647e9f326c0a2834/SqlWizard.java/clean/tn5250j/src/org/tn5250j/sql/SqlWizard.java |
if (!ck.toByteArray ().equals (toByteArray ())) | if (! Arrays.equals (ck.toByteArray (), toByteArray ())) | public boolean equals (Object obj) { if (! (obj instanceof CollationKey)) return false; CollationKey ck = (CollationKey) obj; if (ck.collator != collator) return false; if (!ck.getSourceString ().equals (getSourceString ())) return false; if (!ck.toByteArray ().equals (toByteArray ())) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1a6944e2b647ccd9f0a45036fbe2dcd289ca1699/CollationKey.java/clean/core/src/classpath/java/java/text/CollationKey.java |
synchronized (axesIOList) { | if (axesIOList == null) return parentArray.getAxes(); else | public List getIOAxesOrder() { synchronized (axesIOList) { return axesIOList; } } | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/5f651f91914fcd9143ccc5b85fc2155b4f492252/XMLDataIOStyle.java/buggy/src/gov/nasa/gsfc/adc/xdf/XMLDataIOStyle.java |
} | public List getIOAxesOrder() { synchronized (axesIOList) { return axesIOList; } } | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/5f651f91914fcd9143ccc5b85fc2155b4f492252/XMLDataIOStyle.java/buggy/src/gov/nasa/gsfc/adc/xdf/XMLDataIOStyle.java | |
for (int i = 0, size = axesIOList.size(); i < size; i++) { | for (int i = 0, size = axisOrderList.size(); i < size; i++) { | private void privateSetIOAxesOrder (List axisOrderList) { synchronized (axesIOList) { axesIOList = Collections.synchronizedList(new ArrayList()); for (int i = 0, size = axesIOList.size(); i < size; i++) { axesIOList.add(axisOrderList.get(i)); } } } | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/5f651f91914fcd9143ccc5b85fc2155b4f492252/XMLDataIOStyle.java/buggy/src/gov/nasa/gsfc/adc/xdf/XMLDataIOStyle.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.