rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
ruby_cref = saved_cref; | ruby.setRubyCRef(saved_cref); | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
return getConstant((NODE)getRubyFrame().getCbase(), (RubyId)node.nd_vid(), self); | return getConstant((NODE)ruby.getRubyFrame().getCbase(), (RubyId)node.nd_vid(), self); | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
if (getRubyFrame().getArgs().size() != 1) { throw new RubyArgumentException("wrong # of arguments(" + rubyFrame.getArgs().size() + "for 1)"); } return self.setInstanceVar((RubyId)node.nd_vid(), (RubyObject)rubyFrame.getArgs().get(0)); | if (ruby.getRubyFrame().getArgs().size() != 1) { throw new RubyArgumentException("wrong # of arguments(" + ruby.getRubyFrame().getArgs().size() + "for 1)"); } return self.setInstanceVar((RubyId)node.nd_vid(), (RubyObject)ruby.getRubyFrame().getArgs().get(0)); | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
NODE defn = node.nd_defn().copyNodeScope(ruby_cref); | NODE defn = node.nd_defn().copyNodeScope(ruby.getRubyCRef()); | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
if (getRuby().getSecurityLevel() >= 4 && !recv.isTaint()) { | if (ruby.getSecurityLevel() >= 4 && !recv.isTaint()) { | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
if (getRuby().getSecurityLevel() >= 4) { | if (ruby.getSecurityLevel() >= 4) { | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
NODE defn = node.nd_defn().copyNodeScope(ruby_cref); defn.nd_rval(ruby_cref); | NODE defn = node.nd_defn().copyNodeScope(ruby.getRubyCRef()); defn.nd_rval(ruby.getRubyCRef()); | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
public org.jruby.Ruby getRuby() { | public Ruby getRuby() { | public org.jruby.Ruby getRuby() { return ruby; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
public org.jruby.interpreter.RubyBlock getRubyBlock() { | public RubyBlock getRubyBlock() { | public org.jruby.interpreter.RubyBlock getRubyBlock() { return rubyBlock; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
return getRubyFrame().getIter() != Iter.ITER_NOT; | return ruby.getRubyFrame().getIter() != Iter.ITER_NOT; | public boolean isBlockGiven() { return getRubyFrame().getIter() != Iter.ITER_NOT; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
return (getRubyFrame().getPrev() != null) && (getRubyFrame().getPrev().getIter() != Iter.ITER_NOT); | return (ruby.getRubyFrame().getPrev() != null) && (ruby.getRubyFrame().getPrev().getIter() != Iter.ITER_NOT); | public boolean isFBlockGiven() { return (getRubyFrame().getPrev() != null) && (getRubyFrame().getPrev().getIter() != Iter.ITER_NOT); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
public void setRuby(org.jruby.Ruby ruby) { | public void setRuby(Ruby ruby) { | public void setRuby(org.jruby.Ruby ruby) { this.ruby = ruby; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
public void setRubyBlock(org.jruby.interpreter.RubyBlock rubyBlock) { | public void setRubyBlock(RubyBlock rubyBlock) { | public void setRubyBlock(org.jruby.interpreter.RubyBlock rubyBlock) { this.rubyBlock = rubyBlock; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; | RubyFrame frame = ruby.getRubyFrame(); frame.setTmp(ruby.getRubyFrame()); ruby.setRubyFrame(frame); | public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; pushClass(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
getRuby().getRubyScope().push(); | ruby.getRubyScope().push(); | public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; pushClass(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
getRuby().getRubyScope().setLocalTbl(node.nd_tbl()); | ruby.getRubyScope().setLocalTbl(node.nd_tbl()); | public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; pushClass(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
getRuby().getRubyScope().setLocalVars(null); getRuby().getRubyScope().setLocalTbl(null); | ruby.getRubyScope().setLocalVars(null); ruby.getRubyScope().setLocalTbl(null); | public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; pushClass(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
getRubyFrame().setCbase((VALUE)ruby_cref); | ruby.getRubyFrame().setCbase(ruby.getRubyCRef()); | public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; pushClass(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
getRuby().getRubyScope().pop(); | ruby.getRubyScope().pop(); | public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; pushClass(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
rubyFrame = frame.getTmp(); | ruby.setRubyFrame(frame.getTmp()); | public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; pushClass(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
Frame frame = block.frame; frame.setPrev(getRubyFrame()); rubyFrame = frame; | RubyFrame frame = block.frame; frame.setPrev(ruby.getRubyFrame()); ruby.setRubyFrame(frame); | public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (rubyBlock == null)) { throw new RuntimeException("yield called out of block"); } Ruby... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
VALUE old_cref = ruby_cref; ruby_cref = (NODE)getRubyFrame().getCbase(); | NODE oldCRef = ruby.getRubyCRef(); ruby.setRubyCRef((NODE)ruby.getRubyFrame().getCbase()); | public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (rubyBlock == null)) { throw new RuntimeException("yield called out of block"); } Ruby... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
rubyFrame = getRubyFrame().getPrev(); | ruby.setRubyFrame(ruby.getRubyFrame().getPrev()); | public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (rubyBlock == null)) { throw new RuntimeException("yield called out of block"); } Ruby... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
ruby_cref = (NODE)old_cref; | ruby.setRubyCRef(oldCRef); | public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (rubyBlock == null)) { throw new RuntimeException("yield called out of block"); } Ruby... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
public NODE(int type, Object u1, Object u2, Object u3) { nd_set_type(type); this.u1 = u1; this.u2 = u2; this.u3 = u3; } | private NODE() {} | public NODE(int type, Object u1, Object u2, Object u3) { nd_set_type(type); this.u1 = u1; this.u2 = u2; this.u3 = u3; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/NODE.java/buggy/org/jruby/original/NODE.java |
public RubyArray push(RubyObject value) { | public RubyArray push(RubyObject[] items) { int length = items.length; if (length == 0) { throw new ArgumentError(getRuby(), "wrong # of arguments(at least 1)"); } | public RubyArray push(RubyObject value) { modify(); list.add(value); infectObject(value); return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0335f0acaf11ca0feb41907f65e7274f8ed49fc3/RubyArray.java/buggy/org/jruby/RubyArray.java |
list.add(value); infectObject(value); | boolean taint = false; for (int i = 0; i < length; i++) { taint |= items[i].isTaint(); list.add(items[i]); } setTaint(isTaint() || taint); | public RubyArray push(RubyObject value) { modify(); list.add(value); infectObject(value); return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0335f0acaf11ca0feb41907f65e7274f8ed49fc3/RubyArray.java/buggy/org/jruby/RubyArray.java |
vmode = ruby.getInterpreter().getScope_vmode(); | vmode = ruby.getInterpreter().getActMethodScope(); | public void push(NODE v, NODE b, RubyObject newSelf) { RubyBlock oldBlock = new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); var = v; body = b... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/658d41dfe4d2bc92a7ecefae9ca04e116d2c290b/RubyBlock.java/buggy/org/jruby/interpreter/RubyBlock.java |
public RubyNameException(String msg) { super(msg); | public RubyNameException() { | public RubyNameException(String msg) { super(msg); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/RubyNameException.java/buggy/org/jruby/exceptions/RubyNameException.java |
public RubyTypeException(String msg) { super(msg); | public RubyTypeException() { | public RubyTypeException(String msg) { super(msg); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/RubyTypeException.java/buggy/org/jruby/exceptions/RubyTypeException.java |
public RubyArgumentException(String msg) { super(msg); | public RubyArgumentException() { | public RubyArgumentException(String msg) { super(msg); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/RubyArgumentException.java/buggy/org/jruby/exceptions/RubyArgumentException.java |
public RubySecurityException(String msg) { super(msg); | public RubySecurityException() { | public RubySecurityException(String msg) { super(msg); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/RubySecurityException.java/buggy/org/jruby/exceptions/RubySecurityException.java |
public RubyFrozenException(String msg) { super(msg); | public RubyFrozenException() { | public RubyFrozenException(String msg) { super(msg); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/RubyFrozenException.java/buggy/org/jruby/exceptions/RubyFrozenException.java |
if (oldMap.get(ruby) != null) { throw new RuntimeException("JRuby - BUG: Need Queue for oldMap in RubyVarmap"); | if (oldMap.get(ruby) == null) { oldMap.put(ruby, new RubyStack()); | public static void push(Ruby ruby) { // HACK +++ if (oldMap.get(ruby) != null) { throw new RuntimeException("JRuby - BUG: Need Queue for oldMap in RubyVarmap"); } // HACK --- oldMap.put(ruby, ruby.getInterpreter().getDynamicVars()); ruby.getInterpreter().... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/76d3fd1bbcdbd38082a9b8c19c593b06ed915280/RubyVarmap.java/buggy/org/jruby/interpreter/RubyVarmap.java |
oldMap.put(ruby, ruby.getInterpreter().getDynamicVars()); | ((RubyStack)oldMap.get(ruby)).push(ruby.getInterpreter().getDynamicVars()); | public static void push(Ruby ruby) { // HACK +++ if (oldMap.get(ruby) != null) { throw new RuntimeException("JRuby - BUG: Need Queue for oldMap in RubyVarmap"); } // HACK --- oldMap.put(ruby, ruby.getInterpreter().getDynamicVars()); ruby.getInterpreter().... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/76d3fd1bbcdbd38082a9b8c19c593b06ed915280/RubyVarmap.java/buggy/org/jruby/interpreter/RubyVarmap.java |
ruby.getInterpreter().setDynamicVars((RubyVarmap)oldMap.get(ruby)); | ruby.getInterpreter().setDynamicVars((RubyVarmap)((RubyStack)oldMap.get(ruby)).pop()); | public static void pop(Ruby ruby) { ruby.getInterpreter().setDynamicVars((RubyVarmap)oldMap.get(ruby)); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/76d3fd1bbcdbd38082a9b8c19c593b06ed915280/RubyVarmap.java/buggy/org/jruby/interpreter/RubyVarmap.java |
private void loadThumbail(int index) { PixelsData pxd = images[index].getDefaultPixels(); int sizeX = maxWidth, sizeY = maxHeight; double ratio = (double) pxd.getSizeX()/pxd.getSizeY(); if (ratio < 1) sizeX *= ratio; else if (ratio > 1 && ratio != 0) sizeY *= 1/ratio; O... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/ThumbnailLoader.java/clean/SRC/org/openmicroscopy/shoola/env/data/views/calls/ThumbnailLoader.java | ||
this.ruby = ruby; | this.runtime = ruby; | public UnmarshalStream(Ruby ruby, InputStream in) throws IOException { super(in); this.ruby = ruby; in.read(); // Major in.read(); // Minor } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/UnmarshalStream.java/buggy/org/jruby/runtime/marshal/UnmarshalStream.java |
int variableCount = unmarshalInt(); RubyMap variables = new RubyHashMap(variableCount); for (int i = 0; i < variableCount; i++) { RubySymbol name = (RubySymbol) unmarshalObject(); IRubyObject value = unmarshalObject(); variables.put(name.toId(), value); } | private IRubyObject defaultObjectUnmarshal() throws IOException { RubySymbol className = (RubySymbol) unmarshalObject(); int variableCount = unmarshalInt(); RubyMap variables = new RubyHashMap(variableCount); for (int i = 0; i < variableCount; i++) { RubySymbol name = (RubySym... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/UnmarshalStream.java/buggy/org/jruby/runtime/marshal/UnmarshalStream.java | |
RubyClass rubyClass = (RubyClass) ruby.getRubyClass(className.toId()); RubyObject result = new RubyObject(ruby, rubyClass); result.setInstanceVariables(variables); | RubyClass type = (RubyClass) runtime.getRubyClass(className.toId()); IRubyObject result = runtime.getFactory().newObject(type); for (int i = 0, count = unmarshalInt(); i < count; i++) { result.setInstanceVariable(unmarshalObject().toId(), unmarshalObject()); } | private IRubyObject defaultObjectUnmarshal() throws IOException { RubySymbol className = (RubySymbol) unmarshalObject(); int variableCount = unmarshalInt(); RubyMap variables = new RubyHashMap(variableCount); for (int i = 0; i < variableCount; i++) { RubySymbol name = (RubySym... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/UnmarshalStream.java/buggy/org/jruby/runtime/marshal/UnmarshalStream.java |
return ruby.getNil(); | return runtime.getNil(); | public IRubyObject unmarshalObject() throws IOException { int type = readUnsignedByte(); switch (type) { case '0' : return ruby.getNil(); case 'T' : return RubyBoolean.newBoolean(ruby, true); case 'F' : return RubyBoolean.ne... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/UnmarshalStream.java/buggy/org/jruby/runtime/marshal/UnmarshalStream.java |
return RubyBoolean.newBoolean(ruby, true); | return RubyBoolean.newBoolean(runtime, true); | public IRubyObject unmarshalObject() throws IOException { int type = readUnsignedByte(); switch (type) { case '0' : return ruby.getNil(); case 'T' : return RubyBoolean.newBoolean(ruby, true); case 'F' : return RubyBoolean.ne... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/UnmarshalStream.java/buggy/org/jruby/runtime/marshal/UnmarshalStream.java |
return RubyBoolean.newBoolean(ruby, false); | return RubyBoolean.newBoolean(runtime, false); | public IRubyObject unmarshalObject() throws IOException { int type = readUnsignedByte(); switch (type) { case '0' : return ruby.getNil(); case 'T' : return RubyBoolean.newBoolean(ruby, true); case 'F' : return RubyBoolean.ne... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/UnmarshalStream.java/buggy/org/jruby/runtime/marshal/UnmarshalStream.java |
RubyModule classInstance = ruby.getRubyModule(className); | RubyModule classInstance = runtime.getRubyModule(className); | private IRubyObject userUnmarshal() throws IOException { String className = ((RubySymbol) unmarshalObject()).toId(); String marshaled = unmarshalString(); RubyModule classInstance = ruby.getRubyModule(className); return classInstance.callMethod( "_load", RubyString.... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/UnmarshalStream.java/buggy/org/jruby/runtime/marshal/UnmarshalStream.java |
RubyString.newString(ruby, marshaled)); | RubyString.newString(runtime, marshaled)); | private IRubyObject userUnmarshal() throws IOException { String className = ((RubySymbol) unmarshalObject()).toId(); String marshaled = unmarshalString(); RubyModule classInstance = ruby.getRubyModule(className); return classInstance.callMethod( "_load", RubyString.... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/UnmarshalStream.java/buggy/org/jruby/runtime/marshal/UnmarshalStream.java |
if (_context == null) _context = c.cloneContext(); | public MacroTemplate(Context c, Template t){ _template = t; _origContext = c; org.webmacro.util.Pool pool = c.getPool(); _context = (pool==null) ? c.cloneContext() : (Context)c.getPool().get(); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/3ccce61e600cc9a41da5b0c24ff51529ec817bdd/TemplateTool.java/buggy/webmacro/src/org/webmacro/servlet/TemplateTool.java | |
return RubyArray.newArray(ruby, Arrays.asList(values)); | return RubyArray.newArray(ruby, values); | public RubyArray to_a() { return RubyArray.newArray(ruby, Arrays.asList(values)); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a42a5780d9d19f5b3f27bdc079684319c5596e54/RubyStruct.java/clean/org/jruby/RubyStruct.java |
ioClass.defineMethod("close", CallbackFactory.getMethod(RubyIO.class, "close")); | public static RubyClass createIOClass(Ruby ruby) { RubyClass ioClass = ruby.defineClass("IO", ruby.getClasses().getObjectClass()); ioClass.includeModule(ruby.getClasses().getEnumerableModule()); ioClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyIO.class, "newInstanc... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/56a7977143634286f5c14d96df0538899b2fcb1f/RubyIO.java/clean/org/jruby/RubyIO.java | |
RubyObject sepVal = getRuby().getGlobalEntry("$/").get(); if (args.length > 0) { sepVal = args[0]; | RubyString result = internalGets(args); if (!result.isNil()) { getRuby().getParserHelper().setLastline(result); | public RubyString gets(RubyObject[] args) { RubyObject sepVal = getRuby().getGlobalEntry("$/").get(); if (args.length > 0) { sepVal = args[0]; } String separator = sepVal.isNil() ? null : ((RubyString) sepVal).getValue(); if (separator == null) { } else if (separ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/56a7977143634286f5c14d96df0538899b2fcb1f/RubyIO.java/clean/org/jruby/RubyIO.java |
String separator = sepVal.isNil() ? null : ((RubyString) sepVal).getValue(); if (separator == null) { } else if (separator.length() == 0) { separator = "\n\n"; } try { String newLine = inStream.gets(separator); if (newLine != null) { lineNumber++; RubyString result = RubyString.newString(getRuby(), newLine); resul... | return result; | public RubyString gets(RubyObject[] args) { RubyObject sepVal = getRuby().getGlobalEntry("$/").get(); if (args.length > 0) { sepVal = args[0]; } String separator = sepVal.isNil() ? null : ((RubyString) sepVal).getValue(); if (separator == null) { } else if (separ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/56a7977143634286f5c14d96df0538899b2fcb1f/RubyIO.java/clean/org/jruby/RubyIO.java |
case 'a' : | protected void setMode(String mode) { if (mode.length() == 0) { throw new RubyArgumentException(getRuby(), "illegal access mode"); } switch (mode.charAt(0)) { case 'r' : readable = true; break; case 'w' : case 'a' : ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/56a7977143634286f5c14d96df0538899b2fcb1f/RubyIO.java/clean/org/jruby/RubyIO.java | |
lvtbl.tbl = new ArrayList(); | public void top_local_init() { local_push(); List lLocalNames = ruby.getScope().getLocalNames(); int lcnt = lLocalNames != null ? lLocalNames.size() : 0; if (lcnt > 0) { lvtbl.tbl = new ArrayList(); //ruby.getRubyScope().setLocalNames(lvtbl.tbl); //it should be th... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2f13ba47385b7584839c7f6f6f1abfee251cbe53/ParserHelper.java/clean/org/jruby/parser/ParserHelper.java | |
for (int i = 0; i < lcnt; i++) registerLocal((String) lLocalNames.get(i)); | /*for (int i = 0; i < lcnt; i++) registerLocal((String) lLocalNames.get(i));*/ lvtbl.tbl = new ArrayList(lLocalNames); | public void top_local_init() { local_push(); List lLocalNames = ruby.getScope().getLocalNames(); int lcnt = lLocalNames != null ? lLocalNames.size() : 0; if (lcnt > 0) { lvtbl.tbl = new ArrayList(); //ruby.getRubyScope().setLocalNames(lvtbl.tbl); //it should be th... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2f13ba47385b7584839c7f6f6f1abfee251cbe53/ParserHelper.java/clean/org/jruby/parser/ParserHelper.java |
public static Browser createBrowser(Set topNodes) { if (topNodes == null) throw new NullPointerException("No top nodes."); //Create the View. Add each visualization tree to the root display. RootDisplay view = new RootDisplay(); Iterator i = topNodes.iterator(); while ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b4992016524102ee0a5c7465d4cc7a94e9ffce2d/BrowserFactory.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/browser/BrowserFactory.java | ||
delegate = (LocalUpdate) applicationContext.getBean("updateService"); | delegate = (LocalUpdate) applicationContext.getBean( IUpdate.class.getName()); | public void create() { super.create(); delegate = (LocalUpdate) applicationContext.getBean("updateService"); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f7d8facc0df80871004c721c1920ba34361d4e05/UpdateBean.java/clean/components/ejb/src/ome/ro/ejb/UpdateBean.java |
public Node parse(String content, String file) { | public Node parse(Reader content, String file) { | public Node parse(String content, String file) { return parser.parse(file, content); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/02f1a36be6c43bcb5b541cf429a4a8e0a2280750/Ruby.java/buggy/src/org/jruby/Ruby.java |
if (value == null) { return new NullJavaObject(runtime); } | public static synchronized JavaObject wrap(Ruby runtime, Object value) { if (value == null) { return new NullJavaObject(runtime); } JavaObject wrapper = runtime.getJavaSupport().getJavaObjectFromCache(value); if (wrapper == null) { if (value.getClass().isArray()) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/206c7b0b7eb0c58d4a00f4aaa94c9013ad204adc/JavaObject.java/buggy/src/org/jruby/javasupport/JavaObject.java | |
if (value.getClass().isArray()) { | if (value != null && value.getClass().isArray()) { | public static synchronized JavaObject wrap(Ruby runtime, Object value) { if (value == null) { return new NullJavaObject(runtime); } JavaObject wrapper = runtime.getJavaSupport().getJavaObjectFromCache(value); if (wrapper == null) { if (value.getClass().isArray()) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/206c7b0b7eb0c58d4a00f4aaa94c9013ad204adc/JavaObject.java/buggy/src/org/jruby/javasupport/JavaObject.java |
setBorder(BorderFactory.createEmptyBorder(0, 0, 10, 10)); repaint(); | manager.getView().repaint(); | void showImages(List images) { removeAll(); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); add(Box.createRigidArea(DataManagerUIF.VBOX)); add(componentsPanel); add(Box.createRigidArea(DataManagerUIF.VBOX)); if (images != null && images.size() != 0) { add(bu... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d70386d4b1bd44d70716a6be05a1c87ff487476d/CreateCategoryImagesPane.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/category/CreateCategoryImagesPane.java |
public static Code create(String lang) { | public static Code create(Ruby runtime, String lang) { | public static Code create(String lang) { if (lang == null) { return NIL; } else if (lang.charAt(0) == 'n' || lang.charAt(0) == 'N') { return NONE; } else if (lang.charAt(0) == 'u' || lang.charAt(0) == 'U') { return UTF8; } else if (lang.charAt(0) == 's' || lang.charAt(0) == 'S') { return SJIS; }... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/de4c49d21f91fafaad36890ce5108ebf5c0404e8/RubyRegexp.java/buggy/src/org/jruby/RubyRegexp.java |
runtime.getErrorHandler().warn("JRuby supports only Unicode regexp."); | public static Code create(String lang) { if (lang == null) { return NIL; } else if (lang.charAt(0) == 'n' || lang.charAt(0) == 'N') { return NONE; } else if (lang.charAt(0) == 'u' || lang.charAt(0) == 'U') { return UTF8; } else if (lang.charAt(0) == 's' || lang.charAt(0) == 'S') { return SJIS; }... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/de4c49d21f91fafaad36890ce5108ebf5c0404e8/RubyRegexp.java/buggy/src/org/jruby/RubyRegexp.java | |
regexpClass.defineMethod("to_s", callbackFactory.getMethod(RubyRegexp.class, "to_s")); | public static RubyClass createRegexpClass(Ruby runtime) { RubyClass regexpClass = runtime.defineClass("Regexp", runtime.getClasses().getObjectClass()); CallbackFactory callbackFactory = runtime.callbackFactory(); regexpClass.defineConstant("IGNORECASE", RubyFixnum.newFixnum(runtime, RE_... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/de4c49d21f91fafaad36890ce5108ebf5c0404e8/RubyRegexp.java/buggy/src/org/jruby/RubyRegexp.java | |
public RubyString inspect() { final String regex = pattern.pattern(); final int length = regex.length(); StringBuffer sb = new StringBuffer(length + 2); sb.append('/'); for (int i = 0; i < length; i++) { char c = regex.charAt(i); if (RubyString.isAlnum(c)) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/de4c49d21f91fafaad36890ce5108ebf5c0404e8/RubyRegexp.java/buggy/src/org/jruby/RubyRegexp.java | ||
public RubyString inspect() { final String regex = pattern.pattern(); final int length = regex.length(); StringBuffer sb = new StringBuffer(length + 2); sb.append('/'); for (int i = 0; i < length; i++) { char c = regex.charAt(i); if (RubyString.isAlnum(c)) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/de4c49d21f91fafaad36890ce5108ebf5c0404e8/RubyRegexp.java/buggy/src/org/jruby/RubyRegexp.java | ||
public String sprintf(int x) throws IllegalArgumentException { | public String sprintf(Object[] o) { | public String sprintf(int x) throws IllegalArgumentException { Enumeration e = vFmt.elements(); ConversionSpecification cs = null; char c = 0; StringBuffer sb = new StringBuffer(); while (e.hasMoreElements()) { cs = (ConversionSpecification) e.nextElement(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/3a923edad7ca292b5c22026d19b698666323e6be/PrintfFormat.java/buggy/src/org/jruby/util/PrintfFormat.java |
sb.append(cs.internalsprintf(x)); | if (cs.isPositionalSpecification()) { i = cs.getArgumentPosition() - 1; } if (cs.isPositionalFieldWidth()) { int ifw = cs.getArgumentPositionForFieldWidth() - 1; cs.setFieldWidthWithArg(((Number) o[ifw]).intValue()); } else if (cs.isVariableFieldWidth() && !cs.isPositionalSpecification()) { cs.setFieldWidthWithArg(((N... | public String sprintf(int x) throws IllegalArgumentException { Enumeration e = vFmt.elements(); ConversionSpecification cs = null; char c = 0; StringBuffer sb = new StringBuffer(); while (e.hasMoreElements()) { cs = (ConversionSpecification) e.nextElement(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/3a923edad7ca292b5c22026d19b698666323e6be/PrintfFormat.java/buggy/src/org/jruby/util/PrintfFormat.java |
integerClass.defineMethod( "step", CallbackFactory.getMethod(RubyInteger.class, "step", RubyNumeric.class, RubyNumeric.class)); | integerClass.defineMethod("step", CallbackFactory.getMethod(RubyInteger.class, "step", RubyNumeric.class, RubyNumeric.class)); | public static RubyClass createIntegerClass(Ruby ruby) { RubyClass integerClass = ruby.defineClass("Integer", ruby.getClasses().getNumericClass()); integerClass.defineMethod("chr", CallbackFactory.getMethod(RubyInteger.class, "chr")); integerClass.defineMethod("integer?", CallbackFactory.getMeth... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyInteger.java/clean/org/jruby/RubyInteger.java |
throw new RubyBugException("Couldn't create regexp adapter"); | Asserts.assertNotReached("Couldn't create regexp adapter"); | public RubyRegexp(Ruby ruby) { super(ruby, ruby.getRubyClass("Regexp")); try { matcher = (IRegexpAdapter) ruby.getRegexpAdapterClass().newInstance(); } catch (Exception ex) { // can't happen if JRuby is invoked via Main class throw new RubyBugException("Couldn't... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyRegexp.java/buggy/org/jruby/RubyRegexp.java |
result.defineAlias("member?", "include?"); | public static RubyClass createRangeClass(Ruby runtime) { RubyClass result = runtime.defineClass("Range", runtime.getClasses().getObjectClass()); CallbackFactory callbackFactory = runtime.callbackFactory(RubyRange.class); result.includeModule(runtime.getClasses().getEnume... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c862744512b35172405ba450c8715edf6a11a160/RubyRange.java/buggy/src/org/jruby/RubyRange.java | |
public IRubyObject upto(IRubyObject str, boolean excl) { RubyString current = this; RubyString end = stringValue(str); while (current.cmp(end) <= 0) { getRuntime().yield(current); if (current.cmp(end) == 0) { break; } current = current.succ(false); if (excl && current.cmp(end) == 0) { break; } if (current.getValue().le... | public IRubyObject upto(IRubyObject str) { return upto(str, false); | public IRubyObject upto(IRubyObject str, boolean excl) { RubyString current = this; RubyString end = stringValue(str); while (current.cmp(end) <= 0) { getRuntime().yield(current); if (current.cmp(end) == 0) { break; } current = current.succ(false); if (excl && current.cmp(end) == 0) { break; } i... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyString.java/buggy/org/jruby/RubyString.java |
super(ruby, ruby.getExceptions().getNameError(), msg); | super(ruby, ruby.getExceptions().getRangeError(), msg); | public RangeError(Ruby ruby, String msg) { super(ruby, ruby.getExceptions().getNameError(), msg); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/5c7d9e094aa97d5066c802a80d5e119852f62221/RangeError.java/buggy/org/jruby/exceptions/RangeError.java |
registerEditor("java.io.File", "org.apache.xbean.spring.context.impl.FileEditor"); | public static void registerCustomEditors() { registerEditor("java.net.URI", "org.apache.xbean.spring.context.impl.URIEditor"); registerEditor("javax.management.ObjectName", "org.apache.xbean.spring.context.impl.ObjectNameEditor"); } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/01e7e2679ccc0cb110ceb63acd118266b38856a2/PropertyEditorHelper.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/context/impl/PropertyEditorHelper.java | |
throw new ContextException("Foreach: Cannot evaluate limit"); | throw new ContextException("#foreach: Cannot evaluate limit"); | public void write(FastWriter out, Context context) throws ContextException, IOException { Object l, limit, from; long loopLimit=-1, loopStart=1, loopIndex=0; l = list; while (l instanceof Macro) l = ((Macro) l).evaluate(context); if (limitExpr != null) { limit = limitExpr; while (li... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/3b361f35f3cd9fe5023b969ea9dd1ebdd30219a1/ForeachDirective.java/buggy/webmacro/src/org/webmacro/directive/ForeachDirective.java |
throw new ContextException("Foreach: Cannot evaluate loop start"); | throw new ContextException("#foreach: Cannot evaluate loop start"); | public void write(FastWriter out, Context context) throws ContextException, IOException { Object l, limit, from; long loopLimit=-1, loopStart=1, loopIndex=0; l = list; while (l instanceof Macro) l = ((Macro) l).evaluate(context); if (limitExpr != null) { limit = limitExpr; while (li... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/3b361f35f3cd9fe5023b969ea9dd1ebdd30219a1/ForeachDirective.java/buggy/webmacro/src/org/webmacro/directive/ForeachDirective.java |
String errorText = "Foreach: Unable to set list index"; | String errorText = "#foreach: Unable to set list index"; | public void write(FastWriter out, Context context) throws ContextException, IOException { Object l, limit, from; long loopLimit=-1, loopStart=1, loopIndex=0; l = list; while (l instanceof Macro) l = ((Macro) l).evaluate(context); if (limitExpr != null) { limit = limitExpr; while (li... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/3b361f35f3cd9fe5023b969ea9dd1ebdd30219a1/ForeachDirective.java/buggy/webmacro/src/org/webmacro/directive/ForeachDirective.java |
public Object getArg(int argId, BuildContext bc) | public Object getArg(int argId) | public Object getArg(int argId, BuildContext bc) throws BuildException { if (buildArgs == null) return null; else return buildArgs.getArg(argId, bc); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/DirectiveBuilder.java/buggy/webmacro/src/org/webmacro/directive/DirectiveBuilder.java |
else return buildArgs.getArg(argId, bc); | else return buildArgs.getArg(argId); | public Object getArg(int argId, BuildContext bc) throws BuildException { if (buildArgs == null) return null; else return buildArgs.getArg(argId, bc); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/DirectiveBuilder.java/buggy/webmacro/src/org/webmacro/directive/DirectiveBuilder.java |
kernelModule.defineMethod("send", CallbackFactory.getOptMethod(RubyObject.class, "send", RubyString.class)); kernelModule.defineMethod("__send__", CallbackFactory.getOptMethod(RubyObject.class, "send", RubyString.class)); | kernelModule.defineMethod("send", CallbackFactory.getOptMethod(RubyObject.class, "send", RubyObject.class)); kernelModule.defineMethod("__send__", CallbackFactory.getOptMethod(RubyObject.class, "send", RubyObject.class)); | public static void createObjectClass(RubyModule kernelModule) { // TODO: convert to CallbackFactory invokes. Callback clone = new ReflectionCallbackMethod(RubyObject.class, "rbClone"); Callback dup = new ReflectionCallbackMethod(RubyObject.class, "dup"); Callback equal = new ReflectionCa... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyObject.java/buggy/org/jruby/RubyObject.java |
if (currType == type || currType.getMethods().keySet().retainAll(type.getMethods().keySet())) { | if (currType == type || currType.getMethods().keySet().containsAll(type.getMethods().keySet())) { | public RubyBoolean kind_of(RubyModule type) { RubyClass currType = getRubyClass(); while (currType != null) { if (currType == type || currType.getMethods().keySet().retainAll(type.getMethods().keySet())) { return getRuby().getTrue(); } currType = currTyp... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyObject.java/buggy/org/jruby/RubyObject.java |
ruby.getSourceFile() + ":" + ruby.getSourceLine() + " undefined method '" + symbol.toId() + "' for " + type().toName()); | ruby.getSourceFile() + ":" + ruby.getSourceLine() + " undefined method '" + symbol.toId() + "' for '" + type().toName() + '\''); | public RubyObject method_missing(RubyObject symbol, RubyObject[] args) { // +++ // IMPLEMENT THIS METHOD // --- Ruby ruby = getRuby(); throw new NameError( ruby, ruby.getSourceFile() + ":" + ruby.getSourceLine() + " undefined method '" + symbol.toId() + "' fo... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyObject.java/buggy/org/jruby/RubyObject.java |
public RubyObject send(RubyString method, RubyObject[] args) { | public RubyObject send(RubyObject method, RubyObject[] args) { | public RubyObject send(RubyString method, RubyObject[] args) { try { getRuby().getIter().push(getRuby().isBlockGiven() ? RubyIter.ITER_PRE : RubyIter.ITER_NOT); return getRubyClass().call(this, method.getValue(), new RubyPointer(args), 1); } finally { getRuby().getIter... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyObject.java/buggy/org/jruby/RubyObject.java |
return getRubyClass().call(this, method.getValue(), new RubyPointer(args), 1); | return getRubyClass().call(this, method.toId(), new RubyPointer(args), 1); | public RubyObject send(RubyString method, RubyObject[] args) { try { getRuby().getIter().push(getRuby().isBlockGiven() ? RubyIter.ITER_PRE : RubyIter.ITER_NOT); return getRubyClass().call(this, method.getValue(), new RubyPointer(args), 1); } finally { getRuby().getIter... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyObject.java/buggy/org/jruby/RubyObject.java |
public static Callback getFalseMethod() { | public static Callback getFalseMethod(final int arity) { | public static Callback getFalseMethod() { return new Callback() { public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { return ruby.getFalse(); } }; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/CallbackFactory.java/buggy/org/jruby/runtime/CallbackFactory.java |
public int getArity() { return arity; } | public static Callback getFalseMethod() { return new Callback() { public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { return ruby.getFalse(); } }; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/CallbackFactory.java/buggy/org/jruby/runtime/CallbackFactory.java | |
public IRubyObject eval(IRubyObject src, IRubyObject scope, String file, int line) { ThreadContext threadContext = runtime.getCurrentContext(); ISourcePosition savedPosition = threadContext.getPosition(); Iter iter = threadContext.getCurrentFrame().getIter(); if (file == null) { file = threadContext.getSourceFile(); } ... | public IRubyObject eval(INode n) { return EvaluateVisitor.createVisitor(this).eval(n); | public IRubyObject eval(IRubyObject src, IRubyObject scope, String file, int line) { ThreadContext threadContext = runtime.getCurrentContext(); ISourcePosition savedPosition = threadContext.getPosition(); Iter iter = threadContext.getCurrentFrame().getIter(); if (file == null) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0044a3b88a0afa22dcced1c8213002b0fb16faf4/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
public NODE searchMethod(RubyId id) { RubyModule rubyModule = getMethodOrigin(id); if (rubyModule != null) { return (NODE)rubyModule.getMethods().get(id); | public SearchMethodResult searchMethod(RubyId id) { NODE body = (NODE)getMethods().get(id); if (body == null) { if (getSuperClass() != null) { return getSuperClass().searchMethod(id); } else { return new SearchMethodResult(null, null); } } else { return new SearchMethodResult((NODE)getMethods().get(id), this); | public NODE searchMethod(RubyId id) { RubyModule rubyModule = getMethodOrigin(id); if (rubyModule != null) { return (NODE)rubyModule.getMethods().get(id); } return null; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/03950522a75c28f406bd4cb011cb1916a662366d/RubyModule.java/buggy/org/jruby/RubyModule.java |
return null; | public NODE searchMethod(RubyId id) { RubyModule rubyModule = getMethodOrigin(id); if (rubyModule != null) { return (NODE)rubyModule.getMethods().get(id); } return null; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/03950522a75c28f406bd4cb011cb1916a662366d/RubyModule.java/buggy/org/jruby/RubyModule.java | |
RubyModule clone = new RubyClass(getRuby(), null, getSuperClass()); | RubyModule clone = new RubyClass(getRuby(), getSuperClass()); | public RubyModule getSingletonClassClone() { if (!isSingleton()) { return this; } RubyModule clone = new RubyClass(getRuby(), null, getSuperClass()); clone.setupClone(this); clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); //clon... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/03950522a75c28f406bd4cb011cb1916a662366d/RubyModule.java/buggy/org/jruby/RubyModule.java |
return getRuntime().newFixnum(hashCode()); | return getRuntime().newFixnum(value.hashCode()); | public RubyFixnum hash() { return getRuntime().newFixnum(hashCode()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4b12521bf34cff2c9841b1dacb1a929f6def5327/RubyBignum.java/clean/src/org/jruby/RubyBignum.java |
public abstract RubyNumeric multiplyWith(RubyInteger value); | public RubyNumeric multiplyWith(RubyFixnum value) { return multiplyWith((RubyInteger) value); } | public abstract RubyNumeric multiplyWith(RubyInteger value); | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/01b5828197be55fd807321e9abb8f856ff501ad6/RubyNumeric.java/buggy/src/org/jruby/RubyNumeric.java |
System.err.println("laying out datasets"); | public void layoutContents() { eventHandler = new DatasetBrowserEventHandler(this); // layout treemaps arrangeDisplay(allDatasets); doLayout(allDatasets); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5814349a1963bfac97deaeec0ddc26d1fa8710d4/DatasetBrowserCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/DatasetBrowserCanvas.java | |
throw new BuildException("Template " + o + " not found: ", ne); | throw new BuildException("#parse: Template " + o + " not found: ", ne); | public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object o = builder.getArg(PARSE_TEMPLATE, bc); if (o instanceof Macro) { template = (Macro) o; return this; } else try { return bc.getBroker().get("template", o.toString()... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/3b361f35f3cd9fe5023b969ea9dd1ebdd30219a1/ParseDirective.java/buggy/webmacro/src/org/webmacro/directive/ParseDirective.java |
String warning = "Error reading template: " + fname; | String warning = "#parse: Error reading template: " + fname; | public void write(FastWriter out, Context context) throws ContextException, IOException { String fname = template.evaluate(context).toString(); try { Template tmpl = (Template) context.getBroker().get("template", fname); tmpl.write(out,context); } catch (IOException e) { String warning = "... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/3b361f35f3cd9fe5023b969ea9dd1ebdd30219a1/ParseDirective.java/buggy/webmacro/src/org/webmacro/directive/ParseDirective.java |
String warning = "Template not found: " + fname; | String warning = "#parse: Template not found: " + fname; | public void write(FastWriter out, Context context) throws ContextException, IOException { String fname = template.evaluate(context).toString(); try { Template tmpl = (Template) context.getBroker().get("template", fname); tmpl.write(out,context); } catch (IOException e) { String warning = "... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/3b361f35f3cd9fe5023b969ea9dd1ebdd30219a1/ParseDirective.java/buggy/webmacro/src/org/webmacro/directive/ParseDirective.java |
try { return b.get("url", name).toString(); } catch (ResourceException re) { try { | try { return b.get("url", name).toString(); } catch (Exception e) { URL url = null; | protected String getFile(Broker b, String name) throws PropertyException { try { return b.get("url", name).toString(); } catch (ResourceException re) { try { try { // The UrlProvider knows, how to do this, // so let him do the work for us ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4c6dd1efd26a8cd7e5b5f5ee6a306eb92c3fe2de/IncludeDirective.java/clean/webmacro/src/org/webmacro/directive/IncludeDirective.java |
return b.get("url", name).toString(); | url = b.getResource(name); if (url == null) throw makePropertyException("Resource not found by URL provider or Broker"); URLConnection conn = url.openConnection(); StringBuffer sb = new StringBuffer (); InputStream in = conn.getInputStream(); String enc = conn.getContentEncoding(); if (enc == null) enc = b.getSetting... | protected String getFile(Broker b, String name) throws PropertyException { try { return b.get("url", name).toString(); } catch (ResourceException re) { try { try { // The UrlProvider knows, how to do this, // so let him do the work for us ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4c6dd1efd26a8cd7e5b5f5ee6a306eb92c3fe2de/IncludeDirective.java/clean/webmacro/src/org/webmacro/directive/IncludeDirective.java |
catch (NullPointerException npe) { throw npe; | catch (IOException ioe) { throw makePropertyException("Error streaming file from: " + url, ioe); | protected String getFile(Broker b, String name) throws PropertyException { try { return b.get("url", name).toString(); } catch (ResourceException re) { try { try { // The UrlProvider knows, how to do this, // so let him do the work for us ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4c6dd1efd26a8cd7e5b5f5ee6a306eb92c3fe2de/IncludeDirective.java/clean/webmacro/src/org/webmacro/directive/IncludeDirective.java |
catch (Exception e) { throw makePropertyException("Found by Broker, but could not be retrieved", e); } } catch (NullPointerException npe) { throw makePropertyException("Not found by url provider or broker"); } catch (Exception e) { throw makePropertyException("Unexpected exception while getting from Broker", e); } } ca... | } | protected String getFile(Broker b, String name) throws PropertyException { try { return b.get("url", name).toString(); } catch (ResourceException re) { try { try { // The UrlProvider knows, how to do this, // so let him do the work for us ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4c6dd1efd26a8cd7e5b5f5ee6a306eb92c3fe2de/IncludeDirective.java/clean/webmacro/src/org/webmacro/directive/IncludeDirective.java |
if (ChainBuilderAgent.DEBUG) | if (ChainBuilderAgent.DEBUG >3) | public void setSelected(boolean v) { if (ChainBuilderAgent.DEBUG) System.err.println(" setting a link to be selected.."); LinkTarget startTarget = getStartLinkTarget(); LinkTarget endTarget = getEndLinkTarget(); startTarget.setSelected(v); endTarget.setSelected(v); targets.removeAllChildren(); if (v == true) ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/630a53d68f5d29c53d2485557b18599785befb83/Link.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/Link.java |
((File) entry.getValue()).mkdirs(); | ((File) entry.getValue()).getParentFile().mkdirs(); | public void execute() throws BuildException { Map fileMap = new HashMap(); FileNameMapper mapper = null; if (mapperElement != null) { mapper = mapperElement.getImplementation(); } else { mapper = new GlobPatternMapper(); mapper.setFrom("*.rb"); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9e6ae9722245fb5d74254985e21d50a65c7e80c3/JRubySerialize.java/clean/src/org/jruby/util/ant/JRubySerialize.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.