rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
public AbstractMetaClass(IRuby runtime, RubyClass metaClass, RubyClass superClass, RubyModule parentModule, String name) { super(runtime, metaClass, superClass, parentModule, name); | protected AbstractMetaClass(IRuby runtime, RubyClass metaClass, RubyClass superClass, SinglyLinkedList parentCRef, String name, Class builtinClass) { super(runtime, metaClass, superClass, parentCRef, name); this.builtinClass = builtinClass; | public AbstractMetaClass(IRuby runtime, RubyClass metaClass, RubyClass superClass, RubyModule parentModule, String name) { super(runtime, metaClass, superClass, parentModule, name); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/AbstractMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/AbstractMetaClass.java |
return ((RubyArray)ary).m_initialize(argv.length > 0 ? (RubyFixnum)argv[0] : null, argv.length > 1 ? (RubyObject)argv[1] : null); | return ((RubyArray)ary).m_initialize((RubyObject[])argv); | public VALUE rb_ary_initialize(VALUE[] argv, VALUE ary) { return ((RubyArray)ary).m_initialize(argv.length > 0 ? (RubyFixnum)argv[0] : null, argv.length > 1 ? (RubyObject)argv[1] : null); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/658d41dfe4d2bc92a7ecefae9ca04e116d2c290b/RubyOriginalMethods.java/buggy/org/jruby/original/RubyOriginalMethods.java |
return ((RubyModule)klass).m_attr((RubySymbol)argv[0], argv.length > 1 ? (RubyBoolean)argv[1] : ruby.getFalse()); | return ((RubyModule)klass).m_attr((RubySymbol)argv[0], (RubyObject[])argv); | public VALUE rb_mod_attr(VALUE[] argv, VALUE klass) { return ((RubyModule)klass).m_attr((RubySymbol)argv[0], argv.length > 1 ? (RubyBoolean)argv[1] : ruby.getFalse()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/658d41dfe4d2bc92a7ecefae9ca04e116d2c290b/RubyOriginalMethods.java/buggy/org/jruby/original/RubyOriginalMethods.java |
return RubyModule.m_newModule(ruby, (RubyClass)klass); | return RubyModule.m_new(ruby, (RubyObject)klass); | public VALUE rb_module_s_new(VALUE klass) { return RubyModule.m_newModule(ruby, (RubyClass)klass); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/658d41dfe4d2bc92a7ecefae9ca04e116d2c290b/RubyOriginalMethods.java/buggy/org/jruby/original/RubyOriginalMethods.java |
if (getToken(n+1).kind == WORD && getToken(n+1).image.equals(keyword)) | if (getToken(n).kind == WORD && getToken(n).image.equals(keyword)) | boolean lookahead_keyword(String keyword) throws ParseException { int n=1; if (getToken(n).kind == WS) ++n; if (getToken(n+1).kind == WORD && getToken(n+1).image.equals(keyword)) return true; else return false; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/6a0e6304bb469bba21d023d3e90cd11605e8c1cf/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
System.out.println("Argument " + i + ": " + arg.type + " " + arg.id); | void parse_args(ArgDescriptor[] args, DirectiveArgs da) throws ParseException { try { for (int i=0; i < args.length; ) { ArgDescriptor arg = args[i]; System.out.println("Argument " + i + ": " + arg.type + " " + arg.id); if (arg.type == Directive.ArgType_GROUP) parse_arg_group(args, i, da); ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/6a0e6304bb469bba21d023d3e90cd11605e8c1cf/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java | |
System.out.println("Next " + i + " is " + arg.nextArg); | void parse_args(ArgDescriptor[] args, DirectiveArgs da) throws ParseException { try { for (int i=0; i < args.length; ) { ArgDescriptor arg = args[i]; System.out.println("Argument " + i + ": " + arg.type + " " + arg.id); if (arg.type == Directive.ArgType_GROUP) parse_arg_group(args, i, da); ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/6a0e6304bb469bba21d023d3e90cd11605e8c1cf/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java | |
System.out.println("Processing subdirective " + subd.name); | DirectiveBuilder parse_directive(String directive) throws ParseException, ParseException { DirectiveBuilder db=null; DirectiveDescriptor descriptor=null; Subdirective subd; try { descriptor = (DirectiveDescriptor) broker.get("org.webmacro.directive.Directive", directi... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/6a0e6304bb469bba21d023d3e90cd11605e8c1cf/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java | |
System.out.println("Done with subdirective " + subd.name); | DirectiveBuilder parse_directive(String directive) throws ParseException, ParseException { DirectiveBuilder db=null; DirectiveDescriptor descriptor=null; Subdirective subd; try { descriptor = (DirectiveDescriptor) broker.get("org.webmacro.directive.Directive", directi... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/6a0e6304bb469bba21d023d3e90cd11605e8c1cf/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java | |
public void ReInit(java.io.InputStream dstream, int startline, int startcolumn) | public void ReInit(java.io.Reader dstream, int startline, int startcolumn, int buffersize) | public void ReInit(java.io.InputStream dstream, int startline, int startcolumn) { ReInit(dstream, startline, startcolumn, 4096); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/24d9ef23d787da791b5e1f6fbf8aa3cd7d26224b/ASCII_CharStream.java/buggy/webmacro/src/org/webmacro/parser/ASCII_CharStream.java |
ReInit(dstream, startline, startcolumn, 4096); | inputStream = dstream; line = startline; column = startcolumn - 1; if (bufA == null || bufA.size != buffersize) bufA = new Buffer(buffersize); if (bufB == null || bufB.size != buffersize) bufB = new Buffer(buffersize); curBuf = bufA; otherBuf = bufB; curBuf.curPos = otherBuf.dataLen = -1; curBuf.dataLen = otherBuf.dat... | public void ReInit(java.io.InputStream dstream, int startline, int startcolumn) { ReInit(dstream, startline, startcolumn, 4096); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/24d9ef23d787da791b5e1f6fbf8aa3cd7d26224b/ASCII_CharStream.java/buggy/webmacro/src/org/webmacro/parser/ASCII_CharStream.java |
public ASCII_CharStream(java.io.InputStream dstream, int startline, int startcolumn) | public ASCII_CharStream(java.io.Reader dstream, int startline, int startcolumn, int buffersize) | public ASCII_CharStream(java.io.InputStream dstream, int startline, int startcolumn) { this(dstream, startline, startcolumn, 4096); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/24d9ef23d787da791b5e1f6fbf8aa3cd7d26224b/ASCII_CharStream.java/buggy/webmacro/src/org/webmacro/parser/ASCII_CharStream.java |
this(dstream, startline, startcolumn, 4096); | ReInit(dstream, startline, startcolumn, buffersize); | public ASCII_CharStream(java.io.InputStream dstream, int startline, int startcolumn) { this(dstream, startline, startcolumn, 4096); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/24d9ef23d787da791b5e1f6fbf8aa3cd7d26224b/ASCII_CharStream.java/buggy/webmacro/src/org/webmacro/parser/ASCII_CharStream.java |
if (attributeInfo.isReadable()) { String getterName = attributeInfo.getGetterName(); MethodMetadata getter = classMetadata.getMethod(new OperationSignature(getterName, new String[] {})); if (getter != null) { getter.put("persistent", "true"); } } if (attributeInfo.isWritable()) { String setterName = attributeInfo.getS... | public void addClassMetadata(ClassMetadata classMetadata) { Class type = classMetadata.getType(); GBeanInfo gbeanInfo = getGBeanInfo(type); if (gbeanInfo == null) { return; } classMetadata.put("j2eeType", gbeanInfo.getJ2eeType()); Set attributes = gbeanInfo.getAt... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/GeronimoMetadataProvider.java/buggy/kernel/src/java/org/gbean/geronimo/GeronimoMetadataProvider.java | |
String setterName = referenceInfo.getSetterName(); if (setterName != null) { MethodMetadata setter = classMetadata.getMethod(new OperationSignature(setterName, new String[] {referenceInfo.getProxyType()})); if (setter != null) { setter.put("persistent", "true"); } } | public void addClassMetadata(ClassMetadata classMetadata) { Class type = classMetadata.getType(); GBeanInfo gbeanInfo = getGBeanInfo(type); if (gbeanInfo == null) { return; } classMetadata.put("j2eeType", gbeanInfo.getJ2eeType()); Set attributes = gbeanInfo.getAt... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/GeronimoMetadataProvider.java/buggy/kernel/src/java/org/gbean/geronimo/GeronimoMetadataProvider.java | |
parameter.put("name", name); | parameter.put("name", fixPropertyName(name)); | public void addClassMetadata(ClassMetadata classMetadata) { Class type = classMetadata.getType(); GBeanInfo gbeanInfo = getGBeanInfo(type); if (gbeanInfo == null) { return; } classMetadata.put("j2eeType", gbeanInfo.getJ2eeType()); Set attributes = gbeanInfo.getAt... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/GeronimoMetadataProvider.java/buggy/kernel/src/java/org/gbean/geronimo/GeronimoMetadataProvider.java |
if (!persistentProperties.isEmpty()) { classMetadata.put("persistentProperties", persistentProperties); } | public void addClassMetadata(ClassMetadata classMetadata) { Class type = classMetadata.getType(); GBeanInfo gbeanInfo = getGBeanInfo(type); if (gbeanInfo == null) { return; } classMetadata.put("j2eeType", gbeanInfo.getJ2eeType()); Set attributes = gbeanInfo.getAt... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/GeronimoMetadataProvider.java/buggy/kernel/src/java/org/gbean/geronimo/GeronimoMetadataProvider.java | |
return getRuntime().newString(getName()); | return getRuntime().newString(getBaseName() == null ? "" : getName()); | public RubyString name() { return getRuntime().newString(getName()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fa18cf1c1506d7dcf515c410c6af2e9ea36a87fe/RubyModule.java/clean/src/org/jruby/RubyModule.java |
if (ruby_iter.iter == ITER_PRE) { | if (rubyIter.getIter() == Iter.ITER_PRE) { | private BLOCK BEGIN_CALLARGS() { BLOCK tmp_block = ruby_block; if (ruby_iter.iter == ITER_PRE) { ruby_block = ruby_block.prev; } PUSH_ITER(ITER_NOT); return tmp_block; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
PUSH_ITER(ITER_NOT); | rubyIter.push(Iter.ITER_NOT); | private BLOCK BEGIN_CALLARGS() { BLOCK tmp_block = ruby_block; if (ruby_iter.iter == ITER_PRE) { ruby_block = ruby_block.prev; } PUSH_ITER(ITER_NOT); return tmp_block; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
POP_ITER(); | rubyIter.pop(); | private void END_CALLARGS(BLOCK tmp_block) { ruby_block = tmp_block; POP_ITER(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
_block.iter = ruby_iter.iter; | _block.iter = rubyIter.getIter(); | private BLOCK PUSH_BLOCK(NODE v, NODE b, VALUE self) { BLOCK _block = new BLOCK(); // _block.tag = new_blktag(); _block.var = v; _block.body = b; _block.self = self; _block.frame = rubyFrame; _block.klass = ruby_class; // _block.frame.file = ruby_sourcefile; ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
/* { iter_retry: PUSH_TAG(PROT_FUNC); PUSH_BLOCK(node->nd_var, node->nd_body); state = EXEC_TAG(); if (state == 0) { PUSH_ITER(ITER_PRE); if (nd_type(node) == NODE_ITER) { result = rb_eval(self, node->nd_iter); } else { VALUE recv; char *file = ruby_sourcefile; int line = ruby_sourceline; _block.flags &= ~BLOCK_D_SCO... | while (true) { BLOCK _block = PUSH_BLOCK(node.nd_var(), node.nd_body(), self); try { rubyIter.push(Iter.ITER_PRE); if (node.nd_type() == NODE_ITER) { result = eval(self, node.nd_iter()); } else { _block.flags &= ~BLOCK_D_SCOPE; BLOCK tmp_block = BEGIN_CALLARGS(); RubyObject recv = eval(self, node.nd_iter()); END_C... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject result = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
/* if (node.nd_stts) { result = rb_eval(self, node->nd_stts); if (nd_type(node->nd_stts) == NODE_RESTARGS && RARRAY(result)->len == 1) { result = RARRAY(result)->ptr[0]; } } else { result = Qnil; } result = rb_yield_0(result, 0, 0, 0); break;*/ | if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); if (node.nd_stts().nd_type() == NODE_RESTARGS && ((RubyArray)result).length() == 1) { result = ((RubyArray)result).entry(0); } } else { result = ruby.getNil(); } return yield0(result, null, null, false); | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject result = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
PUSH_ITER(ruby_iter.iter != 0 ? ITER_PRE : ITER_NOT); | rubyIter.push(rubyIter.getIter() != Iter.ITER_NOT ? Iter.ITER_PRE : Iter.ITER_NOT); | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject result = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
POP_ITER(); | rubyIter.pop(); | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject result = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
if (ruby.rubyScope.getLocalVars() == null) { throw new RuntimeException("BUG: unexpected block argument"); } if (isBlockGiven()) { result = getRuby().getNil(); ruby.rubyScope.setLocalVars(node.nd_cnt(), result); return result; } else { | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject result = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java | |
} | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject result = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java | |
/* if (ruby_frame.argc() != 1) { throw new RubyArgumentException("wrong # of arguments(" + ruby_frame.argc() + "for 1)"); } return self.setIvar((RubyId)node.nd_vid(), ruby_frame.argv()[0]); */ return null; | if (rubyFrame.getArgs().size() != 1) { throw new RubyArgumentException("wrong # of arguments(" + rubyFrame.getArgs().size() + "for 1)"); } return self.setIvar((RubyId)node.nd_vid(), (RubyObject)rubyFrame.getArgs().get(0)); | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject result = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
rubyFrame = new Frame(); | rubyFrame = new Frame(ruby); | public Frame getRubyFrame() { if (rubyFrame == null) { rubyFrame = new Frame(); } return rubyFrame; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
iter iter = new iter(); | public void init() { // FRAME frame = new FRAME(); iter iter = new iter(); int state; if (initialized) { return; } initialized = true; topFrame = getRubyFrame(); ruby_iter = iter; // rb_origenviron = environ; // Init_stack(0); /... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java | |
ruby_iter = iter; | rubyIter = new Iter(); | public void init() { // FRAME frame = new FRAME(); iter iter = new iter(); int state; if (initialized) { return; } initialized = true; topFrame = getRubyFrame(); ruby_iter = iter; // rb_origenviron = environ; // Init_stack(0); /... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java |
RubyId key = null; try { key = (RubyId) _key; } catch (ClassCastException ccExcptn) { key = getRuby().intern((String) _key); System.out.println("key isn't ID: \"" + _key + "\""); } if (!(_value instanceof RubyObject)) { return RubyMapMethod.CONTINUE; } RubyObject value = (RubyObject) _value; FindClassPathResult res = ... | RubyId key = null; try { key = (RubyId) _key; } catch (ClassCastException ccExcptn) { key = getRuby().intern((String) _key); System.out.println("key isn't ID: \"" + _key + "\""); } if (!(_value instanceof RubyObject)) { return RubyMapMethod.CONTINUE; } RubyObject value = (RubyObject) _value; FindClassPathResult res = ... | public int execute(Object _key, Object _value, Object _res) { // Cast the values. RubyId key = null; try { key = (RubyId) _key; } catch (ClassCastException ccExcptn) { key = getRuby().intern((String) _key); System.out.println("key isn't ID: \"" + _key + "\""); } if (!(_value instanceof RubyObject... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
RubyString path = null; | RubyString path = null; | public int execute(Object _key, Object _value, Object _res) { // Cast the values. RubyId key = null; try { key = (RubyId) _key; } catch (ClassCastException ccExcptn) { key = getRuby().intern((String) _key); System.out.println("key isn't ID: \"" + _key + "\""); } if (!(_value instanceof RubyObject... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (!key.isConstId()) { return RubyMapMethod.CONTINUE; } | if (!key.isConstId()) { return RubyMapMethod.CONTINUE; } | public int execute(Object _key, Object _value, Object _res) { // Cast the values. RubyId key = null; try { key = (RubyId) _key; } catch (ClassCastException ccExcptn) { key = getRuby().intern((String) _key); System.out.println("key isn't ID: \"" + _key + "\""); } if (!(_value instanceof RubyObject... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
String name = key.toName(); if (res.path != null) { path = (RubyString) res.path.m_dup(); path.m_cat("::"); path.m_cat(name); } else { path = RubyString.m_newString(getRuby(), name); } | String name = key.toName(); if (res.path != null) { path = (RubyString) res.path.m_dup(); path.m_cat("::"); path.m_cat(name); } else { path = RubyString.m_newString(getRuby(), name); } | public int execute(Object _key, Object _value, Object _res) { // Cast the values. RubyId key = null; try { key = (RubyId) _key; } catch (ClassCastException ccExcptn) { key = getRuby().intern((String) _key); System.out.println("key isn't ID: \"" + _key + "\""); } if (!(_value instanceof RubyObject... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (value == res.klass) { res.name = key; res.path = path; return RubyMapMethod.STOP; } | if (value == res.klass) { res.name = key; res.path = path; return RubyMapMethod.STOP; } | public int execute(Object _key, Object _value, Object _res) { // Cast the values. RubyId key = null; try { key = (RubyId) _key; } catch (ClassCastException ccExcptn) { key = getRuby().intern((String) _key); System.out.println("key isn't ID: \"" + _key + "\""); } if (!(_value instanceof RubyObject... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (value.m_kind_of(getRuby().getClasses().getModuleClass()).isTrue()) { if (value.getInstanceVariables() == null) { return RubyMapMethod.CONTINUE; } | if (value.m_kind_of(getRuby().getClasses().getModuleClass()).isTrue()) { if (value.getInstanceVariables() == null) { return RubyMapMethod.CONTINUE; } | public int execute(Object _key, Object _value, Object _res) { // Cast the values. RubyId key = null; try { key = (RubyId) _key; } catch (ClassCastException ccExcptn) { key = getRuby().intern((String) _key); System.out.println("key isn't ID: \"" + _key + "\""); } if (!(_value instanceof RubyObject... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
FindClassPathResult list = res; | FindClassPathResult list = res; | public int execute(Object _key, Object _value, Object _res) { // Cast the values. RubyId key = null; try { key = (RubyId) _key; } catch (ClassCastException ccExcptn) { key = getRuby().intern((String) _key); System.out.println("key isn't ID: \"" + _key + "\""); } if (!(_value instanceof RubyObject... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
while (list != null) { if (list.track == value) { return RubyMapMethod.CONTINUE; } list = list.prev; } | while (list != null) { if (list.track == value) { return RubyMapMethod.CONTINUE; } list = list.prev; } | public int execute(Object _key, Object _value, Object _res) { // Cast the values. RubyId key = null; try { key = (RubyId) _key; } catch (ClassCastException ccExcptn) { key = getRuby().intern((String) _key); System.out.println("key isn't ID: \"" + _key + "\""); } if (!(_value instanceof RubyObject... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
FindClassPathResult arg = new FindClassPathResult(); arg.name = null; arg.path = path; arg.klass = res.klass; arg.track = value; arg.prev = res; | FindClassPathResult arg = new FindClassPathResult(); arg.name = null; arg.path = path; arg.klass = res.klass; arg.track = value; arg.prev = res; | public int execute(Object _key, Object _value, Object _res) { // Cast the values. RubyId key = null; try { key = (RubyId) _key; } catch (ClassCastException ccExcptn) { key = getRuby().intern((String) _key); System.out.println("key isn't ID: \"" + _key + "\""); } if (!(_value instanceof RubyObject... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
value.getInstanceVariables().foreach(this, arg); | value.getInstanceVariables().foreach(this, arg); | public int execute(Object _key, Object _value, Object _res) { // Cast the values. RubyId key = null; try { key = (RubyId) _key; } catch (ClassCastException ccExcptn) { key = getRuby().intern((String) _key); System.out.println("key isn't ID: \"" + _key + "\""); } if (!(_value instanceof RubyObject... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (arg.name != null) { res.name = arg.name; res.path = arg.path; return RubyMapMethod.STOP; } } return RubyMapMethod.CONTINUE; } | if (arg.name != null) { res.name = arg.name; res.path = arg.path; return RubyMapMethod.STOP; } } return RubyMapMethod.CONTINUE; } | public int execute(Object _key, Object _value, Object _res) { // Cast the values. RubyId key = null; try { key = (RubyId) _key; } catch (ClassCastException ccExcptn) { key = getRuby().intern((String) _key); System.out.println("key isn't ID: \"" + _key + "\""); } if (!(_value instanceof RubyObject... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
this.recvClass = recvClass; this.id = id; this.noex = noex; } | this.recvClass = recvClass; this.id = id; this.noex = noex; } | public GetMethodBodyResult(RubyModule recvClass, RubyId id, int noex) { this.recvClass = recvClass; this.id = id; this.noex = noex; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
return body; } | return body; } | public Node getBody() { return body; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
return id; } | return id; } | public RubyId getId() { return id; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
return noex; } | return noex; } | public int getNoex() { return noex; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
return recvClass; } | return recvClass; } | public RubyModule getRecvClass() { return recvClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
this.body = body; } | this.body = body; } | public void setBody(Node body) { this.body = body; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
this.id = id; } | this.id = id; } | public void setId(RubyId id) { this.id = id; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
this.noex = noex; } | this.noex = noex; } | public void setNoex(int noex) { this.noex = noex; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
this.recvClass = recvClass; } | this.recvClass = recvClass; } | public void setRecvClass(RubyModule recvClass) { this.recvClass = recvClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
this(ruby, null); } | this(ruby, null); } | public RubyModule(Ruby ruby) { this(ruby, null); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethod... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java | ||
int noex = Constants.NOEX_PUBLIC; | int noex = Constants.NOEX_PUBLIC; | public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethod... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } | if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } | public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethod... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
String name = id.toName(); | String name = id.toName(); | public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethod... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
RubyId attrIV = getRuby().intern("@" + name); | RubyId attrIV = getRuby().intern("@" + name); | public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethod... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); funcall(getRuby().intern("method_added"), id.toSymbol()); } | if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); funcall(getRuby().intern("method_added"), id.toSymbol()); } | public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethod... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); funcall(getRuby().intern("method_added"), id.toSymbol()); } } | if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); funcall(getRuby().intern("method_added"), id.toSymbol()); } } | public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethod... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } | if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } | public void addMethod(RubyId id, Node node, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't define method"); } if (isFrozen()) { throw new RubyFrozenEx... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't define method"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } Node body = new NodeFactory(getRuby()).newMethod(node, noex); methods.put(id, body); } | if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't define method"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } Node body = new NodeFactory(getRuby()).newMethod(node, noex); methods.put(id, body); } | public void addMethod(RubyId id, Node node, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't define method"); } if (isFrozen()) { throw new RubyFrozenEx... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
testFrozen(); | testFrozen(); | public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (oldId == newId) { return; } | if (oldId == newId) { return; } | public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } | if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } | public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
MethodNode methodNode = searchMethod(oldId); | MethodNode methodNode = searchMethod(oldId); | public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
RubyModule origin = null; | RubyModule origin = null; | public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { return; } origin = methodNode.getMethodOrigin(); | if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { return; } origin = methodNode.getMethodOrigin(); | public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } | Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } | public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
NodeFactory nf = new NodeFactory(getRuby()); | NodeFactory nf = new NodeFactory(getRuby()); | public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); } | methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); } | public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
aliasMethod(newId.toId(), oldId.toId()); | aliasMethod(newId.toId(), oldId.toId()); | public RubyModule alias_method(RubyObject newId, RubyObject oldId) { aliasMethod(newId.toId(), oldId.toId()); return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
return this; } | return this; } | public RubyModule alias_method(RubyObject newId, RubyObject oldId) { aliasMethod(newId.toId(), oldId.toId()); return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (isSingleton()) { if (getInstanceVariables() == null) { setInstanceVariables(new RubyHashMap()); } | if (isSingleton()) { if (getInstanceVariables() == null) { setInstanceVariables(new RubyHashMap()); } | public void attachSingletonClass(RubyObject rbObject) { if (isSingleton()) { if (getInstanceVariables() == null) { setInstanceVariables(new RubyHashMap()); } getInstanceVariables().put(getRuby().intern("__atached__"), rbObject); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
getInstanceVariables().put(getRuby().intern("__atached__"), rbObject); } } | getInstanceVariables().put(getRuby().intern("__atached__"), rbObject); } } | public void attachSingletonClass(RubyObject rbObject) { if (isSingleton()) { if (getInstanceVariables() == null) { setInstanceVariables(new RubyHashMap()); } getInstanceVariables().put(getRuby().intern("__atached__"), rbObject); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); | RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); | public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
RubyModule klass = this; RubyId id = mid; int noex; Node body; | RubyModule klass = this; RubyId id = mid; int noex; Node body; | public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } | if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } | public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); | klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); | public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } | if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } | public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java | ||
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java | ||
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java | ||
return klass.call0(recv, id, args, body, false); } | return klass.call0(recv, id, args, body, false); } | public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { | RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { | public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFra... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFra... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java | ||
if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } | if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } | public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFra... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); | RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); | public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFra... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); | RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); | public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFra... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); | getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); | public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFra... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
return result; } | return result; } | public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFra... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
RubyModule tmp = this; while (tmp != null) { if (tmp.getInstanceVariables() != null && tmp.getInstanceVariables().get(id) != null) { if (tmp.isTaint() && getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException( getRuby(), "Insecure: can't modify class variable"); } tmp.getInstanceVariables().put(id, value)... | RubyModule tmp = this; while (tmp != null) { if (tmp.getInstanceVariables() != null && tmp.getInstanceVariables().get(id) != null) { if (tmp.isTaint() && getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException( getRuby(), "Insecure: can't modify class variable"); } tmp.getInstanceVariables().put(id, value)... | public void declareClassVar(RubyId id, RubyObject value) { RubyModule tmp = this; while (tmp != null) { if (tmp.getInstanceVariables() != null && tmp.getInstanceVariables().get(id) != null) { if (tmp.isTaint() && getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException( getRuby(), "... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
} | } | public void defineAlias(String oldName, String newName) { } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
} | } | public void defineAttribute(String name, boolean read, boolean write) { } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
RubyClass newClass = getRuby().defineClassId(getRuby().intern(name), superClass); | RubyClass newClass = getRuby().defineClassId(getRuby().intern(name), superClass); | public RubyClass defineClassUnder(String name, RubyClass superClass) { RubyClass newClass = getRuby().defineClassId(getRuby().intern(name), superClass); setConstant(getRuby().intern(name), newClass); newClass.setClassPath(this, name); return newClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
setConstant(getRuby().intern(name), newClass); newClass.setClassPath(this, name); | setConstant(getRuby().intern(name), newClass); newClass.setClassPath(this, name); | public RubyClass defineClassUnder(String name, RubyClass superClass) { RubyClass newClass = getRuby().defineClassId(getRuby().intern(name), superClass); setConstant(getRuby().intern(name), newClass); newClass.setClassPath(this, name); return newClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
return newClass; } | return newClass; } | public RubyClass defineClassUnder(String name, RubyClass superClass) { RubyClass newClass = getRuby().defineClassId(getRuby().intern(name), superClass); setConstant(getRuby().intern(name), newClass); newClass.setClassPath(this, name); return newClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
RubyId id = getRuby().intern(name); | RubyId id = getRuby().intern(name); | public void defineClassVariable(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } declareClassVar(id, value); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } | if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } | public void defineClassVariable(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } declareClassVar(id, value); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
declareClassVar(id, value); } | declareClassVar(id, value); } | public void defineClassVariable(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } declareClassVar(id, value); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.