rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
RubyModule clone = new RubyModule(getRuby(), getRubyClass(), getSuperClass()); clone.setupClone(this);
RubyModule clone = new RubyModule(getRuby(), getRubyClass(), getSuperClass()); clone.setupClone(this);
public RubyObject m_clone() { RubyModule clone = new RubyModule(getRuby(), getRubyClass(), getSuperClass()); clone.setupClone(this); if (getInstanceVariables() != null) { clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); } // clone the methods. if (methods != null) { clone.setMethods(new RubyHashMap()); methods.foreach(new RubyMapMethod() { NodeFactory nf = new NodeFactory(getRuby()); public int execute(Object key, Object value, Object arg) { MethodNode methodNode = (MethodNode) value; ((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; } }, clone.methods); } return clone; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (getInstanceVariables() != null) { clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); }
if (getInstanceVariables() != null) { clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); }
public RubyObject m_clone() { RubyModule clone = new RubyModule(getRuby(), getRubyClass(), getSuperClass()); clone.setupClone(this); if (getInstanceVariables() != null) { clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); } // clone the methods. if (methods != null) { clone.setMethods(new RubyHashMap()); methods.foreach(new RubyMapMethod() { NodeFactory nf = new NodeFactory(getRuby()); public int execute(Object key, Object value, Object arg) { MethodNode methodNode = (MethodNode) value; ((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; } }, clone.methods); } return clone; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (methods != null) { clone.setMethods(new RubyHashMap()); methods.foreach(new RubyMapMethod() { NodeFactory nf = new NodeFactory(getRuby());
if (methods != null) { clone.setMethods(new RubyHashMap()); methods.foreach(new RubyMapMethod() { NodeFactory nf = new NodeFactory(getRuby());
public RubyObject m_clone() { RubyModule clone = new RubyModule(getRuby(), getRubyClass(), getSuperClass()); clone.setupClone(this); if (getInstanceVariables() != null) { clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); } // clone the methods. if (methods != null) { clone.setMethods(new RubyHashMap()); methods.foreach(new RubyMapMethod() { NodeFactory nf = new NodeFactory(getRuby()); public int execute(Object key, Object value, Object arg) { MethodNode methodNode = (MethodNode) value; ((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; } }, clone.methods); } return clone; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
public int execute(Object key, Object value, Object arg) { MethodNode methodNode = (MethodNode) value;
public int execute(Object key, Object value, Object arg) { MethodNode methodNode = (MethodNode) value;
public RubyObject m_clone() { RubyModule clone = new RubyModule(getRuby(), getRubyClass(), getSuperClass()); clone.setupClone(this); if (getInstanceVariables() != null) { clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); } // clone the methods. if (methods != null) { clone.setMethods(new RubyHashMap()); methods.foreach(new RubyMapMethod() { NodeFactory nf = new NodeFactory(getRuby()); public int execute(Object key, Object value, Object arg) { MethodNode methodNode = (MethodNode) value; ((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; } }, clone.methods); } return clone; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; } }, clone.methods); }
((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; } }, clone.methods); }
public RubyObject m_clone() { RubyModule clone = new RubyModule(getRuby(), getRubyClass(), getSuperClass()); clone.setupClone(this); if (getInstanceVariables() != null) { clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); } // clone the methods. if (methods != null) { clone.setMethods(new RubyHashMap()); methods.foreach(new RubyMapMethod() { NodeFactory nf = new NodeFactory(getRuby()); public int execute(Object key, Object value, Object arg) { MethodNode methodNode = (MethodNode) value; ((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; } }, clone.methods); } return clone; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return clone; }
return clone; }
public RubyObject m_clone() { RubyModule clone = new RubyModule(getRuby(), getRubyClass(), getSuperClass()); clone.setupClone(this); if (getInstanceVariables() != null) { clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); } // clone the methods. if (methods != null) { clone.setMethods(new RubyHashMap()); methods.foreach(new RubyMapMethod() { NodeFactory nf = new NodeFactory(getRuby()); public int execute(Object key, Object value, Object arg) { MethodNode methodNode = (MethodNode) value; ((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; } }, clone.methods); } return clone; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
MethodNode methodNode = (MethodNode) value;
MethodNode methodNode = (MethodNode) value;
public int execute(Object key, Object value, Object arg) { MethodNode methodNode = (MethodNode) value; ((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; }
((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; }
public int execute(Object key, Object value, Object arg) { MethodNode methodNode = (MethodNode) value; ((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
RubyId id = symbol.toId();
RubyId id = symbol.toId();
public RubyBoolean m_const_defined(RubySymbol symbol) { RubyId id = symbol.toId(); if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); } return RubyBoolean.m_newBoolean(getRuby(), isConstantDefined(id)); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); }
if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); }
public RubyBoolean m_const_defined(RubySymbol symbol) { RubyId id = symbol.toId(); if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); } return RubyBoolean.m_newBoolean(getRuby(), isConstantDefined(id)); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return RubyBoolean.m_newBoolean(getRuby(), isConstantDefined(id)); }
return RubyBoolean.m_newBoolean(getRuby(), isConstantDefined(id)); }
public RubyBoolean m_const_defined(RubySymbol symbol) { RubyId id = symbol.toId(); if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); } return RubyBoolean.m_newBoolean(getRuby(), isConstantDefined(id)); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
RubyId id = symbol.toId();
RubyId id = symbol.toId();
public RubyObject m_const_get(RubySymbol symbol) { RubyId id = symbol.toId(); if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); } return getConstant(id); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); }
if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); }
public RubyObject m_const_get(RubySymbol symbol) { RubyId id = symbol.toId(); if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); } return getConstant(id); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return getConstant(id); }
return getConstant(id); }
public RubyObject m_const_get(RubySymbol symbol) { RubyId id = symbol.toId(); if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); } return getConstant(id); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
RubyId id = symbol.toId();
RubyId id = symbol.toId();
public RubyObject m_const_set(RubySymbol symbol, RubyObject value) { RubyId id = symbol.toId(); if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); } setConstant(id, value); return value; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); }
if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); }
public RubyObject m_const_set(RubySymbol symbol, RubyObject value) { RubyId id = symbol.toId(); if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); } setConstant(id, value); return value; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
setConstant(id, value);
setConstant(id, value);
public RubyObject m_const_set(RubySymbol symbol, RubyObject value) { RubyId id = symbol.toId(); if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); } setConstant(id, value); return value; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return value; }
return value; }
public RubyObject m_const_set(RubySymbol symbol, RubyObject value) { RubyId id = symbol.toId(); if (!id.isConstId()) { throw new RubyNameException( getRuby(), "wrong constant name " + symbol.getName()); } setConstant(id, value); return value; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
RubyArray ary = RubyArray.m_newArray(getRuby());
RubyArray ary = RubyArray.m_newArray(getRuby());
public RubyObject m_constants() { RubyArray ary = RubyArray.m_newArray(getRuby()); return getConstOf(ary); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return getConstOf(ary); }
return getConstOf(ary); }
public RubyObject m_constants() { RubyArray ary = RubyArray.m_newArray(getRuby()); return getConstOf(ary); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
RubyModule dup = (RubyModule) m_clone(); dup.setupObject(getRubyClass());
RubyModule dup = (RubyModule) m_clone(); dup.setupObject(getRubyClass());
public RubyObject m_dup() { RubyModule dup = (RubyModule) m_clone(); dup.setupObject(getRubyClass()); dup.setSingleton(isSingleton()); return dup; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
dup.setSingleton(isSingleton());
dup.setSingleton(isSingleton());
public RubyObject m_dup() { RubyModule dup = (RubyModule) m_clone(); dup.setupObject(getRubyClass()); dup.setSingleton(isSingleton()); return dup; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return dup; }
return dup; }
public RubyObject m_dup() { RubyModule dup = (RubyModule) m_clone(); dup.setupObject(getRubyClass()); dup.setSingleton(isSingleton()); return dup; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
obj.extendObject(this); return obj; }
obj.extendObject(this); return obj; }
public RubyObject m_extend_object(RubyObject obj) { obj.extendObject(this); return obj; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
for (int i = 0; i < modules.length; i++) { funcall(getRuby().intern("append_features"), modules[i]); }
for (int i = 0; i < modules.length; i++) { funcall(getRuby().intern("append_features"), modules[i]); }
public RubyObject m_include(RubyObject[] modules) { for (int i = 0; i < modules.length; i++) { funcall(getRuby().intern("append_features"), modules[i]); } 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 RubyObject m_include(RubyObject[] modules) { for (int i = 0; i < modules.length; i++) { funcall(getRuby().intern("append_features"), modules[i]); } return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
RubyArray ary = RubyArray.m_newArray(getRuby());
RubyArray ary = RubyArray.m_newArray(getRuby());
public RubyArray m_included_modules() { RubyArray ary = RubyArray.m_newArray(getRuby()); for (RubyModule p = getSuperClass(); p != null; p = p.getSuperClass()) { if (p.isIncluded()) { ary.push(p.getRubyClass()); } } return ary; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
for (RubyModule p = getSuperClass(); p != null; p = p.getSuperClass()) { if (p.isIncluded()) { ary.push(p.getRubyClass()); } }
for (RubyModule p = getSuperClass(); p != null; p = p.getSuperClass()) { if (p.isIncluded()) { ary.push(p.getRubyClass()); } }
public RubyArray m_included_modules() { RubyArray ary = RubyArray.m_newArray(getRuby()); for (RubyModule p = getSuperClass(); p != null; p = p.getSuperClass()) { if (p.isIncluded()) { ary.push(p.getRubyClass()); } } return ary; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return ary; }
return ary; }
public RubyArray m_included_modules() { RubyArray ary = RubyArray.m_newArray(getRuby()); for (RubyModule p = getSuperClass(); p != null; p = p.getSuperClass()) { if (p.isIncluded()) { ary.push(p.getRubyClass()); } } return ary; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return getRuby().getNil(); }
return getRuby().getNil(); }
public RubyObject m_initialize(RubyObject[] args) { return getRuby().getNil(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
boolean includeSuper = false;
boolean includeSuper = false;
public RubyObject m_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if ((body.getNoex() & (Constants.NOEX_PRIVATE | Constants.NOEX_PROTECTED)) == 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); } ary.push(name); } } else if ( body.getBodyNode() != null && body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (args.length > 0) { includeSuper = args[0].isTrue(); }
if (args.length > 0) { includeSuper = args[0].isTrue(); }
public RubyObject m_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if ((body.getNoex() & (Constants.NOEX_PRIVATE | Constants.NOEX_PROTECTED)) == 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); } ary.push(name); } } else if ( body.getBodyNode() != null && body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg;
return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg;
public RubyObject m_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if ((body.getNoex() & (Constants.NOEX_PRIVATE | Constants.NOEX_PROTECTED)) == 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); } ary.push(name); } } else if ( body.getBodyNode() != null && body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if ((body.getNoex() & (Constants.NOEX_PRIVATE | Constants.NOEX_PROTECTED)) == 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName());
if ((body.getNoex() & (Constants.NOEX_PRIVATE | Constants.NOEX_PROTECTED)) == 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName());
public RubyObject m_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if ((body.getNoex() & (Constants.NOEX_PRIVATE | Constants.NOEX_PROTECTED)) == 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); } ary.push(name); } } else if ( body.getBodyNode() != null && body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (ary.m_includes(name).isFalse()) { if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); } ary.push(name); } } else if ( body.getBodyNode() != null && body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
if (ary.m_includes(name).isFalse()) { if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); } ary.push(name); } } else if (body.getBodyNode() != null && body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
public RubyObject m_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if ((body.getNoex() & (Constants.NOEX_PRIVATE | Constants.NOEX_PROTECTED)) == 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); } ary.push(name); } } else if ( body.getBodyNode() != null && body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg;
RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg;
public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if ((body.getNoex() & (Constants.NOEX_PRIVATE | Constants.NOEX_PROTECTED)) == 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); } ary.push(name); } } else if ( body.getBodyNode() != null && body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if ((body.getNoex() & (Constants.NOEX_PRIVATE | Constants.NOEX_PROTECTED)) == 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName());
if ((body.getNoex() & (Constants.NOEX_PRIVATE | Constants.NOEX_PROTECTED)) == 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName());
public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if ((body.getNoex() & (Constants.NOEX_PRIVATE | Constants.NOEX_PROTECTED)) == 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); } ary.push(name); } } else if ( body.getBodyNode() != null && body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (ary.m_includes(name).isFalse()) { if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); } ary.push(name); } } else if ( body.getBodyNode() != null && body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; }
if (ary.m_includes(name).isFalse()) { if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); } ary.push(name); } } else if (body.getBodyNode() != null && body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; }
public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if ((body.getNoex() & (Constants.NOEX_PRIVATE | Constants.NOEX_PROTECTED)) == 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); } ary.push(name); } } else if ( body.getBodyNode() != null && body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return isMethodBound(symbol.toId(), 1) ? getRuby().getTrue() : getRuby().getFalse(); }
return isMethodBound(symbol.toId(), 1) ? getRuby().getTrue() : getRuby().getFalse(); }
public RubyObject m_method_defined(RubyObject symbol) { return isMethodBound(symbol.toId(), 1) ? getRuby().getTrue() : getRuby().getFalse(); }
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 change method visibility"); }
if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); }
public RubyObject m_module_function(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_MODFUNC); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE); for (int i = 0; i < args.length; i++) { RubyId id = args[i].toId(); MethodNode body = searchMethod(id); if (body == null || body.getBodyNode() == null) { throw new RubyBugException( "undefined method '" + id.toName() + "'; can't happen"); } getSingletonClass().addMethod(id, body.getBodyNode(), Constants.NOEX_PUBLIC); // rb_clear_cache_by_id(id); funcall(getRuby().intern("singleton_added"), id.toSymbol()); } } return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_MODFUNC); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE);
if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_MODFUNC); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE);
public RubyObject m_module_function(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_MODFUNC); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE); for (int i = 0; i < args.length; i++) { RubyId id = args[i].toId(); MethodNode body = searchMethod(id); if (body == null || body.getBodyNode() == null) { throw new RubyBugException( "undefined method '" + id.toName() + "'; can't happen"); } getSingletonClass().addMethod(id, body.getBodyNode(), Constants.NOEX_PUBLIC); // rb_clear_cache_by_id(id); funcall(getRuby().intern("singleton_added"), id.toSymbol()); } } return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
for (int i = 0; i < args.length; i++) { RubyId id = args[i].toId(); MethodNode body = searchMethod(id); if (body == null || body.getBodyNode() == null) { throw new RubyBugException( "undefined method '" + id.toName() + "'; can't happen"); } getSingletonClass().addMethod(id, body.getBodyNode(), Constants.NOEX_PUBLIC); funcall(getRuby().intern("singleton_added"), id.toSymbol()); } }
for (int i = 0; i < args.length; i++) { RubyId id = args[i].toId(); MethodNode body = searchMethod(id); if (body == null || body.getBodyNode() == null) { throw new RubyBugException( "undefined method '" + id.toName() + "'; can't happen"); } getSingletonClass().addMethod(id, body.getBodyNode(), Constants.NOEX_PUBLIC); funcall(getRuby().intern("singleton_added"), id.toSymbol()); } }
public RubyObject m_module_function(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_MODFUNC); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE); for (int i = 0; i < args.length; i++) { RubyId id = args[i].toId(); MethodNode body = searchMethod(id); if (body == null || body.getBodyNode() == null) { throw new RubyBugException( "undefined method '" + id.toName() + "'; can't happen"); } getSingletonClass().addMethod(id, body.getBodyNode(), Constants.NOEX_PUBLIC); // rb_clear_cache_by_id(id); funcall(getRuby().intern("singleton_added"), id.toSymbol()); } } 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 RubyObject m_module_function(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_MODFUNC); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE); for (int i = 0; i < args.length; i++) { RubyId id = args[i].toId(); MethodNode body = searchMethod(id); if (body == null || body.getBodyNode() == null) { throw new RubyBugException( "undefined method '" + id.toName() + "'; can't happen"); } getSingletonClass().addMethod(id, body.getBodyNode(), Constants.NOEX_PUBLIC); // rb_clear_cache_by_id(id); funcall(getRuby().intern("singleton_added"), id.toSymbol()); } } return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
RubyString path = getClassname(); if (path != null) { return (RubyString) path.m_dup(); } return RubyString.m_newString(getRuby(), ""); }
RubyString path = getClassname(); if (path != null) { return (RubyString) path.m_dup(); } return RubyString.m_newString(getRuby(), ""); }
public RubyString m_name() { RubyString path = getClassname(); if (path != null) { return (RubyString) path.m_dup(); } return RubyString.m_newString(getRuby(), ""); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
RubyModule mod = RubyModule.m_newModule(ruby);
RubyModule mod = RubyModule.m_newModule(ruby);
public static RubyModule m_new(Ruby ruby, RubyObject recv) { RubyModule mod = RubyModule.m_newModule(ruby); mod.setRubyClass((RubyModule) recv); ruby.getClasses().getModuleClass().callInit(null); return mod; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
mod.setRubyClass((RubyModule) recv); ruby.getClasses().getModuleClass().callInit(null);
mod.setRubyClass((RubyModule) recv); ruby.getClasses().getModuleClass().callInit(null);
public static RubyModule m_new(Ruby ruby, RubyObject recv) { RubyModule mod = RubyModule.m_newModule(ruby); mod.setRubyClass((RubyModule) recv); ruby.getClasses().getModuleClass().callInit(null); return mod; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return mod; }
return mod; }
public static RubyModule m_new(Ruby ruby, RubyObject recv) { RubyModule mod = RubyModule.m_newModule(ruby); mod.setRubyClass((RubyModule) recv); ruby.getClasses().getModuleClass().callInit(null); return mod; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
RubyModule newModule = new RubyModule(ruby, ruby.getClasses().getModuleClass());
RubyModule newModule = new RubyModule(ruby, ruby.getClasses().getModuleClass());
public static RubyModule m_newModule(Ruby ruby) { RubyModule newModule = new RubyModule(ruby, ruby.getClasses().getModuleClass()); return newModule; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return newModule; }
return newModule; }
public static RubyModule m_newModule(Ruby ruby) { RubyModule newModule = new RubyModule(ruby, ruby.getClasses().getModuleClass()); return newModule; }
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 change method visibility"); }
if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); }
public RubyObject m_private(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PRIVATE); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE); } return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PRIVATE); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE); }
if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PRIVATE); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE); }
public RubyObject m_private(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PRIVATE); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE); } 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 RubyObject m_private(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PRIVATE); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE); } return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
getRubyClass().setMethodVisibility(args, Constants.NOEX_PRIVATE);
getRubyClass().setMethodVisibility(args, Constants.NOEX_PRIVATE);
public RubyObject m_private_class_method(RubyObject[] args) { getRubyClass().setMethodVisibility(args, Constants.NOEX_PRIVATE); 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 RubyObject m_private_class_method(RubyObject[] args) { getRubyClass().setMethodVisibility(args, Constants.NOEX_PRIVATE); return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
boolean includeSuper = false;
boolean includeSuper = false;
public RubyObject m_private_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PRIVATE) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (args.length > 0) { includeSuper = args[0].isTrue(); }
if (args.length > 0) { includeSuper = args[0].isTrue(); }
public RubyObject m_private_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PRIVATE) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg;
return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg;
public RubyObject m_private_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PRIVATE) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PRIVATE) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName());
if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PRIVATE) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName());
public RubyObject m_private_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PRIVATE) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
public RubyObject m_private_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PRIVATE) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg;
RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg;
public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PRIVATE) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PRIVATE) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName());
if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PRIVATE) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName());
public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PRIVATE) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; }
if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; }
public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PRIVATE) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; }
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 change method visibility"); }
if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); }
public RubyObject m_protected(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PROTECTED); } else { setMethodVisibility(args, Constants.NOEX_PROTECTED); } return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PROTECTED); } else { setMethodVisibility(args, Constants.NOEX_PROTECTED); }
if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PROTECTED); } else { setMethodVisibility(args, Constants.NOEX_PROTECTED); }
public RubyObject m_protected(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PROTECTED); } else { setMethodVisibility(args, Constants.NOEX_PROTECTED); } 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 RubyObject m_protected(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PROTECTED); } else { setMethodVisibility(args, Constants.NOEX_PROTECTED); } return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
boolean includeSuper = false;
boolean includeSuper = false;
public RubyObject m_protected_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PROTECTED) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (args.length > 0) { includeSuper = args[0].isTrue(); }
if (args.length > 0) { includeSuper = args[0].isTrue(); }
public RubyObject m_protected_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PROTECTED) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg;
return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg;
public RubyObject m_protected_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PROTECTED) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PROTECTED) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName());
if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PROTECTED) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName());
public RubyObject m_protected_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PROTECTED) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
public RubyObject m_protected_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PROTECTED) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg;
RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg;
public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PROTECTED) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PROTECTED) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName());
if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PROTECTED) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName());
public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PROTECTED) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; }
if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; }
public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PROTECTED) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; }
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 change method visibility"); }
if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); }
public RubyObject m_public(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PUBLIC); } else { setMethodVisibility(args, Constants.NOEX_PUBLIC); } return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PUBLIC); } else { setMethodVisibility(args, Constants.NOEX_PUBLIC); }
if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PUBLIC); } else { setMethodVisibility(args, Constants.NOEX_PUBLIC); }
public RubyObject m_public(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PUBLIC); } else { setMethodVisibility(args, Constants.NOEX_PUBLIC); } 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 RubyObject m_public(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PUBLIC); } else { setMethodVisibility(args, Constants.NOEX_PUBLIC); } return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
getRubyClass().setMethodVisibility(args, Constants.NOEX_PUBLIC); return this; }
getRubyClass().setMethodVisibility(args, Constants.NOEX_PUBLIC); return this; }
public RubyObject m_public_class_method(RubyObject[] args) { getRubyClass().setMethodVisibility(args, Constants.NOEX_PUBLIC); return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
RubyId id = null; if (name instanceof RubySymbol) { id = ((RubySymbol) name).toId(); } else if (name instanceof RubyString) { id = getRuby().intern(((RubyString) name).getValue()); }
RubyId id = null; if (name instanceof RubySymbol) { id = ((RubySymbol) name).toId(); } else if (name instanceof RubyString) { id = getRuby().intern(((RubyString) name).getValue()); }
public RubyObject m_remove_class_variable(RubyObject name) { RubyId id = null; if (name instanceof RubySymbol) { id = ((RubySymbol) name).toId(); } else if (name instanceof RubyString) { id = getRuby().intern(((RubyString) name).getValue()); } if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } if (!isTaint() && getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException( getRuby(), "Insecure: can't remove class variable"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } if (getInstanceVariables() != null) { Object value = getInstanceVariables().remove(id); if (value != null) { return (RubyObject) value; } } if (isClassVarDefined(id)) { throw new RubyNameException( getRuby(), "cannot remove " + id.toName() + " for " + toName()); } throw new RubyNameException( getRuby(), "class variable " + id.toName() + " not defined for " + toName()); }
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 (!isTaint() && getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException( getRuby(), "Insecure: can't remove class variable"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); }
if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } if (!isTaint() && getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException( getRuby(), "Insecure: can't remove class variable"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); }
public RubyObject m_remove_class_variable(RubyObject name) { RubyId id = null; if (name instanceof RubySymbol) { id = ((RubySymbol) name).toId(); } else if (name instanceof RubyString) { id = getRuby().intern(((RubyString) name).getValue()); } if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } if (!isTaint() && getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException( getRuby(), "Insecure: can't remove class variable"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } if (getInstanceVariables() != null) { Object value = getInstanceVariables().remove(id); if (value != null) { return (RubyObject) value; } } if (isClassVarDefined(id)) { throw new RubyNameException( getRuby(), "cannot remove " + id.toName() + " for " + toName()); } throw new RubyNameException( getRuby(), "class variable " + id.toName() + " not defined for " + toName()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (getInstanceVariables() != null) { Object value = getInstanceVariables().remove(id); if (value != null) { return (RubyObject) value; } }
if (getInstanceVariables() != null) { Object value = getInstanceVariables().remove(id); if (value != null) { return (RubyObject) value; } }
public RubyObject m_remove_class_variable(RubyObject name) { RubyId id = null; if (name instanceof RubySymbol) { id = ((RubySymbol) name).toId(); } else if (name instanceof RubyString) { id = getRuby().intern(((RubyString) name).getValue()); } if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } if (!isTaint() && getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException( getRuby(), "Insecure: can't remove class variable"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } if (getInstanceVariables() != null) { Object value = getInstanceVariables().remove(id); if (value != null) { return (RubyObject) value; } } if (isClassVarDefined(id)) { throw new RubyNameException( getRuby(), "cannot remove " + id.toName() + " for " + toName()); } throw new RubyNameException( getRuby(), "class variable " + id.toName() + " not defined for " + toName()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (isClassVarDefined(id)) { throw new RubyNameException( getRuby(), "cannot remove " + id.toName() + " for " + toName()); } throw new RubyNameException( getRuby(), "class variable " + id.toName() + " not defined for " + toName()); }
if (isClassVarDefined(id)) { throw new RubyNameException( getRuby(), "cannot remove " + id.toName() + " for " + toName()); } throw new RubyNameException( getRuby(), "class variable " + id.toName() + " not defined for " + toName()); }
public RubyObject m_remove_class_variable(RubyObject name) { RubyId id = null; if (name instanceof RubySymbol) { id = ((RubySymbol) name).toId(); } else if (name instanceof RubyString) { id = getRuby().intern(((RubyString) name).getValue()); } if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } if (!isTaint() && getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException( getRuby(), "Insecure: can't remove class variable"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } if (getInstanceVariables() != null) { Object value = getInstanceVariables().remove(id); if (value != null) { return (RubyObject) value; } } if (isClassVarDefined(id)) { throw new RubyNameException( getRuby(), "cannot remove " + id.toName() + " for " + toName()); } throw new RubyNameException( getRuby(), "class variable " + id.toName() + " not defined for " + toName()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return (RubyString) getClassPath().m_dup(); }
return (RubyString) getClassPath().m_dup(); }
public RubyString m_to_s() { return (RubyString) getClassPath().m_dup(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
RubyArray ary = RubyArray.m_newArray(getRuby());
RubyArray ary = RubyArray.m_newArray(getRuby());
public RubyArray methodList(boolean option, RubyMapMethod method) { RubyArray ary = RubyArray.m_newArray(getRuby()); for (RubyModule klass = this; klass != null; klass = klass.getSuperClass()) { klass.methods.foreach(method, ary); if (!option) { break; } } Iterator iter = ary.getList().iterator(); while (iter.hasNext()) { if (getRuby().getNil() == iter.next()) { iter.remove(); iter.next(); } } return ary; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
for (RubyModule klass = this; klass != null; klass = klass.getSuperClass()) { klass.methods.foreach(method, ary); if (!option) { break; } }
for (RubyModule klass = this; klass != null; klass = klass.getSuperClass()) { klass.methods.foreach(method, ary); if (!option) { break; } }
public RubyArray methodList(boolean option, RubyMapMethod method) { RubyArray ary = RubyArray.m_newArray(getRuby()); for (RubyModule klass = this; klass != null; klass = klass.getSuperClass()) { klass.methods.foreach(method, ary); if (!option) { break; } } Iterator iter = ary.getList().iterator(); while (iter.hasNext()) { if (getRuby().getNil() == iter.next()) { iter.remove(); iter.next(); } } return ary; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
Iterator iter = ary.getList().iterator(); while (iter.hasNext()) { if (getRuby().getNil() == iter.next()) { iter.remove(); iter.next(); } }
Iterator iter = ary.getList().iterator(); while (iter.hasNext()) { if (getRuby().getNil() == iter.next()) { iter.remove(); iter.next(); } }
public RubyArray methodList(boolean option, RubyMapMethod method) { RubyArray ary = RubyArray.m_newArray(getRuby()); for (RubyModule klass = this; klass != null; klass = klass.getSuperClass()) { klass.methods.foreach(method, ary); if (!option) { break; } } Iterator iter = ary.getList().iterator(); while (iter.hasNext()) { if (getRuby().getNil() == iter.next()) { iter.remove(); iter.next(); } } return ary; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return ary; }
return ary; }
public RubyArray methodList(boolean option, RubyMapMethod method) { RubyArray ary = RubyArray.m_newArray(getRuby()); for (RubyModule klass = this; klass != null; klass = klass.getSuperClass()) { klass.methods.foreach(method, ary); if (!option) { break; } } Iterator iter = ary.getList().iterator(); while (iter.hasNext()) { if (getRuby().getNil() == iter.next()) { iter.remove(); iter.next(); } } return ary; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
RubyClass newClass = new RubyClass(getRuby(), superClass); newClass.setIncluded(true);
RubyClass newClass = new RubyClass(getRuby(), superClass); newClass.setIncluded(true);
public RubyClass newIncludeClass(RubyModule superClass) { RubyClass newClass = new RubyClass(getRuby(), superClass); newClass.setIncluded(true); newClass.setInstanceVariables(getInstanceVariables()); newClass.setMethods(methods); if (isIncluded()) { newClass.setRubyClass(getRubyClass()); } else { newClass.setRubyClass(this); } return newClass; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
newClass.setInstanceVariables(getInstanceVariables()); newClass.setMethods(methods);
newClass.setInstanceVariables(getInstanceVariables()); newClass.setMethods(methods);
public RubyClass newIncludeClass(RubyModule superClass) { RubyClass newClass = new RubyClass(getRuby(), superClass); newClass.setIncluded(true); newClass.setInstanceVariables(getInstanceVariables()); newClass.setMethods(methods); if (isIncluded()) { newClass.setRubyClass(getRubyClass()); } else { newClass.setRubyClass(this); } return newClass; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (isIncluded()) { newClass.setRubyClass(getRubyClass()); } else { newClass.setRubyClass(this); }
if (isIncluded()) { newClass.setRubyClass(getRubyClass()); } else { newClass.setRubyClass(this); }
public RubyClass newIncludeClass(RubyModule superClass) { RubyClass newClass = new RubyClass(getRuby(), superClass); newClass.setIncluded(true); newClass.setInstanceVariables(getInstanceVariables()); newClass.setMethods(methods); if (isIncluded()) { newClass.setRubyClass(getRubyClass()); } else { newClass.setRubyClass(this); } 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 newIncludeClass(RubyModule superClass) { RubyClass newClass = new RubyClass(getRuby(), superClass); newClass.setIncluded(true); newClass.setInstanceVariables(getInstanceVariables()); newClass.setMethods(methods); if (isIncluded()) { newClass.setRubyClass(getRubyClass()); } else { newClass.setRubyClass(this); } return newClass; }
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, RubyClass methodClass) { RubyClass originalClass = (RubyClass) this; RubyId originalId = id;
RubyObject recv, RubyId id, RubyClass methodClass) { RubyClass originalClass = (RubyClass) this; RubyId originalId = id;
public RubyObject newMethod( RubyObject recv, RubyId id, RubyClass methodClass) { RubyClass originalClass = (RubyClass) this; RubyId originalId = id; GetMethodBodyResult gmbr = getMethodBody(id, 0); if (gmbr == null) { // printUndef(); return getRuby().getNil(); } while (gmbr.getBody() instanceof ZSuperNode) { gmbr = gmbr.getRecvClass().getSuperClass().getMethodBody(gmbr.getId(), 0); if (gmbr == null) { // printUndef(); return getRuby().getNil(); } } RubyMethod newMethod = new RubyMethod(getRuby(), methodClass); newMethod.setReceiverClass((RubyClass) gmbr.getRecvClass()); newMethod.setReceiver(recv); newMethod.setMethodId(gmbr.getId()); newMethod.setBodyNode(gmbr.getBody()); newMethod.setOriginalClass(originalClass); newMethod.setOriginalId(originalId); return newMethod; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
GetMethodBodyResult gmbr = getMethodBody(id, 0); if (gmbr == null) { return getRuby().getNil(); } while (gmbr.getBody() instanceof ZSuperNode) { gmbr = gmbr.getRecvClass().getSuperClass().getMethodBody(gmbr.getId(), 0); if (gmbr == null) { return getRuby().getNil(); } } RubyMethod newMethod = new RubyMethod(getRuby(), methodClass); newMethod.setReceiverClass((RubyClass) gmbr.getRecvClass()); newMethod.setReceiver(recv); newMethod.setMethodId(gmbr.getId()); newMethod.setBodyNode(gmbr.getBody()); newMethod.setOriginalClass(originalClass); newMethod.setOriginalId(originalId); return newMethod; }
GetMethodBodyResult gmbr = getMethodBody(id, 0); if (gmbr == null) { return getRuby().getNil(); } while (gmbr.getBody() instanceof ZSuperNode) { gmbr = gmbr.getRecvClass().getSuperClass().getMethodBody(gmbr.getId(), 0); if (gmbr == null) { return getRuby().getNil(); } } RubyMethod newMethod = new RubyMethod(getRuby(), methodClass); newMethod.setReceiverClass((RubyClass) gmbr.getRecvClass()); newMethod.setReceiver(recv); newMethod.setMethodId(gmbr.getId()); newMethod.setBodyNode(gmbr.getBody()); newMethod.setOriginalClass(originalClass); newMethod.setOriginalId(originalId); return newMethod; }
public RubyObject newMethod( RubyObject recv, RubyId id, RubyClass methodClass) { RubyClass originalClass = (RubyClass) this; RubyId originalId = id; GetMethodBodyResult gmbr = getMethodBody(id, 0); if (gmbr == null) { // printUndef(); return getRuby().getNil(); } while (gmbr.getBody() instanceof ZSuperNode) { gmbr = gmbr.getRecvClass().getSuperClass().getMethodBody(gmbr.getId(), 0); if (gmbr == null) { // printUndef(); return getRuby().getNil(); } } RubyMethod newMethod = new RubyMethod(getRuby(), methodClass); newMethod.setReceiverClass((RubyClass) gmbr.getRecvClass()); newMethod.setReceiver(recv); newMethod.setMethodId(gmbr.getId()); newMethod.setBodyNode(gmbr.getBody()); newMethod.setOriginalClass(originalClass); newMethod.setOriginalId(originalId); return newMethod; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
RubyClass newClass = RubyClass.m_newClass(getRuby(), (RubyClass) this); newClass.setSingleton(true);
RubyClass newClass = RubyClass.m_newClass(getRuby(), (RubyClass) this); newClass.setSingleton(true);
public RubyClass newSingletonClass() { RubyClass newClass = RubyClass.m_newClass(getRuby(), (RubyClass) this); newClass.setSingleton(true); 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 newSingletonClass() { RubyClass newClass = RubyClass.m_newClass(getRuby(), (RubyClass) this); newClass.setSingleton(true); return newClass; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (this == obj) { return RubyFixnum.m_newFixnum(getRuby(), 0); }
if (this == obj) { return RubyFixnum.m_newFixnum(getRuby(), 0); }
public RubyFixnum op_cmp(RubyObject obj) { if (this == obj) { return RubyFixnum.m_newFixnum(getRuby(), 0); } if (!(obj instanceof RubyModule)) { throw new RubyTypeException( getRuby(), "<=> requires Class or Module (" + getRubyClass().toName() + " given)"); } if (op_le(obj).isTrue()) { return RubyFixnum.m_newFixnum(getRuby(), -1); } return RubyFixnum.m_newFixnum(getRuby(), 1); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (!(obj instanceof RubyModule)) { throw new RubyTypeException( getRuby(), "<=> requires Class or Module (" + getRubyClass().toName() + " given)"); }
if (!(obj instanceof RubyModule)) { throw new RubyTypeException( getRuby(), "<=> requires Class or Module (" + getRubyClass().toName() + " given)"); }
public RubyFixnum op_cmp(RubyObject obj) { if (this == obj) { return RubyFixnum.m_newFixnum(getRuby(), 0); } if (!(obj instanceof RubyModule)) { throw new RubyTypeException( getRuby(), "<=> requires Class or Module (" + getRubyClass().toName() + " given)"); } if (op_le(obj).isTrue()) { return RubyFixnum.m_newFixnum(getRuby(), -1); } return RubyFixnum.m_newFixnum(getRuby(), 1); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (op_le(obj).isTrue()) { return RubyFixnum.m_newFixnum(getRuby(), -1); }
if (op_le(obj).isTrue()) { return RubyFixnum.m_newFixnum(getRuby(), -1); }
public RubyFixnum op_cmp(RubyObject obj) { if (this == obj) { return RubyFixnum.m_newFixnum(getRuby(), 0); } if (!(obj instanceof RubyModule)) { throw new RubyTypeException( getRuby(), "<=> requires Class or Module (" + getRubyClass().toName() + " given)"); } if (op_le(obj).isTrue()) { return RubyFixnum.m_newFixnum(getRuby(), -1); } return RubyFixnum.m_newFixnum(getRuby(), 1); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return RubyFixnum.m_newFixnum(getRuby(), 1); }
return RubyFixnum.m_newFixnum(getRuby(), 1); }
public RubyFixnum op_cmp(RubyObject obj) { if (this == obj) { return RubyFixnum.m_newFixnum(getRuby(), 0); } if (!(obj instanceof RubyModule)) { throw new RubyTypeException( getRuby(), "<=> requires Class or Module (" + getRubyClass().toName() + " given)"); } if (op_le(obj).isTrue()) { return RubyFixnum.m_newFixnum(getRuby(), -1); } return RubyFixnum.m_newFixnum(getRuby(), 1); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
return obj.m_kind_of(this); }
return obj.m_kind_of(this); }
public RubyBoolean op_eqq(RubyObject obj) { return obj.m_kind_of(this); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
if (!(obj instanceof RubyModule)) { throw new RubyTypeException(getRuby(), "compared with non class/module"); }
if (!(obj instanceof RubyModule)) { throw new RubyTypeException(getRuby(), "compared with non class/module"); }
public RubyBoolean op_ge(RubyObject obj) { if (!(obj instanceof RubyModule)) { throw new RubyTypeException(getRuby(), "compared with non class/module"); } return ((RubyModule) obj).op_le(this); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java