rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
public void nd_head(NODE n) { u1 = n; }
public NODE nd_head() { return (NODE)u1; }
public void nd_head(NODE n) { u1 = n; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/NODE.java/buggy/org/jruby/original/NODE.java
this.value = value;
this.value = value;
private RubyId(Ruby ruby, int value) { super(); this.ruby = ruby; this.value = value; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyId.java/buggy/org/jruby/RubyId.java
public void nd_end(NODE n) { u2 = n; }
public NODE nd_end() { return (NODE)u2; }
public void nd_end(NODE n) { u2 = n; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/NODE.java/buggy/org/jruby/original/NODE.java
public void nd_cnt(int i) { u3 = new Integer(i); }
public int nd_cnt() { return u3 == null ? 0 : ((Integer)u3).intValue(); }
public void nd_cnt(int i) { u3 = new Integer(i); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/NODE.java/buggy/org/jruby/original/NODE.java
public RubyString(Ruby ruby, String str) { this(ruby, ruby.getClasses().getStringClass(), str);
public RubyString(Ruby ruby) { this(ruby, null);
public RubyString(Ruby ruby, String str) { this(ruby, ruby.getClasses().getStringClass(), str); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyString.java/buggy/org/jruby/RubyString.java
public void nd_iter(NODE n) { u3 = n; }
public NODE nd_iter() { return (NODE)u3; }
public void nd_iter(NODE n) { u3 = n; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/NODE.java/buggy/org/jruby/original/NODE.java
public void nd_nth(int i) { u2 = new Integer(i); }
public int nd_nth() { return u2 == null ? 0 : ((Integer)u2).intValue(); }
public void nd_nth(int i) { u2 = new Integer(i); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/NODE.java/buggy/org/jruby/original/NODE.java
public void nd_cflag(RubyId id) { u2 = id; }
public RubyId nd_cflag() { return (RubyId)u2; }
public void nd_cflag(RubyId id) { u2 = id; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/NODE.java/buggy/org/jruby/original/NODE.java
public static void print(int indent, Object o, Set visited) { if (o == null) return; if (visited.contains(o)) { indent(indent); System.out.println("(...@" + Integer.toHexString(o.hashCode()) + "...)"); } else if (o instanceof NODE) ((NODE)o).print(indent, visited); else { indent(indent); System.out.println(o); }
public void print(int indent, Set visited) { visited.add(this); indent(indent); System.out.println(this); print(indent + 1, u1, visited); print(indent + 1, u2, visited); print(indent + 1, u3, visited);
public static void print(int indent, Object o, Set visited) { if (o == null) return; if (visited.contains(o)) { indent(indent); System.out.println("(...@" + Integer.toHexString(o.hashCode()) + "...)"); } else if (o instanceof NODE) ((NODE)o).print(indent,...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/NODE.java/buggy/org/jruby/original/NODE.java
public void nd_aid(RubyId id) { u3 = id; }
public RubyId nd_aid() { return (RubyId)u3; }
public void nd_aid(RubyId id) { u3 = id; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/NODE.java/buggy/org/jruby/original/NODE.java
public void nd_noex(int i) { u1 = new Integer(i); }
public int nd_noex() { return u1 == null ? 0 : ((Integer)u1).intValue(); }
public void nd_noex(int i) { u1 = new Integer(i); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/NODE.java/buggy/org/jruby/original/NODE.java
assertEquals(1, favorites.size());
assertEquals(2, favorites.size());
public void testFavs() throws Exception { FavoriteService fs = (FavoriteService) getBean("favoriteService"); Map favorites = fs.getFavorites(); assertNotNull(favorites); assertEquals(1, favorites.size()); assertEquals("Grey Goose", favorites.get("Dan")); }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4a3dda22527dffb579d2266a490a4bf02b280c4f/FavoriteUsingSpringTest.java/buggy/xbean-spring-v1/src/test/java/org/apache/xbean/spring/context/FavoriteUsingSpringTest.java
Object object = favorites.get("IndecisiveDan"); System.out.println(object.getClass()); assertTrue(object instanceof List); List l = (List) object; assertEquals(2, l.size());
public void testFavs() throws Exception { FavoriteService fs = (FavoriteService) getBean("favoriteService"); Map favorites = fs.getFavorites(); assertNotNull(favorites); assertEquals(1, favorites.size()); assertEquals("Grey Goose", favorites.get("Dan")); }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4a3dda22527dffb579d2266a490a4bf02b280c4f/FavoriteUsingSpringTest.java/buggy/xbean-spring-v1/src/test/java/org/apache/xbean/spring/context/FavoriteUsingSpringTest.java
context.registerTool("testTool", new TestTool());
public static void main(String arg[]) { Log.traceExceptions(true); Log.setLevel(Log.ALL); Log.setTarget(System.err); if (arg.length != 0) { System.out.println("Enabling log types"); Log.enableTypes(arg); } // Build a context WebMacro wm = null; Context conte...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/df66bff2e7e90a14ae25f0c5642fd5199b077ad4/StreamTemplate.java/clean/webmacro/src/org/webmacro/engine/StreamTemplate.java
private void addRow(GridBagLayout gridbag, GridBagConstraints c, JPanel main, int index, DataObject data) { //The image has not been created. if (data instanceof ImageSummary) { main.add(new JLabel("The selected image hasn't been classified")); return; ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bf090ceeb0aed127b45849a8e8313a6788dd0e4d/RemoveWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clsf/RemoveWin.java
main.add(new JLabel("The selected image hasn't been classified"));
main.add(new JLabel(UNCLASSIFIED_TEXT));
private void addRow(GridBagLayout gridbag, GridBagConstraints c, JPanel main, int index, DataObject data) { //The image has not been created. if (data instanceof ImageSummary) { main.add(new JLabel("The selected image hasn't been classified")); return; ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bf090ceeb0aed127b45849a8e8313a6788dd0e4d/RemoveWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clsf/RemoveWin.java
cst.weightx = 0.5; cst.fill = GridBagConstraints.HORIZONTAL;
protected JComponent getClassifPanel() { JPanel main = new JPanel(); main.setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); GridBagLayout gridbag = new GridBagLayout(); main.setLayout(gridbag); GridBagConstraints cst = new GridBagConstraints(); cst.ipadx = Classi...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bf090ceeb0aed127b45849a8e8313a6788dd0e4d/RemoveWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clsf/RemoveWin.java
return new JScrollPane(main);
return new JScrollPane(UIUtilities.buildComponentPanel(main));
protected JComponent getClassifPanel() { JPanel main = new JPanel(); main.setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); GridBagLayout gridbag = new GridBagLayout(); main.setLayout(gridbag); GridBagConstraints cst = new GridBagConstraints(); cst.ipadx = Classi...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bf090ceeb0aed127b45849a8e8313a6788dd0e4d/RemoveWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clsf/RemoveWin.java
buildGUI();
ClassifierWin(Set availablePaths) { super(); if (availablePaths == null) throw new IllegalArgumentException("no paths"); setModal(true); setTitle("Classification"); //AttachWindow Listener addWindowListener(new WindowAdapter() { public void ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/423006aa061b61c5fd6f0a1b95754e8a9a2c0fef/ClassifierWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clsf/ClassifierWin.java
private void buildGUI()
protected void buildGUI()
private void buildGUI() { IconManager icons = IconManager.getInstance(); TitlePanel tp = new TitlePanel("Classification", getWinTitle(), getWinNote(), icons.getIcon(IconManager.CATEGORY_BIG)); //Set layout and add components setLayout(new BorderLayout(0, 0)); a...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/423006aa061b61c5fd6f0a1b95754e8a9a2c0fef/ClassifierWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clsf/ClassifierWin.java
setLayout(new BorderLayout(0, 0)); add(tp, BorderLayout.NORTH); add(getClassifPanel(), BorderLayout.CENTER);
Container c = getContentPane(); c.setLayout(new BorderLayout(0, 0)); c.add(tp, BorderLayout.NORTH); c.add(getClassifPanel(), BorderLayout.CENTER);
private void buildGUI() { IconManager icons = IconManager.getInstance(); TitlePanel tp = new TitlePanel("Classification", getWinTitle(), getWinNote(), icons.getIcon(IconManager.CATEGORY_BIG)); //Set layout and add components setLayout(new BorderLayout(0, 0)); a...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/423006aa061b61c5fd6f0a1b95754e8a9a2c0fef/ClassifierWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clsf/ClassifierWin.java
firePropertyChange(SELECTED_CATEGORY_PROPERTY, oldValue, category);
firePropertyChange(SELECTED_CATEGORY_PROPERTY, oldValue, selected_category);
void setSelectedCategory(CategoryData category) { Object oldValue = selected_category; selected_category = category; firePropertyChange(SELECTED_CATEGORY_PROPERTY, oldValue, category); setClosed(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/423006aa061b61c5fd6f0a1b95754e8a9a2c0fef/ClassifierWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clsf/ClassifierWin.java
try { ctx.getBeanFactory(); } catch (IllegalStateException ise) { ctx.refresh(); }
public static OmeroContext getInstance(String beanFactoryName) { OmeroContext ctx = (OmeroContext) ContextSingletonBeanFactoryLocator.getInstance() .useBeanFactory(beanFactoryName).getFactory(); return ctx; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1da0af68c9386b826d75c04230a939952932997b/OmeroContext.java/buggy/components/common/src/ome/system/OmeroContext.java
public static OmeroContext getClientContext( Properties props )
public static OmeroContext getClientContext()
public static OmeroContext getClientContext( Properties props ) { if ( props == null ) throw new ApiUsageException( "Properties argument may not be null." ); Properties copy = new Properties( props ); ConstructorArgumentValues ctorArg...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1da0af68c9386b826d75c04230a939952932997b/OmeroContext.java/buggy/components/common/src/ome/system/OmeroContext.java
if ( props == null ) throw new ApiUsageException( "Properties argument may not be null." ); Properties copy = new Properties( props ); ConstructorArgumentValues ctorArg = new ConstructorArgumentValues(); ctorArg.addGenericArgumentValue( copy ); BeanDefinition definition = new RootBeanDefinition(Properties.class, ctor...
synchronized (mutex) { if (_client == null) _client = getInstance(CLIENT_CONTEXT); return _client; }
public static OmeroContext getClientContext( Properties props ) { if ( props == null ) throw new ApiUsageException( "Properties argument may not be null." ); Properties copy = new Properties( props ); ConstructorArgumentValues ctorArg...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1da0af68c9386b826d75c04230a939952932997b/OmeroContext.java/buggy/components/common/src/ome/system/OmeroContext.java
threadClass.defineMethod("run", callbackFactory.getMethod(ThreadClass.class, "run"));
public static RubyClass createThreadClass(Ruby ruby) { RubyClass threadClass = ruby.defineClass("Thread", ruby.getClasses().getObjectClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); threadClass.defineMethod("[]", callbackFactory.getMethod(Threa...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe758a7c8ed9be7b679b8aef938333d27e876035/ThreadClass.java/buggy/src/org/jruby/ThreadClass.java
return new ReflectionCallbackMethod(type, method, false, true);
return new ReflectionCallbackMethod(type, method, new Class[0], false, true, 0);
public static Callback getSingletonMethod(Class type, String method) { return new ReflectionCallbackMethod(type, method, false, true); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/CallbackFactory.java/buggy/org/jruby/runtime/CallbackFactory.java
RubyException newException = new RubyException(ruby, excptnClass); newException.setInstanceVar("mesg", RubyString.m_newString(ruby, msg)); return newException; }
RubyException newException = new RubyException(ruby, excptnClass); newException.setInstanceVar("mesg", RubyString.m_newString(ruby, msg)); return newException; }
public static RubyException newException(Ruby ruby, RubyClass excptnClass, String msg) { RubyException newException = new RubyException(ruby, excptnClass); newException.setInstanceVar("mesg", RubyString.m_newString(ruby, msg)); return newException; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyException.java/buggy/org/jruby/RubyException.java
public IRubyObject callMethod(String name, IRubyObject arg) { return callMethod(name, new IRubyObject[] { arg });
public IRubyObject callMethod(String name, IRubyObject[] args) { return getMetaClass().call(this, name, args, CallType.FUNCTIONAL);
public IRubyObject callMethod(String name, IRubyObject arg) { return callMethod(name, new IRubyObject[] { arg }); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0044a3b88a0afa22dcced1c8213002b0fb16faf4/RubyObject.java/buggy/src/org/jruby/RubyObject.java
block.setBlockObject(newProc);
newProc.block.setBlockObject(newProc);
public static RubyProc newProc(IRuby runtime, boolean isLambda) { ThreadContext tc = runtime.getCurrentContext(); if (!tc.isBlockGiven() && !tc.isFBlockGiven()) { throw runtime.newArgumentError("tried to create Proc object without a block"); } if (isLambda && !...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/048e5b9179a657d1e786630b4cb43ae2bfdfbe4a/RubyProc.java/buggy/src/org/jruby/RubyProc.java
public static RubyString newString(Ruby ruby, String str) { return new RubyString(ruby, str);
public RubyString newString(String s) { RubyClass type = getInternalClass(); while (type.isIncluded() || type.isSingleton()) { type = type.getSuperClass(); } return new RubyString(getRuntime(), type, s);
public static RubyString newString(Ruby ruby, String str) { return new RubyString(ruby, str); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyString.java/buggy/org/jruby/RubyString.java
timeClass.defineMethod("hash", CallbackFactory.getMethod(RubyTime.class, "hash"));
public static RubyClass createTimeClass(Ruby ruby) { RubyClass timeClass = ruby.defineClass("Time", ruby.getClasses().getObjectClass()); timeClass.includeModule(ruby.getClasses().getComparableModule()); timeClass.defineSingletonMethod("at", CallbackFactory.getOptSingletonMethod(RubyTime.class, ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0907240b4b4a4379424377e971ed0ca23f1dcb/RubyTime.java/clean/org/jruby/RubyTime.java
value = calendar.get(Calendar.WEEK_OF_YEAR);
calendar.setFirstDayOfWeek(Calendar.MONDAY); case FORMAT_WEEK_YEAR_S: value = calendar.get(Calendar.WEEK_OF_YEAR) - 1;
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { calendar.setTime(date); Iterator iter = compiledPattern.iterator(); while (iter.hasNext()) { Token token = (Token) iter.next(); switch (token.getFormat()) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/76f879af69439b7f26a34059cedc0978624b042d/RubyDateFormat.java/buggy/src/org/jruby/util/RubyDateFormat.java
break; case FORMAT_WEEK_YEAR_S: value = calendar.get(Calendar.WEEK_OF_YEAR); if (value < 10) { toAppendTo.append('0'); } toAppendTo.append(value);
calendar.setFirstDayOfWeek(Calendar.SUNDAY);
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { calendar.setTime(date); Iterator iter = compiledPattern.iterator(); while (iter.hasNext()) { Token token = (Token) iter.next(); switch (token.getFormat()) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/76f879af69439b7f26a34059cedc0978624b042d/RubyDateFormat.java/buggy/src/org/jruby/util/RubyDateFormat.java
return new RubyJavaObject(ruby, ruby.getRubyClass("JavaObject"), object);
return new RubyJavaObject(ruby, RubyJavaObject.getRubyClass(ruby, javaClass), object);
public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return RubyBoolean.m_newBoolean(ruby, ((Boolean)object).booleanValue()); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8e00ad1c7ae96f50ae0bd521483380788f891b7b/JavaUtil.java/clean/org/jruby/javasupport/JavaUtil.java
public RubyJavaObject(Ruby ruby, RubyModule rubyClass, Object value) { super(ruby, rubyClass); this.value = value;
public RubyJavaObject(Ruby ruby, RubyModule rubyClass) { this(ruby, rubyClass, null);
public RubyJavaObject(Ruby ruby, RubyModule rubyClass, Object value) { super(ruby, rubyClass); this.value = value; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/086abcd7e5107a6e6813ecb64810deff5780af95/RubyJavaObject.java/buggy/org/jruby/RubyJavaObject.java
new XmlMetadataGenerator(this, metaInfDir, destFile), new DocumentationGenerator(this, destFile), new XsdGenerator(this, destFile)
new XmlMetadataGenerator(metaInfDir, destFile), new DocumentationGenerator(destFile), new XsdGenerator(destFile)
public void execute() throws BuildException { if (namespace == null) { throw new BuildException("'namespace' must be specified"); } if (srcDir == null) { throw new BuildException("'srcDir' must be specified"); } if (destFile == null) { throw new Bu...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/82f8c1592f773a8e10d7a95ab3c2405dc29d8a3e/MappingGeneratorTask.java/clean/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/MappingGeneratorTask.java
plugin.setLog(this);
public void execute() throws BuildException { if (namespace == null) { throw new BuildException("'namespace' must be specified"); } if (srcDir == null) { throw new BuildException("'srcDir' must be specified"); } if (destFile == null) { throw new Bu...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/82f8c1592f773a8e10d7a95ab3c2405dc29d8a3e/MappingGeneratorTask.java/clean/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/MappingGeneratorTask.java
public XmlMetadataGenerator(LogFacade log, String metaInfDir, File schema) {
public XmlMetadataGenerator(String metaInfDir, File schema) {
public XmlMetadataGenerator(LogFacade log, String metaInfDir, File schema) { this.metaInfDir = metaInfDir; this.log = log; this.schema = schema; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/82f8c1592f773a8e10d7a95ab3c2405dc29d8a3e/XmlMetadataGenerator.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/XmlMetadataGenerator.java
this.log = log;
public XmlMetadataGenerator(LogFacade log, String metaInfDir, File schema) { this.metaInfDir = metaInfDir; this.log = log; this.schema = schema; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/82f8c1592f773a8e10d7a95ab3c2405dc29d8a3e/XmlMetadataGenerator.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/XmlMetadataGenerator.java
public DocumentationGenerator(LogFacade log, File destFile) {
public DocumentationGenerator(File destFile) {
public DocumentationGenerator(LogFacade log, File destFile) { this.destFile = destFile; this.log = log; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/82f8c1592f773a8e10d7a95ab3c2405dc29d8a3e/DocumentationGenerator.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/DocumentationGenerator.java
this.log = log;
public DocumentationGenerator(LogFacade log, File destFile) { this.destFile = destFile; this.log = log; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/82f8c1592f773a8e10d7a95ab3c2405dc29d8a3e/DocumentationGenerator.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/DocumentationGenerator.java
public XsdGenerator(LogFacade log, File destFile) {
public XsdGenerator(File destFile) {
public XsdGenerator(LogFacade log, File destFile) { this.destFile = destFile; this.log = log; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/82f8c1592f773a8e10d7a95ab3c2405dc29d8a3e/XsdGenerator.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/XsdGenerator.java
this.log = log;
public XsdGenerator(LogFacade log, File destFile) { this.destFile = destFile; this.log = log; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/82f8c1592f773a8e10d7a95ab3c2405dc29d8a3e/XsdGenerator.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/XsdGenerator.java
public Frame() {
public Frame(Ruby ruby) { this.ruby = ruby;
public Frame() { }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/Frame.java/buggy/org/jruby/interpreter/Frame.java
Frame oldFrame = new Frame(self, args, lastFunc, lastClass, cbase, prev,
Frame oldFrame = new Frame(ruby, self, args, lastFunc, lastClass, cbase, prev,
public void push() { Frame oldFrame = new Frame(self, args, lastFunc, lastClass, cbase, prev, tmp, file, line, iter, flags); prev = oldFrame; tmp = null; // file = null // line = // iter = // cbase = cbase; ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/Frame.java/buggy/org/jruby/interpreter/Frame.java
args = null; flags = FRAME_ALLOCA;
iter = ruby.getInterpreter().getRubyIter().getIter(); args = null; flags = FRAME_ALLOCA;
public void push() { Frame oldFrame = new Frame(self, args, lastFunc, lastClass, cbase, prev, tmp, file, line, iter, flags); prev = oldFrame; tmp = null; // file = null // line = // iter = // cbase = cbase; ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/Frame.java/buggy/org/jruby/interpreter/Frame.java
recalculatePanNodes();
public void cameraResized(Rectangle2D cameraBounds) { // OK, so the hotspots will be the margins *unless* for some reason // someone was stupid enough to set the margins larger than the // bounds, in which case we'll do nothing because someone was stupid // enough to pull off that ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/BrowserCamera.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserCamera.java
recalculatePanNodes();
public void setActiveRegion(Rectangle2D region) { if(region != null) { activeRegion = region; recalculatePanNodes(); } else { region = new Rectangle2D.Double(0,0,0,0); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/BrowserCamera.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserCamera.java
if (parentModel.getState() == HiViewer.LOADING_THUMBNAILS) {
if (parentModel.getState() == HiViewer.READY) {
public void stateChanged(ChangeEvent ce) { Object source = ce.getSource(); if (source instanceof HiViewer) { HiViewer parentModel = model.getParentModel(); if (parentModel.getState() == HiViewer.LOADING_THUMBNAILS) { parentModel.getBrowser().addPropertyChangeLis...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c7517f5d0ece413452f58f3f0a071be2ccbee2e/ClipBoardControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/ClipBoardControl.java
view.initListener();
public void stateChanged(ChangeEvent ce) { Object source = ce.getSource(); if (source instanceof HiViewer) { HiViewer parentModel = model.getParentModel(); if (parentModel.getState() == HiViewer.LOADING_THUMBNAILS) { parentModel.getBrowser().addPropertyChangeLis...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c7517f5d0ece413452f58f3f0a071be2ccbee2e/ClipBoardControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/ClipBoardControl.java
for (int i = 0, count = unmarshalInt(); i < count; i++) { result.setInstanceVariable(unmarshalObject().asSymbol(), unmarshalObject(proc)); }
defaultInstanceVarsUnmarshal(result, proc);
private IRubyObject defaultObjectUnmarshal(IRubyObject proc) throws IOException { RubySymbol className = (RubySymbol) unmarshalObject(); // ... FIXME: handle if class doesn't exist ... RubyClass type = (RubyClass) runtime.getClassFromPath(className.asSymbol()); assert type != null : "typ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d70012034b8795a6917f9e3b903281a59f12d372/UnmarshalStream.java/clean/src/org/jruby/runtime/marshal/UnmarshalStream.java
throw getRuntime().newArgumentError("dump format error(" + type + ")");
throw getRuntime().newArgumentError("dump format error(" + (char)type + ")");
private IRubyObject unmarshalObjectDirectly(int type, IRubyObject proc) throws IOException { IRubyObject rubyObj = null; switch (type) { case '0' : rubyObj = runtime.getNil(); break; case 'T' : rubyObj = runtime.getTrue(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d70012034b8795a6917f9e3b903281a59f12d372/UnmarshalStream.java/clean/src/org/jruby/runtime/marshal/UnmarshalStream.java
public String[] countFields(){ return (String[]) options.get(FIELDS);
public PojoOptions countFields(String[] fields) { options.put(FIELDS,fields); return this;
public String[] countFields(){ return (String[]) options.get(FIELDS); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/PojoOptions.java/buggy/components/common/src/ome/util/builders/PojoOptions.java
if ( l == null ) return;
public void addCounts(String field, Long id, Integer count) { int idx = Arrays.binarySearch(fields,field); if (idx < 0) return; if (count == null) return; Map<Long, IObject> l = lookup[idx]; IObject obj = l.get(id); if (obj...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/CountCollector.java/buggy/components/server/src/ome/services/util/CountCollector.java
public PojoOptions(Map map){ if (null != map){ copy(map); } else { copy(new PojoOptions().map()); }
public PojoOptions(){ this.noLeaves().countsForUser() .countFields(new String[]{ Dataset.ANNOTATIONS, Image.ANNOTATIONS, Image.CATEGORYLINKS});
public PojoOptions(Map map){ if (null != map){ copy(map); } else { copy(new PojoOptions().map()); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/PojoOptions.java/buggy/components/common/src/ome/util/builders/PojoOptions.java
Iterator d = img.iterateOverDatasetLinks();
Iterator d = img.linkedDatasetIterator();
public static Set invertPDI(Set imagesAll) { Set cleared = new HashSet(); Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); Iterator d = img.iterateOverDatasetLinks(); if ( ! d.hasNext() ) { ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/7b5c704279f82fa929138305f70f2f5e6b462c69/HierarchyTransformations.java/buggy/components/server/src/ome/tools/HierarchyTransformations.java
Iterator p = ds.iterateOverProjectLinks();
Iterator p = ds.linkedProjectIterator();
public static Set invertPDI(Set imagesAll) { Set cleared = new HashSet(); Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); Iterator d = img.iterateOverDatasetLinks(); if ( ! d.hasNext() ) { ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/7b5c704279f82fa929138305f70f2f5e6b462c69/HierarchyTransformations.java/buggy/components/server/src/ome/tools/HierarchyTransformations.java
Iterator c = img.iterateOverCategoryLinks();
Iterator c = img.linkedCategoryIterator();
public static Set invertCGCI(Set imagesAll) { Set cleared = new HashSet(); Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); Iterator c = img.iterateOverCategoryLinks(); if ( !...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/7b5c704279f82fa929138305f70f2f5e6b462c69/HierarchyTransformations.java/buggy/components/server/src/ome/tools/HierarchyTransformations.java
Iterator g = ca.iterateOverCategoryGroupLinks();
Iterator g = ca.linkedCategoryGroupIterator();
public static Set invertCGCI(Set imagesAll) { Set cleared = new HashSet(); Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); Iterator c = img.iterateOverCategoryLinks(); if ( !...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/7b5c704279f82fa929138305f70f2f5e6b462c69/HierarchyTransformations.java/buggy/components/server/src/ome/tools/HierarchyTransformations.java
JUnitXMLHelper.validate(new File(PATH_TO_TEST_OUTPUT, htmlFiles[i]));
JUnitXMLHelper.readXmlFile(new File(PATH_TO_TEST_OUTPUT, htmlFiles[i]), true);
public void testHTMLReportValidity() throws Exception { // Serialize the current coverage data to disk ProjectData.saveGlobalProjectData(); String dataFileName = CoverageDataFileHandler.getDefaultDataFile().getAbsolutePath(); // Then we need to generate the HTML report String[] args = new String[] { "--format", "...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/9a1f242cd64dfc68f804c44562c72e3200447563/HTMLReportTest.java/clean/cobertura/test/net/sourceforge/cobertura/reporting/html/HTMLReportTest.java
Coverage coverage = CoverageUnmarshaller.parse(coverageData);
CoverageReport coverage = new CoverageReport(coverageData);
public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("format", LongOpt.REQUIRED_ARGUMENT, null, 'f'); longOpts[1] = new LongOpt("instrumentation", LongOpt.REQUIRED_ARGUMENT, null, 'i'); longOpts[...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/100512ee483a0d8eebc3eb78a5d8913b7b64ddb6/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/Main.java
if (isSessionBoundToThread())
Session session = nullOrSessionBoundToThread(); if (session != null)
private void closeSession() throws Exception { if (isSessionBoundToThread()) { debug("Session bound to thread. Closing."); Session session = sessionBoundToThread(); try { session.connection().commit(); sessionBoundToThread()....
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/abb75611ecbe8038586bfc5b8903fe7fb0b36a3e/SessionHandler.java/clean/components/server/src/ome/tools/hibernate/SessionHandler.java
Session session = sessionBoundToThread();
private void closeSession() throws Exception { if (isSessionBoundToThread()) { debug("Session bound to thread. Closing."); Session session = sessionBoundToThread(); try { session.connection().commit(); sessionBoundToThread()....
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/abb75611ecbe8038586bfc5b8903fe7fb0b36a3e/SessionHandler.java/clean/components/server/src/ome/tools/hibernate/SessionHandler.java
sessionBoundToThread().close();
session.close();
private void closeSession() throws Exception { if (isSessionBoundToThread()) { debug("Session bound to thread. Closing."); Session session = sessionBoundToThread(); try { session.connection().commit(); sessionBoundToThread()....
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/abb75611ecbe8038586bfc5b8903fe7fb0b36a3e/SessionHandler.java/clean/components/server/src/ome/tools/hibernate/SessionHandler.java
if (isSessionBoundToThread() && sessionBoundToThread().isConnected())
Session session = nullOrSessionBoundToThread(); if ( session != null && session.isConnected())
private void disconnectSession() throws HibernateException { if (isSessionBoundToThread() && sessionBoundToThread().isConnected()) { debug("Session bound to thread. Disconnecting."); sessionBoundToThread().disconnect(); } else { debug("No session bound to thr...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/abb75611ecbe8038586bfc5b8903fe7fb0b36a3e/SessionHandler.java/clean/components/server/src/ome/tools/hibernate/SessionHandler.java
sessionBoundToThread().disconnect();
session.disconnect();
private void disconnectSession() throws HibernateException { if (isSessionBoundToThread() && sessionBoundToThread().isConnected()) { debug("Session bound to thread. Disconnecting."); sessionBoundToThread().disconnect(); } else { debug("No session bound to thr...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/abb75611ecbe8038586bfc5b8903fe7fb0b36a3e/SessionHandler.java/clean/components/server/src/ome/tools/hibernate/SessionHandler.java
private void disconnectSession() throws HibernateException { if (isSessionBoundToThread() && sessionBoundToThread().isConnected()) { debug("Session bound to thread. Disconnecting."); sessionBoundToThread().disconnect(); } else { debug("No session bound to thr...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/abb75611ecbe8038586bfc5b8903fe7fb0b36a3e/SessionHandler.java/clean/components/server/src/ome/tools/hibernate/SessionHandler.java
newOrRestoredSession(invocation);
status = newOrRestoredSession(invocation); status.session.setFlushMode( FlushMode.MANUAL );
private Object doStateful(MethodInvocation invocation) throws Throwable { Object result = null; try { newOrRestoredSession(invocation); result = invocation.proceed(); return result; } catch (Throwable e) { e.printStackTrace(); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/abb75611ecbe8038586bfc5b8903fe7fb0b36a3e/SessionHandler.java/clean/components/server/src/ome/tools/hibernate/SessionHandler.java
disconnectSession();
if (status != null ) { status.session.setFlushMode( FlushMode.MANUAL ); disconnectSession(); }
private Object doStateful(MethodInvocation invocation) throws Throwable { Object result = null; try { newOrRestoredSession(invocation); result = invocation.proceed(); return result; } catch (Throwable e) { e.printStackTrace(); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/abb75611ecbe8038586bfc5b8903fe7fb0b36a3e/SessionHandler.java/clean/components/server/src/ome/tools/hibernate/SessionHandler.java
Session currentSession = acquireBindAndConfigureSession();
Session currentSession = acquireAndBindSession();
private SessionStatus newOrRestoredSession(MethodInvocation invocation) throws HibernateException { SessionStatus status = sessions.get(invocation.getThis()); Session previousSession = ! isSessionBoundToThread() ? null : sessionBoundToThread(); // a session is currently running...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/abb75611ecbe8038586bfc5b8903fe7fb0b36a3e/SessionHandler.java/clean/components/server/src/ome/tools/hibernate/SessionHandler.java
assertEquals(":[-1,-1]:[0,0]: A message (NameError)\n", err.toString());
public void testPrintErrorShouldOnlyPrintErrorMessageWhenBacktraceIsNil() { ByteArrayOutputStream err = new ByteArrayOutputStream(); IRuby ruby = Ruby.newInstance(System.in, System.out, new PrintStream(err), false); RubyException exception = new RubyException(ruby, ruby.getClass("NameError"), "...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/af07dd9e2d788cd1a5151ea8833909422495f7c4/TestRuby.java/buggy/test/org/jruby/test/TestRuby.java
super(name); }
super(name); }
public TestRubyBase(String name) { super(name); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/774c5d3d592dfd020e3a8f961b73f629c4c55cf0/TestRubyBase.java/buggy/org/jruby/test/TestRubyBase.java
super(ruby, rubyClass); }
super(ruby, rubyClass); }
public RubyException(Ruby ruby, RubyClass rubyClass) { super(ruby, rubyClass); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyException.java/buggy/org/jruby/RubyException.java
pipeIn = new PipedInputStream(); in = new BufferedReader(new InputStreamReader(pipeIn));
pipeIn = new PipedInputStream(); in = new BufferedReader(new InputStreamReader(pipeIn));
protected String eval(String script) { pipeIn = new PipedInputStream(); in = new BufferedReader(new InputStreamReader(pipeIn)); String output = null; StringBuffer result = new StringBuffer(); try { out = new PrintStream(new PipedOutputStream(pipeIn), true); // ruby.getRuntime().setOutputStream(out)...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/774c5d3d592dfd020e3a8f961b73f629c4c55cf0/TestRubyBase.java/buggy/org/jruby/test/TestRubyBase.java
String output = null; StringBuffer result = new StringBuffer(); try { out = new PrintStream(new PipedOutputStream(pipeIn), true); RubyIO lStream = new RubyIO(ruby); lStream.initIO(null, out, null); ruby.setGlobalVar("$stdout", lStream); ruby.setGlobalVar("$>", lStream); lStream = (RubyIO) ruby.getGlobalVar("$stderr")...
String output = null; StringBuffer result = new StringBuffer(); try { out = new PrintStream(new PipedOutputStream(pipeIn), true); RubyIO lStream = new RubyIO(ruby); lStream.initIO(null, out, null); ruby.setGlobalVar("$stdout", lStream); ruby.setGlobalVar("$>", lStream); lStream = (RubyIO) ruby.getGlobalVar("$stderr")...
protected String eval(String script) { pipeIn = new PipedInputStream(); in = new BufferedReader(new InputStreamReader(pipeIn)); String output = null; StringBuffer result = new StringBuffer(); try { out = new PrintStream(new PipedOutputStream(pipeIn), true); // ruby.getRuntime().setOutputStream(out)...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/774c5d3d592dfd020e3a8f961b73f629c4c55cf0/TestRubyBase.java/buggy/org/jruby/test/TestRubyBase.java
public RubyClass(Ruby ruby, RubyModule rubyClass, RubyModule superClass) { super(ruby, rubyClass, superClass);
public RubyClass(Ruby ruby) { this(ruby, null);
public RubyClass(Ruby ruby, RubyModule rubyClass, RubyModule superClass) { super(ruby, rubyClass, superClass); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/03950522a75c28f406bd4cb011cb1916a662366d/RubyClass.java/buggy/org/jruby/RubyClass.java
connectMenu.remove(item);
public void initialize() { if (Spark.isMac()) { roomListener = new DockRoomListener(); SparkManager.getChatManager().addChatRoomListener(roomListener); // Remove the About Menu Item from the help menu MainWindow mainWindow = SparkManager.getMainWindow(); ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/25c0f6db5fc8e92ad52f6a354c86118d3658649b/ApplePlugin.java/clean/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java
application.setEnabledPreferencesMenu(true); application.addPreferencesMenuItem();
public void initialize() { if (Spark.isMac()) { roomListener = new DockRoomListener(); SparkManager.getChatManager().addChatRoomListener(roomListener); // Remove the About Menu Item from the help menu MainWindow mainWindow = SparkManager.getMainWindow(); ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/25c0f6db5fc8e92ad52f6a354c86118d3658649b/ApplePlugin.java/clean/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java
if (f1.exists() != f2.exists() && f1.isFile() != f2.isFile() && f1.isDirectory() != f2.isDirectory())
if (f1.exists() != f2.exists() || f1.isFile() != f2.isFile() || f1.isDirectory() != f2.isDirectory())
public static boolean contentsEqual(File f1, File f2, boolean ignoreWhitespace) throws IOException { if (f1 == f2) return true; if (f1 == null && f2 == null) return true; if (f1 == null || f2 == null) return false; if (f1.exists() != f2.exists() && f1.isFile() != f2.isFile() && f1.isDirectory() != f2.is...
53231 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53231/b4e947c77517c73db921d02a7471df7db67e53da/FileUtils.java/clean/branches/lexi-19102006/codemodel/codemodel/src/test/java/com/sun/codemodel/tests/util/FileUtils.java
parent.buildGroupList();
parent.buildCategoryList(group);
public void actionPerformed(ActionEvent arg0) { saveButton.setEnabled(false); cancelButton.setEnabled(false); control.newCategory(group,nameField.getText(), descriptionArea.getText()); parent.buildGroupList(); setVisibl...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6b6fb3d79e056966af9613826e3acb47d46b3abe/CategoryEditUI.java/clean/SRC/org/openmicroscopy/shoola/agents/classifier/CategoryEditUI.java
singletonClass.setParentModule((RubyModule) receiver);
singletonClass.setParentModule(runtime.getRubyClass());
public void visitSClassNode(SClassNode iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); RubyClass singletonClass; if (receiver.isNil()) { singletonClass = runtime.getClasses().getNilClass(); } else if (receiver == runtime.getTrue()) { singletonCl...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d5b4eb9cfd95f0bc424c7969a5ac09a0d9423a66/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java
public RubyArray newArray(IRubyObject object) { return RubyArray.newArray(this, object);
public RubyArray newArray() { return RubyArray.newArray(this);
public RubyArray newArray(IRubyObject object) { return RubyArray.newArray(this, object); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/02f1a36be6c43bcb5b541cf429a4a8e0a2280750/Ruby.java/buggy/src/org/jruby/Ruby.java
NODE orig = searchMethod(oldId); RubyModule origin = getMethodOrigin(oldId);
SearchMethodResult smr = searchMethod(oldId); NODE orig = smr.getBody(); RubyModule origin = smr.getOrigin();
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } NODE orig = searchMethod(oldId); RubyModule...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/03950522a75c28f406bd4cb011cb1916a662366d/RubyModule.java/buggy/org/jruby/RubyModule.java
orig = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = getRuby().getClasses().getObjectClass().getMethodOrigin(oldId);
smr = getRuby().getClasses().getObjectClass().searchMethod(oldId); orig = smr.getBody(); origin = smr.getOrigin();
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } NODE orig = searchMethod(oldId); RubyModule...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/03950522a75c28f406bd4cb011cb1916a662366d/RubyModule.java/buggy/org/jruby/RubyModule.java
public static RubyBignum newBignum(Ruby ruby, BigInteger value) { return new RubyBignum(ruby, value);
public static RubyBignum newBignum(Ruby ruby, long value) { return newBignum(ruby, BigInteger.valueOf(value));
public static RubyBignum newBignum(Ruby ruby, BigInteger value) { return new RubyBignum(ruby, value); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyBignum.java/buggy/org/jruby/RubyBignum.java
public RubyObject call(RubyObject recv, RubyId id, RubyObject[] args, int scope) {
public RubyObject call(RubyObject recv, RubyId mid, RubyObject[] args, int scope) { MethodCacheEntry ent = MethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; NODE body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("Undefined"); } klass...
public RubyObject call(RubyObject recv, RubyId id, RubyObject[] args, int scope) { // ... NODE body = getMethodBody(id, scope); return call0(recv, id, args, body, false); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/03950522a75c28f406bd4cb011cb1916a662366d/RubyModule.java/buggy/org/jruby/RubyModule.java
NODE body = getMethodBody(id, scope); return call0(recv, id, args, body, false);
return klass.call0(recv, id, args, body, false);
public RubyObject call(RubyObject recv, RubyId id, RubyObject[] args, int scope) { // ... NODE body = getMethodBody(id, scope); return call0(recv, id, args, body, false); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/03950522a75c28f406bd4cb011cb1916a662366d/RubyModule.java/buggy/org/jruby/RubyModule.java
throw runtime.newNameError("superclass method '" + frame.getLastFunc() + "' must be enabled by enableSuper().");
String name = frame.getLastFunc(); throw runtime.newNameError("superclass method '" + name + "' must be enabled by enableSuper().", name);
public IRubyObject callSuper(IRubyObject[] args) { Frame frame = getCurrentFrame(); if (frame.getLastClass() == null) { throw runtime.newNameError("superclass method '" + frame.getLastFunc() + "' must be enabled by enableSuper()."); } setNoBlockIfNoBlock(); try { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java
NODE body = searchMethod(id);
NODE body = searchMethod(id).getBody();
public void undef(RubyId id) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new SecurityException("Insecure: can't undef"); } testFrozen(); if (id == getRuby...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/03950522a75c28f406bd4cb011cb1916a662366d/RubyModule.java/buggy/org/jruby/RubyModule.java
ruby_cref = ruby_cref.nd_next();
ruby.setRubyCRef(ruby.getRubyCRef().nd_next());
private void POP_CREF() { ruby_cref = ruby_cref.nd_next(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
ruby_cref = new NODE(NODE_CREF, c, null, ruby_cref);
ruby.setRubyCRef(new NODE(NODE.NODE_CREF, c, null, ruby.getRubyCRef()));
private void PUSH_CREF(Object c) { ruby_cref = new NODE(NODE_CREF, c, null, ruby_cref); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
ruby.setRubyClass(ruby.getClasses().getObjectClass()); ruby_cbase = null;
public RubyInterpreter(Ruby ruby) { this.ruby = ruby; ruby.setRubyClass(ruby.getClasses().getObjectClass()); ruby_cbase = null; rubyBlock = new RubyBlock(ruby); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
if (getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + rubyFrame.getLastFunc().toName() + "' disabled");
if (ruby.getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + ruby.getRubyFrame().getLastFunc().toName() + "' disabled");
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
List argsList = getRubyFrame().getArgs();
List argsList = ruby.getRubyFrame().getArgs();
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
result = getRubyFrame().getLastClass().getSuperClass().call(rubyFrame.getSelf(), rubyFrame.getLastFunc(), args, 3);
result = ruby.getRubyFrame().getLastClass().getSuperClass().call( ruby.getRubyFrame().getSelf(), ruby.getRubyFrame().getLastFunc(), args, 3);
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame;
RubyFrame frame = ruby.getRubyFrame(); frame.setTmp(ruby.getRubyFrame()); ruby.setRubyFrame(frame);
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
saved_cref = ruby_cref; ruby_cref = (NODE)node.nd_rval(); getRubyFrame().setCbase(node.nd_rval());
saved_cref = ruby.getRubyCRef(); ruby.setRubyCRef((NODE)node.nd_rval()); ruby.getRubyFrame().setCbase(node.nd_rval());
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
getRuby().getRubyScope().setLocalVars(vars); getRuby().getRubyScope().setLocalTbl(node.nd_tbl()); } else { getRuby().getRubyScope().setLocalVars(null); getRuby().getRubyScope().setLocalTbl(null);
ruby.getRubyScope().setLocalVars(vars); ruby.getRubyScope().setLocalTbl(node.nd_tbl()); } else { ruby.getRubyScope().setLocalVars(null); ruby.getRubyScope().setLocalTbl(null);
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
rubyFrame = frame.getTmp();
ruby.setRubyFrame(frame.getTmp());
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java