rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
public static IRubyObject exist_p(IRubyObject recv, RubyString filename) {
public static IRubyObject exist_p(IRubyObject recv, IRubyObject filename) {
public static IRubyObject exist_p(IRubyObject recv, RubyString filename) { return recv.getRuntime().newBoolean(newFile(filename).exists()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/418c30d7568bd7f3d82ef1d3a011ee39d958b8f6/RubyFileTest.java/buggy/src/org/jruby/RubyFileTest.java
public static RubyBoolean file_p(IRubyObject recv, RubyString filename) {
public static RubyBoolean file_p(IRubyObject recv, IRubyObject filename) {
public static RubyBoolean file_p(IRubyObject recv, RubyString filename) { JRubyFile file = newFile(filename); return filename.getRuntime().newBoolean(file.isFile()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/418c30d7568bd7f3d82ef1d3a011ee39d958b8f6/RubyFileTest.java/buggy/src/org/jruby/RubyFileTest.java
private static JRubyFile newFile(RubyString path) { return JRubyFile.create(path.getRuntime().getCurrentDirectory(), path.toString());
private static JRubyFile newFile(IRubyObject path) { return JRubyFile.create(path.getRuntime().getCurrentDirectory(), path.convertToString().toString());
private static JRubyFile newFile(RubyString path) { return JRubyFile.create(path.getRuntime().getCurrentDirectory(), path.toString()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/418c30d7568bd7f3d82ef1d3a011ee39d958b8f6/RubyFileTest.java/buggy/src/org/jruby/RubyFileTest.java
public static RubyBoolean readable_p(IRubyObject recv, RubyString filename) {
public static RubyBoolean readable_p(IRubyObject recv, IRubyObject filename) {
public static RubyBoolean readable_p(IRubyObject recv, RubyString filename) { return filename.getRuntime().newBoolean(newFile(filename).canRead()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/418c30d7568bd7f3d82ef1d3a011ee39d958b8f6/RubyFileTest.java/buggy/src/org/jruby/RubyFileTest.java
public static IRubyObject size(IRubyObject recv, RubyString filename) {
public static IRubyObject size(IRubyObject recv, IRubyObject filename) {
public static IRubyObject size(IRubyObject recv, RubyString filename) { JRubyFile file = newFile(filename); if (!file.exists()) { throw recv.getRuntime().newErrnoENOENTError("No such file: " + filename); } return filename.getRuntime().newFixnum(file.length()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/418c30d7568bd7f3d82ef1d3a011ee39d958b8f6/RubyFileTest.java/buggy/src/org/jruby/RubyFileTest.java
public static RubyBoolean writable_p(IRubyObject recv, RubyString filename) {
public static RubyBoolean writable_p(IRubyObject recv, IRubyObject filename) {
public static RubyBoolean writable_p(IRubyObject recv, RubyString filename) { return filename.getRuntime().newBoolean(newFile(filename).canWrite()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/418c30d7568bd7f3d82ef1d3a011ee39d958b8f6/RubyFileTest.java/buggy/src/org/jruby/RubyFileTest.java
public static RubyBoolean zero_p(IRubyObject recv, RubyString filename) {
public static RubyBoolean zero_p(IRubyObject recv, IRubyObject filename) {
public static RubyBoolean zero_p(IRubyObject recv, RubyString filename) { JRubyFile file = newFile(filename); return filename.getRuntime().newBoolean(file.exists() && file.length() == 0L); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/418c30d7568bd7f3d82ef1d3a011ee39d958b8f6/RubyFileTest.java/buggy/src/org/jruby/RubyFileTest.java
gammaSlider.setEnabled(!(f.equals(RendererModel.LINEAR) || f.equals(RendererModel.LOGARITHMIC)));
gammaSlider.setEnabled((f.equals(RendererModel.POLYNOMIAL) || f.equals(RendererModel.EXPONENTIAL)));
void onCurveChange() { String f = model.getFamily(); gammaSlider.setEnabled(!(f.equals(RendererModel.LINEAR) || f.equals(RendererModel.LOGARITHMIC))); graphicsPane.onCurveChange(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/7cd56ca86ceeeca1de591b9d79378d59b816016f/DomainPane.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/rnd/DomainPane.java
public static Criteria buildExtendedCategoryGroupCriteria(int groupID)
public static Criteria buildExtendedCategoryGroupCriteria(int groupID, int userID)
public static Criteria buildExtendedCategoryGroupCriteria(int groupID) { Criteria c = buildCategoryGroupCriteria(groupID); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); c.addWant...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/CategoryMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/CategoryMapper.java
Criteria c = buildCategoryGroupCriteria(groupID);
Criteria c = buildCategoryGroupCriteria(groupID, userID);
public static Criteria buildExtendedCategoryGroupCriteria(int groupID) { Criteria c = buildCategoryGroupCriteria(groupID); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); c.addWant...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/CategoryMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/CategoryMapper.java
c.addWantedField("module_execution");
public static Criteria buildExtendedCategoryGroupCriteria(int groupID) { Criteria c = buildCategoryGroupCriteria(groupID); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); c.addWant...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/CategoryMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/CategoryMapper.java
c.addWantedField("module_execution", "experimenter");
public static Criteria buildExtendedCategoryGroupCriteria(int groupID) { Criteria c = buildCategoryGroupCriteria(groupID); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); c.addWant...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/CategoryMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/CategoryMapper.java
sb.append("#<").append(getMetaClass().getName()).append(' ');
sb.append("#<struct ").append(getMetaClass().getName()).append(' ');
public IRubyObject inspect() { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); assert !member.isNil() : "uninitialized struct"; StringBuffer sb = new StringBuffer(100); sb.append("#<").append(getMetaClass().getName()).append(' '); for (int i = 0; i < m...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7c8f2b8eef39162335ebb91ec372425a2b17cc67/RubyStruct.java/buggy/src/org/jruby/RubyStruct.java
return getRuntime().newString("#<" + getMetaClass().getName() + ">");
return inspect();
public IRubyObject to_s() { return getRuntime().newString("#<" + getMetaClass().getName() + ">"); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7c8f2b8eef39162335ebb91ec372425a2b17cc67/RubyStruct.java/buggy/src/org/jruby/RubyStruct.java
*/ RenderingDef rd = getRenderingDef(); QuantumDef qd = rd.getQuantization(); qd.setCdStart(Integer.valueOf(start)); qd.setCdEnd(Integer.valueOf(end));
public void setCodomainInterval(int start, int end) { CodomainChain chain = getCodomainChain(); chain.setInterval(start, end); RenderingDef rd = getRenderingDef(); QuantumDef qd = rd.getQuantization(), newQd; newQd = new QuantumDef(); newQd.setBitResolution(qd.getBitReso...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a37349aec41fb7d56b86d829322a9313e3d0e9e9/Renderer.java/clean/components/rendering/src/omeis/providers/re/Renderer.java
*/ RenderingDef rd = getRenderingDef(); QuantumDef qd = rd.getQuantization(); qd.setBitResolution(Integer.valueOf(bitResolution)); updateQuantumManager();
public void setQuantumStrategy(int bitResolution) { RenderingDef rd = getRenderingDef(); QuantumDef qd = rd.getQuantization(), newQd; newQd = new QuantumDef(); newQd.setBitResolution(Integer.valueOf(bitResolution)); newQd.setCdStart(qd.getCdStart()); newQd.setCdEnd(qd.ge...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a37349aec41fb7d56b86d829322a9313e3d0e9e9/Renderer.java/clean/components/rendering/src/omeis/providers/re/Renderer.java
String[] lines = output.split("\n"); return lines;
if (output.trim().length() == 0) { return new String[0]; } else { return output.split("\n"); }
private String[] printError() { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(2048); PrintStream stream = new PrintStream(byteArrayOutputStream); exception.printBacktrace(stream); String output = new String(byteArrayOutputStream.toByteArray()); String[] lines = output.split("\n"); retur...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe628a940467ceda783730ea34173dec3d365fa4/TestRubyException.java/buggy/test/org/jruby/test/TestRubyException.java
interpreter = new MockInterpreter(); exception = new RubyException(interpreter, null, "test");
interpreter = Ruby.getDefaultInstance(); exception = new RubyException(interpreter, interpreter.getClass("StandardError"), "test");
public void setUp() { interpreter = new MockInterpreter(); exception = new RubyException(interpreter, null, "test"); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe628a940467ceda783730ea34173dec3d365fa4/TestRubyException.java/buggy/test/org/jruby/test/TestRubyException.java
note.getParent().removeNote(note);
note.getHolder().removeNote(note);
public void deleteSelfAndChildren() { for (DisplayedNote child : children) { child.deleteSelfAndChildren(); } treeNode.dispose(); if (tab != null) tab.dispose(); note.getParent().removeNote(note); }
57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/cc213bec5ffa0d2acf674b81cbd7e8b0d5952587/DisplayedNote.java/buggy/trunk/src/de/berlios/koalanotes/display/DisplayedNote.java
String name = pType;
public void addProvider(Provider p, String pType) throws InitException { String name = pType; if (pType == null || pType.equals("")) pType = p.getType(); p.init(this, _config); _providers.put(pType, p); _log.info("Loaded provider " + p); if (!pType.equals(p.getType())) _...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/8f5880751893a7e5dd9da25d036747a39c9b25b5/Broker.java/buggy/webmacro/src/org/webmacro/Broker.java
workspacePane.setActiveButtonBold(true); cardLayout = new CardLayout(); cardPanel = new JPanel(cardLayout); cardPanel.setOpaque(false); cardPanel.add(WORKSPACE_PANE, workspacePane);
private Workspace() { MainWindow mainWindow = SparkManager.getMainWindow(); // Add MainWindow listener mainWindow.addMainWindowListener(new MainWindowListener() { public void shutdown() { // Close all Chats. final Iterator chatRooms = SparkManager.getCha...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0807e1b794eeaa6c07d31a5c351697146a85040b/Workspace.java/clean/src/java/org/jivesoftware/spark/Workspace.java
add(workspacePane, new GridBagConstraints(0, 9, 1, 1, 1.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(4, 4, 4, 4), 0, 0));
add(cardPanel, new GridBagConstraints(0, 9, 1, 1, 1.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(4, 4, 4, 4), 0, 0));
private Workspace() { MainWindow mainWindow = SparkManager.getMainWindow(); // Add MainWindow listener mainWindow.addMainWindowListener(new MainWindowListener() { public void shutdown() { // Close all Chats. final Iterator chatRooms = SparkManager.getCha...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0807e1b794eeaa6c07d31a5c351697146a85040b/Workspace.java/clean/src/java/org/jivesoftware/spark/Workspace.java
workspacePane.setActiveButtonBold(true);
private Workspace() { MainWindow mainWindow = SparkManager.getMainWindow(); // Add MainWindow listener mainWindow.addMainWindowListener(new MainWindowListener() { public void shutdown() { // Close all Chats. final Iterator chatRooms = SparkManager.getCha...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0807e1b794eeaa6c07d31a5c351697146a85040b/Workspace.java/clean/src/java/org/jivesoftware/spark/Workspace.java
public void onComponentStateChange(boolean b) { view.onComponentStateChange(b); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/275dac348ef9abda7c33482582699efea0d0ed19/BrowserComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java
if ((0xa7ffe06000000000L & l) == 0L)
if ((0xa7ffec6000000000L & l) == 0L)
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 53; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/de189c90ed378866a49b63001cc676a626167e7d/WikiParserTokenManager.java/clean/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java
if ((0xa7ffe06000000000L & l) == 0L)
if ((0xa7ffec6000000000L & l) == 0L)
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 53; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/de189c90ed378866a49b63001cc676a626167e7d/WikiParserTokenManager.java/clean/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java
if ((0xa7ffe06000000000L & l) != 0L)
if ((0xa7ffec6000000000L & l) != 0L)
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 53; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/de189c90ed378866a49b63001cc676a626167e7d/WikiParserTokenManager.java/clean/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java
ForUpdate();
forUpdate();
final private void ForStatement() throws ParseException { jj_consume_token(FOR); jj_consume_token(LPAREN); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case ASSERT: case BOOLEAN: case BYTE: case CHAR: case DOUBLE: case FALSE: case FINAL: case FLOAT: case INT: case LONG: case NEW: case NULL...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/JavaParser.java/buggy/cobertura/src/de/kclee/clemens/javancss/JavaParser.java
_sFunction = "." + new String(getToken(1).image);
_sFunction = "." + getToken(1).image;
final private void MethodDeclarator() throws ParseException { _sFunction = "." + new String(getToken(1).image); Identifier(); FormalParameters(); _sFunction += _sParameter; label_20: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LBRACKET: break; default: jj_la1[45] = jj_gen;...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/JavaParser.java/buggy/cobertura/src/de/kclee/clemens/javancss/JavaParser.java
_sName = new String(getToken(0).image);
_sName = getToken(0).image;
final private void Name() throws ParseException { Identifier(); _sName = new String(getToken(0).image); label_25: while (true) { if (jj_2_15(2)) { } else { break label_25; } jj_consume_token(DOT); Identifier(); _sName += "." + (new String(getToken(0).image)); } }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/JavaParser.java/buggy/cobertura/src/de/kclee/clemens/javancss/JavaParser.java
_sName += "." + (new String(getToken(0).image));
_sName += "." + getToken(0).image;
final private void Name() throws ParseException { Identifier(); _sName = new String(getToken(0).image); label_25: while (true) { if (jj_2_15(2)) { } else { break label_25; } jj_consume_token(DOT); Identifier(); _sName += "." + (new String(getToken(0).image)); } }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/JavaParser.java/buggy/cobertura/src/de/kclee/clemens/javancss/JavaParser.java
_sPackage = (new String(_sName)) + ".";
_sPackage = _sName + ".";
final private void PackageDeclaration() throws ParseException { jj_consume_token(PACKAGE); Name(); jj_consume_token(SEMICOLON); getToken(0); getToken(0); _sPackage = (new String(_sName)) + "."; }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/JavaParser.java/buggy/cobertura/src/de/kclee/clemens/javancss/JavaParser.java
BreakStatement();
breakStatement();
final private void Statement() throws ParseException { _bReturn = false; if (jj_2_34(2)) { LabeledStatement(); } else { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LBRACE: Block(); break; case SEMICOLON: EmptyStatement(); break; default: jj_la1[104] = jj_gen; if (jj_...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/JavaParser.java/buggy/cobertura/src/de/kclee/clemens/javancss/JavaParser.java
ContinueStatement();
continueStatement();
final private void Statement() throws ParseException { _bReturn = false; if (jj_2_34(2)) { LabeledStatement(); } else { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LBRACE: Block(); break; case SEMICOLON: EmptyStatement(); break; default: jj_la1[104] = jj_gen; if (jj_...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/JavaParser.java/buggy/cobertura/src/de/kclee/clemens/javancss/JavaParser.java
ReturnStatement();
returnStatement();
final private void Statement() throws ParseException { _bReturn = false; if (jj_2_34(2)) { LabeledStatement(); } else { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LBRACE: Block(); break; case SEMICOLON: EmptyStatement(); break; default: jj_la1[104] = jj_gen; if (jj_...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/JavaParser.java/buggy/cobertura/src/de/kclee/clemens/javancss/JavaParser.java
_sName = (new String(getToken(0).image));
_sName = getToken(0).image;
final private void Type() throws ParseException { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case BOOLEAN: case BYTE: case CHAR: case DOUBLE: case FLOAT: case INT: case LONG: case SHORT: PrimitiveType(); _sName = (new String(getToken(0).image)); break; case ASSERT: case IDENTIFIER: ...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/JavaParser.java/buggy/cobertura/src/de/kclee/clemens/javancss/JavaParser.java
_sClass += new String(getToken(2).image);
_sClass += getToken(2).image;
final private void UnmodifiedClassDeclaration() throws ParseException { String sOldClass = _sClass; int oldFunctions = _functions; if (!_sClass.equals("")) { _sClass += "."; } _sClass += new String(getToken(2).image); jj_consume_token(CLASS); Identifier(); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { ca...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/JavaParser.java/buggy/cobertura/src/de/kclee/clemens/javancss/JavaParser.java
_sClass += new String(getToken(2).image);
_sClass += getToken(2).image;
final private void UnmodifiedInterfaceDeclaration() throws ParseException { String sOldClass = _sClass; int oldFunctions = _functions; if (!_sClass.equals("")) { _sClass += "."; } _sClass += new String(getToken(2).image); jj_consume_token(INTERFACE); Identifier(); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/JavaParser.java/buggy/cobertura/src/de/kclee/clemens/javancss/JavaParser.java
curChar = input_stream.BeginToken();
curChar = input_stream.beginToken();
public final Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop: for (;;) { try { curChar = input_stream.BeginToken(); } catch (java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; re...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/JavaParserTokenManager.java/buggy/cobertura/src/de/kclee/clemens/javancss/JavaParserTokenManager.java
curChar = input_stream.BeginToken();
curChar = input_stream.beginToken();
public final Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop: for (;;) { try { curChar = input_stream.BeginToken(); } catch (java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; re...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/JavaParserTokenManager.java/buggy/cobertura/src/de/kclee/clemens/javancss/JavaParserTokenManager.java
error_after = curPos <= 1 ? "" : input_stream.GetImage();
error_after = curPos <= 1 ? "" : input_stream.getImage();
public final Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop: for (;;) { try { curChar = input_stream.BeginToken(); } catch (java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; re...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/JavaParserTokenManager.java/buggy/cobertura/src/de/kclee/clemens/javancss/JavaParserTokenManager.java
error_after = curPos <= 1 ? "" : input_stream.GetImage();
error_after = curPos <= 1 ? "" : input_stream.getImage();
public final Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop: for (;;) { try { curChar = input_stream.BeginToken(); } catch (java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; re...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/JavaParserTokenManager.java/buggy/cobertura/src/de/kclee/clemens/javancss/JavaParserTokenManager.java
add(buildSliderPanel());
private void buildGUI(int sizeX, int sizeY, int sizeZ) { //add(buildDimsPanel(sizeX, sizeY, sizeZ), BorderLayout.WEST); add(buildTable(sizeX, sizeY, sizeZ)); add(buildSliderPanel()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b52b1735c990029c4d2115a33258acf4d3c82ae5/XYZNavigator.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/XYZNavigator.java
JPanel p = new JPanel(), field = new JPanel(), slider = new JPanel();
JPanel slider = new JPanel();
private JPanel buildSliderPanel() { JPanel p = new JPanel(), field = new JPanel(), slider = new JPanel(); slider.setLayout(null); slider.setOpaque(false); slider.setPreferredSize(DIM); slider.setSize(DIM); zSlider.setPreferredSize(DIM); zSlider.setBounds(0, 0, PANEL_WIDTH, PANEL_HEIGHT); slider.add(zSlider); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b52b1735c990029c4d2115a33258acf4d3c82ae5/XYZNavigator.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/XYZNavigator.java
JLabel current = new JLabel("Current Z: "); current.setForeground(NavigationPalette.STEELBLUE); field.add(current); field.add(zField); field.setAlignmentX(LEFT_ALIGNMENT); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(field); p.add(slider); return p;
return slider;
private JPanel buildSliderPanel() { JPanel p = new JPanel(), field = new JPanel(), slider = new JPanel(); slider.setLayout(null); slider.setOpaque(false); slider.setPreferredSize(DIM); slider.setSize(DIM); zSlider.setPreferredSize(DIM); zSlider.setBounds(0, 0, PANEL_WIDTH, PANEL_HEIGHT); slider.add(zSlider); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b52b1735c990029c4d2115a33258acf4d3c82ae5/XYZNavigator.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/XYZNavigator.java
JTable table = new TableComponent(1, 2);
JTable table = new TableComponent(2, 3);
private JPanel buildTable(int sizeX, int sizeY, int sizeZ) { JPanel p = new JPanel(); JTable table = new TableComponent(1, 2); tableLayout(table); table.setValueAt(buildDimsPanel(sizeX, sizeY, sizeZ), 0, 0); table.setValueAt(new JLabel(""), 0, 1); p.add(table); p.setOpaque(false); return p; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b52b1735c990029c4d2115a33258acf4d3c82ae5/XYZNavigator.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/XYZNavigator.java
table.setValueAt(new JLabel(""), 0, 1);
table.setValueAt(label, 0, 1); table.setValueAt(label, 0, 2); table.setRowHeight(1, ROW_HEIGHT_2); label = new JLabel("Current Z: "); label.setForeground(NavigationPalette.STEELBLUE); table.setValueAt(label, 1, 0); table.setValueAt(buildFieldPanel(), 1, 1); table.setValueAt(buildSliderPanel(), 1, 2);
private JPanel buildTable(int sizeX, int sizeY, int sizeZ) { JPanel p = new JPanel(); JTable table = new TableComponent(1, 2); tableLayout(table); table.setValueAt(buildDimsPanel(sizeX, sizeY, sizeZ), 0, 0); table.setValueAt(new JLabel(""), 0, 1); p.add(table); p.setOpaque(false); return p; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b52b1735c990029c4d2115a33258acf4d3c82ae5/XYZNavigator.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/XYZNavigator.java
private void initSlider(int sizeZ, int z)
private void initSlider(int maxZ, int z)
private void initSlider(int sizeZ, int z) { zSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeZ, z); zSlider.setToolTipText("Move the slider to navigate across Z stack"); zSlider.setMinorTickSpacing(1); zSlider.setMajorTickSpacing(10); zSlider.setPaintTicks(true); zSlider.setOpaque(false); Hashtable labelTable =...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b52b1735c990029c4d2115a33258acf4d3c82ae5/XYZNavigator.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/XYZNavigator.java
zSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeZ, z);
zSlider = new JSlider(JSlider.HORIZONTAL, 0, maxZ, z);
private void initSlider(int sizeZ, int z) { zSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeZ, z); zSlider.setToolTipText("Move the slider to navigate across Z stack"); zSlider.setMinorTickSpacing(1); zSlider.setMajorTickSpacing(10); zSlider.setPaintTicks(true); zSlider.setOpaque(false); Hashtable labelTable =...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b52b1735c990029c4d2115a33258acf4d3c82ae5/XYZNavigator.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/XYZNavigator.java
labelTable.put(new Integer(sizeZ), new JLabel(""+sizeZ));
labelTable.put(new Integer(maxZ), new JLabel(""+maxZ));
private void initSlider(int sizeZ, int z) { zSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeZ, z); zSlider.setToolTipText("Move the slider to navigate across Z stack"); zSlider.setMinorTickSpacing(1); zSlider.setMajorTickSpacing(10); zSlider.setPaintTicks(true); zSlider.setOpaque(false); Hashtable labelTable =...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b52b1735c990029c4d2115a33258acf4d3c82ae5/XYZNavigator.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/XYZNavigator.java
private void initTextField(int sizeZ, int z)
private void initTextField(int maxZ, int z)
private void initTextField(int sizeZ, int z) { zField = new JTextField(""+z, (""+sizeZ).length()); zField.setForeground(NavigationPalette.STEELBLUE); zField.setToolTipText("Enter a Z point"); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b52b1735c990029c4d2115a33258acf4d3c82ae5/XYZNavigator.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/XYZNavigator.java
zField = new JTextField(""+z, (""+sizeZ).length());
zField = new JTextField(""+z, (""+maxZ).length());
private void initTextField(int sizeZ, int z) { zField = new JTextField(""+z, (""+sizeZ).length()); zField.setForeground(NavigationPalette.STEELBLUE); zField.setToolTipText("Enter a Z point"); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b52b1735c990029c4d2115a33258acf4d3c82ae5/XYZNavigator.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/XYZNavigator.java
TableColumn column= columns.getColumn(0);
TableColumn column = columns.getColumn(0);
private void tableLayout(JTable table) { table.setTableHeader(null); table.setRowHeight(ROW_HEIGHT); table.setOpaque(false); table.setShowGrid(false); TableColumnModel columns = table.getColumnModel(); TableColumn column= columns.getColumn(0); column.setPreferredWidth(DEFAULT_WIDTH); column.setWidth(DEFAULT_WI...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b52b1735c990029c4d2115a33258acf4d3c82ae5/XYZNavigator.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/XYZNavigator.java
column = columns.getColumn(1); column.setPreferredWidth(DEFAULT_WIDTH); column.setWidth(DEFAULT_WIDTH); column = columns.getColumn(2); column.setPreferredWidth(WIDTH_THIRD); column.setWidth(WIDTH_THIRD);
private void tableLayout(JTable table) { table.setTableHeader(null); table.setRowHeight(ROW_HEIGHT); table.setOpaque(false); table.setShowGrid(false); TableColumnModel columns = table.getColumnModel(); TableColumn column= columns.getColumn(0); column.setPreferredWidth(DEFAULT_WIDTH); column.setWidth(DEFAULT_WI...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b52b1735c990029c4d2115a33258acf4d3c82ae5/XYZNavigator.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/XYZNavigator.java
protected RubyModule(IRuby runtime, RubyClass metaClass, RubyClass superClass, SinglyLinkedList parentCRef, String name) { super(runtime, metaClass); this.superClass = superClass; //this.parentModule = parentModule; setBaseName(name); // If no parent is passed in, it is ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
protected RubyModule(IRuby runtime, RubyClass metaClass, RubyClass superClass, SinglyLinkedList parentCRef, String name) { super(runtime, metaClass); this.superClass = superClass; //this.parentModule = parentModule; setBaseName(name); // If no parent is passed in, it is ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
final IRuby runtime = getRuntime();
final IRuby runtime = getRuntime();
private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
checkArgumentCount(args, 0, 0);
checkArgumentCount(args, 0, 0);
private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
IRubyObject variable = self.getInstanceVariable(variableName); return variable == null ? runtime.getNil() : variable;
IRubyObject variable = self.getInstanceVariable(variableName); return variable == null ? runtime.getNil() : variable;
private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
IRubyObject[] fargs = runtime.getCurrentContext().getFrameArgs(); if (fargs.length != 1) { throw runtime.newArgumentError("wrong # of arguments(" + fargs.length + "for 1)"); }
IRubyObject[] fargs = runtime.getCurrentContext().getFrameArgs();
private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
return self.setInstanceVariable(variableName, fargs[0]);
if (fargs.length != 1) { throw runtime.newArgumentError("wrong # of arguments(" + fargs.length + "for 1)"); } return self.setInstanceVariable(variableName, fargs[0]);
private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
checkArgumentCount(args, 0, 0);
checkArgumentCount(args, 0, 0);
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { checkArgumentCount(args, 0, 0); IRubyObject variable = self.getInstanceVariable(variableName); return variable == null ? runtime.getNil() : variable; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
IRubyObject variable = self.getInstanceVariable(variableName); return variable == null ? runtime.getNil() : variable;
IRubyObject variable = self.getInstanceVariable(variableName); return variable == null ? runtime.getNil() : variable;
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { checkArgumentCount(args, 0, 0); IRubyObject variable = self.getInstanceVariable(variableName); return variable == null ? runtime.getNil() : variable; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
IRubyObject[] fargs = runtime.getCurrentContext().getFrameArgs(); if (fargs.length != 1) { throw runtime.newArgumentError("wrong # of arguments(" + fargs.length + "for 1)"); }
IRubyObject[] fargs = runtime.getCurrentContext().getFrameArgs();
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { IRubyObject[] fargs = runtime.getCurrentContext().getFrameArgs(); if (fargs.length != 1) { throw runtime.newArgumentError("wrong # of arguments(" + fargs.length + "for 1)"); } return s...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
return self.setInstanceVariable(variableName, fargs[0]);
if (fargs.length != 1) { throw runtime.newArgumentError("wrong # of arguments(" + fargs.length + "for 1)"); } return self.setInstanceVariable(variableName, fargs[0]);
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { IRubyObject[] fargs = runtime.getCurrentContext().getFrameArgs(); if (fargs.length != 1) { throw runtime.newArgumentError("wrong # of arguments(" + fargs.length + "for 1)"); } return s...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
private void addCachedMethod(String name, ICallable method) { // Included modules modify the original 'included' modules class. Since multiple // classes can include the same module, we cannot cache in the original included module. if (!isIncluded()) { getMethods().put(name, method); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
getRuntime().getCacheMap().remove(name, existingMethod);
getRuntime().getCacheMap().remove(name, existingMethod);
public void addMethod(String name, ICallable method) { if (this == getRuntime().getObject()) { getRuntime().secure(4); } if (getRuntime().getSafeLevel() >= 4 && !isTaint()) { throw getRuntime().newSecurityError("Insecure: can't define method"); } testFrozen("...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
checkArgumentCount(args, 1, 2);
checkArgumentCount(args, 1, 2);
public IRubyObject attr(IRubyObject[] args) { checkArgumentCount(args, 1, 2); boolean writeable = args.length > 1 ? args[1].isTrue() : false; addAccessor(args[0].asSymbol(), true, writeable); return getRuntime().getNil(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
public IRubyObject attr(IRubyObject[] args) { checkArgumentCount(args, 1, 2); boolean writeable = args.length > 1 ? args[1].isTrue() : false; addAccessor(args[0].asSymbol(), true, writeable); return getRuntime().getNil(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
RubyModule realType = this.getNonIncludedClass();
RubyModule realType = this.getNonIncludedClass();
protected IRubyObject cloneMethods(RubyModule clone) { RubyModule realType = this.getNonIncludedClass(); for (Iterator iter = getMethods().entrySet().iterator(); iter.hasNext(); ) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
if (method.getImplementationClass() == realType) {
if (method.getImplementationClass() == realType) {
protected IRubyObject cloneMethods(RubyModule clone) { RubyModule realType = this.getNonIncludedClass(); for (Iterator iter = getMethods().entrySet().iterator(); iter.hasNext(); ) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
protected IRubyObject cloneMethods(RubyModule clone) { RubyModule realType = this.getNonIncludedClass(); for (Iterator iter = getMethods().entrySet().iterator(); iter.hasNext(); ) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
throw getRuntime().newNameError("wrong constant name " + name);
throw wrongConstantNameError(name);
public RubyBoolean const_defined(IRubyObject symbol) { String name = symbol.asSymbol(); if (!IdUtil.isConstant(name)) { throw getRuntime().newNameError("wrong constant name " + name); } return getRuntime().newBoolean(getConstantAt(name) != null); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
throw getRuntime().newNameError("wrong constant name " + name);
throw wrongConstantNameError(name);
public IRubyObject const_get(IRubyObject symbol) { String name = symbol.asSymbol(); if (!IdUtil.isConstant(name)) { throw getRuntime().newNameError("wrong constant name " + name); } return getConstant(name); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
throw getRuntime().newNameError("uninitialized constant " + getName() + "::" + name.asSymbol()); }
throw getRuntime().newNameError("uninitialized constant " + getName() + "::" + name.asSymbol(), "" + getName() + "::" + name.asSymbol()); }
public IRubyObject const_missing(IRubyObject name) { /* Uninitialized constant */ if (this != getRuntime().getObject()) { throw getRuntime().newNameError("uninitialized constant " + getName() + "::" + name.asSymbol()); } throw getRuntime().newNameError("uninitialized constant...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
throw getRuntime().newNameError("uninitialized constant " + name.asSymbol());
throw getRuntime().newNameError("uninitialized constant " + name.asSymbol(), name.asSymbol());
public IRubyObject const_missing(IRubyObject name) { /* Uninitialized constant */ if (this != getRuntime().getObject()) { throw getRuntime().newNameError("uninitialized constant " + getName() + "::" + name.asSymbol()); } throw getRuntime().newNameError("uninitialized constant...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
throw getRuntime().newNameError("wrong constant name " + name);
throw wrongConstantNameError(name);
public IRubyObject const_set(IRubyObject symbol, IRubyObject value) { String name = symbol.asSymbol(); if (!IdUtil.isConstant(name)) { throw getRuntime().newNameError("wrong constant name " + name); } return setConstant(name, value); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
return setConstant(name, value);
return setConstant(name, value);
public IRubyObject const_set(IRubyObject symbol, IRubyObject value) { String name = symbol.asSymbol(); if (!IdUtil.isConstant(name)) { throw getRuntime().newNameError("wrong constant name " + name); } return setConstant(name, value); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
public RubyArray constants() { ArrayList constantNames = new ArrayList(); RubyModule objectClass = getRuntime().getObject(); if (getRuntime().getClass("Module") == this) { for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) {
for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) {
public RubyArray constants() { ArrayList constantNames = new ArrayList(); RubyModule objectClass = getRuntime().getObject(); if (getRuntime().getClass("Module") == this) { for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
public RubyArray constants() { ArrayList constantNames = new ArrayList(); RubyModule objectClass = getRuntime().getObject(); if (getRuntime().getClass("Module") == this) { for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
public RubyArray constants() { ArrayList constantNames = new ArrayList(); RubyModule objectClass = getRuntime().getObject(); if (getRuntime().getClass("Module") == this) { for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
public RubyArray constants() { ArrayList constantNames = new ArrayList(); RubyModule objectClass = getRuntime().getObject(); if (getRuntime().getClass("Module") == this) { for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
public synchronized void defineAlias(String name, String oldName) { testFrozen("module"); if (oldName.equals(name)) { return; } if (this == getRuntime().getObject()) { getRuntime().secure(4); } ICallable method = searchMethod(oldName); if (metho...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
(isModule() ? "module" : "class") + " `" + getName() + "'");
(isModule() ? "module" : "class") + " `" + getName() + "'", oldName);
public synchronized void defineAlias(String name, String oldName) { testFrozen("module"); if (oldName.equals(name)) { return; } if (this == getRuntime().getObject()) { getRuntime().secure(4); } ICallable method = searchMethod(oldName); if (metho...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); }
IRubyObject type = getConstantAt(name);
public RubyClass defineClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof RubyClass)) { th...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
if (!(type instanceof RubyClass)) { throw getRuntime().newTypeError(name + " is not a class.");
if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof RubyClass)) { throw getRuntime().newTypeError(name + " is not a class.");
public RubyClass defineClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof RubyClass)) { th...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
throw getRuntime().newNameError(name + " is already defined."); } return (RubyClass) type;
throw getRuntime().newNameError(name + " is already defined.", name); } return (RubyClass) type;
public RubyClass defineClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof RubyClass)) { th...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
throw getRuntime().newNameError("bad constant name " + name);
throw getRuntime().newNameError("bad constant name " + name, name);
public void defineConstant(String name, IRubyObject value) { assert value != null; if (this == getRuntime().getClass("Class")) { getRuntime().secure(4); } if (!IdUtil.isConstant(name)) { throw getRuntime().newNameError("bad constant name " + name); } s...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
Visibility visibility = name.equals("initialize") ? Visibility.PRIVATE : Visibility.PUBLIC;
Visibility visibility = name.equals("initialize") ? Visibility.PRIVATE : Visibility.PUBLIC;
public void defineMethod(String name, Callback method) { Visibility visibility = name.equals("initialize") ? Visibility.PRIVATE : Visibility.PUBLIC; addMethod(name, new CallbackMethod(this, method, visibility)); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
public RubyModule defineModuleUnder(String name) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyModule) setConstant(name, getRuntime().defineModuleUnder(name, cref)); } if (!(type instanceof RubyModule)) { throw getRunt...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
return (RubyModule) setConstant(name, getRuntime().defineModuleUnder(name, cref));
return (RubyModule) setConstant(name, getRuntime().defineModuleUnder(name, cref));
public RubyModule defineModuleUnder(String name) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyModule) setConstant(name, getRuntime().defineModuleUnder(name, cref)); } if (!(type instanceof RubyModule)) { throw getRunt...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
throw getRuntime().newTypeError(name + " is not a module."); }
throw getRuntime().newTypeError(name + " is not a module."); }
public RubyModule defineModuleUnder(String name) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyModule) setConstant(name, getRuntime().defineModuleUnder(name, cref)); } if (!(type instanceof RubyModule)) { throw getRunt...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof R...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref));
return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref));
public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof R...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
throw getRuntime().newTypeError(name + " is not a class.");
throw getRuntime().newTypeError(name + " is not a class.");
public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof R...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof R...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
public IRubyObject define_method(IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } IRubyObject body; String name = args[0].asSymbol(); ICallable newMethod = null; ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
public IRubyObject define_method(IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } IRubyObject body; String name = args[0].asSymbol(); ICallable newMethod = null; ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java