rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
if (restArgs) { if (methodArgs.length < (args.length -1)) { throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); } } else { if (methodArgs.length != args.length) { throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); } } }
if (restArgs) { if (methodArgs.length < (args.length -1)) { throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); } } else { if (methodArgs.length != args.length) { throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); } } }
protected void testArgsCount(Ruby ruby, RubyObject[] methodArgs) { if (restArgs) { if (methodArgs.length < (args.length -1)) { throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); } } else { if (methodArgs.length != args.length) { throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); } } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/ReflectionCallbackMethod.java/clean/org/jruby/core/ReflectionCallbackMethod.java
if (view.isLensVisible())
if (view.isLensVisible()) {
public void setZoomFactor(double factor) { if (factor != -1) { if (factor > ZoomAction.MAX_ZOOM_FACTOR || factor < ZoomAction.MIN_ZOOM_FACTOR) throw new IllegalArgumentException("The zoom factor is value " + "between "+ZoomAction.MIN_ZOOM_FACTOR+" and "+ ZoomAction.MAX_ZOOM_FACTOR); model.setZoomFitToWindow(false); model.setZoomFactor(factor); } else { model.setZoomFitToWindow(true); model.setZoomFactor(factor); } if (view.isLensVisible()) view.setImageZoomFactor((float) model.getZoomFactor()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5aacd98a1cfb2219e218c87eed17b5a0f0e9738a/ImViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerComponent.java
view.scrollLens(); }
public void setZoomFactor(double factor) { if (factor != -1) { if (factor > ZoomAction.MAX_ZOOM_FACTOR || factor < ZoomAction.MIN_ZOOM_FACTOR) throw new IllegalArgumentException("The zoom factor is value " + "between "+ZoomAction.MIN_ZOOM_FACTOR+" and "+ ZoomAction.MAX_ZOOM_FACTOR); model.setZoomFitToWindow(false); model.setZoomFactor(factor); } else { model.setZoomFitToWindow(true); model.setZoomFactor(factor); } if (view.isLensVisible()) view.setImageZoomFactor((float) model.getZoomFactor()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5aacd98a1cfb2219e218c87eed17b5a0f0e9738a/ImViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerComponent.java
} catch (Exception e) { throw new IOException("Unicode conversion error: " + e);
private void writeChars(char[] cbuf, int offset, int len) throws IOException { try { if (_asciiHack) { // cheat while (len > 0) { int max = (len < _BSIZE) ? len : _BSIZE; for (int i = 0; i < max; i++) { _bbuf[i] = (byte) cbuf[i + offset]; } _out.write(_bbuf,0,max); len -= max; offset += max; } } else { // slow, but correct int nextC = 0; while (nextC < _cpos) { nextC += _c2b.convert(cbuf,nextC,_cpos,_bbuf,0,_BSIZE); _out.write(_bbuf, 0, _c2b.nextByteIndex()); } } } catch (Exception e) { throw new IOException("Unicode conversion error: " + e); } finally { _c2b.reset(); } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/1ea887f7b197431dd85ca8259382755c7915dc7c/FastWriter.java/clean/webmacro/src/org/webmacro/FastWriter.java
final Long userId = CurrentDetails.getOwner().getId();
final Long userId = securitySystem.currentUserId();
public RenderingDef retrieveRndSettings(final long pixId) { final Long userId = CurrentDetails.getOwner().getId(); return (RenderingDef) iQuery.findByQuery( " select rdef from RenderingDef rdef where " + " rdef.pixels.id = :pixid and rdef.details.owner.id = :ownerid", new Parameters().addLong("pixid",pixId).addLong("ownerid",userId)); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dc8dde051a1e2b716514b3964c9222ce006ebea9/PixelsImpl.java/buggy/components/server/src/ome/logic/PixelsImpl.java
objectSpaceModule.defineModuleFunction("undefine_finalizer", callbackFactory.getOptSingletonMethod("undefine_finalizer"));
public static RubyModule createObjectSpaceModule(IRuby runtime) { RubyModule objectSpaceModule = runtime.defineModule("ObjectSpace"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyObjectSpace.class); objectSpaceModule.defineModuleFunction("each_object", callbackFactory.getOptSingletonMethod("each_object")); objectSpaceModule.defineModuleFunction("garbage_collect", callbackFactory.getSingletonMethod("garbage_collect")); objectSpaceModule.defineModuleFunction("define_finalizer", callbackFactory.getOptSingletonMethod("define_finalizer")); return objectSpaceModule; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/RubyObjectSpace.java/clean/src/org/jruby/RubyObjectSpace.java
return recv;
return recv;
public static IRubyObject define_finalizer(IRubyObject recv, IRubyObject[] args) { // Put in to fake tempfile.rb out. return recv; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/RubyObjectSpace.java/clean/src/org/jruby/RubyObjectSpace.java
File file = new File(baseDirectory.toURI().resolve(configurationFile));
File file = new File(configurationFile); if (!file.isAbsolute()) { file = new File(baseDirectory.toURI().resolve(configurationFile)); }
public Main loadMain() { if (serverBaseDirectory == null) { throw new NullPointerException("serverBaseDirectory is null"); } File baseDirectory = new File(serverBaseDirectory); if (!baseDirectory.isDirectory()) { throw new IllegalArgumentException("serverBaseDirectory is not a directory: " + serverBaseDirectory); } if (configurationFile == null) { throw new NullPointerException("configurationFile is null"); } ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(SpringBootstrap.class.getClassLoader()); try { // add our property editors into the system if (propertyEditorPaths != null && !propertyEditorPaths.isEmpty()) { List editorSearchPath = new LinkedList(Arrays.asList(PropertyEditorManager.getEditorSearchPath())); editorSearchPath.addAll(propertyEditorPaths); PropertyEditorManager.setEditorSearchPath((String[]) editorSearchPath.toArray(new String[editorSearchPath.size()])); } // set the server base directory system property System.setProperty("xbean.base.dir", baseDirectory.getAbsolutePath()); // load the configuration file SpringApplicationContext factory; File file = new File(baseDirectory.toURI().resolve(configurationFile)); if (file.canRead()) { try { // configuration file is on the local file system factory = new FileSystemXmlApplicationContext(file.toURL().toString()); } catch (MalformedURLException e) { throw new FatalStartupError("Error creating url for bootstrap file", e); } } else { // assume it is a classpath resource factory = new ClassPathXmlApplicationContext(configurationFile); } // get the main service from the configuration file String[] names = factory.getBeanNamesForType(Main.class); Main main = null; if (names.length == 0) { throw new FatalStartupError("No bean of type: " + Main.class.getName() + " found in the bootstrap.xml", 10); } main = (Main) factory.getBean(names[0]); return main; } finally { Thread.currentThread().setContextClassLoader(oldClassLoader); } }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4362a23ef99e4f3fe94eb6a276d2403731f61fab/SpringBootstrap.java/buggy/server/src/main/java/org/xbean/server/spring/main/SpringBootstrap.java
SetState(DEFAULT);
SetState(DEFAULT);
final public MapBuilder CurlyMap() throws ParseException { MapBuilder map; jj_consume_token(LBRACE); map = MapArgList(); SetState(DEFAULT); jj_consume_token(RBRACE); SetState(WM); {if (true) return map;} throw new Error("Missing return statement in function"); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
SetState(WM);
SetState(WM);
final public MapBuilder CurlyMap() throws ParseException { MapBuilder map; jj_consume_token(LBRACE); map = MapArgList(); SetState(DEFAULT); jj_consume_token(RBRACE); SetState(WM); {if (true) return map;} throw new Error("Missing return statement in function"); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
case WS: case NEWLINE:
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[38] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[39] = jj_gen; break label_5; } } break; default: jj_la1[40] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_6: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[41] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[42] = jj_gen; break label_6; } } break; default: jj_la1[43] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_7: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[44] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[45] = jj_gen; break label_7; } } break; default: jj_la1[46] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_8: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[47] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[48] = jj_gen; break label_8; } } break; default: jj_la1[49] = jj_gen; ; } map.put(key, value); label_9: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA: ; break; default: jj_la1[50] = jj_gen; break label_9; } jj_consume_token(COMMA); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[51] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[52] = jj_gen; break label_10; } } break; default: jj_la1[53] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_11: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[54] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[55] = jj_gen; break label_11; } } break; default: jj_la1[56] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_12: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[57] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[58] = jj_gen; break label_12; } } break; default: jj_la1[59] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_13: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[60] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[61] = jj_gen; break label_13; } } break; default: jj_la1[62] = jj_gen; ; } map.put(key, value); } break; default: jj_la1[63] = jj_gen; ; } {if (true) return map;} throw new Error("Missing return statement in function"); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
key = Expression();
jj_consume_token(COLON);
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[38] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[39] = jj_gen; break label_5; } } break; default: jj_la1[40] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_6: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[41] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[42] = jj_gen; break label_6; } } break; default: jj_la1[43] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_7: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[44] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[45] = jj_gen; break label_7; } } break; default: jj_la1[46] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_8: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[47] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[48] = jj_gen; break label_8; } } break; default: jj_la1[49] = jj_gen; ; } map.put(key, value); label_9: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA: ; break; default: jj_la1[50] = jj_gen; break label_9; } jj_consume_token(COMMA); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[51] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[52] = jj_gen; break label_10; } } break; default: jj_la1[53] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_11: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[54] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[55] = jj_gen; break label_11; } } break; default: jj_la1[56] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_12: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[57] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[58] = jj_gen; break label_12; } } break; default: jj_la1[59] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_13: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[60] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[61] = jj_gen; break label_13; } } break; default: jj_la1[62] = jj_gen; ; } map.put(key, value); } break; default: jj_la1[63] = jj_gen; ; } {if (true) return map;} throw new Error("Missing return statement in function"); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
jj_consume_token(COLON);
value = Expression();
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[38] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[39] = jj_gen; break label_5; } } break; default: jj_la1[40] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_6: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[41] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[42] = jj_gen; break label_6; } } break; default: jj_la1[43] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_7: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[44] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[45] = jj_gen; break label_7; } } break; default: jj_la1[46] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_8: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[47] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[48] = jj_gen; break label_8; } } break; default: jj_la1[49] = jj_gen; ; } map.put(key, value); label_9: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA: ; break; default: jj_la1[50] = jj_gen; break label_9; } jj_consume_token(COMMA); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[51] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[52] = jj_gen; break label_10; } } break; default: jj_la1[53] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_11: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[54] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[55] = jj_gen; break label_11; } } break; default: jj_la1[56] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_12: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[57] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[58] = jj_gen; break label_12; } } break; default: jj_la1[59] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_13: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[60] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[61] = jj_gen; break label_13; } } break; default: jj_la1[62] = jj_gen; ; } map.put(key, value); } break; default: jj_la1[63] = jj_gen; ; } {if (true) return map;} throw new Error("Missing return statement in function"); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_8: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[47] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[48] = jj_gen; break label_8; } } break; default: jj_la1[49] = jj_gen; ; } map.put(key, value); label_9:
map.put(key, value); label_8:
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[38] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[39] = jj_gen; break label_5; } } break; default: jj_la1[40] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_6: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[41] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[42] = jj_gen; break label_6; } } break; default: jj_la1[43] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_7: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[44] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[45] = jj_gen; break label_7; } } break; default: jj_la1[46] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_8: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[47] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[48] = jj_gen; break label_8; } } break; default: jj_la1[49] = jj_gen; ; } map.put(key, value); label_9: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA: ; break; default: jj_la1[50] = jj_gen; break label_9; } jj_consume_token(COMMA); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[51] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[52] = jj_gen; break label_10; } } break; default: jj_la1[53] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_11: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[54] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[55] = jj_gen; break label_11; } } break; default: jj_la1[56] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_12: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[57] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[58] = jj_gen; break label_12; } } break; default: jj_la1[59] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_13: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[60] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[61] = jj_gen; break label_13; } } break; default: jj_la1[62] = jj_gen; ; } map.put(key, value); } break; default: jj_la1[63] = jj_gen; ; } {if (true) return map;} throw new Error("Missing return statement in function"); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
break label_9; } jj_consume_token(COMMA);
; } key = Expression();
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[38] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[39] = jj_gen; break label_5; } } break; default: jj_la1[40] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_6: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[41] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[42] = jj_gen; break label_6; } } break; default: jj_la1[43] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_7: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[44] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[45] = jj_gen; break label_7; } } break; default: jj_la1[46] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_8: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[47] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[48] = jj_gen; break label_8; } } break; default: jj_la1[49] = jj_gen; ; } map.put(key, value); label_9: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA: ; break; default: jj_la1[50] = jj_gen; break label_9; } jj_consume_token(COMMA); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[51] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[52] = jj_gen; break label_10; } } break; default: jj_la1[53] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_11: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[54] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[55] = jj_gen; break label_11; } } break; default: jj_la1[56] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_12: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[57] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[58] = jj_gen; break label_12; } } break; default: jj_la1[59] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_13: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[60] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[61] = jj_gen; break label_13; } } break; default: jj_la1[62] = jj_gen; ; } map.put(key, value); } break; default: jj_la1[63] = jj_gen; ; } {if (true) return map;} throw new Error("Missing return statement in function"); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
key = Expression();
jj_consume_token(COLON);
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[38] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[39] = jj_gen; break label_5; } } break; default: jj_la1[40] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_6: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[41] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[42] = jj_gen; break label_6; } } break; default: jj_la1[43] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_7: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[44] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[45] = jj_gen; break label_7; } } break; default: jj_la1[46] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_8: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[47] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[48] = jj_gen; break label_8; } } break; default: jj_la1[49] = jj_gen; ; } map.put(key, value); label_9: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA: ; break; default: jj_la1[50] = jj_gen; break label_9; } jj_consume_token(COMMA); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[51] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[52] = jj_gen; break label_10; } } break; default: jj_la1[53] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_11: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[54] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[55] = jj_gen; break label_11; } } break; default: jj_la1[56] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_12: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[57] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[58] = jj_gen; break label_12; } } break; default: jj_la1[59] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_13: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[60] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[61] = jj_gen; break label_13; } } break; default: jj_la1[62] = jj_gen; ; } map.put(key, value); } break; default: jj_la1[63] = jj_gen; ; } {if (true) return map;} throw new Error("Missing return statement in function"); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
jj_consume_token(COLON);
value = Expression();
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[38] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[39] = jj_gen; break label_5; } } break; default: jj_la1[40] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_6: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[41] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[42] = jj_gen; break label_6; } } break; default: jj_la1[43] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_7: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[44] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[45] = jj_gen; break label_7; } } break; default: jj_la1[46] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_8: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[47] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[48] = jj_gen; break label_8; } } break; default: jj_la1[49] = jj_gen; ; } map.put(key, value); label_9: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA: ; break; default: jj_la1[50] = jj_gen; break label_9; } jj_consume_token(COMMA); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[51] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[52] = jj_gen; break label_10; } } break; default: jj_la1[53] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_11: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[54] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[55] = jj_gen; break label_11; } } break; default: jj_la1[56] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_12: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[57] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[58] = jj_gen; break label_12; } } break; default: jj_la1[59] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_13: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[60] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[61] = jj_gen; break label_13; } } break; default: jj_la1[62] = jj_gen; ; } map.put(key, value); } break; default: jj_la1[63] = jj_gen; ; } {if (true) return map;} throw new Error("Missing return statement in function"); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_13: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[60] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[61] = jj_gen; break label_13; } } break; default: jj_la1[62] = jj_gen; ; }
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[38] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[39] = jj_gen; break label_5; } } break; default: jj_la1[40] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_6: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[41] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[42] = jj_gen; break label_6; } } break; default: jj_la1[43] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_7: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[44] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[45] = jj_gen; break label_7; } } break; default: jj_la1[46] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_8: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[47] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[48] = jj_gen; break label_8; } } break; default: jj_la1[49] = jj_gen; ; } map.put(key, value); label_9: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA: ; break; default: jj_la1[50] = jj_gen; break label_9; } jj_consume_token(COMMA); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[51] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[52] = jj_gen; break label_10; } } break; default: jj_la1[53] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_11: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[54] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[55] = jj_gen; break label_11; } } break; default: jj_la1[56] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_12: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[57] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[58] = jj_gen; break label_12; } } break; default: jj_la1[59] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_13: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[60] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[61] = jj_gen; break label_13; } } break; default: jj_la1[62] = jj_gen; ; } map.put(key, value); } break; default: jj_la1[63] = jj_gen; ; } {if (true) return map;} throw new Error("Missing return statement in function"); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
jj_la1[63] = jj_gen;
jj_la1[60] = jj_gen;
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[38] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[39] = jj_gen; break label_5; } } break; default: jj_la1[40] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_6: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[41] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[42] = jj_gen; break label_6; } } break; default: jj_la1[43] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_7: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[44] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[45] = jj_gen; break label_7; } } break; default: jj_la1[46] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_8: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[47] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[48] = jj_gen; break label_8; } } break; default: jj_la1[49] = jj_gen; ; } map.put(key, value); label_9: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA: ; break; default: jj_la1[50] = jj_gen; break label_9; } jj_consume_token(COMMA); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[51] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[52] = jj_gen; break label_10; } } break; default: jj_la1[53] = jj_gen; ; } key = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_11: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[54] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[55] = jj_gen; break label_11; } } break; default: jj_la1[56] = jj_gen; ; } jj_consume_token(COLON); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_12: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[57] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[58] = jj_gen; break label_12; } } break; default: jj_la1[59] = jj_gen; ; } value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_13: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[60] = jj_gen; jj_consume_token(-1); throw new ParseException(); } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: ; break; default: jj_la1[61] = jj_gen; break label_13; } } break; default: jj_la1[62] = jj_gen; ; } map.put(key, value); } break; default: jj_la1[63] = jj_gen; ; } {if (true) return map;} throw new Error("Missing return statement in function"); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
jj_la1_0 = new int[] {0x40000000,0xc0000000,0x40000000,0x80000000,0x40000000,0x80000000,0x40000000,0xc0000000,0xc0000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x0,0x0,0x100000,0x0,0x700000,0x600000,0x700000,0x600000,0x3000000,0x3100000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0x0,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xff108000,0x40000000,0x40000000,0x0,0x40000000,0x40000000,0x7f108000,0x40000000,0x40000000,0x0,0x40000000,0x40000000,0x40100000,0x0,0x0,0x40000000,0x40000000,0x40000000,0x3f108000,0x40000000,0x0,0x40000000,0x40000000,0x0,0x40000000,0x0,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000,0x100000,0xe20800,0x620800,0xd20800,0xf20800,0xf26800,0x6000,0xf26800,0x4000,0xf29800,0x9000,0xf29800,0xf2f800,0xf26800,0x6000,0xf26800,0x4000,0x9000,0x729801,0x2000,0xf2f800,0xf000,0xf2f800,};
jj_la1_0 = new int[] {0x40000000,0xc0000000,0x40000000,0x80000000,0x40000000,0x80000000,0x40000000,0xc0000000,0xc0000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x0,0x0,0x100000,0x0,0x700000,0x600000,0x700000,0x600000,0x3000000,0x3100000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0x0,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0x3f108000,0xc0000000,0xc0000000,0xc0000000,0x40000000,0x40000000,0x0,0x40000000,0x40000000,0x7f108000,0x40000000,0x40000000,0x0,0x40000000,0x40000000,0x40100000,0x0,0x0,0x40000000,0x40000000,0x40000000,0x3f108000,0x40000000,0x0,0x40000000,0x40000000,0x0,0x40000000,0x0,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000,0x100000,0xe20800,0x620800,0xd20800,0xf20800,0xf26800,0x6000,0xf26800,0x4000,0xf29800,0x9000,0xf29800,0xf2f800,0xf26800,0x6000,0xf26800,0x4000,0x9000,0x729801,0x2000,0xf2f800,0xf000,0xf2f800,};
private static void jj_la1_0() { jj_la1_0 = new int[] {0x40000000,0xc0000000,0x40000000,0x80000000,0x40000000,0x80000000,0x40000000,0xc0000000,0xc0000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x0,0x0,0x100000,0x0,0x700000,0x600000,0x700000,0x600000,0x3000000,0x3100000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0x0,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xc0000000,0xff108000,0x40000000,0x40000000,0x0,0x40000000,0x40000000,0x7f108000,0x40000000,0x40000000,0x0,0x40000000,0x40000000,0x40100000,0x0,0x0,0x40000000,0x40000000,0x40000000,0x3f108000,0x40000000,0x0,0x40000000,0x40000000,0x0,0x40000000,0x0,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000,0x100000,0xe20800,0x620800,0xd20800,0xf20800,0xf26800,0x6000,0xf26800,0x4000,0xf29800,0x9000,0xf29800,0xf2f800,0xf26800,0x6000,0xf26800,0x4000,0x9000,0x729801,0x2000,0xf2f800,0xf000,0xf2f800,}; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
jj_la1_1 = new int[] {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x400000,0x1,0x0,0x400001,0x2000000,0x2000000,0x4000000,0x4000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x100000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x884005,0x0,0x0,0x100000,0x0,0x0,0x884005,0x0,0x0,0x100000,0x0,0x0,0x0,0x1,0x1,0x0,0x0,0x0,0x884005,0x0,0x18000,0x0,0x0,0x6000,0x0,0x1fc0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,};
jj_la1_1 = new int[] {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x400000,0x1,0x0,0x400001,0x2000000,0x2000000,0x4000000,0x4000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x100000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x884005,0x0,0x0,0x0,0x0,0x0,0x100000,0x0,0x0,0x884005,0x0,0x0,0x100000,0x0,0x0,0x0,0x1,0x1,0x0,0x0,0x0,0x884005,0x0,0x18000,0x0,0x0,0x6000,0x0,0x1fc0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,};
private static void jj_la1_1() { jj_la1_1 = new int[] {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x400000,0x1,0x0,0x400001,0x2000000,0x2000000,0x4000000,0x4000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x100000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x884005,0x0,0x0,0x100000,0x0,0x0,0x884005,0x0,0x0,0x100000,0x0,0x0,0x0,0x1,0x1,0x0,0x0,0x0,0x884005,0x0,0x18000,0x0,0x0,0x6000,0x0,0x1fc0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,}; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
_log = _broker.getLog("directive");
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { _broker = bc.getBroker(); // BeanConf object is created by the init method when this directive // is registered by the DirectiveProvider beanConf = (BeanConf)_broker.getBrokerLocal("BeanDirective.Conf"); if (beanConf == null){ throw new BuildException( "Error building the #bean directive. The directive has not been properly initialized!"); } try { target = (Variable) builder.getArg(BEAN_TARGET, bc); } catch (ClassCastException e) { throw new NotVariableBuildException(myDescr.name, e); } targetName = target.getName(); _className = (String)builder.getArg(BEAN_CLASS_NAME, bc); _class = classForName(_className); // check if bean is declared as static // this implies global scope and no constructor invocation isStaticClass = (builder.getArg(BEAN_TYPE_STATIC) != null); if (isStaticClass) scope = BEAN_SCOPE_GLOBAL; else { scope = getScope(builder, bc); // initArgs is only valid for non-static beans initArgObj = builder.getArg(BEAN_INITARGS_VAL); if (initArgObj instanceof Builder) initArgObj = ((Builder)initArgObj).build(bc); } onNewBlock = (Block)builder.getArg(BEAN_ON_NEW_BLOCK, bc); if (DEBUG) System.err.println("DBG: #bean, target="+target +", className="+_className+", scope="+scope +", isStaticClass="+isStaticClass+", initArgs="+initArgObj); return this; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/db7f6c77c50a7decbf2a693e201e2e672bf2e415/BeanDirective.java/buggy/webmacro/src/org/webmacro/directive/BeanDirective.java
if (DEBUG) System.err.println("DBG: #bean, target="+target +", className="+_className+", scope="+scope +", isStaticClass="+isStaticClass+", initArgs="+initArgObj);
_log.debug("BeanDirective, target="+target +", className="+_className+", scope="+scope +", isStaticClass="+isStaticClass+", initArgs="+initArgObj);
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { _broker = bc.getBroker(); // BeanConf object is created by the init method when this directive // is registered by the DirectiveProvider beanConf = (BeanConf)_broker.getBrokerLocal("BeanDirective.Conf"); if (beanConf == null){ throw new BuildException( "Error building the #bean directive. The directive has not been properly initialized!"); } try { target = (Variable) builder.getArg(BEAN_TARGET, bc); } catch (ClassCastException e) { throw new NotVariableBuildException(myDescr.name, e); } targetName = target.getName(); _className = (String)builder.getArg(BEAN_CLASS_NAME, bc); _class = classForName(_className); // check if bean is declared as static // this implies global scope and no constructor invocation isStaticClass = (builder.getArg(BEAN_TYPE_STATIC) != null); if (isStaticClass) scope = BEAN_SCOPE_GLOBAL; else { scope = getScope(builder, bc); // initArgs is only valid for non-static beans initArgObj = builder.getArg(BEAN_INITARGS_VAL); if (initArgObj instanceof Builder) initArgObj = ((Builder)initArgObj).build(bc); } onNewBlock = (Block)builder.getArg(BEAN_ON_NEW_BLOCK, bc); if (DEBUG) System.err.println("DBG: #bean, target="+target +", className="+_className+", scope="+scope +", isStaticClass="+isStaticClass+", initArgs="+initArgObj); return this; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/db7f6c77c50a7decbf2a693e201e2e672bf2e415/BeanDirective.java/buggy/webmacro/src/org/webmacro/directive/BeanDirective.java
if (DEBUG){ System.err.println("DBG: #bean - impliedPackages: " + bCfg.impliedPackages); System.err.println("DBG: #bean - allowedPackages: " + bCfg.allowedPackages); }
Log log = b.getLog("directive"); log.debug("BeanDirective initialization - impliedPackages: " + bCfg.impliedPackages); log.debug("BeanDirective initialization - allowedPackages: " + bCfg.allowedPackages);
public static void init(Broker b){ // get configuration parameters synchronized (b){ BeanConf bCfg = new BeanConf(b); b.setBrokerLocal("BeanDirective.Conf", bCfg); if (DEBUG){ System.err.println("DBG: #bean - impliedPackages: " + bCfg.impliedPackages); System.err.println("DBG: #bean - allowedPackages: " + bCfg.allowedPackages); } } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/db7f6c77c50a7decbf2a693e201e2e672bf2e415/BeanDirective.java/buggy/webmacro/src/org/webmacro/directive/BeanDirective.java
throw new PropertyException("#bean usage error: session scope is only valid with servlets!");
PropertyException e = new PropertyException( "#bean usage error: session scope is only valid with servlets!"); _broker.getEvaluationExceptionHandler().evaluate( target, context, e);
public void write(FastWriter out, Context context) throws PropertyException, IOException { Map globalBeans = BeanConf.globalBeans; Map appBeans = beanConf.appBeans; boolean isNew = false; try { while (initArgObj instanceof Macro) initArgObj = ((Macro) initArgObj).evaluate(context); // store init args in array if (initArgObj == null || initArgObj.getClass().isArray()){ initArgs = (Object[])initArgObj; } else { initArgs = new Object[1]; initArgs[0] = initArgObj; } Object o = null; Class c = null; switch (scope){ case BEAN_SCOPE_GLOBAL: synchronized (globalBeans){ o = globalBeans.get(targetName); if (o == null){ if (isStaticClass){ c = context.getBroker().classForName(_className); o = new org.webmacro.engine.StaticClassWrapper(c); } else { //c = Class.forName(_className); //o = c.newInstance(); o = instantiate(_className, initArgs); } isNew = true; globalBeans.put(targetName,o); } } break; case BEAN_SCOPE_APPLICATION: synchronized (appBeans){ o = appBeans.get(targetName); if (o == null){ o = instantiate(_className, initArgs); isNew = true; appBeans.put(targetName, o); } } break; case BEAN_SCOPE_SESSION: javax.servlet.http.HttpSession session = (javax.servlet.http.HttpSession)context.getProperty("Session"); //if (context instanceof WebContext){ if (session != null){ synchronized(session){ o = session.getAttribute(targetName); if (o == null){ o = instantiate(_className, initArgs); isNew = true; session.setAttribute(targetName, o); } } } else { throw new PropertyException("#bean usage error: session scope is only valid with servlets!"); } break; default: // make "page" the default scope //case BEAN_SCOPE_PAGE: // NOTE: page beans always overwrite anything in the context // with the same name o = instantiate(_className, initArgs); isNew = true; if (o != null){ Class[] paramTypes = { Context.class }; try { java.lang.reflect.Method m = o.getClass().getMethod("init", paramTypes); if (m != null){ Object[] args = { context }; m.invoke(o, args); } } catch (Exception e){ // ignore } } break; } if (DEBUG) System.err.println("#bean: Class " + _className + " loaded."); target.setValue(context, o); } catch (PropertyException e) { if (DEBUG) System.err.println("#bean: Class " + _className + " failed: " + e); this._log.error("#bean: Class " + _className + " failed.", e); throw e; } catch (Exception e) { String errorText = "#bean: Unable to load bean " + target + " of type " + _className; context.getBroker().getLog("engine").error(errorText, e); writeWarning(errorText, context, out); } if (isNew && onNewBlock != null) onNewBlock.write(out, context); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/db7f6c77c50a7decbf2a693e201e2e672bf2e415/BeanDirective.java/buggy/webmacro/src/org/webmacro/directive/BeanDirective.java
if (DEBUG) System.err.println("#bean: Class " + _className + " loaded.");
_log.debug("BeanDirective: Class " + _className + " loaded.");
public void write(FastWriter out, Context context) throws PropertyException, IOException { Map globalBeans = BeanConf.globalBeans; Map appBeans = beanConf.appBeans; boolean isNew = false; try { while (initArgObj instanceof Macro) initArgObj = ((Macro) initArgObj).evaluate(context); // store init args in array if (initArgObj == null || initArgObj.getClass().isArray()){ initArgs = (Object[])initArgObj; } else { initArgs = new Object[1]; initArgs[0] = initArgObj; } Object o = null; Class c = null; switch (scope){ case BEAN_SCOPE_GLOBAL: synchronized (globalBeans){ o = globalBeans.get(targetName); if (o == null){ if (isStaticClass){ c = context.getBroker().classForName(_className); o = new org.webmacro.engine.StaticClassWrapper(c); } else { //c = Class.forName(_className); //o = c.newInstance(); o = instantiate(_className, initArgs); } isNew = true; globalBeans.put(targetName,o); } } break; case BEAN_SCOPE_APPLICATION: synchronized (appBeans){ o = appBeans.get(targetName); if (o == null){ o = instantiate(_className, initArgs); isNew = true; appBeans.put(targetName, o); } } break; case BEAN_SCOPE_SESSION: javax.servlet.http.HttpSession session = (javax.servlet.http.HttpSession)context.getProperty("Session"); //if (context instanceof WebContext){ if (session != null){ synchronized(session){ o = session.getAttribute(targetName); if (o == null){ o = instantiate(_className, initArgs); isNew = true; session.setAttribute(targetName, o); } } } else { throw new PropertyException("#bean usage error: session scope is only valid with servlets!"); } break; default: // make "page" the default scope //case BEAN_SCOPE_PAGE: // NOTE: page beans always overwrite anything in the context // with the same name o = instantiate(_className, initArgs); isNew = true; if (o != null){ Class[] paramTypes = { Context.class }; try { java.lang.reflect.Method m = o.getClass().getMethod("init", paramTypes); if (m != null){ Object[] args = { context }; m.invoke(o, args); } } catch (Exception e){ // ignore } } break; } if (DEBUG) System.err.println("#bean: Class " + _className + " loaded."); target.setValue(context, o); } catch (PropertyException e) { if (DEBUG) System.err.println("#bean: Class " + _className + " failed: " + e); this._log.error("#bean: Class " + _className + " failed.", e); throw e; } catch (Exception e) { String errorText = "#bean: Unable to load bean " + target + " of type " + _className; context.getBroker().getLog("engine").error(errorText, e); writeWarning(errorText, context, out); } if (isNew && onNewBlock != null) onNewBlock.write(out, context); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/db7f6c77c50a7decbf2a693e201e2e672bf2e415/BeanDirective.java/buggy/webmacro/src/org/webmacro/directive/BeanDirective.java
if (DEBUG) System.err.println("#bean: Class " + _className + " failed: " + e); this._log.error("#bean: Class " + _className + " failed.", e); throw e;
this._broker.getEvaluationExceptionHandler().evaluate(target, context, e);
public void write(FastWriter out, Context context) throws PropertyException, IOException { Map globalBeans = BeanConf.globalBeans; Map appBeans = beanConf.appBeans; boolean isNew = false; try { while (initArgObj instanceof Macro) initArgObj = ((Macro) initArgObj).evaluate(context); // store init args in array if (initArgObj == null || initArgObj.getClass().isArray()){ initArgs = (Object[])initArgObj; } else { initArgs = new Object[1]; initArgs[0] = initArgObj; } Object o = null; Class c = null; switch (scope){ case BEAN_SCOPE_GLOBAL: synchronized (globalBeans){ o = globalBeans.get(targetName); if (o == null){ if (isStaticClass){ c = context.getBroker().classForName(_className); o = new org.webmacro.engine.StaticClassWrapper(c); } else { //c = Class.forName(_className); //o = c.newInstance(); o = instantiate(_className, initArgs); } isNew = true; globalBeans.put(targetName,o); } } break; case BEAN_SCOPE_APPLICATION: synchronized (appBeans){ o = appBeans.get(targetName); if (o == null){ o = instantiate(_className, initArgs); isNew = true; appBeans.put(targetName, o); } } break; case BEAN_SCOPE_SESSION: javax.servlet.http.HttpSession session = (javax.servlet.http.HttpSession)context.getProperty("Session"); //if (context instanceof WebContext){ if (session != null){ synchronized(session){ o = session.getAttribute(targetName); if (o == null){ o = instantiate(_className, initArgs); isNew = true; session.setAttribute(targetName, o); } } } else { throw new PropertyException("#bean usage error: session scope is only valid with servlets!"); } break; default: // make "page" the default scope //case BEAN_SCOPE_PAGE: // NOTE: page beans always overwrite anything in the context // with the same name o = instantiate(_className, initArgs); isNew = true; if (o != null){ Class[] paramTypes = { Context.class }; try { java.lang.reflect.Method m = o.getClass().getMethod("init", paramTypes); if (m != null){ Object[] args = { context }; m.invoke(o, args); } } catch (Exception e){ // ignore } } break; } if (DEBUG) System.err.println("#bean: Class " + _className + " loaded."); target.setValue(context, o); } catch (PropertyException e) { if (DEBUG) System.err.println("#bean: Class " + _className + " failed: " + e); this._log.error("#bean: Class " + _className + " failed.", e); throw e; } catch (Exception e) { String errorText = "#bean: Unable to load bean " + target + " of type " + _className; context.getBroker().getLog("engine").error(errorText, e); writeWarning(errorText, context, out); } if (isNew && onNewBlock != null) onNewBlock.write(out, context); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/db7f6c77c50a7decbf2a693e201e2e672bf2e415/BeanDirective.java/buggy/webmacro/src/org/webmacro/directive/BeanDirective.java
String errorText = "#bean: Unable to load bean " + target + " of type " + _className; context.getBroker().getLog("engine").error(errorText, e);
String errorText = "BeanDirective: Unable to load bean " + target + " of type " + _className; _log.error(errorText, e);
public void write(FastWriter out, Context context) throws PropertyException, IOException { Map globalBeans = BeanConf.globalBeans; Map appBeans = beanConf.appBeans; boolean isNew = false; try { while (initArgObj instanceof Macro) initArgObj = ((Macro) initArgObj).evaluate(context); // store init args in array if (initArgObj == null || initArgObj.getClass().isArray()){ initArgs = (Object[])initArgObj; } else { initArgs = new Object[1]; initArgs[0] = initArgObj; } Object o = null; Class c = null; switch (scope){ case BEAN_SCOPE_GLOBAL: synchronized (globalBeans){ o = globalBeans.get(targetName); if (o == null){ if (isStaticClass){ c = context.getBroker().classForName(_className); o = new org.webmacro.engine.StaticClassWrapper(c); } else { //c = Class.forName(_className); //o = c.newInstance(); o = instantiate(_className, initArgs); } isNew = true; globalBeans.put(targetName,o); } } break; case BEAN_SCOPE_APPLICATION: synchronized (appBeans){ o = appBeans.get(targetName); if (o == null){ o = instantiate(_className, initArgs); isNew = true; appBeans.put(targetName, o); } } break; case BEAN_SCOPE_SESSION: javax.servlet.http.HttpSession session = (javax.servlet.http.HttpSession)context.getProperty("Session"); //if (context instanceof WebContext){ if (session != null){ synchronized(session){ o = session.getAttribute(targetName); if (o == null){ o = instantiate(_className, initArgs); isNew = true; session.setAttribute(targetName, o); } } } else { throw new PropertyException("#bean usage error: session scope is only valid with servlets!"); } break; default: // make "page" the default scope //case BEAN_SCOPE_PAGE: // NOTE: page beans always overwrite anything in the context // with the same name o = instantiate(_className, initArgs); isNew = true; if (o != null){ Class[] paramTypes = { Context.class }; try { java.lang.reflect.Method m = o.getClass().getMethod("init", paramTypes); if (m != null){ Object[] args = { context }; m.invoke(o, args); } } catch (Exception e){ // ignore } } break; } if (DEBUG) System.err.println("#bean: Class " + _className + " loaded."); target.setValue(context, o); } catch (PropertyException e) { if (DEBUG) System.err.println("#bean: Class " + _className + " failed: " + e); this._log.error("#bean: Class " + _className + " failed.", e); throw e; } catch (Exception e) { String errorText = "#bean: Unable to load bean " + target + " of type " + _className; context.getBroker().getLog("engine").error(errorText, e); writeWarning(errorText, context, out); } if (isNew && onNewBlock != null) onNewBlock.write(out, context); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/db7f6c77c50a7decbf2a693e201e2e672bf2e415/BeanDirective.java/buggy/webmacro/src/org/webmacro/directive/BeanDirective.java
return super.callIndexed(index, args);
public IRubyObject callIndexed(int index, IRubyObject[] args) { switch (index) { case ThreadDefinition.ABORT_ON_EXCEPTION : return abort_on_exception(); case ThreadDefinition.ABORT_ON_EXCEPTION_SET : return abort_on_exception_set(args[0]); case ThreadDefinition.AREF : return aref(args[0]); case ThreadDefinition.ASET : return aset(args[0], args[1]); case ThreadDefinition.IS_KEY : return has_key(args[0]); case ThreadDefinition.IS_ALIVE : return is_alive(); case ThreadDefinition.JOIN : return join(); case ThreadDefinition.PRIORITY : return priority(); case ThreadDefinition.PRIORITY_SET : return priority_set(args[0]); case ThreadDefinition.RAISE : return raise(args[0]); case ThreadDefinition.STATUS : return status(); } return super.callIndexed(index, args); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/dc7ce748a0710f6824ce88e4621f4479beb195fc/ThreadClass.java/clean/src/org/jruby/ThreadClass.java
SparkManager.getConnection().addPacketListener(new PacketListener() { public void processPacket(final Packet packet) { try { if (customList.contains(StringUtils.parseBareAddress(packet.getFrom()))) { cancelledNotification(packet.getFrom(), ""); } } catch (Exception e) { Log.error(e); } } }, new PacketTypeFilter(Message.class));
MessageEventRequestListener messageEventRequestListener = new ChatMessageEventRequestListener(); SparkManager.getMessageEventManager(). addMessageEventRequestListener(messageEventRequestListener);
private ChatManager() { chatContainer = new ChatContainer(); // Add a Message Handler SparkManager.getMessageEventManager().addMessageEventNotificationListener(this); SparkManager.getConnection().addPacketListener(new PacketListener() { public void processPacket(final Packet packet) { try { if (customList.contains(StringUtils.parseBareAddress(packet.getFrom()))) { cancelledNotification(packet.getFrom(), ""); } } catch (Exception e) { Log.error(e); } } }, new PacketTypeFilter(Message.class)); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0bc7db8cc68c7433cd601f93a8d06f275e576e91/ChatManager.java/buggy/src/java/org/jivesoftware/spark/ChatManager.java
final ContactList contactList = SparkManager.getWorkspace().getContactList();
ContactList contactList = SparkManager.getWorkspace().getContactList();
public void run() { final ContactList contactList = SparkManager.getWorkspace().getContactList(); ChatRoom chatRoom = null; try { chatRoom = getChatContainer().getChatRoom(StringUtils.parseBareAddress(from)); if (chatRoom != null && chatRoom instanceof ChatRoomImpl) { ((ChatRoomImpl)chatRoom).showTyping(true); } } catch (ChatRoomNotFoundException e) { } contactList.setIconFor(from, SparkRes.getImageIcon(SparkRes.SMALL_MESSAGE_EDIT_IMAGE)); customList.add(StringUtils.parseBareAddress(from)); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0bc7db8cc68c7433cd601f93a8d06f275e576e91/ChatManager.java/buggy/src/java/org/jivesoftware/spark/ChatManager.java
((ChatRoomImpl)chatRoom).showTyping(true);
((ChatRoomImpl)chatRoom).showTyping(false);
public void run() { final ContactList contactList = SparkManager.getWorkspace().getContactList(); ChatRoom chatRoom = null; try { chatRoom = getChatContainer().getChatRoom(StringUtils.parseBareAddress(from)); if (chatRoom != null && chatRoom instanceof ChatRoomImpl) { ((ChatRoomImpl)chatRoom).showTyping(true); } } catch (ChatRoomNotFoundException e) { } contactList.setIconFor(from, SparkRes.getImageIcon(SparkRes.SMALL_MESSAGE_EDIT_IMAGE)); customList.add(StringUtils.parseBareAddress(from)); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0bc7db8cc68c7433cd601f93a8d06f275e576e91/ChatManager.java/buggy/src/java/org/jivesoftware/spark/ChatManager.java
contactList.setIconFor(from, SparkRes.getImageIcon(SparkRes.SMALL_MESSAGE_EDIT_IMAGE)); customList.add(StringUtils.parseBareAddress(from));
contactList.useDefaults(from); customList.remove(StringUtils.parseBareAddress(from));
public void run() { final ContactList contactList = SparkManager.getWorkspace().getContactList(); ChatRoom chatRoom = null; try { chatRoom = getChatContainer().getChatRoom(StringUtils.parseBareAddress(from)); if (chatRoom != null && chatRoom instanceof ChatRoomImpl) { ((ChatRoomImpl)chatRoom).showTyping(true); } } catch (ChatRoomNotFoundException e) { } contactList.setIconFor(from, SparkRes.getImageIcon(SparkRes.SMALL_MESSAGE_EDIT_IMAGE)); customList.add(StringUtils.parseBareAddress(from)); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0bc7db8cc68c7433cd601f93a8d06f275e576e91/ChatManager.java/buggy/src/java/org/jivesoftware/spark/ChatManager.java
buffer.close();
if (buffer != null) buffer.close();
public void load() { rwl.writeLock().lock(); try { errorIfNullPixels(); /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); renderer = new Renderer(pixMetaSrv, pixelsObj, rendDefObj, buffer); try { buffer.close(); } catch (IOException e) { e.printStackTrace(); throw new ResourceError(e.getMessage()); } } finally { rwl.writeLock().unlock(); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/050d26f0ffe472a85912c497dd53df40527ed6cd/RenderingBean.java/clean/components/server/src/ome/services/RenderingBean.java
public Classification(Integer attributeId, Float confidence, Boolean valid, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.Category category, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.confidence = confidence; this.valid = valid; this.image = image; this.category = category; this.moduleExecution = moduleExecution;
public Classification() {
public Classification(Integer attributeId, Float confidence, Boolean valid, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.Category category, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.confidence = confidence; this.valid = valid; this.image = image; this.category = category; this.moduleExecution = moduleExecution; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Classification.java/clean/components/common/src/org/openmicroscopy/omero/model/Classification.java
public org.openmicroscopy.omero.model.Category getCategory() {
public Category getCategory() {
public org.openmicroscopy.omero.model.Category getCategory() { return this.category; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Classification.java/clean/components/common/src/org/openmicroscopy/omero/model/Classification.java
public org.openmicroscopy.omero.model.Image getImage() {
public Image getImage() {
public org.openmicroscopy.omero.model.Image getImage() { return this.image; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Classification.java/clean/components/common/src/org/openmicroscopy/omero/model/Classification.java
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() {
public ModuleExecution getModuleExecution() {
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Classification.java/clean/components/common/src/org/openmicroscopy/omero/model/Classification.java
public void setCategory(org.openmicroscopy.omero.model.Category category) {
public void setCategory(Category category) {
public void setCategory(org.openmicroscopy.omero.model.Category category) { this.category = category; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Classification.java/clean/components/common/src/org/openmicroscopy/omero/model/Classification.java
public void setImage(org.openmicroscopy.omero.model.Image image) {
public void setImage(Image image) {
public void setImage(org.openmicroscopy.omero.model.Image image) { this.image = image; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Classification.java/clean/components/common/src/org/openmicroscopy/omero/model/Classification.java
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) {
public void setModuleExecution(ModuleExecution moduleExecution) {
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Classification.java/clean/components/common/src/org/openmicroscopy/omero/model/Classification.java
c._locale = _locale;
protected Object clone() { Context c = null; try { c = (Context) super.clone(); } catch (CloneNotSupportedException e) { // Object supports clone } c._localState = null; c._beanState = null; c._state = 0; c._locals = null; c._bean = null; return c; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/9dc4324fb914abcbf2ec188e4eb77b1bf503f330/Context.java/buggy/webmacro/src/org/webmacro/Context.java
public static IRubyObject autoload(IRubyObject recv, IRubyObject symbol, final IRubyObject file) {
public static IRubyObject autoload(final IRubyObject recv, IRubyObject symbol, final IRubyObject file) {
public static IRubyObject autoload(IRubyObject recv, IRubyObject symbol, final IRubyObject file) { final LoadService loadService = recv.getRuntime().getLoadService(); loadService.addAutoload(symbol.asSymbol(), new IAutoloadMethod() { /** * @see org.jruby.runtime.load.IAutoloadMethod#load(IRuby, String) */ public IRubyObject load(IRuby runtime, String name) { loadService.require(file.toString()); return runtime.getObject().getConstant(name); } }); return recv; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/07909c1bbecaed91018759825231df5f1506ecbb/RubyKernel.java/clean/src/org/jruby/RubyKernel.java
return runtime.getObject().getConstant(name);
return ((RubyModule)recv).getConstant(name);
public static IRubyObject autoload(IRubyObject recv, IRubyObject symbol, final IRubyObject file) { final LoadService loadService = recv.getRuntime().getLoadService(); loadService.addAutoload(symbol.asSymbol(), new IAutoloadMethod() { /** * @see org.jruby.runtime.load.IAutoloadMethod#load(IRuby, String) */ public IRubyObject load(IRuby runtime, String name) { loadService.require(file.toString()); return runtime.getObject().getConstant(name); } }); return recv; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/07909c1bbecaed91018759825231df5f1506ecbb/RubyKernel.java/clean/src/org/jruby/RubyKernel.java
return runtime.getObject().getConstant(name);
return ((RubyModule)recv).getConstant(name);
public IRubyObject load(IRuby runtime, String name) { loadService.require(file.toString()); return runtime.getObject().getConstant(name); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/07909c1bbecaed91018759825231df5f1506ecbb/RubyKernel.java/clean/src/org/jruby/RubyKernel.java
/*if (args[0].equals("-version")) { printVersion(); } else*/ if (args[0].equals("-help")) {
int lNbArg = args.length; for (int i = 0; i < lNbArg; i++) { if (args[i].equals("-h") || args[i].equals("-help"))
public static void main (String args[]) { System.out.println("WARNING this is an ALPHA version of JRuby!!!"); System.out.println("--------------------------------------------"); System.out.println(); if (args.length == 0) { printUsage(); } else { /*if (args[0].equals("-version")) { printVersion(); } else*/ if (args[0].equals("-help")) { printUsage(); } else { runInterpreter(args[0]); } } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e433dd46c4f08c54b8f43864c41cbd733cb83561/Main.java/clean/org/jruby/Main.java
} else { runInterpreter(args[0]);
else if (args[i].equals("-e")) { if (i++ >= lNbArg) { System.err.println("invalid argument " + i); System.err.println(" -e must be followed by an expression to evaluate"); printUsage(); } else runInterpreter(args[i], "command line " + i); } else { runInterpreterOnFile(args[0]);
public static void main (String args[]) { System.out.println("WARNING this is an ALPHA version of JRuby!!!"); System.out.println("--------------------------------------------"); System.out.println(); if (args.length == 0) { printUsage(); } else { /*if (args[0].equals("-version")) { printVersion(); } else*/ if (args[0].equals("-help")) { printUsage(); } else { runInterpreter(args[0]); } } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e433dd46c4f08c54b8f43864c41cbd733cb83561/Main.java/clean/org/jruby/Main.java
}
public static void main (String args[]) { System.out.println("WARNING this is an ALPHA version of JRuby!!!"); System.out.println("--------------------------------------------"); System.out.println(); if (args.length == 0) { printUsage(); } else { /*if (args[0].equals("-version")) { printVersion(); } else*/ if (args[0].equals("-help")) { printUsage(); } else { runInterpreter(args[0]); } } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e433dd46c4f08c54b8f43864c41cbd733cb83561/Main.java/clean/org/jruby/Main.java
System.out.println("Usage: java -jar jruby.jar rubyfile.rb");
System.out.println("Usage: java -jar jruby.jar [switches] [rubyfile.rb] [arguments]"); System.out.println(" -e 'command' one line of script. Several -e's allowed. Omit [programfile]");
protected static void printUsage() { System.out.println("Usage: java -jar jruby.jar rubyfile.rb"); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e433dd46c4f08c54b8f43864c41cbd733cb83561/Main.java/clean/org/jruby/Main.java
protected static void runInterpreter(String fileName) { File rubyFile = new File(fileName); if (!rubyFile.canRead()) { System.out.println("Cannot read Rubyfile: \"" + fileName + "\""); } else { try { StringBuffer sb = new StringBuffer((int)rubyFile.length()); BufferedReader br = new BufferedReader(new FileReader(rubyFile)); String line; while ((line = br.readLine()) != null) { sb.append(line).append('\n'); } br.close(); Ruby ruby = new Ruby(); parse p = new parse(ruby); RubyString rs = RubyString.m_newString(ruby, sb.toString()); ruby.getInterpreter().eval(ruby.getObjectClass(), p.rb_compile_string(fileName, rs, 0)); } catch (IOException ioExcptn) { System.out.println("Cannot read Rubyfile: \"" + fileName + "\""); System.out.println("IOEception: " + ioExcptn.getMessage()); } }
protected static void runInterpreter(String iString2Eval, String iFileName) { Ruby ruby = new Ruby(); parse p = new parse(ruby); RubyString rs = RubyString.m_newString(ruby, iString2Eval); ruby.getInterpreter().eval(ruby.getObjectClass(), p.rb_compile_string(iFileName, rs, 0));
protected static void runInterpreter(String fileName) { File rubyFile = new File(fileName); if (!rubyFile.canRead()) { System.out.println("Cannot read Rubyfile: \"" + fileName + "\""); } else { try { StringBuffer sb = new StringBuffer((int)rubyFile.length()); BufferedReader br = new BufferedReader(new FileReader(rubyFile)); String line; while ((line = br.readLine()) != null) { sb.append(line).append('\n'); } br.close(); // Initialize Runtime Ruby ruby = new Ruby(); // Initialize Parser parse p = new parse(ruby); // Parse and interpret file RubyString rs = RubyString.m_newString(ruby, sb.toString()); ruby.getInterpreter().eval(ruby.getObjectClass(), p.rb_compile_string(fileName, rs, 0)); } catch (IOException ioExcptn) { System.out.println("Cannot read Rubyfile: \"" + fileName + "\""); System.out.println("IOEception: " + ioExcptn.getMessage()); } } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e433dd46c4f08c54b8f43864c41cbd733cb83561/Main.java/clean/org/jruby/Main.java
iUpdate.commit();
public void saveCurrentSettings() { rwl.writeLock().lock(); try { errorIfNullRenderingDef(); pixMetaSrv.saveRndSettings(rendDefObj); } finally { rwl.writeLock().unlock(); } iUpdate.flush(); iUpdate.commit(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/19d01118f726c7723dd8da679e9c4eb422aad850/RenderingBean.java/clean/components/server/src/ome/services/RenderingBean.java
return c.list();
return this.params.getFilter().isUnique() ? c.uniqueResult() : c.list();
protected Object runQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria((Class) value(CLASS)); for (QueryParameter qp : params.queryParameters()) { if ( ! qp.name.equals( CLASS ) ) { c.add(Expression.eq(qp.name,qp.value)); // TODO checks for type. } } return c.list(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/59b11883b95c926d6706e6d30b4cdb898088683c/ClassQuerySource.java/clean/components/server/src/ome/services/query/ClassQuerySource.java
if (c == '{') {
if (c == '{') {
private Node parseExpressionString(Node list, int closeQuote) { int c; int brace = -1; RubyObject ss; Node node; int nest; c = nextc(); switch (c) { case '$' : case '@' : case '{' : break; default : tokadd('#'); pushback(c); return list; } ss = RubyString.newString(ruby, tok(), toklen()); if (list == null) { list = nf.newDStr(ss); } else if (toklen() > 0) { ph.list_append(list, nf.newStr(ss)); } newtok(); fetch_id : for (;;) { switch (c) { case '$' : tokadd('$'); c = nextc(); if (c == -1) { return Node.MINUS_ONE; } switch (c) { case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } pushback(c); break fetch_id; case '&' : case '+' : case '_' : case '~' : case '*' : case '$' : case '?' : case '!' : case '@' : case ',' : case '.' : case '=' : case ':' : case '<' : case '>' : case '\\' : //refetch: tokadd(c); break fetch_id; default : if (c == closeQuote) { ph.list_append(list, nf.newStr(RubyString.newString(ruby, "#$"))); pushback(c); newtok(); return list; } switch (c) { case '\"' : case '/' : case '\'' : case '`' : //goto refetch; tokadd(c); break fetch_id; } if (!isIdentifierChar(c)) { yyerror("bad global variable in string"); newtok(); return list; } } while (isIdentifierChar(c)) { tokadd(c); c = nextc(); } pushback(c); break; case '@' : tokadd(c); c = nextc(); if (c == '@') { tokadd(c); c = nextc(); } while (isIdentifierChar(c)) { tokadd(c); c = nextc(); } pushback(c); break; case '{' : if (c == '{') { brace = '}'; } nest = 0; do { loop_again : for (;;) { c = nextc(); switch (c) { case -1 : if (nest > 0) { yyerror("bad substitution in string"); newtok(); return list; } return Node.MINUS_ONE; case '}' : if (c == brace) { if (nest == 0) { break; } nest--; } tokadd(c); continue loop_again; case '\\' : c = nextc(); if (c == -1) { return Node.MINUS_ONE; } if (c == closeQuote) { tokadd(c); } else { tokadd('\\'); tokadd(c); } break; case '{' : if (brace != -1) { nest++; } case '\"' : case '/' : case '`' : if (c == closeQuote) { pushback(c); ph.list_append(list, nf.newStr(RubyString.newString(ruby, "#"))); ph.rb_warning("bad substitution in string"); ph.list_append(list, nf.newStr(RubyString.newString(ruby, tok(), toklen()))); newtok(); return list; } default : tokadd(c); break; } break loop_again; } } while (c != brace); } break; } //fetch_id: node = nf.newEVStr(tok(), toklen()); ph.list_append(list, node); newtok(); return list; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java
Thread.currentThread().setContextClassLoader(classLoader);
public void preprocess(SpringApplicationContext applicationContext, XmlBeanDefinitionReader reader, Document document) { // determine the classLoader ClassLoader classLoader; NodeList classpathElements = document.getDocumentElement().getElementsByTagName("classpath"); if (classpathElements.getLength() < 1) { classLoader = getClass().getClassLoader(); } else if (classpathElements.getLength() > 1) { throw new FatalBeanException("Expected only classpath element but found " + classpathElements.getLength()); } else { Element classpathElement = (Element) classpathElements.item(0); // build the classpath List classpath = new ArrayList(); NodeList locations = classpathElement.getElementsByTagName("location"); for (int i = 0; i < locations.getLength(); i++) { Element locationElement = (Element) locations.item(i); String location = ((Text) locationElement.getFirstChild()).getData().trim(); classpath.add(location); } // convert the paths to URLS URL[] urls = new URL[classpath.size()]; for (ListIterator iterator = classpath.listIterator(); iterator.hasNext();) { String location = (String) iterator.next(); urls[iterator.previousIndex()] = repository.getResource(location); } // create the classloader classLoader = new MultiParentClassLoader(applicationContext.getDisplayName(), urls, getClass().getClassLoader()); // remove the classpath element so Spring doesn't get confused document.getDocumentElement().removeChild(classpathElement); } // assign the class loader to the xml reader and the application context reader.setBeanClassLoader(classLoader); applicationContext.setClassLoader(classLoader); }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/9fc9ccec99c02b7779ac87689a92ab2b268f0af2/ClassLoaderXmlPreprocessor.java/buggy/server/src/main/java/org/xbean/server/spring/configuration/ClassLoaderXmlPreprocessor.java
throw getRuntime().newTypeError("wrong argument type " + args[0].getType().getName() + " (expected Proc/RubyMethod)");
throw getRuntime().newTypeError("wrong argument type " + args[0].getType().getName() + " (expected Proc/Method)");
public IRubyObject define_method(IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } String name = args[0].asSymbol(); IRubyObject body; ICallable newMethod; Visibility visibility = getRuntime().getCurrentContext().getCurrentVisibility(); if (visibility.isModuleFunction()) { visibility = Visibility.PRIVATE; } if (args.length == 1) { body = getRuntime().newProc(); newMethod = new ProcMethod(this, (RubyProc)body, visibility); } else if (args[1].isKindOf(getRuntime().getClass("Method"))) { body = args[1]; newMethod = new MethodMethod(this, ((RubyMethod)body).unbind(), visibility); } else if (args[1].isKindOf(getRuntime().getClass("Proc"))) { body = args[1]; newMethod = new ProcMethod(this, (RubyProc)body, visibility); } else { throw getRuntime().newTypeError("wrong argument type " + args[0].getType().getName() + " (expected Proc/RubyMethod)"); } addMethod(name, newMethod); RubySymbol symbol = RubySymbol.newSymbol(getRuntime(), name); if (getRuntime().getCurrentContext().getPreviousVisibility().isModuleFunction()) { getSingletonClass().addMethod(name, new WrapperCallable(getSingletonClass(), newMethod, Visibility.PUBLIC)); callMethod("singleton_method_added", symbol); } callMethod("method_added", symbol); return body; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/22347d0716e4477e47b1106e1cfec4b84364a038/RubyModule.java/clean/src/org/jruby/RubyModule.java
out.println(namespace.replace(":", "\\:") + "=" + NAMESPACE_HANDLER);
out.println(namespace.replaceAll(":", "\\\\:") + "=" + NAMESPACE_HANDLER);
public void generate(NamespaceMapping namespaceMapping) throws IOException { String namespace = namespaceMapping.getNamespace(); if (namespace == null) { return; } File file = new File(metaInfDir, NamespaceHelper.createDiscoveryPathName(namespace)); file.getParentFile().mkdirs(); log.log("Generating META-INF properties file: " + file + " for namespace: " + namespace); PrintWriter out = new PrintWriter(new FileWriter(file)); try { generatePropertiesFile(out, namespaceMapping.getElements()); } finally { out.close(); } // Generate spring 2.0 mapping file = new File(metaInfDir, "META-INF/spring.handlers"); log.log("Generating Spring 2.0 handler mapping: " + file + " for namespace: " + namespace); out = new PrintWriter(new FileWriter(file)); try { out.println(namespace.replace(":", "\\:") + "=" + NAMESPACE_HANDLER); } finally { out.close(); } }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/d8f8672e113549ebb864bc748c4897a6cb04359a/XmlMetadataGenerator.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/XmlMetadataGenerator.java
if(con != null){ con.connect(); }
private XMPPConnection getConnection() throws XMPPException { LocalPreferences localPref = SettingsManager.getLocalPreferences(); XMPPConnection con; // Get connection int port = localPref.getXmppPort(); String serverName = getServer(); int checkForPort = serverName.indexOf(":"); if (checkForPort != -1) { String portString = serverName.substring(checkForPort + 1); if (ModelUtil.hasLength(portString)) { // Set new port. port = Integer.valueOf(portString); } } boolean useSSL = localPref.isSSL(); boolean hostPortConfigured = localPref.isHostAndPortConfigured(); if (useSSL) { if (!hostPortConfigured) { con = new XMPPConnection(serverName); } else { con = new XMPPConnection(localPref.getXmppHost(), port, serverName); } } else { if (!hostPortConfigured) { con = new XMPPConnection(serverName); } else { con = new XMPPConnection(localPref.getXmppHost(), port, serverName); } } return con; }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/caf8563cc06ab68f1c251d173654deb6b4b1a77c/AccountCreationWizard.java/clean/src/java/org/jivesoftware/AccountCreationWizard.java
loadService.registerBuiltin("jruby", new JRubyLibrary());
private void initLibraries() { loadService = new LoadService(this); loadService.registerBuiltin("java", new BuiltinScript("javasupport")); loadService.registerBuiltin("socket", new SocketLibrary()); loadService.registerBuiltin("fcntl", new BuiltinScript("fcntl")); loadService.registerBuiltin("etc", new BuiltinScript("etc")); loadService.registerBuiltin("rbconfig.rb", new RbConfigLibrary()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/Ruby.java/clean/src/org/jruby/Ruby.java
return Collections.EMPTY_LIST;
return EMPTY_LIST;
public List childNodes() { return Collections.EMPTY_LIST; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/ZSuperNode.java/buggy/src/org/jruby/ast/ZSuperNode.java
int width = AnalysisControls.WIDTH_MIN;
int w = AnalysisControls.WIDTH_MIN;
private void setTableLayout() { int width = AnalysisControls.WIDTH_MIN; if (numColumns > AnalysisControls.MAX) width = AnalysisControls.WIDTH_MAX; setRowHeight(width); TableColumn col; for (int i = 0; i < numColumns; i++) { col = getColumnModel().getColumn(i); col.setMinWidth(width); col.setMaxWidth(width); col.setPreferredWidth(width); } int w = width*numColumns, h = width*numRows; if (w > MAX_WIDTH) w = MAX_WIDTH; if (h > MAX_HEIGHT) h = MAX_HEIGHT; setPreferredScrollableViewportSize(new Dimension(w, h)); setDefaultRenderer(JComponent.class, new TableComponentCellRenderer()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3db37517e6873d11567ee5822e769ab058e1abed/ColoredCellTable.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/pane/ColoredCellTable.java
width = AnalysisControls.WIDTH_MAX; setRowHeight(width);
w = AnalysisControls.WIDTH_MAX; setRowHeight(w);
private void setTableLayout() { int width = AnalysisControls.WIDTH_MIN; if (numColumns > AnalysisControls.MAX) width = AnalysisControls.WIDTH_MAX; setRowHeight(width); TableColumn col; for (int i = 0; i < numColumns; i++) { col = getColumnModel().getColumn(i); col.setMinWidth(width); col.setMaxWidth(width); col.setPreferredWidth(width); } int w = width*numColumns, h = width*numRows; if (w > MAX_WIDTH) w = MAX_WIDTH; if (h > MAX_HEIGHT) h = MAX_HEIGHT; setPreferredScrollableViewportSize(new Dimension(w, h)); setDefaultRenderer(JComponent.class, new TableComponentCellRenderer()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3db37517e6873d11567ee5822e769ab058e1abed/ColoredCellTable.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/pane/ColoredCellTable.java
col.setMinWidth(width); col.setMaxWidth(width); col.setPreferredWidth(width);
col.setMinWidth(w); col.setMaxWidth(w); col.setPreferredWidth(w);
private void setTableLayout() { int width = AnalysisControls.WIDTH_MIN; if (numColumns > AnalysisControls.MAX) width = AnalysisControls.WIDTH_MAX; setRowHeight(width); TableColumn col; for (int i = 0; i < numColumns; i++) { col = getColumnModel().getColumn(i); col.setMinWidth(width); col.setMaxWidth(width); col.setPreferredWidth(width); } int w = width*numColumns, h = width*numRows; if (w > MAX_WIDTH) w = MAX_WIDTH; if (h > MAX_HEIGHT) h = MAX_HEIGHT; setPreferredScrollableViewportSize(new Dimension(w, h)); setDefaultRenderer(JComponent.class, new TableComponentCellRenderer()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3db37517e6873d11567ee5822e769ab058e1abed/ColoredCellTable.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/pane/ColoredCellTable.java
int w = width*numColumns, h = width*numRows; if (w > MAX_WIDTH) w = MAX_WIDTH; if (h > MAX_HEIGHT) h = MAX_HEIGHT; setPreferredScrollableViewportSize(new Dimension(w, h));
height = AnalysisControls.HEADER+w*(numRows+1); width = AnalysisControls.HEADER+w*(numColumns+1);
private void setTableLayout() { int width = AnalysisControls.WIDTH_MIN; if (numColumns > AnalysisControls.MAX) width = AnalysisControls.WIDTH_MAX; setRowHeight(width); TableColumn col; for (int i = 0; i < numColumns; i++) { col = getColumnModel().getColumn(i); col.setMinWidth(width); col.setMaxWidth(width); col.setPreferredWidth(width); } int w = width*numColumns, h = width*numRows; if (w > MAX_WIDTH) w = MAX_WIDTH; if (h > MAX_HEIGHT) h = MAX_HEIGHT; setPreferredScrollableViewportSize(new Dimension(w, h)); setDefaultRenderer(JComponent.class, new TableComponentCellRenderer()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3db37517e6873d11567ee5822e769ab058e1abed/ColoredCellTable.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/pane/ColoredCellTable.java
public RubyArray coerce(IRubyObject num) { RubyNumeric other = numericValue(num);
public RubyArray coerce(RubyNumeric other) {
public RubyArray coerce(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyArray.newArray(getRuntime(), newFloat(getRuntime(), other.getDoubleValue()), this); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java
return new FloatDefinition(ruby).getType();
RubyClass result = ruby.defineClass("Float", ruby.getClasses().getNumericClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); result.defineMethod("+", callbackFactory.getMethod(RubyFloat.class, "op_plus", RubyNumeric.class)); result.defineMethod("-", callbackFactory.getMethod(RubyFloat.class, "op_minus", RubyNumeric.class)); result.defineMethod("*", callbackFactory.getMethod(RubyFloat.class, "op_mul", RubyNumeric.class)); result.defineMethod("/", callbackFactory.getMethod(RubyFloat.class, "op_div", RubyNumeric.class)); result.defineMethod("%", callbackFactory.getMethod(RubyFloat.class, "op_mod", RubyNumeric.class)); result.defineMethod("**", callbackFactory.getMethod(RubyFloat.class, "op_pow", RubyNumeric.class)); result.defineMethod("ceil", callbackFactory.getMethod(RubyFloat.class, "ceil")); result.defineMethod("finite?", callbackFactory.getMethod(RubyFloat.class, "finite_p")); result.defineMethod("floor", callbackFactory.getMethod(RubyFloat.class, "floor")); result.defineMethod("hash", callbackFactory.getMethod(RubyFloat.class, "hash")); result.defineMethod("infinite?", callbackFactory.getMethod(RubyFloat.class, "infinite_p")); result.defineMethod("nan?", callbackFactory.getMethod(RubyFloat.class, "nan_p")); result.defineMethod("round", callbackFactory.getMethod(RubyFloat.class, "round")); result.defineMethod("to_i", callbackFactory.getMethod(RubyFloat.class, "to_i")); result.defineMethod("to_f", callbackFactory.getMethod(RubyFloat.class, "to_f")); result.defineMethod("to_s", callbackFactory.getMethod(RubyFloat.class, "to_s")); result.defineMethod("truncate", callbackFactory.getMethod(RubyFloat.class, "truncate")); result.getMetaClass().undefineMethod("new"); result.defineSingletonMethod("induced_from", callbackFactory.getSingletonMethod(RubyFloat.class, "induced_from", IRubyObject.class)); return result;
public static RubyClass createFloatClass(Ruby ruby) { return new FloatDefinition(ruby).getType(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java
public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num);
public RubyNumeric op_div(RubyNumeric other) {
public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), getDoubleValue() / other.getDoubleValue()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java
public RubyNumeric op_minus(IRubyObject num) { RubyNumeric other = numericValue(num);
public RubyNumeric op_minus(RubyNumeric other) {
public RubyNumeric op_minus(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), getDoubleValue() - other.getDoubleValue()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java
public RubyNumeric op_mod(IRubyObject num) { RubyNumeric other = numericValue(num);
public RubyNumeric op_mod(RubyNumeric other) {
public RubyNumeric op_mod(IRubyObject num) { RubyNumeric other = numericValue(num); // Modelled after c ruby implementation (java /,% not same as ruby) double x = getDoubleValue(); double y = other.getDoubleValue(); double mod = x % y; if ((mod < 0 && y > 0) || (mod > 0 && y < 0)) { mod += y; } return RubyFloat.newFloat(getRuntime(), mod); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java
public RubyNumeric op_mul(IRubyObject num) { return numericValue(num).multiplyWith(this);
public RubyNumeric op_mul(RubyNumeric num) { return num.multiplyWith(this);
public RubyNumeric op_mul(IRubyObject num) { return numericValue(num).multiplyWith(this); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java
public RubyNumeric op_plus(IRubyObject num) { RubyNumeric other = numericValue(num);
public RubyNumeric op_plus(RubyNumeric other) {
public RubyNumeric op_plus(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), getDoubleValue() + other.getDoubleValue()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java
public RubyNumeric op_pow(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), Math.pow(getDoubleValue(), other.getDoubleValue()));
public RubyNumeric op_pow(RubyNumeric other) { return RubyFloat.newFloat(getRuntime(), Math.pow(getDoubleValue(), other.getDoubleValue()));
public RubyNumeric op_pow(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), Math.pow(getDoubleValue(), other.getDoubleValue())); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java
criteria.addWantedField("default_pixels", "SizeX"); criteria.addWantedField("default_pixels", "SizeY"); criteria.addWantedField("default_pixels", "SizeZ"); criteria.addWantedField("default_pixels", "SizeC"); criteria.addWantedField("default_pixels", "SizeT"); criteria.addWantedField("default_pixels", "PixelType"); criteria.addWantedField("default_pixels", "Repository"); criteria.addWantedField("default_pixels", "ImageServerID"); criteria.addWantedField("default_pixels.Repository", "ImageServerURL"); criteria.addFilter("id", new Integer(imageID));
fieldsForPixels(criteria, "default_pixels"); criteria.addFilter("id", new Integer(imageID));
public static Criteria buildPixelsCriteria(int imageID) { Criteria criteria = new Criteria(); //Specify which fields we want for the image. criteria.addWantedField("default_pixels"); //Specify which fields we want for the pixels. criteria.addWantedField("default_pixels", "SizeX"); criteria.addWantedField("default_pixels", "SizeY"); criteria.addWantedField("default_pixels", "SizeZ"); criteria.addWantedField("default_pixels", "SizeC"); criteria.addWantedField("default_pixels", "SizeT"); criteria.addWantedField("default_pixels", "PixelType"); criteria.addWantedField("default_pixels", "Repository"); criteria.addWantedField("default_pixels", "ImageServerID"); criteria.addWantedField("default_pixels.Repository", "ImageServerURL"); criteria.addFilter("id", new Integer(imageID)); return criteria; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/73d218b1f03225366903abf43d50c4be713e767b/PixelsMapper.java/clean/SRC/org/openmicroscopy/shoola/env/data/map/PixelsMapper.java
cancelButton.setFont(new Font("Dialog", Font.BOLD, 10));
cancelButton.setFont(new Font("Dialog", Font.BOLD, 11));
private void decorateCancelButton() { cancelButton.setVisible(false); ResourceUtils.resButton(cancelButton, Res.getString("cancel")); cancelButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); cancelButton.setForeground(new Color(73, 113, 196)); cancelButton.setFont(new Font("Dialog", Font.BOLD, 10)); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { cancelTransfer(); } }); cancelButton.addMouseListener(new MouseAdapter() { public void mouseEntered(MouseEvent e) { cancelButton.setCursor(new Cursor(Cursor.HAND_CURSOR)); } public void mouseExited(MouseEvent e) { cancelButton.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); } }); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/e3a7a307a8f9a8e562406bb4e0820d56a5810759/ReceiveMessage.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java
openFileButton.setFont(new Font("Dialog", Font.BOLD, 10));
openFileButton.setFont(new Font("Dialog", Font.BOLD, 11));
private void transferDone(final FileTransferRequest request, FileTransfer transfer) { cancelButton.setVisible(false); showAlert(true); String bareJID = StringUtils.parseBareAddress(request.getRequestor()); ContactList contactList = SparkManager.getWorkspace().getContactList(); ContactItem contactItem = contactList.getContactItemByJID(bareJID); titleLabel.setText(Res.getString("message.received.file", contactItem.getNickname())); fileLabel.setText(request.getFileName()); remove(acceptLabel); remove(declineLabel); remove(progressBar); final TransferButton openFileButton = new TransferButton(); final TransferButton openFolderButton = new TransferButton(); add(openFileButton, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); add(openFolderButton, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); Downloads downloads = Downloads.getInstance(); final File downloadedFile = new File(downloads.getDownloadDirectory(), request.getFileName()); openFileButton.addMouseListener(new MouseAdapter() { public void mouseEntered(MouseEvent e) { openFileButton.setCursor(new Cursor(Cursor.HAND_CURSOR)); } public void mouseExited(MouseEvent e) { openFileButton.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); } }); openFolderButton.addMouseListener(new MouseAdapter() { public void mouseEntered(MouseEvent e) { openFolderButton.setCursor(new Cursor(Cursor.HAND_CURSOR)); } public void mouseExited(MouseEvent e) { openFolderButton.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); } }); add(fileLabel, new GridBagConstraints(1, 1, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0)); ResourceUtils.resButton(openFileButton, Res.getString("open")); ResourceUtils.resButton(openFolderButton, Res.getString("open.folder")); openFileButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); openFileButton.setForeground(new Color(73, 113, 196)); openFileButton.setFont(new Font("Dialog", Font.BOLD, 10)); openFolderButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); openFolderButton.setForeground(new Color(73, 113, 196)); openFolderButton.setFont(new Font("Dialog", Font.BOLD, 10)); imageLabel.setIcon(GraphicUtils.getIcon(downloadedFile)); imageLabel.addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) { showPopup(e, downloadedFile); } public void mouseReleased(MouseEvent e) { showPopup(e, downloadedFile); } }); openFileButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent actionEvent) { openFile(downloadedFile); } }); openFolderButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent actionEvent) { try { Downloads downloads = Downloads.getInstance(); if (!Spark.isMac()) { try { Desktop.open(downloads.getDownloadDirectory()); } catch (DesktopException e) { Log.error(e); } } else if (Spark.isMac()) { Runtime.getRuntime().exec("open " + downloads.getDownloadDirectory().getCanonicalPath()); } } catch (IOException e1) { Log.error(e1); } } }); if (isImage(downloadedFile.getName())) { try { URL imageURL = downloadedFile.toURL(); ImageIcon image = new ImageIcon(imageURL); image = GraphicUtils.scaleImageIcon(image, 64, 64); imageLabel.setIcon(image); } catch (MalformedURLException e) { Log.error("Could not locate image.", e); imageLabel.setIcon(SparkRes.getImageIcon(SparkRes.DOCUMENT_INFO_32x32)); } } invalidate(); validate(); repaint(); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/e3a7a307a8f9a8e562406bb4e0820d56a5810759/ReceiveMessage.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java
openFolderButton.setFont(new Font("Dialog", Font.BOLD, 10));
openFolderButton.setFont(new Font("Dialog", Font.BOLD, 11));
private void transferDone(final FileTransferRequest request, FileTransfer transfer) { cancelButton.setVisible(false); showAlert(true); String bareJID = StringUtils.parseBareAddress(request.getRequestor()); ContactList contactList = SparkManager.getWorkspace().getContactList(); ContactItem contactItem = contactList.getContactItemByJID(bareJID); titleLabel.setText(Res.getString("message.received.file", contactItem.getNickname())); fileLabel.setText(request.getFileName()); remove(acceptLabel); remove(declineLabel); remove(progressBar); final TransferButton openFileButton = new TransferButton(); final TransferButton openFolderButton = new TransferButton(); add(openFileButton, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); add(openFolderButton, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0)); Downloads downloads = Downloads.getInstance(); final File downloadedFile = new File(downloads.getDownloadDirectory(), request.getFileName()); openFileButton.addMouseListener(new MouseAdapter() { public void mouseEntered(MouseEvent e) { openFileButton.setCursor(new Cursor(Cursor.HAND_CURSOR)); } public void mouseExited(MouseEvent e) { openFileButton.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); } }); openFolderButton.addMouseListener(new MouseAdapter() { public void mouseEntered(MouseEvent e) { openFolderButton.setCursor(new Cursor(Cursor.HAND_CURSOR)); } public void mouseExited(MouseEvent e) { openFolderButton.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); } }); add(fileLabel, new GridBagConstraints(1, 1, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0)); ResourceUtils.resButton(openFileButton, Res.getString("open")); ResourceUtils.resButton(openFolderButton, Res.getString("open.folder")); openFileButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); openFileButton.setForeground(new Color(73, 113, 196)); openFileButton.setFont(new Font("Dialog", Font.BOLD, 10)); openFolderButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); openFolderButton.setForeground(new Color(73, 113, 196)); openFolderButton.setFont(new Font("Dialog", Font.BOLD, 10)); imageLabel.setIcon(GraphicUtils.getIcon(downloadedFile)); imageLabel.addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) { showPopup(e, downloadedFile); } public void mouseReleased(MouseEvent e) { showPopup(e, downloadedFile); } }); openFileButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent actionEvent) { openFile(downloadedFile); } }); openFolderButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent actionEvent) { try { Downloads downloads = Downloads.getInstance(); if (!Spark.isMac()) { try { Desktop.open(downloads.getDownloadDirectory()); } catch (DesktopException e) { Log.error(e); } } else if (Spark.isMac()) { Runtime.getRuntime().exec("open " + downloads.getDownloadDirectory().getCanonicalPath()); } } catch (IOException e1) { Log.error(e1); } } }); if (isImage(downloadedFile.getName())) { try { URL imageURL = downloadedFile.toURL(); ImageIcon image = new ImageIcon(imageURL); image = GraphicUtils.scaleImageIcon(image, 64, 64); imageLabel.setIcon(image); } catch (MalformedURLException e) { Log.error("Could not locate image.", e); imageLabel.setIcon(SparkRes.getImageIcon(SparkRes.DOCUMENT_INFO_32x32)); } } invalidate(); validate(); repaint(); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/e3a7a307a8f9a8e562406bb4e0820d56a5810759/ReceiveMessage.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java
RbJavaObject.defineJavaObjectClass(this);
private void initializeCoreClasses() { RubyClass metaClass; objectClass = defineBootClass("Object", null); moduleClass = defineBootClass("Module", objectClass); classClass = defineBootClass("Class", moduleClass); metaClass = classClass.newSingletonClass(); objectClass.setRubyClass(metaClass); metaClass.attachSingletonClass(objectClass); metaClass = metaClass.newSingletonClass(); moduleClass.setRubyClass(metaClass); metaClass.attachSingletonClass(moduleClass); metaClass = metaClass.newSingletonClass(); classClass.setRubyClass(metaClass); metaClass.attachSingletonClass(classClass); RubyModule kernelModule = RBKernel.createKernelModule(this); objectClass.includeModule(kernelModule); objectClass.definePrivateMethod("initialize", DefaultCallbackMethods.getMethodNil()); classClass.definePrivateMethod("inherited", DefaultCallbackMethods.getMethodNil()); /* * * Ruby's Class Hierarchy Chart * * +------------------+ * | | * Object---->(Object) | * ^ ^ ^ ^ | * | | | | | * | | +-----+ +---------+ | * | | | | | * | +-----------+ | | * | | | | | * +------+ | Module--->(Module) | * | | ^ ^ | * OtherClass-->(OtherClass) | | | * | | | * Class---->(Class) | * ^ | * | | * +----------------+ * * + All metaclasses are instances of the class `Class'. */ RbObject.initObjectClass(objectClass); RbClass.initClassClass(classClass); RbModule.initModuleClass(moduleClass); rubyTopSelf = objectClass.m_new((RubyObject[])null); rubyTopSelf.defineSingletonMethod("to_s", new RubyCallbackMethod() { public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { return RubyString.m_newString(ruby, "main"); } }); symbolClass = RbSymbol.createSymbolClass(this); nilClass = RbNilClass.createNilClass(this); falseClass = RbFalseClass.createFalseClass(this); trueClass = RbTrueClass.createTrueClass(this); RbComparable.createComparable(this); numericClass = RbNumeric.createNumericClass(this); integerClass = RbInteger.createIntegerClass(this); fixnumClass = RbFixnum.createFixnum(this); floatClass = RbFloat.createFloat(this); stringClass = RbString.createStringClass(this); RbArray.createArrayClass(this); RbRange.createRangeClass(this); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/76d3fd1bbcdbd38082a9b8c19c593b06ed915280/Ruby.java/clean/org/jruby/Ruby.java
javaObjectClass.defineMethod("eql?", getMethod("m_equal")); javaObjectClass.defineMethod("==", getMethod("m_equal"));
public static void defineJavaObjectClass(Ruby ruby) { RubyClass javaObjectClass = ruby.defineClass("JavaObject", ruby.getObjectClass()); javaObjectClass.defineMethod("to_s", getMethod("m_to_s")); javaObjectClass.defineSingletonMethod("load_class", getSingletonMethod("m_load_class", RubyString.class, true)); javaObjectClass.getRubyClass().undefMethod("new"); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/241a0fe060c8d239aa9e5d2519e98cf44d69a201/RbJavaObject.java/buggy/org/jruby/core/RbJavaObject.java
public HashMap getChainExecutionsByChainID() {
public LinkedHashMap getChainExecutionsByChainID() {
public HashMap getChainExecutionsByChainID() { return executionsByChain; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/426d81c49168655739bbc20b40625063012871e0/ChainExecutionsLoadedEvent.java/clean/SRC/org/openmicroscopy/shoola/agents/events/ChainExecutionsLoadedEvent.java
public HashMap getChainExecutionsByDatasetID() { return (HashMap) getSource();
public LinkedHashMap getChainExecutionsByDatasetID() { return (LinkedHashMap) getSource();
public HashMap getChainExecutionsByDatasetID() { return (HashMap) getSource(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/426d81c49168655739bbc20b40625063012871e0/ChainExecutionsLoadedEvent.java/clean/SRC/org/openmicroscopy/shoola/agents/events/ChainExecutionsLoadedEvent.java
public HashMap getExecutionsByID() {
public LinkedHashMap getExecutionsByID() {
public HashMap getExecutionsByID() { return executionsByID; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/426d81c49168655739bbc20b40625063012871e0/ChainExecutionsLoadedEvent.java/clean/SRC/org/openmicroscopy/shoola/agents/events/ChainExecutionsLoadedEvent.java
final StringBuffer sb = new StringBuffer('{');
final StringBuffer sb = new StringBuffer("{");
public RubyString inspect() { //FIXME this two strings should be built only once, at leas only once //per instance no matter how many calls to inspect and maybe better once //per ruby interpreter. //Benoit final String sep = ", "; final String arrow = "=>"; final StringBuffer sb = new StringBuffer('{'); valueMap.foreach(new RubyMapMethod() { boolean firstEntry = true; public int execute(Object key, Object value, Object arg) { // RubyString str = RubyString.stringValue((RubyObject) arg); if (!firstEntry) { sb.append(sep); } sb.append(((RubyObject) key).funcall("inspect")); sb.append(arrow); sb.append(((RubyObject) value).funcall("inspect")); firstEntry = false; return RubyMapMethod.CONTINUE; } }, null); sb.append("}"); return RubyString.newString(ruby, sb.toString()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2f13ba47385b7584839c7f6f6f1abfee251cbe53/RubyHash.java/buggy/org/jruby/RubyHash.java
ChatPreferences chatPref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); final String nickname = chatPref.getNickname().trim();
LocalPreferences pref = SettingsManager.getLocalPreferences(); final String nickname = pref.getNickname().trim();
public static void autoJoinConferenceRoom(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); ChatPreferences chatPref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); final String nickname = chatPref.getNickname().trim(); try { GroupChatRoom chatRoom = (GroupChatRoom)chatManager.getChatContainer().getChatRoom(roomJID); MultiUserChat muc = chatRoom.getMultiUserChat(); if (!muc.isJoined()) { joinRoom(muc, nickname, password); } chatManager.getChatContainer().activateChatRoom(chatRoom); return; } catch (ChatRoomNotFoundException e) { } final GroupChatRoom room = new GroupChatRoom(groupChat); room.setTabTitle(roomName); if (requiresPassword(roomJID) && password == null) { password = JOptionPane.showInputDialog(null, "Enter Room Password", "Need Password", JOptionPane.QUESTION_MESSAGE); if (!ModelUtil.hasLength(password)) { return; } } final List errors = new ArrayList(); final String userPassword = password; final SwingWorker startChat = new SwingWorker() { public Object construct() { if (!groupChat.isJoined()) { int groupChatCounter = 0; while (true) { groupChatCounter++; String joinName = nickname; if (groupChatCounter > 1) { joinName = joinName + groupChatCounter; } if (groupChatCounter < 10) { try { if (ModelUtil.hasLength(userPassword)) { groupChat.join(joinName, userPassword); } else { groupChat.join(joinName); } break; } catch (XMPPException ex) { int code = 0; if (ex.getXMPPError() != null) { code = ex.getXMPPError().getCode(); } if (code == 0) { errors.add("No response from server."); } else if (code == 401) { errors.add("The password did not match the room's password."); } else if (code == 403) { errors.add("You have been banned from this room."); } else if (code == 404) { errors.add("The room you are trying to enter does not exist."); } else if (code == 407) { errors.add("You are not a member of this room.\nThis room requires you to be a member to join."); } else if (code != 409) { break; } } } else { break; } } } return "ok"; } public void finished() { if (errors.size() > 0) { String error = (String)errors.get(0); JOptionPane.showMessageDialog(SparkManager.getMainWindow(), error, "Unable to join the room at this time.", JOptionPane.ERROR_MESSAGE); return; } else if (groupChat.isJoined()) { ChatManager chatManager = SparkManager.getChatManager(); chatManager.getChatContainer().addChatRoom(room); chatManager.getChatContainer().activateChatRoom(room); } else { JOptionPane.showMessageDialog(SparkManager.getMainWindow(), "Unable to join the room.", "Error", JOptionPane.ERROR_MESSAGE); return; } } }; startChat.start(); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/f678f06c6fbc4a84079c230a0a7461759cb20755/ConferenceUtils.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceUtils.java
ChatPreferences chatPref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); chatRoom.create(chatPref.getNickname());
LocalPreferences pref = SettingsManager.getLocalPreferences(); chatRoom.create(pref.getNickname());
public static void createPrivateConference(String serviceName, String message, String roomName, Collection jids) { final MultiUserChat chatRoom = new MultiUserChat(SparkManager.getConnection(), roomName + "@" + serviceName); final GroupChatRoom room = new GroupChatRoom(chatRoom); try { ChatPreferences chatPref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); chatRoom.create(chatPref.getNickname()); // Since this is a private room, make the room not public and set user as owner of the room. Form submitForm = chatRoom.getConfigurationForm().createAnswerForm(); submitForm.setAnswer("muc#roomconfig_publicroom", false); submitForm.setAnswer("muc#roomconfig_roomname", roomName); List owners = new ArrayList(); owners.add(SparkManager.getSessionManager().getBareAddress()); submitForm.setAnswer("muc#roomconfig_roomowners", owners); chatRoom.sendConfigurationForm(submitForm); } catch (XMPPException e1) { Log.error("Unable to send conference room chat configuration form.", e1); } ChatManager chatManager = SparkManager.getChatManager(); // Check if room already is open try { chatManager.getChatContainer().getChatRoom(room.getRoomname()); } catch (ChatRoomNotFoundException e) { chatManager.getChatContainer().addChatRoom(room); chatManager.getChatContainer().activateChatRoom(room); } final Iterator jidsToInvite = jids.iterator(); while (jidsToInvite.hasNext()) { String jid = (String)jidsToInvite.next(); chatRoom.invite(jid, message); room.getTranscriptWindow().insertNotificationMessage("Waiting for " + jid + " to join."); } }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/f678f06c6fbc4a84079c230a0a7461759cb20755/ConferenceUtils.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceUtils.java
ChatPreferences chatPref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); final String nickname = chatPref.getNickname().trim();
final LocalPreferences pref = SettingsManager.getLocalPreferences(); final String nickname = pref.getNickname().trim();
public static GroupChatRoom enterRoomOnSameThread(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); ChatPreferences chatPref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); final String nickname = chatPref.getNickname().trim(); try { GroupChatRoom chatRoom = (GroupChatRoom)chatManager.getChatContainer().getChatRoom(roomJID); MultiUserChat muc = chatRoom.getMultiUserChat(); if (!muc.isJoined()) { joinRoom(muc, nickname, password); } chatManager.getChatContainer().activateChatRoom(chatRoom); return chatRoom; } catch (ChatRoomNotFoundException e) { } final GroupChatRoom room = new GroupChatRoom(groupChat); room.setTabTitle(roomName); if (requiresPassword(roomJID) && password == null) { password = JOptionPane.showInputDialog(null, "Enter Room Password", "Need Password", JOptionPane.QUESTION_MESSAGE); if (!ModelUtil.hasLength(password)) { return null; } } final List errors = new ArrayList(); final String userPassword = password; if (!groupChat.isJoined()) { int groupChatCounter = 0; while (true) { groupChatCounter++; String joinName = nickname; if (groupChatCounter > 1) { joinName = joinName + groupChatCounter; } if (groupChatCounter < 10) { try { if (ModelUtil.hasLength(userPassword)) { groupChat.join(joinName, userPassword); } else { groupChat.join(joinName); } break; } catch (XMPPException ex) { int code = 0; if (ex.getXMPPError() != null) { code = ex.getXMPPError().getCode(); } if (code == 0) { errors.add("No response from server."); } else if (code == 401) { errors.add("The password did not match the room's password."); } else if (code == 403) { errors.add("You have been banned from this room."); } else if (code == 404) { errors.add("The room you are trying to enter does not exist."); } else if (code == 407) { errors.add("You are not a member of this room.\nThis room requires you to be a member to join."); } else if (code != 409) { break; } } } else { break; } } } if (errors.size() > 0) { String error = (String)errors.get(0); JOptionPane.showMessageDialog(SparkManager.getMainWindow(), error, "Unable to join the room at this time.", JOptionPane.ERROR_MESSAGE); return null; } else if (groupChat.isJoined()) { chatManager.getChatContainer().addChatRoom(room); chatManager.getChatContainer().activateChatRoom(room); } else { JOptionPane.showMessageDialog(SparkManager.getMainWindow(), "Unable to join the room.", "Error", JOptionPane.ERROR_MESSAGE); return null; } return room; }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/f678f06c6fbc4a84079c230a0a7461759cb20755/ConferenceUtils.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceUtils.java
final ChatPreferences pref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE);
final LocalPreferences pref = SettingsManager.getLocalPreferences();
public void joinRoom(final String roomJID, final String roomName) { final ChatPreferences pref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); // Set default nickname nicknameField.setText(pref.getNickname()); // Enable password field if a password is required passwordField.setVisible(false); passwordLabel.setVisible(false); roomNameDescription.setText(roomName); final JOptionPane pane; TitlePanel titlePanel; // Create the title panel for this dialog titlePanel = new TitlePanel("Join Conference Room", "Specify information for conference room.", SparkRes.getImageIcon(SparkRes.BLANK_IMAGE), true); // Construct main panel w/ layout. final JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout()); mainPanel.add(titlePanel, BorderLayout.NORTH); // The user should only be able to close this dialog. Object[] options = {"Join", "Cancel"}; pane = new JOptionPane(this, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION, null, options, options[0]); mainPanel.add(pane, BorderLayout.CENTER); final JOptionPane p = new JOptionPane(); final JDialog dlg = p.createDialog(SparkManager.getMainWindow(), "Conference Rooms"); dlg.setModal(false); dlg.pack(); dlg.setSize(350, 250); dlg.setResizable(true); dlg.setContentPane(mainPanel); dlg.setLocationRelativeTo(SparkManager.getMainWindow()); PropertyChangeListener changeListener = new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { String value = (String)pane.getValue(); if ("Cancel".equals(value)) { pane.setValue(JOptionPane.UNINITIALIZED_VALUE); dlg.dispose(); } else if ("Join".equals(value)) { pane.setValue(JOptionPane.UNINITIALIZED_VALUE); dlg.dispose(); ConferenceUtils.autoJoinConferenceRoom(roomName, roomJID, null); } } }; pane.addPropertyChangeListener(changeListener); dlg.setVisible(true); dlg.toFront(); dlg.requestFocus(); SwingWorker worker = new SwingWorker() { boolean requiresPassword; public Object construct() { requiresPassword = ConferenceUtils.requiresPassword(roomJID); return new Boolean(requiresPassword); } public void finished() { passwordField.setVisible(requiresPassword); passwordLabel.setVisible(requiresPassword); } }; worker.start(); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/f678f06c6fbc4a84079c230a0a7461759cb20755/JoinConferenceRoomDialog.java/buggy/src/java/org/jivesoftware/spark/ui/conferences/JoinConferenceRoomDialog.java
return model.getTreeView();
TreeView treeView = model.getTreeView(); if (treeView == null) { model.createTreeView(); treeView = model.getTreeView(); treeView.addPropertyChangeListener(controller); } return treeView;
public TreeView getTreeView() { int state = model.getState(); if (state != LOADING_THUMBNAILS && state != READY) throw new IllegalStateException( "This method can only be invoked in the LOADING_THUMBNAILS "+ "or READY state."); return model.getTreeView(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/64ee7ec527da3cc538fcd8d0a21183719f854676/HiViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerComponent.java
String prop; Object nextProp = null;
String propName; Object nextPropValue = null;
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc = null; if (names[start] instanceof String) { prop = (String) names[start]; } else if (names[start] instanceof PropertyMethod) { PropertyMethod pm = (PropertyMethod) names[start]; prop = pm.getName(); acc = (Accessor) _directAccessors.get(prop); Object[] args = pm.getArguments(context); if (acc == null) { if (isMethodRestricted(instance.getClass(), prop)) throw new PropertyException.RestrictedMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } try { nextProp = acc.get(instance, args); start++; } catch (NoSuchMethodException e) { throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } } else { prop = names[start].toString(); } // unary? if (acc == null) { acc = (Accessor) _unaryAccessors.get(prop); if (acc != null) { try { nextProp = acc.get(instance); start++; } catch (NoSuchMethodException e) { acc = null; } } } // binary? if (acc == null) { acc = (Accessor) _binaryAccessors.get(prop); if ((acc != null) && ((start + 1) <= end)) { try { nextProp = acc.get(instance, (String) names[start + 1]); start += 2; } catch (NoSuchMethodException e) { acc = null; } catch (ClassCastException e) { // names[start + 1] was not a String, just move on // this catch is more efficient than using instanceof // since 90% of the time it really will be a string acc = null; } } else { acc = null; } } // hash? if (acc == null) { acc = _hashAccessor; try { if (acc != null) { nextProp = acc.get(instance, prop); start++; } } catch (NoSuchMethodException e) { acc = null; } } if (acc == null) { // user tried to access a property of a property that doesn't exist // ex: $TestObject.FirstName.NotThere // check if object is restricted if (isMethodRestricted(instance.getClass(), "get" + prop) || isMethodRestricted(instance.getClass(), "set" + prop)) throw new PropertyException.RestrictedPropertyException( prop, fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchPropertyException( prop, fillInName(names, start), instance.getClass().getName()); } if (start <= end) { try { return _cache.getOperator(nextProp) .getProperty(context, nextProp, names, start, end); } catch (NullPointerException e) { // $Foo.getNull().SomeProperty is what makes this happen throw new PropertyException("$" + fillInName(names, start) + " is null. Cannot access ." + names[end]); } } else { return nextProp; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
prop = (String) names[start];
propName = (String) names[start];
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc = null; if (names[start] instanceof String) { prop = (String) names[start]; } else if (names[start] instanceof PropertyMethod) { PropertyMethod pm = (PropertyMethod) names[start]; prop = pm.getName(); acc = (Accessor) _directAccessors.get(prop); Object[] args = pm.getArguments(context); if (acc == null) { if (isMethodRestricted(instance.getClass(), prop)) throw new PropertyException.RestrictedMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } try { nextProp = acc.get(instance, args); start++; } catch (NoSuchMethodException e) { throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } } else { prop = names[start].toString(); } // unary? if (acc == null) { acc = (Accessor) _unaryAccessors.get(prop); if (acc != null) { try { nextProp = acc.get(instance); start++; } catch (NoSuchMethodException e) { acc = null; } } } // binary? if (acc == null) { acc = (Accessor) _binaryAccessors.get(prop); if ((acc != null) && ((start + 1) <= end)) { try { nextProp = acc.get(instance, (String) names[start + 1]); start += 2; } catch (NoSuchMethodException e) { acc = null; } catch (ClassCastException e) { // names[start + 1] was not a String, just move on // this catch is more efficient than using instanceof // since 90% of the time it really will be a string acc = null; } } else { acc = null; } } // hash? if (acc == null) { acc = _hashAccessor; try { if (acc != null) { nextProp = acc.get(instance, prop); start++; } } catch (NoSuchMethodException e) { acc = null; } } if (acc == null) { // user tried to access a property of a property that doesn't exist // ex: $TestObject.FirstName.NotThere // check if object is restricted if (isMethodRestricted(instance.getClass(), "get" + prop) || isMethodRestricted(instance.getClass(), "set" + prop)) throw new PropertyException.RestrictedPropertyException( prop, fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchPropertyException( prop, fillInName(names, start), instance.getClass().getName()); } if (start <= end) { try { return _cache.getOperator(nextProp) .getProperty(context, nextProp, names, start, end); } catch (NullPointerException e) { // $Foo.getNull().SomeProperty is what makes this happen throw new PropertyException("$" + fillInName(names, start) + " is null. Cannot access ." + names[end]); } } else { return nextProp; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
prop = pm.getName(); acc = (Accessor) _directAccessors.get(prop);
propName = pm.getName(); acc = (Accessor) _directAccessors.get(propName);
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc = null; if (names[start] instanceof String) { prop = (String) names[start]; } else if (names[start] instanceof PropertyMethod) { PropertyMethod pm = (PropertyMethod) names[start]; prop = pm.getName(); acc = (Accessor) _directAccessors.get(prop); Object[] args = pm.getArguments(context); if (acc == null) { if (isMethodRestricted(instance.getClass(), prop)) throw new PropertyException.RestrictedMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } try { nextProp = acc.get(instance, args); start++; } catch (NoSuchMethodException e) { throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } } else { prop = names[start].toString(); } // unary? if (acc == null) { acc = (Accessor) _unaryAccessors.get(prop); if (acc != null) { try { nextProp = acc.get(instance); start++; } catch (NoSuchMethodException e) { acc = null; } } } // binary? if (acc == null) { acc = (Accessor) _binaryAccessors.get(prop); if ((acc != null) && ((start + 1) <= end)) { try { nextProp = acc.get(instance, (String) names[start + 1]); start += 2; } catch (NoSuchMethodException e) { acc = null; } catch (ClassCastException e) { // names[start + 1] was not a String, just move on // this catch is more efficient than using instanceof // since 90% of the time it really will be a string acc = null; } } else { acc = null; } } // hash? if (acc == null) { acc = _hashAccessor; try { if (acc != null) { nextProp = acc.get(instance, prop); start++; } } catch (NoSuchMethodException e) { acc = null; } } if (acc == null) { // user tried to access a property of a property that doesn't exist // ex: $TestObject.FirstName.NotThere // check if object is restricted if (isMethodRestricted(instance.getClass(), "get" + prop) || isMethodRestricted(instance.getClass(), "set" + prop)) throw new PropertyException.RestrictedPropertyException( prop, fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchPropertyException( prop, fillInName(names, start), instance.getClass().getName()); } if (start <= end) { try { return _cache.getOperator(nextProp) .getProperty(context, nextProp, names, start, end); } catch (NullPointerException e) { // $Foo.getNull().SomeProperty is what makes this happen throw new PropertyException("$" + fillInName(names, start) + " is null. Cannot access ." + names[end]); } } else { return nextProp; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
if (isMethodRestricted(instance.getClass(), prop))
if (isMethodRestricted(instance.getClass(), propName))
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc = null; if (names[start] instanceof String) { prop = (String) names[start]; } else if (names[start] instanceof PropertyMethod) { PropertyMethod pm = (PropertyMethod) names[start]; prop = pm.getName(); acc = (Accessor) _directAccessors.get(prop); Object[] args = pm.getArguments(context); if (acc == null) { if (isMethodRestricted(instance.getClass(), prop)) throw new PropertyException.RestrictedMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } try { nextProp = acc.get(instance, args); start++; } catch (NoSuchMethodException e) { throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } } else { prop = names[start].toString(); } // unary? if (acc == null) { acc = (Accessor) _unaryAccessors.get(prop); if (acc != null) { try { nextProp = acc.get(instance); start++; } catch (NoSuchMethodException e) { acc = null; } } } // binary? if (acc == null) { acc = (Accessor) _binaryAccessors.get(prop); if ((acc != null) && ((start + 1) <= end)) { try { nextProp = acc.get(instance, (String) names[start + 1]); start += 2; } catch (NoSuchMethodException e) { acc = null; } catch (ClassCastException e) { // names[start + 1] was not a String, just move on // this catch is more efficient than using instanceof // since 90% of the time it really will be a string acc = null; } } else { acc = null; } } // hash? if (acc == null) { acc = _hashAccessor; try { if (acc != null) { nextProp = acc.get(instance, prop); start++; } } catch (NoSuchMethodException e) { acc = null; } } if (acc == null) { // user tried to access a property of a property that doesn't exist // ex: $TestObject.FirstName.NotThere // check if object is restricted if (isMethodRestricted(instance.getClass(), "get" + prop) || isMethodRestricted(instance.getClass(), "set" + prop)) throw new PropertyException.RestrictedPropertyException( prop, fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchPropertyException( prop, fillInName(names, start), instance.getClass().getName()); } if (start <= end) { try { return _cache.getOperator(nextProp) .getProperty(context, nextProp, names, start, end); } catch (NullPointerException e) { // $Foo.getNull().SomeProperty is what makes this happen throw new PropertyException("$" + fillInName(names, start) + " is null. Cannot access ." + names[end]); } } else { return nextProp; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
nextProp = acc.get(instance, args);
nextPropValue = acc.get(instance, args);
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc = null; if (names[start] instanceof String) { prop = (String) names[start]; } else if (names[start] instanceof PropertyMethod) { PropertyMethod pm = (PropertyMethod) names[start]; prop = pm.getName(); acc = (Accessor) _directAccessors.get(prop); Object[] args = pm.getArguments(context); if (acc == null) { if (isMethodRestricted(instance.getClass(), prop)) throw new PropertyException.RestrictedMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } try { nextProp = acc.get(instance, args); start++; } catch (NoSuchMethodException e) { throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } } else { prop = names[start].toString(); } // unary? if (acc == null) { acc = (Accessor) _unaryAccessors.get(prop); if (acc != null) { try { nextProp = acc.get(instance); start++; } catch (NoSuchMethodException e) { acc = null; } } } // binary? if (acc == null) { acc = (Accessor) _binaryAccessors.get(prop); if ((acc != null) && ((start + 1) <= end)) { try { nextProp = acc.get(instance, (String) names[start + 1]); start += 2; } catch (NoSuchMethodException e) { acc = null; } catch (ClassCastException e) { // names[start + 1] was not a String, just move on // this catch is more efficient than using instanceof // since 90% of the time it really will be a string acc = null; } } else { acc = null; } } // hash? if (acc == null) { acc = _hashAccessor; try { if (acc != null) { nextProp = acc.get(instance, prop); start++; } } catch (NoSuchMethodException e) { acc = null; } } if (acc == null) { // user tried to access a property of a property that doesn't exist // ex: $TestObject.FirstName.NotThere // check if object is restricted if (isMethodRestricted(instance.getClass(), "get" + prop) || isMethodRestricted(instance.getClass(), "set" + prop)) throw new PropertyException.RestrictedPropertyException( prop, fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchPropertyException( prop, fillInName(names, start), instance.getClass().getName()); } if (start <= end) { try { return _cache.getOperator(nextProp) .getProperty(context, nextProp, names, start, end); } catch (NullPointerException e) { // $Foo.getNull().SomeProperty is what makes this happen throw new PropertyException("$" + fillInName(names, start) + " is null. Cannot access ." + names[end]); } } else { return nextProp; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
prop = names[start].toString();
propName = names[start].toString();
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc = null; if (names[start] instanceof String) { prop = (String) names[start]; } else if (names[start] instanceof PropertyMethod) { PropertyMethod pm = (PropertyMethod) names[start]; prop = pm.getName(); acc = (Accessor) _directAccessors.get(prop); Object[] args = pm.getArguments(context); if (acc == null) { if (isMethodRestricted(instance.getClass(), prop)) throw new PropertyException.RestrictedMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } try { nextProp = acc.get(instance, args); start++; } catch (NoSuchMethodException e) { throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } } else { prop = names[start].toString(); } // unary? if (acc == null) { acc = (Accessor) _unaryAccessors.get(prop); if (acc != null) { try { nextProp = acc.get(instance); start++; } catch (NoSuchMethodException e) { acc = null; } } } // binary? if (acc == null) { acc = (Accessor) _binaryAccessors.get(prop); if ((acc != null) && ((start + 1) <= end)) { try { nextProp = acc.get(instance, (String) names[start + 1]); start += 2; } catch (NoSuchMethodException e) { acc = null; } catch (ClassCastException e) { // names[start + 1] was not a String, just move on // this catch is more efficient than using instanceof // since 90% of the time it really will be a string acc = null; } } else { acc = null; } } // hash? if (acc == null) { acc = _hashAccessor; try { if (acc != null) { nextProp = acc.get(instance, prop); start++; } } catch (NoSuchMethodException e) { acc = null; } } if (acc == null) { // user tried to access a property of a property that doesn't exist // ex: $TestObject.FirstName.NotThere // check if object is restricted if (isMethodRestricted(instance.getClass(), "get" + prop) || isMethodRestricted(instance.getClass(), "set" + prop)) throw new PropertyException.RestrictedPropertyException( prop, fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchPropertyException( prop, fillInName(names, start), instance.getClass().getName()); } if (start <= end) { try { return _cache.getOperator(nextProp) .getProperty(context, nextProp, names, start, end); } catch (NullPointerException e) { // $Foo.getNull().SomeProperty is what makes this happen throw new PropertyException("$" + fillInName(names, start) + " is null. Cannot access ." + names[end]); } } else { return nextProp; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
acc = (Accessor) _unaryAccessors.get(prop);
acc = (Accessor) _unaryAccessors.get(propName);
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc = null; if (names[start] instanceof String) { prop = (String) names[start]; } else if (names[start] instanceof PropertyMethod) { PropertyMethod pm = (PropertyMethod) names[start]; prop = pm.getName(); acc = (Accessor) _directAccessors.get(prop); Object[] args = pm.getArguments(context); if (acc == null) { if (isMethodRestricted(instance.getClass(), prop)) throw new PropertyException.RestrictedMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } try { nextProp = acc.get(instance, args); start++; } catch (NoSuchMethodException e) { throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } } else { prop = names[start].toString(); } // unary? if (acc == null) { acc = (Accessor) _unaryAccessors.get(prop); if (acc != null) { try { nextProp = acc.get(instance); start++; } catch (NoSuchMethodException e) { acc = null; } } } // binary? if (acc == null) { acc = (Accessor) _binaryAccessors.get(prop); if ((acc != null) && ((start + 1) <= end)) { try { nextProp = acc.get(instance, (String) names[start + 1]); start += 2; } catch (NoSuchMethodException e) { acc = null; } catch (ClassCastException e) { // names[start + 1] was not a String, just move on // this catch is more efficient than using instanceof // since 90% of the time it really will be a string acc = null; } } else { acc = null; } } // hash? if (acc == null) { acc = _hashAccessor; try { if (acc != null) { nextProp = acc.get(instance, prop); start++; } } catch (NoSuchMethodException e) { acc = null; } } if (acc == null) { // user tried to access a property of a property that doesn't exist // ex: $TestObject.FirstName.NotThere // check if object is restricted if (isMethodRestricted(instance.getClass(), "get" + prop) || isMethodRestricted(instance.getClass(), "set" + prop)) throw new PropertyException.RestrictedPropertyException( prop, fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchPropertyException( prop, fillInName(names, start), instance.getClass().getName()); } if (start <= end) { try { return _cache.getOperator(nextProp) .getProperty(context, nextProp, names, start, end); } catch (NullPointerException e) { // $Foo.getNull().SomeProperty is what makes this happen throw new PropertyException("$" + fillInName(names, start) + " is null. Cannot access ." + names[end]); } } else { return nextProp; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
nextProp = acc.get(instance);
nextPropValue = acc.get(instance);
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc = null; if (names[start] instanceof String) { prop = (String) names[start]; } else if (names[start] instanceof PropertyMethod) { PropertyMethod pm = (PropertyMethod) names[start]; prop = pm.getName(); acc = (Accessor) _directAccessors.get(prop); Object[] args = pm.getArguments(context); if (acc == null) { if (isMethodRestricted(instance.getClass(), prop)) throw new PropertyException.RestrictedMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } try { nextProp = acc.get(instance, args); start++; } catch (NoSuchMethodException e) { throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } } else { prop = names[start].toString(); } // unary? if (acc == null) { acc = (Accessor) _unaryAccessors.get(prop); if (acc != null) { try { nextProp = acc.get(instance); start++; } catch (NoSuchMethodException e) { acc = null; } } } // binary? if (acc == null) { acc = (Accessor) _binaryAccessors.get(prop); if ((acc != null) && ((start + 1) <= end)) { try { nextProp = acc.get(instance, (String) names[start + 1]); start += 2; } catch (NoSuchMethodException e) { acc = null; } catch (ClassCastException e) { // names[start + 1] was not a String, just move on // this catch is more efficient than using instanceof // since 90% of the time it really will be a string acc = null; } } else { acc = null; } } // hash? if (acc == null) { acc = _hashAccessor; try { if (acc != null) { nextProp = acc.get(instance, prop); start++; } } catch (NoSuchMethodException e) { acc = null; } } if (acc == null) { // user tried to access a property of a property that doesn't exist // ex: $TestObject.FirstName.NotThere // check if object is restricted if (isMethodRestricted(instance.getClass(), "get" + prop) || isMethodRestricted(instance.getClass(), "set" + prop)) throw new PropertyException.RestrictedPropertyException( prop, fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchPropertyException( prop, fillInName(names, start), instance.getClass().getName()); } if (start <= end) { try { return _cache.getOperator(nextProp) .getProperty(context, nextProp, names, start, end); } catch (NullPointerException e) { // $Foo.getNull().SomeProperty is what makes this happen throw new PropertyException("$" + fillInName(names, start) + " is null. Cannot access ." + names[end]); } } else { return nextProp; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
acc = (Accessor) _binaryAccessors.get(prop); if ((acc != null) && ((start + 1) <= end))
acc = (Accessor) _binaryAccessors.get(propName); if ((acc != null) && ((start + 1) <= names.length))
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc = null; if (names[start] instanceof String) { prop = (String) names[start]; } else if (names[start] instanceof PropertyMethod) { PropertyMethod pm = (PropertyMethod) names[start]; prop = pm.getName(); acc = (Accessor) _directAccessors.get(prop); Object[] args = pm.getArguments(context); if (acc == null) { if (isMethodRestricted(instance.getClass(), prop)) throw new PropertyException.RestrictedMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } try { nextProp = acc.get(instance, args); start++; } catch (NoSuchMethodException e) { throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } } else { prop = names[start].toString(); } // unary? if (acc == null) { acc = (Accessor) _unaryAccessors.get(prop); if (acc != null) { try { nextProp = acc.get(instance); start++; } catch (NoSuchMethodException e) { acc = null; } } } // binary? if (acc == null) { acc = (Accessor) _binaryAccessors.get(prop); if ((acc != null) && ((start + 1) <= end)) { try { nextProp = acc.get(instance, (String) names[start + 1]); start += 2; } catch (NoSuchMethodException e) { acc = null; } catch (ClassCastException e) { // names[start + 1] was not a String, just move on // this catch is more efficient than using instanceof // since 90% of the time it really will be a string acc = null; } } else { acc = null; } } // hash? if (acc == null) { acc = _hashAccessor; try { if (acc != null) { nextProp = acc.get(instance, prop); start++; } } catch (NoSuchMethodException e) { acc = null; } } if (acc == null) { // user tried to access a property of a property that doesn't exist // ex: $TestObject.FirstName.NotThere // check if object is restricted if (isMethodRestricted(instance.getClass(), "get" + prop) || isMethodRestricted(instance.getClass(), "set" + prop)) throw new PropertyException.RestrictedPropertyException( prop, fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchPropertyException( prop, fillInName(names, start), instance.getClass().getName()); } if (start <= end) { try { return _cache.getOperator(nextProp) .getProperty(context, nextProp, names, start, end); } catch (NullPointerException e) { // $Foo.getNull().SomeProperty is what makes this happen throw new PropertyException("$" + fillInName(names, start) + " is null. Cannot access ." + names[end]); } } else { return nextProp; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
nextProp = acc.get(instance, (String) names[start + 1]);
nextPropValue = acc.get(instance, (String) names[start + 1]);
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc = null; if (names[start] instanceof String) { prop = (String) names[start]; } else if (names[start] instanceof PropertyMethod) { PropertyMethod pm = (PropertyMethod) names[start]; prop = pm.getName(); acc = (Accessor) _directAccessors.get(prop); Object[] args = pm.getArguments(context); if (acc == null) { if (isMethodRestricted(instance.getClass(), prop)) throw new PropertyException.RestrictedMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } try { nextProp = acc.get(instance, args); start++; } catch (NoSuchMethodException e) { throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } } else { prop = names[start].toString(); } // unary? if (acc == null) { acc = (Accessor) _unaryAccessors.get(prop); if (acc != null) { try { nextProp = acc.get(instance); start++; } catch (NoSuchMethodException e) { acc = null; } } } // binary? if (acc == null) { acc = (Accessor) _binaryAccessors.get(prop); if ((acc != null) && ((start + 1) <= end)) { try { nextProp = acc.get(instance, (String) names[start + 1]); start += 2; } catch (NoSuchMethodException e) { acc = null; } catch (ClassCastException e) { // names[start + 1] was not a String, just move on // this catch is more efficient than using instanceof // since 90% of the time it really will be a string acc = null; } } else { acc = null; } } // hash? if (acc == null) { acc = _hashAccessor; try { if (acc != null) { nextProp = acc.get(instance, prop); start++; } } catch (NoSuchMethodException e) { acc = null; } } if (acc == null) { // user tried to access a property of a property that doesn't exist // ex: $TestObject.FirstName.NotThere // check if object is restricted if (isMethodRestricted(instance.getClass(), "get" + prop) || isMethodRestricted(instance.getClass(), "set" + prop)) throw new PropertyException.RestrictedPropertyException( prop, fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchPropertyException( prop, fillInName(names, start), instance.getClass().getName()); } if (start <= end) { try { return _cache.getOperator(nextProp) .getProperty(context, nextProp, names, start, end); } catch (NullPointerException e) { // $Foo.getNull().SomeProperty is what makes this happen throw new PropertyException("$" + fillInName(names, start) + " is null. Cannot access ." + names[end]); } } else { return nextProp; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
nextProp = acc.get(instance, prop);
nextPropValue = acc.get(instance, propName);
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc = null; if (names[start] instanceof String) { prop = (String) names[start]; } else if (names[start] instanceof PropertyMethod) { PropertyMethod pm = (PropertyMethod) names[start]; prop = pm.getName(); acc = (Accessor) _directAccessors.get(prop); Object[] args = pm.getArguments(context); if (acc == null) { if (isMethodRestricted(instance.getClass(), prop)) throw new PropertyException.RestrictedMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } try { nextProp = acc.get(instance, args); start++; } catch (NoSuchMethodException e) { throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } } else { prop = names[start].toString(); } // unary? if (acc == null) { acc = (Accessor) _unaryAccessors.get(prop); if (acc != null) { try { nextProp = acc.get(instance); start++; } catch (NoSuchMethodException e) { acc = null; } } } // binary? if (acc == null) { acc = (Accessor) _binaryAccessors.get(prop); if ((acc != null) && ((start + 1) <= end)) { try { nextProp = acc.get(instance, (String) names[start + 1]); start += 2; } catch (NoSuchMethodException e) { acc = null; } catch (ClassCastException e) { // names[start + 1] was not a String, just move on // this catch is more efficient than using instanceof // since 90% of the time it really will be a string acc = null; } } else { acc = null; } } // hash? if (acc == null) { acc = _hashAccessor; try { if (acc != null) { nextProp = acc.get(instance, prop); start++; } } catch (NoSuchMethodException e) { acc = null; } } if (acc == null) { // user tried to access a property of a property that doesn't exist // ex: $TestObject.FirstName.NotThere // check if object is restricted if (isMethodRestricted(instance.getClass(), "get" + prop) || isMethodRestricted(instance.getClass(), "set" + prop)) throw new PropertyException.RestrictedPropertyException( prop, fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchPropertyException( prop, fillInName(names, start), instance.getClass().getName()); } if (start <= end) { try { return _cache.getOperator(nextProp) .getProperty(context, nextProp, names, start, end); } catch (NullPointerException e) { // $Foo.getNull().SomeProperty is what makes this happen throw new PropertyException("$" + fillInName(names, start) + " is null. Cannot access ." + names[end]); } } else { return nextProp; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
if (isMethodRestricted(instance.getClass(), "get" + prop) || isMethodRestricted(instance.getClass(), "set" + prop))
if (isMethodRestricted(instance.getClass(), "get" + propName) || isMethodRestricted(instance.getClass(), "set" + propName))
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc = null; if (names[start] instanceof String) { prop = (String) names[start]; } else if (names[start] instanceof PropertyMethod) { PropertyMethod pm = (PropertyMethod) names[start]; prop = pm.getName(); acc = (Accessor) _directAccessors.get(prop); Object[] args = pm.getArguments(context); if (acc == null) { if (isMethodRestricted(instance.getClass(), prop)) throw new PropertyException.RestrictedMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } try { nextProp = acc.get(instance, args); start++; } catch (NoSuchMethodException e) { throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } } else { prop = names[start].toString(); } // unary? if (acc == null) { acc = (Accessor) _unaryAccessors.get(prop); if (acc != null) { try { nextProp = acc.get(instance); start++; } catch (NoSuchMethodException e) { acc = null; } } } // binary? if (acc == null) { acc = (Accessor) _binaryAccessors.get(prop); if ((acc != null) && ((start + 1) <= end)) { try { nextProp = acc.get(instance, (String) names[start + 1]); start += 2; } catch (NoSuchMethodException e) { acc = null; } catch (ClassCastException e) { // names[start + 1] was not a String, just move on // this catch is more efficient than using instanceof // since 90% of the time it really will be a string acc = null; } } else { acc = null; } } // hash? if (acc == null) { acc = _hashAccessor; try { if (acc != null) { nextProp = acc.get(instance, prop); start++; } } catch (NoSuchMethodException e) { acc = null; } } if (acc == null) { // user tried to access a property of a property that doesn't exist // ex: $TestObject.FirstName.NotThere // check if object is restricted if (isMethodRestricted(instance.getClass(), "get" + prop) || isMethodRestricted(instance.getClass(), "set" + prop)) throw new PropertyException.RestrictedPropertyException( prop, fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchPropertyException( prop, fillInName(names, start), instance.getClass().getName()); } if (start <= end) { try { return _cache.getOperator(nextProp) .getProperty(context, nextProp, names, start, end); } catch (NullPointerException e) { // $Foo.getNull().SomeProperty is what makes this happen throw new PropertyException("$" + fillInName(names, start) + " is null. Cannot access ." + names[end]); } } else { return nextProp; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
prop, fillInName(names, start),
propName, fillInName(names, start),
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc = null; if (names[start] instanceof String) { prop = (String) names[start]; } else if (names[start] instanceof PropertyMethod) { PropertyMethod pm = (PropertyMethod) names[start]; prop = pm.getName(); acc = (Accessor) _directAccessors.get(prop); Object[] args = pm.getArguments(context); if (acc == null) { if (isMethodRestricted(instance.getClass(), prop)) throw new PropertyException.RestrictedMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } try { nextProp = acc.get(instance, args); start++; } catch (NoSuchMethodException e) { throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } } else { prop = names[start].toString(); } // unary? if (acc == null) { acc = (Accessor) _unaryAccessors.get(prop); if (acc != null) { try { nextProp = acc.get(instance); start++; } catch (NoSuchMethodException e) { acc = null; } } } // binary? if (acc == null) { acc = (Accessor) _binaryAccessors.get(prop); if ((acc != null) && ((start + 1) <= end)) { try { nextProp = acc.get(instance, (String) names[start + 1]); start += 2; } catch (NoSuchMethodException e) { acc = null; } catch (ClassCastException e) { // names[start + 1] was not a String, just move on // this catch is more efficient than using instanceof // since 90% of the time it really will be a string acc = null; } } else { acc = null; } } // hash? if (acc == null) { acc = _hashAccessor; try { if (acc != null) { nextProp = acc.get(instance, prop); start++; } } catch (NoSuchMethodException e) { acc = null; } } if (acc == null) { // user tried to access a property of a property that doesn't exist // ex: $TestObject.FirstName.NotThere // check if object is restricted if (isMethodRestricted(instance.getClass(), "get" + prop) || isMethodRestricted(instance.getClass(), "set" + prop)) throw new PropertyException.RestrictedPropertyException( prop, fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchPropertyException( prop, fillInName(names, start), instance.getClass().getName()); } if (start <= end) { try { return _cache.getOperator(nextProp) .getProperty(context, nextProp, names, start, end); } catch (NullPointerException e) { // $Foo.getNull().SomeProperty is what makes this happen throw new PropertyException("$" + fillInName(names, start) + " is null. Cannot access ." + names[end]); } } else { return nextProp; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
prop, fillInName(names, start),
propName, fillInName(names, start),
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc = null; if (names[start] instanceof String) { prop = (String) names[start]; } else if (names[start] instanceof PropertyMethod) { PropertyMethod pm = (PropertyMethod) names[start]; prop = pm.getName(); acc = (Accessor) _directAccessors.get(prop); Object[] args = pm.getArguments(context); if (acc == null) { if (isMethodRestricted(instance.getClass(), prop)) throw new PropertyException.RestrictedMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } try { nextProp = acc.get(instance, args); start++; } catch (NoSuchMethodException e) { throw new PropertyException.NoSuchMethodException( pm.toString(), fillInName(names, start), instance.getClass().getName()); } } else { prop = names[start].toString(); } // unary? if (acc == null) { acc = (Accessor) _unaryAccessors.get(prop); if (acc != null) { try { nextProp = acc.get(instance); start++; } catch (NoSuchMethodException e) { acc = null; } } } // binary? if (acc == null) { acc = (Accessor) _binaryAccessors.get(prop); if ((acc != null) && ((start + 1) <= end)) { try { nextProp = acc.get(instance, (String) names[start + 1]); start += 2; } catch (NoSuchMethodException e) { acc = null; } catch (ClassCastException e) { // names[start + 1] was not a String, just move on // this catch is more efficient than using instanceof // since 90% of the time it really will be a string acc = null; } } else { acc = null; } } // hash? if (acc == null) { acc = _hashAccessor; try { if (acc != null) { nextProp = acc.get(instance, prop); start++; } } catch (NoSuchMethodException e) { acc = null; } } if (acc == null) { // user tried to access a property of a property that doesn't exist // ex: $TestObject.FirstName.NotThere // check if object is restricted if (isMethodRestricted(instance.getClass(), "get" + prop) || isMethodRestricted(instance.getClass(), "set" + prop)) throw new PropertyException.RestrictedPropertyException( prop, fillInName(names, start), instance.getClass().getName()); throw new PropertyException.NoSuchPropertyException( prop, fillInName(names, start), instance.getClass().getName()); } if (start <= end) { try { return _cache.getOperator(nextProp) .getProperty(context, nextProp, names, start, end); } catch (NullPointerException e) { // $Foo.getNull().SomeProperty is what makes this happen throw new PropertyException("$" + fillInName(names, start) + " is null. Cannot access ." + names[end]); } } else { return nextProp; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java