rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
handler.removeInstance(removedExtension, objects);
handler.removeExtension(removedExtension, objects);
public void run() { try { handler.removeInstance(removedExtension, objects); } catch (Exception e) { WorkbenchPlugin.log(getClass(), "doRemove", e); //$NON-NLS-1$ } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a516ea47ab7a13ac268181f64944d0111397c56f/UIExtensionTracker.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/UIExtensionTracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 7734, 775, 288, 10792, 1838, 18, 4479, 3625, 12, 14923, 3625, 16, 2184, 1769, 7734, 289, 1044, 261, 503, 425, 13, 288, 10792, 4147, 22144, 3773, 18, 1330, 12, 588, 797, 9334, 315, 2896, 3288, 3113, 425, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 7734, 289, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 7734, 775, 288, 10792, 1838, 18, 4479, 3625, 12, 14923, 3625, 16, 2184, 1769, 7734, 289, 1044, 261, 503, 425, 13, 288, 10792, 4147, 22144, 3773, 18, 1330, 12, 588, 797, 9334, 315, 2896, 3288, 3113, 425, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 7734, 289, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
RubyObject[] rubyArgs = new RubyObject[args.length]; for (int i = 0; i < args.length; i++) { rubyArgs[i] = JavaUtil.convertJavaToRuby(getRuby(), args[i], method.getParameterTypes()[i]); }
RubyObject[] rubyArgs = JavaUtil.convertJavaArrayToRuby(getRuby(), args);
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { RubyObject result = getRuby().getNil(); RubyHash interfaceProcs = (RubyHash) getInstanceVar("interfaceProcs"); RubyString methodName = RubyString.newString(getRuby(), method.getName()); RubyObject proc; RubyObject rubyMethod; if (!(proc = interfaceProcs.aref(methodName)).isNil()) { RubyObject[] rubyArgs = new RubyObject[args.length]; for (int i = 0; i < args.length; i++) { rubyArgs[i] = JavaUtil.convertJavaToRuby(getRuby(), args[i], method.getParameterTypes()[i]); } result = ((RubyProc) proc).call(rubyArgs); } else if (!(rubyMethod = method(methodName)).isNil()) { RubyObject[] rubyArgs = new RubyObject[args.length]; for (int i = 0; i < args.length; i++) { rubyArgs[i] = JavaUtil.convertJavaToRuby(getRuby(), args[i], method.getParameterTypes()[i]); } result = ((RubyMethod) rubyMethod).call(rubyArgs); } else { RubyObject[] rubyArgs = new RubyObject[args.length + 1]; for (int i = 0; i < args.length; i++) { rubyArgs[i + 1] = JavaUtil.convertJavaToRuby(getRuby(), args[i], method.getParameterTypes()[i]); } result = funcall("send", rubyArgs); } return JavaUtil.convertRubyToJava(getRuby(), result, method.getReturnType()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a526b01cbfccc8f939ebe1c3b73363469a0bfd5/RubyJavaIObject.java/clean/org/jruby/RubyJavaIObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 4356, 12, 921, 2889, 16, 2985, 707, 16, 1033, 8526, 833, 13, 1216, 4206, 288, 3639, 19817, 921, 563, 273, 4170, 10340, 7675, 588, 12616, 5621, 3639, 19817, 2310, 1560, 626, 2143, 273, 261, 54, 10340, 2310, 13, 3694, 1537, 2932, 5831, 626, 2143, 8863, 3639, 19817, 780, 4918, 273, 19817, 780, 18, 2704, 780, 12, 588, 54, 10340, 9334, 707, 18, 17994, 10663, 3639, 19817, 921, 5418, 31, 3639, 19817, 921, 22155, 1305, 31, 3639, 309, 16051, 12, 9381, 273, 1560, 626, 2143, 18, 834, 74, 12, 2039, 461, 13, 2934, 291, 12616, 10756, 288, 5411, 19817, 921, 8526, 22155, 2615, 273, 394, 19817, 921, 63, 1968, 18, 2469, 15533, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 7734, 22155, 2615, 63, 77, 65, 273, 5110, 1304, 18, 6283, 5852, 774, 54, 10340, 12, 588, 54, 10340, 9334, 833, 63, 77, 6487, 707, 18, 588, 1662, 2016, 1435, 63, 77, 19226, 5411, 289, 5411, 563, 273, 14015, 54, 10340, 15417, 13, 5418, 2934, 1991, 12, 27768, 2615, 1769, 3639, 289, 469, 309, 16051, 12, 27768, 1305, 273, 707, 12, 2039, 461, 13, 2934, 291, 12616, 10756, 288, 5411, 19817, 921, 8526, 22155, 2615, 273, 394, 19817, 921, 63, 1968, 18, 2469, 15533, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 7734, 22155, 2615, 63, 77, 65, 273, 5110, 1304, 18, 6283, 5852, 774, 54, 10340, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 4356, 12, 921, 2889, 16, 2985, 707, 16, 1033, 8526, 833, 13, 1216, 4206, 288, 3639, 19817, 921, 563, 273, 4170, 10340, 7675, 588, 12616, 5621, 3639, 19817, 2310, 1560, 626, 2143, 273, 261, 54, 10340, 2310, 13, 3694, 1537, 2932, 5831, 626, 2143, 8863, 3639, 19817, 780, 4918, 273, 19817, 780, 18, 2704, 780, 12, 588, 54, 10340, 9334, 707, 18, 17994, 10663, 3639, 19817, 921, 5418, 31, 3639, 19817, 921, 22155, 1305, 31, 3639, 309, 16051, 12, 9381, 273, 1560, 626, 2143, 18, 834, 74, 12, 2039, 461, 13, 2934, 291, 12616, 10756, 288, 5411, 19817, 921, 8526, 22155, 2615, 273, 394, 19817, 921, 63, 1968, 18, 2469, 15533, 5411, 364, 261, 474, 277, 2 ]
return clazz.getName().endsWith(DefaultGrailsControllerClass.CONTROLLER) && !Closure.class.isAssignableFrom(clazz);
return isControllerClass(clazz.getName()) && !Closure.class.isAssignableFrom(clazz);
public static boolean isControllerClass( Class clazz ) { return clazz.getName().endsWith(DefaultGrailsControllerClass.CONTROLLER) && !Closure.class.isAssignableFrom(clazz); }
46315 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46315/991a87d4d0bde7ab8022c393fbcff8eea755f17a/GrailsClassUtils.java/buggy/grails/src/commons/org/codehaus/groovy/grails/commons/GrailsClassUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 353, 2933, 797, 12, 1659, 4003, 262, 288, 202, 202, 2463, 4003, 18, 17994, 7675, 5839, 1190, 12, 1868, 14571, 14573, 2933, 797, 18, 6067, 25353, 13, 225, 597, 401, 10573, 18, 1106, 18, 291, 7961, 1265, 12, 830, 3638, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 353, 2933, 797, 12, 1659, 4003, 262, 288, 202, 202, 2463, 4003, 18, 17994, 7675, 5839, 1190, 12, 1868, 14571, 14573, 2933, 797, 18, 6067, 25353, 13, 225, 597, 401, 10573, 18, 1106, 18, 291, 7961, 1265, 12, 830, 3638, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void setLocation(int x, int y)
public void setLocation(Point p)
public void setLocation(int x, int y) { this.x = x; this.y = y; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/24330cfb4cc445da21a71a819ce54efe764fab6e/Point.java/buggy/core/src/classpath/java/java/awt/Point.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 21751, 12, 2148, 293, 13, 225, 288, 565, 333, 18, 92, 273, 619, 31, 565, 333, 18, 93, 273, 677, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 21751, 12, 2148, 293, 13, 225, 288, 565, 333, 18, 92, 273, 619, 31, 565, 333, 18, 93, 273, 677, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
throw new RuntimeException ("DbSource \""+sourceName+"\" not found for prototype "+typename);
app.logEvent ("*** Data Source for prototype "+typename+" does not exist: "+sourceName); app.logEvent ("*** accessing or storing a "+typename+" object will cause an error.");
public synchronized void update () { table = props.getProperty ("_tablename"); idgen = props.getProperty ("_idgen"); // see if there is a field which specifies the prototype of objects, if different prototypes // can be stored in this table prototypeField = props.getProperty ("_prototypefield"); // see if this prototype extends (inherits from) any other prototype extendsProto = props.getProperty ("_extends"); String sourceName = props.getProperty ("_datasource"); if (sourceName != null) { source = app.getDbSource (sourceName); if (source == null) { // what we really want to do here is mark the DbMapping as invalid, so no data can be saved to it. throw new RuntimeException ("DbSource \""+sourceName+"\" not found for prototype "+typename); } } // id field must not be null, default is "id" idField = props.getProperty ("_id", "id"); nameField = props.getProperty ("_name"); protoField = props.getProperty ("_prototype"); String parentMapping = props.getProperty ("_parent"); if (parentMapping != null) { // comma-separated list of properties to be used as parent StringTokenizer st = new StringTokenizer (parentMapping, ",;"); parent = new ParentInfo[st.countTokens()]; for (int i=0; i<parent.length; i++) parent[i] = new ParentInfo (st.nextToken().trim()); } else parent = null; lastTypeChange = props.lastModified (); // set the cached schema & keydef to null so it's rebuilt the next time around schema = null; keydef = null; }
3798 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3798/94e086dfd8ee87fe852ada98e72c926f5ca470b1/DbMapping.java/clean/src/helma/objectmodel/DbMapping.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1089, 1832, 288, 202, 2121, 273, 3458, 18, 588, 1396, 7566, 67, 7032, 14724, 8863, 202, 350, 4507, 273, 3458, 18, 588, 1396, 7566, 67, 350, 4507, 8863, 202, 759, 2621, 309, 1915, 353, 279, 652, 1492, 11470, 326, 4409, 434, 2184, 16, 309, 3775, 450, 3307, 989, 202, 759, 848, 506, 4041, 316, 333, 1014, 202, 18541, 974, 273, 3458, 18, 588, 1396, 7566, 67, 18541, 1518, 8863, 202, 759, 2621, 309, 333, 4409, 3231, 261, 267, 20038, 628, 13, 1281, 1308, 4409, 202, 13020, 6262, 273, 3458, 18, 588, 1396, 7566, 67, 13020, 8863, 202, 202, 780, 28337, 273, 3458, 18, 588, 1396, 7566, 67, 13178, 552, 8863, 202, 430, 261, 3168, 461, 480, 446, 13, 288, 202, 565, 1084, 273, 595, 18, 588, 4331, 1830, 261, 3168, 461, 1769, 202, 565, 309, 261, 3168, 422, 446, 13, 288, 202, 3639, 368, 4121, 732, 8654, 2545, 358, 741, 2674, 353, 2267, 326, 8408, 3233, 487, 2057, 16, 1427, 1158, 501, 848, 506, 5198, 358, 518, 18, 202, 3639, 604, 394, 3235, 7566, 4331, 1830, 11843, 15, 3168, 461, 9078, 2412, 486, 1392, 364, 4409, 13773, 12846, 1069, 1769, 202, 565, 289, 202, 97, 202, 759, 612, 652, 1297, 486, 506, 446, 16, 805, 353, 315, 350, 6, 202, 350, 974, 273, 3458, 18, 588, 1396, 7566, 67, 350, 3113, 315, 350, 8863, 202, 529, 974, 273, 3458, 18, 588, 1396, 7566, 67, 529, 8863, 202, 9393, 974, 273, 3458, 18, 588, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1089, 1832, 288, 202, 2121, 273, 3458, 18, 588, 1396, 7566, 67, 7032, 14724, 8863, 202, 350, 4507, 273, 3458, 18, 588, 1396, 7566, 67, 350, 4507, 8863, 202, 759, 2621, 309, 1915, 353, 279, 652, 1492, 11470, 326, 4409, 434, 2184, 16, 309, 3775, 450, 3307, 989, 202, 759, 848, 506, 4041, 316, 333, 1014, 202, 18541, 974, 273, 3458, 18, 588, 1396, 7566, 67, 18541, 1518, 8863, 202, 759, 2621, 309, 333, 4409, 3231, 261, 267, 20038, 628, 13, 1281, 1308, 4409, 202, 13020, 6262, 273, 3458, 18, 588, 1396, 7566, 67, 13020, 8863, 202, 202, 780, 28337, 273, 3458, 18, 588, 1396, 7566, 67, 13178, 552, 8863, 202, 430, 261, 3168, 461, 2 ]
AST ast= fOriginalNode.getAST();
protected ASTRewrite getRewrite() throws CoreException { AST ast= fOriginalNode.getAST(); CompilationUnit cu= ASTResolving.findParentCompilationUnit(fOriginalNode); SimpleName node= fOriginalNode; ASTRewrite rewrite= new ASTRewrite(cu); if (fVariableKind == PARAM) { doAddParam(ast, node, rewrite); } else if (fVariableKind == FIELD) { doAddField(ast, node, rewrite); } else if (fVariableKind == LOCAL) { doAddLocal(ast, node, rewrite); } return rewrite; }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/fc19f84e4c7a5c29bdee6774cfe0acf477dc6287/NewVariableCompletionProposal.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 432, 3902, 12341, 4170, 12341, 1435, 1216, 30015, 288, 202, 202, 9053, 3364, 33, 284, 8176, 907, 18, 588, 9053, 5621, 202, 202, 19184, 2802, 15985, 33, 9183, 2903, 6282, 18, 4720, 3054, 19184, 2802, 12, 74, 8176, 907, 1769, 202, 202, 5784, 461, 756, 33, 284, 8176, 907, 31, 202, 202, 37, 3902, 12341, 10738, 33, 394, 432, 3902, 12341, 12, 6319, 1769, 9506, 202, 430, 261, 74, 3092, 5677, 422, 4655, 13, 288, 1082, 202, 2896, 986, 786, 12, 689, 16, 756, 16, 10738, 1769, 202, 202, 97, 469, 309, 261, 74, 3092, 5677, 422, 9921, 13, 288, 1082, 202, 2896, 986, 974, 12, 689, 16, 756, 16, 10738, 1769, 202, 202, 97, 469, 309, 261, 74, 3092, 5677, 422, 15234, 13, 288, 1082, 202, 2896, 986, 2042, 12, 689, 16, 756, 16, 10738, 1769, 202, 202, 97, 202, 202, 2463, 10738, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 432, 3902, 12341, 4170, 12341, 1435, 1216, 30015, 288, 202, 202, 9053, 3364, 33, 284, 8176, 907, 18, 588, 9053, 5621, 202, 202, 19184, 2802, 15985, 33, 9183, 2903, 6282, 18, 4720, 3054, 19184, 2802, 12, 74, 8176, 907, 1769, 202, 202, 5784, 461, 756, 33, 284, 8176, 907, 31, 202, 202, 37, 3902, 12341, 10738, 33, 394, 432, 3902, 12341, 12, 6319, 1769, 9506, 202, 430, 261, 74, 3092, 5677, 422, 4655, 13, 288, 1082, 202, 2896, 986, 786, 12, 689, 16, 756, 16, 10738, 1769, 202, 202, 97, 469, 309, 261, 74, 3092, 5677, 422, 9921, 13, 288, 1082, 202, 2896, 986, 974, 12, 689, 16, 756, 16, 10738, 1769, 202, 202, 97, 469, 2 ]
if (_log.shouldLog(Log.ERROR)) _log.error("Error decrypting the payload");
if (_log.shouldLog(Log.WARN)) _log.warn("Error decrypting the payload");
private Payload decryptPayload(MessagePayloadMessage msg, I2PSessionImpl session) throws DataFormatException { Payload payload = msg.getPayload(); byte[] data = _context.elGamalAESEngine().decrypt(payload.getEncryptedData(), session.getDecryptionKey()); if (data == null) { if (_log.shouldLog(Log.ERROR)) _log.error("Error decrypting the payload"); throw new DataFormatException("Unable to decrypt the payload"); } payload.setUnencryptedData(data); return payload; }
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/c17433cb9342d6d49730c0ed662f8cb0369629bb/MessagePayloadMessageHandler.java/buggy/core/java/src/net/i2p/client/MessagePayloadMessageHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 11320, 8420, 6110, 12, 1079, 6110, 1079, 1234, 16, 467, 22, 52, 2157, 2828, 1339, 13, 1216, 1910, 9291, 288, 3639, 11320, 2385, 273, 1234, 18, 588, 6110, 5621, 3639, 1160, 8526, 501, 273, 389, 2472, 18, 292, 43, 301, 287, 18436, 4410, 7675, 19790, 12, 7648, 18, 588, 14678, 751, 9334, 1339, 18, 588, 1799, 4346, 653, 10663, 3639, 309, 261, 892, 422, 446, 13, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 3589, 3719, 7734, 389, 1330, 18, 1636, 2932, 668, 8420, 310, 326, 2385, 8863, 5411, 604, 394, 1910, 9291, 2932, 3370, 358, 8420, 326, 2385, 8863, 3639, 289, 3639, 2385, 18, 542, 984, 18702, 751, 12, 892, 1769, 3639, 327, 2385, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 11320, 8420, 6110, 12, 1079, 6110, 1079, 1234, 16, 467, 22, 52, 2157, 2828, 1339, 13, 1216, 1910, 9291, 288, 3639, 11320, 2385, 273, 1234, 18, 588, 6110, 5621, 3639, 1160, 8526, 501, 273, 389, 2472, 18, 292, 43, 301, 287, 18436, 4410, 7675, 19790, 12, 7648, 18, 588, 14678, 751, 9334, 1339, 18, 588, 1799, 4346, 653, 10663, 3639, 309, 261, 892, 422, 446, 13, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 3589, 3719, 7734, 389, 1330, 18, 1636, 2932, 668, 8420, 310, 326, 2385, 8863, 5411, 604, 394, 1910, 9291, 2932, 3370, 358, 8420, 326, 2385, 8863, 3639, 289, 3639, 2385, 18, 542, 984, 18702, 751, 12, 892, 1769, 3639, 2 ]
if (!RefactoringMessageUtil.checkReadOnlyStatus(project, field)) return;
if (!CommonRefactoringUtil.checkReadOnlyStatus(project, field)) return;
public void invoke(Project project, Editor editor, PsiField field) { if (!field.isWritable()) { if (!RefactoringMessageUtil.checkReadOnlyStatus(project, field)) return; } if (!field.hasModifierProperty(PsiModifier.FINAL)) { String message = RefactoringBundle.message("0.refactoring.is.supported.only.for.final.fields", REFACTORING_NAME); CommonRefactoringUtil.showErrorMessage(REFACTORING_NAME, message, HelpID.INLINE_FIELD, project); return; } if (!field.hasInitializer()) { String message = RefactoringBundle.message("no.initializer.present.for.the.field"); CommonRefactoringUtil.showErrorMessage(REFACTORING_NAME, message, HelpID.INLINE_FIELD, project); return; } PsiSearchHelper searchHelper = PsiManager.getInstance(project).getSearchHelper(); final PsiReference[] refs = searchHelper.findReferences(field, GlobalSearchScope.projectScope(project), false); if (refs.length == 0){ String message = RefactoringBundle.message("field.0.is.never.used", field.getName()); CommonRefactoringUtil.showErrorMessage(REFACTORING_NAME, message, HelpID.INLINE_VARIABLE, project); return; } PsiReference reference = editor != null ? TargetElementUtil.findReference(editor, editor.getCaretModel().getOffset()) : null; if (reference != null && !field.equals(reference.resolve())) { reference = null; } final boolean invokedOnReference = (reference != null); if (!invokedOnReference && !field.isWritable()) { if (!RefactoringMessageUtil.checkReadOnlyStatus(project, field)) return; } PsiReferenceExpression refExpression = reference != null ? (PsiReferenceExpression)reference.getElement() : null; InlineFieldDialog dialog = new InlineFieldDialog(project, field, refExpression); dialog.show(); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/baee929cd58a1e84ca4320072f225f752948f30b/InlineConstantFieldHandler.java/buggy/source/com/intellij/refactoring/inline/InlineConstantFieldHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4356, 12, 4109, 1984, 16, 18451, 4858, 16, 453, 7722, 974, 652, 13, 288, 565, 309, 16051, 1518, 18, 291, 12061, 10756, 288, 1377, 309, 16051, 6517, 426, 3493, 6053, 1304, 18, 1893, 12066, 1482, 12, 4406, 16, 652, 3719, 327, 31, 565, 289, 565, 309, 16051, 1518, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 7263, 1013, 3719, 288, 1377, 514, 883, 273, 868, 3493, 6053, 3405, 18, 2150, 2932, 20, 18, 266, 3493, 6053, 18, 291, 18, 4127, 18, 3700, 18, 1884, 18, 6385, 18, 2821, 3113, 2438, 26835, 1360, 67, 1985, 1769, 1377, 5658, 426, 3493, 6053, 1304, 18, 4500, 14935, 12, 862, 26835, 1360, 67, 1985, 16, 883, 16, 11288, 734, 18, 706, 5997, 67, 6776, 16, 1984, 1769, 1377, 327, 31, 565, 289, 565, 309, 16051, 1518, 18, 5332, 14729, 10756, 288, 1377, 514, 883, 273, 868, 3493, 6053, 3405, 18, 2150, 2932, 2135, 18, 22181, 18, 6706, 18, 1884, 18, 5787, 18, 1518, 8863, 1377, 5658, 426, 3493, 6053, 1304, 18, 4500, 14935, 12, 862, 26835, 1360, 67, 1985, 16, 883, 16, 11288, 734, 18, 706, 5997, 67, 6776, 16, 1984, 1769, 1377, 327, 31, 565, 289, 565, 453, 7722, 2979, 2276, 1623, 2276, 273, 453, 7722, 1318, 18, 588, 1442, 12, 4406, 2934, 588, 2979, 2276, 5621, 565, 727, 453, 7722, 2404, 8526, 9047, 273, 1623, 2276, 18, 4720, 8221, 12, 1518, 16, 8510, 2979, 3876, 18, 4406, 3876, 12, 4406, 3631, 629, 1769, 565, 309, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4356, 12, 4109, 1984, 16, 18451, 4858, 16, 453, 7722, 974, 652, 13, 288, 565, 309, 16051, 1518, 18, 291, 12061, 10756, 288, 1377, 309, 16051, 6517, 426, 3493, 6053, 1304, 18, 1893, 12066, 1482, 12, 4406, 16, 652, 3719, 327, 31, 565, 289, 565, 309, 16051, 1518, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 7263, 1013, 3719, 288, 1377, 514, 883, 273, 868, 3493, 6053, 3405, 18, 2150, 2932, 20, 18, 266, 3493, 6053, 18, 291, 18, 4127, 18, 3700, 18, 1884, 18, 6385, 18, 2821, 3113, 2438, 26835, 1360, 67, 1985, 1769, 1377, 5658, 426, 3493, 6053, 1304, 18, 4500, 14935, 12, 862, 26835, 1360, 67, 1985, 16, 883, 16, 11288, 734, 2 ]
return super.getDimensionProperty( ReportItem.WIDTH_PROP );
return super.getDimensionProperty( IReportItemModel.WIDTH_PROP );
public DimensionHandle getWidth( ) { return super.getDimensionProperty( ReportItem.WIDTH_PROP ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/d802c33711e0d111551ae23575895cd060f085b6/ReportItemHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ReportItemHandle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 13037, 3259, 8557, 12, 262, 202, 95, 202, 202, 2463, 2240, 18, 588, 8611, 1396, 12, 8706, 1180, 18, 10023, 67, 15811, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 13037, 3259, 8557, 12, 262, 202, 95, 202, 202, 2463, 2240, 18, 588, 8611, 1396, 12, 8706, 1180, 18, 10023, 67, 15811, 11272, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
checkForUnderflow();
if (pos >= limit) throw new BufferUnderflowException();
public char get () { checkForUnderflow(); char result = backing_buffer [position ()]; position (position () + 1); return result; }
45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/3a3b655bdfd8b1655b2fb03ce4d742117a96705e/CharBufferImpl.java/buggy/libjava/java/nio/CharBufferImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1149, 336, 1832, 225, 288, 565, 309, 261, 917, 1545, 1800, 13, 604, 394, 3525, 14655, 2426, 503, 5621, 565, 1149, 563, 273, 15394, 67, 4106, 306, 3276, 1832, 15533, 565, 1754, 261, 3276, 1832, 397, 404, 1769, 565, 327, 563, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1149, 336, 1832, 225, 288, 565, 309, 261, 917, 1545, 1800, 13, 604, 394, 3525, 14655, 2426, 503, 5621, 565, 1149, 563, 273, 15394, 67, 4106, 306, 3276, 1832, 15533, 565, 1754, 261, 3276, 1832, 397, 404, 1769, 565, 327, 563, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
XMPPConnection connection = new XMPPConnection(server);
} catch (Exception e) { ThreadCategory.getInstance(getClass()).error(e.getMessage()); return 1; }
public int send(List arguments) { try { this.props.load(new FileInputStream(ConfigFileConstants.getFile(ConfigFileConstants.XMPP_CONFIG_FILE_NAME))); String[] parsedArgs = this.parseArguments(arguments); String server = this.props.getProperty("xmpp.server"); String user = this.props.getProperty("xmpp.user"); String pass = this.props.getProperty("xmpp.pass"); XMPPConnection connection = new XMPPConnection(server); connection.login(user, pass); connection.createChat(parsedArgs[XMPP_TO]).sendMessage(parsedArgs[XMPP_MESSAGE]); } catch (Exception e) { ThreadCategory.getInstance(getClass()).error(e.getMessage()); return 1; } return 0; }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/1ada31f0efd3e08bfa387811c19bf3f9a52faf3e/XMPPNotificationStrategy.java/clean/src/services/org/opennms/netmgt/notifd/XMPPNotificationStrategy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1366, 12, 682, 1775, 13, 288, 3639, 775, 288, 540, 202, 2211, 18, 9693, 18, 945, 12, 2704, 11907, 12, 13705, 2918, 18, 29925, 12, 13705, 2918, 18, 60, 19388, 67, 7203, 67, 3776, 67, 1985, 3719, 1769, 540, 202, 780, 8526, 2707, 2615, 273, 333, 18, 2670, 4628, 12, 7099, 1769, 540, 202, 780, 1438, 273, 333, 18, 9693, 18, 588, 1396, 2932, 92, 24109, 18, 3567, 8863, 5411, 514, 729, 282, 273, 333, 18, 9693, 18, 588, 1396, 2932, 92, 24109, 18, 1355, 8863, 5411, 514, 1342, 282, 273, 333, 18, 9693, 18, 588, 1396, 2932, 92, 24109, 18, 5466, 8863, 5411, 289, 1044, 261, 503, 425, 13, 288, 4884, 4457, 18, 588, 1442, 12, 588, 797, 1435, 2934, 1636, 12, 73, 18, 24906, 10663, 327, 404, 31, 289, 5411, 1459, 18, 5819, 12, 1355, 16, 1342, 1769, 5411, 1459, 18, 2640, 14163, 12, 10817, 2615, 63, 60, 19388, 67, 4296, 65, 2934, 4661, 1079, 12, 10817, 2615, 63, 60, 19388, 67, 8723, 19226, 3639, 289, 1044, 261, 503, 425, 13, 288, 540, 202, 3830, 4457, 18, 588, 1442, 12, 588, 797, 1435, 2934, 1636, 12, 73, 18, 24906, 10663, 540, 202, 2463, 404, 31, 3639, 289, 3639, 327, 374, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1366, 12, 682, 1775, 13, 288, 3639, 775, 288, 540, 202, 2211, 18, 9693, 18, 945, 12, 2704, 11907, 12, 13705, 2918, 18, 29925, 12, 13705, 2918, 18, 60, 19388, 67, 7203, 67, 3776, 67, 1985, 3719, 1769, 540, 202, 780, 8526, 2707, 2615, 273, 333, 18, 2670, 4628, 12, 7099, 1769, 540, 202, 780, 1438, 273, 333, 18, 9693, 18, 588, 1396, 2932, 92, 24109, 18, 3567, 8863, 5411, 514, 729, 282, 273, 333, 18, 9693, 18, 588, 1396, 2932, 92, 24109, 18, 1355, 8863, 5411, 514, 1342, 282, 273, 333, 18, 9693, 18, 588, 1396, 2932, 92, 24109, 18, 5466, 8863, 5411, 289, 1044, 261, 503, 425, 13, 288, 4884, 4457, 18, 588, 1442, 2 ]
AST tmp2467_AST_in = (AST)_t;
AST tmp2468_AST_in = (AST)_t;
public final void grant_rev_to(AST _t) throws RecognitionException { AST grant_rev_to_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TO: { AST __t2316 = _t; AST tmp2464_AST_in = (AST)_t; match(_t,TO); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PUBLIC: { AST tmp2465_AST_in = (AST)_t; match(_t,PUBLIC); _t = _t.getNextSibling(); break; } case FILENAME: { AST tmp2466_AST_in = (AST)_t; match(_t,FILENAME); _t = _t.getNextSibling(); { _loop2319: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2467_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); AST tmp2468_AST_in = (AST)_t; match(_t,FILENAME); _t = _t.getNextSibling(); } else { break _loop2319; } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } _t = __t2316; _t = _t.getNextSibling(); break; } case FROM: { AST __t2320 = _t; AST tmp2469_AST_in = (AST)_t; match(_t,FROM); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PUBLIC: { AST tmp2470_AST_in = (AST)_t; match(_t,PUBLIC); _t = _t.getNextSibling(); break; } case FILENAME: { AST tmp2471_AST_in = (AST)_t; match(_t,FILENAME); _t = _t.getNextSibling(); { _loop2323: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2472_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); AST tmp2473_AST_in = (AST)_t; match(_t,FILENAME); _t = _t.getNextSibling(); } else { break _loop2323; } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } _t = __t2320; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser03.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 7936, 67, 9083, 67, 869, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 7936, 67, 9083, 67, 869, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 8493, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 4366, 2313, 273, 389, 88, 31, 1082, 202, 9053, 1853, 3247, 1105, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 4296, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 1082, 202, 95, 1082, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 1082, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 1082, 202, 3593, 17187, 30, 1082, 202, 95, 9506, 202, 9053, 1853, 3247, 9222, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 14939, 1769, 9506, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 3593, 7527, 1985, 30, 1082, 202, 95, 9506, 202, 9053, 1853, 3247, 6028, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 16080, 1769, 9506, 202, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 7936, 67, 9083, 67, 869, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 7936, 67, 9083, 67, 869, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 8493, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 4366, 2313, 273, 389, 88, 31, 1082, 202, 9053, 1853, 3247, 1105, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 4296, 1769, 1082, 202, 2 ]
initial_hosts=createInitialHosts(str);
try { initial_hosts=createInitialHosts(str); } catch(UnknownHostException e) { if(log.isErrorEnabled()) log.error("failed constructing initial list of hosts", e); return false; }
public boolean setProperties(Properties props) { String str; str=props.getProperty("gossip_host"); if(str != null) { gossip_host=str; props.remove("gossip_host"); } str=props.getProperty("gossip_port"); if(str != null) { gossip_port=Integer.parseInt(str); props.remove("gossip_port"); } str=props.getProperty("gossip_refresh"); if(str != null) { gossip_refresh=Long.parseLong(str); props.remove("gossip_refresh"); } if(gossip_host != null && gossip_port != 0) { try { client=new GossipClient(new IpAddress(InetAddress.getByName(gossip_host), gossip_port), gossip_refresh); } catch(Exception e) { if(log.isErrorEnabled()) log.error("creation of GossipClient failed, exception=" + e); return false; // will cause stack creation to abort } } str=props.getProperty("port_range"); // if member cannot be contacted on base port, if(str != null) { // how many times can we increment the port port_range=Integer.parseInt(str); if(port_range < 1) { port_range=1; } props.remove("port_range"); } str=props.getProperty("initial_hosts"); if(str != null) { props.remove("initial_hosts"); initial_hosts=createInitialHosts(str); } return super.setProperties(props); }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/497094902213c9673fd6b23407e81740ccf528dd/PING.java/clean/src/org/jgroups/protocols/PING.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 23126, 12, 2297, 3458, 13, 288, 3639, 514, 609, 31, 3639, 609, 33, 9693, 18, 588, 1396, 2932, 75, 15616, 67, 2564, 8863, 3639, 309, 12, 701, 480, 446, 13, 288, 5411, 25625, 67, 2564, 33, 701, 31, 5411, 3458, 18, 4479, 2932, 75, 15616, 67, 2564, 8863, 3639, 289, 3639, 609, 33, 9693, 18, 588, 1396, 2932, 75, 15616, 67, 655, 8863, 3639, 309, 12, 701, 480, 446, 13, 288, 5411, 25625, 67, 655, 33, 4522, 18, 2670, 1702, 12, 701, 1769, 5411, 3458, 18, 4479, 2932, 75, 15616, 67, 655, 8863, 3639, 289, 3639, 609, 33, 9693, 18, 588, 1396, 2932, 75, 15616, 67, 9144, 8863, 3639, 309, 12, 701, 480, 446, 13, 288, 5411, 25625, 67, 9144, 33, 3708, 18, 2670, 3708, 12, 701, 1769, 5411, 3458, 18, 4479, 2932, 75, 15616, 67, 9144, 8863, 3639, 289, 3639, 309, 12, 75, 15616, 67, 2564, 480, 446, 597, 25625, 67, 655, 480, 374, 13, 288, 5411, 775, 288, 7734, 1004, 33, 2704, 30263, 1227, 12, 2704, 14709, 1887, 12, 382, 278, 1887, 18, 588, 5911, 12, 75, 15616, 67, 2564, 3631, 25625, 67, 655, 3631, 25625, 67, 9144, 1769, 5411, 289, 5411, 1044, 12, 503, 425, 13, 288, 7734, 309, 12, 1330, 18, 291, 668, 1526, 10756, 613, 18, 1636, 2932, 17169, 434, 30263, 1227, 2535, 16, 1520, 1546, 397, 425, 1769, 7734, 327, 629, 31, 368, 903, 4620, 2110, 6710, 358, 6263, 5411, 289, 3639, 289, 3639, 609, 33, 9693, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 23126, 12, 2297, 3458, 13, 288, 3639, 514, 609, 31, 3639, 609, 33, 9693, 18, 588, 1396, 2932, 75, 15616, 67, 2564, 8863, 3639, 309, 12, 701, 480, 446, 13, 288, 5411, 25625, 67, 2564, 33, 701, 31, 5411, 3458, 18, 4479, 2932, 75, 15616, 67, 2564, 8863, 3639, 289, 3639, 609, 33, 9693, 18, 588, 1396, 2932, 75, 15616, 67, 655, 8863, 3639, 309, 12, 701, 480, 446, 13, 288, 5411, 25625, 67, 655, 33, 4522, 18, 2670, 1702, 12, 701, 1769, 5411, 3458, 18, 4479, 2932, 75, 15616, 67, 655, 8863, 3639, 289, 3639, 609, 33, 9693, 18, 588, 1396, 2932, 75, 15616, 67, 9144, 8863, 3639, 309, 12, 701, 480, 446, 13, 288, 2 ]
lineSeparator = (String) System.getProperty("line.separator");
lineSeparator = (String) System.getProperty("line.separator");
public ReaderThread(ThreadGroup group, String name, InputStream in, OutputStream out) { super(group, name); fOutputStream= out; fInputStream= in; setDaemon(true); lineSeparator = (String) System.getProperty("line.separator"); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/74206bb9c0adfac164644b684d089bbdf8757013/ProcessClosure.java/buggy/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/ProcessClosure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 5393, 3830, 12, 3830, 1114, 1041, 16, 514, 508, 16, 5037, 316, 16, 8962, 596, 13, 288, 1082, 202, 9565, 12, 1655, 16, 508, 1769, 1082, 202, 74, 4632, 33, 596, 31, 1082, 202, 74, 4348, 33, 316, 31, 1082, 202, 542, 12858, 12, 3767, 1769, 1082, 202, 1369, 6581, 273, 202, 12, 780, 13, 2332, 18, 588, 1396, 2932, 1369, 18, 11287, 8863, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 5393, 3830, 12, 3830, 1114, 1041, 16, 514, 508, 16, 5037, 316, 16, 8962, 596, 13, 288, 1082, 202, 9565, 12, 1655, 16, 508, 1769, 1082, 202, 74, 4632, 33, 596, 31, 1082, 202, 74, 4348, 33, 316, 31, 1082, 202, 542, 12858, 12, 3767, 1769, 1082, 202, 1369, 6581, 273, 202, 12, 780, 13, 2332, 18, 588, 1396, 2932, 1369, 18, 11287, 8863, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if(!((WholeMethodPosition) pos).container.getName().equals(SootMethod.constructorName)) return null; return new PreinitializationShadowMatch();
SootMethod container=((WholeMethodPosition) pos).container; if(!container.getName().equals(SootMethod.constructorName)) return null; return new PreinitializationShadowMatch(container);
public static PreinitializationShadowMatch matchesAt(MethodPosition pos) { if(!(pos instanceof WholeMethodPosition)) return null; if(!((WholeMethodPosition) pos).container.getName().equals(SootMethod.constructorName)) return null; return new PreinitializationShadowMatch(); }
236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/d45218d3f23409f4835ce8be423b29bea3a0207f/PreinitializationShadowMatch.java/buggy/aop/abc/src/abc/weaving/matching/PreinitializationShadowMatch.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2962, 6769, 1588, 12957, 2060, 1885, 861, 12, 1305, 2555, 949, 13, 288, 202, 430, 12, 5, 12, 917, 1276, 3497, 790, 1305, 2555, 3719, 327, 446, 31, 202, 430, 12, 5, 12443, 2888, 790, 1305, 2555, 13, 949, 2934, 3782, 18, 17994, 7675, 14963, 12, 55, 1632, 1305, 18, 12316, 461, 3719, 327, 446, 31, 202, 2463, 394, 2962, 6769, 1588, 12957, 2060, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2962, 6769, 1588, 12957, 2060, 1885, 861, 12, 1305, 2555, 949, 13, 288, 202, 430, 12, 5, 12, 917, 1276, 3497, 790, 1305, 2555, 3719, 327, 446, 31, 202, 430, 12, 5, 12443, 2888, 790, 1305, 2555, 13, 949, 2934, 3782, 18, 17994, 7675, 14963, 12, 55, 1632, 1305, 18, 12316, 461, 3719, 327, 446, 31, 202, 2463, 394, 2962, 6769, 1588, 12957, 2060, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
int count = cmodel.getConversationCount(null);
int count = cmodel.getConversationCount();
public void removeSearch(String description) { _model.removeSearch(description); ConversationModel cmodel = _frameworkModel.getConversationModel(); int count = cmodel.getConversationCount(null); for (int i=0; i<count; i++) { ConversationID id = cmodel.getConversationAt(null, i); _model.setSearchMatch(id, description, false); } saveSearches(); }
8554 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8554/5cd0631e882b72a5ed80c126194f77856e1d210a/Search.java/buggy/src/org/owasp/webscarab/plugin/search/Search.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 2979, 12, 780, 2477, 13, 288, 3639, 389, 2284, 18, 4479, 2979, 12, 3384, 1769, 3639, 16765, 1488, 276, 2284, 273, 389, 12303, 1488, 18, 588, 15717, 1488, 5621, 3639, 509, 1056, 273, 276, 2284, 18, 588, 15717, 1380, 5621, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 1883, 31, 277, 27245, 288, 5411, 16765, 734, 612, 273, 276, 2284, 18, 588, 15717, 861, 12, 2011, 16, 277, 1769, 5411, 389, 2284, 18, 542, 2979, 2060, 12, 350, 16, 2477, 16, 629, 1769, 3639, 289, 3639, 1923, 16294, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 2979, 12, 780, 2477, 13, 288, 3639, 389, 2284, 18, 4479, 2979, 12, 3384, 1769, 3639, 16765, 1488, 276, 2284, 273, 389, 12303, 1488, 18, 588, 15717, 1488, 5621, 3639, 509, 1056, 273, 276, 2284, 18, 588, 15717, 1380, 5621, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 1883, 31, 277, 27245, 288, 5411, 16765, 734, 612, 273, 276, 2284, 18, 588, 15717, 861, 12, 2011, 16, 277, 1769, 5411, 389, 2284, 18, 542, 2979, 2060, 12, 350, 16, 2477, 16, 629, 1769, 3639, 289, 3639, 1923, 16294, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception { FileUpload fileUpload = (FileUpload) command; MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; CommonsMultipartFile file = (CommonsMultipartFile) multipartRequest.getFile("file"); // the directory to upload to String uploadDir = getServletContext().getRealPath("/resources") + "/" + request.getRemoteUser() + "/"; // Create the directory if it doesn't exist File dirPath = new File(uploadDir); if (!dirPath.exists()) { dirPath.mkdirs(); } //retrieve the file data InputStream stream = file.getInputStream(); //write the file to the file specified OutputStream bos = new FileOutputStream(uploadDir + file.getOriginalFilename()); int bytesRead = 0; byte[] buffer = new byte[8192]; while ((bytesRead = stream.read(buffer, 0, 8192)) != -1) { bos.write(buffer, 0, bytesRead); } bos.close(); //close the stream stream.close(); // place the data into the request for retrieval on next page request.setAttribute("friendlyName", fileUpload.getName()); request.setAttribute("fileName", file.getOriginalFilename()); request.setAttribute("contentType", file.getContentType()); request.setAttribute("size", file.getSize() + " bytes"); request.setAttribute("location", dirPath.getAbsolutePath() + Constants.FILE_SEP + file.getOriginalFilename()); String link = request.getContextPath() + "/resources" + "/" + request.getRemoteUser() + "/"; request.setAttribute("link", link + file.getOriginalFilename()); return new ModelAndView(getSuccessView()); }
3521 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3521/80008e99696cfc1bbb4ada81a3ec1e25b70a36be/FileUploadController.java/clean/extras/spring/src/web/org/appfuse/webapp/action/FileUploadController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3164, 1876, 1767, 603, 11620, 12, 2940, 18572, 590, 16, 4766, 12446, 766, 16, 1033, 1296, 16, 4766, 6936, 503, 1334, 13, 565, 1216, 1185, 288, 2398, 202, 812, 4777, 585, 4777, 273, 261, 812, 4777, 13, 1296, 31, 3639, 19919, 2940, 18572, 10263, 691, 273, 261, 12024, 2940, 18572, 13, 590, 31, 3639, 5658, 87, 12024, 812, 585, 273, 261, 6517, 87, 12024, 812, 13, 10263, 691, 18, 29925, 2932, 768, 8863, 7734, 368, 326, 1867, 358, 3617, 358, 3639, 514, 3617, 1621, 273, 5411, 29015, 7675, 588, 6955, 743, 2932, 19, 4683, 7923, 397, 4016, 397, 5411, 590, 18, 588, 5169, 1299, 1435, 397, 4016, 31, 3639, 368, 1788, 326, 1867, 309, 518, 3302, 1404, 1005, 3639, 1387, 15891, 273, 394, 1387, 12, 6327, 1621, 1769, 3639, 309, 16051, 1214, 743, 18, 1808, 10756, 288, 5411, 15891, 18, 24816, 8291, 5621, 3639, 289, 3639, 368, 17466, 326, 585, 501, 3639, 5037, 1407, 273, 585, 18, 588, 4348, 5621, 3639, 368, 2626, 326, 585, 358, 326, 585, 1269, 3639, 8962, 23904, 273, 394, 12942, 12, 6327, 1621, 397, 585, 18, 588, 8176, 5359, 10663, 3639, 509, 17244, 273, 374, 31, 3639, 1160, 8526, 1613, 273, 394, 1160, 63, 28, 15561, 15533, 3639, 1323, 14015, 3890, 1994, 273, 1407, 18, 896, 12, 4106, 16, 374, 16, 26730, 3719, 480, 300, 21, 13, 288, 5411, 23904, 18, 2626, 12, 4106, 16, 374, 16, 17244, 1769, 3639, 289, 3639, 23904, 18, 4412, 5621, 3639, 368, 4412, 326, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3164, 1876, 1767, 603, 11620, 12, 2940, 18572, 590, 16, 4766, 12446, 766, 16, 1033, 1296, 16, 4766, 6936, 503, 1334, 13, 565, 1216, 1185, 288, 2398, 202, 812, 4777, 585, 4777, 273, 261, 812, 4777, 13, 1296, 31, 3639, 19919, 2940, 18572, 10263, 691, 273, 261, 12024, 2940, 18572, 13, 590, 31, 3639, 5658, 87, 12024, 812, 585, 273, 261, 6517, 87, 12024, 812, 13, 10263, 691, 18, 29925, 2932, 768, 8863, 7734, 368, 326, 1867, 358, 3617, 358, 3639, 514, 3617, 1621, 273, 5411, 29015, 7675, 588, 6955, 743, 2932, 19, 4683, 7923, 397, 4016, 397, 5411, 590, 18, 588, 5169, 1299, 1435, 397, 4016, 31, 3639, 368, 1788, 326, 1867, 309, 518, 3302, 1404, 2 ]
if (recipes.size() != 0) { Iterator metIter = recipes.iterator(); while (metIter.hasNext()) { DbRecipe dbRecipe = (DbRecipe) metIter.next(); RecipeComponent mc = createRecipeComponent(dbRecipe.name, dbRecipe.cls); setRecipeComponentProperties(dbRecipe, mc); AgentComponent[] recagents = mc.getAgents(); if (recagents != null && recagents.length > 0) { for (int i = 0; i < recagents.length; i++) { if (! agents.contains(recagents[i]) ) agents.add(recagents[i]); } } experiment.addRecipe(mc); if (!recipeNames.contains(mc.getRecipeName())) { addRecipeToWorkspace(mc, node); } } }
private void createCMTExperiment(DefaultMutableTreeNode node, String originalExperimentName, String experimentName, String experimentId, String trialId) {// private void createCMTExperiment(DefaultMutableTreeNode node,// String originalExperimentName,// String experimentName,// String experimentId,// String trialId,// boolean isCloned) { // System.out.println("Creating society"); // get assembly ids for trial ArrayList assemblyIds = getTrialAssemblyIds(experimentId, trialId); String assemblyMatch = getAssemblyMatch(assemblyIds); // get nodes for trial ArrayList nodes = getNodes(trialId, assemblyMatch); ArrayList hosts = getHosts(trialId, assemblyMatch); CMTSociety soc = null; if (assemblyIds.size() != 0) { soc = new CMTSociety(assemblyIds); soc.initProperties(); } else { // We need to create a new trial. // Need to have the experiment id, trial id, and multiplicity // for the call that will generate the assembly here. System.out.println("No assemblies for: " + experimentId + " " + trialId); return; // creating an experiment from scratch not implemented yet } Experiment experiment = new Experiment((String)experimentName, experimentId, trialId); // The following is ugly setDefaultNodeArguments(experiment, assemblyMatch, ComponentData.SOCIETY + "|" + originalExperimentName); // experiment.setCloned(isCloned); //to hold all potential agents List agents = new ArrayList(); List recipes = checkForRecipes(trialId, experimentId); AgentComponent[] socagents = soc.getAgents(); if (socagents!= null && socagents.length > 0) { for (int i = 0; i < socagents.length; i++) { AgentComponent ac = socagents[i]; setComponentProperties((ConfigurableComponent) ac, ac.getShortName(), assemblyMatch); } agents.addAll(Arrays.asList(socagents)); } if (recipes.size() != 0) { Iterator metIter = recipes.iterator(); while (metIter.hasNext()) { DbRecipe dbRecipe = (DbRecipe) metIter.next(); RecipeComponent mc = createRecipeComponent(dbRecipe.name, dbRecipe.cls); setRecipeComponentProperties(dbRecipe, mc); AgentComponent[] recagents = mc.getAgents(); if (recagents != null && recagents.length > 0) { // Only add in agents that aren't already there for (int i = 0; i < recagents.length; i++) { if (! agents.contains(recagents[i]) ) agents.add(recagents[i]); } // agents.addAll(Arrays.asList(recagents)); } experiment.addRecipe(mc); if (!recipeNames.contains(mc.getRecipeName())) { addRecipeToWorkspace(mc, node); } } } AgentComponent[] allagents = (AgentComponent[])agents.toArray(new AgentComponent[agents.size()]); experiment.addSocietyComponent((SocietyComponent)soc); // Add all Nodes. addAgents(experiment, nodes, allagents, trialId, assemblyMatch); // Add all Hosts. Iterator hostIter = hosts.iterator(); while (hostIter.hasNext()) { String hostName = (String) hostIter.next(); HostComponent hc = experiment.addHost(hostName); setComponentProperties((ConfigurableComponent) hc, hostName, assemblyMatch); } mapNodesToHosts(experiment, assemblyMatch); workspace.setSelection(addExperimentToWorkspace(experiment, node)); // if the experiment hasn't been cloned, then save it so it's runnable// if (!isCloned) {// experiment.saveToDb(saveToDbConflictHandler);// } // if the experiment is not in the database, then save it so its runnable try { if (!ExperimentDB.isExperimentNameInDatabase(experimentName)) experiment.saveToDb(saveToDbConflictHandler); } catch (RuntimeException e) { System.err.println(e); } }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/1889753b121dc64c94396a08df02a1fa122016f3/Organizer.java/clean/csmart/src/org/cougaar/tools/csmart/ui/viewer/Organizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 752, 39, 6152, 22338, 12, 1868, 19536, 12513, 756, 16, 4766, 282, 514, 2282, 22338, 461, 16, 4766, 282, 514, 8724, 461, 16, 4766, 282, 514, 8724, 548, 16, 4766, 282, 514, 12950, 548, 13, 288, 759, 565, 3238, 918, 752, 39, 6152, 22338, 12, 1868, 19536, 12513, 756, 16, 759, 19694, 514, 2282, 22338, 461, 16, 759, 19694, 514, 8724, 461, 16, 759, 19694, 514, 8724, 548, 16, 759, 19694, 514, 12950, 548, 16, 759, 19694, 1250, 353, 2009, 8184, 13, 288, 565, 368, 565, 2332, 18, 659, 18, 8222, 2932, 11092, 272, 1882, 14369, 8863, 565, 368, 336, 19931, 3258, 364, 12950, 565, 2407, 19931, 2673, 273, 3181, 566, 287, 24368, 2673, 12, 18142, 548, 16, 12950, 548, 1769, 565, 514, 19931, 2060, 273, 13122, 11534, 2060, 12, 28050, 2673, 1769, 565, 368, 336, 2199, 364, 12950, 565, 2407, 2199, 273, 24495, 12, 17493, 548, 16, 19931, 2060, 1769, 565, 2407, 7206, 273, 8580, 87, 12, 17493, 548, 16, 19931, 2060, 1769, 565, 385, 6152, 55, 1882, 14369, 30904, 273, 446, 31, 565, 309, 261, 28050, 2673, 18, 1467, 1435, 480, 374, 13, 288, 1377, 30904, 273, 394, 385, 6152, 55, 1882, 14369, 12, 28050, 2673, 1769, 5411, 30904, 18, 2738, 2297, 5621, 565, 289, 469, 288, 368, 1660, 1608, 358, 752, 279, 394, 12950, 18, 1377, 368, 12324, 358, 1240, 326, 8724, 612, 16, 12950, 612, 16, 471, 3309, 20458, 1377, 368, 364, 326, 745, 716, 903, 2103, 326, 19931, 2674, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 752, 39, 6152, 22338, 12, 1868, 19536, 12513, 756, 16, 4766, 282, 514, 2282, 22338, 461, 16, 4766, 282, 514, 8724, 461, 16, 4766, 282, 514, 8724, 548, 16, 4766, 282, 514, 12950, 548, 13, 288, 759, 565, 3238, 918, 752, 39, 6152, 22338, 12, 1868, 19536, 12513, 756, 16, 759, 19694, 514, 2282, 22338, 461, 16, 759, 19694, 514, 8724, 461, 16, 759, 19694, 514, 8724, 548, 16, 759, 19694, 514, 12950, 548, 16, 759, 19694, 1250, 353, 2009, 8184, 13, 288, 565, 368, 565, 2332, 18, 659, 18, 8222, 2932, 11092, 272, 1882, 14369, 8863, 565, 368, 336, 19931, 3258, 364, 12950, 565, 2407, 19931, 2673, 273, 3181, 566, 287, 24368, 2673, 12, 18142, 2 ]
actionList.add( null );
actionList.add( null );
protected List getItems( ) { ArrayList actionList = new ArrayList( ); StyleHandle currentStyle = getStyleHandle( ); ApplyStyleAction reset = new ApplyStyleAction( null ); reset.setSelection( getSelection( ) ); reset.setChecked( currentStyle == null ); actionList.add( reset ); actionList.add( null );//Adds separator Iterator iterator = DEUtil.getStyles(); if(iterator!=null) { while ( iterator.hasNext( ) ) { SharedStyleHandle handle = (SharedStyleHandle) iterator.next( ); if ( !handle.isPredefined( ) ) { ApplyStyleAction action = new ApplyStyleAction( handle ); action.setSelection( getSelection( ) ); action.setChecked( currentStyle == handle ); actionList.add( action ); } } } return actionList; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/682c38b50c5ceb9f9e26d1868e85fa2221d269ce/ApplyStyleMenuAction.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/actions/ApplyStyleMenuAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 987, 15515, 12, 262, 202, 95, 202, 202, 19558, 1301, 682, 273, 394, 2407, 12, 11272, 202, 202, 2885, 3259, 783, 2885, 273, 14210, 3259, 12, 11272, 202, 202, 7001, 2885, 1803, 2715, 273, 394, 5534, 2885, 1803, 12, 446, 11272, 202, 202, 6208, 18, 542, 6233, 12, 23204, 12, 262, 11272, 202, 202, 6208, 18, 542, 11454, 12, 783, 2885, 422, 446, 11272, 202, 202, 1128, 682, 18, 1289, 12, 2715, 11272, 202, 202, 1128, 682, 18, 1289, 12, 446, 11272, 759, 3655, 4182, 202, 202, 3198, 2775, 273, 2030, 1304, 18, 588, 9725, 5621, 202, 202, 430, 12, 9838, 5, 33, 2011, 13, 202, 202, 95, 1082, 202, 17523, 261, 2775, 18, 5332, 2134, 12, 262, 262, 1082, 202, 95, 9506, 202, 7887, 2885, 3259, 1640, 273, 261, 7887, 2885, 3259, 13, 2775, 18, 4285, 12, 11272, 9506, 202, 430, 261, 401, 4110, 18, 291, 1386, 2178, 12, 262, 262, 9506, 202, 95, 6862, 202, 7001, 2885, 1803, 1301, 273, 394, 5534, 2885, 1803, 12, 1640, 11272, 6862, 202, 1128, 18, 542, 6233, 12, 23204, 12, 262, 11272, 6862, 202, 1128, 18, 542, 11454, 12, 783, 2885, 422, 1640, 11272, 6862, 202, 1128, 682, 18, 1289, 12, 1301, 11272, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 1301, 682, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 987, 15515, 12, 262, 202, 95, 202, 202, 19558, 1301, 682, 273, 394, 2407, 12, 11272, 202, 202, 2885, 3259, 783, 2885, 273, 14210, 3259, 12, 11272, 202, 202, 7001, 2885, 1803, 2715, 273, 394, 5534, 2885, 1803, 12, 446, 11272, 202, 202, 6208, 18, 542, 6233, 12, 23204, 12, 262, 11272, 202, 202, 6208, 18, 542, 11454, 12, 783, 2885, 422, 446, 11272, 202, 202, 1128, 682, 18, 1289, 12, 2715, 11272, 202, 202, 1128, 682, 18, 1289, 12, 446, 11272, 759, 3655, 4182, 202, 202, 3198, 2775, 273, 2030, 1304, 18, 588, 9725, 5621, 202, 202, 430, 12, 9838, 5, 33, 2011, 13, 202, 202, 95, 1082, 202, 17523, 261, 2775, 18, 5332, 2134, 2 ]
protected int sizeResources(SessionState state) { String mode = (String) state.getAttribute(STATE_MODE); String contextString = (String) state.getAttribute(STATE_CONTEXT_STRING); // all the resources for paging List returnResources = new Vector(); boolean allowAddAssignment = AssignmentService.allowAddAssignment(contextString); if (mode.equalsIgnoreCase(MODE_LIST_ASSIGNMENTS)) { String view = ""; if (state.getAttribute(STATE_SELECTED_VIEW) != null) { view = (String) state.getAttribute(STATE_SELECTED_VIEW); } if (allowAddAssignment && view.equals(MODE_LIST_ASSIGNMENTS)) { // read all Assignments returnResources = AssignmentService.getListAssignmentsForContext((String) state .getAttribute(STATE_CONTEXT_STRING)); } else if (allowAddAssignment && view.equals(MODE_STUDENT_VIEW) || !allowAddAssignment) { // in the student list view of assignments Iterator assignments = AssignmentService .getAssignmentsForContext(contextString); Time currentTime = TimeService.newTime(); while (assignments.hasNext()) { Assignment a = (Assignment) assignments.next(); try { String deleted = a.getProperties().getProperty(ResourceProperties.PROP_ASSIGNMENT_DELETED); if (deleted == null || deleted.equals("")) { // show not deleted assignments Time openTime = a.getOpenTime(); if (openTime != null && currentTime.after(openTime) && !a.getDraft()) { returnResources.add(a); } } else if (deleted.equalsIgnoreCase(Boolean.TRUE.toString()) && AssignmentService.getSubmission(a.getReference(), (User) state .getAttribute(STATE_USER)) != null) { // and those deleted assignments but the user has made submissions to them returnResources.add(a); } } catch (IdUnusedException e) { addAlert(state, rb.getString("cannotfin3")); } catch (PermissionException e) { addAlert(state, rb.getString("youarenot14")); } } } } else if (mode.equalsIgnoreCase(MODE_INSTRUCTOR_REPORT_SUBMISSIONS)) { Vector submissions = new Vector(); Vector assignments = iterator_to_vector(AssignmentService.getAssignmentsForContext((String) state .getAttribute(STATE_CONTEXT_STRING))); if (assignments.size() > 0) { // users = AssignmentService.allowAddSubmissionUsers (((Assignment)assignments.get(0)).getReference ()); } for (int j = 0; j < assignments.size(); j++) { Assignment a = (Assignment) assignments.get(j); String deleted = a.getProperties().getProperty(ResourceProperties.PROP_ASSIGNMENT_DELETED); if ((deleted == null || deleted.equals("")) && (!a.getDraft())) { try { Vector assignmentSubmissions = iterator_to_vector(AssignmentService.getSubmissions(a)); for (int k = 0; k < assignmentSubmissions.size(); k++) { AssignmentSubmission s = (AssignmentSubmission) assignmentSubmissions.get(k); if (s != null && (s.getSubmitted() || (s.getReturned() && (s.getTimeLastModified().before(s .getTimeReturned()))))) { // has been subitted or has been returned and not work on it yet submissions.add(s); } // if-else } } catch (Exception e) { } } } returnResources = submissions; } else if (mode.equalsIgnoreCase(MODE_INSTRUCTOR_GRADE_ASSIGNMENT)) { try { Assignment a = AssignmentService.getAssignment((String) state.getAttribute(EXPORT_ASSIGNMENT_REF)); Iterator submissionsIterator = AssignmentService.getSubmissions(a); List submissions = new Vector(); while (submissionsIterator.hasNext()) { submissions.add(submissionsIterator.next()); } // get all active site users String authzGroupId = SiteService.siteReference(contextString); // all users that can submit List allowAddSubmissionUsers = AssignmentService.allowAddSubmissionUsers((String) state.getAttribute(EXPORT_ASSIGNMENT_REF)); try { AuthzGroup group = AuthzGroupService.getAuthzGroup(authzGroupId); Set grants = group.getUsers(); for (Iterator iUserIds = grants.iterator(); iUserIds.hasNext();) { String userId = (String) iUserIds.next(); try { User u = UserDirectoryService.getUser(userId); // only include those users that can submit to this assignment if (allowAddSubmissionUsers.contains(u)) { boolean found = false; for (int i = 0; !found && i<submissions.size();i++) { AssignmentSubmission s = (AssignmentSubmission) submissions.get(i); if (s.getSubmitterIds().contains(userId)) { returnResources.add(new UserSubmission(u, s)); found = true; } } // add those users who haven't made any submissions if (!found) { returnResources.add(new UserSubmission(u, null)); } } } catch (Exception e) { Log.warn("chef", this + e.getMessage() + " userId = " + userId); } } } catch (Exception e) { Log.warn("chef", e.getMessage() + " authGroupId=" + authzGroupId); } } catch (IdUnusedException e) { addAlert(state, rb.getString("cannotfin3")); } catch (PermissionException e) { addAlert(state, rb.getString("youarenot14")); } } // sort them all String ascending = "true"; String sort = ""; if (mode.equalsIgnoreCase(MODE_INSTRUCTOR_GRADE_ASSIGNMENT)) { ascending = (String) state.getAttribute(SORTED_GRADE_SUBMISSION_ASC); sort = (String) state.getAttribute(SORTED_GRADE_SUBMISSION_BY); } else if (mode.equalsIgnoreCase(MODE_INSTRUCTOR_REPORT_SUBMISSIONS)) { ascending = (String) state.getAttribute(SORTED_SUBMISSION_ASC); sort = (String) state.getAttribute(SORTED_SUBMISSION_BY); } else { ascending = (String) state.getAttribute(SORTED_ASC); sort = (String) state.getAttribute(SORTED_BY); } if ((returnResources.size() > 1) && !mode.equalsIgnoreCase(MODE_INSTRUCTOR_VIEW_STUDENTS_ASSIGNMENT)) { Collections.sort(returnResources, new AssignmentComparator(state, sort, ascending)); } // record the total item number state.setAttribute(STATE_PAGEING_TOTAL_ITEMS, returnResources); return returnResources.size(); }
54270 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54270/90f9fbd9d2aefbde92121700e7d5a732c5f66165/AssignmentAction.java/clean/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 509, 963, 3805, 12, 2157, 1119, 919, 13, 202, 95, 202, 202, 780, 1965, 273, 261, 780, 13, 919, 18, 588, 1499, 12, 7998, 67, 7038, 1769, 202, 202, 780, 819, 780, 273, 261, 780, 13, 919, 18, 588, 1499, 12, 7998, 67, 13181, 67, 5804, 1769, 202, 202, 759, 777, 326, 2703, 364, 17859, 202, 202, 682, 327, 3805, 273, 394, 5589, 5621, 202, 202, 6494, 1699, 986, 7729, 273, 15499, 1179, 18, 5965, 986, 7729, 12, 2472, 780, 1769, 202, 202, 430, 261, 3188, 18, 14963, 5556, 12, 7038, 67, 7085, 67, 23289, 3212, 55, 3719, 202, 202, 95, 1082, 202, 780, 1476, 273, 1408, 31, 1082, 202, 430, 261, 2019, 18, 588, 1499, 12, 7998, 67, 4803, 2056, 67, 12145, 13, 480, 446, 13, 1082, 202, 95, 9506, 202, 1945, 273, 261, 780, 13, 919, 18, 588, 1499, 12, 7998, 67, 4803, 2056, 67, 12145, 1769, 1082, 202, 97, 1082, 202, 430, 261, 5965, 986, 7729, 597, 1476, 18, 14963, 12, 7038, 67, 7085, 67, 23289, 3212, 55, 3719, 1082, 202, 95, 9506, 202, 759, 855, 777, 12093, 1346, 9506, 202, 2463, 3805, 273, 15499, 1179, 18, 588, 682, 18628, 1290, 1042, 12443, 780, 13, 919, 25083, 202, 18, 588, 1499, 12, 7998, 67, 13181, 67, 5804, 10019, 1082, 202, 97, 1082, 202, 12107, 309, 261, 5965, 986, 7729, 597, 1476, 18, 14963, 12, 7038, 67, 882, 12587, 2222, 67, 12145, 13, 6862, 202, 20081, 401, 5965, 986, 7729, 13, 1082, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 509, 963, 3805, 12, 2157, 1119, 919, 13, 202, 95, 202, 202, 780, 1965, 273, 261, 780, 13, 919, 18, 588, 1499, 12, 7998, 67, 7038, 1769, 202, 202, 780, 819, 780, 273, 261, 780, 13, 919, 18, 588, 1499, 12, 7998, 67, 13181, 67, 5804, 1769, 202, 202, 759, 777, 326, 2703, 364, 17859, 202, 202, 682, 327, 3805, 273, 394, 5589, 5621, 202, 202, 6494, 1699, 986, 7729, 273, 15499, 1179, 18, 5965, 986, 7729, 12, 2472, 780, 1769, 202, 202, 430, 261, 3188, 18, 14963, 5556, 12, 7038, 67, 7085, 67, 23289, 3212, 55, 3719, 202, 202, 95, 1082, 202, 780, 1476, 273, 1408, 31, 1082, 202, 430, 261, 2019, 18, 588, 1499, 2 ]
} });
} });
public EMWindow (String title, String binDir, String url, int winnum, EmbeddedMozilla Creator) { super(title); popup = new PopupMenu(); creator = Creator; currentURL = url; winNum = winnum; myBinDir = binDir; System.out.println("constructed with binDir: " + binDir + " url: " + url); setSize(defaultWidth, defaultHeight); // Create the Menu Bar menuBar = new MenuBar(); this.setMenuBar(menuBar); Menu fileMenu = new Menu("File"); Menu viewMenu = new Menu("View"); Menu searchMenu = new Menu("Search"); Menu editMenu = new Menu("Edit"); MenuItem newItem = new MenuItem("New Window"); MenuItem closeItem = new MenuItem("Close"); MenuItem findItem = new MenuItem("Find"); MenuItem findNextItem = new MenuItem("Find Next"); MenuItem sourceItem = new MenuItem("View Page Source as String"); MenuItem pageInfoItem = new MenuItem("View Page Info"); MenuItem selectAllItem = new MenuItem("Select All"); MenuItem copyItem = new MenuItem("Copy"); menuBar.add(fileMenu); menuBar.add(viewMenu); menuBar.add(searchMenu); menuBar.add(editMenu); fileMenu.add(newItem); newItem.addActionListener(this); fileMenu.add(closeItem); closeItem.addActionListener(this); searchMenu.add(findItem); findItem.addActionListener(this); searchMenu.add(findNextItem); findNextItem.addActionListener(this); historyMenu = new Menu("History"); backMenuItem = new MenuItem("Back"); backMenuItem.addActionListener(this); historyMenu.add(backMenuItem); forwardMenuItem = new MenuItem("Forward"); forwardMenuItem.addActionListener(this); historyMenu.add(forwardMenuItem); menuBar.add(historyMenu); bookmarksMenu = new Menu("Bookmarks"); MenuItem addBookmark = new MenuItem("Add Current Page"); addBookmark.addActionListener(this); bookmarksMenu.add(addBookmark); addBookmark = new MenuItem("Add Current Page In New Folder"); addBookmark.addActionListener(this); bookmarksMenu.add(addBookmark); MenuItem manageBookmarks = new MenuItem("Manage Bookmarks..."); manageBookmarks.addActionListener(this); bookmarksMenu.add(manageBookmarks); menuBar.add(bookmarksMenu); Menu streamMenu = new Menu("Stream"); MenuItem streamFromFile = new MenuItem("Load Stream From File..."); streamFromFile.addActionListener(this); streamMenu.add(streamFromFile); MenuItem randomStream = new MenuItem("Load Random HTML InputStream"); randomStream.addActionListener(this); streamMenu.add(randomStream); menuBar.add(streamMenu); viewMenu.add(sourceItem); sourceItem.addActionListener(this); viewMenu.add(pageInfoItem); pageInfoItem.addActionListener(this); editMenu.add(selectAllItem); selectAllItem.addActionListener(this); editMenu.add(copyItem); copyItem.addActionListener(this); // Create the URL field urlField = new TextField("", 30); urlField.addActionListener(this); urlField.setText(url); // Create the buttons sub panel buttonsPanel = new Panel(); buttonsPanel.setLayout(new GridBagLayout()); // Add the buttons backButton = makeItem(buttonsPanel, "Back", 0, 0, 1, 1, 0.0, 0.0); backButton.setEnabled(false); forwardButton = makeItem(buttonsPanel, "Forward", 1, 0, 1, 1, 0.0, 0.0); forwardButton.setEnabled(false); stopButton = makeItem(buttonsPanel, "Stop", 2, 0, 1, 1, 0.0, 0.0); stopButton.setEnabled(false); refreshButton = makeItem(buttonsPanel, "Refresh", 3, 0, 1, 1, 0.0, 0.0); refreshButton.setEnabled(false); makeItem(buttonsPanel, "DOMViewer", 4, 0, 1, 1, 0.0, 0.0); makeItem(buttonsPanel, "POST", 5, 0, 1, 1, 0.0, 0.0); // Create the control panel controlPanel = new Panel(); controlPanel.setLayout(new BorderLayout()); // Add the URL field, and the buttons panel Panel centerPanel = new Panel(); centerPanel.setLayout(new BorderLayout()); centerPanel.add(urlField, BorderLayout.NORTH); // controlPanel.add(urlField, BorderLayout.CENTER); controlPanel.add(centerPanel, BorderLayout.CENTER); controlPanel.add(buttonsPanel, BorderLayout.WEST); // create the status panel statusPanel = new Panel(); statusPanel.setLayout(new BorderLayout()); // create and add the statusLabel and the urlStatusLabel statusLabel = new Label("", Label.LEFT); statusLabel.setBackground(Color.lightGray); urlStatusLabel = new Label("", Label.LEFT); urlStatusLabel.setBackground(Color.lightGray); Panel tPanel = new Panel(); tPanel.setLayout(new BorderLayout()); tPanel.add(statusLabel, BorderLayout.NORTH); tPanel.add(urlStatusLabel, BorderLayout.SOUTH); statusPanel.add(tPanel, BorderLayout.CENTER); // Create the browser try { BrowserControlFactory.setAppData(binDir); browserControl = BrowserControlFactory.newBrowserControl(); browserCanvas = (BrowserControlCanvas) browserControl.queryInterface(BrowserControl.BROWSER_CONTROL_CANVAS_NAME); } catch(Exception e) { System.out.println("Can't create BrowserControl: " + e.getMessage()); } Assert.assert_it(null != browserCanvas); browserCanvas.setSize(defaultWidth, defaultHeight); // Add the control panel and the browserCanvas add(controlPanel, BorderLayout.NORTH); add(browserCanvas, BorderLayout.CENTER); add(statusPanel, BorderLayout.SOUTH); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.out.println("Got windowClosing"); System.out.println("destroying the BrowserControl"); EMWindow.this.delete(); // should close the BrowserControlCanvas creator.DestroyEMWindow(winNum); } public void windowClosed(WindowEvent e) { System.out.println("Got windowClosed"); } }); // Create the Context Menus add(popup); popup.add(popup_ViewSource = new MenuItem("View Source as ByteArray")); popup.add(popup_SelectAll = new MenuItem("Select All")); popup.add(popup_ViewSelection = new MenuItem("View Selection")); contextListener = new PopupActionListener(); popup_ViewSource.addActionListener (contextListener); popup_SelectAll.addActionListener (contextListener); popup_ViewSelection.addActionListener (contextListener); show(); toFront(); try { navigation = (Navigation2) browserControl.queryInterface(BrowserControl.NAVIGATION_NAME); navigation.setPrompt(this); currentPage = (CurrentPage2) browserControl.queryInterface(BrowserControl.CURRENT_PAGE_NAME); history = (History) browserControl.queryInterface(BrowserControl.HISTORY_NAME); prefs = (Preferences) browserControl.queryInterface(BrowserControl.PREFERENCES_NAME); prefs.registerPrefChangedCallback(this, "network.cookie.warnAboutCookies", "This IS the Closure!"); prefs.setPref("network.cookie.warnAboutCookies", "true"); prefs.setPref("browser.cache.disk_cache_size", "0"); // pull out the proxies, and make java aware of them Properties prefsProps = prefs.getPrefs(); String proxyHost = (String) prefsProps.get("network.proxy.http"); String proxyPort = (String) prefsProps.get("network.proxy.http_port"); if (null != proxyHost && null != proxyPort) { System.setProperty("http.proxyHost", proxyHost); System.setProperty("http.proxyPort", proxyPort); } //prefsProps = prefs.getPrefs(); //prefsProps.list(System.out); // This works, try it! } catch (Exception e) { System.out.println(e.toString()); } try { EventRegistration eventRegistration = (EventRegistration) browserControl.queryInterface(BrowserControl.EVENT_REGISTRATION_NAME); eventRegistration.addDocumentLoadListener(this); eventRegistration.addMouseListener(this); // PENDING(edburns): test code, replace with production code bookmarks = (Bookmarks) browserControl.queryInterface(BrowserControl.BOOKMARKS_NAME); System.out.println("debug: edburns: got Bookmarks instance"); bookmarksTree = bookmarks.getBookmarks(); /********* TreeNode bookmarksRoot = (TreeNode) bookmarksTree.getRoot(); System.out.println("debug: edburns: testing the Enumeration"); int childCount = bookmarksRoot.getChildCount(); System.out.println("debug: edburns: root has " + childCount + " children."); Enumeration rootChildren = bookmarksRoot.children(); TreeNode currentChild; int i = 0, childIndex; while (rootChildren.hasMoreElements()) { currentChild = (TreeNode) rootChildren.nextElement(); System.out.println("debug: edburns: bookmarks root has children! child: " + i + " name: " + currentChild.toString()); i++; } System.out.println("debug: edburns: testing getChildAt(" + --i + "): "); currentChild = bookmarksRoot.getChildAt(i); System.out.println("debug: edburns: testing getIndex(Child " + i + "): index should be " + i + "."); childIndex = bookmarksRoot.getIndex(currentChild); System.out.println("debug: edburns: index is: " + childIndex); *****/ /********** System.out.println("debug: edburns: got new entry"); Properties entryProps = entry.getProperties(); System.out.println("debug: edburns: entry url: " + entryProps.getProperty(BookmarkEntry.URL)); bookmarks.addBookmark(folder, entry); **********/ } catch (Exception e) { System.out.println(e.toString()); } if (null != navigation) { navigation.loadURL(url); } } // EMWindow() ctor
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/afee19ff581e3d13844917014bf035cd25e515ae/EMWindow.java/clean/java/webclient/classes_spec/org/mozilla/webclient/test/EMWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7141, 3829, 261, 780, 2077, 16, 514, 4158, 1621, 16, 514, 880, 16, 509, 5657, 2107, 16, 21829, 49, 11142, 10745, 29525, 13, 377, 288, 202, 9565, 12, 2649, 1769, 565, 10431, 273, 394, 10264, 416, 4599, 5621, 202, 20394, 273, 29525, 31, 565, 783, 1785, 273, 880, 31, 202, 8082, 2578, 273, 5657, 2107, 31, 565, 3399, 9913, 1621, 273, 4158, 1621, 31, 3639, 2332, 18, 659, 18, 8222, 2932, 10062, 329, 598, 4158, 1621, 30, 315, 397, 4158, 1621, 397, 315, 880, 30, 315, 397, 18701, 880, 1769, 202, 202, 542, 1225, 12, 1886, 2384, 16, 805, 2686, 1769, 1082, 202, 759, 1788, 326, 9809, 16654, 202, 202, 5414, 5190, 273, 394, 9809, 5190, 5621, 202, 202, 2211, 18, 542, 4599, 5190, 12, 5414, 5190, 1769, 3639, 202, 202, 4599, 585, 4599, 273, 394, 9809, 2932, 812, 8863, 202, 202, 4599, 1476, 4599, 273, 394, 9809, 2932, 1767, 8863, 3639, 202, 202, 4599, 1623, 4599, 273, 394, 9809, 2932, 2979, 8863, 202, 202, 4599, 3874, 4599, 273, 394, 9809, 2932, 4666, 8863, 3639, 202, 202, 12958, 26536, 273, 394, 25085, 2932, 1908, 6076, 8863, 3639, 202, 202, 12958, 1746, 1180, 273, 394, 25085, 2932, 4605, 8863, 3639, 202, 202, 12958, 1104, 1180, 273, 394, 25085, 2932, 3125, 8863, 3639, 202, 202, 12958, 19429, 1180, 273, 394, 25085, 2932, 3125, 4804, 8863, 202, 202, 12958, 1084, 1180, 273, 394, 25085, 2932, 1767, 3460, 4998, 487, 514, 8863, 202, 202, 12958, 1363, 966, 1180, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7141, 3829, 261, 780, 2077, 16, 514, 4158, 1621, 16, 514, 880, 16, 509, 5657, 2107, 16, 21829, 49, 11142, 10745, 29525, 13, 377, 288, 202, 9565, 12, 2649, 1769, 565, 10431, 273, 394, 10264, 416, 4599, 5621, 202, 20394, 273, 29525, 31, 565, 783, 1785, 273, 880, 31, 202, 8082, 2578, 273, 5657, 2107, 31, 565, 3399, 9913, 1621, 273, 4158, 1621, 31, 3639, 2332, 18, 659, 18, 8222, 2932, 10062, 329, 598, 4158, 1621, 30, 315, 397, 4158, 1621, 397, 315, 880, 30, 315, 397, 18701, 880, 1769, 202, 202, 542, 1225, 12, 1886, 2384, 16, 805, 2686, 1769, 1082, 202, 759, 1788, 326, 9809, 16654, 202, 202, 5414, 5190, 273, 394, 9809, 5190, 5621, 2 ]
System.out.print("static const int VM_Constants_ESP = "
p("static const int VM_Constants_ESP = "
static void emitVirtualMachineDeclarations (int bootImageAddress) { // load address for the boot image // System.out.print("static const int bootImageAddress = 0x" + Integer.toHexString(bootImageAddress) + ";\n"); // values in VM_Constants, from VM_Configuration // //-#if RVM_FOR_POWERPC if (VM.BuildForPowerPC) { System.out.print("static const int VM_Constants_JTOC_POINTER = " + VM_Constants.JTOC_POINTER + ";\n"); System.out.print("static const int VM_Constants_THREAD_ID_REGISTER = " + VM_Constants.THREAD_ID_REGISTER + ";\n"); System.out.print("static const int VM_Constants_FRAME_POINTER = " + VM_Constants.FRAME_POINTER + ";\n"); System.out.print("static const int VM_Constants_PROCESSOR_REGISTER = " + VM_Constants.PROCESSOR_REGISTER + ";\n"); System.out.print("static const int VM_Constants_FIRST_VOLATILE_GPR = " + VM_Constants.FIRST_VOLATILE_GPR + ";\n"); System.out.print("static const int VM_Constants_DIVIDE_BY_ZERO_MASK = " + VM_Constants.DIVIDE_BY_ZERO_MASK + ";\n"); System.out.print("static const int VM_Constants_DIVIDE_BY_ZERO_TRAP = " + VM_Constants.DIVIDE_BY_ZERO_TRAP + ";\n"); System.out.print("static const int VM_Constants_MUST_IMPLEMENT_MASK = " + VM_Constants.MUST_IMPLEMENT_MASK + ";\n"); System.out.print("static const int VM_Constants_MUST_IMPLEMENT_TRAP = " + VM_Constants.MUST_IMPLEMENT_TRAP + ";\n"); System.out.print("static const int VM_Constants_STORE_CHECK_MASK = " + VM_Constants.STORE_CHECK_MASK + ";\n"); System.out.print("static const int VM_Constants_STORE_CHECK_TRAP = " + VM_Constants.STORE_CHECK_TRAP + ";\n"); System.out.print("static const int VM_Constants_ARRAY_INDEX_MASK = " + VM_Constants.ARRAY_INDEX_MASK + ";\n"); System.out.print("static const int VM_Constants_ARRAY_INDEX_TRAP = " + VM_Constants.ARRAY_INDEX_TRAP + ";\n"); System.out.print("static const int VM_Constants_ARRAY_INDEX_REG_MASK = " + VM_Constants.ARRAY_INDEX_REG_MASK + ";\n"); System.out.print("static const int VM_Constants_ARRAY_INDEX_REG_SHIFT = " + VM_Constants.ARRAY_INDEX_REG_SHIFT + ";\n"); System.out.print("static const int VM_Constants_CONSTANT_ARRAY_INDEX_MASK = " + VM_Constants.CONSTANT_ARRAY_INDEX_MASK + ";\n"); System.out.print("static const int VM_Constants_CONSTANT_ARRAY_INDEX_TRAP = " + VM_Constants.CONSTANT_ARRAY_INDEX_TRAP + ";\n"); System.out.print("static const int VM_Constants_CONSTANT_ARRAY_INDEX_INFO = " + VM_Constants.CONSTANT_ARRAY_INDEX_INFO + ";\n"); System.out.print("static const int VM_Constants_WRITE_BUFFER_OVERFLOW_MASK = " + VM_Constants.WRITE_BUFFER_OVERFLOW_MASK + ";\n"); System.out.print("static const int VM_Constants_WRITE_BUFFER_OVERFLOW_TRAP = " + VM_Constants.WRITE_BUFFER_OVERFLOW_TRAP + ";\n"); System.out.print("static const int VM_Constants_STACK_OVERFLOW_MASK = " + VM_Constants.STACK_OVERFLOW_MASK + ";\n"); System.out.print("static const int VM_Constants_STACK_OVERFLOW_HAVE_FRAME_TRAP = " + VM_Constants.STACK_OVERFLOW_HAVE_FRAME_TRAP + ";\n"); System.out.print("static const int VM_Constants_STACK_OVERFLOW_TRAP = " + VM_Constants.STACK_OVERFLOW_TRAP + ";\n"); System.out.print("static const int VM_Constants_CHECKCAST_MASK = " + VM_Constants.CHECKCAST_MASK + ";\n"); System.out.print("static const int VM_Constants_CHECKCAST_TRAP = " + VM_Constants.CHECKCAST_TRAP + ";\n"); System.out.print("static const int VM_Constants_REGENERATE_MASK = " + VM_Constants.REGENERATE_MASK + ";\n"); System.out.print("static const int VM_Constants_REGENERATE_TRAP = " + VM_Constants.REGENERATE_TRAP + ";\n"); System.out.print("static const int VM_Constants_NULLCHECK_MASK = " + VM_Constants.NULLCHECK_MASK + ";\n"); System.out.print("static const int VM_Constants_NULLCHECK_TRAP = " + VM_Constants.NULLCHECK_TRAP + ";\n"); System.out.print("static const int VM_Constants_JNI_STACK_TRAP_MASK = " + VM_Constants.JNI_STACK_TRAP_MASK + ";\n"); System.out.print("static const int VM_Constants_JNI_STACK_TRAP = " + VM_Constants.JNI_STACK_TRAP + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_NEXT_INSTRUCTION_OFFSET = " + VM_Constants.STACKFRAME_NEXT_INSTRUCTION_OFFSET + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_ALIGNMENT = " + VM_Constants.STACKFRAME_ALIGNMENT + " ;\n"); } //-#endif //-#if RVM_FOR_IA32 if (VM.BuildForIA32) { System.out.print("static const int VM_Constants_EAX = " + VM_Constants.EAX + ";\n"); System.out.print("static const int VM_Constants_ECX = " + VM_Constants.ECX + ";\n"); System.out.print("static const int VM_Constants_EDX = " + VM_Constants.EDX + ";\n"); System.out.print("static const int VM_Constants_EBX = " + VM_Constants.EBX + ";\n"); System.out.print("static const int VM_Constants_ESP = " + VM_Constants.ESP + ";\n"); System.out.print("static const int VM_Constants_EBP = " + VM_Constants.EBP + ";\n"); System.out.print("static const int VM_Constants_ESI = " + VM_Constants.ESI + ";\n"); System.out.print("static const int VM_Constants_EDI = " + VM_Constants.EDI + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_BODY_OFFSET = " + VM_Constants.STACKFRAME_BODY_OFFSET + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_RETURN_ADDRESS_OFFSET = " + VM_Constants.STACKFRAME_RETURN_ADDRESS_OFFSET + ";\n"); System.out.print("static const int VM_Constants_RVM_TRAP_BASE = " + VM_Constants.RVM_TRAP_BASE + ";\n"); } //-#endif System.out.print("static const int VM_Constants_STACK_SIZE_GUARD = " + VM_Constants.STACK_SIZE_GUARD + ";\n"); System.out.print("static const int VM_Constants_INVISIBLE_METHOD_ID = " + VM_Constants.INVISIBLE_METHOD_ID + ";\n"); System.out.print("static const int VM_ThinLockConstants_TL_THREAD_ID_SHIFT = " + VM_ThinLockConstants.TL_THREAD_ID_SHIFT + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_HEADER_SIZE = " + VM_Constants.STACKFRAME_HEADER_SIZE + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_METHOD_ID_OFFSET = " + VM_Constants.STACKFRAME_METHOD_ID_OFFSET + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_FRAME_POINTER_OFFSET = " + VM_Constants.STACKFRAME_FRAME_POINTER_OFFSET + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_SENTINEL_FP = " + VM_Constants.STACKFRAME_SENTINEL_FP.toInt() + ";\n"); System.out.print("\n"); // values in VM_ObjectModel // System.out.println("static const int VM_ObjectModel_ARRAY_LENGTH_OFFSET = " + VM_ObjectModel.getArrayLengthOffset() + "\n;"); // values in VM_Scheduler // System.out.print("static const int VM_Scheduler_PRIMORDIAL_PROCESSOR_ID = " + VM_Scheduler.PRIMORDIAL_PROCESSOR_ID + ";\n"); System.out.print("static const int VM_Scheduler_PRIMORDIAL_THREAD_INDEX = " + VM_Scheduler.PRIMORDIAL_THREAD_INDEX + ";\n"); System.out.print("\n"); // values in VM_ThreadEventConstants // System.out.print("static const double VM_ThreadEventConstants_WAIT_INFINITE = " + VM_ThreadEventConstants.WAIT_INFINITE + ";\n"); // values in VM_ThreadIOQueue // System.out.print("static const int VM_ThreadIOQueue_READ_OFFSET = " + VM_ThreadIOQueue.READ_OFFSET + ";\n"); System.out.print("static const int VM_ThreadIOQueue_WRITE_OFFSET = " + VM_ThreadIOQueue.WRITE_OFFSET + ";\n"); System.out.print("static const int VM_ThreadIOQueue_EXCEPT_OFFSET = " + VM_ThreadIOQueue.EXCEPT_OFFSET + ";\n"); System.out.print("\n"); // values in VM_ThreadIOConstants // System.out.print("static const int VM_ThreadIOConstants_FD_READY = " + VM_ThreadIOConstants.FD_READY + ";\n"); System.out.print("static const int VM_ThreadIOConstants_FD_READY_BIT = " + VM_ThreadIOConstants.FD_READY_BIT + ";\n"); System.out.print("static const int VM_ThreadIOConstants_FD_INVALID = " + VM_ThreadIOConstants.FD_INVALID + ";\n"); System.out.print("static const int VM_ThreadIOConstants_FD_INVALID_BIT = " + VM_ThreadIOConstants.FD_INVALID_BIT + ";\n"); System.out.print("static const int VM_ThreadIOConstants_FD_MASK = " + VM_ThreadIOConstants.FD_MASK + ";\n"); System.out.print("\n"); // values in VM_ThreadProcessWaitQueue // System.out.print("static const int VM_ThreadProcessWaitQueue_PROCESS_FINISHED = " + VM_ThreadProcessWaitQueue.PROCESS_FINISHED + ";\n"); // values in VM_Runtime // System.out.print("static const int VM_Runtime_TRAP_UNKNOWN = " + VM_Runtime.TRAP_UNKNOWN + ";\n"); System.out.print("static const int VM_Runtime_TRAP_NULL_POINTER = " + VM_Runtime.TRAP_NULL_POINTER + ";\n"); System.out.print("static const int VM_Runtime_TRAP_ARRAY_BOUNDS = " + VM_Runtime.TRAP_ARRAY_BOUNDS + ";\n"); System.out.print("static const int VM_Runtime_TRAP_DIVIDE_BY_ZERO = " + VM_Runtime.TRAP_DIVIDE_BY_ZERO + ";\n"); System.out.print("static const int VM_Runtime_TRAP_STACK_OVERFLOW = " + VM_Runtime.TRAP_STACK_OVERFLOW + ";\n"); System.out.print("static const int VM_Runtime_TRAP_CHECKCAST = " + VM_Runtime.TRAP_CHECKCAST + ";\n"); System.out.print("static const int VM_Runtime_TRAP_REGENERATE = " + VM_Runtime.TRAP_REGENERATE + ";\n"); System.out.print("static const int VM_Runtime_TRAP_JNI_STACK = " + VM_Runtime.TRAP_JNI_STACK + ";\n"); System.out.print("static const int VM_Runtime_TRAP_MUST_IMPLEMENT = " + VM_Runtime.TRAP_MUST_IMPLEMENT + ";\n"); System.out.print("static const int VM_Runtime_TRAP_STORE_CHECK = " + VM_Runtime.TRAP_STORE_CHECK + ";\n"); System.out.println(); // values in VM_FileSystem // System.out.print("static const int VM_FileSystem_OPEN_READ = " + VM_FileSystem.OPEN_READ + ";\n"); System.out.print("static const int VM_FileSystem_OPEN_WRITE = " + VM_FileSystem.OPEN_WRITE + ";\n"); System.out.print("static const int VM_FileSystem_OPEN_MODIFY = " + VM_FileSystem.OPEN_MODIFY + ";\n"); System.out.print("static const int VM_FileSystem_OPEN_APPEND = " + VM_FileSystem.OPEN_APPEND + ";\n"); System.out.print("static const int VM_FileSystem_SEEK_SET = " + VM_FileSystem.SEEK_SET + ";\n"); System.out.print("static const int VM_FileSystem_SEEK_CUR = " + VM_FileSystem.SEEK_CUR + ";\n"); System.out.print("static const int VM_FileSystem_SEEK_END = " + VM_FileSystem.SEEK_END + ";\n"); System.out.print("static const int VM_FileSystem_STAT_EXISTS = " + VM_FileSystem.STAT_EXISTS + ";\n"); System.out.print("static const int VM_FileSystem_STAT_IS_FILE = " + VM_FileSystem.STAT_IS_FILE + ";\n"); System.out.print("static const int VM_FileSystem_STAT_IS_DIRECTORY = " + VM_FileSystem.STAT_IS_DIRECTORY + ";\n"); System.out.print("static const int VM_FileSystem_STAT_IS_READABLE = " + VM_FileSystem.STAT_IS_READABLE + ";\n"); System.out.print("static const int VM_FileSystem_STAT_IS_WRITABLE = " + VM_FileSystem.STAT_IS_WRITABLE + ";\n"); System.out.print("static const int VM_FileSystem_STAT_LAST_MODIFIED = " + VM_FileSystem.STAT_LAST_MODIFIED + ";\n"); System.out.print("static const int VM_FileSystem_STAT_LENGTH = " + VM_FileSystem.STAT_LENGTH + ";\n"); // fields in VM_Processor // int offset; offset = VM_Entrypoints.threadSwitchRequestedField.getOffset(); System.out.print("static const int VM_Processor_threadSwitchRequested_offset = " + offset + ";\n"); offset = VM_Entrypoints.activeThreadStackLimitField.getOffset(); offset = VM_Entrypoints.activeThreadStackLimitField.getOffset(); System.out.print("static const int VM_Processor_activeThreadStackLimit_offset = " + offset + ";\n"); offset = VM_Entrypoints.pthreadIDField.getOffset(); System.out.print("static const int VM_Processor_pthread_id_offset = " + offset + ";\n"); offset = VM_Entrypoints.epochField.getOffset(); System.out.print("static const int VM_Processor_epoch_offset = " + offset + ";\n"); offset = VM_Entrypoints.activeThreadField.getOffset(); System.out.print("static const int VM_Processor_activeThread_offset = " + offset + ";\n"); //-#if RVM_FOR_IA32 offset = VM_Entrypoints.processorThreadIdField.getOffset(); System.out.print("static const int VM_Processor_threadId_offset = " + offset + ";\n"); offset = VM_Entrypoints.processorFPField.getOffset(); System.out.print("static const int VM_Processor_framePointer_offset = " + offset + ";\n"); offset = VM_Entrypoints.processorJTOCField.getOffset(); System.out.print("static const int VM_Processor_jtoc_offset = " + offset + ";\n"); offset = VM_Entrypoints.processorTrapParamField.getOffset(); System.out.print("static const int VM_Processor_arrayIndexTrapParam_offset = " + offset + ";\n"); //-#endif // fields in VM_Thread // offset = VM_Entrypoints.threadStackField.getOffset(); System.out.print("static const int VM_Thread_stack_offset = " + offset + ";\n"); offset = VM_Entrypoints.stackLimitField.getOffset(); System.out.print("static const int VM_Thread_stackLimit_offset = " + offset + ";\n"); offset = VM_Entrypoints.threadHardwareExceptionRegistersField.getOffset(); System.out.print("static const int VM_Thread_hardwareExceptionRegisters_offset = " + offset + ";\n"); offset = VM_Entrypoints.jniEnvField.getOffset(); System.out.print("static const int VM_Thread_jniEnv_offset = " + offset + ";\n"); // fields in VM_Registers // offset = VM_Entrypoints.registersGPRsField.getOffset(); System.out.print("static const int VM_Registers_gprs_offset = " + offset + ";\n"); offset = VM_Entrypoints.registersFPRsField.getOffset(); System.out.print("static const int VM_Registers_fprs_offset = " + offset + ";\n"); offset = VM_Entrypoints.registersIPField.getOffset(); System.out.print("static const int VM_Registers_ip_offset = " + offset + ";\n"); //-#if RVM_FOR_IA32 offset = VM_Entrypoints.registersFPField.getOffset(); System.out.print("static const int VM_Registers_fp_offset = " + offset + ";\n"); //-#endif //-#if RVM_FOR_POWERPC offset = VM_Entrypoints.registersLRField.getOffset(); System.out.print("static const int VM_Registers_lr_offset = " + offset + ";\n"); //-#endif offset = VM_Entrypoints.registersInUseField.getOffset(); System.out.print("static const int VM_Registers_inuse_offset = " + offset + ";\n"); // fields in VM_JNIEnvironment offset = VM_Entrypoints.JNIEnvAddressField.getOffset(); System.out.print("static const int VM_JNIEnvironment_JNIEnvAddress_offset = " + offset + ";\n"); // fields in java.net.InetAddress // offset = VM_Entrypoints.inetAddressAddressField.getOffset(); System.out.print("static const int java_net_InetAddress_address_offset = " + offset + ";\n"); offset = VM_Entrypoints.inetAddressFamilyField.getOffset(); System.out.print("static const int java_net_InetAddress_family_offset = " + offset + ";\n"); // fields in java.net.SocketImpl // offset = VM_Entrypoints.socketImplAddressField.getOffset(); System.out.print("static const int java_net_SocketImpl_address_offset = " + offset + ";\n"); offset = VM_Entrypoints.socketImplPortField.getOffset(); System.out.print("static const int java_net_SocketImpl_port_offset = " + offset + ";\n"); // fields in com.ibm.JikesRVM.memoryManagers.JMTk.BasePlan offset = VM_Entrypoints.gcInProgressField.getOffset(); System.out.print("static const int com_ibm_JikesRVM_memoryManagers_JMTk_BasePlan_gcInProgressOffset = " + offset + ";\n"); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/23b56e5e288693bb113ee939c9ca6e410ad03d56/GenerateInterfaceDeclarations.java/clean/rvm/src/tools/bootImageRunner/GenerateInterfaceDeclarations.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 3626, 27454, 21408, 261, 474, 4835, 2040, 1887, 13, 288, 565, 368, 1262, 1758, 364, 326, 4835, 1316, 565, 368, 565, 2332, 18, 659, 18, 1188, 2932, 3845, 1866, 509, 4835, 2040, 1887, 13491, 273, 374, 92, 6, 3639, 397, 2144, 18, 869, 14866, 12, 7137, 2040, 1887, 13, 397, 30750, 82, 8863, 565, 368, 924, 316, 8251, 67, 2918, 16, 628, 8251, 67, 1750, 565, 368, 565, 368, 17, 7, 430, 534, 7397, 67, 7473, 67, 2419, 18839, 3513, 565, 309, 261, 7397, 18, 3116, 1290, 13788, 3513, 13, 288, 1377, 2332, 18, 659, 18, 1188, 2932, 3845, 1866, 509, 8251, 67, 2918, 67, 46, 4296, 39, 67, 2419, 9125, 9079, 273, 315, 1850, 397, 8251, 67, 2918, 18, 46, 4296, 39, 67, 2419, 9125, 397, 30750, 82, 8863, 1377, 2332, 18, 659, 18, 1188, 2932, 3845, 1866, 509, 8251, 67, 2918, 67, 21730, 67, 734, 67, 27511, 540, 273, 315, 1850, 397, 8251, 67, 2918, 18, 21730, 67, 734, 67, 27511, 397, 30750, 82, 8863, 1377, 2332, 18, 659, 18, 1188, 2932, 3845, 1866, 509, 8251, 67, 2918, 67, 15072, 67, 2419, 9125, 2868, 273, 315, 1850, 397, 8251, 67, 2918, 18, 15072, 67, 2419, 9125, 397, 30750, 82, 8863, 1377, 2332, 18, 659, 18, 1188, 2932, 3845, 1866, 509, 8251, 67, 2918, 67, 16560, 916, 67, 27511, 540, 273, 315, 1850, 397, 8251, 67, 2918, 18, 16560, 916, 67, 27511, 397, 30750, 82, 8863, 1377, 2332, 18, 659, 18, 1188, 2932, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 3626, 27454, 21408, 261, 474, 4835, 2040, 1887, 13, 288, 565, 368, 1262, 1758, 364, 326, 4835, 1316, 565, 368, 565, 2332, 18, 659, 18, 1188, 2932, 3845, 1866, 509, 4835, 2040, 1887, 13491, 273, 374, 92, 6, 3639, 397, 2144, 18, 869, 14866, 12, 7137, 2040, 1887, 13, 397, 30750, 82, 8863, 565, 368, 924, 316, 8251, 67, 2918, 16, 628, 8251, 67, 1750, 565, 368, 565, 368, 17, 7, 430, 534, 7397, 67, 7473, 67, 2419, 18839, 3513, 565, 309, 261, 7397, 18, 3116, 1290, 13788, 3513, 13, 288, 1377, 2332, 18, 659, 18, 1188, 2932, 3845, 1866, 509, 8251, 67, 2918, 67, 46, 4296, 39, 67, 2419, 9125, 9079, 273, 315, 1850, 397, 2 ]
System.out.println("Only reporting default-sized results list");
public static void doCMDLineQuery(String query) { System.out.println("Command line query: " + query); try { Context c = new Context(); HashMap results = doQuery(c, query); List itemlist = getItemResults(results); List colllist = getCollectionResults(results); List commlist = getCommunityResults(results); if (communitiesFound(results)) { System.out.println("\n" + "Communities: "); Iterator i = commlist.iterator(); while (i.hasNext()) { Object thishandle = i.next(); System.out.println("\t" + thishandle.toString()); } } if (collectionsFound(results)) { System.out.println("\n" + "Collections: "); Iterator j = colllist.iterator(); while (j.hasNext()) { Object thishandle = j.next(); System.out.println("\t" + thishandle.toString()); } } System.out.println("\n" + "Items: "); Iterator k = itemlist.iterator(); while (k.hasNext()) { Object thishandle = k.next(); System.out.println("\t" + thishandle.toString()); } if (!itemsFound(results)) { System.out.println ("\tNo items found!"); } } catch (Exception e) { System.out.println("Exception caught: " + e); } }
31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/8f858d84dc2fcea79f7852722d5a8a3ed610ba7d/DSQuery.java/clean/dspace/src/org/dspace/search/DSQuery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2332, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 2332, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 2332, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 2332, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 1071, 3163, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 760, 3163, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 918, 3163, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 741, 19473, 1670, 1138, 12, 780, 3163, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 843, 13, 3163, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 2332, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 2332, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 2332, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 288, 3163, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 2332, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 2332, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2332, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 2332, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 2332, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 2332, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 1071, 3163, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 760, 3163, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 918, 3163, 18, 659, 18, 8222, 2932, 3386, 16096, 805, 17, 87, 1235, 1686, 666, 8863, 225, 741, 19473, 1670, 1138, 2 ]
this.add(jSplitPane1, java.awt.BorderLayout.CENTER); this.add(jToolBar1, java.awt.BorderLayout.NORTH);
this.add(jSplitPane1, java.awt.BorderLayout.CENTER); this.add(jToolBar1, java.awt.BorderLayout.NORTH);
private void initComponents() { jSplitPane1 = new JSplitPane(); jPanel1 = new JPanel(); jScrollPane2 = new JScrollPane(); propertyTable = new JTable(); targetLabel = new javax.swing.JLabel(); jPanel2 = new JPanel(); jScrollPane1 = new JScrollPane(); tree = new JTree(); jToolBar1 = new JToolBar(); addCubeButton = new JButton(); addDimensionButton = new JButton(); addMeasureButton = new JButton(); addLevelButton = new JButton(); addPropertyButton = new JButton(); cutButton = new JButton(); copyButton = new JButton(); pasteButton = new JButton(); setLayout(new BorderLayout()); jSplitPane1.setDividerLocation(200); jPanel1.setLayout(new BorderLayout()); propertyTable.setModel(new DefaultTableModel(new Object[][] { }, new String[] { "Property", "Value" }) { Class[] types = new Class[] { java.lang.String.class, java.lang.Object.class }; boolean[] canEdit = new boolean[] { false, true }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); jScrollPane2.setViewportView(propertyTable); jPanel1.add(jScrollPane2, java.awt.BorderLayout.CENTER); targetLabel.setFont(new Font("Dialog", 1, 14)); targetLabel.setForeground((Color) UIManager.getDefaults().get("CheckBoxMenuItem.acceleratorForeground")); targetLabel.setHorizontalAlignment(SwingConstants.CENTER); targetLabel.setText("Schema"); targetLabel.setBorder(new EtchedBorder()); jPanel1.add(targetLabel, java.awt.BorderLayout.NORTH); jSplitPane1.setRightComponent(jPanel1); jPanel2.setLayout(new java.awt.BorderLayout()); jScrollPane1.setViewportView(tree); jPanel2.add(jScrollPane1, java.awt.BorderLayout.CENTER); jSplitPane1.setLeftComponent(jPanel2); //======================================================== // actions //======================================================== addCube = new AbstractAction("Add cube") { public void actionPerformed(ActionEvent e) { addCube(e); } }; addDimension = new AbstractAction("Add Dimension") { public void actionPerformed(ActionEvent e) { addDimension(e); } }; addMeasure = new AbstractAction("Add Measure") { public void actionPerformed(ActionEvent e) { addMeasure(e); } }; addLevel = new AbstractAction("Add Level") { public void actionPerformed(ActionEvent e) { addLevel(e); } }; addProperty = new AbstractAction("Add Property") { public void actionPerformed(ActionEvent e) { addProperty(e); } }; ResourceBundle resources = ResourceBundle.getBundle("mondrian.gui.resources.gui"); //======================================================== // toolbar buttons //======================================================== addCubeButton.setIcon(new ImageIcon(myClassLoader.getResource(resources.getString("addCube")))); addCubeButton.setToolTipText("Add Cube"); addCubeButton.addActionListener(addCube); addDimensionButton.setIcon(new ImageIcon(myClassLoader.getResource(resources.getString("addDimension")))); addDimensionButton.setToolTipText("Add Dimension"); addDimensionButton.addActionListener(addDimension); addMeasureButton.setIcon(new ImageIcon(myClassLoader.getResource(resources.getString("addMeasure")))); addMeasureButton.setToolTipText("Add Measure"); addMeasureButton.addActionListener(addMeasure); addLevelButton.setIcon(new ImageIcon(myClassLoader.getResource(resources.getString("addLevel")))); addLevelButton.setToolTipText("Add Level"); addLevelButton.addActionListener(addLevel); addPropertyButton.setIcon(new ImageIcon(myClassLoader.getResource(resources.getString("addProperty")))); addPropertyButton.setToolTipText("Add Property"); addPropertyButton.addActionListener(addProperty); cutButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/toolbarButtonGraphics/general/Cut24.gif"))); cutButton.setToolTipText("Cut"); copyButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/toolbarButtonGraphics/general/Copy24.gif"))); copyButton.setToolTipText("Copy"); pasteButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/toolbarButtonGraphics/general/Paste24.gif"))); pasteButton.setToolTipText("Paste"); jToolBar1.add(addCubeButton); jToolBar1.add(addDimensionButton); jToolBar1.add(addMeasureButton); jToolBar1.add(addLevelButton); jToolBar1.add(addPropertyButton); jToolBar1.add(cutButton); jToolBar1.add(copyButton); jToolBar1.add(pasteButton); //======================================================== // popup menu //======================================================== jPopupMenu = new JPopupMenu(); //======================================================== // tree mouse listener //======================================================== tree.addMouseListener(new PopupTrigger()); //======================================================== // jpanel //======================================================== this.add(jSplitPane1, java.awt.BorderLayout.CENTER); this.add(jToolBar1, java.awt.BorderLayout.NORTH); updater = new JTreeUpdater(tree); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/SchemaExplorer.java/clean/src/main/mondrian/gui/SchemaExplorer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 7171, 1435, 202, 95, 202, 202, 78, 5521, 8485, 21, 273, 394, 804, 5521, 8485, 5621, 202, 202, 78, 5537, 21, 273, 394, 24048, 5621, 202, 202, 78, 26360, 22, 273, 394, 804, 26360, 5621, 202, 202, 4468, 1388, 273, 394, 804, 1388, 5621, 202, 202, 3299, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 202, 202, 78, 5537, 22, 273, 394, 24048, 5621, 202, 202, 78, 26360, 21, 273, 394, 804, 26360, 5621, 202, 202, 3413, 273, 394, 804, 2471, 5621, 202, 202, 78, 6364, 5190, 21, 273, 394, 804, 6364, 5190, 5621, 202, 202, 1289, 39, 4895, 3616, 273, 394, 28804, 5621, 202, 202, 1289, 8611, 3616, 273, 394, 28804, 5621, 202, 202, 1289, 7197, 3616, 273, 394, 28804, 5621, 202, 202, 1289, 2355, 3616, 273, 394, 28804, 5621, 202, 202, 1289, 1396, 3616, 273, 394, 28804, 5621, 202, 202, 5150, 3616, 273, 394, 28804, 5621, 202, 202, 3530, 3616, 273, 394, 28804, 5621, 202, 202, 29795, 3616, 273, 394, 28804, 5621, 202, 202, 542, 3744, 12, 2704, 30814, 10663, 202, 202, 78, 5521, 8485, 21, 18, 542, 25558, 2735, 12, 6976, 1769, 202, 202, 78, 5537, 21, 18, 542, 3744, 12, 2704, 30814, 10663, 202, 202, 4468, 1388, 18, 542, 1488, 12, 2704, 2989, 1388, 1488, 12, 2704, 1033, 63, 6362, 65, 288, 202, 202, 5779, 394, 514, 8526, 288, 315, 1396, 3113, 315, 620, 6, 289, 13, 202, 202, 95, 1082, 202, 797, 8526, 1953, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 7171, 1435, 202, 95, 202, 202, 78, 5521, 8485, 21, 273, 394, 804, 5521, 8485, 5621, 202, 202, 78, 5537, 21, 273, 394, 24048, 5621, 202, 202, 78, 26360, 22, 273, 394, 804, 26360, 5621, 202, 202, 4468, 1388, 273, 394, 804, 1388, 5621, 202, 202, 3299, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 202, 202, 78, 5537, 22, 273, 394, 24048, 5621, 202, 202, 78, 26360, 21, 273, 394, 804, 26360, 5621, 202, 202, 3413, 273, 394, 804, 2471, 5621, 202, 202, 78, 6364, 5190, 21, 273, 394, 804, 6364, 5190, 5621, 202, 202, 1289, 39, 4895, 3616, 273, 394, 28804, 5621, 202, 202, 1289, 8611, 3616, 273, 394, 2 ]
cflowExpressionList.add(pointcut.getExpressionInfo().getCflowExpression());
cflowExpressionList.add(pointcut.getExpressionInfo().getCflowExpressionRuntime());
private static RttiInfo setRttiInfo(final int joinPointType, final int joinPointHash, final Class declaringClass, final AspectSystem system, final Object thisInstance, final Object targetInstance, final Class targetClass) { RttiInfo tuple = new RttiInfo(); List cflowExpressionList = new ArrayList(); AspectManager[] aspectManagers = system.getAspectManagers(); switch (joinPointType) { case JoinPointType.METHOD_EXECUTION: MethodTuple methodTuple = AspectRegistry.getMethodTuple(declaringClass, joinPointHash); MethodSignatureImpl methodSignature = new MethodSignatureImpl(methodTuple.getDeclaringClass(), methodTuple); tuple.signature = methodSignature; tuple.rtti = new MethodRttiImpl(methodSignature, thisInstance, targetInstance); MethodInfo methodInfo = JavaMethodInfo.getMethodInfo(methodTuple.getWrapperMethod()); ExpressionContext ctx = new ExpressionContext(PointcutType.EXECUTION, methodInfo, null); for (int i = 0; i < aspectManagers.length; i++) { for (Iterator it = aspectManagers[i].getPointcuts(ctx).iterator(); it.hasNext();) { Pointcut pointcut = (Pointcut)it.next(); if (pointcut.getExpressionInfo().hasCflowPointcut()) { cflowExpressionList.add(pointcut.getExpressionInfo().getCflowExpression()); } } } tuple.cflowExpressions = cflowExpressionList; break; case JoinPointType.METHOD_CALL: methodTuple = AspectRegistry.getMethodTuple(declaringClass, joinPointHash); methodSignature = new MethodSignatureImpl(methodTuple.getDeclaringClass(), methodTuple); tuple.signature = methodSignature; tuple.rtti = new MethodRttiImpl(methodSignature, thisInstance, targetInstance); methodInfo = JavaMethodInfo.getMethodInfo(methodTuple.getWrapperMethod()); ClassInfo withinInfo = new JavaClassInfo(targetClass); ctx = new ExpressionContext(PointcutType.CALL, methodInfo, withinInfo); for (int i = 0; i < aspectManagers.length; i++) { for (Iterator it = aspectManagers[i].getPointcuts(ctx).iterator(); it.hasNext();) { Pointcut pointcut = (Pointcut)it.next(); if (pointcut.getExpressionInfo().hasCflowPointcut()) { cflowExpressionList.add(pointcut.getExpressionInfo().getCflowExpression()); } } } tuple.cflowExpressions = cflowExpressionList; break; case JoinPointType.CONSTRUCTOR_EXECUTION: ConstructorTuple constructorTuple = AspectRegistry.getConstructorTuple(declaringClass, joinPointHash); ConstructorSignatureImpl constructorSignature = new ConstructorSignatureImpl(constructorTuple .getDeclaringClass(), constructorTuple); tuple.signature = constructorSignature; tuple.rtti = new ConstructorRttiImpl(constructorSignature, thisInstance, targetInstance); ConstructorInfo constructorInfo = JavaConstructorInfo.getConstructorInfo(constructorTuple .getWrapperConstructor()); ctx = new ExpressionContext(PointcutType.EXECUTION, constructorInfo, null); for (int i = 0; i < aspectManagers.length; i++) { for (Iterator it = aspectManagers[i].getPointcuts(ctx).iterator(); it.hasNext();) { Pointcut pointcut = (Pointcut)it.next(); if (pointcut.getExpressionInfo().hasCflowPointcut()) { cflowExpressionList.add(pointcut.getExpressionInfo().getCflowExpression()); } } } tuple.cflowExpressions = cflowExpressionList; break; case JoinPointType.CONSTRUCTOR_CALL: constructorTuple = AspectRegistry.getConstructorTuple(declaringClass, joinPointHash); constructorSignature = new ConstructorSignatureImpl(constructorTuple.getDeclaringClass(), constructorTuple); tuple.signature = constructorSignature; tuple.rtti = new ConstructorRttiImpl(constructorSignature, thisInstance, targetInstance); constructorInfo = JavaConstructorInfo.getConstructorInfo(constructorTuple.getWrapperConstructor()); withinInfo = new JavaClassInfo(targetClass); ctx = new ExpressionContext(PointcutType.CALL, constructorInfo, withinInfo); for (int i = 0; i < aspectManagers.length; i++) { for (Iterator it = aspectManagers[i].getPointcuts(ctx).iterator(); it.hasNext();) { Pointcut pointcut = (Pointcut)it.next(); if (pointcut.getExpressionInfo().hasCflowPointcut()) { cflowExpressionList.add(pointcut.getExpressionInfo().getCflowExpression()); } } } tuple.cflowExpressions = cflowExpressionList; break; case JoinPointType.FIELD_SET: Field field = AspectRegistry.getField(declaringClass, joinPointHash); FieldSignatureImpl fieldSignature = new FieldSignatureImpl(field.getDeclaringClass(), field); tuple.signature = fieldSignature; tuple.rtti = new FieldRttiImpl(fieldSignature, thisInstance, targetInstance); FieldInfo fieldInfo = JavaFieldInfo.getFieldInfo(field); ctx = new ExpressionContext(PointcutType.SET, fieldInfo, null); for (int i = 0; i < aspectManagers.length; i++) { for (Iterator it = aspectManagers[i].getPointcuts(ctx).iterator(); it.hasNext();) { Pointcut pointcut = (Pointcut)it.next(); if (pointcut.getExpressionInfo().hasCflowPointcut()) { cflowExpressionList.add(pointcut.getExpressionInfo().getCflowExpression()); } } } tuple.cflowExpressions = cflowExpressionList; break; case JoinPointType.FIELD_GET: field = AspectRegistry.getField(declaringClass, joinPointHash); fieldSignature = new FieldSignatureImpl(field.getDeclaringClass(), field); tuple.signature = fieldSignature; tuple.rtti = new FieldRttiImpl(fieldSignature, thisInstance, targetInstance); fieldInfo = JavaFieldInfo.getFieldInfo(field); ctx = new ExpressionContext(PointcutType.GET, fieldInfo, null); for (int i = 0; i < aspectManagers.length; i++) { for (Iterator it = aspectManagers[i].getPointcuts(ctx).iterator(); it.hasNext();) { Pointcut pointcut = (Pointcut)it.next(); if (pointcut.getExpressionInfo().hasCflowPointcut()) { cflowExpressionList.add(pointcut.getExpressionInfo().getCflowExpression()); } } } tuple.cflowExpressions = cflowExpressionList; break; case JoinPointType.HANDLER: CatchClauseSignatureImpl catchClauseSignature = new CatchClauseSignatureImpl(declaringClass, declaringClass, ""); tuple.signature = catchClauseSignature; tuple.rtti = new CatchClauseRttiImpl(catchClauseSignature, thisInstance, targetInstance); ClassInfo exceptionClassInfo = new JavaClassInfo(declaringClass); withinInfo = new JavaClassInfo(targetClass); ctx = new ExpressionContext(PointcutType.HANDLER, exceptionClassInfo, withinInfo); for (int i = 0; i < aspectManagers.length; i++) { for (Iterator it = aspectManagers[i].getPointcuts(ctx).iterator(); it.hasNext();) { Pointcut pointcut = (Pointcut)it.next(); if (pointcut.getExpressionInfo().hasCflowPointcut()) { cflowExpressionList.add(pointcut.getExpressionInfo().getCflowExpression()); } } } tuple.cflowExpressions = cflowExpressionList; break; case JoinPointType.STATIC_INITALIZATION: throw new UnsupportedOperationException("static initialization is not support yet"); } if (tuple.cflowExpressions == null) { tuple.cflowExpressions = EMTPTY_ARRAY_LIST; } return tuple; }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/44395ae6f1bc25dd7c1e9ba497dc6ed779ba0b8c/JitCompiler.java/buggy/aspectwerkz3/src/main/org/codehaus/aspectwerkz/joinpoint/management/JitCompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 534, 748, 77, 966, 444, 54, 748, 77, 966, 12, 6385, 509, 1233, 2148, 559, 16, 727, 509, 1233, 2148, 2310, 16, 727, 1659, 3496, 14682, 16, 4766, 3639, 727, 2970, 1181, 3163, 2619, 16, 727, 1033, 333, 1442, 16, 4766, 3639, 727, 1033, 1018, 1442, 16, 727, 1659, 14563, 13, 288, 3639, 534, 748, 77, 966, 3193, 273, 394, 534, 748, 77, 966, 5621, 3639, 987, 276, 2426, 2300, 682, 273, 394, 2407, 5621, 3639, 2970, 1181, 1318, 8526, 9648, 17570, 273, 2619, 18, 588, 17468, 17570, 5621, 3639, 1620, 261, 5701, 2148, 559, 13, 288, 5411, 648, 4214, 2148, 559, 18, 5327, 67, 15271, 13269, 30, 7734, 2985, 9038, 707, 9038, 273, 2970, 1181, 4243, 18, 588, 1305, 9038, 12, 8840, 14682, 16, 1233, 2148, 2310, 1769, 7734, 2985, 5374, 2828, 707, 5374, 273, 394, 2985, 5374, 2828, 12, 2039, 9038, 18, 588, 3456, 14682, 9334, 28524, 2868, 707, 9038, 1769, 7734, 3193, 18, 8195, 273, 707, 5374, 31, 7734, 3193, 18, 86, 748, 77, 273, 394, 2985, 54, 748, 77, 2828, 12, 2039, 5374, 16, 333, 1442, 16, 1018, 1442, 1769, 7734, 2985, 966, 25719, 273, 5110, 1305, 966, 18, 588, 1305, 966, 12, 2039, 9038, 18, 588, 3611, 1305, 10663, 7734, 5371, 1042, 1103, 273, 394, 5371, 1042, 12, 2148, 5150, 559, 18, 15271, 13269, 16, 25719, 16, 446, 1769, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 9648, 17570, 18, 2469, 31, 277, 27245, 288, 10792, 364, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 534, 748, 77, 966, 444, 54, 748, 77, 966, 12, 6385, 509, 1233, 2148, 559, 16, 727, 509, 1233, 2148, 2310, 16, 727, 1659, 3496, 14682, 16, 4766, 3639, 727, 2970, 1181, 3163, 2619, 16, 727, 1033, 333, 1442, 16, 4766, 3639, 727, 1033, 1018, 1442, 16, 727, 1659, 14563, 13, 288, 3639, 534, 748, 77, 966, 3193, 273, 394, 534, 748, 77, 966, 5621, 3639, 987, 276, 2426, 2300, 682, 273, 394, 2407, 5621, 3639, 2970, 1181, 1318, 8526, 9648, 17570, 273, 2619, 18, 588, 17468, 17570, 5621, 3639, 1620, 261, 5701, 2148, 559, 13, 288, 5411, 648, 4214, 2148, 559, 18, 5327, 67, 15271, 13269, 30, 7734, 2985, 9038, 707, 9038, 273, 2970, 1181, 2 ]
if (previousEvent != null) {
if (previousEvent != null) {
public UMOEvent createOutboundEvent(UMOMessage message, UMOImmutableEndpoint endpoint, UMOEvent previousEvent) throws UMOException { if (endpoint == null) { throw new DispatchException(new Message(Messages.X_IS_NULL, "Outbound Endpoint"), message, endpoint); } if (logger.isDebugEnabled()) { logger.debug("Creating event with data: " + message.getPayload().getClass().getName() + ", for endpoint: " + endpoint); } // Use default transformer if none is set if (endpoint.getTransformer() == null && endpoint instanceof UMOEndpoint) { if (endpoint.getConnector() instanceof AbstractConnector) { ((UMOEndpoint)endpoint).setTransformer(((AbstractConnector) endpoint.getConnector()).getDefaultOutboundTransformer()); logger.debug("Using default connector outbound transformer: " + endpoint.getTransformer()); } } try { UMOEvent event; if (previousEvent != null) { event = new MuleEvent(message, endpoint, component, previousEvent); } else { event = new MuleEvent(message, endpoint, this, false, null); } return event; } catch (Exception e) { throw new DispatchException(new Message(Messages.FAILED_TO_CREATE_X, "Event"), message, endpoint, e); } }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/27c674de7d5d9aa6b6d865afb278ca57d224ba28/MuleSession.java/clean/core/src/main/java/org/mule/impl/MuleSession.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 587, 5980, 1133, 752, 17873, 1133, 12, 2799, 51, 1079, 883, 16, 587, 5980, 16014, 3293, 2494, 16, 587, 5980, 1133, 2416, 1133, 13, 5411, 1216, 587, 5980, 503, 565, 288, 3639, 309, 261, 8003, 422, 446, 13, 288, 5411, 604, 394, 11552, 503, 12, 2704, 2350, 12, 5058, 18, 60, 67, 5127, 67, 8560, 16, 315, 17873, 6961, 6, 3631, 883, 16, 2494, 1769, 3639, 289, 3639, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 5411, 1194, 18, 4148, 2932, 11092, 871, 598, 501, 30, 315, 397, 883, 18, 588, 6110, 7675, 588, 797, 7675, 17994, 1435, 10792, 397, 3104, 364, 2494, 30, 315, 397, 2494, 1769, 3639, 289, 3639, 368, 2672, 805, 8360, 309, 6555, 353, 444, 3639, 309, 261, 8003, 18, 588, 8319, 1435, 422, 446, 597, 2494, 1276, 587, 5980, 3293, 13, 288, 5411, 309, 261, 8003, 18, 588, 7487, 1435, 1276, 4115, 7487, 13, 288, 7734, 14015, 2799, 51, 3293, 13, 8003, 2934, 542, 8319, 12443, 12, 7469, 7487, 13, 2494, 18, 588, 7487, 1435, 2934, 588, 1868, 17873, 8319, 10663, 7734, 1194, 18, 4148, 2932, 7736, 805, 8703, 11663, 8360, 30, 315, 397, 2494, 18, 588, 8319, 10663, 5411, 289, 3639, 289, 3639, 775, 288, 5411, 587, 5980, 1133, 871, 31, 5411, 309, 261, 11515, 1133, 480, 446, 13, 288, 7734, 871, 273, 394, 490, 725, 1133, 12, 2150, 16, 2494, 16, 1794, 16, 2416, 1133, 1769, 5411, 289, 469, 288, 7734, 871, 273, 394, 490, 725, 1133, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 587, 5980, 1133, 752, 17873, 1133, 12, 2799, 51, 1079, 883, 16, 587, 5980, 16014, 3293, 2494, 16, 587, 5980, 1133, 2416, 1133, 13, 5411, 1216, 587, 5980, 503, 565, 288, 3639, 309, 261, 8003, 422, 446, 13, 288, 5411, 604, 394, 11552, 503, 12, 2704, 2350, 12, 5058, 18, 60, 67, 5127, 67, 8560, 16, 315, 17873, 6961, 6, 3631, 883, 16, 2494, 1769, 3639, 289, 3639, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 5411, 1194, 18, 4148, 2932, 11092, 871, 598, 501, 30, 315, 397, 883, 18, 588, 6110, 7675, 588, 797, 7675, 17994, 1435, 10792, 397, 3104, 364, 2494, 30, 315, 397, 2494, 1769, 3639, 289, 3639, 368, 2672, 805, 8360, 309, 2 ]
public Favorite(BugReport bug) {
public Favorite(BugzillaReport bug) {
public Favorite(BugReport bug) { this(bug.getRepositoryUrl(), bug.getId(), bug.getSummary(), "", BugzillaSearchResultCollector.getAttributeMap(bug)); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/2e0d85c21fe52d1b2e012b87f56bf0d88ade7911/Favorite.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/internal/Favorite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 478, 9444, 1137, 12, 19865, 4820, 7934, 13, 288, 202, 202, 2211, 12, 925, 18, 588, 3305, 1489, 9334, 7934, 18, 26321, 9334, 7934, 18, 588, 4733, 9334, 23453, 16907, 15990, 24916, 7134, 18, 588, 1499, 863, 12, 925, 10019, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 478, 9444, 1137, 12, 19865, 4820, 7934, 13, 288, 202, 202, 2211, 12, 925, 18, 588, 3305, 1489, 9334, 7934, 18, 26321, 9334, 7934, 18, 588, 4733, 9334, 23453, 16907, 15990, 24916, 7134, 18, 588, 1499, 863, 12, 925, 10019, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private String buildClassPath(PipelineContext context) { StringBuffer classpath = new StringBuffer(); StringBuffer jarpath = new StringBuffer(); String propJarpath = getPropertySet().getString(JARPATH_PROPERTY); String propClasspath = getPropertySet().getString(CLASSPATH_PROPERTY); // Add classpath for jproperties if available if (propClasspath != null) classpath.append(propClasspath).append(PATH_SEPARATOR); // Add jar path from properties if (propJarpath != null) jarpath.append(propJarpath).append(PATH_SEPARATOR); // Add jar path from webapp if available ExternalContext externalContext = (ExternalContext) context.getAttribute(PipelineContext.EXTERNAL_CONTEXT); boolean gotLibDir = false; if (externalContext != null) { String webInfLibPath = externalContext.getRealPath("WEB-INF/lib"); if (webInfLibPath != null) { jarpath.append(webInfLibPath).append(PATH_SEPARATOR); gotLibDir = true; } String webInfClasses = externalContext.getRealPath("WEB-INF/classes"); if (webInfClasses != null) classpath.append(webInfClasses).append(PATH_SEPARATOR); } // Try to add directory containing current JAR file if (!gotLibDir) { try { URL url = getClass().getClassLoader().getResource("org/orbeon/oxf/processor/JavaProcessor.class"); if (url.getProtocol().equals("jar")) { String file = url.getFile(); if (file.indexOf("!") != -1) file = file.substring(0, file.indexOf("!")); if (file.startsWith("file:/")) file = file.substring("file:/".length()); file = URLDecoder.decode(file, "utf-8"); if (logger.isDebugEnabled()) logger.debug("Found current JAR file: " + file); File jarDirectory = new File(file).getParentFile(); jarpath.append(jarDirectory.getCanonicalPath()).append(PATH_SEPARATOR); } } catch (IOException e) { throw new OXFException(e); } } for (StringTokenizer tokenizer = new StringTokenizer(jarpath.toString(), PATH_SEPARATOR); tokenizer.hasMoreElements();) { String path = tokenizer.nextToken(); // Find jars in path File[] jars = new File(path).listFiles(new FileFilter() { public boolean accept(File pathname) { String absolutePath = pathname.getAbsolutePath(); return absolutePath.endsWith(".jar") || absolutePath.endsWith(".zip"); } }); // Add them to string buffer if (jars != null) { for (int i = 0; i < jars.length; i++) classpath.append(jars[i].getAbsolutePath()).append(PATH_SEPARATOR); } } if (logger.isDebugEnabled()) logger.debug("Classpath: "+ classpath.toString()); return classpath.length() == 0 ? null : classpath.toString(); }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/a1e09eec730a4aefbdb73826aa6879f24555c5b7/JavaProcessor.java/buggy/src/java/org/orbeon/oxf/processor/JavaProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 1361, 22158, 12, 8798, 1042, 819, 13, 288, 3639, 6674, 10006, 273, 394, 6674, 5621, 3639, 6674, 7334, 803, 273, 394, 6674, 5621, 3639, 514, 2270, 10813, 803, 273, 3911, 694, 7675, 588, 780, 12, 46, 985, 4211, 67, 9900, 1769, 3639, 514, 2270, 17461, 273, 3911, 694, 7675, 588, 780, 12, 5237, 4211, 67, 9900, 1769, 3639, 368, 1436, 10006, 364, 525, 4738, 309, 2319, 3639, 309, 261, 5986, 17461, 480, 446, 13, 5411, 10006, 18, 6923, 12, 5986, 17461, 2934, 6923, 12, 4211, 67, 4550, 1769, 3639, 368, 1436, 7334, 589, 628, 1790, 3639, 309, 261, 5986, 10813, 803, 480, 446, 13, 5411, 7334, 803, 18, 6923, 12, 5986, 10813, 803, 2934, 6923, 12, 4211, 67, 4550, 1769, 3639, 368, 1436, 7334, 589, 628, 28945, 309, 2319, 3639, 11352, 1042, 3903, 1042, 273, 261, 6841, 1042, 13, 819, 18, 588, 1499, 12, 8798, 1042, 18, 2294, 11702, 67, 13181, 1769, 3639, 1250, 2363, 5664, 1621, 273, 629, 31, 3639, 309, 261, 9375, 1042, 480, 446, 13, 288, 5411, 514, 3311, 13149, 5664, 743, 273, 3903, 1042, 18, 588, 6955, 743, 2932, 14778, 17, 19212, 19, 2941, 8863, 5411, 309, 261, 4875, 13149, 5664, 743, 480, 446, 13, 288, 7734, 7334, 803, 18, 6923, 12, 4875, 13149, 5664, 743, 2934, 6923, 12, 4211, 67, 4550, 1769, 7734, 2363, 5664, 1621, 273, 638, 31, 5411, 289, 5411, 514, 3311, 13149, 4818, 273, 3903, 1042, 18, 588, 6955, 743, 2932, 14778, 17, 19212, 19, 4701, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 1361, 22158, 12, 8798, 1042, 819, 13, 288, 3639, 6674, 10006, 273, 394, 6674, 5621, 3639, 6674, 7334, 803, 273, 394, 6674, 5621, 3639, 514, 2270, 10813, 803, 273, 3911, 694, 7675, 588, 780, 12, 46, 985, 4211, 67, 9900, 1769, 3639, 514, 2270, 17461, 273, 3911, 694, 7675, 588, 780, 12, 5237, 4211, 67, 9900, 1769, 3639, 368, 1436, 10006, 364, 525, 4738, 309, 2319, 3639, 309, 261, 5986, 17461, 480, 446, 13, 5411, 10006, 18, 6923, 12, 5986, 17461, 2934, 6923, 12, 4211, 67, 4550, 1769, 3639, 368, 1436, 7334, 589, 628, 1790, 3639, 309, 261, 5986, 10813, 803, 480, 446, 13, 5411, 7334, 803, 18, 6923, 12, 5986, 10813, 803, 2934, 6923, 12, 2 ]
nestedIA.setContext(context);
nestedSimpleIA.setContext(context);
protected void addImplicitRules(Interpreter interpreter) { NestedComponentIA nestedIA = new NestedComponentIA(); nestedIA.setContext(context); interpreter.addImplicitAction(nestedIA); NestedSimplePropertyIA nestedSimpleIA = new NestedSimplePropertyIA(); nestedIA.setContext(context); interpreter.addImplicitAction(nestedSimpleIA); }
45789 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45789/cd5686d976f1993d6cc606a0b2d7b9f8ae6f1a31/SimpleConfigurator.java/clean/logback-core/src/test/java/ch/qos/logback/core/joran/SimpleConfigurator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 527, 15787, 4478, 12, 30010, 16048, 13, 288, 565, 19071, 1841, 15188, 4764, 15188, 273, 394, 19071, 1841, 15188, 5621, 565, 4764, 5784, 15188, 18, 542, 1042, 12, 2472, 1769, 565, 16048, 18, 1289, 15787, 1803, 12, 12985, 15188, 1769, 565, 19071, 5784, 1396, 15188, 4764, 5784, 15188, 273, 394, 19071, 5784, 1396, 15188, 5621, 565, 4764, 5784, 15188, 18, 542, 1042, 12, 2472, 1769, 565, 16048, 18, 1289, 15787, 1803, 12, 12985, 5784, 15188, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 527, 15787, 4478, 12, 30010, 16048, 13, 288, 565, 19071, 1841, 15188, 4764, 15188, 273, 394, 19071, 1841, 15188, 5621, 565, 4764, 5784, 15188, 18, 542, 1042, 12, 2472, 1769, 565, 16048, 18, 1289, 15787, 1803, 12, 12985, 15188, 1769, 565, 19071, 5784, 1396, 15188, 4764, 5784, 15188, 273, 394, 19071, 5784, 1396, 15188, 5621, 565, 4764, 5784, 15188, 18, 542, 1042, 12, 2472, 1769, 565, 16048, 18, 1289, 15787, 1803, 12, 12985, 5784, 15188, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Object result=null;
boolean result=false;
public Object remove(int index){ load(); Object result=null; synchronized(mutex){ IndexItem item=list.get(index); if(item!=null){ result=getValue(item); IndexItem prev=list.getPrevEntry(item); prev=prev!=null?prev:root; IndexItem next=list.getNextEntry(item); list.remove(index); delete(item,prev,next); } } return result; }
11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/bfaff9b37c815c32ec18911bf038d03724c753d4/ListContainerImpl.java/buggy/activemq-core/src/main/java/org/apache/activemq/kaha/impl/ListContainerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1206, 12, 474, 770, 15329, 3639, 1262, 5621, 3639, 1250, 563, 33, 5743, 31, 3639, 3852, 12, 29946, 15329, 5411, 3340, 1180, 761, 33, 1098, 18, 588, 12, 1615, 1769, 5411, 309, 12, 1726, 5, 33, 2011, 15329, 7734, 563, 33, 24805, 12, 1726, 1769, 7734, 3340, 1180, 2807, 33, 1098, 18, 588, 9958, 1622, 12, 1726, 1769, 7734, 2807, 33, 10001, 5, 33, 2011, 35, 10001, 30, 3085, 31, 7734, 3340, 1180, 1024, 33, 1098, 18, 588, 2134, 1622, 12, 1726, 1769, 7734, 666, 18, 4479, 12, 1615, 1769, 7734, 1430, 12, 1726, 16, 10001, 16, 4285, 1769, 5411, 289, 3639, 289, 3639, 327, 563, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1206, 12, 474, 770, 15329, 3639, 1262, 5621, 3639, 1250, 563, 33, 5743, 31, 3639, 3852, 12, 29946, 15329, 5411, 3340, 1180, 761, 33, 1098, 18, 588, 12, 1615, 1769, 5411, 309, 12, 1726, 5, 33, 2011, 15329, 7734, 563, 33, 24805, 12, 1726, 1769, 7734, 3340, 1180, 2807, 33, 1098, 18, 588, 9958, 1622, 12, 1726, 1769, 7734, 2807, 33, 10001, 5, 33, 2011, 35, 10001, 30, 3085, 31, 7734, 3340, 1180, 1024, 33, 1098, 18, 588, 2134, 1622, 12, 1726, 1769, 7734, 666, 18, 4479, 12, 1615, 1769, 7734, 1430, 12, 1726, 16, 10001, 16, 4285, 1769, 5411, 289, 3639, 289, 3639, 327, 563, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100 ]
case ConsumeItemRequest.EQUIP_WEAPON: if ( hasEquipped( item.getName(), WEAPON ) ) ++count; if ( hasEquipped( item.getName(), OFFHAND ) ) ++count; break;
case ConsumeItemRequest.EQUIP_WEAPON: if ( hasEquipped( item.getName(), WEAPON ) ) ++count; if ( hasEquipped( item.getName(), OFFHAND ) ) ++count; break;
public static boolean hasItem( AdventureResult item, boolean shouldCreate ) { int count = item.getCount( inventory ) + item.getCount( closet ); switch ( TradeableItemDatabase.getConsumptionType( item.getItemID() ) ) { case ConsumeItemRequest.EQUIP_HAT: case ConsumeItemRequest.EQUIP_PANTS: case ConsumeItemRequest.EQUIP_FAMILIAR: case ConsumeItemRequest.EQUIP_OFFHAND: if ( hasEquipped( item ) ) ++count; break; case ConsumeItemRequest.EQUIP_WEAPON: if ( hasEquipped( item.getName(), WEAPON ) ) ++count; if ( hasEquipped( item.getName(), OFFHAND ) ) ++count; break; case ConsumeItemRequest.EQUIP_ACCESSORY: if ( hasEquipped( item.getName(), ACCESSORY1 ) ) ++count; if ( hasEquipped( item.getName(), ACCESSORY2 ) ) ++count; if ( hasEquipped( item.getName(), ACCESSORY3 ) ) ++count; break; } if ( shouldCreate ) { ItemCreationRequest creation = ItemCreationRequest.getInstance( item.getItemID() ); if ( creation != null ) count += creation.getQuantityPossible(); } return count > 0 && count >= item.getCount(); }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/eb8203b0add11024f00f9d7ed2ad7b2b63269aab/KoLCharacter.java/buggy/src/net/sourceforge/kolmafia/KoLCharacter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 711, 1180, 12, 4052, 616, 594, 1253, 761, 16, 1250, 1410, 1684, 262, 202, 95, 202, 202, 474, 1056, 273, 761, 18, 588, 1380, 12, 13086, 262, 397, 761, 18, 588, 1380, 12, 1219, 542, 11272, 202, 202, 9610, 261, 2197, 323, 429, 1180, 4254, 18, 588, 11911, 375, 559, 12, 761, 18, 588, 1180, 734, 1435, 262, 262, 202, 202, 95, 1082, 202, 3593, 20418, 1180, 691, 18, 41, 3500, 2579, 67, 44, 789, 30, 1082, 202, 3593, 20418, 1180, 691, 18, 41, 3500, 2579, 67, 52, 6856, 55, 30, 1082, 202, 3593, 20418, 1180, 691, 18, 41, 3500, 2579, 67, 2046, 7492, 2053, 985, 30, 1082, 202, 3593, 20418, 1180, 691, 18, 41, 3500, 2579, 67, 8797, 12346, 30, 9506, 202, 430, 261, 711, 13142, 625, 1845, 12, 761, 262, 262, 225, 965, 1883, 31, 9506, 202, 8820, 31, 1082, 202, 3593, 20418, 1180, 691, 18, 41, 3500, 2579, 67, 6950, 2203, 673, 30, 9506, 202, 430, 261, 711, 13142, 625, 1845, 12, 761, 18, 17994, 9334, 13880, 2203, 673, 262, 262, 225, 965, 1883, 31, 9506, 202, 430, 261, 711, 13142, 625, 1845, 12, 761, 18, 17994, 9334, 17511, 12346, 262, 262, 225, 965, 1883, 31, 9506, 202, 8820, 31, 1082, 202, 3593, 20418, 1180, 691, 18, 41, 3500, 2579, 67, 13204, 3964, 30, 9506, 202, 430, 261, 711, 13142, 625, 1845, 12, 761, 18, 17994, 9334, 13255, 3964, 21, 262, 262, 225, 965, 1883, 31, 9506, 202, 430, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 711, 1180, 12, 4052, 616, 594, 1253, 761, 16, 1250, 1410, 1684, 262, 202, 95, 202, 202, 474, 1056, 273, 761, 18, 588, 1380, 12, 13086, 262, 397, 761, 18, 588, 1380, 12, 1219, 542, 11272, 202, 202, 9610, 261, 2197, 323, 429, 1180, 4254, 18, 588, 11911, 375, 559, 12, 761, 18, 588, 1180, 734, 1435, 262, 262, 202, 202, 95, 1082, 202, 3593, 20418, 1180, 691, 18, 41, 3500, 2579, 67, 44, 789, 30, 1082, 202, 3593, 20418, 1180, 691, 18, 41, 3500, 2579, 67, 52, 6856, 55, 30, 1082, 202, 3593, 20418, 1180, 691, 18, 41, 3500, 2579, 67, 2046, 7492, 2053, 985, 30, 1082, 202, 3593, 20418, 1180, 691, 18, 2 ]
return value - (result.getAttackerDead() /
return value - (result.getAttackerDead() /
int evaluateCombat(LegionInfo attacker, LegionInfo defender, MasterHex hex) { if (attacker.getPlayerName().equals(defender.getPlayerName())) { return 0; } final int defenderPointValue = defender.getPointValue(); final int attackerPointValue = attacker.getPointValue(); final BattleResults result = estimateBattleResults(attacker, defender, hex); int value = (int)result.getExpectedValue(); if (!I_HATE_HUMANS) { // In rational AI mode do not reward early titan attacks if (client.getTurnNumber() < 5) { return value - 100; } } boolean defenderTitan = defender.hasTitan(); if (result.getExpectedValue() > 0) { if (attacker.hasTitan()) { // unless we can win the game with this attack if (defenderTitan) { if (I_HATE_HUMANS) { // do it and win the game, there is only 1 human value = 1000 + (int)result.getExpectedValue() * 1000; } else if (client.getNumLivingPlayers() == 2 && (attackerPointValue - result.getAttackerDead()) > TITAN_SURVIVAL) { // do it and win the game value = 1000 + (int)result.getExpectedValue() * 1000; } else if (result.getAttackerDead() < attackerPointValue / 2 && (attackerPointValue - result.getAttackerDead()) > TITAN_SURVIVAL) { // our titan stack will be badly damaged // but it is worth it value = 100 + (int)result.getExpectedValue() * 100; } else { // ack! we'll fuck up our titan group // use metric below so that if we have no choice // but to attack we pick the least losing battle value = (int)result.getAttackerDead() * -100; } } else if (result.getAttackerDead() > attackerPointValue / 2) // (1/4) will usually be about 3 pieces since titan // will be large part of value { // ack! we'll fuck up our titan group // use metric below so that if we have no choice but to // attack we pick the least losing battle value = -100 + (int)result.getAttackerDead() * -100; } else // win with minimal loss { // value = result.getExpectedValue(); // default value } } else if (defenderTitan) { value = (1000 + (int)result.getExpectedValue() * 1000) / client.getNumLivingPlayers(); } } else // we expect to lose on this battle. // but if the enemy is a titan stack it may be worth it { if (!attacker.hasTitan() && defenderTitan) { // gun for the titan stack if we can knock out // more than 80% of the value if (result.getDefenderDead() > defenderPointValue * .5) { // value should be proportional to amount of Titan stack // killed since we may be able to attack with more // than one legion value = result.getDefenderDead() * 100 / client.getNumLivingPlayers() / 2; } } else if (attacker.hasTitan()) { // ack! we'll kill our titan group // use metric below so that if we have no choice but to attack // we pick the least losing battle value = (-1000 + (int)result.getExpectedValue() * 1000) / client.getNumLivingPlayers(); } } // apply penalty to attacks if we have few legions // Don't reward titan attacks with few stacks int attackerLegions = attacker.getPlayerInfo().getNumLegions(); if (attackerLegions < 5 && !I_HATE_HUMANS) { return value - (result.getAttackerDead() / attackerPointValue) * 1000; } return value; }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/ebf54439529469978860d7d4e7076aac7caf5fbf/RationalAI.java/clean/Colossus/net/sf/colossus/client/RationalAI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 5956, 11328, 270, 12, 8329, 285, 966, 13843, 264, 16, 17167, 285, 966, 1652, 2345, 16, 13453, 7037, 3827, 13, 565, 288, 3639, 309, 261, 4558, 484, 264, 18, 588, 12148, 461, 7675, 14963, 12, 536, 2345, 18, 588, 12148, 461, 1435, 3719, 3639, 288, 5411, 327, 374, 31, 3639, 289, 3639, 727, 509, 1652, 2345, 2148, 620, 273, 1652, 2345, 18, 588, 2148, 620, 5621, 3639, 727, 509, 13843, 264, 2148, 620, 273, 13843, 264, 18, 588, 2148, 620, 5621, 3639, 727, 605, 4558, 298, 3447, 563, 273, 11108, 38, 4558, 298, 3447, 12, 4558, 484, 264, 16, 1652, 2345, 16, 5411, 3827, 1769, 3639, 509, 460, 273, 261, 474, 13, 2088, 18, 588, 6861, 620, 5621, 7734, 309, 16051, 45, 67, 44, 1777, 67, 44, 2799, 11607, 13, 3639, 288, 5411, 368, 657, 436, 8371, 432, 45, 1965, 741, 486, 19890, 11646, 268, 305, 304, 28444, 5411, 309, 261, 2625, 18, 588, 15858, 1854, 1435, 411, 1381, 13, 5411, 288, 7734, 327, 460, 300, 2130, 31, 5411, 289, 3639, 289, 7734, 1250, 1652, 2345, 56, 305, 304, 273, 1652, 2345, 18, 5332, 56, 305, 304, 5621, 7734, 309, 261, 2088, 18, 588, 6861, 620, 1435, 405, 374, 13, 3639, 288, 5411, 309, 261, 4558, 484, 264, 18, 5332, 56, 305, 304, 10756, 5411, 288, 7734, 368, 3308, 732, 848, 5657, 326, 7920, 598, 333, 13843, 7734, 309, 261, 536, 2345, 56, 305, 304, 13, 7734, 288, 10792, 309, 261, 45, 67, 44, 1777, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 5956, 11328, 270, 12, 8329, 285, 966, 13843, 264, 16, 17167, 285, 966, 1652, 2345, 16, 13453, 7037, 3827, 13, 565, 288, 3639, 309, 261, 4558, 484, 264, 18, 588, 12148, 461, 7675, 14963, 12, 536, 2345, 18, 588, 12148, 461, 1435, 3719, 3639, 288, 5411, 327, 374, 31, 3639, 289, 3639, 727, 509, 1652, 2345, 2148, 620, 273, 1652, 2345, 18, 588, 2148, 620, 5621, 3639, 727, 509, 13843, 264, 2148, 620, 273, 13843, 264, 18, 588, 2148, 620, 5621, 3639, 727, 605, 4558, 298, 3447, 563, 273, 11108, 38, 4558, 298, 3447, 12, 4558, 484, 264, 16, 1652, 2345, 16, 5411, 3827, 1769, 3639, 509, 460, 273, 261, 474, 13, 2088, 18, 588, 6861, 620, 2 ]
return false;
return hasBeenModified;
public boolean hasBeenModified() throws IOException { long last = getLastModified(); if (cachedLastModified != last) { cachedLastModified = last; return true; } return false; }
47723 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47723/dffeff7c80f281f47ba2acc4da554c37a3c13fa8/AbstractVirtualFileHandler.java/buggy/src/main/java/org/jboss/virtual/plugins/context/AbstractVirtualFileHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 1250, 711, 25931, 4575, 1435, 1216, 1860, 282, 288, 1377, 1525, 1142, 273, 27068, 5621, 1377, 309, 261, 7097, 14747, 480, 1142, 13, 1377, 288, 540, 3472, 14747, 273, 1142, 31, 540, 327, 638, 31, 1377, 289, 1377, 327, 711, 25931, 4575, 31, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 1250, 711, 25931, 4575, 1435, 1216, 1860, 282, 288, 1377, 1525, 1142, 273, 27068, 5621, 1377, 309, 261, 7097, 14747, 480, 1142, 13, 1377, 288, 540, 3472, 14747, 273, 1142, 31, 540, 327, 638, 31, 1377, 289, 1377, 327, 711, 25931, 4575, 31, 282, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
}
}
void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION) { tree.addSelectionPath(path); tree.setLeadSelectionPath(path); } else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.CONTIGUOUS_TREE_SELECTION) { // TODO } else { tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); tree.getSelectionModel().clearSelection(); tree.addSelectionPath(path); tree.setLeadSelectionPath(path); } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 918, 2027, 743, 12, 46, 2471, 2151, 16, 4902, 743, 589, 13, 282, 288, 1377, 309, 261, 803, 480, 446, 13, 1377, 288, 3639, 309, 261, 3413, 18, 588, 6233, 1488, 7675, 588, 6233, 2309, 1435, 422, 4902, 6233, 1488, 18, 13498, 6067, 3047, 57, 21667, 67, 26557, 67, 1090, 15445, 13, 540, 288, 5411, 2151, 18, 1289, 6233, 743, 12, 803, 1769, 5411, 2151, 18, 542, 9678, 6233, 743, 12, 803, 1769, 540, 289, 3639, 469, 309, 261, 3413, 18, 588, 6233, 1488, 7675, 588, 6233, 2309, 1435, 422, 4902, 6233, 1488, 18, 6067, 3047, 57, 21667, 67, 26557, 67, 1090, 15445, 13, 540, 288, 5411, 368, 2660, 540, 289, 540, 469, 540, 288, 5411, 2151, 18, 588, 6233, 1488, 7675, 542, 6233, 2309, 12, 2471, 6233, 1488, 18, 20184, 67, 26557, 67, 1090, 15445, 1769, 2868, 2151, 18, 588, 6233, 1488, 7675, 8507, 6233, 5621, 5411, 2151, 18, 1289, 6233, 743, 12, 803, 1769, 5411, 2151, 18, 542, 9678, 6233, 743, 12, 803, 1769, 540, 289, 1377, 289, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 918, 2027, 743, 12, 46, 2471, 2151, 16, 4902, 743, 589, 13, 282, 288, 1377, 309, 261, 803, 480, 446, 13, 1377, 288, 3639, 309, 261, 3413, 18, 588, 6233, 1488, 7675, 588, 6233, 2309, 1435, 422, 4902, 6233, 1488, 18, 13498, 6067, 3047, 57, 21667, 67, 26557, 67, 1090, 15445, 13, 540, 288, 5411, 2151, 18, 1289, 6233, 743, 12, 803, 1769, 5411, 2151, 18, 542, 9678, 6233, 743, 12, 803, 1769, 540, 289, 3639, 469, 309, 261, 3413, 18, 588, 6233, 1488, 7675, 588, 6233, 2309, 1435, 422, 4902, 6233, 1488, 18, 6067, 3047, 57, 21667, 67, 26557, 67, 1090, 15445, 13, 540, 288, 5411, 368, 2660, 540, 289, 540, 469, 540, 288, 5411, 2151, 18, 2 ]
Boolean test = ((ScriptableObject)y).equivalentValues(x); if (test != null) { return test.booleanValue();
Object test = ((ScriptableObject)y).equivalentValues(x); if (test != Scriptable.NOT_FOUND) { return ((Boolean)test).booleanValue();
public static boolean eq(Object x, Object y) { if (x == null || x == Undefined.instance) { if (y == null || y == Undefined.instance) { return true; } if (y instanceof ScriptableObject) { Boolean test = ((ScriptableObject)y).equivalentValues(x); if (test != null) { return test.booleanValue(); } } return false; } else if (x instanceof Number) { return eqNumber(((Number)x).doubleValue(), y); } else if (x instanceof String) { return eqString((String)x, y); } else if (x instanceof Boolean) { boolean b = ((Boolean)x).booleanValue(); if (y instanceof Boolean) { return b == ((Boolean)y).booleanValue(); } if (y instanceof ScriptableObject) { Boolean test = ((ScriptableObject)y).equivalentValues(x); if (test != null) { return test.booleanValue(); } } return eqNumber(b ? 1.0 : 0.0, y); } else if (x instanceof Scriptable) { if (y instanceof Scriptable) { // Generic test also works for y == Undefined.instance if (x == y) { return true; } if (x instanceof ScriptableObject) { Boolean test = ((ScriptableObject)x).equivalentValues(y); if (test != null) { return test.booleanValue(); } } if (y instanceof ScriptableObject) { Boolean test = ((ScriptableObject)y).equivalentValues(x); if (test != null) { return test.booleanValue(); } } if (x instanceof Wrapper && y instanceof Wrapper) { return ((Wrapper)x).unwrap() == ((Wrapper)y).unwrap(); } return false; } else if (y instanceof Boolean) { if (x instanceof ScriptableObject) { Boolean test = ((ScriptableObject)x).equivalentValues(y); if (test != null) { return test.booleanValue(); } } double d = ((Boolean)y).booleanValue() ? 1.0 : 0.0; return eqNumber(d, x); } else if (y instanceof Number) { return eqNumber(((Number)y).doubleValue(), x); } else if (y instanceof String) { return eqString((String)y, x); } return false; } else { warnAboutNonJSObject(x); return x == y; } }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/e056c6cd398e14bb613713e0d2422d282617403a/ScriptRuntime.java/clean/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 7555, 12, 921, 619, 16, 1033, 677, 13, 565, 288, 3639, 309, 261, 92, 422, 446, 747, 619, 422, 22243, 18, 1336, 13, 288, 5411, 309, 261, 93, 422, 446, 747, 677, 422, 22243, 18, 1336, 13, 288, 7734, 327, 638, 31, 5411, 289, 5411, 309, 261, 93, 1276, 22780, 921, 13, 288, 7734, 3411, 1842, 273, 14015, 3651, 429, 921, 13, 93, 2934, 14298, 6505, 1972, 12, 92, 1769, 7734, 309, 261, 3813, 480, 446, 13, 288, 10792, 327, 1842, 18, 6494, 620, 5621, 7734, 289, 5411, 289, 5411, 327, 629, 31, 3639, 289, 469, 309, 261, 92, 1276, 3588, 13, 288, 5411, 327, 7555, 1854, 12443, 12, 1854, 13, 92, 2934, 9056, 620, 9334, 677, 1769, 3639, 289, 469, 309, 261, 92, 1276, 514, 13, 288, 5411, 327, 7555, 780, 12443, 780, 13, 92, 16, 677, 1769, 3639, 289, 469, 309, 261, 92, 1276, 3411, 13, 288, 5411, 1250, 324, 273, 14015, 5507, 13, 92, 2934, 6494, 620, 5621, 5411, 309, 261, 93, 1276, 3411, 13, 288, 7734, 327, 324, 422, 14015, 5507, 13, 93, 2934, 6494, 620, 5621, 5411, 289, 5411, 309, 261, 93, 1276, 22780, 921, 13, 288, 7734, 3411, 1842, 273, 14015, 3651, 429, 921, 13, 93, 2934, 14298, 6505, 1972, 12, 92, 1769, 7734, 309, 261, 3813, 480, 446, 13, 288, 10792, 327, 1842, 18, 6494, 620, 5621, 7734, 289, 5411, 289, 5411, 327, 7555, 1854, 12, 70, 692, 404, 18, 20, 294, 374, 18, 20, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 7555, 12, 921, 619, 16, 1033, 677, 13, 565, 288, 3639, 309, 261, 92, 422, 446, 747, 619, 422, 22243, 18, 1336, 13, 288, 5411, 309, 261, 93, 422, 446, 747, 677, 422, 22243, 18, 1336, 13, 288, 7734, 327, 638, 31, 5411, 289, 5411, 309, 261, 93, 1276, 22780, 921, 13, 288, 7734, 3411, 1842, 273, 14015, 3651, 429, 921, 13, 93, 2934, 14298, 6505, 1972, 12, 92, 1769, 7734, 309, 261, 3813, 480, 446, 13, 288, 10792, 327, 1842, 18, 6494, 620, 5621, 7734, 289, 5411, 289, 5411, 327, 629, 31, 3639, 289, 469, 309, 261, 92, 1276, 3588, 13, 288, 5411, 327, 7555, 1854, 12443, 12, 1854, 13, 92, 2934, 9056, 620, 2 ]
setCompletionValues(scope, kind, first, prev );
setCompletionValues(scope, kind, first, prev, Key.EMPTY );
protected ITokenDuple name(IASTScope scope, IASTCompletionNode.CompletionKind kind ) throws BacktrackException, EndOfFileException { IToken first = LA(1); IToken last = null; IToken mark = mark(); List argumentList = new LinkedList(); boolean hasTemplateId = false; boolean startsWithColonColon = false; if (LT(1) == IToken.tCOLONCOLON){ argumentList.add( null ); last = consume( IToken.tCOLONCOLON ); setCompletionValues( scope, kind, Key.EMPTY, getCompliationUnit() ); startsWithColonColon = true; } if (LT(1) == IToken.tCOMPL) consume(); switch (LT(1)) { case IToken.tIDENTIFIER : IToken prev = last; last = consume(IToken.tIDENTIFIER); if( startsWithColonColon ) setCompletionValues( scope, kind, getCompliationUnit() ); else if( prev != null ) setCompletionValues(scope, kind, first, prev ); else setCompletionValues(scope, kind ); last = consumeTemplateArguments(scope, last, argumentList); if( last.getType() == IToken.tGT ) hasTemplateId = true; break; default : backup(mark); throw backtrack; } while (LT(1) == IToken.tCOLONCOLON) { IToken prev = last; last = consume(IToken.tCOLONCOLON); setCompletionValues( scope, kind, first, prev ); if (queryLookaheadCapability() && LT(1) == IToken.t_template) consume(); if (queryLookaheadCapability() && LT(1) == IToken.tCOMPL) consume(); switch (LT(1)) { case IToken.t_operator : backup(mark); throw backtrack; case IToken.tIDENTIFIER : prev = last; last = consume(); setCompletionValues( scope, kind, first, prev ); last = consumeTemplateArguments(scope, last, argumentList); if( last.getType() == IToken.tGT ) hasTemplateId = true; } } ITokenDuple tokenDuple = new TokenDuple(first, last, ( hasTemplateId ? argumentList : null ) ); setGreaterNameContext( tokenDuple ); return tokenDuple; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1a5788e0dc8eb7824785a35eaf53c7373aa33bdb/ExpressionParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 1345, 40, 2268, 508, 12, 45, 9053, 3876, 2146, 16, 467, 9053, 11238, 907, 18, 11238, 5677, 3846, 262, 1216, 4297, 4101, 503, 16, 4403, 951, 812, 503, 288, 9506, 565, 467, 1345, 1122, 273, 2928, 12, 21, 1769, 202, 565, 467, 1345, 1142, 273, 446, 31, 202, 565, 467, 1345, 2267, 273, 2267, 5621, 202, 377, 202, 565, 987, 1237, 682, 273, 394, 10688, 5621, 202, 565, 1250, 711, 2283, 548, 273, 629, 31, 202, 565, 1250, 4969, 19636, 19636, 273, 629, 31, 7734, 309, 261, 12050, 12, 21, 13, 422, 467, 1345, 18, 88, 4935, 673, 4935, 673, 15329, 540, 202, 3446, 682, 18, 1289, 12, 446, 11272, 5411, 1142, 273, 7865, 12, 467, 1345, 18, 88, 4935, 673, 4935, 673, 11272, 5411, 444, 11238, 1972, 12, 2146, 16, 3846, 16, 1929, 18, 13625, 16, 336, 799, 412, 7072, 2802, 1435, 11272, 5411, 4969, 19636, 19636, 273, 638, 31, 3639, 289, 3639, 309, 261, 12050, 12, 21, 13, 422, 467, 1345, 18, 88, 4208, 6253, 13, 5411, 7865, 5621, 7734, 1620, 261, 12050, 12, 21, 3719, 3639, 288, 5411, 648, 467, 1345, 18, 88, 16606, 294, 2398, 202, 1285, 969, 2807, 273, 1142, 31, 2398, 202, 2722, 273, 7865, 12, 1285, 969, 18, 88, 16606, 1769, 2398, 202, 430, 12, 4969, 19636, 19636, 262, 2398, 202, 202, 542, 11238, 1972, 12, 2146, 16, 3846, 16, 336, 799, 412, 7072, 2802, 1435, 11272, 2398, 202, 12107, 309, 12, 2807, 480, 446, 262, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 1345, 40, 2268, 508, 12, 45, 9053, 3876, 2146, 16, 467, 9053, 11238, 907, 18, 11238, 5677, 3846, 262, 1216, 4297, 4101, 503, 16, 4403, 951, 812, 503, 288, 9506, 565, 467, 1345, 1122, 273, 2928, 12, 21, 1769, 202, 565, 467, 1345, 1142, 273, 446, 31, 202, 565, 467, 1345, 2267, 273, 2267, 5621, 202, 377, 202, 565, 987, 1237, 682, 273, 394, 10688, 5621, 202, 565, 1250, 711, 2283, 548, 273, 629, 31, 202, 565, 1250, 4969, 19636, 19636, 273, 629, 31, 7734, 309, 261, 12050, 12, 21, 13, 422, 467, 1345, 18, 88, 4935, 673, 4935, 673, 15329, 540, 202, 3446, 682, 18, 1289, 12, 446, 11272, 5411, 1142, 273, 7865, 12, 2 ]
return new Await_c( pos, expr );
Await n = new Await_c( pos, expr ); n = (Await) n.ext(extFactory().extStmt()); return (Await) n.del(delFactory().delStmt());
public Await Await(Position pos, Expr expr ) { return new Await_c( pos, expr ); }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/05afa5e7ebbf7f251a7dace34f01d36e24c29128/X10NodeFactory_c.java/clean/x10.compiler/src/polyglot/ext/x10/ast/X10NodeFactory_c.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 432, 7048, 432, 7048, 12, 2555, 949, 16, 8074, 3065, 262, 288, 377, 202, 37, 7048, 290, 273, 394, 432, 7048, 67, 71, 12, 949, 16, 3065, 11272, 290, 273, 261, 37, 7048, 13, 290, 18, 408, 12, 408, 1733, 7675, 408, 8952, 10663, 327, 261, 37, 7048, 13, 290, 18, 3771, 12, 3771, 1733, 7675, 3771, 8952, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 432, 7048, 432, 7048, 12, 2555, 949, 16, 8074, 3065, 262, 288, 377, 202, 37, 7048, 290, 273, 394, 432, 7048, 67, 71, 12, 949, 16, 3065, 11272, 290, 273, 261, 37, 7048, 13, 290, 18, 408, 12, 408, 1733, 7675, 408, 8952, 10663, 327, 261, 37, 7048, 13, 290, 18, 3771, 12, 3771, 1733, 7675, 3771, 8952, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
protected void addDesignatorReferences( ASTInitializerClause clause ) { if( clause.getKind() == IASTInitializerClause.Kind.DESIGNATED_INITIALIZER_LIST || clause.getKind() == IASTInitializerClause.Kind.DESIGNATED_ASSIGNMENT_EXPRESSION ) { ISymbol variableSymbol = ((ASTVariable)clause.getOwnerVariableDeclaration()).getSymbol(); ISymbol currentSymbol = variableSymbol.getTypeSymbol(); if( currentSymbol == null ) return; ITypeInfo currentTypeInfo = TypeInfoProvider.newTypeInfo( currentSymbol.getTypeInfo() ); List designators = clause.getDesignatorList(); int size = designators.size(); for( int i = 0; i < size; i++ ) { ASTDesignator designator = (ASTDesignator)designators.get(i); if( designator.getKind() == IASTDesignator.DesignatorKind.FIELD ) { ISymbol lookup = null; if( ! ( currentSymbol instanceof IContainerSymbol ) ) break; try { lookup = ((IContainerSymbol)currentSymbol).lookup( designator.fieldNameCharArray() ); } catch (ParserSymbolTableException e){ break; } if( lookup == null || lookup.getContainingSymbol() != currentSymbol ) break; try { if( lookup != null ) addReference( clause.getReferences(), createReference( lookup, designator.fieldNameCharArray(), designator.fieldOffset() )); } catch (ASTSemanticException e1) { } currentTypeInfo = TypeInfoProvider.newTypeInfo( lookup.getTypeInfo() ); if( lookup.getTypeInfo() == null ) break; currentSymbol = lookup.getTypeSymbol();
protected void addDesignatorReferences(ASTInitializerClause clause) { if (clause.getKind() == IASTInitializerClause.Kind.DESIGNATED_INITIALIZER_LIST || clause.getKind() == IASTInitializerClause.Kind.DESIGNATED_ASSIGNMENT_EXPRESSION) { ISymbol variableSymbol = ((ASTVariable) clause .getOwnerVariableDeclaration()).getSymbol(); ISymbol currentSymbol = variableSymbol.getTypeSymbol(); if (currentSymbol == null) return;
protected void addDesignatorReferences( ASTInitializerClause clause ) { if( clause.getKind() == IASTInitializerClause.Kind.DESIGNATED_INITIALIZER_LIST || clause.getKind() == IASTInitializerClause.Kind.DESIGNATED_ASSIGNMENT_EXPRESSION ) { ISymbol variableSymbol = ((ASTVariable)clause.getOwnerVariableDeclaration()).getSymbol(); ISymbol currentSymbol = variableSymbol.getTypeSymbol(); if( currentSymbol == null ) return; ITypeInfo currentTypeInfo = TypeInfoProvider.newTypeInfo( currentSymbol.getTypeInfo() ); List designators = clause.getDesignatorList(); int size = designators.size(); for( int i = 0; i < size; i++ ) { ASTDesignator designator = (ASTDesignator)designators.get(i); if( designator.getKind() == IASTDesignator.DesignatorKind.FIELD ) { ISymbol lookup = null; if( ! ( currentSymbol instanceof IContainerSymbol ) ) break; try { lookup = ((IContainerSymbol)currentSymbol).lookup( designator.fieldNameCharArray() ); } catch (ParserSymbolTableException e){ break; } if( lookup == null || lookup.getContainingSymbol() != currentSymbol ) break; try { if( lookup != null ) addReference( clause.getReferences(), createReference( lookup, designator.fieldNameCharArray(), designator.fieldOffset() )); } catch (ASTSemanticException e1) { // error } // we have found the correct field currentTypeInfo = TypeInfoProvider.newTypeInfo( lookup.getTypeInfo() ); if( lookup.getTypeInfo() == null ) break; currentSymbol = lookup.getTypeSymbol(); } else if( designator.getKind() == IASTDesignator.DesignatorKind.SUBSCRIPT ) currentTypeInfo.applyOperatorExpression( SUBSCRIPT ); } } if( clause.getKind() == IASTInitializerClause.Kind.DESIGNATED_INITIALIZER_LIST || clause.getKind() == IASTInitializerClause.Kind.INITIALIZER_LIST ) { List subInitializers = clause.getInitializersList(); int size = subInitializers.size(); for( int i = 0; i < size; i++ ) addDesignatorReferences( (ASTInitializerClause)subInitializers.get(i) ); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/541fa7e85eea40dd09a8cb946908dd9f930b913f/CompleteParseASTFactory.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 527, 15478, 639, 8221, 12, 9183, 14729, 7044, 6591, 262, 565, 288, 3639, 309, 12, 6591, 18, 588, 5677, 1435, 422, 467, 9053, 14729, 7044, 18, 5677, 18, 1639, 11260, 6344, 67, 12919, 15154, 654, 67, 7085, 747, 1850, 202, 18128, 18, 588, 5677, 1435, 422, 467, 9053, 14729, 7044, 18, 5677, 18, 1639, 11260, 6344, 67, 23289, 3212, 67, 19111, 262, 3639, 288, 1082, 202, 5127, 3284, 2190, 5335, 273, 14015, 9053, 3092, 13, 18128, 18, 588, 5541, 26547, 1435, 2934, 588, 5335, 5621, 1082, 202, 5127, 3284, 783, 5335, 273, 2190, 5335, 18, 588, 559, 5335, 5621, 1082, 202, 430, 12, 783, 5335, 422, 446, 262, 9506, 202, 2463, 31, 25083, 202, 45, 17305, 783, 17305, 273, 1412, 966, 2249, 18, 2704, 17305, 12, 783, 5335, 18, 588, 17305, 1435, 11272, 1875, 202, 682, 8281, 3062, 273, 6591, 18, 588, 15478, 639, 682, 5621, 1082, 202, 474, 963, 273, 8281, 3062, 18, 1467, 5621, 1082, 202, 1884, 12, 509, 277, 273, 374, 31, 277, 411, 963, 31, 277, 9904, 262, 1082, 202, 95, 9506, 202, 9053, 15478, 639, 8281, 639, 273, 261, 9053, 15478, 639, 13, 16934, 3062, 18, 588, 12, 77, 1769, 9506, 202, 430, 12, 8281, 639, 18, 588, 5677, 1435, 422, 467, 9053, 15478, 639, 18, 15478, 639, 5677, 18, 6776, 262, 9506, 202, 95, 6862, 202, 5127, 3284, 3689, 273, 446, 31, 6862, 202, 430, 12, 401, 261, 783, 5335, 1276, 467, 2170, 5335, 262, 262, 9944, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 527, 15478, 639, 8221, 12, 9183, 14729, 7044, 6591, 262, 565, 288, 3639, 309, 12, 6591, 18, 588, 5677, 1435, 422, 467, 9053, 14729, 7044, 18, 5677, 18, 1639, 11260, 6344, 67, 12919, 15154, 654, 67, 7085, 747, 1850, 202, 18128, 18, 588, 5677, 1435, 422, 467, 9053, 14729, 7044, 18, 5677, 18, 1639, 11260, 6344, 67, 23289, 3212, 67, 19111, 262, 3639, 288, 1082, 202, 5127, 3284, 2190, 5335, 273, 14015, 9053, 3092, 13, 18128, 18, 588, 5541, 26547, 1435, 2934, 588, 5335, 5621, 1082, 202, 5127, 3284, 783, 5335, 273, 2190, 5335, 18, 588, 559, 5335, 5621, 1082, 202, 430, 12, 783, 5335, 422, 446, 262, 9506, 202, 2463, 31, 25083, 202, 45, 17305, 2 ]
public void setLastSuccessfulBuild(String newLastSuccessfulBuild) throws CruiseControlException {
public void setLastSuccessfulBuild(String newLastSuccessfulBuild) throws CruiseControlException {
public void setLastSuccessfulBuild(String newLastSuccessfulBuild) throws CruiseControlException { lastSuccessfulBuild = parseFormatedTime(newLastSuccessfulBuild, "lastSuccessfulBuild"); }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/ddefa64479a1f53c17df7426b7a710087d2d68aa/Project.java/buggy/main/src/net/sourceforge/cruisecontrol/Project.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 17764, 14277, 3116, 12, 780, 394, 3024, 14277, 3116, 13, 1216, 385, 8653, 784, 3367, 503, 288, 3639, 1142, 14277, 3116, 273, 1109, 1204, 690, 950, 12, 2704, 3024, 14277, 3116, 16, 315, 2722, 14277, 3116, 8863, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 17764, 14277, 3116, 12, 780, 394, 3024, 14277, 3116, 13, 1216, 385, 8653, 784, 3367, 503, 288, 3639, 1142, 14277, 3116, 273, 1109, 1204, 690, 950, 12, 2704, 3024, 14277, 3116, 16, 315, 2722, 14277, 3116, 8863, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
EmittedJoinPoint[] emittedJoinPoint) {
EmittedJoinPoint[] emittedJoinPoint, boolean isTriggered) {
public void notifyWeaverListener(IJavaProject jproject, String className, ClassLoader loader, EmittedJoinPoint[] emittedJoinPoint) { //for (Iterator it = m_weaverListeners.iterator(); it.hasNext();) { // ((IWeaverListener)it.next()).onWeaved(jproject, className, loader, emittedJoinPoint); //} m_weaverListener.onWeaved(jproject, className, loader, emittedJoinPoint); }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/ad9e110e05d2c1ad1abf91e328a93bf28f562fa1/AwCorePlugin.java/buggy/eclipse/org.codehaus.aspectwerkz.ide.eclipse.core/src/org/codehaus/aspectwerkz/ide/eclipse/core/AwCorePlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5066, 3218, 21851, 2223, 12, 45, 5852, 4109, 525, 4406, 16, 514, 2658, 16, 9403, 4088, 16, 2398, 9506, 4697, 512, 7948, 4572, 2148, 8526, 17826, 4572, 2148, 16, 1250, 353, 6518, 329, 13, 288, 3639, 368, 1884, 261, 3198, 518, 273, 312, 67, 1814, 21851, 5583, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 3639, 368, 565, 14015, 45, 3218, 21851, 2223, 13, 305, 18, 4285, 1435, 2934, 265, 3218, 8158, 12, 78, 4406, 16, 2658, 16, 4088, 16, 17826, 4572, 2148, 1769, 3639, 19363, 3639, 312, 67, 1814, 21851, 2223, 18, 265, 3218, 8158, 12, 78, 4406, 16, 2658, 16, 4088, 16, 17826, 4572, 2148, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5066, 3218, 21851, 2223, 12, 45, 5852, 4109, 525, 4406, 16, 514, 2658, 16, 9403, 4088, 16, 2398, 9506, 4697, 512, 7948, 4572, 2148, 8526, 17826, 4572, 2148, 16, 1250, 353, 6518, 329, 13, 288, 3639, 368, 1884, 261, 3198, 518, 273, 312, 67, 1814, 21851, 5583, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 3639, 368, 565, 14015, 45, 3218, 21851, 2223, 13, 305, 18, 4285, 1435, 2934, 265, 3218, 8158, 12, 78, 4406, 16, 2658, 16, 4088, 16, 17826, 4572, 2148, 1769, 3639, 19363, 3639, 312, 67, 1814, 21851, 2223, 18, 265, 3218, 8158, 12, 78, 4406, 16, 2658, 16, 4088, 16, 17826, 4572, 2148, 1769, 565, 289, 2, -100, -100, -100, -100 ]
if (!ExplorerSettingsEditor.this.isShowing()) return; ApplyAction.this.setEnabled(mySelectedConfigurable != null && mySelectedConfigurable.isModified()); addUpdateRequest(this); }
selectConfigurable(configurable, index); }
public void run() { if (!ExplorerSettingsEditor.this.isShowing()) return; ApplyAction.this.setEnabled(mySelectedConfigurable != null && mySelectedConfigurable.isModified()); addUpdateRequest(this); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/8b20704356bb402b1ae87d1957eefaff420073b1/ExplorerSettingsEditor.java/buggy/source/com/intellij/openapi/options/ex/ExplorerSettingsEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 309, 16051, 20938, 2628, 6946, 18, 2211, 18, 291, 5706, 310, 10756, 327, 31, 1850, 5534, 1803, 18, 2211, 18, 542, 1526, 12, 4811, 7416, 31660, 480, 446, 597, 3399, 7416, 31660, 18, 291, 4575, 10663, 1850, 527, 1891, 691, 12, 2211, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 309, 16051, 20938, 2628, 6946, 18, 2211, 18, 291, 5706, 310, 10756, 327, 31, 1850, 5534, 1803, 18, 2211, 18, 542, 1526, 12, 4811, 7416, 31660, 480, 446, 597, 3399, 7416, 31660, 18, 291, 4575, 10663, 1850, 527, 1891, 691, 12, 2211, 1769, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
final WebClient webClient = new WebClient(BrowserVersion_);
final WebClient webClient = new WebClient(BROWSER_VERSION);
public void testSourceForge_secure() throws Exception { try { final WebClient webClient = new WebClient(BrowserVersion_); webClient.setPrintContentOnFailingStatusCode(true); assertInstanceOf( webClient.getPage( new URL( "https://sourceforge.net/projects/htmlunit/" ) ), HtmlPage.class ); } catch( final MalformedURLException e ) { System.out.println("Skipping https test: "+getName()); } }
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/ce8302ac28bf1fb5d0cc242a8bf82d819d0eac2c/SanityCheck.java/buggy/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/SanityCheck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1830, 1290, 908, 67, 8869, 1435, 1216, 1185, 288, 3639, 775, 288, 5411, 727, 2999, 1227, 3311, 1227, 273, 394, 2999, 1227, 12, 38, 24846, 67, 5757, 1769, 5411, 3311, 1227, 18, 542, 5108, 1350, 1398, 3754, 310, 14041, 12, 3767, 1769, 5411, 1815, 1442, 951, 12, 3311, 1227, 18, 588, 1964, 12, 394, 1976, 12, 315, 4528, 2207, 3168, 1884, 908, 18, 2758, 19, 13582, 19, 2620, 4873, 4898, 262, 262, 16, 5430, 1964, 18, 1106, 11272, 3639, 289, 3639, 1044, 12, 727, 20710, 425, 262, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 16877, 2333, 1842, 30, 13773, 17994, 10663, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1830, 1290, 908, 67, 8869, 1435, 1216, 1185, 288, 3639, 775, 288, 5411, 727, 2999, 1227, 3311, 1227, 273, 394, 2999, 1227, 12, 38, 24846, 67, 5757, 1769, 5411, 3311, 1227, 18, 542, 5108, 1350, 1398, 3754, 310, 14041, 12, 3767, 1769, 5411, 1815, 1442, 951, 12, 3311, 1227, 18, 588, 1964, 12, 394, 1976, 12, 315, 4528, 2207, 3168, 1884, 908, 18, 2758, 19, 13582, 19, 2620, 4873, 4898, 262, 262, 16, 5430, 1964, 18, 1106, 11272, 3639, 289, 3639, 1044, 12, 727, 20710, 425, 262, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 16877, 2333, 1842, 30, 13773, 17994, 10663, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ReportScriptExecutor .handleAfterOpenDoc( reportDesign, executionContext );
protected void openReportDocument( ReportDocumentReader reportDoc ) { ReportDesignHandle reportDesign = executionContext.getDesign( ); ReportScriptExecutor.handleBeforeOpenDoc( reportDesign, executionContext ); this.reportDoc = reportDoc; executionContext.setReportDocument( reportDoc ); // load the informationf rom the report document setParameterValues( reportDoc.getParameterValues( ) ); executionContext.registerGlobalBeans( reportDoc .getGlobalVariables( null ) ); ReportScriptExecutor .handleAfterOpenDoc( reportDesign, executionContext ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/c0422a1db84842d1e332663c3d4c7e2a8109aca8/RenderTask.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RenderTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1696, 4820, 2519, 12, 8706, 2519, 2514, 2605, 1759, 262, 202, 95, 202, 202, 4820, 15478, 3259, 2605, 15478, 273, 30521, 18, 588, 15478, 12, 11272, 202, 202, 4820, 3651, 6325, 18, 4110, 4649, 3678, 1759, 12, 2605, 15478, 16, 9506, 202, 16414, 1042, 11272, 202, 202, 2211, 18, 6006, 1759, 273, 2605, 1759, 31, 202, 202, 16414, 1042, 18, 542, 4820, 2519, 12, 2605, 1759, 11272, 202, 202, 759, 1262, 326, 1779, 74, 24137, 326, 2605, 1668, 202, 202, 542, 1662, 1972, 12, 2605, 1759, 18, 588, 1662, 1972, 12, 262, 11272, 202, 202, 16414, 1042, 18, 4861, 5160, 14495, 12, 2605, 1759, 9506, 202, 18, 588, 5160, 6158, 12, 446, 262, 11272, 202, 202, 4820, 3651, 6325, 9506, 202, 18, 4110, 4436, 3678, 1759, 12, 2605, 15478, 16, 30521, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1696, 4820, 2519, 12, 8706, 2519, 2514, 2605, 1759, 262, 202, 95, 202, 202, 4820, 15478, 3259, 2605, 15478, 273, 30521, 18, 588, 15478, 12, 11272, 202, 202, 4820, 3651, 6325, 18, 4110, 4649, 3678, 1759, 12, 2605, 15478, 16, 9506, 202, 16414, 1042, 11272, 202, 202, 2211, 18, 6006, 1759, 273, 2605, 1759, 31, 202, 202, 16414, 1042, 18, 542, 4820, 2519, 12, 2605, 1759, 11272, 202, 202, 759, 1262, 326, 1779, 74, 24137, 326, 2605, 1668, 202, 202, 542, 1662, 1972, 12, 2605, 1759, 18, 588, 1662, 1972, 12, 262, 11272, 202, 202, 16414, 1042, 18, 4861, 5160, 14495, 12, 2605, 1759, 9506, 202, 18, 588, 5160, 6158, 12, 446, 262, 11272, 202, 2 ]
protected UnconditionalValueDerefDataflow analyze(Method method) throws CFGBuilderException, DataflowAnalysisException { CFG cfg = getCFG(method); ValueNumberDataflow vnd = getValueNumberDataflow(method); UnconditionalValueDerefAnalysis analysis = new UnconditionalValueDerefAnalysis( getReverseDepthFirstSearch(method), getDepthFirstSearch(method), cfg, getMethodGen(method), vnd, getAssertionMethods() ); IsNullValueDataflow inv = getIsNullValueDataflow(method); analysis.clearDerefsOnNonNullBranches(inv); analysis.setTypeDataflow(getTypeDataflow(method)); UnconditionalValueDerefDataflow dataflow = new UnconditionalValueDerefDataflow(getCFG(method), analysis); dataflow.execute(); if (UnconditionalValueDerefAnalysis.DEBUG) { dumpUnconditionalValueDerefDataflow(method, cfg, vnd, inv, dataflow); } return dataflow;
protected CompactLocationNumbering analyze(Method method) throws CFGBuilderException, DataflowAnalysisException { if (method.getCode() == null) { return null;
protected UnconditionalValueDerefDataflow analyze(Method method) throws CFGBuilderException, DataflowAnalysisException { CFG cfg = getCFG(method); ValueNumberDataflow vnd = getValueNumberDataflow(method); UnconditionalValueDerefAnalysis analysis = new UnconditionalValueDerefAnalysis( getReverseDepthFirstSearch(method), getDepthFirstSearch(method), cfg, getMethodGen(method), vnd, getAssertionMethods() ); IsNullValueDataflow inv = getIsNullValueDataflow(method); // XXX: hack to clear derefs on not-null branches analysis.clearDerefsOnNonNullBranches(inv); // XXX: type analysis is needed to resolve method calls for // checking whether call targets unconditionally dereference parameters analysis.setTypeDataflow(getTypeDataflow(method)); UnconditionalValueDerefDataflow dataflow = new UnconditionalValueDerefDataflow(getCFG(method), analysis); dataflow.execute(); if (UnconditionalValueDerefAnalysis.DEBUG) { dumpUnconditionalValueDerefDataflow(method, cfg, vnd, inv, dataflow); } return dataflow; }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/d85ce2266570f61b1fbb3b4246a33dd45ad582fb/ClassContext.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/ClassContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 1117, 1351, 22019, 620, 40, 822, 74, 751, 2426, 12375, 12, 1305, 707, 13, 1216, 7577, 1263, 503, 16, 1910, 2426, 9418, 503, 288, 6862, 9506, 202, 19727, 2776, 273, 1927, 42, 43, 12, 2039, 1769, 6862, 9506, 202, 620, 1854, 751, 2426, 331, 4880, 273, 2366, 1854, 751, 2426, 12, 2039, 1769, 6862, 9506, 202, 984, 22019, 620, 40, 822, 74, 9418, 6285, 273, 394, 1351, 22019, 620, 40, 822, 74, 9418, 12, 25083, 202, 588, 12650, 6148, 3759, 2979, 12, 2039, 3631, 25083, 202, 588, 6148, 3759, 2979, 12, 2039, 3631, 25083, 202, 7066, 16, 25083, 202, 588, 1305, 7642, 12, 2039, 3631, 25083, 202, 11169, 16, 336, 14979, 4712, 1435, 25083, 202, 1769, 6862, 9506, 202, 2520, 2041, 620, 751, 2426, 2198, 273, 14279, 2041, 620, 751, 2426, 12, 2039, 1769, 9506, 202, 759, 11329, 30, 11769, 358, 2424, 18207, 2556, 603, 486, 17, 2011, 11483, 9506, 202, 12746, 18, 8507, 40, 822, 2556, 1398, 8921, 24246, 12, 5768, 1769, 6862, 9506, 202, 759, 11329, 30, 618, 6285, 353, 3577, 358, 2245, 707, 4097, 364, 9506, 202, 759, 6728, 2856, 745, 5774, 6301, 1434, 22913, 27794, 1472, 9506, 202, 12746, 18, 542, 559, 751, 2426, 12, 588, 559, 751, 2426, 12, 2039, 10019, 6862, 9506, 202, 984, 22019, 620, 40, 822, 74, 751, 2426, 501, 2426, 273, 6862, 202, 2704, 1351, 22019, 620, 40, 822, 74, 751, 2426, 12, 588, 19727, 12, 2039, 3631, 6285, 1769, 9506, 202, 892, 2426, 18, 8837, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 1117, 1351, 22019, 620, 40, 822, 74, 751, 2426, 12375, 12, 1305, 707, 13, 1216, 7577, 1263, 503, 16, 1910, 2426, 9418, 503, 288, 6862, 9506, 202, 19727, 2776, 273, 1927, 42, 43, 12, 2039, 1769, 6862, 9506, 202, 620, 1854, 751, 2426, 331, 4880, 273, 2366, 1854, 751, 2426, 12, 2039, 1769, 6862, 9506, 202, 984, 22019, 620, 40, 822, 74, 9418, 6285, 273, 394, 1351, 22019, 620, 40, 822, 74, 9418, 12, 25083, 202, 588, 12650, 6148, 3759, 2979, 12, 2039, 3631, 25083, 202, 588, 6148, 3759, 2979, 12, 2039, 3631, 25083, 202, 7066, 16, 25083, 202, 588, 1305, 7642, 12, 2039, 3631, 25083, 202, 11169, 16, 336, 14979, 4712, 1435, 25083, 202, 1769, 6862, 2 ]
if (is.getStringData() != null) { xis = new XMLInputSource(is.getPublicId(), is.getSystemId(), is.getBaseURI(), new StringReader(is.getStringData()), "UTF-16"); }
/** * An LSParser looks at inputs specified in LSInput in * the following order: characterStream, byteStream, * stringData, systemId, publicId. For consistency * have the same behaviour for XSLoader. */
private XMLInputSource dom2xmlInputSource(LSInput is) { // need to wrap the LSInput with an XMLInputSource XMLInputSource xis = null; // if there is a string data, use a StringReader // according to DOM, we need to treat such data as "UTF-16". if (is.getStringData() != null) { xis = new XMLInputSource(is.getPublicId(), is.getSystemId(), is.getBaseURI(), new StringReader(is.getStringData()), "UTF-16"); } // check whether there is a Reader // according to DOM, we need to treat such reader as "UTF-16". else if (is.getCharacterStream() != null) { xis = new XMLInputSource(is.getPublicId(), is.getSystemId(), is.getBaseURI(), is.getCharacterStream(), "UTF-16"); } // check whether there is an InputStream else if (is.getByteStream() != null) { xis = new XMLInputSource(is.getPublicId(), is.getSystemId(), is.getBaseURI(), is.getByteStream(), is.getEncoding()); } // otherwise, just use the public/system/base Ids else { xis = new XMLInputSource(is.getPublicId(), is.getSystemId(), is.getBaseURI()); } return xis; }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/01f576c4d6e6fcca9ee73d93f063a8cb8bb05c36/XMLSchemaLoader.java/buggy/src/org/apache/xerces/impl/xs/XMLSchemaLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3167, 1210, 1830, 4092, 22, 2902, 1210, 1830, 12, 3045, 1210, 353, 13, 288, 202, 202, 759, 1608, 358, 2193, 326, 29204, 1210, 598, 392, 3167, 1210, 1830, 202, 202, 4201, 1210, 1830, 619, 291, 273, 446, 31, 202, 202, 759, 309, 1915, 353, 279, 533, 501, 16, 999, 279, 26227, 202, 202, 759, 4888, 358, 4703, 16, 732, 1608, 358, 10116, 4123, 501, 487, 315, 5159, 17, 2313, 9654, 202, 202, 430, 261, 291, 18, 588, 780, 751, 1435, 480, 446, 13, 288, 1082, 202, 5674, 273, 394, 3167, 1210, 1830, 12, 291, 18, 588, 4782, 548, 9334, 353, 18, 588, 3163, 548, 9334, 6862, 25083, 353, 18, 588, 2171, 3098, 9334, 394, 26227, 12, 291, 18, 588, 780, 751, 1435, 3631, 6862, 25083, 315, 5159, 17, 2313, 8863, 202, 202, 97, 202, 202, 759, 866, 2856, 1915, 353, 279, 5393, 202, 202, 759, 4888, 358, 4703, 16, 732, 1608, 358, 10116, 4123, 2949, 487, 315, 5159, 17, 2313, 9654, 202, 202, 12107, 309, 261, 291, 18, 588, 7069, 1228, 1435, 480, 446, 13, 288, 1082, 202, 5674, 273, 394, 3167, 1210, 1830, 12, 291, 18, 588, 4782, 548, 9334, 353, 18, 588, 3163, 548, 9334, 6862, 25083, 353, 18, 588, 2171, 3098, 9334, 353, 18, 588, 7069, 1228, 9334, 6862, 25083, 315, 5159, 17, 2313, 8863, 202, 202, 97, 202, 202, 759, 866, 2856, 1915, 353, 392, 5037, 202, 202, 12107, 309, 261, 291, 18, 588, 3216, 1228, 1435, 480, 446, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3167, 1210, 1830, 4092, 22, 2902, 1210, 1830, 12, 3045, 1210, 353, 13, 288, 202, 202, 759, 1608, 358, 2193, 326, 29204, 1210, 598, 392, 3167, 1210, 1830, 202, 202, 4201, 1210, 1830, 619, 291, 273, 446, 31, 202, 202, 759, 309, 1915, 353, 279, 533, 501, 16, 999, 279, 26227, 202, 202, 759, 4888, 358, 4703, 16, 732, 1608, 358, 10116, 4123, 501, 487, 315, 5159, 17, 2313, 9654, 202, 202, 430, 261, 291, 18, 588, 780, 751, 1435, 480, 446, 13, 288, 1082, 202, 5674, 273, 394, 3167, 1210, 1830, 12, 291, 18, 588, 4782, 548, 9334, 353, 18, 588, 3163, 548, 9334, 6862, 25083, 353, 18, 588, 2171, 3098, 9334, 394, 26227, 12, 2 ]
result[i] = rep.newRegExp(scope, left.getString(),
result[i] = rep.newRegExp(cx, scope, left.getString(),
private Object[] generateRegExpLiterals(Context cx, Scriptable scope, Vector regexps) { Object[] result = new Object[regexps.size()]; RegExpProxy rep = cx.getRegExpProxy(); for (int i = 0; i < regexps.size(); i++) { Node regexp = (Node) regexps.elementAt(i); Node left = regexp.getFirstChild(); Node right = regexp.getLastChild(); result[i] = rep.newRegExp(scope, left.getString(), (left != right) ? right.getString() : null); regexp.putProp(Node.REGEXP_PROP, new Integer(i)); } return result; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/075b10974042ee49c5f67a5bd883438470bdfcd6/Interpreter.java/clean/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 8526, 2103, 13673, 48, 11235, 12, 1042, 9494, 16, 4766, 5411, 22780, 2146, 16, 4766, 5411, 5589, 3936, 1121, 13, 565, 288, 3639, 1033, 8526, 563, 273, 394, 1033, 63, 7584, 1121, 18, 1467, 1435, 15533, 3639, 10679, 3886, 2071, 273, 9494, 18, 588, 13673, 3886, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3936, 1121, 18, 1467, 5621, 277, 27245, 288, 5411, 2029, 7195, 273, 261, 907, 13, 3936, 1121, 18, 2956, 861, 12, 77, 1769, 5411, 2029, 2002, 273, 7195, 18, 588, 3759, 1763, 5621, 5411, 2029, 2145, 273, 7195, 18, 588, 3024, 1763, 5621, 5411, 563, 63, 77, 65, 273, 2071, 18, 2704, 13673, 12, 71, 92, 16, 2146, 16, 2002, 18, 588, 780, 9334, 4766, 261, 4482, 480, 2145, 13, 692, 2145, 18, 588, 780, 1435, 294, 446, 1769, 5411, 7195, 18, 458, 4658, 12, 907, 18, 28225, 67, 15811, 16, 394, 2144, 12, 77, 10019, 3639, 289, 3639, 327, 563, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 8526, 2103, 13673, 48, 11235, 12, 1042, 9494, 16, 4766, 5411, 22780, 2146, 16, 4766, 5411, 5589, 3936, 1121, 13, 565, 288, 3639, 1033, 8526, 563, 273, 394, 1033, 63, 7584, 1121, 18, 1467, 1435, 15533, 3639, 10679, 3886, 2071, 273, 9494, 18, 588, 13673, 3886, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3936, 1121, 18, 1467, 5621, 277, 27245, 288, 5411, 2029, 7195, 273, 261, 907, 13, 3936, 1121, 18, 2956, 861, 12, 77, 1769, 5411, 2029, 2002, 273, 7195, 18, 588, 3759, 1763, 5621, 5411, 2029, 2145, 273, 7195, 18, 588, 3024, 1763, 5621, 5411, 563, 63, 77, 65, 273, 2071, 18, 2704, 13673, 12, 71, 92, 16, 2146, 16, 2 ]
return new Table_roles( rs );
return new Integer( rs.getInt( "role_id" ) );
public Object mapOneRow( ResultSet rs ) throws SQLException { return new Table_roles( rs ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/ceb6434abc174e9f93dd61c0cedb88d1ca009f2b/DatabaseService.java/clean/server/src/imcode/server/db/DatabaseService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 852, 3335, 1999, 12, 10842, 3597, 262, 1216, 6483, 288, 7734, 327, 394, 2144, 12, 3597, 18, 588, 1702, 12, 315, 4615, 67, 350, 6, 262, 11272, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 852, 3335, 1999, 12, 10842, 3597, 262, 1216, 6483, 288, 7734, 327, 394, 2144, 12, 3597, 18, 588, 1702, 12, 315, 4615, 67, 350, 6, 262, 11272, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
forwardPool.reset();
forwardedObjects.reset();
private final void baseThreadLocalRelease(int order) { values.reset(); remset.reset(); forwardPool.reset(); rootLocations.reset(); interiorRootLocations.reset(); threadLocalRelease(order); }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/f508cb8aea60b6500c6da32ddc1b6225b90f7805/StopTheWorldGC.java/clean/MMTk/src/org/mmtk/plan/StopTheWorldGC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 727, 918, 1026, 3830, 2042, 7391, 12, 474, 1353, 13, 288, 565, 924, 18, 6208, 5621, 565, 849, 542, 18, 6208, 5621, 565, 19683, 4710, 18, 6208, 5621, 565, 1365, 10985, 18, 6208, 5621, 565, 26230, 2375, 10985, 18, 6208, 5621, 565, 2650, 2042, 7391, 12, 1019, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 727, 918, 1026, 3830, 2042, 7391, 12, 474, 1353, 13, 288, 565, 924, 18, 6208, 5621, 565, 849, 542, 18, 6208, 5621, 565, 19683, 4710, 18, 6208, 5621, 565, 1365, 10985, 18, 6208, 5621, 565, 26230, 2375, 10985, 18, 6208, 5621, 565, 2650, 2042, 7391, 12, 1019, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public static void importProject(String prjFilePath) throws Exception { IPath path = new Path(prjFilePath+File.separator + ".project"); final IProjectDescription newDescription = loadProjectDescription(path); final IProject project = ResourcesPlugin.getWorkspace().getRoot() .getProject(newDescription.getName()); if (project == null) throw new Exception("DebugUtil.importProject.fail"); NullProgressMonitor monitor = new NullProgressMonitor(); project.create(newDescription, monitor); project.open(monitor);
public static void importProject( String prjFilePath ) throws Exception { IPath path = new Path( prjFilePath + File.separator + ".project" ); final IProjectDescription newDescription = loadProjectDescription( path ); final IProject project = ResourcesPlugin.getWorkspace( ).getRoot( ) .getProject( newDescription.getName( ) ); if ( project == null ) throw new Exception( "DebugUtil.importProject.fail" ); NullProgressMonitor monitor = new NullProgressMonitor( ); project.create( newDescription, monitor ); project.open( monitor );
public static void importProject(String prjFilePath) throws Exception { IPath path = new Path(prjFilePath+File.separator + ".project"); final IProjectDescription newDescription = loadProjectDescription(path); final IProject project = ResourcesPlugin.getWorkspace().getRoot() .getProject(newDescription.getName()); if (project == null) throw new Exception("DebugUtil.importProject.fail"); //$NON-NLS-1$ NullProgressMonitor monitor = new NullProgressMonitor(); project.create(newDescription, monitor); project.open(monitor); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/f83c04e4c661a40917b7f1a4691db27145568807/DebugUtil.java/clean/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/internal/ui/launcher/util/DebugUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1930, 4109, 12, 780, 27378, 5598, 13, 1216, 1185, 288, 202, 202, 45, 743, 589, 273, 394, 2666, 12, 683, 78, 5598, 15, 812, 18, 11287, 397, 3552, 4406, 8863, 202, 202, 6385, 467, 4109, 3291, 394, 3291, 273, 1262, 4109, 3291, 12, 803, 1769, 202, 202, 6385, 467, 4109, 1984, 273, 8128, 3773, 18, 588, 8241, 7675, 588, 2375, 1435, 9506, 202, 18, 588, 4109, 12, 2704, 3291, 18, 17994, 10663, 202, 202, 430, 261, 4406, 422, 446, 13, 1082, 202, 12849, 394, 1185, 2932, 2829, 1304, 18, 5666, 4109, 18, 6870, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 2041, 5491, 7187, 6438, 273, 394, 4112, 5491, 7187, 5621, 202, 202, 4406, 18, 2640, 12, 2704, 3291, 16, 6438, 1769, 202, 202, 4406, 18, 3190, 12, 10259, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1930, 4109, 12, 780, 27378, 5598, 13, 1216, 1185, 288, 202, 202, 45, 743, 589, 273, 394, 2666, 12, 683, 78, 5598, 15, 812, 18, 11287, 397, 3552, 4406, 8863, 202, 202, 6385, 467, 4109, 3291, 394, 3291, 273, 1262, 4109, 3291, 12, 803, 1769, 202, 202, 6385, 467, 4109, 1984, 273, 8128, 3773, 18, 588, 8241, 7675, 588, 2375, 1435, 9506, 202, 18, 588, 4109, 12, 2704, 3291, 18, 17994, 10663, 202, 202, 430, 261, 4406, 422, 446, 13, 1082, 202, 12849, 394, 1185, 2932, 2829, 1304, 18, 5666, 4109, 18, 6870, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 2041, 5491, 7187, 6438, 273, 394, 4112, 5491, 7187, 5621, 202, 2 ]
public String getHoverInfo( ITextViewer textViewer, IRegion hoverRegion ) {
public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) {
public String getHoverInfo( ITextViewer textViewer, IRegion hoverRegion ) { ICStackFrame frame = getFrame(); if ( frame != null && frame.canEvaluate() ) { try { IDocument document = textViewer.getDocument(); if ( document == null ) return null; String expression = document.get( hoverRegion.getOffset(), hoverRegion.getLength() ); if ( expression == null ) return null; expression = expression.trim(); if ( expression.length() == 0 ) return null; StringBuffer buffer = new StringBuffer(); String result = evaluateExpression( frame, expression ); if ( result == null ) return null; try { if ( result != null ) appendVariable( buffer, makeHTMLSafe( expression ), makeHTMLSafe( result.trim() ) ); } catch( DebugException x ) { CDebugUIPlugin.log( x ); } if ( buffer.length() > 0 ) { return buffer.toString(); } } catch( BadLocationException x ) { CDebugUIPlugin.log( x ); } } return null; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/da21b108846414112f482bc83d071fba5b66087a/DebugTextHover.java/clean/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/editors/DebugTextHover.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 7628, 1643, 966, 12, 467, 1528, 18415, 977, 18415, 16, 467, 5165, 15758, 5165, 262, 288, 202, 202, 2871, 2624, 3219, 2623, 273, 25396, 5621, 202, 202, 430, 261, 2623, 480, 446, 597, 2623, 18, 4169, 15369, 1435, 262, 288, 1082, 202, 698, 288, 9506, 202, 734, 504, 650, 1668, 273, 977, 18415, 18, 588, 2519, 5621, 9506, 202, 430, 261, 1668, 422, 446, 262, 6862, 202, 2463, 446, 31, 9506, 202, 780, 2652, 273, 1668, 18, 588, 12, 15758, 5165, 18, 588, 2335, 9334, 15758, 5165, 18, 588, 1782, 1435, 11272, 9506, 202, 430, 261, 2652, 422, 446, 262, 6862, 202, 2463, 446, 31, 9506, 202, 8692, 273, 2652, 18, 5290, 5621, 9506, 202, 430, 261, 2652, 18, 2469, 1435, 422, 374, 262, 6862, 202, 2463, 446, 31, 9506, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 9506, 202, 780, 563, 273, 5956, 2300, 12, 2623, 16, 2652, 11272, 9506, 202, 430, 261, 563, 422, 446, 262, 6862, 202, 2463, 446, 31, 9506, 202, 698, 288, 6862, 202, 430, 261, 563, 480, 446, 262, 25083, 202, 6923, 3092, 12, 1613, 16, 1221, 4870, 9890, 12, 2652, 262, 16, 1221, 4870, 9890, 12, 563, 18, 5290, 1435, 262, 11272, 9506, 202, 97, 9506, 202, 14683, 12, 4015, 503, 619, 262, 288, 6862, 202, 39, 2829, 5370, 3773, 18, 1330, 12, 619, 11272, 9506, 202, 97, 9506, 202, 430, 261, 1613, 18, 2469, 1435, 405, 374, 262, 288, 6862, 202, 2463, 1613, 18, 10492, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 7628, 1643, 966, 12, 467, 1528, 18415, 977, 18415, 16, 467, 5165, 15758, 5165, 262, 288, 202, 202, 2871, 2624, 3219, 2623, 273, 25396, 5621, 202, 202, 430, 261, 2623, 480, 446, 597, 2623, 18, 4169, 15369, 1435, 262, 288, 1082, 202, 698, 288, 9506, 202, 734, 504, 650, 1668, 273, 977, 18415, 18, 588, 2519, 5621, 9506, 202, 430, 261, 1668, 422, 446, 262, 6862, 202, 2463, 446, 31, 9506, 202, 780, 2652, 273, 1668, 18, 588, 12, 15758, 5165, 18, 588, 2335, 9334, 15758, 5165, 18, 588, 1782, 1435, 11272, 9506, 202, 430, 261, 2652, 422, 446, 262, 6862, 202, 2463, 446, 31, 9506, 202, 8692, 273, 2652, 18, 5290, 5621, 9506, 202, 2 ]
View copy=new View(view.getVid(), new Vector(view.getMembers())); Vector members=copy.getMembers();
Vector members=new Vector(view.getMembers());
private View generateServiceView(List hosts) { View copy=new View(view.getVid(), new Vector(view.getMembers())); Vector members=copy.getMembers(); members.retainAll(hosts); return copy; }
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/1d890b8178a67da45a5c704185b2c8a416587147/Multiplexer.java/buggy/src/org/jgroups/mux/Multiplexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4441, 2103, 1179, 1767, 12, 682, 7206, 13, 288, 3639, 4441, 1610, 33, 2704, 4441, 12, 1945, 18, 588, 58, 350, 9334, 394, 5589, 12, 1945, 18, 588, 6918, 1435, 10019, 3639, 5589, 4833, 33, 3530, 18, 588, 6918, 5621, 3639, 4833, 18, 1349, 530, 1595, 12, 11588, 1769, 3639, 327, 1610, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4441, 2103, 1179, 1767, 12, 682, 7206, 13, 288, 3639, 4441, 1610, 33, 2704, 4441, 12, 1945, 18, 588, 58, 350, 9334, 394, 5589, 12, 1945, 18, 588, 6918, 1435, 10019, 3639, 5589, 4833, 33, 3530, 18, 588, 6918, 5621, 3639, 4833, 18, 1349, 530, 1595, 12, 11588, 1769, 3639, 327, 1610, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String sChooserTitle = Argo.localize("Actions", "text.save_as_project.chooser_title"); chooser.setDialogTitle(sChooserTitle + p.getName()); chooser.setFileFilter(FileFilters.CompressedFileFilter);
String sChooserTitle = Argo.localize("Actions", "text.save_as_project.chooser_title"); chooser.setDialogTitle(sChooserTitle + p.getName()); chooser.setFileFilter(FileFilters.CompressedFileFilter);
protected File getNewFile() { ProjectBrowser pb = ProjectBrowser.TheInstance; Project p = ProjectManager.getManager().getCurrentProject(); JFileChooser chooser = null; URL url = p.getURL(); if ((url != null) && (url.getFile().length()>0)) { chooser = OsUtil.getFileChooser (url.getFile()); } if (chooser == null) { chooser = OsUtil.getFileChooser (); } if (url != null) { chooser.setSelectedFile(new File(url.getFile())); } String sChooserTitle = Argo.localize("Actions", "text.save_as_project.chooser_title"); chooser.setDialogTitle(sChooserTitle + p.getName()); chooser.setFileFilter(FileFilters.CompressedFileFilter); int retval = chooser.showSaveDialog(pb); if (retval == JFileChooser.APPROVE_OPTION) { File file = chooser.getSelectedFile(); if (file != null) { String name = file.getName(); if (! name.endsWith(Project.COMPRESSED_FILE_EXT)) { file = new File(file.getParent(), name + Project.COMPRESSED_FILE_EXT); } } return file; } else { return null; } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/3d92bb55a802c8eecaa701ef4fc8822d2a42a7d3/ActionSaveProjectAs.java/buggy/src_new/org/argouml/uml/ui/ActionSaveProjectAs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1387, 12654, 812, 1435, 288, 202, 4109, 9132, 6386, 273, 5420, 9132, 18, 1986, 1442, 31, 202, 4109, 293, 273, 5420, 1318, 18, 588, 1318, 7675, 588, 3935, 4109, 5621, 3639, 804, 812, 17324, 5011, 13164, 273, 446, 31, 202, 1785, 880, 273, 293, 18, 588, 1785, 5621, 3639, 309, 14015, 718, 480, 446, 13, 597, 261, 718, 18, 29925, 7675, 2469, 1435, 34, 20, 3719, 288, 202, 565, 5011, 13164, 225, 273, 31799, 1304, 18, 29925, 17324, 261, 718, 18, 29925, 10663, 3639, 289, 3639, 309, 261, 2599, 13164, 422, 446, 13, 288, 202, 565, 5011, 13164, 225, 273, 31799, 1304, 18, 29925, 17324, 261, 1769, 3639, 289, 202, 430, 261, 718, 480, 446, 13, 288, 202, 565, 5011, 13164, 18, 542, 7416, 812, 12, 2704, 1387, 12, 718, 18, 29925, 1435, 10019, 202, 97, 202, 780, 272, 17324, 4247, 273, 202, 565, 1201, 3240, 18, 3729, 554, 2932, 6100, 3113, 9506, 4202, 315, 955, 18, 5688, 67, 345, 67, 4406, 18, 2599, 13164, 67, 2649, 8863, 202, 2599, 13164, 18, 542, 6353, 4247, 12, 87, 17324, 4247, 397, 293, 18, 17994, 10663, 202, 2599, 13164, 18, 542, 29837, 12, 812, 5422, 18, 16841, 29837, 1769, 202, 474, 5221, 273, 5011, 13164, 18, 4500, 4755, 6353, 12, 5733, 1769, 202, 430, 261, 18341, 422, 804, 812, 17324, 18, 2203, 3373, 3412, 67, 7425, 13, 288, 202, 565, 1387, 585, 273, 5011, 13164, 18, 588, 7416, 812, 5621, 202, 565, 309, 261, 768, 480, 446, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1387, 12654, 812, 1435, 288, 202, 4109, 9132, 6386, 273, 5420, 9132, 18, 1986, 1442, 31, 202, 4109, 293, 273, 5420, 1318, 18, 588, 1318, 7675, 588, 3935, 4109, 5621, 3639, 804, 812, 17324, 5011, 13164, 273, 446, 31, 202, 1785, 880, 273, 293, 18, 588, 1785, 5621, 3639, 309, 14015, 718, 480, 446, 13, 597, 261, 718, 18, 29925, 7675, 2469, 1435, 34, 20, 3719, 288, 202, 565, 5011, 13164, 225, 273, 31799, 1304, 18, 29925, 17324, 261, 718, 18, 29925, 10663, 3639, 289, 3639, 309, 261, 2599, 13164, 422, 446, 13, 288, 202, 565, 5011, 13164, 225, 273, 31799, 1304, 18, 29925, 17324, 261, 1769, 3639, 289, 202, 430, 261, 718, 480, 446, 13, 288, 2 ]
String path,
Path path,
private NodeIndexer(NodeState node, ItemStateProvider stateMgr, String path, NamespaceMappings mappings) { this.node = node; this.stateProvider = stateMgr; this.path = path; this.mappings = mappings; }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/a8e9611452abb1c8c64e644f003af347954188d9/NodeIndexer.java/clean/src/java/org/apache/jackrabbit/core/search/lucene/NodeIndexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2029, 20877, 12, 907, 1119, 756, 16, 13491, 4342, 1119, 2249, 919, 9455, 16, 13491, 2666, 589, 16, 13491, 6005, 7742, 7990, 13, 288, 3639, 333, 18, 2159, 273, 756, 31, 3639, 333, 18, 2019, 2249, 273, 919, 9455, 31, 3639, 333, 18, 803, 273, 589, 31, 3639, 333, 18, 16047, 273, 7990, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2029, 20877, 12, 907, 1119, 756, 16, 13491, 4342, 1119, 2249, 919, 9455, 16, 13491, 2666, 589, 16, 13491, 6005, 7742, 7990, 13, 288, 3639, 333, 18, 2159, 273, 756, 31, 3639, 333, 18, 2019, 2249, 273, 919, 9455, 31, 3639, 333, 18, 803, 273, 589, 31, 3639, 333, 18, 16047, 273, 7990, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public RecordWriter getRecordWriter(final FileSystem fs, JobConf job, String name) throws IOException {
public RecordWriter getRecordWriter(final FileSystem fs, JobConf job, String name) throws IOException {
public RecordWriter getRecordWriter(final FileSystem fs, JobConf job, String name) throws IOException { final File segmentDumpFile = new File(new File(job.getOutputDir(), SegmentReader.DIR_NAME), name); // Get the old copy out of the way fs.delete(segmentDumpFile); final PrintStream printStream = new PrintStream(fs.create(segmentDumpFile)); return new RecordWriter() { public synchronized void write(WritableComparable key, Writable value) throws IOException { ObjectWritable writable = (ObjectWritable)value; printStream.println((String)writable.get()); } public synchronized void close(Reporter reporter) throws IOException { printStream.close(); } }; }
1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/82abec76c6fbc6a6fb6149749849e1fb3f354dbd/SegmentReader.java/clean/src/java/org/apache/nutch/segment/SegmentReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5059, 2289, 11674, 2289, 12, 6385, 10931, 2662, 16, 3956, 3976, 1719, 16, 4766, 1377, 514, 508, 13, 1216, 1860, 288, 282, 727, 1387, 3267, 10628, 812, 273, 377, 394, 1387, 12, 2704, 1387, 12, 4688, 18, 588, 1447, 1621, 9334, 10807, 2514, 18, 4537, 67, 1985, 3631, 508, 1769, 282, 368, 968, 326, 1592, 1610, 596, 434, 326, 4031, 282, 2662, 18, 3733, 12, 9273, 10628, 812, 1769, 282, 727, 21677, 1172, 1228, 273, 394, 21677, 12, 2556, 18, 2640, 12, 9273, 10628, 812, 10019, 282, 327, 394, 5059, 2289, 1435, 288, 4202, 1071, 3852, 918, 1045, 12, 12061, 799, 10207, 498, 16, 14505, 460, 13, 540, 1216, 1860, 288, 540, 1033, 12061, 9691, 273, 261, 921, 12061, 13, 1132, 31, 540, 1172, 1228, 18, 8222, 12443, 780, 13, 15699, 18, 588, 10663, 4202, 289, 4202, 1071, 3852, 918, 1746, 12, 13289, 11528, 13, 1216, 1860, 288, 540, 1172, 1228, 18, 4412, 5621, 4202, 289, 377, 289, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5059, 2289, 11674, 2289, 12, 6385, 10931, 2662, 16, 3956, 3976, 1719, 16, 4766, 1377, 514, 508, 13, 1216, 1860, 288, 282, 727, 1387, 3267, 10628, 812, 273, 377, 394, 1387, 12, 2704, 1387, 12, 4688, 18, 588, 1447, 1621, 9334, 10807, 2514, 18, 4537, 67, 1985, 3631, 508, 1769, 282, 368, 968, 326, 1592, 1610, 596, 434, 326, 4031, 282, 2662, 18, 3733, 12, 9273, 10628, 812, 1769, 282, 727, 21677, 1172, 1228, 273, 394, 21677, 12, 2556, 18, 2640, 12, 9273, 10628, 812, 10019, 282, 327, 394, 5059, 2289, 1435, 288, 4202, 1071, 3852, 918, 1045, 12, 12061, 799, 10207, 498, 16, 14505, 460, 13, 540, 1216, 1860, 288, 540, 1033, 12061, 9691, 273, 261, 2 ]
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 99: MethodDeclaration ::= MethodHeader MethodBody // case 99: { //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodHeader = (MethodDecl) getRhsSym(1); //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block MethodBody = (Block) getRhsSym(2); //#line 669 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" JPGPosition old_pos = (JPGPosition) MethodHeader.position(); setResult(MethodHeader.body(MethodBody) .position(pos(old_pos.getLeftIToken().getTokenIndex(), getRightSpan()))); break; } // // Rule 101: ResultType ::= void // case 101: { //#line 680 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 102: FormalParameterList ::= LastFormalParameter // case 102: { //#line 700 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 702 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 103: FormalParameterList ::= FormalParameters , LastFormalParameter // case 103: { //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 709 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 104: FormalParameters ::= FormalParameter // case 104: { //#line 714 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 716 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 105: FormalParameters ::= FormalParameters , FormalParameter // case 105: { //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 723 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 106: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 106: { //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 108: VariableModifiers ::= VariableModifiers VariableModifier // case 108: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 109: VariableModifier ::= final // case 109: { //#line 746 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 110: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 110: { //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 754 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 112: MethodModifiers ::= MethodModifiers MethodModifier // case 112: { //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 113: MethodModifier ::= public // case 113: { //#line 776 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 114: MethodModifier ::= protected // case 114: { //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 115: MethodModifier ::= private // case 115: { //#line 786 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 116: MethodModifier ::= abstract // case 116: { //#line 791 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 117: MethodModifier ::= static // case 117: { //#line 796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 118: MethodModifier ::= final // case 118: { //#line 801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 119: MethodModifier ::= native // case 119: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 120: MethodModifier ::= strictfp // case 120: { //#line 816 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 121: Throws ::= throws ExceptionTypeList // case 121: { //#line 820 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 822 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 122: ExceptionTypeList ::= ExceptionType // case 122: { //#line 826 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 828 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 123: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 123: { //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 126: MethodBody ::= ; // case 126: setResult(null); break; // // Rule 128: StaticInitializer ::= static Block // case 128: { //#line 855 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 857 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 129: SimpleTypeName ::= identifier // case 129: { //#line 872 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 131: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 131: { //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 881 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 132: ConstructorModifier ::= public // case 132: { //#line 889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 133: ConstructorModifier ::= protected // case 133: { //#line 894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 134: ConstructorModifier ::= private // case 134: { //#line 899 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 135: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 135: { //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; if (ExplicitConstructorInvocationopt == null) l = BlockStatementsopt; else { l = new TypedList(new LinkedList(), Stmt.class, false); l.add(ExplicitConstructorInvocationopt); l.addAll(BlockStatementsopt); } setResult(nf.Block(pos(), l)); break; } // // Rule 136: Arguments ::= ( ArgumentListopt ) // case 136: { //#line 936 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 938 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 139: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 139: { //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 140: InterfaceModifier ::= public // case 140: { //#line 964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 141: InterfaceModifier ::= protected // case 141: { //#line 969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 142: InterfaceModifier ::= private // case 142: { //#line 974 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 143: InterfaceModifier ::= abstract // case 143: { //#line 979 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 144: InterfaceModifier ::= static // case 144: { //#line 984 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 145: InterfaceModifier ::= strictfp // case 145: { //#line 989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 146: ExtendsInterfaces ::= extends InterfaceType // case 146: { //#line 993 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 995 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 147: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 147: { //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 148: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 148: { //#line 1012 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1014 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 150: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 150: { //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 152: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= ClassDeclaration // case 153: { //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1036 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 154: { //#line 1041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 155: InterfaceMemberDeclaration ::= ; // case 155: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 156: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 156: { //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1056 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 158: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 158: { //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1076 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 159: ConstantModifier ::= public // case 159: { //#line 1084 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 160: ConstantModifier ::= static // case 160: { //#line 1089 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 161: ConstantModifier ::= final // case 161: { //#line 1094 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 163: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 163: { //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1103 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 164: AbstractMethodModifier ::= public // case 164: { //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 165: AbstractMethodModifier ::= abstract // case 165: { //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 166: SimpleName ::= identifier // case 166: { //#line 1172 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 167: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 167: { //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1203 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 168: VariableInitializers ::= VariableInitializer // case 168: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 169: VariableInitializers ::= VariableInitializers , VariableInitializer // case 169: { //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 170: Block ::= { BlockStatementsopt } // case 170: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 171: BlockStatements ::= BlockStatement // case 171: { //#line 1243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1245 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 172: BlockStatements ::= BlockStatements BlockStatement // case 172: { //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1252 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 174: BlockStatement ::= ClassDeclaration // case 174: { //#line 1258 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 175: BlockStatement ::= Statement // case 175: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 177: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 177: { //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 201: IfThenStatement ::= if ( Expression ) Statement // case 201: { //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 202: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 202: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1346 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 203: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 203: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 204: EmptyStatement ::= ; // case 204: { //#line 1358 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 205: LabeledStatement ::= identifier : Statement // case 205: { //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1364 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 206: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 206: { //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 207: ExpressionStatement ::= StatementExpression ; // case 207: { //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1375 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 215: AssertStatement ::= assert Expression ; // case 215: { //#line 1396 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1398 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 216: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 216: { //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 217: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 217: { //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1409 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 218: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 218: { //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 220: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 220: { //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 221: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 221: { //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1430 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabel // case 222: { //#line 1437 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 223: SwitchLabels ::= SwitchLabels SwitchLabel // case 223: { //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1446 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 224: SwitchLabel ::= case ConstantExpression : // case 224: { //#line 1451 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1453 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 225: SwitchLabel ::= default : // case 225: { //#line 1460 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 226: WhileStatement ::= while ( Expression ) Statement // case 226: { //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1469 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 227: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 227: { //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1475 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 228: DoStatement ::= do Statement while ( Expression ) ; // case 228: { //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1481 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 231: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 231: { //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 232: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 232: { //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1496 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 234: ForInit ::= LocalVariableDeclaration // case 234: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1503 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpression // case 236: { //#line 1511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 237: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 237: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 238: BreakStatement ::= break identifieropt ; // case 238: { //#line 1528 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1530 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 239: ContinueStatement ::= continue identifieropt ; // case 239: { //#line 1536 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1538 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 240: ReturnStatement ::= return Expressionopt ; // case 240: { //#line 1544 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1546 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 241: ThrowStatement ::= throw Expression ; // case 241: { //#line 1550 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1552 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 242: TryStatement ::= try Block Catches // case 242: { //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1564 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 243: TryStatement ::= try Block Catchesopt Finally // case 243: { //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1569 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 244: Catches ::= CatchClause // case 244: { //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1575 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 245: Catches ::= Catches CatchClause // case 245: { //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1582 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 246: CatchClause ::= catch ( FormalParameter ) Block // case 246: { //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1589 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 247: Finally ::= finally Block // case 247: { //#line 1593 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 251: PrimaryNoNewArray ::= Type . class // case 251: { //#line 1613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 252: PrimaryNoNewArray ::= void . class // case 252: { //#line 1634 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 253: PrimaryNoNewArray ::= this // case 253: { //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 254: PrimaryNoNewArray ::= ClassName . this // case 254: { //#line 1643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1645 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 255: PrimaryNoNewArray ::= ( Expression ) // case 255: { //#line 1648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1650 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 260: Literal ::= IntegerLiteral$IntegerLiteral // case 260: { //#line 1658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1660 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 261: Literal ::= LongLiteral$LongLiteral // case 261: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 262: Literal ::= FloatingPointLiteral$FloatLiteral // case 262: { //#line 1670 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1672 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 263: Literal ::= DoubleLiteral$DoubleLiteral // case 263: { //#line 1676 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1678 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 264: Literal ::= BooleanLiteral // case 264: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 265: Literal ::= CharacterLiteral$CharacterLiteral // case 265: { //#line 1687 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1689 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 266: Literal ::= StringLiteral$str // case 266: { //#line 1693 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1695 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 267: Literal ::= null // case 267: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 268: BooleanLiteral ::= true$trueLiteral // case 268: { //#line 1705 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: BooleanLiteral ::= false$falseLiteral // case 269: { //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1712 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 270: ArgumentList ::= Expression // case 270: { //#line 1725 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1727 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 271: ArgumentList ::= ArgumentList , Expression // case 271: { //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 272: DimExprs ::= DimExpr // case 272: { //#line 1768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1770 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 273: DimExprs ::= DimExprs DimExpr // case 273: { //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1777 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 274: DimExpr ::= [ Expression ] // case 274: { //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1784 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 275: Dims ::= [ ] // case 275: { //#line 1790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 276: Dims ::= Dims [ ] // case 276: { //#line 1793 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 277: FieldAccess ::= Primary . identifier // case 277: { //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= super . identifier // case 278: { //#line 1804 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1806 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 279: FieldAccess ::= ClassName . super$sup . identifier // case 279: { //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 280: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 280: { //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1817 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 282: PostfixExpression ::= ExpressionName // case 282: { //#line 1840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 285: PostIncrementExpression ::= PostfixExpression ++ // case 285: { //#line 1848 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 286: PostDecrementExpression ::= PostfixExpression -- // case 286: { //#line 1854 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 289: UnaryExpression ::= + UnaryExpression // case 289: { //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1864 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 290: UnaryExpression ::= - UnaryExpression // case 290: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 292: PreIncrementExpression ::= ++ UnaryExpression // case 292: { //#line 1874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1876 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 293: PreDecrementExpression ::= -- UnaryExpression // case 293: { //#line 1880 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 295: { //#line 1887 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 296: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 296: { //#line 1892 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 299: { //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1908 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 300: { //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 301: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 301: { //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1918 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 303: { //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1925 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 304: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 304: { //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1930 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 306: { //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1937 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 307: { //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1942 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 308: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 308: { //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1948 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression < ShiftExpression // case 310: { //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression > ShiftExpression // case 311: { //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1961 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 312: { //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1966 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 313: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 313: { //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1971 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression == RelationalExpression // case 315: { //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1987 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 316: EqualityExpression ::= EqualityExpression != RelationalExpression // case 316: { //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1992 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 318: AndExpression ::= AndExpression & EqualityExpression // case 318: { //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1999 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 320: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 320: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2006 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 322: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 322: { //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2013 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 324: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 324: { //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2020 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 326: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 326: { //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 328: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 328: { //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 331: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 331: { //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 332: LeftHandSide ::= ExpressionName // case 332: { //#line 2047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2049 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 335: AssignmentOperator ::= = // case 335: { //#line 2057 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 336: AssignmentOperator ::= *= // case 336: { //#line 2062 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= /= // case 337: { //#line 2067 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= %= // case 338: { //#line 2072 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= += // case 339: { //#line 2077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= -= // case 340: { //#line 2082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= <<= // case 341: { //#line 2087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > = // case 342: { //#line 2092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= > > > = // case 343: { //#line 2098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= &= // case 344: { //#line 2104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= ^= // case 345: { //#line 2109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 346: AssignmentOperator ::= |= // case 346: { //#line 2114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 349: Dimsopt ::= $Empty // case 349: { //#line 2127 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 351: Catchesopt ::= $Empty // case 351: { //#line 2134 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 353: identifieropt ::= $Empty // case 353: setResult(null); break; // // Rule 354: identifieropt ::= identifier // case 354: { //#line 2141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2143 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 355: ForUpdateopt ::= $Empty // case 355: { //#line 2149 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 357: Expressionopt ::= $Empty // case 357: setResult(null); break; // // Rule 359: ForInitopt ::= $Empty // case 359: { //#line 2160 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 361: SwitchLabelsopt ::= $Empty // case 361: { //#line 2167 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 363: SwitchBlockStatementGroupsopt ::= $Empty // case 363: { //#line 2174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 365: VariableModifiersopt ::= $Empty // case 365: { //#line 2181 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 367: VariableInitializersopt ::= $Empty // case 367: setResult(null); break; // // Rule 369: AbstractMethodModifiersopt ::= $Empty // case 369: { //#line 2211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 371: ConstantModifiersopt ::= $Empty // case 371: { //#line 2218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 373: InterfaceMemberDeclarationsopt ::= $Empty // case 373: { //#line 2225 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 375: ExtendsInterfacesopt ::= $Empty // case 375: { //#line 2232 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 377: InterfaceModifiersopt ::= $Empty // case 377: { //#line 2239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 379: ClassBodyopt ::= $Empty // case 379: setResult(null); break; // // Rule 381: Argumentsopt ::= $Empty // case 381: setResult(null); break; // // Rule 382: Argumentsopt ::= Arguments // case 382: throw new Error("No action specified for rule " + 382); // // Rule 383: ,opt ::= $Empty // case 383: setResult(null); break; // // Rule 385: ArgumentListopt ::= $Empty // case 385: { //#line 2269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 387: BlockStatementsopt ::= $Empty // case 387: { //#line 2276 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 389: ExplicitConstructorInvocationopt ::= $Empty // case 389: setResult(null); break; // // Rule 391: ConstructorModifiersopt ::= $Empty // case 391: { //#line 2287 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 393: ...opt ::= $Empty // case 393: setResult(null); break; // // Rule 395: FormalParameterListopt ::= $Empty // case 395: { //#line 2298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 397: Throwsopt ::= $Empty // case 397: { //#line 2305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 399: MethodModifiersopt ::= $Empty // case 399: { //#line 2312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 401: FieldModifiersopt ::= $Empty // case 401: { //#line 2319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 403: ClassBodyDeclarationsopt ::= $Empty // case 403: { //#line 2326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 405: Interfacesopt ::= $Empty // case 405: { //#line 2333 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 407: Superopt ::= $Empty // case 407: { //#line 2340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 409: ClassModifiersopt ::= $Empty // case 409: { //#line 2351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 411: TypeDeclarationsopt ::= $Empty // case 411: { //#line 2363 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 413: ImportDeclarationsopt ::= $Empty // case 413: { //#line 2370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 415: PackageDeclarationopt ::= $Empty // case 415: setResult(null); break; // // Rule 417: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 717 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 418: { //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 726 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 419: PackageDeclaration ::= package PackageName ; // case 419: { //#line 732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 420: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 420: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 422: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 422: { //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 423: X10ClassModifier ::= ClassModifier // case 423: { //#line 761 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 763 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 424: X10ClassModifier ::= safe // case 424: { //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 425: PropertyList ::= ( Properties WhereClauseopt ) // case 425: { //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 426: PropertyList ::= ( WhereClause ) // case 426: { //#line 779 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 427: Properties ::= Property // case 427: { //#line 788 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 428: Properties ::= Properties , Property // case 428: { //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 797 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 429: Property ::= Type identifier // case 429: { //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 805 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 430: MethodHeader ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 430: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 813 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, null)); break; } // // Rule 431: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 431: { //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 432: { //#line 840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 433: { //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 847 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 434: { //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 852 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 435: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 435: { //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 858 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 436: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 436: { //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 875 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 437: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 900 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 907 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 439: { //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 915 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 440: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 440: { //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 924 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 441: { //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 442: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 442: { //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 934 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 444: AssignPropertyCall ::= property ( ArgumentList ) // case 444: { //#line 939 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 941 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 445: Type ::= DataType // case 445: { //#line 950 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 952 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 446: Type ::= nullable < Type > DepParametersopt // case 446: { //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 957 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 447: Type ::= future < Type > // case 447: { //#line 963 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 965 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 451: PrimitiveType ::= NumericType DepParametersopt // case 451: { //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 982 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 452: PrimitiveType ::= boolean DepParametersopt // case 452: { //#line 988 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 457: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 457: { //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 458: DepParameters ::= ( DepParameterExpr ) // case 458: { //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1023 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 459: DepParameterExpr ::= ArgumentList WhereClauseopt // case 459: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 460: DepParameterExpr ::= WhereClause // case 460: { //#line 1032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 461: WhereClause ::= : ConstExpression // case 461: { //#line 1038 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1040 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 462: ConstPrimary ::= Literal // case 462: { //#line 1045 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 463: ConstPrimary ::= Type . class // case 463: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1052 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 464: ConstPrimary ::= void . class // case 464: { //#line 1071 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 465: ConstPrimary ::= this // case 465: { //#line 1077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 466: ConstPrimary ::= here // case 466: { //#line 1082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 467: ConstPrimary ::= ClassName . this // case 467: { //#line 1085 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 468: ConstPrimary ::= ( ConstExpression ) // case 468: { //#line 1090 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 470: ConstPrimary ::= self // case 470: { //#line 1098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 471: ConstPostfixExpression ::= ConstPrimary // case 471: { //#line 1104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 472: ConstPostfixExpression ::= ExpressionName // case 472: { //#line 1109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 473: ConstUnaryExpression ::= ConstPostfixExpression // case 473: { //#line 1114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 474: ConstUnaryExpression ::= + ConstUnaryExpression // case 474: { //#line 1119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= - ConstUnaryExpression // case 475: { //#line 1124 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 476: ConstUnaryExpression ::= ! ConstUnaryExpression // case 476: { //#line 1129 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 477: { //#line 1135 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1137 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 478: { //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1142 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 479: { //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 480: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 480: { //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 481: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 481: { //#line 1156 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1158 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 482: { //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1163 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 483: { //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1168 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 484: ConstRelationalExpression ::= ConstAdditiveExpression // case 484: { //#line 1173 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 485: { //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 486: { //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1185 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 487: { //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1190 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 488: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 488: { //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1195 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 489: ConstEqualityExpression ::= ConstRelationalExpression // case 489: { //#line 1199 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 490: { //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1206 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 491: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 491: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 492: ConstAndExpression ::= ConstEqualityExpression // case 492: { //#line 1215 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1217 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 493: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 493: { //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1222 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstAndExpression // case 494: { //#line 1226 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1228 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 495: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 495: { //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1233 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 496: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 497: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 497: { //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1244 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression // case 498: { //#line 1248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 499: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 499: { //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1255 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 500: ConstFieldAccess ::= ConstPrimary . identifier // case 500: { //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= super . identifier // case 501: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 502: ConstFieldAccess ::= ClassName . super$sup . identifier // case 502: { //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1272 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 504: X10ArrayType ::= Type [ . ] // case 504: { //#line 1288 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1290 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 505: X10ArrayType ::= Type value [ . ] // case 505: { //#line 1293 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1295 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 506: X10ArrayType ::= Type [ DepParameterExpr ] // case 506: { //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1300 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 507: X10ArrayType ::= Type value [ DepParameterExpr ] // case 507: { //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 508: ObjectKind ::= value // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: ObjectKind ::= reference // case 509: throw new Error("No action specified for rule " + 509); // // Rule 510: MethodModifier ::= atomic // case 510: { //#line 1319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 511: MethodModifier ::= extern // case 511: { //#line 1324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 512: MethodModifier ::= safe // case 512: { //#line 1329 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 513: MethodModifier ::= sequential // case 513: { //#line 1334 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 514: MethodModifier ::= local // case 514: { //#line 1339 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 515: MethodModifier ::= nonblocking // case 515: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 518: { //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 519: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 519: { //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 520: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 520: { //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1383 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 521: ThisClause ::= this DepParameters // case 521: { //#line 1391 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1393 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 522: Super ::= extends DataType // case 522: { //#line 1397 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1399 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 523: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 523: { //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1405 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 524: MethodDeclarator ::= MethodDeclarator [ ] // case 524: { //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1417 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 525: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 525: { //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1425 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 526: { //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1461 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 527: { //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 528: { //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 529: { //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1482 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 530: { //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1487 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 531: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 531: { //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 532: Valueopt ::= $Empty // case 532: setResult(null); break; // // Rule 533: Valueopt ::= value // case 533: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 536: ArrayBaseType ::= nullable < Type > // case 536: { //#line 1508 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1510 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= future < Type > // case 537: { //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1515 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 538: ArrayBaseType ::= ( Type ) // case 538: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 539: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 539: { //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 540: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 540: { //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 557: NowStatement ::= now ( Clock ) Statement // case 557: { //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1561 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 558: ClockedClause ::= clocked ( ClockList ) // case 558: { //#line 1565 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 559: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 559: { //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 560: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 560: { //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1583 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 561: WhenStatement ::= when ( Expression ) Statement // case 561: { //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1592 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 562: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 562: { //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1597 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 563: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1604 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 564: { //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1614 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 565: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 565: { //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1624 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 566: FinishStatement ::= finish Statement // case 566: { //#line 1631 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 567: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 567: { //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 568: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 568: { //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1646 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 569: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 569: { //#line 1653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1655 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 570: { //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1661 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 571: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 571: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 572: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1673 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 573: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 574: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 574: { //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1694 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 575: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 575: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1703 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 576: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 576: { //#line 1708 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 578: NextStatement ::= next ; // case 578: { //#line 1718 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 579: AwaitStatement ::= await Expression ; // case 579: { //#line 1722 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 580: ClockList ::= Clock // case 580: { //#line 1728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 581: ClockList ::= ClockList , Clock // case 581: { //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1737 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 582: Clock ::= Expression // case 582: { //#line 1743 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1745 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 583: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 583: { //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1757 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 584: { //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1762 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 585: RelationalExpression ::= RelationalExpression instanceof Type // case 585: { //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 586: IdentifierList ::= identifier // case 586: { //#line 1780 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 587: IdentifierList ::= IdentifierList , identifier // case 587: { //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1789 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 588: Primary ::= here // case 588: { //#line 1796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 591: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 591: { //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1814 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 592: RegionExpressionList ::= RegionExpression // case 592: { //#line 1830 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1832 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 593: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 593: { //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1839 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 594: Primary ::= [ RegionExpressionList ] // case 594: { //#line 1844 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1846 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 595: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 595: { //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 596: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 596: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 597: FieldModifier ::= mutable // case 597: { //#line 1877 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 598: FieldModifier ::= const // case 598: { //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 599: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 607: throw new Error("No action specified for rule " + 607); // // Rule 608: MethodModifier ::= synchronized // case 608: { //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"synchronized\" is an invalid X10 Method Modifier"); setResult(Flags.SYNCHRONIZED); break; } // // Rule 609: FieldModifier ::= volatile // case 609: { //#line 1922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"volatile\" is an invalid X10 Field Modifier"); setResult(Flags.VOLATILE); break; } // // Rule 610: SynchronizedStatement ::= synchronized ( Expression ) Block // case 610: { //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1931 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "Synchronized Statement is invalid in X10"); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 611: ThisClauseopt ::= $Empty // case 611: setResult(null); break; // // Rule 613: PlaceTypeSpecifieropt ::= $Empty // case 613: setResult(null); break; // // Rule 615: DepParametersopt ::= $Empty // case 615: setResult(null); break; // // Rule 617: PropertyListopt ::= $Empty // case 617: setResult(null); break; // // Rule 619: WhereClauseopt ::= $Empty // case 619: setResult(null); break; // // Rule 621: ObjectKindopt ::= $Empty // case 621: setResult(null); break; // // Rule 623: ArrayInitializeropt ::= $Empty // case 623: setResult(null); break; // // Rule 625: PlaceExpressionSingleListopt ::= $Empty // case 625: setResult(null); break; // // Rule 627: ArgumentListopt ::= $Empty // case 627: setResult(null); break; // // Rule 629: X10ClassModifiersopt ::= $Empty // case 629: { //#line 1977 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 631: DepParametersopt ::= $Empty // case 631: setResult(null); break; // // Rule 633: Unsafeopt ::= $Empty // case 633: setResult(null); break; // // Rule 634: Unsafeopt ::= unsafe // case 634: { //#line 1989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 635: ParamIdopt ::= $Empty // case 635: setResult(null); break; // // Rule 636: ParamIdopt ::= identifier // case 636: { //#line 1996 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1998 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 637: ClockedClauseopt ::= $Empty // case 637: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/13a8963410bb8c85885791a761267a089892a2fc/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 10792, 21582, 12, 2704, 1770, 12, 82, 74, 16, 4766, 1377, 3742, 16, 4766, 1377, 949, 12, 588, 3910, 6952, 9334, 16609, 6952, 1435, 3631, 4766, 1377, 21036, 16, 4766, 1377, 10971, 10019, 10792, 898, 31, 5411, 289, 5397, 368, 5411, 368, 6781, 576, 30, 225, 7508, 461, 493, 33, 7508, 461, 263, 1068, 548, 5411, 368, 5411, 648, 576, 30, 288, 7734, 368, 7, 1369, 2872, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 7508, 461, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 6549, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 10792, 21582, 12, 2704, 2 ]
if (needsThis > 0 || singleArgs < primArgTypes.length)
int explicitFrameArg = singleArgs + (varArgs ? 1 : 0) < primArgTypes.length ? 1 : 0; if (needsThis + explicitFrameArg > 0)
public void generateApplyMethodsWithoutContext(LambdaExp lexp) { int numApplyMethods = lexp.applyMethods == null ? 0 : lexp.applyMethods.size(); if (numApplyMethods == 0) return; ClassType save_class = curClass; curClass = lexp.getHeapFrameType(); ClassType procType = typeModuleMethod; if (! (curClass.getSuperclass().isSubtype(typeModuleBody))) curClass = moduleClass; Method save_method = method; CodeAttr code = null; for (int i = defaultCallConvention >= Compilation.CALL_WITH_CONSUMER ? 5 : 0; i < 6; i++) { // If i < 5, generate the method named ("apply"+i); // else generate "applyN". boolean needThisApply = false; SwitchState aswitch = null; String mname = null; Type[] applyArgs = null; for (int j = numApplyMethods; --j >= 0; ) { LambdaExp source = (LambdaExp) lexp.applyMethods.elementAt(j); // Select the subset of source.primMethods[*] that are suitable // for the current apply method. Method[] primMethods = source.primMethods; int numMethods = primMethods.length; boolean varArgs = source.max_args < 0 || source.max_args >= source.min_args + numMethods; int methodIndex; boolean skipThisProc = false; if (i < 5) // Handling apply0 .. apply4 { methodIndex = i - source.min_args; if (methodIndex < 0 || methodIndex >= numMethods || (methodIndex == numMethods - 1 && varArgs)) skipThisProc = true; numMethods = 1; varArgs = false; } else // Handling applyN { methodIndex = 5 - source.min_args; if (methodIndex > 0 && numMethods <= methodIndex && ! varArgs) skipThisProc = true; methodIndex = numMethods-1; } if (skipThisProc) continue; if (! needThisApply) { // First LambdaExp we seen suitable for this i. if (i < 5) { mname = "apply"+i; applyArgs = new Type[i + 1]; for (int k = i; k > 0; k--) applyArgs[k] = typeObject; } else { mname = "applyN"; applyArgs = new Type[2]; applyArgs[1] = objArrayType; } applyArgs[0] = procType; method = curClass.addMethod (mname, applyArgs, defaultCallConvention >= Compilation.CALL_WITH_CONSUMER ? (Type) Type.void_type : (Type) Type.pointer_type, Access.PUBLIC); code = method.startCode(); code.emitLoad(code.getArg(1)); // method code.emitGetField(procType.getField("selector")); aswitch = new SwitchState(code); needThisApply = true; } aswitch.addCase(source.getSelectorValue(this), code); int line = source.getLine(); if (line > 0) code.putLineNumber(source.getFile(), line); Method primMethod = primMethods[methodIndex]; Type[] primArgTypes = primMethod.getParameterTypes(); int singleArgs = source.min_args+methodIndex; Variable counter = null; int pendingIfEnds = 0; if (i > 4 && numMethods > 1) { counter = code.addLocal(Type.int_type); code.emitLoad(code.getArg(2)); code.emitArrayLength(); if (source.min_args != 0) { code.emitPushInt(source.min_args); code.emitSub(Type.int_type); } code.emitStore(counter); } int needsThis = primMethod.getStaticFlag() ? 0 : 1; if (needsThis > 0 // The following is true if there is frame parameter. || singleArgs < primArgTypes.length) { code.emitPushThis(); if (curClass == moduleClass && mainClass != moduleClass) code.emitGetField(moduleInstanceMainField); } Declaration var = source.firstDecl(); for (int k = 0; k < singleArgs; k++) { if (counter != null && k >= source.min_args) { code.emitLoad(counter); code.emitIfIntLEqZero(); code.emitInvoke(primMethods[k - source.min_args]); code.emitElse(); pendingIfEnds++; code.emitInc(counter, (short) (-1)); } Variable pvar = null; if (i <= 4) // apply'i method { pvar = code.getArg(k + 2); code.emitLoad(pvar); } else // applyN method { // Load Object[]args value: code.emitLoad(code.getArg(2)); code.emitPushInt(k); code.emitArrayLoad(Type.pointer_type); } Type ptype = var.getType(); if (ptype != Type.pointer_type) CheckedTarget.emitCheckedCoerce(this, source, k+1, ptype, pvar); var = var.nextDecl(); } if (varArgs) { Type lastArgType = primArgTypes[singleArgs]; if (lastArgType instanceof ArrayType) { Type elType = ((ArrayType) lastArgType).getComponentType(); boolean mustConvert = ! "java.lang.Object".equals(elType.getName()); if (singleArgs == 0 && ! mustConvert) code.emitLoad(code.getArg(2)); // load args array. else { code.pushScope(); if (counter == null) { counter = code.addLocal(Type.int_type); code.emitLoad(code.getArg(2)); code.emitArrayLength(); if (singleArgs != 0) { code.emitPushInt(singleArgs); code.emitSub(Type.int_type); } code.emitStore(counter); } code.emitLoad(counter); code.emitNewArray(elType); Label testLabel = new Label(code); code.emitGoto(testLabel); Label loopTopLabel = new Label(code); loopTopLabel.define(code); code.emitDup(1); // new array code.emitLoad(counter); code.emitLoad(code.getArg(2)); code.emitLoad(counter); if (singleArgs != 0) { code.emitPushInt(singleArgs); code.emitAdd(Type.int_type); } code.emitArrayLoad(Type.pointer_type); if (mustConvert) { CheckedTarget.emitCheckedCoerce (this, source, source.getName(), 0, elType, null); } code.emitArrayStore(elType); testLabel.define(code); code.emitInc(counter, (short) (-1)); code.emitLoad(counter); code.emitGotoIfIntGeZero(loopTopLabel); code.popScope(); } } else if ("gnu.lists.LList".equals (lastArgType.getName())) { code.emitLoad(code.getArg(2)); // load args array. code.emitPushInt(singleArgs); code.emitInvokeStatic(Compilation.makeListMethod); } else if (lastArgType == typeCallContext) code.emitLoad(code.getArg(2)); else throw new RuntimeException("unsupported #!rest type:"+lastArgType); } code.emitInvoke(primMethod); while (--pendingIfEnds >= 0) code.emitFi(); if (defaultCallConvention < Compilation.CALL_WITH_CONSUMER) Target.pushObject.compileFromStack(this, source.getReturnType()); code.emitReturn(); } if (needThisApply) { aswitch.addDefault(code); if (defaultCallConvention >= Compilation.CALL_WITH_CONSUMER) { Method errMethod = typeModuleMethod.getDeclaredMethod("applyError", 0); code.emitInvokeStatic(errMethod); } else { int nargs = i > 4 ? 2 : i + 1; nargs++; for (int k = 0; k < nargs; k++) code.emitLoad(code.getArg(k)); code.emitInvokeSpecial(typeModuleBody.getDeclaredMethod(mname, applyArgs)); } code.emitReturn(); aswitch.finish(code); } } method = save_method; curClass = save_class; }
37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/4aea4c1122fea5b129b7c0396ebe59980295f720/Compilation.java/buggy/gnu/expr/Compilation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2103, 7001, 4712, 8073, 1042, 12, 12025, 2966, 5275, 84, 13, 225, 288, 565, 509, 818, 7001, 4712, 1377, 273, 5275, 84, 18, 9010, 4712, 422, 446, 692, 374, 294, 5275, 84, 18, 9010, 4712, 18, 1467, 5621, 565, 309, 261, 2107, 7001, 4712, 422, 374, 13, 1377, 327, 31, 565, 1659, 559, 1923, 67, 1106, 273, 662, 797, 31, 565, 662, 797, 273, 5275, 84, 18, 588, 15648, 3219, 559, 5621, 565, 1659, 559, 5418, 559, 273, 618, 3120, 1305, 31, 565, 309, 16051, 261, 1397, 797, 18, 588, 28471, 7675, 291, 1676, 723, 12, 723, 3120, 2250, 20349, 1377, 662, 797, 273, 1605, 797, 31, 565, 2985, 1923, 67, 2039, 273, 707, 31, 565, 3356, 3843, 981, 273, 446, 31, 565, 364, 261, 474, 277, 273, 805, 1477, 25947, 1545, 22416, 18, 13730, 67, 9147, 67, 31668, 202, 282, 692, 1381, 294, 374, 31, 202, 277, 411, 1666, 31, 277, 27245, 1377, 288, 202, 759, 971, 277, 411, 1381, 16, 2103, 326, 707, 4141, 7566, 9010, 6, 15, 77, 1769, 202, 759, 469, 2103, 315, 9010, 50, 9654, 202, 6494, 1608, 2503, 7001, 273, 629, 31, 202, 10200, 1119, 487, 30390, 273, 446, 31, 202, 780, 312, 529, 273, 446, 31, 202, 559, 8526, 2230, 2615, 273, 446, 31, 202, 1884, 261, 474, 525, 273, 818, 7001, 4712, 31, 225, 1493, 78, 1545, 374, 31, 262, 202, 225, 288, 202, 565, 12801, 2966, 1084, 273, 261, 12025, 2966, 13, 5275, 84, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2103, 7001, 4712, 8073, 1042, 12, 12025, 2966, 5275, 84, 13, 225, 288, 565, 509, 818, 7001, 4712, 1377, 273, 5275, 84, 18, 9010, 4712, 422, 446, 692, 374, 294, 5275, 84, 18, 9010, 4712, 18, 1467, 5621, 565, 309, 261, 2107, 7001, 4712, 422, 374, 13, 1377, 327, 31, 565, 1659, 559, 1923, 67, 1106, 273, 662, 797, 31, 565, 662, 797, 273, 5275, 84, 18, 588, 15648, 3219, 559, 5621, 565, 1659, 559, 5418, 559, 273, 618, 3120, 1305, 31, 565, 309, 16051, 261, 1397, 797, 18, 588, 28471, 7675, 291, 1676, 723, 12, 723, 3120, 2250, 20349, 1377, 662, 797, 273, 1605, 797, 31, 565, 2985, 1923, 67, 2039, 273, 707, 31, 565, 2 ]
this.parent = parent;
this.parentFrame = parent;
public UserInputPanel (InstallerFrame parent, InstallData installData) { super (parent, installData); instanceNumber = instanceCount++; this.parent = parent; // ---------------------------------------------------- // ---------------------------------------------------- layout = new TwoColumnLayout (10, 5, 30, 25, TwoColumnLayout.LEFT); setLayout (layout); // ---------------------------------------------------- // get a locale database // ---------------------------------------------------- try { //this.langpack = parent.langpack; String resource = LANG_FILE_NAME+"_"+idata.localeISO3; this.langpack = new LocaleDatabase (ResourceManager.getInstance().getInputStream (resource)); } catch (Throwable exception) {} // ---------------------------------------------------- // read the specifications // ---------------------------------------------------- try { readSpec (); } catch (Throwable exception) { // log the problem exception.printStackTrace (); } if (!haveSpec) { // return if we could not read the spec. further // processing will only lead to problems. In this // case we must skip the panel when it gets activated. return; } // ---------------------------------------------------- // process all field nodes. Each field node is analyzed // for its type, then an appropriate memeber function // is called that will create the correct UI elements. // ---------------------------------------------------- Vector fields = spec.getChildrenNamed (FIELD_NODE_ID); for (int i = 0; i < fields.size (); i++) { XMLElement field = (XMLElement)fields.elementAt (i); String attribute = field.getAttribute (TYPE); if (attribute != null) { if (attribute.equals (RULE_FIELD)) { addRuleField (field); } else if (attribute.equals (TEXT_FIELD)) { addTextField (field); } else if (attribute.equals (COMBO_FIELD)) { addComboBox (field); } else if (attribute.equals (RADIO_FIELD)) { addRadioButton (field); } else if (attribute.equals (PWD_FIELD)) { addPasswordField (field); } else if (attribute.equals (SPACE_FIELD)) { addSpace (field); } else if (attribute.equals (DIVIDER_FIELD)) { addDivider (field); } else if (attribute.equals (CHECK_FIELD)) { addCheckBox (field); } else if (attribute.equals (STATIC_TEXT)) { addText (field); } else if (attribute.equals (TITLE_FIELD)) { addTitle (field); } else if (attribute.equals (SEARCH_FIELD)) { addSearch (field); } } } }
46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/08ecc635ba8049aeb419722893f373a4a7f99a77/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2177, 1210, 5537, 261, 18678, 3219, 982, 16, 7682, 10284, 751, 565, 3799, 751, 13, 225, 288, 565, 2240, 261, 2938, 16, 3799, 751, 1769, 565, 791, 1854, 273, 791, 1380, 9904, 31, 565, 333, 18, 2938, 3219, 273, 982, 31, 565, 368, 13420, 6062, 565, 368, 13420, 6062, 565, 3511, 273, 394, 16896, 1494, 3744, 261, 2163, 16, 1381, 16, 5196, 16, 6969, 16, 16896, 1494, 3744, 18, 10066, 1769, 565, 18479, 261, 6741, 1769, 565, 368, 13420, 6062, 565, 368, 336, 279, 2573, 2063, 565, 368, 13420, 6062, 565, 775, 565, 288, 1377, 368, 2211, 18, 4936, 2920, 273, 982, 18, 4936, 2920, 31, 1377, 514, 1058, 273, 19913, 67, 3776, 67, 1985, 9078, 9548, 15, 350, 396, 18, 6339, 12609, 23, 31, 1377, 333, 18, 4936, 2920, 273, 394, 6458, 4254, 261, 1420, 1318, 18, 588, 1442, 7675, 588, 4348, 261, 3146, 10019, 565, 289, 565, 1044, 261, 15155, 1520, 13, 565, 2618, 565, 368, 13420, 6062, 565, 368, 855, 326, 21950, 565, 368, 13420, 6062, 565, 775, 565, 288, 1377, 855, 1990, 261, 1769, 565, 289, 565, 1044, 261, 15155, 1520, 13, 565, 288, 1377, 368, 613, 326, 6199, 1377, 1520, 18, 1188, 6332, 261, 1769, 565, 289, 565, 309, 16051, 21516, 1990, 13, 565, 288, 1377, 368, 327, 309, 732, 3377, 486, 855, 326, 857, 18, 9271, 1377, 368, 4929, 903, 1338, 5871, 358, 9688, 18, 657, 333, 1377, 368, 648, 732, 1297, 2488, 326, 6594, 1347, 518, 5571, 14892, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2177, 1210, 5537, 261, 18678, 3219, 982, 16, 7682, 10284, 751, 565, 3799, 751, 13, 225, 288, 565, 2240, 261, 2938, 16, 3799, 751, 1769, 565, 791, 1854, 273, 791, 1380, 9904, 31, 565, 333, 18, 2938, 3219, 273, 982, 31, 565, 368, 13420, 6062, 565, 368, 13420, 6062, 565, 3511, 273, 394, 16896, 1494, 3744, 261, 2163, 16, 1381, 16, 5196, 16, 6969, 16, 16896, 1494, 3744, 18, 10066, 1769, 565, 18479, 261, 6741, 1769, 565, 368, 13420, 6062, 565, 368, 336, 279, 2573, 2063, 565, 368, 13420, 6062, 565, 775, 565, 288, 1377, 368, 2211, 18, 4936, 2920, 273, 982, 18, 4936, 2920, 31, 1377, 514, 1058, 273, 19913, 67, 3776, 67, 1985, 9078, 9548, 2 ]
_t = __t1353;
_t = __t1354;
public final void entryfunc(AST _t) throws RecognitionException { AST entryfunc_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1353 = _t; AST tmp1592_AST_in = (AST)_t; match(_t,ENTRY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1353; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser03.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1241, 644, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1241, 644, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 3437, 8643, 273, 389, 88, 31, 202, 202, 9053, 1853, 3600, 9975, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 19083, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 12125, 1968, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 67, 88, 273, 1001, 88, 3437, 8643, 31, 202, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 202, 202, 67, 1349, 2471, 273, 389, 88, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1241, 644, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1241, 644, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 3437, 8643, 273, 389, 88, 31, 202, 202, 9053, 1853, 3600, 9975, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 19083, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 12125, 1968, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 67, 88, 273, 1001, 88, 3437, 8643, 31, 202, 202, 67, 88, 2 ]
Iterator childIterator = getChildIterator();
final Iterator childIterator = getChildIterator();
private FocusableElement getReferencedElement() { final String elementId = getAttributeValue("for"); if (elementId.length() != 0) { final HtmlElement element = getHtmlElementById(elementId); if (element != null && element instanceof HtmlInput) { return (FocusableElement) element; } } else { Iterator childIterator = getChildIterator(); while (childIterator.hasNext()) { DomNode element = (DomNode) childIterator.next(); if (element instanceof HtmlInput) { return (FocusableElement) element; } } } return null; }
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/bfbb9e2a2e54bf7040308f5f0b4fd744c80370c8/HtmlLabel.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/HtmlLabel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 478, 4560, 429, 1046, 13223, 72, 1046, 1435, 288, 3639, 727, 514, 930, 548, 273, 22777, 2932, 1884, 8863, 3639, 309, 261, 2956, 548, 18, 2469, 1435, 480, 374, 13, 288, 5411, 727, 5430, 1046, 930, 273, 19633, 1046, 5132, 12, 2956, 548, 1769, 5411, 309, 261, 2956, 480, 446, 597, 930, 1276, 5430, 1210, 13, 288, 7734, 327, 261, 9233, 429, 1046, 13, 930, 31, 5411, 289, 3639, 289, 3639, 469, 288, 5411, 727, 4498, 1151, 3198, 273, 8154, 3198, 5621, 5411, 1323, 261, 3624, 3198, 18, 5332, 2134, 10756, 288, 7734, 12965, 907, 930, 273, 261, 8832, 907, 13, 1151, 3198, 18, 4285, 5621, 7734, 309, 261, 2956, 1276, 5430, 1210, 13, 288, 10792, 327, 261, 9233, 429, 1046, 13, 930, 31, 7734, 289, 5411, 289, 3639, 289, 3639, 327, 446, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 478, 4560, 429, 1046, 13223, 72, 1046, 1435, 288, 3639, 727, 514, 930, 548, 273, 22777, 2932, 1884, 8863, 3639, 309, 261, 2956, 548, 18, 2469, 1435, 480, 374, 13, 288, 5411, 727, 5430, 1046, 930, 273, 19633, 1046, 5132, 12, 2956, 548, 1769, 5411, 309, 261, 2956, 480, 446, 597, 930, 1276, 5430, 1210, 13, 288, 7734, 327, 261, 9233, 429, 1046, 13, 930, 31, 5411, 289, 3639, 289, 3639, 469, 288, 5411, 727, 4498, 1151, 3198, 273, 8154, 3198, 5621, 5411, 1323, 261, 3624, 3198, 18, 5332, 2134, 10756, 288, 7734, 12965, 907, 930, 273, 261, 8832, 907, 13, 1151, 3198, 18, 4285, 5621, 7734, 309, 261, 2956, 1276, 5430, 1210, 13, 288, 10792, 327, 2 ]
GAAttack test = new GAAttack(game, this.enemies.get(en), v, Math.max((v.size()+attacks[i])*4,50), 100);
GAAttack test = new GAAttack(game, this.enemies.get(en), v, Math.max((v.size()+attacks[i])*4,50), 100, en.isEnemyOf((Entity)getEntitiesOwned().elementAt(0)));
public void calculateFiringTurn() { int first_entity = game.getFirstEntityNum(getLocalPlayer()); int entity_num = first_entity; int best_entity = first_entity; double max = java.lang.Double.MIN_VALUE; int[] results = null; Vector winner = null; int arc = 0; if (entity_num == -1) { return; } do { Entity en = game.getEntity(entity_num); CEntity cen = this.enemies.get(en); //if (en.canFlipArms()) //more logic int attacks[] = new int[3]; Vector front = new Vector(); Vector left = new Vector(); Vector right = new Vector(); int o_facing = en.getFacing(); for (Enumeration i = en.getWeapons();i.hasMoreElements();) { Mounted mw = (Mounted)i.nextElement(); Vector c = this.calculateWeaponAttacks(en, mw); if (c.size() > 0) { front.add(c); attacks[0] = Math.max(attacks[0], c.size()); } en.setSecondaryFacing((o_facing + 5)%6); c = this.calculateWeaponAttacks(en, mw); if (c.size() > 0) { left.add(c); attacks[1] = Math.max(attacks[1], c.size()); } en.setSecondaryFacing((o_facing + 1)%6); c = this.calculateWeaponAttacks(en, mw); if (c.size() > 0) { right.add(c); attacks[2] = Math.max(attacks[2], c.size()); } en.setSecondaryFacing(o_facing); } Vector arcs = new Vector(); arcs.add(front); arcs.add(left); arcs.add(right); for (int i = 0; i < arcs.size(); i++) { Vector v = (Vector)arcs.elementAt(i); if (v.size() > 0) { try { GAAttack test = new GAAttack(game, this.enemies.get(en), v, Math.max((v.size()+attacks[i])*4,50), 100); Thread threadTest = new Thread(test); threadTest.start(); threadTest.join(); if (test.getFittestChromosomesFitness() > max) { max = test.getFittestChromosomesFitness(); results = test.getResultChromosome(); arc = i; best_entity = entity_num; winner = (Vector)arcs.elementAt(arc); } } catch (GAException gae) { System.out.println(gae.getMessage()); } catch (Exception e) { e.printStackTrace(); } } } entity_num = game.getNextEntityNum(getLocalPlayer(), entity_num); } while (entity_num != first_entity && entity_num != -1); java.util.Vector av = new java.util.Vector(); //maximum already selected (or default) Entity en = game.getEntity(best_entity); if (results != null) { Entity primary_target = (Entity)(Compute.vectorToArray(game.getEntitiesVector())[results[results.length - 1]]); TreeMap tm = new TreeMap(new TestBot.AttackOptionSorter(this.enemies.get(primary_target))); for (int i = 0; i < results.length - 1; i++) { AttackOption a = (AttackOption)((Vector)winner.elementAt(i)).elementAt(results[i]); if (a.target != null) { a.target.expected_damage[a.toHit.getSideTable()] += a.value; a.target.hasTakenDamage = true; tm.put(a, a); } } com.sun.java.util.collections.Iterator i = tm.values().iterator(); while (i.hasNext()) { AttackOption a = (AttackOption)i.next(); av.addElement(new WeaponAttackAction(en.getId(),a.target.entity.getId(), en.getEquipmentNum(a.weapon))); } } switch (arc) { case 1: av.insertElementAt(new TorsoTwistAction(en.getId(), (en.getFacing() + 5)%6),0); break; case 2: av.insertElementAt(new TorsoTwistAction(en.getId(), (en.getFacing() + 1)%6),0); break; } //System.out.println(max); sendAttackData(best_entity, av); sendEntityReady(best_entity); sendReady(true); }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/fa24b181c21748e175526857b252abde9ae52389/TestBot.java/clean/megamek/src/megamek/client/bot/TestBot.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4604, 42, 11256, 15858, 1435, 288, 565, 509, 1122, 67, 1096, 273, 7920, 18, 588, 3759, 1943, 2578, 12, 588, 2042, 12148, 10663, 565, 509, 1522, 67, 2107, 273, 1122, 67, 1096, 31, 565, 509, 3796, 67, 1096, 273, 1122, 67, 1096, 31, 565, 1645, 943, 273, 2252, 18, 4936, 18, 5265, 18, 6236, 67, 4051, 31, 565, 509, 8526, 1686, 273, 446, 31, 565, 5589, 5657, 1224, 273, 446, 31, 565, 509, 8028, 273, 374, 31, 3639, 309, 261, 1096, 67, 2107, 422, 300, 21, 13, 288, 327, 31, 289, 3639, 741, 288, 1377, 3887, 570, 273, 7920, 18, 588, 1943, 12, 1096, 67, 2107, 1769, 1377, 385, 1943, 276, 275, 273, 333, 18, 275, 351, 606, 18, 588, 12, 275, 1769, 5411, 368, 430, 261, 275, 18, 4169, 28535, 686, 959, 10756, 225, 368, 10161, 4058, 5411, 509, 28444, 8526, 273, 394, 509, 63, 23, 15533, 1377, 5589, 6641, 273, 394, 5589, 5621, 1377, 5589, 2002, 273, 394, 5589, 5621, 1377, 5589, 2145, 273, 394, 5589, 5621, 5411, 509, 320, 67, 507, 2822, 273, 570, 18, 588, 42, 5330, 5621, 1377, 364, 261, 21847, 277, 273, 570, 18, 588, 3218, 438, 7008, 5621, 77, 18, 5332, 7417, 3471, 5621, 13, 288, 3639, 13076, 329, 14721, 273, 261, 8725, 329, 13, 77, 18, 4285, 1046, 5621, 3639, 5589, 276, 273, 333, 18, 11162, 3218, 28629, 3075, 22098, 12, 275, 16, 14721, 1769, 3639, 309, 261, 71, 18, 1467, 1435, 405, 374, 13, 288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4604, 42, 11256, 15858, 1435, 288, 565, 509, 1122, 67, 1096, 273, 7920, 18, 588, 3759, 1943, 2578, 12, 588, 2042, 12148, 10663, 565, 509, 1522, 67, 2107, 273, 1122, 67, 1096, 31, 565, 509, 3796, 67, 1096, 273, 1122, 67, 1096, 31, 565, 1645, 943, 273, 2252, 18, 4936, 18, 5265, 18, 6236, 67, 4051, 31, 565, 509, 8526, 1686, 273, 446, 31, 565, 5589, 5657, 1224, 273, 446, 31, 565, 509, 8028, 273, 374, 31, 3639, 309, 261, 1096, 67, 2107, 422, 300, 21, 13, 288, 327, 31, 289, 3639, 741, 288, 1377, 3887, 570, 273, 7920, 18, 588, 1943, 12, 1096, 67, 2107, 1769, 1377, 385, 1943, 276, 275, 273, 333, 18, 275, 2 ]
wb.getAdviser().eventLoopException(t);
wb.getAdvisor().eventLoopException(t);
public void handleException(Throwable t) { try { // Ignore ThreadDeath error as its normal to get this when thread dies if (t instanceof ThreadDeath) { throw (ThreadDeath) t; } // Check to avoid recursive errors exceptionCount++; if (exceptionCount > 2) { if (t instanceof RuntimeException) throw (RuntimeException) t; else throw (Error) t; } // Let the adviser handle this now Workbench wb = Workbench.getInstance(); if (wb != null) { wb.getAdviser().eventLoopException(t); } } finally { exceptionCount--; } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/2a9e285012b5b01ed76dddb9f4293cffdad5d56c/ExceptionHandler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ExceptionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20879, 12, 15155, 268, 13, 288, 202, 202, 698, 288, 1082, 202, 759, 8049, 4884, 758, 421, 555, 487, 2097, 2212, 358, 336, 333, 1347, 2650, 27890, 1082, 202, 430, 261, 88, 1276, 4884, 758, 421, 13, 288, 9506, 202, 12849, 261, 3830, 758, 421, 13, 268, 31, 1082, 202, 97, 25083, 202, 759, 2073, 358, 4543, 5904, 1334, 1082, 202, 4064, 1380, 9904, 31, 1082, 202, 430, 261, 4064, 1380, 405, 576, 13, 288, 9506, 202, 430, 261, 88, 1276, 3235, 13, 6862, 202, 12849, 261, 11949, 13, 268, 31, 9506, 202, 12107, 6862, 202, 12849, 261, 668, 13, 268, 31, 1082, 202, 97, 1082, 202, 759, 10559, 326, 1261, 3516, 264, 1640, 333, 2037, 1082, 202, 2421, 22144, 17298, 273, 4147, 22144, 18, 588, 1442, 5621, 1082, 202, 430, 261, 9464, 480, 446, 13, 288, 9506, 202, 9464, 18, 588, 1871, 3516, 264, 7675, 2575, 6452, 503, 12, 88, 1769, 1082, 202, 97, 202, 202, 97, 3095, 288, 1082, 202, 4064, 1380, 413, 31, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20879, 12, 15155, 268, 13, 288, 202, 202, 698, 288, 1082, 202, 759, 8049, 4884, 758, 421, 555, 487, 2097, 2212, 358, 336, 333, 1347, 2650, 27890, 1082, 202, 430, 261, 88, 1276, 4884, 758, 421, 13, 288, 9506, 202, 12849, 261, 3830, 758, 421, 13, 268, 31, 1082, 202, 97, 25083, 202, 759, 2073, 358, 4543, 5904, 1334, 1082, 202, 4064, 1380, 9904, 31, 1082, 202, 430, 261, 4064, 1380, 405, 576, 13, 288, 9506, 202, 430, 261, 88, 1276, 3235, 13, 6862, 202, 12849, 261, 11949, 13, 268, 31, 9506, 202, 12107, 6862, 202, 12849, 261, 668, 13, 268, 31, 1082, 202, 97, 1082, 202, 759, 10559, 326, 1261, 3516, 264, 1640, 333, 2 ]
case 152 : if (DEBUG) { System.out.println("VariableDeclarators ::= VariableDeclarators COMMA..."); }
case 153 : if (DEBUG) { System.out.println("VariableDeclarators ::= VariableDeclarators COMMA..."); }
protected void consumeRule(int act) { switch ( act ) { case 29 : if (DEBUG) { System.out.println("Type ::= PrimitiveType"); } //$NON-NLS-1$ consumePrimitiveType(); break; case 43 : if (DEBUG) { System.out.println("ReferenceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeReferenceType(); break; case 47 : if (DEBUG) { System.out.println("ClassOrInterface ::= Name"); } //$NON-NLS-1$ consumeClassOrInterfaceName(); break; case 48 : if (DEBUG) { System.out.println("ClassOrInterface ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeClassOrInterface(); break; case 49 : if (DEBUG) { System.out.println("GenericType ::= ClassOrInterface TypeArguments"); } //$NON-NLS-1$ consumeGenericType(); break; case 50 : if (DEBUG) { System.out.println("ArrayTypeWithTypeArgumentsName ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeArrayTypeWithTypeArgumentsName(); break; case 51 : if (DEBUG) { System.out.println("ArrayType ::= PrimitiveType Dims"); } //$NON-NLS-1$ consumePrimitiveArrayType(); break; case 52 : if (DEBUG) { System.out.println("ArrayType ::= Name Dims"); } //$NON-NLS-1$ consumeNameArrayType(); break; case 53 : if (DEBUG) { System.out.println("ArrayType ::= ArrayTypeWithTypeArgumentsName Dims"); } //$NON-NLS-1$ consumeGenericTypeNameArrayType(); break; case 54 : if (DEBUG) { System.out.println("ArrayType ::= GenericType Dims"); } //$NON-NLS-1$ consumeGenericTypeArrayType(); break; case 59 : if (DEBUG) { System.out.println("QualifiedName ::= Name DOT SimpleName"); } //$NON-NLS-1$ consumeQualifiedName(); break; case 60 : if (DEBUG) { System.out.println("CompilationUnit ::= EnterCompilationUnit..."); } //$NON-NLS-1$ consumeCompilationUnit(); break; case 61 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration"); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 62 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 63 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 64 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 65 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 66 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= TypeDeclarations"); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 67 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 68 : if (DEBUG) { System.out.println("InternalCompilationUnit ::="); } //$NON-NLS-1$ consumeEmptyInternalCompilationUnit(); break; case 69 : if (DEBUG) { System.out.println("ReduceImports ::="); } //$NON-NLS-1$ consumeReduceImports(); break; case 70 : if (DEBUG) { System.out.println("EnterCompilationUnit ::="); } //$NON-NLS-1$ consumeEnterCompilationUnit(); break; case 86 : if (DEBUG) { System.out.println("CatchHeader ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeCatchHeader(); break; case 88 : if (DEBUG) { System.out.println("ImportDeclarations ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeImportDeclarations(); break; case 90 : if (DEBUG) { System.out.println("TypeDeclarations ::= TypeDeclarations TypeDeclaration"); } //$NON-NLS-1$ consumeTypeDeclarations(); break; case 91 : if (DEBUG) { System.out.println("PackageDeclaration ::= PackageDeclarationName SEMICOLON"); } //$NON-NLS-1$ consumePackageDeclaration(); break; case 92 : if (DEBUG) { System.out.println("PackageDeclarationName ::= Modifiers package..."); } //$NON-NLS-1$ consumePackageDeclarationNameWithModifiers(); break; case 93 : if (DEBUG) { System.out.println("PackageDeclarationName ::= PackageComment package Name"); } //$NON-NLS-1$ consumePackageDeclarationName(); break; case 94 : if (DEBUG) { System.out.println("PackageComment ::="); } //$NON-NLS-1$ consumePackageComment(); break; case 99 : if (DEBUG) { System.out.println("SingleTypeImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 100 : if (DEBUG) { System.out.println("SingleTypeImportDeclarationName ::= import Name"); } //$NON-NLS-1$ consumeSingleTypeImportDeclarationName(); break; case 101 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 102 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclarationName ::= import Name DOT..."); } //$NON-NLS-1$ consumeTypeImportOnDemandDeclarationName(); break; case 105 : if (DEBUG) { System.out.println("TypeDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyTypeDeclaration(); break; case 109 : if (DEBUG) { System.out.println("Modifiers ::= Modifiers Modifier"); } //$NON-NLS-1$ consumeModifiers2(); break; case 121 : if (DEBUG) { System.out.println("Modifier ::= Annotation"); } //$NON-NLS-1$ consumeAnnotationAsModifier(); break; case 122 : if (DEBUG) { System.out.println("ClassDeclaration ::= ClassHeader ClassBody"); } //$NON-NLS-1$ consumeClassDeclaration(); break; case 123 : if (DEBUG) { System.out.println("ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt..."); } //$NON-NLS-1$ consumeClassHeader(); break; case 124 : if (DEBUG) { System.out.println("ClassHeaderName ::= ClassHeaderName1 TypeParameters"); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 126 : if (DEBUG) { System.out.println("ClassHeaderName1 ::= Modifiersopt class Identifier"); } //$NON-NLS-1$ consumeClassHeaderName1(); break; case 127 : if (DEBUG) { System.out.println("ClassHeaderExtends ::= extends ClassType"); } //$NON-NLS-1$ consumeClassHeaderExtends(); break; case 128 : if (DEBUG) { System.out.println("ClassHeaderImplements ::= implements InterfaceTypeList"); } //$NON-NLS-1$ consumeClassHeaderImplements(); break; case 130 : if (DEBUG) { System.out.println("InterfaceTypeList ::= InterfaceTypeList COMMA..."); } //$NON-NLS-1$ consumeInterfaceTypeList(); break; case 131 : if (DEBUG) { System.out.println("InterfaceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeInterfaceType(); break; case 134 : if (DEBUG) { System.out.println("ClassBodyDeclarations ::= ClassBodyDeclarations..."); } //$NON-NLS-1$ consumeClassBodyDeclarations(); break; case 138 : if (DEBUG) { System.out.println("ClassBodyDeclaration ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 139 : if (DEBUG) { System.out.println("Diet ::="); } //$NON-NLS-1$ consumeDiet(); break; case 140 : if (DEBUG) { System.out.println("Initializer ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 147 : if (DEBUG) { System.out.println("ClassMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyClassMemberDeclaration(); break; case 150 : if (DEBUG) { System.out.println("FieldDeclaration ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFieldDeclaration(); break; case 152 : if (DEBUG) { System.out.println("VariableDeclarators ::= VariableDeclarators COMMA..."); } //$NON-NLS-1$ consumeVariableDeclarators(); break; case 155 : if (DEBUG) { System.out.println("EnterVariable ::="); } //$NON-NLS-1$ consumeEnterVariable(); break; case 156 : if (DEBUG) { System.out.println("ExitVariableWithInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithInitialization(); break; case 157 : if (DEBUG) { System.out.println("ExitVariableWithoutInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithoutInitialization(); break; case 158 : if (DEBUG) { System.out.println("ForceNoDiet ::="); } //$NON-NLS-1$ consumeForceNoDiet(); break; case 159 : if (DEBUG) { System.out.println("RestoreDiet ::="); } //$NON-NLS-1$ consumeRestoreDiet(); break; case 164 : if (DEBUG) { System.out.println("MethodDeclaration ::= MethodHeader MethodBody"); } //$NON-NLS-1$ // set to true to consume a method with a body consumeMethodDeclaration(true); break; case 165 : if (DEBUG) { System.out.println("AbstractMethodDeclaration ::= MethodHeader SEMICOLON"); } //$NON-NLS-1$ // set to false to consume a method without body consumeMethodDeclaration(false); break; case 166 : if (DEBUG) { System.out.println("MethodHeader ::= MethodHeaderName FormalParameterListopt"); } //$NON-NLS-1$ consumeMethodHeader(); break; case 167 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt TypeParameters Type..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(false); break; case 168 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt Type Identifier LPAREN"); } //$NON-NLS-1$ consumeMethodHeaderName(false); break; case 169 : if (DEBUG) { System.out.println("MethodHeaderRightParen ::= RPAREN"); } //$NON-NLS-1$ consumeMethodHeaderRightParen(); break; case 170 : if (DEBUG) { System.out.println("MethodHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeMethodHeaderExtendedDims(); break; case 171 : if (DEBUG) { System.out.println("MethodHeaderThrowsClause ::= throws ClassTypeList"); } //$NON-NLS-1$ consumeMethodHeaderThrowsClause(); break; case 172 : if (DEBUG) { System.out.println("ConstructorHeader ::= ConstructorHeaderName..."); } //$NON-NLS-1$ consumeConstructorHeader(); break; case 173 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt TypeParameters..."); } //$NON-NLS-1$ consumeConstructorHeaderNameWithTypeParameters(); break; case 174 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt Identifier LPAREN"); } //$NON-NLS-1$ consumeConstructorHeaderName(); break; case 176 : if (DEBUG) { System.out.println("FormalParameterList ::= FormalParameterList COMMA..."); } //$NON-NLS-1$ consumeFormalParameterList(); break; case 177 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFormalParameter(false); break; case 178 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type ELLIPSIS..."); } //$NON-NLS-1$ consumeFormalParameter(true); break; case 180 : if (DEBUG) { System.out.println("ClassTypeList ::= ClassTypeList COMMA ClassTypeElt"); } //$NON-NLS-1$ consumeClassTypeList(); break; case 181 : if (DEBUG) { System.out.println("ClassTypeElt ::= ClassType"); } //$NON-NLS-1$ consumeClassTypeElt(); break; case 182 : if (DEBUG) { System.out.println("MethodBody ::= NestedMethod LBRACE BlockStatementsopt..."); } //$NON-NLS-1$ consumeMethodBody(); break; case 183 : if (DEBUG) { System.out.println("NestedMethod ::="); } //$NON-NLS-1$ consumeNestedMethod(); break; case 184 : if (DEBUG) { System.out.println("StaticInitializer ::= StaticOnly Block"); } //$NON-NLS-1$ consumeStaticInitializer(); break; case 185 : if (DEBUG) { System.out.println("StaticOnly ::= static"); } //$NON-NLS-1$ consumeStaticOnly(); break; case 186 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader MethodBody"); } //$NON-NLS-1$ consumeConstructorDeclaration() ; break; case 187 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader SEMICOLON"); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration() ; break; case 188 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= this LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0, THIS_CALL); break; case 189 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments this"); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,THIS_CALL); break; case 190 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= super LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0,SUPER_CALL); break; case 191 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,SUPER_CALL); break; case 192 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT super..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, SUPER_CALL); break; case 193 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, SUPER_CALL); break; case 194 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT super LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, SUPER_CALL); break; case 195 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, SUPER_CALL); break; case 196 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT this..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, THIS_CALL); break; case 197 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, THIS_CALL); break; case 198 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT this LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, THIS_CALL); break; case 199 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, THIS_CALL); break; case 200 : if (DEBUG) { System.out.println("InterfaceDeclaration ::= InterfaceHeader InterfaceBody"); } //$NON-NLS-1$ consumeInterfaceDeclaration(); break; case 201 : if (DEBUG) { System.out.println("InterfaceHeader ::= InterfaceHeaderName..."); } //$NON-NLS-1$ consumeInterfaceHeader(); break; case 202 : if (DEBUG) { System.out.println("InterfaceHeaderName ::= InterfaceHeaderName1..."); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 204 : if (DEBUG) { System.out.println("InterfaceHeaderName1 ::= Modifiersopt interface..."); } //$NON-NLS-1$ consumeInterfaceHeaderName1(); break; case 205 : if (DEBUG) { System.out.println("InterfaceHeaderExtends ::= extends InterfaceTypeList"); } //$NON-NLS-1$ consumeInterfaceHeaderExtends(); break; case 208 : if (DEBUG) { System.out.println("InterfaceMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarations(); break; case 209 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclaration(); break; case 211 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= MethodHeader MethodBody"); } //$NON-NLS-1$ consumeInvalidMethodDeclaration(); break; case 212 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration(true); break; case 213 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration(false); break; case 221 : if (DEBUG) { System.out.println("PushLeftBrace ::="); } //$NON-NLS-1$ consumePushLeftBrace(); break; case 222 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace ,opt RBRACE"); } //$NON-NLS-1$ consumeEmptyArrayInitializer(); break; case 223 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 224 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 226 : if (DEBUG) { System.out.println("VariableInitializers ::= VariableInitializers COMMA..."); } //$NON-NLS-1$ consumeVariableInitializers(); break; case 227 : if (DEBUG) { System.out.println("Block ::= OpenBlock LBRACE BlockStatementsopt RBRACE"); } //$NON-NLS-1$ consumeBlock(); break; case 228 : if (DEBUG) { System.out.println("OpenBlock ::="); } //$NON-NLS-1$ consumeOpenBlock() ; break; case 230 : if (DEBUG) { System.out.println("BlockStatements ::= BlockStatements BlockStatement"); } //$NON-NLS-1$ consumeBlockStatements() ; break; case 234 : if (DEBUG) { System.out.println("BlockStatement ::= InterfaceDeclaration"); } //$NON-NLS-1$ consumeInvalidInterfaceDeclaration(); break; case 235 : if (DEBUG) { System.out.println("BlockStatement ::= AnnotationTypeDeclaration"); } //$NON-NLS-1$ consumeInvalidAnnotationTypeDeclaration(); break; case 236 : if (DEBUG) { System.out.println("BlockStatement ::= EnumDeclaration"); } //$NON-NLS-1$ consumeInvalidEnumDeclaration(); break; case 237 : if (DEBUG) { System.out.println("LocalVariableDeclarationStatement ::=..."); } //$NON-NLS-1$ consumeLocalVariableDeclarationStatement(); break; case 238 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Type PushModifiers..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 239 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Modifiers Type..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 240 : if (DEBUG) { System.out.println("PushModifiers ::="); } //$NON-NLS-1$ consumePushModifiers(); break; case 241 : if (DEBUG) { System.out.println("PushModifiersForHeader ::="); } //$NON-NLS-1$ consumePushModifiersForHeader(); break; case 242 : if (DEBUG) { System.out.println("PushRealModifiers ::="); } //$NON-NLS-1$ consumePushRealModifiers(); break; case 268 : if (DEBUG) { System.out.println("EmptyStatement ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyStatement(); break; case 269 : if (DEBUG) { System.out.println("LabeledStatement ::= Label COLON Statement"); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 270 : if (DEBUG) { System.out.println("LabeledStatementNoShortIf ::= Label COLON..."); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 271 : if (DEBUG) { System.out.println("Label ::= Identifier"); } //$NON-NLS-1$ consumeLabel() ; break; case 272 : if (DEBUG) { System.out.println("ExpressionStatement ::= StatementExpression SEMICOLON"); } //$NON-NLS-1$ consumeExpressionStatement(); break; case 281 : if (DEBUG) { System.out.println("IfThenStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfNoElse(); break; case 282 : if (DEBUG) { System.out.println("IfThenElseStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 283 : if (DEBUG) { System.out.println("IfThenElseStatementNoShortIf ::= if LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 284 : if (DEBUG) { System.out.println("SwitchStatement ::= switch LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementSwitch() ; break; case 285 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE RBRACE"); } //$NON-NLS-1$ consumeEmptySwitchBlock() ; break; case 288 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlock() ; break; case 290 : if (DEBUG) { System.out.println("SwitchBlockStatements ::= SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlockStatements() ; break; case 291 : if (DEBUG) { System.out.println("SwitchBlockStatement ::= SwitchLabels BlockStatements"); } //$NON-NLS-1$ consumeSwitchBlockStatement() ; break; case 293 : if (DEBUG) { System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); } //$NON-NLS-1$ consumeSwitchLabels() ; break; case 294 : if (DEBUG) { System.out.println("SwitchLabel ::= case ConstantExpression COLON"); } //$NON-NLS-1$ consumeCaseLabel(); break; case 295 : if (DEBUG) { System.out.println("SwitchLabel ::= default COLON"); } //$NON-NLS-1$ consumeDefaultLabel(); break; case 296 : if (DEBUG) { System.out.println("WhileStatement ::= while LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 297 : if (DEBUG) { System.out.println("WhileStatementNoShortIf ::= while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 298 : if (DEBUG) { System.out.println("DoStatement ::= do Statement while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementDo() ; break; case 299 : if (DEBUG) { System.out.println("ForStatement ::= for LPAREN ForInitopt SEMICOLON..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 300 : if (DEBUG) { System.out.println("ForStatementNoShortIf ::= for LPAREN ForInitopt..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 301 : if (DEBUG) { System.out.println("ForInit ::= StatementExpressionList"); } //$NON-NLS-1$ consumeForInit() ; break; case 305 : if (DEBUG) { System.out.println("StatementExpressionList ::= StatementExpressionList..."); } //$NON-NLS-1$ consumeStatementExpressionList() ; break; case 306 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression SEMICOLON"); } //$NON-NLS-1$ consumeSimpleAssertStatement() ; break; case 307 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression COLON Expression"); } //$NON-NLS-1$ consumeAssertStatement() ; break; case 308 : if (DEBUG) { System.out.println("BreakStatement ::= break SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreak() ; break; case 309 : if (DEBUG) { System.out.println("BreakStatement ::= break Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreakWithLabel() ; break; case 310 : if (DEBUG) { System.out.println("ContinueStatement ::= continue SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinue() ; break; case 311 : if (DEBUG) { System.out.println("ContinueStatement ::= continue Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinueWithLabel() ; break; case 312 : if (DEBUG) { System.out.println("ReturnStatement ::= return Expressionopt SEMICOLON"); } //$NON-NLS-1$ consumeStatementReturn() ; break; case 313 : if (DEBUG) { System.out.println("ThrowStatement ::= throw Expression SEMICOLON"); } //$NON-NLS-1$ consumeStatementThrow(); break; case 314 : if (DEBUG) { System.out.println("SynchronizedStatement ::= OnlySynchronized LPAREN..."); } //$NON-NLS-1$ consumeStatementSynchronized(); break; case 315 : if (DEBUG) { System.out.println("OnlySynchronized ::= synchronized"); } //$NON-NLS-1$ consumeOnlySynchronized(); break; case 316 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catches"); } //$NON-NLS-1$ consumeStatementTry(false); break; case 317 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catchesopt Finally"); } //$NON-NLS-1$ consumeStatementTry(true); break; case 319 : if (DEBUG) { System.out.println("ExitTryBlock ::="); } //$NON-NLS-1$ consumeExitTryBlock(); break; case 321 : if (DEBUG) { System.out.println("Catches ::= Catches CatchClause"); } //$NON-NLS-1$ consumeCatches(); break; case 322 : if (DEBUG) { System.out.println("CatchClause ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeStatementCatch() ; break; case 324 : if (DEBUG) { System.out.println("PushLPAREN ::= LPAREN"); } //$NON-NLS-1$ consumeLeftParen(); break; case 325 : if (DEBUG) { System.out.println("PushRPAREN ::= RPAREN"); } //$NON-NLS-1$ consumeRightParen(); break; case 330 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayThis(); break; case 331 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Expression_NotName..."); } //$NON-NLS-1$ consumePrimaryNoNewArray(); break; case 332 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Name PushRPAREN"); } //$NON-NLS-1$ consumePrimaryNoNewArrayWithName(); break; case 335 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameThis(); break; case 336 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT super"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameSuper(); break; case 337 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayName(); break; case 338 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayArrayType(); break; case 339 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveArrayType(); break; case 340 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveType(); break; case 343 : if (DEBUG) { System.out.println("AllocationHeader ::= new ClassType LPAREN..."); } //$NON-NLS-1$ consumeAllocationHeader(); break; case 344 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionWithTypeArguments(); break; case 345 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new ClassType LPAREN"); } //$NON-NLS-1$ consumeClassInstanceCreationExpression(); break; case 346 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 347 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 348 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 349 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 350 : if (DEBUG) { System.out.println("ClassInstanceCreationExpressionName ::= Name DOT"); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionName() ; break; case 351 : if (DEBUG) { System.out.println("ClassBodyopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 353 : if (DEBUG) { System.out.println("EnterAnonymousClassBody ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBody(); break; case 355 : if (DEBUG) { System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); } //$NON-NLS-1$ consumeArgumentList(); break; case 356 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new PrimitiveType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 357 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new ClassOrInterfaceType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 358 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 359 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new PrimitiveType"); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 360 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 361 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 363 : if (DEBUG) { System.out.println("DimWithOrWithOutExprs ::= DimWithOrWithOutExprs..."); } //$NON-NLS-1$ consumeDimWithOrWithOutExprs(); break; case 365 : if (DEBUG) { System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeDimWithOrWithOutExpr(); break; case 366 : if (DEBUG) { System.out.println("Dims ::= DimsLoop"); } //$NON-NLS-1$ consumeDims(); break; case 369 : if (DEBUG) { System.out.println("OneDimLoop ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeOneDimLoop(); break; case 370 : if (DEBUG) { System.out.println("FieldAccess ::= Primary DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(false); break; case 371 : if (DEBUG) { System.out.println("FieldAccess ::= super DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(true); break; case 372 : if (DEBUG) { System.out.println("MethodInvocation ::= Name LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeMethodInvocationName(); break; case 373 : if (DEBUG) { System.out.println("MethodInvocation ::= Name DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationNameWithTypeArguments(); break; case 374 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationPrimaryWithTypeArguments(); break; case 375 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationPrimary(); break; case 376 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationSuperWithTypeArguments(); break; case 377 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationSuper(); break; case 378 : if (DEBUG) { System.out.println("ArrayAccess ::= Name LBRACKET Expression RBRACKET"); } //$NON-NLS-1$ consumeArrayAccess(true); break; case 379 : if (DEBUG) { System.out.println("ArrayAccess ::= PrimaryNoNewArray LBRACKET Expression..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 380 : if (DEBUG) { System.out.println("ArrayAccess ::= ArrayCreationWithArrayInitializer..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 382 : if (DEBUG) { System.out.println("PostfixExpression ::= Name"); } //$NON-NLS-1$ consumePostfixExpression(); break; case 385 : if (DEBUG) { System.out.println("PostIncrementExpression ::= PostfixExpression PLUS_PLUS"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,true); break; case 386 : if (DEBUG) { System.out.println("PostDecrementExpression ::= PostfixExpression..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,true); break; case 387 : if (DEBUG) { System.out.println("PushPosition ::="); } //$NON-NLS-1$ consumePushPosition(); break; case 390 : if (DEBUG) { System.out.println("UnaryExpression ::= PLUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 391 : if (DEBUG) { System.out.println("UnaryExpression ::= MINUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 393 : if (DEBUG) { System.out.println("PreIncrementExpression ::= PLUS_PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,false); break; case 394 : if (DEBUG) { System.out.println("PreDecrementExpression ::= MINUS_MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,false); break; case 396 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= TWIDDLE PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 397 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= NOT PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 399 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN PrimitiveType Dimsopt..."); } //$NON-NLS-1$ consumeCastExpressionWithPrimitiveType(); break; case 400 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithGenericsArray(); break; case 401 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithQualifiedGenericsArray(); break; case 402 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionLL1(); break; case 403 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name Dims PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionWithNameArray(); break; case 404 : if (DEBUG) { System.out.println("OnlyTypeArgumentsForCastExpression ::= OnlyTypeArguments"); } //$NON-NLS-1$ consumeOnlyTypeArgumentsForCastExpression(); break; case 405 : if (DEBUG) { System.out.println("InsideCastExpression ::="); } //$NON-NLS-1$ consumeInsideCastExpression(); break; case 406 : if (DEBUG) { System.out.println("InsideCastExpressionLL1 ::="); } //$NON-NLS-1$ consumeInsideCastExpressionLL1(); break; case 407 : if (DEBUG) { System.out.println("InsideCastExpressionWithQualifiedGenerics ::="); } //$NON-NLS-1$ consumeInsideCastExpressionWithQualifiedGenerics(); break; case 409 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 410 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 411 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 413 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression PLUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 414 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression MINUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 416 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 417 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 418 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 420 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 421 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression GREATER..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 422 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS_EQUAL"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 423 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 425 : if (DEBUG) { System.out.println("InstanceofExpression ::= InstanceofExpression instanceof"); } //$NON-NLS-1$ consumeInstanceOfExpression(); break; case 427 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 428 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 430 : if (DEBUG) { System.out.println("AndExpression ::= AndExpression AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 432 : if (DEBUG) { System.out.println("ExclusiveOrExpression ::= ExclusiveOrExpression XOR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 434 : if (DEBUG) { System.out.println("InclusiveOrExpression ::= InclusiveOrExpression OR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 436 : if (DEBUG) { System.out.println("ConditionalAndExpression ::= ConditionalAndExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 438 : if (DEBUG) { System.out.println("ConditionalOrExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 440 : if (DEBUG) { System.out.println("ConditionalExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 443 : if (DEBUG) { System.out.println("Assignment ::= PostfixExpression AssignmentOperator..."); } //$NON-NLS-1$ consumeAssignment(); break; case 445 : if (DEBUG) { System.out.println("Assignment ::= InvalidArrayInitializerAssignement"); } //$NON-NLS-1$ ignoreExpressionAssignment(); break; case 446 : if (DEBUG) { System.out.println("AssignmentOperator ::= EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(EQUAL); break; case 447 : if (DEBUG) { System.out.println("AssignmentOperator ::= MULTIPLY_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MULTIPLY); break; case 448 : if (DEBUG) { System.out.println("AssignmentOperator ::= DIVIDE_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(DIVIDE); break; case 449 : if (DEBUG) { System.out.println("AssignmentOperator ::= REMAINDER_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(REMAINDER); break; case 450 : if (DEBUG) { System.out.println("AssignmentOperator ::= PLUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(PLUS); break; case 451 : if (DEBUG) { System.out.println("AssignmentOperator ::= MINUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MINUS); break; case 452 : if (DEBUG) { System.out.println("AssignmentOperator ::= LEFT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(LEFT_SHIFT); break; case 453 : if (DEBUG) { System.out.println("AssignmentOperator ::= RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(RIGHT_SHIFT); break; case 454 : if (DEBUG) { System.out.println("AssignmentOperator ::= UNSIGNED_RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(UNSIGNED_RIGHT_SHIFT); break; case 455 : if (DEBUG) { System.out.println("AssignmentOperator ::= AND_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(AND); break; case 456 : if (DEBUG) { System.out.println("AssignmentOperator ::= XOR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(XOR); break; case 457 : if (DEBUG) { System.out.println("AssignmentOperator ::= OR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(OR); break; case 461 : if (DEBUG) { System.out.println("Expressionopt ::="); } //$NON-NLS-1$ consumeEmptyExpression(); break; case 466 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyClassBodyDeclarationsopt(); break; case 467 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeClassBodyDeclarationsopt(); break; case 468 : if (DEBUG) { System.out.println("Modifiersopt ::="); } //$NON-NLS-1$ consumeDefaultModifiers(); break; case 469 : if (DEBUG) { System.out.println("Modifiersopt ::= Modifiers"); } //$NON-NLS-1$ consumeModifiers(); break; case 470 : if (DEBUG) { System.out.println("BlockStatementsopt ::="); } //$NON-NLS-1$ consumeEmptyBlockStatementsopt(); break; case 472 : if (DEBUG) { System.out.println("Dimsopt ::="); } //$NON-NLS-1$ consumeEmptyDimsopt(); break; case 474 : if (DEBUG) { System.out.println("ArgumentListopt ::="); } //$NON-NLS-1$ consumeEmptyArgumentListopt(); break; case 478 : if (DEBUG) { System.out.println("FormalParameterListopt ::="); } //$NON-NLS-1$ consumeFormalParameterListopt(); break; case 482 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclarationsopt(); break; case 483 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarationsopt(); break; case 484 : if (DEBUG) { System.out.println("NestedType ::="); } //$NON-NLS-1$ consumeNestedType(); break; case 485 : if (DEBUG) { System.out.println("ForInitopt ::="); } //$NON-NLS-1$ consumeEmptyForInitopt(); break; case 487 : if (DEBUG) { System.out.println("ForUpdateopt ::="); } //$NON-NLS-1$ consumeEmptyForUpdateopt(); break; case 491 : if (DEBUG) { System.out.println("Catchesopt ::="); } //$NON-NLS-1$ consumeEmptyCatchesopt(); break; case 493 : if (DEBUG) { System.out.println("EnumDeclaration ::= EnumHeader EnumBody"); } //$NON-NLS-1$ consumeEnumDeclaration(); break; case 494 : if (DEBUG) { System.out.println("EnumHeader ::= EnumHeaderName ClassHeaderImplementsopt"); } //$NON-NLS-1$ consumeEnumHeader(); break; case 495 : if (DEBUG) { System.out.println("EnumHeaderName ::= Modifiersopt enum Identifier"); } //$NON-NLS-1$ consumeEnumHeaderName(); break; case 496 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumBodyDeclarationsopt RBRACE"); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 497 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE COMMA EnumBodyDeclarationsopt..."); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 498 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants COMMA..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 499 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 501 : if (DEBUG) { System.out.println("EnumConstants ::= EnumConstants COMMA EnumConstant"); } //$NON-NLS-1$ consumeEnumConstants(); break; case 502 : if (DEBUG) { System.out.println("EnumConstantHeaderName ::= Modifiersopt Identifier"); } //$NON-NLS-1$ consumeEnumConstantHeaderName(); break; case 503 : if (DEBUG) { System.out.println("EnumConstantHeader ::= EnumConstantHeaderName..."); } //$NON-NLS-1$ consumeEnumConstantHeader(); break; case 504 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader ForceNoDiet..."); } //$NON-NLS-1$ consumeEnumConstantWithClassBody(); break; case 505 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader"); } //$NON-NLS-1$ consumeEnumConstantNoClassBody(); break; case 506 : if (DEBUG) { System.out.println("Arguments ::= LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeArguments(); break; case 507 : if (DEBUG) { System.out.println("Argumentsopt ::="); } //$NON-NLS-1$ consumeEmptyArguments(); break; case 509 : if (DEBUG) { System.out.println("EnumDeclarations ::= SEMICOLON ClassBodyDeclarationsopt"); } //$NON-NLS-1$ consumeEnumDeclarations(); break; case 510 : if (DEBUG) { System.out.println("EnumBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyEnumDeclarations(); break; case 512 : if (DEBUG) { System.out.println("EnhancedForStatement ::= EnhancedForStatementHeader..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 513 : if (DEBUG) { System.out.println("EnhancedForStatementNoShortIf ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 514 : if (DEBUG) { System.out.println("EnhancedForStatementHeaderInit ::= for LPAREN Type..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeaderInit(false); break; case 515 : if (DEBUG) { System.out.println("EnhancedForStatementHeaderInit ::= for LPAREN Modifiers"); } //$NON-NLS-1$ consumeEnhancedForStatementHeaderInit(true); break; case 516 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(); break; case 517 : if (DEBUG) { System.out.println("SingleStaticImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 518 : if (DEBUG) { System.out.println("SingleStaticImportDeclarationName ::= import static Name"); } //$NON-NLS-1$ consumeSingleStaticImportDeclarationName(); break; case 519 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 520 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclarationName ::= import static..."); } //$NON-NLS-1$ consumeStaticImportOnDemandDeclarationName(); break; case 521 : if (DEBUG) { System.out.println("TypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeTypeArguments(); break; case 522 : if (DEBUG) { System.out.println("OnlyTypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeOnlyTypeArguments(); break; case 524 : if (DEBUG) { System.out.println("TypeArgumentList1 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList1(); break; case 526 : if (DEBUG) { System.out.println("TypeArgumentList ::= TypeArgumentList COMMA TypeArgument"); } //$NON-NLS-1$ consumeTypeArgumentList(); break; case 527 : if (DEBUG) { System.out.println("TypeArgument ::= ReferenceType"); } //$NON-NLS-1$ consumeTypeArgument(); break; case 531 : if (DEBUG) { System.out.println("ReferenceType1 ::= ReferenceType GREATER"); } //$NON-NLS-1$ consumeReferenceType1(); break; case 532 : if (DEBUG) { System.out.println("ReferenceType1 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType1(); break; case 534 : if (DEBUG) { System.out.println("TypeArgumentList2 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList2(); break; case 537 : if (DEBUG) { System.out.println("ReferenceType2 ::= ReferenceType RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType2(); break; case 538 : if (DEBUG) { System.out.println("ReferenceType2 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType2(); break; case 540 : if (DEBUG) { System.out.println("TypeArgumentList3 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList3(); break; case 543 : if (DEBUG) { System.out.println("ReferenceType3 ::= ReferenceType UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType3(); break; case 544 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION"); } //$NON-NLS-1$ consumeWildcard(); break; case 545 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION WildcardBounds"); } //$NON-NLS-1$ consumeWildcardWithBounds(); break; case 546 : if (DEBUG) { System.out.println("WildcardBounds ::= extends ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsExtends(); break; case 547 : if (DEBUG) { System.out.println("WildcardBounds ::= super ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsSuper(); break; case 548 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION GREATER"); } //$NON-NLS-1$ consumeWildcard1(); break; case 549 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION WildcardBounds1"); } //$NON-NLS-1$ consumeWildcard1WithBounds(); break; case 550 : if (DEBUG) { System.out.println("WildcardBounds1 ::= extends ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Extends(); break; case 551 : if (DEBUG) { System.out.println("WildcardBounds1 ::= super ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Super(); break; case 552 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard2(); break; case 553 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION WildcardBounds2"); } //$NON-NLS-1$ consumeWildcard2WithBounds(); break; case 554 : if (DEBUG) { System.out.println("WildcardBounds2 ::= extends ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Extends(); break; case 555 : if (DEBUG) { System.out.println("WildcardBounds2 ::= super ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Super(); break; case 556 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard3(); break; case 557 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION WildcardBounds3"); } //$NON-NLS-1$ consumeWildcard3WithBounds(); break; case 558 : if (DEBUG) { System.out.println("WildcardBounds3 ::= extends ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Extends(); break; case 559 : if (DEBUG) { System.out.println("WildcardBounds3 ::= super ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Super(); break; case 560 : if (DEBUG) { System.out.println("TypeParameterHeader ::= Identifier"); } //$NON-NLS-1$ consumeTypeParameterHeader(); break; case 561 : if (DEBUG) { System.out.println("TypeParameters ::= LESS TypeParameterList1"); } //$NON-NLS-1$ consumeTypeParameters(); break; case 563 : if (DEBUG) { System.out.println("TypeParameterList ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList(); break; case 565 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtends(); break; case 566 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtendsAndBounds(); break; case 568 : if (DEBUG) { System.out.println("AdditionalBoundList ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList(); break; case 569 : if (DEBUG) { System.out.println("AdditionalBound ::= AND ReferenceType"); } //$NON-NLS-1$ consumeAdditionalBound(); break; case 571 : if (DEBUG) { System.out.println("TypeParameterList1 ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList1(); break; case 572 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader GREATER"); } //$NON-NLS-1$ consumeTypeParameter1(); break; case 573 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtends(); break; case 574 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtendsAndBounds(); break; case 576 : if (DEBUG) { System.out.println("AdditionalBoundList1 ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList1(); break; case 577 : if (DEBUG) { System.out.println("AdditionalBound1 ::= AND ReferenceType1"); } //$NON-NLS-1$ consumeAdditionalBound1(); break; case 583 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 584 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 587 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= TWIDDLE..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 588 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= NOT PushPosition"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 591 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 592 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name MULTIPLY..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MULTIPLY); break; case 593 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 594 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name DIVIDE..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.DIVIDE); break; case 595 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 596 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name REMAINDER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.REMAINDER); break; case 598 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 599 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name PLUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.PLUS); break; case 600 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 601 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name MINUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MINUS); break; case 603 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 604 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LEFT_SHIFT); break; case 605 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 606 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.RIGHT_SHIFT); break; case 607 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 608 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name UNSIGNED_RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 610 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 611 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS); break; case 612 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 613 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER); break; case 614 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 615 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS_EQUAL); break; case 616 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 617 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER_EQUAL); break; case 619 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::= Name instanceof..."); } //$NON-NLS-1$ consumeInstanceOfExpressionWithName(); break; case 620 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::=..."); } //$NON-NLS-1$ consumeInstanceOfExpression(); break; case 622 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 623 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.EQUAL_EQUAL); break; case 624 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 625 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.NOT_EQUAL); break; case 627 : if (DEBUG) { System.out.println("AndExpression_NotName ::= AndExpression_NotName AND..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 628 : if (DEBUG) { System.out.println("AndExpression_NotName ::= Name AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND); break; case 630 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 631 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::= Name XOR AndExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.XOR); break; case 633 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 634 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::= Name OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR); break; case 636 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 637 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::= Name AND_AND..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND_AND); break; case 639 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 640 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::= Name OR_OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR_OR); break; case 642 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 643 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::= Name QUESTION..."); } //$NON-NLS-1$ consumeConditionalExpressionWithName(OperatorIds.QUESTIONCOLON) ; break; case 647 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeaderName ::= Modifiers AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeaderName() ; break; case 648 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeaderName ::= AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeaderName() ; break; case 649 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 650 : if (DEBUG) { System.out.println("AnnotationTypeDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclaration() ; break; case 652 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyAnnotationTypeMemberDeclarationsopt() ; break; case 653 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarationsopt() ; break; case 655 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarations() ; break; case 656 : if (DEBUG) { System.out.println("AnnotationMethodHeaderName ::= Modifiersopt..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(true); break; case 657 : if (DEBUG) { System.out.println("AnnotationMethodHeaderName ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeMethodHeaderName(true); break; case 658 : if (DEBUG) { System.out.println("AnnotationMethodHeaderDefaultValueopt ::="); } //$NON-NLS-1$ consumeEmptyMethodHeaderDefaultValue() ; break; case 659 : if (DEBUG) { System.out.println("AnnotationMethodHeaderDefaultValueopt ::= DefaultValue"); } //$NON-NLS-1$ consumeMethodHeaderDefaultValue(); break; case 660 : if (DEBUG) { System.out.println("AnnotationMethodHeader ::= AnnotationMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; case 661 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclaration() ; break; case 669 : if (DEBUG) { System.out.println("AnnotationName ::= AT Name"); } //$NON-NLS-1$ consumeAnnotationName() ; break; case 670 : if (DEBUG) { System.out.println("NormalAnnotation ::= AnnotationName LPAREN..."); } //$NON-NLS-1$ consumeNormalAnnotation() ; break; case 671 : if (DEBUG) { System.out.println("MemberValuePairsopt ::="); } //$NON-NLS-1$ consumeEmptyMemberValuePairsopt() ; break; case 674 : if (DEBUG) { System.out.println("MemberValuePairs ::= MemberValuePairs COMMA..."); } //$NON-NLS-1$ consumeMemberValuePairs() ; break; case 675 : if (DEBUG) { System.out.println("MemberValuePair ::= SimpleName EQUAL EnterMemberValue..."); } //$NON-NLS-1$ consumeMemberValuePair() ; break; case 676 : if (DEBUG) { System.out.println("EnterMemberValue ::="); } //$NON-NLS-1$ consumeEnterMemberValue() ; break; case 677 : if (DEBUG) { System.out.println("ExitMemberValue ::="); } //$NON-NLS-1$ consumeExitMemberValue() ; break; case 679 : if (DEBUG) { System.out.println("MemberValue ::= Name"); } //$NON-NLS-1$ consumeMemberValueAsName() ; break; case 682 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 683 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 684 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 685 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 687 : if (DEBUG) { System.out.println("MemberValues ::= MemberValues COMMA MemberValue"); } //$NON-NLS-1$ consumeMemberValues() ; break; case 688 : if (DEBUG) { System.out.println("MarkerAnnotation ::= AnnotationName"); } //$NON-NLS-1$ consumeMarkerAnnotation() ; break; case 689 : if (DEBUG) { System.out.println("SingleMemberAnnotation ::= AnnotationName LPAREN..."); } //$NON-NLS-1$ consumeSingleMemberAnnotation() ; break; case 690 : if (DEBUG) { System.out.println("RecoveryMethodHeaderName ::= Modifiersopt TypeParameters"); } //$NON-NLS-1$ consumeRecoveryMethodHeaderNameWithTypeParameters(); break; case 691 : if (DEBUG) { System.out.println("RecoveryMethodHeaderName ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeRecoveryMethodHeaderName(); break; case 692 : if (DEBUG) { System.out.println("RecoveryMethodHeader ::= RecoveryMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; case 693 : if (DEBUG) { System.out.println("RecoveryMethodHeader ::= RecoveryMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; }}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/530677eaedb480550fa104a8b4977fa836eba025/Parser.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 7865, 2175, 12, 474, 1328, 13, 288, 225, 1620, 261, 1328, 262, 288, 565, 648, 12899, 294, 309, 261, 9394, 13, 288, 2332, 18, 659, 18, 8222, 2932, 559, 493, 33, 14488, 559, 8863, 289, 225, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 565, 7865, 9840, 559, 5621, 26924, 202, 8820, 31, 377, 648, 21193, 294, 309, 261, 9394, 13, 288, 2332, 18, 659, 18, 8222, 2932, 2404, 559, 493, 33, 1659, 1162, 1358, 559, 8863, 289, 225, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 565, 7865, 2404, 559, 5621, 565, 1082, 202, 8820, 31, 377, 648, 17495, 294, 309, 261, 9394, 13, 288, 2332, 18, 659, 18, 8222, 2932, 797, 1162, 1358, 493, 33, 1770, 8863, 289, 225, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 565, 7865, 797, 1162, 24730, 5621, 565, 1082, 202, 8820, 31, 377, 648, 9934, 294, 309, 261, 9394, 13, 288, 2332, 18, 659, 18, 8222, 2932, 797, 1162, 1358, 493, 33, 7928, 559, 15772, 1770, 8863, 289, 225, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 565, 7865, 797, 1162, 1358, 5621, 565, 1082, 202, 8820, 31, 377, 648, 17160, 294, 309, 261, 9394, 13, 288, 2332, 18, 659, 18, 8222, 2932, 30982, 493, 33, 1659, 1162, 1358, 1412, 4628, 8863, 289, 225, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 565, 7865, 30982, 5621, 565, 1082, 202, 8820, 31, 377, 648, 6437, 294, 309, 261, 9394, 13, 288, 2332, 18, 659, 18, 8222, 2932, 27182, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 7865, 2175, 12, 474, 1328, 13, 288, 225, 1620, 261, 1328, 262, 288, 565, 648, 12899, 294, 309, 261, 9394, 13, 288, 2332, 18, 659, 18, 8222, 2932, 559, 493, 33, 14488, 559, 8863, 289, 225, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 565, 7865, 9840, 559, 5621, 26924, 202, 8820, 31, 377, 648, 21193, 294, 309, 261, 9394, 13, 288, 2332, 18, 659, 18, 8222, 2932, 2404, 559, 493, 33, 1659, 1162, 1358, 559, 8863, 289, 225, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 565, 7865, 2404, 559, 5621, 565, 1082, 202, 8820, 31, 377, 648, 17495, 294, 309, 261, 9394, 13, 288, 2332, 18, 659, 18, 8222, 2932, 797, 1162, 1358, 493, 33, 2 ]
} else if (XMLContentAssistUtilities.isJSPOpenDelimiter(fnDelim)) {
} else if (XMLContentAssistUtilities.isJSPOpenDelimiter(fnDelim)) {
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int documentPosition) { fTemplateContexts.clear(); IStructuredDocumentRegion sdRegion = ContentAssistUtils.getStructuredDocumentRegion((StructuredTextViewer) viewer, documentPosition); fViewer = viewer; ICompletionProposal[] jspResults = EMPTY_PROPOSAL_SET; ICompletionProposal[] embeddedResults = EMPTY_PROPOSAL_SET; // check the actual partition type String partitionType = getPartitionType((StructuredTextViewer) viewer, documentPosition); IStructuredDocument structuredDocument = (IStructuredDocument)viewer.getDocument(); IStructuredDocumentRegion fn = structuredDocument.getRegionAtCharacterOffset(documentPosition); // //////////////////////////////////////////////////////////////////////////// // ANOTHER WORKAROUND UNTIL PARTITIONING TAKES CARE OF THIS // check for xml-jsp tags... if (partitionType == IJSPPartitions.JSP_DIRECTIVE && fn != null) { IStructuredDocumentRegion possibleXMLJSP = ((fn.getType() == DOMRegionContext.XML_CONTENT) && fn.getPrevious() != null) ? fn.getPrevious() : fn; ITextRegionList regions = possibleXMLJSP.getRegions(); if (regions.size() > 1) { // check bounds cases ITextRegion xmlOpenOrClose = regions.get(0); if (xmlOpenOrClose.getType() == DOMRegionContext.XML_TAG_OPEN && documentPosition == possibleXMLJSP.getStartOffset()) { // do regular jsp content assist } else if (xmlOpenOrClose.getType() == DOMRegionContext.XML_END_TAG_OPEN && documentPosition > possibleXMLJSP.getStartOffset()) { // do regular jsp content assist } else { // possible xml-jsp ITextRegion nameRegion = regions.get(1); String name = possibleXMLJSP.getText(nameRegion); if (name.equals("jsp:scriptlet") || name.equals("jsp:expression") || name.equals("jsp:declaration")) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return getJSPJavaCompletionProposals(viewer, documentPosition); } } } } // //////////////////////////////////////////////////////////////////////////// // ** THIS IS A TEMP FIX UNTIL PARTITIONING TAKES CARE OF THIS... // check for XML-JSP in a <script> region if (partitionType == IJSPPartitions.JSP_CONTENT_JAVASCRIPT || partitionType == IHTMLPartitions.SCRIPT) { // fn should be block text IStructuredDocumentRegion decodedSDRegion = decodeScriptBlock(fn.getFullText()); // System.out.println("decoded > " + // blockOfText.substring(decodedSDRegion.getStartOffset(), // decodedSDRegion.getEndOffset())); if (decodedSDRegion != null) { IStructuredDocumentRegion sdr = decodedSDRegion; while (sdr != null) { // System.out.println("sdr " + sdr.getType()); // System.out.println("sdr > " + // blockOfText.substring(sdr.getStartOffset(), // sdr.getEndOffset())); if (sdr.getType() == DOMJSPRegionContexts.JSP_CONTENT) { if (documentPosition >= fn.getStartOffset() + sdr.getStartOffset() && documentPosition <= fn.getStartOffset() + sdr.getEndOffset()) { return getJSPJavaCompletionProposals(viewer, documentPosition); } } else if (sdr.getType() == DOMRegionContext.XML_TAG_NAME) { if (documentPosition > fn.getStartOffset() + sdr.getStartOffset() && documentPosition < fn.getStartOffset() + sdr.getEndOffset()) { return EMPTY_PROPOSAL_SET; } else if (documentPosition == fn.getStartOffset() + sdr.getEndOffset() && sdr.getNext() != null && sdr.getNext().getType() == DOMJSPRegionContexts.JSP_CONTENT) { // the end of an open tag <script> // <jsp:scriptlet>| blah </jsp:scriptlet> return getJSPJavaCompletionProposals(viewer, documentPosition); } else if (documentPosition == fn.getStartOffset() + sdr.getStartOffset() && sdr.getPrevious() != null && sdr.getPrevious().getType() == DOMRegionContext.XML_TAG_NAME) { return getJSPJavaCompletionProposals(viewer, documentPosition); } } sdr = sdr.getNext(); } } } // ///////////////////////////////////////////////////////////////////////// // check special JSP delimiter cases if (fn != null && partitionType == IJSPPartitions.JSP_CONTENT_DELIMITER) { IStructuredDocumentRegion fnDelim = fn; // if it's a nested JSP region, need to get the correct // StructuredDocumentRegion // not sure why this check was there... // if (fnDelim.getType() == XMLRegionContext.BLOCK_TEXT) { Iterator blockRegions = fnDelim.getRegions().iterator(); ITextRegion temp = null; ITextRegionContainer trc; while (blockRegions.hasNext()) { temp = (ITextRegion) blockRegions.next(); // we hit a nested if (temp instanceof ITextRegionContainer) { trc = (ITextRegionContainer) temp; // it's in this region if (documentPosition >= trc.getStartOffset() && documentPosition < trc.getEndOffset()) { Iterator nestedJSPRegions = trc.getRegions().iterator(); while (nestedJSPRegions.hasNext()) { temp = (ITextRegion) nestedJSPRegions.next(); if (XMLContentAssistUtilities.isJSPOpenDelimiter(temp.getType()) && documentPosition == trc.getStartOffset(temp)) { // HTML content assist // we actually want content assist for the // previous type of region, // well get those proposals from the embedded // adapter if (documentPosition > 0) { partitionType = getPartitionType((StructuredTextViewer) viewer, documentPosition - 1); break; } } else if (XMLContentAssistUtilities.isJSPCloseDelimiter(temp.getType()) && documentPosition == trc.getStartOffset(temp)) { // JSP content assist return getJSPJavaCompletionProposals(viewer, documentPosition); } } } } // } } // take care of XML-JSP delimter cases if (XMLContentAssistUtilities.isXMLJSPDelimiter(fnDelim)) { // since it's a delimiter, we know it's a ITextRegionContainer ITextRegion firstRegion = fnDelim.getRegions().get(0); if (fnDelim.getStartOffset() == documentPosition && (firstRegion.getType() == DOMRegionContext.XML_TAG_OPEN)) { // |<jsp:scriptlet> </jsp:scriptlet> // (pa) commented out so that we get regular behavior JSP // macros etc... // return getHTMLCompletionProposals(viewer, // documentPosition); } else if (fnDelim.getStartOffset() == documentPosition && (firstRegion.getType() == DOMRegionContext.XML_END_TAG_OPEN)) { // <jsp:scriptlet> |</jsp:scriptlet> // check previous partition type to see if it's JAVASCRIPT // if it is, we're just gonna let the embedded JAVASCRIPT // adapter get the proposals if (documentPosition > 0) { String checkType = getPartitionType((StructuredTextViewer) viewer, documentPosition - 1); if (checkType != IJSPPartitions.JSP_CONTENT_JAVASCRIPT) { // this // check // is // failing // for // XML-JSP // (region // is // not // javascript...) return getJSPJavaCompletionProposals(viewer, documentPosition); } partitionType = IJSPPartitions.JSP_CONTENT_JAVASCRIPT; } } else if ((firstRegion.getType() == DOMRegionContext.XML_TAG_OPEN) && documentPosition >= fnDelim.getEndOffset()) { // anything else inbetween return getJSPJavaCompletionProposals(viewer, documentPosition); } } else if (XMLContentAssistUtilities.isJSPDelimiter(fnDelim)) { // the delimiter <%, <%=, <%!, ... if (XMLContentAssistUtilities.isJSPCloseDelimiter(fnDelim)) { if (documentPosition == fnDelim.getStartOffset()) { // check previous partition type to see if it's // JAVASCRIPT // if it is, we're just gonna let the embedded // JAVASCRIPT adapter get the proposals if (documentPosition > 0) { String checkType = getPartitionType((StructuredTextViewer) viewer, documentPosition - 1); if (checkType != IJSPPartitions.JSP_CONTENT_JAVASCRIPT) { return getJSPJavaCompletionProposals(viewer, documentPosition); } partitionType = IJSPPartitions.JSP_CONTENT_JAVASCRIPT; } } } else if (XMLContentAssistUtilities.isJSPOpenDelimiter(fnDelim)) { // if it's the first position of open delimiter // use embedded HTML results if (documentPosition == fnDelim.getStartOffset()) { embeddedResults = getHTMLCompletionProposals(viewer, documentPosition); } else if (documentPosition == fnDelim.getEndOffset()) { // it's at the EOF <%| return getJSPJavaCompletionProposals(viewer, documentPosition); } } } } // need to check if it's JSP region inside of CDATA w/ no region // <![CDATA[ <%|%> ]]> // or a comment region // <!-- <% |%> --> if (fn != null && (fn.getType() == DOMRegionContext.XML_CDATA_TEXT || fn.getType() == DOMRegionContext.XML_COMMENT_TEXT)) { if (fn instanceof ITextRegionContainer) { Object[] cdataRegions = fn.getRegions().toArray(); ITextRegion r = null; ITextRegion jspRegion = null; for (int i = 0; i < cdataRegions.length; i++) { r = (ITextRegion) cdataRegions[i]; if (r instanceof ITextRegionContainer) { // CDATA embedded container, or comment container Object[] jspRegions = ((ITextRegionContainer) r).getRegions().toArray(); for (int j = 0; j < jspRegions.length; j++) { jspRegion = (ITextRegion) jspRegions[j]; if (jspRegion.getType() == DOMJSPRegionContexts.JSP_CLOSE) { if (sdRegion.getStartOffset(jspRegion) == documentPosition) return getJSPJavaCompletionProposals(viewer, documentPosition); } } } } } } // check if it's in an attribute value, if so, don't add CDATA // proposal ITextRegion attrContainer = (fn != null) ? fn.getRegionAtCharacterOffset(documentPosition) : null; if (attrContainer != null && attrContainer instanceof ITextRegionContainer) { if (attrContainer.getType() == DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE) { // test location of the cursor // return null if it's in the middle of an open/close // delimeter Iterator attrRegions = ((ITextRegionContainer) attrContainer).getRegions().iterator(); ITextRegion testRegion = null; while (attrRegions.hasNext()) { testRegion = (ITextRegion) attrRegions.next(); // need to check for other valid attribute regions if (XMLContentAssistUtilities.isJSPOpenDelimiter(testRegion.getType())) { if (!(((ITextRegionContainer) attrContainer).getEndOffset(testRegion) <= documentPosition)) return EMPTY_PROPOSAL_SET; } else if (XMLContentAssistUtilities.isJSPCloseDelimiter(testRegion.getType())) { if (!(((ITextRegionContainer) attrContainer).getStartOffset(testRegion) >= documentPosition)) return EMPTY_PROPOSAL_SET; } } // TODO: handle non-Java code such as nested tags if (testRegion.getType().equals(DOMJSPRegionContexts.JSP_CONTENT)) return getJSPJavaCompletionProposals(viewer, documentPosition); return EMPTY_PROPOSAL_SET; } } IContentAssistProcessor p = (IContentAssistProcessor) fPartitionToProcessorMap.get(partitionType); if (p != null) { embeddedResults = p.computeCompletionProposals(viewer, documentPosition); // get bean methods, objects, and constants if there are any... if (partitionType == IJSPPartitions.JSP_CONTENT_JAVASCRIPT || partitionType == IHTMLPartitions.SCRIPT) { ICompletionProposal[] beanResults = getJSPJavaBeanProposals(viewer, documentPosition); if (beanResults != null && beanResults.length > 0) { ICompletionProposal[] added = new ICompletionProposal[beanResults.length + embeddedResults.length]; System.arraycopy(beanResults, 0, added, 0, beanResults.length); System.arraycopy(embeddedResults, 0, added, beanResults.length, embeddedResults.length); embeddedResults = added; } } } else { // the partition type is probably not mapped } // fix for: // HTML content assist give JSP tags in between empty script tags if (!(p instanceof JavaScriptContentAssistProcessor || p instanceof CSSContentAssistProcessor)) { fTemplateContexts.clear(); jspResults = super.computeCompletionProposals(viewer, documentPosition); } if (useEmbeddedResults) { if (embeddedResults != null && embeddedResults.length > 0) { List results = new ArrayList(); for (int i = 0; i < embeddedResults.length; i++) results.add(embeddedResults[i]); if (jspResults != null) { for (int i = 0; i < jspResults.length; i++) results.add(jspResults[i]); } jspResults = new ICompletionProposal[results.size()]; Collections.sort(results, new ProposalComparator()); for (int i = 0; i < results.size(); i++) jspResults[i] = (ICompletionProposal) results.get(i); } } if (jspResults == null) jspResults = EMPTY_PROPOSAL_SET; setErrorMessage(jspResults.length == 0 ? UNKNOWN_CONTEXT : null); // fix for: // check for |<%-- --%> first position of jsp comment if (partitionType == IJSPPartitions.JSP_COMMENT) { if (sdRegion.getStartOffset() == documentPosition) { ICompletionProposal[] htmlResults = getHTMLCompletionProposals(viewer, documentPosition); jspResults = merge(jspResults, htmlResults); } } // https://bugs.eclipse.org/bugs/show_bug.cgi?id=86656 if(partitionType == IJSPPartitions.JSP_DIRECTIVE) { ICompletionProposal[] importProposals = getImportProposals(viewer, documentPosition); if(importProposals.length > 0) jspResults = merge(jspResults, importProposals); } return jspResults; }
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/599ba655e87717cb12b3b35c378ea85552f1a329/JSPContentAssistProcessor.java/clean/bundles/org.eclipse.jst.jsp.ui/src/org/eclipse/jst/jsp/ui/internal/contentassist/JSPContentAssistProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 11238, 14592, 8526, 3671, 11238, 626, 22536, 12, 1285, 408, 18415, 14157, 16, 509, 1668, 2555, 13, 288, 202, 202, 74, 2283, 15518, 18, 8507, 5621, 9506, 202, 45, 30733, 2519, 5165, 8349, 5165, 273, 3697, 2610, 376, 1989, 18, 588, 30733, 2519, 5165, 12443, 30733, 1528, 18415, 13, 14157, 16, 1668, 2555, 1769, 202, 202, 74, 18415, 273, 14157, 31, 202, 202, 45, 11238, 14592, 8526, 22535, 3447, 273, 8984, 67, 3373, 7057, 1013, 67, 4043, 31, 202, 202, 45, 11238, 14592, 8526, 7488, 3447, 273, 8984, 67, 3373, 7057, 1013, 67, 4043, 31, 202, 202, 759, 866, 326, 3214, 3590, 618, 202, 202, 780, 3590, 559, 273, 25290, 559, 12443, 30733, 1528, 18415, 13, 14157, 16, 1668, 2555, 1769, 202, 202, 45, 30733, 2519, 19788, 2519, 273, 261, 45, 30733, 2519, 13, 25256, 18, 588, 2519, 5621, 9506, 202, 45, 30733, 2519, 5165, 2295, 273, 19788, 2519, 18, 588, 5165, 861, 7069, 2335, 12, 5457, 2555, 1769, 202, 202, 759, 26398, 2105, 759, 202, 202, 759, 432, 4400, 3891, 17062, 985, 51, 5240, 587, 1784, 2627, 20814, 7022, 1360, 399, 14607, 3991, 6425, 862, 15932, 20676, 202, 202, 759, 866, 364, 2025, 17, 24926, 2342, 2777, 202, 202, 430, 261, 10534, 559, 422, 467, 46, 3118, 13738, 18, 46, 3118, 67, 17541, 5354, 597, 2295, 480, 446, 13, 288, 1082, 202, 45, 30733, 2519, 5165, 3323, 4201, 46, 3118, 273, 14015, 4293, 18, 588, 559, 1435, 422, 4703, 5165, 1042, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 11238, 14592, 8526, 3671, 11238, 626, 22536, 12, 1285, 408, 18415, 14157, 16, 509, 1668, 2555, 13, 288, 202, 202, 74, 2283, 15518, 18, 8507, 5621, 9506, 202, 45, 30733, 2519, 5165, 8349, 5165, 273, 3697, 2610, 376, 1989, 18, 588, 30733, 2519, 5165, 12443, 30733, 1528, 18415, 13, 14157, 16, 1668, 2555, 1769, 202, 202, 74, 18415, 273, 14157, 31, 202, 202, 45, 11238, 14592, 8526, 22535, 3447, 273, 8984, 67, 3373, 7057, 1013, 67, 4043, 31, 202, 202, 45, 11238, 14592, 8526, 7488, 3447, 273, 8984, 67, 3373, 7057, 1013, 67, 4043, 31, 202, 202, 759, 866, 326, 3214, 3590, 618, 202, 202, 780, 3590, 559, 273, 25290, 559, 12443, 30733, 1528, 18415, 2 ]
if( parent instanceof IDeferredTemplateInstance || parent instanceof ITemplateSymbol ){ if( parent instanceof IDeferredTemplateInstance ){ parent = ((IDeferredTemplateInstance)parent).getTemplate().getTemplatedSymbol(); } else if( parent instanceof ITemplateSymbol ){ parent = ((ITemplateSymbol)parent).getTemplatedSymbol(); } if( data.inheritanceChain.contains( parent ) ){ continue; } }
private static Map lookupInParents( LookupData data, ISymbol lookIn ) throws ParserSymbolTableException{ IDerivableContainerSymbol container = null; if( lookIn instanceof IDerivableContainerSymbol ){ container = (IDerivableContainerSymbol) lookIn; } else{ throw new ParserSymbolTableError( ParserSymbolTableError.r_InternalError ); } List scopes = container.getParents(); Map temp = null; Map symbol = null; Map inherited = null; IDerivableContainerSymbol.IParentSymbol wrapper = null; if( scopes == null ) return null; //use data to detect circular inheritance if( data.inheritanceChain == null ) data.inheritanceChain = new HashSet(); data.inheritanceChain.add( container ); int size = scopes.size(); for( int i = 0; i < size; i++ ) { wrapper = (IDerivableContainerSymbol.IParentSymbol) scopes.get(i); ISymbol parent = wrapper.getParent(); if( parent == null ) continue; if( !wrapper.isVirtual() || !data.visited.contains( parent ) ){ if( wrapper.isVirtual() ){ data.visited.add( parent ); } //if the inheritanceChain already contains the parent, then that //is circular inheritance if( ! data.inheritanceChain.contains( parent ) ){ if( parent instanceof IDeferredTemplateInstance || parent instanceof ITemplateSymbol ){ if( parent instanceof IDeferredTemplateInstance ){ parent = ((IDeferredTemplateInstance)parent).getTemplate().getTemplatedSymbol(); } else if( parent instanceof ITemplateSymbol ){ parent = ((ITemplateSymbol)parent).getTemplatedSymbol(); } if( data.inheritanceChain.contains( parent ) ){ //bug 64919, might not really be circular inheritance, it just looks that way //don't throw an exception, just ignore this parent. continue; } } //is this name define in this scope? if( parent instanceof IDerivableContainerSymbol ){ temp = lookupInContained( data, (IDerivableContainerSymbol) parent ); } else { throw new ParserSymbolTableException( ParserSymbolTableException.r_BadTypeInfo ); } if( (temp == null || temp.isEmpty()) || data.isPrefixLookup() ){ inherited = lookupInParents( data, parent ); if( temp == null ) temp = inherited; else mergeInheritedResults( temp, inherited ); } } else { throw new ParserSymbolTableException( ParserSymbolTableException.r_CircularInheritance ); } } if( temp != null && !temp.isEmpty() ){ if( symbol == null || symbol.isEmpty() ){ symbol = temp; } else if ( temp != null && !temp.isEmpty() ) { Iterator iter = temp.keySet().iterator(); Object key = null; while( iter.hasNext() ){ key = iter.next(); if( symbol.containsKey( key ) ){ Object obj = symbol.get( key ); List objList = ( obj instanceof List ) ? (List)obj : null; int objListSize = ( objList != null ) ? objList.size() : 0, idx = 1; ISymbol sym = (ISymbol) (( objList != null && objListSize > 0 ) ? objList.get(0) : obj); while( sym != null ){ if( !checkAmbiguity( sym, temp.get( key ) ) ){ if( data.isPrefixLookup() ){ data.addAmbiguity( sym.getName() ); } else { throw new ParserSymbolTableException( ParserSymbolTableException.r_Ambiguous ); } } if( objList != null && idx < objListSize ){ sym = (ISymbol) objList.get( idx++ ); } else { sym = null; } } } else { symbol.put( key, temp.get( key ) ); } } } } else { temp = null; //reset temp for next iteration } } data.inheritanceChain.remove( container ); return symbol; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/441bdd65c80744b9d7dfe57dbaf2f5a72a4004d5/ParserSymbolTable.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/ParserSymbolTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1635, 3689, 382, 13733, 12, 8834, 751, 501, 16, 4437, 3284, 2324, 382, 262, 1216, 6783, 5335, 1388, 503, 95, 202, 202, 734, 264, 427, 429, 2170, 5335, 1478, 273, 446, 31, 202, 202, 430, 12, 2324, 382, 1276, 1599, 264, 427, 429, 2170, 5335, 262, 95, 1082, 202, 3782, 273, 261, 734, 264, 427, 429, 2170, 5335, 13, 2324, 382, 31, 202, 202, 97, 469, 95, 1082, 202, 12849, 394, 6783, 5335, 1388, 668, 12, 6783, 5335, 1388, 668, 18, 86, 67, 20980, 11272, 202, 202, 97, 9506, 202, 682, 8124, 273, 1478, 18, 588, 13733, 5621, 202, 202, 863, 1906, 273, 446, 31, 202, 202, 863, 3273, 273, 446, 31, 202, 202, 863, 12078, 273, 446, 31, 9506, 202, 734, 264, 427, 429, 2170, 5335, 18, 2579, 817, 5335, 4053, 273, 446, 31, 9506, 202, 430, 12, 8124, 422, 446, 262, 1082, 202, 2463, 446, 31, 25083, 202, 759, 1202, 501, 358, 5966, 15302, 16334, 202, 202, 430, 12, 501, 18, 6018, 1359, 3893, 422, 446, 262, 1082, 202, 892, 18, 6018, 1359, 3893, 273, 394, 6847, 5621, 9506, 202, 892, 18, 6018, 1359, 3893, 18, 1289, 12, 1478, 11272, 6862, 202, 474, 963, 273, 8124, 18, 1467, 5621, 202, 202, 1884, 12, 509, 277, 273, 374, 31, 277, 411, 963, 31, 277, 9904, 262, 202, 202, 95, 1082, 202, 8376, 273, 261, 734, 264, 427, 429, 2170, 5335, 18, 2579, 817, 5335, 13, 8124, 18, 588, 12, 77, 1769, 1082, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1635, 3689, 382, 13733, 12, 8834, 751, 501, 16, 4437, 3284, 2324, 382, 262, 1216, 6783, 5335, 1388, 503, 95, 202, 202, 734, 264, 427, 429, 2170, 5335, 1478, 273, 446, 31, 202, 202, 430, 12, 2324, 382, 1276, 1599, 264, 427, 429, 2170, 5335, 262, 95, 1082, 202, 3782, 273, 261, 734, 264, 427, 429, 2170, 5335, 13, 2324, 382, 31, 202, 202, 97, 469, 95, 1082, 202, 12849, 394, 6783, 5335, 1388, 668, 12, 6783, 5335, 1388, 668, 18, 86, 67, 20980, 11272, 202, 202, 97, 9506, 202, 682, 8124, 273, 1478, 18, 588, 13733, 5621, 202, 202, 863, 1906, 273, 446, 31, 202, 202, 863, 3273, 273, 446, 31, 202, 202, 863, 2 ]
return ((Byte)callback.readFromStream()).byteValue();
return ((Byte)peekCallback().readFromStream()).byteValue();
public byte readByte() throws IOException { return ((Byte)callback.readFromStream()).byteValue(); }
5142 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5142/b2a7bcfcd2c366d870cdcaa3cce4cee9caa3fc14/CustomObjectInputStream.java/clean/xstream/src/java/com/thoughtworks/xstream/core/util/CustomObjectInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 22301, 1435, 1216, 1860, 288, 3639, 327, 14015, 3216, 13, 347, 3839, 2428, 7675, 896, 1265, 1228, 1435, 2934, 7229, 620, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 22301, 1435, 1216, 1860, 288, 3639, 327, 14015, 3216, 13, 347, 3839, 2428, 7675, 896, 1265, 1228, 1435, 2934, 7229, 620, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return encode(cx, str, f.methodId == Id_encodeURI);
return encode(cx, str, methodId == Id_encodeURI);
public Object execMethod(IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (f.hasTag(FTAG)) { switch (f.methodId) { case Id_decodeURI: case Id_decodeURIComponent: { String str = ScriptRuntime.toString(args, 0); return decode(cx, str, f.methodId == Id_decodeURI); } case Id_encodeURI: case Id_encodeURIComponent: { String str = ScriptRuntime.toString(args, 0); return encode(cx, str, f.methodId == Id_encodeURI); } case Id_escape: return js_escape(cx, args); case Id_eval: return js_eval(cx, scope, args); case Id_isFinite: { if (args.length < 1) return Boolean.FALSE; double d = ScriptRuntime.toNumber(args[0]); return (d != d || d == Double.POSITIVE_INFINITY || d == Double.NEGATIVE_INFINITY) ? Boolean.FALSE : Boolean.TRUE; } case Id_isNaN: { // The global method isNaN, as per ECMA-262 15.1.2.6. if (args.length < 1) return Boolean.TRUE; double d = ScriptRuntime.toNumber(args[0]); return (d != d) ? Boolean.TRUE : Boolean.FALSE; } case Id_parseFloat: return js_parseFloat(cx, args); case Id_parseInt: return js_parseInt(cx, args); case Id_unescape: return js_unescape(cx, args); case Id_uneval: { Object value = (args.length != 0) ? args[0] : Undefined.instance; return ScriptRuntime.uneval(cx, scope, value); } case Id_new_CommonError: // The implementation of all the ECMA error constructors // (SyntaxError, TypeError, etc.) return NativeError.make(cx, scope, f, args); } } throw f.unknown(); }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/b8f8b7755881b715c4310c7923c48146c2eac1ff/NativeGlobal.java/clean/src/org/mozilla/javascript/NativeGlobal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 12, 548, 2083, 284, 16, 1772, 9494, 16, 22780, 2146, 16, 11794, 22780, 15261, 16, 1033, 8526, 833, 13, 565, 288, 3639, 309, 261, 74, 18, 5332, 1805, 12, 4464, 1781, 3719, 288, 5411, 1620, 261, 74, 18, 2039, 548, 13, 288, 7734, 648, 3124, 67, 3922, 3098, 30, 7734, 648, 3124, 67, 3922, 19000, 30, 288, 10792, 514, 609, 273, 7739, 5576, 18, 10492, 12, 1968, 16, 374, 1769, 10792, 327, 2495, 12, 71, 92, 16, 609, 16, 284, 18, 2039, 548, 422, 3124, 67, 3922, 3098, 1769, 7734, 289, 7734, 648, 3124, 67, 3015, 3098, 30, 7734, 648, 3124, 67, 3015, 19000, 30, 288, 10792, 514, 609, 273, 7739, 5576, 18, 10492, 12, 1968, 16, 374, 1769, 10792, 327, 2017, 12, 71, 92, 16, 609, 16, 707, 548, 422, 3124, 67, 3015, 3098, 1769, 7734, 289, 7734, 648, 3124, 67, 6939, 30, 10792, 327, 3828, 67, 6939, 12, 71, 92, 16, 833, 1769, 7734, 648, 3124, 67, 8622, 30, 10792, 327, 3828, 67, 8622, 12, 71, 92, 16, 2146, 16, 833, 1769, 7734, 648, 3124, 67, 291, 26491, 30, 288, 10792, 309, 261, 1968, 18, 2469, 411, 404, 13, 13491, 327, 3411, 18, 21053, 31, 10792, 1645, 302, 273, 7739, 5576, 18, 869, 1854, 12, 1968, 63, 20, 19226, 10792, 327, 261, 72, 480, 302, 747, 302, 422, 3698, 18, 7057, 16325, 67, 17716, 747, 18701, 302, 422, 3698, 18, 5407, 22421, 67, 17716, 13, 21821, 692, 3411, 18, 21053, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 12, 548, 2083, 284, 16, 1772, 9494, 16, 22780, 2146, 16, 11794, 22780, 15261, 16, 1033, 8526, 833, 13, 565, 288, 3639, 309, 261, 74, 18, 5332, 1805, 12, 4464, 1781, 3719, 288, 5411, 1620, 261, 74, 18, 2039, 548, 13, 288, 7734, 648, 3124, 67, 3922, 3098, 30, 7734, 648, 3124, 67, 3922, 19000, 30, 288, 10792, 514, 609, 273, 7739, 5576, 18, 10492, 12, 1968, 16, 374, 1769, 10792, 327, 2495, 12, 71, 92, 16, 609, 16, 284, 18, 2039, 548, 422, 3124, 67, 3922, 3098, 1769, 7734, 289, 7734, 648, 3124, 67, 3015, 3098, 30, 7734, 648, 3124, 67, 3015, 19000, 30, 288, 10792, 514, 609, 273, 7739, 5576, 18, 10492, 2 ]
Field field = (Field) form.getField(fieldName);
Field field = form.getField(fieldName);
public int doStartTag() throws JspException { // Look up this key to see if its a field of the current form boolean requiredField = false; boolean validationError = false; TagUtils tagUtils = TagUtils.getInstance(); ValidatorResources resources = (ValidatorResources) pageContext.getServletContext() .getAttribute(ValidatorPlugIn.VALIDATOR_KEY); Locale locale = (Locale) pageContext.findAttribute(Globals.LOCALE_KEY); if (locale == null) { locale = Locale.getDefault(); } FormTag formTag = (FormTag) pageContext.getAttribute(Constants.FORM_KEY, PageContext.REQUEST_SCOPE); String formName = formTag.getBeanName(); String fieldName = key.substring(formName.length() + 1); if (resources != null) { Form form = resources.getForm(locale, formName); if (form != null) { Field field = (Field) form.getField(fieldName); if (field != null) { if (field.isDependency("required")) { requiredField = true; } } } } ActionMessages errors = tagUtils.getActionMessages(pageContext, Globals.ERROR_KEY); StringBuffer valMessage = new StringBuffer(); if (errors != null) { // check for errors from the validator Iterator valIterator = errors.get(fieldName); while (valIterator.hasNext()) { validationError = true; ActionMessage error = (ActionMessage) valIterator.next(); // Retrieve the message string we are looking for valMessage.append(tagUtils.message(pageContext, Globals.MESSAGES_KEY, locale.getDisplayName(), error.getKey(), error.getValues())); } } // Retrieve the message string we are looking for String message = tagUtils.message(pageContext, Globals.MESSAGES_KEY, locale.getDisplayName(), key); StringBuffer valError = new StringBuffer(); //StringBuffer dbError = new StringBuffer(); if (message == null) { JspException e = new JspException("Cannot find message for key: " + key); tagUtils.saveException(pageContext, e); throw e; } else if (validationError) { valError.append(valMessage); } String cssClass = null; if (styleClass != null) { cssClass = styleClass; } else if (requiredField) { cssClass = "required"; } String cssErrorClass = (errorClass != null) ? errorClass : "error"; StringBuffer label = new StringBuffer(); if ((message == null) || "".equals(message.trim())) { label.append(""); } else { label.append("<label for=\"" + fieldName + "\""); if (validationError) { label.append(" class=\"" + cssErrorClass + "\""); } else if (cssClass != null) { label.append(" class=\"" + cssClass + "\""); } label.append(">" + ((requiredField) ? "* " : "") + message); label.append(((colon) ? ":" : "") + "</label>"); if (valError.length() > 0) { String error = valError.toString(); // strip out any single or double quotes String htmlFriendly = StringUtils.replace(error, "'", "\\\'"); htmlFriendly = StringUtils.replace(htmlFriendly, "\"", "\\\""); label.append(" <a class=\"errorLink\" href=\"?\" onclick=\"showHelpTip(event, '"); label.append(htmlFriendly + "', false); return false\" "); label.append("onmouseover=\"showHelpTip(event, '"); label.append(htmlFriendly + "', false); return false\" "); label.append("onmouseout=\"hideHelpTip(event); return false\">"); label.append("<img class=\"validationWarning\" alt=\"\" "); String context = ((HttpServletRequest) pageContext.getRequest()) .getContextPath(); label.append("src=\"" + context); label.append(tagUtils.message(pageContext, Globals.MESSAGES_KEY, locale.getDisplayName(), "icon.warning.img")); label.append("\" />"); label.append("</a>"); } } // Print the retrieved message to our output writer tagUtils.write(pageContext, label.toString()); // Continue processing this page return (SKIP_BODY); }
30015 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/30015/7dbaa4ba04135ddd125159b6d936e920ba697140/LabelTag.java/clean/src/web/org/appfuse/webapp/taglib/LabelTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 30512, 1435, 1216, 27485, 288, 3639, 368, 10176, 731, 333, 498, 358, 2621, 309, 2097, 279, 652, 434, 326, 783, 646, 3639, 1250, 1931, 974, 273, 629, 31, 3639, 1250, 3379, 668, 273, 629, 31, 3639, 4034, 1989, 1047, 1989, 273, 4034, 1989, 18, 588, 1442, 5621, 3639, 9150, 3805, 2703, 273, 5411, 261, 5126, 3805, 13, 21442, 18, 588, 4745, 1042, 1435, 7734, 263, 588, 1499, 12, 5126, 1749, 637, 382, 18, 5063, 3575, 67, 3297, 1769, 7734, 6458, 2573, 273, 2398, 261, 3916, 13, 21442, 18, 4720, 1499, 12, 19834, 18, 25368, 67, 3297, 1769, 3639, 309, 261, 6339, 422, 446, 13, 288, 5411, 2573, 273, 6458, 18, 588, 1868, 5621, 3639, 289, 7734, 2748, 1805, 646, 1805, 273, 5411, 261, 1204, 1805, 13, 21442, 18, 588, 1499, 12, 2918, 18, 4983, 67, 3297, 16, 4766, 9079, 3460, 1042, 18, 5519, 67, 19444, 1769, 3639, 514, 27404, 273, 646, 1805, 18, 588, 22003, 5621, 3639, 514, 4289, 273, 498, 18, 28023, 12, 687, 461, 18, 2469, 1435, 397, 404, 1769, 3639, 309, 261, 4683, 480, 446, 13, 288, 5411, 2748, 646, 273, 2703, 18, 588, 1204, 12, 6339, 16, 27404, 1769, 5411, 309, 261, 687, 480, 446, 13, 288, 7734, 2286, 652, 273, 646, 18, 588, 974, 12, 16163, 1769, 7734, 309, 261, 1518, 480, 446, 13, 288, 10792, 309, 261, 1518, 18, 291, 7787, 2932, 4718, 6, 3719, 288, 13491, 1931, 974, 273, 638, 31, 10792, 289, 7734, 289, 5411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 30512, 1435, 1216, 27485, 288, 3639, 368, 10176, 731, 333, 498, 358, 2621, 309, 2097, 279, 652, 434, 326, 783, 646, 3639, 1250, 1931, 974, 273, 629, 31, 3639, 1250, 3379, 668, 273, 629, 31, 3639, 4034, 1989, 1047, 1989, 273, 4034, 1989, 18, 588, 1442, 5621, 3639, 9150, 3805, 2703, 273, 5411, 261, 5126, 3805, 13, 21442, 18, 588, 4745, 1042, 1435, 7734, 263, 588, 1499, 12, 5126, 1749, 637, 382, 18, 5063, 3575, 67, 3297, 1769, 7734, 6458, 2573, 273, 2398, 261, 3916, 13, 21442, 18, 4720, 1499, 12, 19834, 18, 25368, 67, 3297, 1769, 3639, 309, 261, 6339, 422, 446, 13, 288, 5411, 2573, 273, 6458, 18, 588, 1868, 5621, 3639, 289, 2 ]
if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't remove method"); } if (isFrozen()) { } if (methods.remove(methodId) == null) { throw new RubyNameException( getRuby(), "method '" + methodId.toName() + "' not defined in " + toName()); } }
if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't remove method"); } if (isFrozen()) { } if (methods.remove(methodId) == null) { throw new RubyNameException( getRuby(), "method '" + methodId.toName() + "' not defined in " + toName()); } }
public void removeMethod(RubyId methodId) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't remove method"); } if (isFrozen()) { // rb_error_frozen("class/module"); } if (methods.remove(methodId) == null) { throw new RubyNameException( getRuby(), "method '" + methodId.toName() + "' not defined in " + toName()); } }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 1305, 12, 54, 10340, 548, 707, 548, 13, 288, 202, 202, 430, 261, 2211, 422, 4170, 10340, 7675, 588, 4818, 7675, 588, 921, 797, 10756, 288, 1082, 202, 588, 54, 10340, 7675, 8869, 12, 24, 1769, 202, 202, 97, 202, 202, 430, 261, 588, 54, 10340, 7675, 588, 4368, 2355, 1435, 1545, 1059, 597, 401, 291, 29048, 10756, 288, 1082, 202, 12849, 394, 19817, 24918, 12, 588, 54, 10340, 9334, 315, 382, 8869, 30, 848, 1404, 1206, 707, 8863, 202, 202, 97, 202, 202, 430, 261, 291, 42, 9808, 10756, 288, 1082, 202, 759, 7138, 67, 1636, 67, 28138, 2932, 1106, 19, 2978, 8863, 202, 202, 97, 202, 202, 430, 261, 5163, 18, 4479, 12, 2039, 548, 13, 422, 446, 13, 288, 1082, 202, 12849, 394, 19817, 26771, 12, 9506, 202, 588, 54, 10340, 9334, 9506, 202, 6, 2039, 2119, 397, 707, 548, 18, 869, 461, 1435, 397, 2491, 486, 2553, 316, 315, 397, 358, 461, 10663, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 1305, 12, 54, 10340, 548, 707, 548, 13, 288, 202, 202, 430, 261, 2211, 422, 4170, 10340, 7675, 588, 4818, 7675, 588, 921, 797, 10756, 288, 1082, 202, 588, 54, 10340, 7675, 8869, 12, 24, 1769, 202, 202, 97, 202, 202, 430, 261, 588, 54, 10340, 7675, 588, 4368, 2355, 1435, 1545, 1059, 597, 401, 291, 29048, 10756, 288, 1082, 202, 12849, 394, 19817, 24918, 12, 588, 54, 10340, 9334, 315, 382, 8869, 30, 848, 1404, 1206, 707, 8863, 202, 202, 97, 202, 202, 430, 261, 291, 42, 9808, 10756, 288, 1082, 202, 759, 7138, 67, 1636, 67, 28138, 2932, 1106, 19, 2978, 8863, 202, 202, 97, 202, 202, 430, 261, 5163, 18, 4479, 2 ]
public Step( BrokerPool pool, int axis ) {
public Step( int axis ) {
public Step( BrokerPool pool, int axis ) { super(); this.axis = axis; this.pool = pool; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/bfcf33dba9c98234a0edaa282c8909b27b6a6ac4/Step.java/clean/src/org/exist/xpath/Step.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8693, 12, 509, 2654, 262, 288, 3639, 2240, 5621, 3639, 333, 18, 4890, 273, 2654, 31, 3639, 333, 18, 6011, 273, 2845, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8693, 12, 509, 2654, 262, 288, 3639, 2240, 5621, 3639, 333, 18, 4890, 273, 2654, 31, 3639, 333, 18, 6011, 273, 2845, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (newSphere.size() >0)
if (newSphere.size() > 0)
public static void breadthFirstSearch(AtomContainer ac, Vector sphere, AtomContainer[] pathes) throws org.openscience.cdk.exception.NoSuchAtomException { Atom atom = null, nextAtom = null; int atomNr, nextAtomNr; AtomContainer path = null; Vector newSphere = new Vector(); for (int f = 0; f < sphere.size(); f++) { atom = (Atom)sphere.elementAt(f); if (!atom.flags[CDKConstants.ISINRING]) { atomNr = ac.getAtomNumber(atom); Bond[] bonds = ac.getConnectedBonds(atom); for (int g = 0; g < bonds.length; g++) { nextAtom = bonds[g].getConnectedAtom(atom); if (!nextAtom.flags[CDKConstants.VISITED] && !nextAtom.flags[CDKConstants.ISPLACED]) { nextAtomNr = ac.getAtomNumber(nextAtom); pathes[nextAtomNr] = (AtomContainer)pathes[atomNr].shallowCopy(); pathes[nextAtomNr].addAtom(nextAtom); pathes[nextAtomNr].addBond(bonds[g]); newSphere.addElement(nextAtom); //nextAtom.flags[CDKConstants.VISITED] = true; } } } } if (newSphere.size() >0) { for (int f = 0; f < newSphere.size(); f++) { ((Atom)newSphere.elementAt(f)).flags[CDKConstants.VISITED] = true; } breadthFirstSearch(ac, newSphere, pathes); } }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/df5b60a7f777b019d4b0b428566ad74e4a8debd9/AtomPlacer.java/buggy/src/org/openscience/cdk/layout/AtomPlacer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 324, 25254, 3759, 2979, 12, 3641, 2170, 1721, 16, 5589, 20041, 16, 7149, 2170, 8526, 589, 281, 13, 1216, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 4064, 18, 28341, 3641, 503, 202, 95, 202, 202, 3641, 3179, 273, 446, 16, 1024, 3641, 273, 446, 31, 3196, 202, 474, 3179, 18726, 16, 1024, 3641, 18726, 31, 202, 202, 3641, 2170, 589, 273, 446, 31, 202, 202, 5018, 394, 22747, 273, 394, 5589, 5621, 9506, 202, 1884, 261, 474, 284, 273, 374, 31, 284, 411, 20041, 18, 1467, 5621, 284, 27245, 202, 202, 95, 1082, 202, 7466, 273, 261, 3641, 13, 87, 9346, 18, 2956, 861, 12, 74, 1769, 1082, 202, 430, 16051, 7466, 18, 7133, 63, 39, 3398, 2918, 18, 5127, 706, 54, 1360, 5717, 1082, 202, 95, 9506, 202, 7466, 18726, 273, 1721, 18, 588, 3641, 1854, 12, 7466, 1769, 9506, 202, 9807, 8526, 15692, 273, 1721, 18, 588, 8932, 26090, 12, 7466, 1769, 9506, 202, 1884, 261, 474, 314, 273, 374, 31, 314, 411, 15692, 18, 2469, 31, 314, 27245, 9506, 202, 95, 6862, 202, 4285, 3641, 273, 15692, 63, 75, 8009, 588, 8932, 3641, 12, 7466, 1769, 6862, 202, 430, 16051, 4285, 3641, 18, 7133, 63, 39, 3398, 2918, 18, 26780, 1285, 2056, 65, 597, 401, 4285, 3641, 18, 7133, 63, 39, 3398, 2918, 18, 45, 3118, 2534, 23552, 5717, 6862, 202, 95, 25083, 202, 4285, 3641, 18726, 273, 1721, 18, 588, 3641, 1854, 12, 4285, 3641, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 324, 25254, 3759, 2979, 12, 3641, 2170, 1721, 16, 5589, 20041, 16, 7149, 2170, 8526, 589, 281, 13, 1216, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 4064, 18, 28341, 3641, 503, 202, 95, 202, 202, 3641, 3179, 273, 446, 16, 1024, 3641, 273, 446, 31, 3196, 202, 474, 3179, 18726, 16, 1024, 3641, 18726, 31, 202, 202, 3641, 2170, 589, 273, 446, 31, 202, 202, 5018, 394, 22747, 273, 394, 5589, 5621, 9506, 202, 1884, 261, 474, 284, 273, 374, 31, 284, 411, 20041, 18, 1467, 5621, 284, 27245, 202, 202, 95, 1082, 202, 7466, 273, 261, 3641, 13, 87, 9346, 18, 2956, 861, 12, 74, 1769, 1082, 202, 430, 16051, 7466, 2 ]
protected Region createTempQueueRegion(UsageManager memoryManager, TaskRunnerFactory taskRunnerFactory) { return new TempQueueRegion(this,destinationStatistics, memoryManager, taskRunnerFactory);
protected Region createTempQueueRegion(UsageManager memoryManager, TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory) { return new TempQueueRegion(this,destinationStatistics, memoryManager, taskRunnerFactory, destinationFactory);
protected Region createTempQueueRegion(UsageManager memoryManager, TaskRunnerFactory taskRunnerFactory) { return new TempQueueRegion(this,destinationStatistics, memoryManager, taskRunnerFactory); }
11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/bfaff9b37c815c32ec18911bf038d03724c753d4/RegionBroker.java/clean/activemq-core/src/main/java/org/apache/activemq/broker/region/RegionBroker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 9164, 752, 7185, 3183, 5165, 12, 5357, 1318, 3778, 1318, 16, 3837, 9709, 1733, 1562, 9709, 1733, 13, 288, 3639, 327, 394, 16380, 3183, 5165, 12, 2211, 16, 10590, 8569, 16, 3778, 1318, 16, 1562, 9709, 1733, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 9164, 752, 7185, 3183, 5165, 12, 5357, 1318, 3778, 1318, 16, 3837, 9709, 1733, 1562, 9709, 1733, 13, 288, 3639, 327, 394, 16380, 3183, 5165, 12, 2211, 16, 10590, 8569, 16, 3778, 1318, 16, 1562, 9709, 1733, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
tokens.add(new Area3DPtg(first+":"+second,externIdx));
if (look == '!') { Match('!'); String third=GetName(); if (!sheetName.equals(second)) throw new RuntimeException("Unhandled double sheet reference."); tokens.add(new Area3DPtg(first+":"+third,externIdx)); } else { tokens.add(new Area3DPtg(first+":"+second,externIdx)); }
private void Ident() { String name; name = GetName(); if (look == '('){ //This is a function function(name); } else if (look == ':') { // this is a AreaReference String first = name; Match(':'); String second = GetName(); tokens.add(new AreaPtg(first+":"+second)); } else if (look == '!') { Match('!'); String sheetName = name; String first = GetName(); short externIdx = book.checkExternSheet(book.getSheetIndex(sheetName)); if (look == ':') { Match(':'); String second=GetName(); tokens.add(new Area3DPtg(first+":"+second,externIdx)); } else { tokens.add(new Ref3DPtg(first,externIdx)); } } else { //this can be either a cell ref or a named range !! boolean cellRef = true ; //we should probably do it with reg exp?? boolean boolLit = (name.equals("TRUE") || name.equals("FALSE")); if (boolLit) { tokens.add(new BoolPtg(name)); } else if (cellRef) { tokens.add(new ReferencePtg(name)); }else { //handle after named range is integrated!! } } }
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/4859068eb4915c534d610cb3c13ddc0f91a1052d/FormulaParser.java/clean/src/java/org/apache/poi/hssf/model/FormulaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 13128, 1435, 288, 3639, 514, 508, 31, 3639, 508, 273, 17159, 5621, 3639, 309, 261, 7330, 422, 7321, 15329, 5411, 368, 2503, 353, 279, 445, 5411, 445, 12, 529, 1769, 3639, 289, 469, 309, 261, 7330, 422, 3921, 13, 288, 368, 333, 353, 279, 16668, 2404, 5411, 514, 1122, 273, 508, 31, 5411, 4639, 2668, 2497, 1769, 5411, 514, 2205, 273, 17159, 5621, 5411, 2430, 18, 1289, 12, 2704, 16668, 16484, 75, 12, 3645, 9078, 2773, 15, 8538, 10019, 3639, 289, 469, 309, 261, 7330, 422, 15502, 13, 288, 5411, 4639, 2668, 5124, 1769, 5411, 514, 6202, 461, 273, 508, 31, 5411, 514, 1122, 273, 17159, 5621, 5411, 3025, 18885, 4223, 273, 6978, 18, 1893, 29764, 8229, 12, 3618, 18, 588, 8229, 1016, 12, 8118, 461, 10019, 5411, 309, 261, 7330, 422, 3921, 13, 288, 7734, 4639, 2668, 2497, 1769, 7734, 514, 2205, 33, 967, 461, 5621, 1171, 9079, 309, 261, 7330, 422, 15502, 13, 288, 282, 4639, 2668, 5124, 1769, 514, 12126, 33, 967, 461, 5621, 225, 309, 16051, 8118, 461, 18, 14963, 12, 8538, 3719, 604, 394, 3235, 2932, 26952, 1645, 6202, 2114, 1199, 1769, 225, 2430, 18, 1289, 12, 2704, 16668, 23, 8640, 88, 75, 12, 3645, 9078, 2773, 15, 451, 6909, 16, 338, 798, 4223, 10019, 289, 469, 288, 2430, 18, 1289, 12, 2704, 16668, 23, 8640, 88, 75, 12, 3645, 9078, 2773, 15, 8538, 16, 338, 798, 4223, 10019, 289, 5411, 289, 469, 288, 7734, 2430, 18, 1289, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 13128, 1435, 288, 3639, 514, 508, 31, 3639, 508, 273, 17159, 5621, 3639, 309, 261, 7330, 422, 7321, 15329, 5411, 368, 2503, 353, 279, 445, 5411, 445, 12, 529, 1769, 3639, 289, 469, 309, 261, 7330, 422, 3921, 13, 288, 368, 333, 353, 279, 16668, 2404, 5411, 514, 1122, 273, 508, 31, 5411, 4639, 2668, 2497, 1769, 5411, 514, 2205, 273, 17159, 5621, 5411, 2430, 18, 1289, 12, 2704, 16668, 16484, 75, 12, 3645, 9078, 2773, 15, 8538, 10019, 3639, 289, 469, 309, 261, 7330, 422, 15502, 13, 288, 5411, 4639, 2668, 5124, 1769, 5411, 514, 6202, 461, 273, 508, 31, 5411, 514, 1122, 273, 17159, 5621, 5411, 3025, 18885, 4223, 273, 6978, 18, 1893, 29764, 2 ]
push(fnClassName);
aload(contextLocal); addSpecialInvoke(fnClassName, "<init>", "(Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/Context;)", "V"); if (inFunction) { addByteCode(ByteCode.ALOAD_0); } else { aload(variableObjectLocal); }
private void generateFunctionInits(Vector fns) { // make an array to put them in, so they're available // for decompilation. push(fns.size()); addByteCode(ByteCode.ANEWARRAY, "org/mozilla/javascript/NativeFunction"); /* note that nested function decompilation currently * depends on the elements of the nestedFunctions array * being defined in source order. (per function/script, * starting from 0.) Change Parser and NativeFunction if * changing ordering. */ for (short i = 0; i < fns.size(); i++) { addByteCode(ByteCode.DUP); // make another reference to the array push(i); // to set up for aastore at end of loop Node def = (Node) fns.elementAt(i); Codegen codegen = new Codegen(); String fnClassName = codegen.generateCode(def, results, itsNameHelper); // initialize a property by that name, and push the object // as a result if (inFunction) { addByteCode(ByteCode.ALOAD_0); // load "this" argument } else { aload(variableObjectLocal); } push(fnClassName); String str = def.getString(); if (str != null) { push(str); } else { addByteCode(ByteCode.ACONST_NULL); } addByteCode(ByteCode.ALOAD_0); // load 'this' aload(contextLocal); // load 'cx' addScriptRuntimeInvoke("defineFunction", "(Lorg/mozilla/javascript/Scriptable;" + "Ljava/lang/String;" + "Ljava/lang/String;" + "Ljava/lang/Object;" + "Lorg/mozilla/javascript/Context;)", "Lorg/mozilla/javascript/NativeFunction;"); def.putProp(Node.FUNCTION_PROP, new Short(i)); addByteCode(ByteCode.AASTORE); // store NativeFunction // instance to array } // add the array as the nestedFunctions field; array should // still be on the stack. addByteCode(ByteCode.ALOAD_0); // load 'this' addByteCode(ByteCode.SWAP); // swap with original array reference classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/NativeFunction", "nestedFunctions", "[Lorg/mozilla/javascript/NativeFunction;"); }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/3700676b23de6f5e245970aae9264c23d9eb2b4c/Codegen.java/clean/js/rhino/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 2083, 382, 1282, 12, 5018, 21930, 13, 288, 3639, 368, 1221, 392, 526, 358, 1378, 2182, 316, 16, 1427, 2898, 4565, 2319, 3639, 368, 364, 443, 2919, 6613, 18, 3639, 1817, 12, 74, 2387, 18, 1467, 10663, 3639, 527, 3216, 1085, 12, 3216, 1085, 18, 1258, 7245, 8552, 16, 315, 3341, 19, 8683, 15990, 19, 11242, 19, 9220, 2083, 8863, 3639, 1748, 4721, 716, 4764, 445, 443, 2919, 6613, 4551, 540, 380, 10935, 603, 326, 2186, 434, 326, 4764, 7503, 526, 540, 380, 3832, 2553, 316, 1084, 1353, 18, 225, 261, 457, 445, 19, 4263, 16, 540, 380, 5023, 628, 374, 12998, 225, 7576, 6783, 471, 16717, 2083, 309, 540, 380, 12770, 9543, 18, 540, 1195, 3639, 364, 261, 6620, 277, 273, 374, 31, 277, 411, 21930, 18, 1467, 5621, 277, 27245, 288, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 30387, 1769, 368, 1221, 4042, 2114, 358, 326, 526, 5411, 1817, 12, 77, 1769, 5411, 368, 358, 444, 731, 364, 279, 689, 479, 622, 679, 434, 2798, 5411, 2029, 1652, 273, 261, 907, 13, 21930, 18, 2956, 861, 12, 77, 1769, 5411, 3356, 4507, 23198, 273, 394, 3356, 4507, 5621, 5411, 514, 2295, 3834, 273, 23198, 18, 7163, 1085, 12, 536, 16, 1686, 16, 2097, 461, 2276, 1769, 5411, 368, 4046, 279, 1272, 635, 716, 508, 16, 471, 1817, 326, 733, 5411, 368, 225, 487, 279, 563, 5411, 309, 261, 267, 2083, 13, 288, 7734, 527, 3216, 1085, 12, 3216, 1085, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 2083, 382, 1282, 12, 5018, 21930, 13, 288, 3639, 368, 1221, 392, 526, 358, 1378, 2182, 316, 16, 1427, 2898, 4565, 2319, 3639, 368, 364, 443, 2919, 6613, 18, 3639, 1817, 12, 74, 2387, 18, 1467, 10663, 3639, 527, 3216, 1085, 12, 3216, 1085, 18, 1258, 7245, 8552, 16, 315, 3341, 19, 8683, 15990, 19, 11242, 19, 9220, 2083, 8863, 3639, 1748, 4721, 716, 4764, 445, 443, 2919, 6613, 4551, 540, 380, 10935, 603, 326, 2186, 434, 326, 4764, 7503, 526, 540, 380, 3832, 2553, 316, 1084, 1353, 18, 225, 261, 457, 445, 19, 4263, 16, 540, 380, 5023, 628, 374, 12998, 225, 7576, 6783, 471, 16717, 2083, 309, 540, 380, 12770, 9543, 18, 540, 2 ]
match(_t,SUBMENU); _t = _t.getNextSibling(); break; } case TEXT:
match(_t,TEXT); _t = _t.getNextSibling(); break; } case TOGGLEBOX:
public final void createwidgetstate(AST _t) throws RecognitionException { AST createwidgetstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t334 = _t; AST tmp911_AST_in = (AST)_t; match(_t,CREATE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALUE: { valueexpression(_t); _t = _retTree; break; } case BUTTON: { AST tmp912_AST_in = (AST)_t; match(_t,BUTTON); _t = _t.getNextSibling(); break; } case COMBOBOX: { AST tmp913_AST_in = (AST)_t; match(_t,COMBOBOX); _t = _t.getNextSibling(); break; } case CONTROLFRAME: { AST tmp914_AST_in = (AST)_t; match(_t,CONTROLFRAME); _t = _t.getNextSibling(); break; } case DIALOGBOX: { AST tmp915_AST_in = (AST)_t; match(_t,DIALOGBOX); _t = _t.getNextSibling(); break; } case EDITOR: { AST tmp916_AST_in = (AST)_t; match(_t,EDITOR); _t = _t.getNextSibling(); break; } case FILLIN: { AST tmp917_AST_in = (AST)_t; match(_t,FILLIN); _t = _t.getNextSibling(); break; } case FRAME: { AST tmp918_AST_in = (AST)_t; match(_t,FRAME); _t = _t.getNextSibling(); break; } case IMAGE: { AST tmp919_AST_in = (AST)_t; match(_t,IMAGE); _t = _t.getNextSibling(); break; } case MENU: { AST tmp920_AST_in = (AST)_t; match(_t,MENU); _t = _t.getNextSibling(); break; } case MENUITEM: { AST tmp921_AST_in = (AST)_t; match(_t,MENUITEM); _t = _t.getNextSibling(); break; } case RADIOSET: { AST tmp922_AST_in = (AST)_t; match(_t,RADIOSET); _t = _t.getNextSibling(); break; } case RECTANGLE: { AST tmp923_AST_in = (AST)_t; match(_t,RECTANGLE); _t = _t.getNextSibling(); break; } case SELECTIONLIST: { AST tmp924_AST_in = (AST)_t; match(_t,SELECTIONLIST); _t = _t.getNextSibling(); break; } case SLIDER: { AST tmp925_AST_in = (AST)_t; match(_t,SLIDER); _t = _t.getNextSibling(); break; } case SUBMENU: { AST tmp926_AST_in = (AST)_t; match(_t,SUBMENU); _t = _t.getNextSibling(); break; } case TEXT: { AST tmp927_AST_in = (AST)_t; match(_t,TEXT); _t = _t.getNextSibling(); break; } case TOGGLEBOX: { AST tmp928_AST_in = (AST)_t; match(_t,TOGGLEBOX); _t = _t.getNextSibling(); break; } case WINDOW: { AST tmp929_AST_in = (AST)_t; match(_t,WINDOW); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } fld(_t,CQ.UPDATING); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case IN_KW: { AST __t337 = _t; AST tmp930_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); AST tmp931_AST_in = (AST)_t; match(_t,WIDGETPOOL); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t337; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case ASSIGN: case NOERROR_KW: case TRIGGERS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp932_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case ASSIGN: case TRIGGERS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ASSIGN: { assign_opt(_t); _t = _retTree; break; } case EOF: case PERIOD: case TRIGGERS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TRIGGERS: { triggerphrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t334; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 752, 6587, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 752, 6587, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 3707, 24, 273, 389, 88, 31, 202, 202, 9053, 1853, 29, 2499, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 9344, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 5848, 30, 202, 202, 95, 1082, 202, 1132, 8692, 24899, 88, 1769, 1082, 202, 67, 88, 273, 389, 1349, 2471, 31, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 29947, 30, 202, 202, 95, 1082, 202, 9053, 1853, 29, 2138, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 20068, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 5423, 5315, 16876, 30, 202, 202, 95, 1082, 202, 9053, 1853, 29, 3437, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 4208, 5315, 16876, 1769, 1082, 202, 67, 88, 273, 389, 88, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 752, 6587, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 752, 6587, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 3707, 24, 273, 389, 88, 31, 202, 202, 9053, 1853, 29, 2499, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 9344, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 2 ]
if (first == t.first && last == t.last)
if (first == t.firstVar && last == t.lastVar)
BddTree bddtree_addrange_rec(BddTree t, BddTree prev, int first, int last, boolean fixed, int id) { if (first < 0 || last < 0 || last < first) return null; /* Empty tree -> build one */ if (t == null) { t = bddtree_new(id); t.first = first; t.fixed = fixed; t.seq = new int[last - first + 1]; t.last = last; update_seq(t); t.prev = prev; return t; } /* Check for identity */ if (first == t.first && last == t.last) return t; /* Inside this section -> insert in next level */ if (first >= t.first && last <= t.last) { t.nextlevel = bddtree_addrange_rec(t.nextlevel, null, first, last, fixed, id); return t; } /* Before this section -> insert */ if (last < t.first) { BddTree tnew = bddtree_new(id); tnew.first = first; tnew.last = last; tnew.fixed = fixed; tnew.seq = new int[last - first + 1]; update_seq(tnew); tnew.next = t; tnew.prev = t.prev; t.prev = tnew; return tnew; } /* After this this section -> go to next */ if (first > t.last) { t.next = bddtree_addrange_rec(t.next, t, first, last, fixed, id); return t; } /* Covering this section -> insert above this level */ if (first <= t.first) { BddTree tnew; BddTree dis = t; while (true) { /* Partial cover ->error */ if (last >= dis.first && last < dis.last) return null; if (dis.next == null || last < dis.next.first) { tnew = bddtree_new(id); tnew.first = first; tnew.last = last; tnew.fixed = fixed; tnew.seq = new int[last - first + 1]; update_seq(tnew); tnew.nextlevel = t; tnew.next = dis.next; tnew.prev = t.prev; if (dis.next != null) dis.next.prev = tnew; dis.next = null; t.prev = null; return tnew; } dis = dis.next; } } return null; }
5661 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5661/36904e06e435c6de3401e122171d5c52d3013a9e/JFactory.java/buggy/JavaBDD/net/sf/javabdd/JFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 605, 449, 2471, 324, 449, 3413, 67, 1289, 3676, 67, 3927, 12, 27128, 2471, 268, 16, 605, 449, 2471, 2807, 16, 4766, 509, 1122, 16, 509, 1142, 16, 1250, 5499, 16, 509, 612, 13, 565, 288, 3639, 309, 261, 3645, 411, 374, 747, 1142, 411, 374, 747, 1142, 411, 1122, 13, 5411, 327, 446, 31, 3639, 1748, 8953, 2151, 317, 1361, 1245, 1195, 3639, 309, 261, 88, 422, 446, 13, 288, 5411, 268, 273, 324, 449, 3413, 67, 2704, 12, 350, 1769, 5411, 268, 18, 3645, 273, 1122, 31, 5411, 268, 18, 12429, 273, 5499, 31, 5411, 268, 18, 5436, 273, 394, 509, 63, 2722, 300, 1122, 397, 404, 15533, 5411, 268, 18, 2722, 273, 1142, 31, 5411, 1089, 67, 5436, 12, 88, 1769, 5411, 268, 18, 10001, 273, 2807, 31, 5411, 327, 268, 31, 3639, 289, 3639, 1748, 2073, 364, 4215, 1195, 3639, 309, 261, 3645, 422, 268, 18, 3645, 1537, 597, 1142, 422, 268, 18, 2722, 1537, 13, 5411, 327, 268, 31, 3639, 1748, 657, 5564, 333, 2442, 317, 2243, 316, 1024, 1801, 1195, 3639, 309, 261, 3645, 1545, 268, 18, 3645, 597, 1142, 1648, 268, 18, 2722, 13, 288, 5411, 268, 18, 4285, 2815, 273, 7734, 324, 449, 3413, 67, 1289, 3676, 67, 3927, 12, 88, 18, 4285, 2815, 16, 446, 16, 1122, 16, 1142, 16, 5499, 16, 612, 1769, 5411, 327, 268, 31, 3639, 289, 3639, 1748, 11672, 333, 2442, 317, 2243, 1195, 3639, 309, 261, 2722, 411, 268, 18, 3645, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 605, 449, 2471, 324, 449, 3413, 67, 1289, 3676, 67, 3927, 12, 27128, 2471, 268, 16, 605, 449, 2471, 2807, 16, 4766, 509, 1122, 16, 509, 1142, 16, 1250, 5499, 16, 509, 612, 13, 565, 288, 3639, 309, 261, 3645, 411, 374, 747, 1142, 411, 374, 747, 1142, 411, 1122, 13, 5411, 327, 446, 31, 3639, 1748, 8953, 2151, 317, 1361, 1245, 1195, 3639, 309, 261, 88, 422, 446, 13, 288, 5411, 268, 273, 324, 449, 3413, 67, 2704, 12, 350, 1769, 5411, 268, 18, 3645, 273, 1122, 31, 5411, 268, 18, 12429, 273, 5499, 31, 5411, 268, 18, 5436, 273, 394, 509, 63, 2722, 300, 1122, 397, 404, 15533, 5411, 268, 18, 2722, 273, 1142, 31, 5411, 2 ]
public org.quickfix.field.OrigTime get(org.quickfix.field.OrigTime value)
public quickfix.field.OrigTime get(quickfix.field.OrigTime value)
public org.quickfix.field.OrigTime get(org.quickfix.field.OrigTime value) throws FieldNotFound { getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/News.java/buggy/src/java/src/quickfix/fix41/News.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9549, 904, 18, 1518, 18, 4741, 950, 336, 12, 19525, 904, 18, 1518, 18, 4741, 950, 225, 460, 13, 565, 1216, 2286, 2768, 225, 288, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9549, 904, 18, 1518, 18, 4741, 950, 336, 12, 19525, 904, 18, 1518, 18, 4741, 950, 225, 460, 13, 565, 1216, 2286, 2768, 225, 288, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.out.println( s.getEvent().hashCode() + " == " + t.getEvent().hashCode() + " ??" );
private boolean advance() throws LemRuntimeException { metamodel.Class c = instance.getInstanceClass() ; metamodel.StateMachine m = c.getStateMachine() ; metamodel.State currentState = instance.currentState ; if ( m.getStateTransitionCount() == 0 ) return false; System.out.println( Thread.currentThread().getName() + " InstanceInterpreter getting a next signal" ); Signal s = instance.getNextSignal(); System.out.println( Thread.currentThread().getName() + " InstanceInterpreter got a next signal" ); Iterator i = m.getTransitionList().iterator(); System.out.println( Thread.currentThread().getName() + " InstanceInterpreter searching for a Transition" ); while ( i.hasNext() ) { Transition t = (Transition)i.next(); /* Skip initialising transition */ if ( t.getFromState() == null ) continue; System.out.println( s.getEvent().hashCode() + " == " + t.getEvent().hashCode() + " ??" ); if ( s.getEvent() == t.getEvent() && t.getFromState() == currentState ) { metamodel.State newState = t.getToState(); instance.currentState = newState; System.out.println( Thread.currentThread().getName() + " transitioning state to " + newState.getName() ); if ( newState instanceof NonDeletionState ) { Procedure p = newState.getProcedure(); System.out.println( Thread.currentThread().getName() + " executing state procedure" ); interpreter.interpret( p, context ); System.out.println( Thread.currentThread().getName() + " finished executing state procedure" ); return true; } else { return false; } } System.out.println( Thread.currentThread().getName() + " InstanceInterpreter couldn't find a transition!" ); } return true; }
10434 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10434/d6c8a38156925e4a09b1fa8d0835e99b076a3f78/InstanceInterpreter.java/buggy/trunk/src/runtime/InstanceInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 8312, 1435, 1216, 511, 351, 11949, 288, 3639, 5100, 13474, 18, 797, 276, 273, 791, 18, 588, 1442, 797, 1435, 274, 3639, 5100, 13474, 18, 1119, 6981, 312, 273, 276, 18, 588, 1119, 6981, 1435, 274, 3639, 5100, 13474, 18, 1119, 17773, 273, 791, 18, 2972, 1119, 274, 7734, 309, 261, 312, 18, 588, 1119, 8850, 1380, 1435, 422, 374, 262, 5411, 327, 629, 31, 7734, 2332, 18, 659, 18, 8222, 12, 4884, 18, 2972, 3830, 7675, 17994, 1435, 397, 315, 5180, 30010, 8742, 279, 1024, 4277, 6, 11272, 3639, 12032, 272, 273, 791, 18, 588, 2134, 11208, 5621, 3639, 2332, 18, 659, 18, 8222, 12, 4884, 18, 2972, 3830, 7675, 17994, 1435, 397, 315, 5180, 30010, 2363, 279, 1024, 4277, 6, 11272, 7734, 4498, 277, 273, 312, 18, 588, 8850, 682, 7675, 9838, 5621, 3639, 2332, 18, 659, 18, 8222, 12, 4884, 18, 2972, 3830, 7675, 17994, 1435, 397, 315, 5180, 30010, 15300, 364, 279, 16515, 6, 11272, 3639, 1323, 261, 277, 18, 5332, 2134, 1435, 262, 288, 5411, 16515, 268, 273, 261, 8850, 13, 77, 18, 4285, 5621, 13491, 1748, 6611, 2172, 13734, 6007, 1195, 5411, 309, 261, 268, 18, 588, 1265, 1119, 1435, 422, 446, 262, 7734, 1324, 31, 4766, 282, 309, 261, 272, 18, 588, 1133, 1435, 422, 268, 18, 588, 1133, 1435, 5411, 597, 268, 18, 588, 1265, 1119, 1435, 422, 17773, 262, 288, 7734, 5100, 13474, 18, 1119, 15907, 273, 268, 18, 588, 774, 1119, 5621, 7734, 791, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 8312, 1435, 1216, 511, 351, 11949, 288, 3639, 5100, 13474, 18, 797, 276, 273, 791, 18, 588, 1442, 797, 1435, 274, 3639, 5100, 13474, 18, 1119, 6981, 312, 273, 276, 18, 588, 1119, 6981, 1435, 274, 3639, 5100, 13474, 18, 1119, 17773, 273, 791, 18, 2972, 1119, 274, 7734, 309, 261, 312, 18, 588, 1119, 8850, 1380, 1435, 422, 374, 262, 5411, 327, 629, 31, 7734, 2332, 18, 659, 18, 8222, 12, 4884, 18, 2972, 3830, 7675, 17994, 1435, 397, 315, 5180, 30010, 8742, 279, 1024, 4277, 6, 11272, 3639, 12032, 272, 273, 791, 18, 588, 2134, 11208, 5621, 3639, 2332, 18, 659, 18, 8222, 12, 4884, 18, 2972, 3830, 7675, 17994, 1435, 397, 315, 5180, 2 ]
Long id = new Long(bundle.getBundle().getBundleId());
private void unresolveBundle(ResolverBundle bundle, boolean removed) { if (bundle == null) return; // check the removed list if unresolving then remove from the removed list Long id = new Long(bundle.getBundle().getBundleId()); BundleDescription[] removedBundles = null; if ((removedBundles = getRemovalPending(bundle.getBundle())) != null) { for (int i = 0; i < removedBundles.length; i++) { unresolveBundle((ResolverBundle) bundleMapping.get(removedBundles[i]), true); state.removeBundleComplete(removedBundles[i]); bundleMapping.remove(removedBundles[i]); // the bundle is removed if (removedBundles[i] == bundle.getBundle()) removed = true; } } if (!bundle.getBundle().isResolved()) return; // if not removed then add to the list of unresolvedBundles setBundleUnresolved(bundle, removed); // Get bundles dependent on 'bundle' and selected exports of 'bundle' BundleDescription[] dependents = bundle.getBundle().getDependents(); // Unresolve 'bundle' bundle.setState(ResolverBundle.UNRESOLVED); state.resolveBundle(bundle.getBundle(), false, null, null, null, null); // Unresolve dependents of 'bundle' for (int i = 0; i < dependents.length; i++) { unresolveBundle((ResolverBundle) bundleMapping.get(dependents[i]), false); } }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/33621dcd1e3d1f21c4b81a3af69042df4998ade0/ResolverImpl.java/buggy/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/module/ResolverImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 640, 10828, 3405, 12, 4301, 3405, 3440, 16, 1250, 3723, 13, 288, 202, 202, 430, 261, 9991, 422, 446, 13, 1082, 202, 2463, 31, 202, 202, 759, 866, 326, 3723, 666, 309, 640, 7818, 6282, 1508, 1206, 628, 326, 3723, 666, 202, 202, 3708, 612, 273, 394, 3407, 12, 9991, 18, 588, 3405, 7675, 588, 3405, 548, 10663, 202, 202, 3405, 3291, 8526, 3723, 16151, 273, 446, 31, 202, 202, 430, 14015, 14923, 16151, 273, 336, 24543, 8579, 12, 9991, 18, 588, 3405, 1435, 3719, 480, 446, 13, 288, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 3723, 16151, 18, 2469, 31, 277, 27245, 288, 9506, 202, 318, 10828, 3405, 12443, 4301, 3405, 13, 3440, 3233, 18, 588, 12, 14923, 16151, 63, 77, 65, 3631, 638, 1769, 9506, 202, 2019, 18, 4479, 3405, 6322, 12, 14923, 16151, 63, 77, 19226, 9506, 202, 9991, 3233, 18, 4479, 12, 14923, 16151, 63, 77, 19226, 9506, 202, 759, 326, 3440, 353, 3723, 9506, 202, 430, 261, 14923, 16151, 63, 77, 65, 422, 3440, 18, 588, 3405, 10756, 6862, 202, 14923, 273, 638, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 16051, 9991, 18, 588, 3405, 7675, 291, 12793, 10756, 1082, 202, 2463, 31, 202, 202, 759, 309, 486, 3723, 1508, 527, 358, 326, 666, 434, 20573, 16151, 202, 202, 542, 3405, 984, 11792, 12, 9991, 16, 3723, 1769, 202, 202, 759, 968, 11408, 10460, 603, 296, 9991, 11, 471, 3170, 8095, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 640, 10828, 3405, 12, 4301, 3405, 3440, 16, 1250, 3723, 13, 288, 202, 202, 430, 261, 9991, 422, 446, 13, 1082, 202, 2463, 31, 202, 202, 759, 866, 326, 3723, 666, 309, 640, 7818, 6282, 1508, 1206, 628, 326, 3723, 666, 202, 202, 3708, 612, 273, 394, 3407, 12, 9991, 18, 588, 3405, 7675, 588, 3405, 548, 10663, 202, 202, 3405, 3291, 8526, 3723, 16151, 273, 446, 31, 202, 202, 430, 14015, 14923, 16151, 273, 336, 24543, 8579, 12, 9991, 18, 588, 3405, 1435, 3719, 480, 446, 13, 288, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 3723, 16151, 18, 2469, 31, 277, 27245, 288, 9506, 202, 318, 10828, 3405, 12443, 4301, 2 ]
throw (RuntimeException) e.getCause().getCause();
throw (RuntimeException) e.getCause();
public Collection run(List<ObjectChange> changes) throws ExcepcaoPersistencia, ClassNotFoundException, IllegalAccessException, NoSuchMethodException, InstantiationException { beforeRun(changes); Hashtable<ObjectKey, Object> objects = new Hashtable<ObjectKey, Object>(); for (ObjectChange change : changes) { try { Object object = getObject(objects, change); processChange(change, object); } catch (InvocationTargetException e) { if (e.getCause() instanceof RuntimeException) { throw (RuntimeException) e.getCause().getCause(); } } } afterRun(objects.values()); return objects.values(); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/179a336416588f68edb5e41862665afb8821be99/UpdateObjects.java/buggy/src/net/sourceforge/fenixedu/applicationTier/Servico/renderers/UpdateObjects.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2200, 1086, 12, 682, 32, 921, 3043, 34, 3478, 13, 1216, 1312, 311, 2436, 6033, 12771, 28115, 16, 10403, 16, 5411, 11900, 16, 15959, 16, 19248, 288, 3639, 1865, 1997, 12, 6329, 1769, 7734, 18559, 32, 921, 653, 16, 1033, 34, 2184, 273, 394, 18559, 32, 921, 653, 16, 1033, 34, 5621, 3639, 364, 261, 921, 3043, 2549, 294, 3478, 13, 288, 5411, 775, 288, 7734, 1033, 733, 273, 6455, 12, 6911, 16, 2549, 1769, 7734, 1207, 3043, 12, 3427, 16, 733, 1769, 5411, 289, 1044, 261, 9267, 14950, 425, 13, 288, 7734, 309, 261, 73, 18, 588, 10683, 1435, 1276, 3235, 13, 288, 10792, 604, 261, 11949, 13, 425, 18, 588, 10683, 5621, 7734, 289, 5411, 289, 3639, 289, 7734, 1839, 1997, 12, 6911, 18, 2372, 10663, 7734, 327, 2184, 18, 2372, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2200, 1086, 12, 682, 32, 921, 3043, 34, 3478, 13, 1216, 1312, 311, 2436, 6033, 12771, 28115, 16, 10403, 16, 5411, 11900, 16, 15959, 16, 19248, 288, 3639, 1865, 1997, 12, 6329, 1769, 7734, 18559, 32, 921, 653, 16, 1033, 34, 2184, 273, 394, 18559, 32, 921, 653, 16, 1033, 34, 5621, 3639, 364, 261, 921, 3043, 2549, 294, 3478, 13, 288, 5411, 775, 288, 7734, 1033, 733, 273, 6455, 12, 6911, 16, 2549, 1769, 7734, 1207, 3043, 12, 3427, 16, 733, 1769, 5411, 289, 1044, 261, 9267, 14950, 425, 13, 288, 7734, 309, 261, 73, 18, 588, 10683, 1435, 1276, 3235, 13, 288, 10792, 604, 261, 11949, 13, 425, 18, 588, 10683, 5621, 7734, 289, 5411, 2 ]
int length= findString.length();
private int replaceAll(String findString, String replaceString, boolean forwardSearch, boolean caseSensitive, boolean wrapSearch, boolean wholeWord, boolean global) { int replaceCount= 0; int findReplacePosition= 0; if (wrapSearch) { // search the whole text findReplacePosition= 0; forwardSearch= true; } else if (fTarget.getSelectionText() != null) { // the cursor is set to the end or beginning of the selected text Point selection= fTarget.getSelection(); if (forwardSearch) findReplacePosition= selection.x; else findReplacePosition= selection.x + selection.y; } if (fTarget instanceof IFindReplaceTargetExtension) ((IFindReplaceTargetExtension) fTarget).setReplaceAllMode(true); try { int length= findString.length(); int index= 0; while (index != -1) { index= fTarget.findAndSelect(findReplacePosition, findString, forwardSearch, caseSensitive, wholeWord); if (index != -1) { // substring not contained from current position if (forwardSearch) findReplacePosition= index + replaceString.length(); else findReplacePosition= index; fTarget.replaceSelection(replaceString); replaceCount++; } } } finally { if (fTarget instanceof IFindReplaceTargetExtension) ((IFindReplaceTargetExtension) fTarget).setReplaceAllMode(false); } return replaceCount; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/25b2d3565b38115cccc3b73fb113ca39c4c2947a/FindReplaceDialog.java/clean/bundles/org.eclipse.ui/Eclipse UI Text Editor/org/eclipse/ui/texteditor/FindReplaceDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 10344, 12, 780, 1104, 780, 16, 514, 1453, 780, 16, 1250, 5104, 2979, 16, 1250, 20975, 16, 1250, 2193, 2979, 16, 1250, 7339, 3944, 16, 1250, 2552, 13, 288, 202, 202, 474, 1453, 1380, 33, 374, 31, 202, 202, 474, 1104, 5729, 2555, 33, 374, 31, 202, 202, 430, 261, 4113, 2979, 13, 288, 368, 1623, 326, 7339, 977, 1082, 202, 4720, 5729, 2555, 33, 374, 31, 1082, 202, 11565, 2979, 33, 638, 31, 202, 202, 97, 469, 309, 261, 74, 2326, 18, 588, 6233, 1528, 1435, 480, 446, 13, 288, 1082, 202, 759, 326, 3347, 353, 444, 358, 326, 679, 578, 8435, 434, 326, 3170, 977, 1082, 202, 2148, 4421, 33, 284, 2326, 18, 588, 6233, 5621, 1082, 202, 430, 261, 11565, 2979, 13, 9506, 202, 4720, 5729, 2555, 33, 4421, 18, 92, 31, 1082, 202, 12107, 9506, 202, 4720, 5729, 2555, 33, 4421, 18, 92, 397, 4421, 18, 93, 31, 202, 202, 97, 9506, 202, 430, 261, 74, 2326, 1276, 467, 3125, 5729, 2326, 3625, 13, 1082, 202, 12443, 45, 3125, 5729, 2326, 3625, 13, 284, 2326, 2934, 542, 5729, 1595, 2309, 12, 3767, 1769, 202, 202, 698, 288, 1082, 202, 474, 769, 33, 1104, 780, 18, 2469, 5621, 1082, 202, 474, 770, 33, 374, 31, 1082, 202, 17523, 261, 1615, 480, 300, 21, 13, 288, 9506, 202, 1615, 33, 284, 2326, 18, 4720, 1876, 3391, 12, 4720, 5729, 2555, 16, 1104, 780, 16, 5104, 2979, 16, 20975, 16, 7339, 3944, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 10344, 12, 780, 1104, 780, 16, 514, 1453, 780, 16, 1250, 5104, 2979, 16, 1250, 20975, 16, 1250, 2193, 2979, 16, 1250, 7339, 3944, 16, 1250, 2552, 13, 288, 202, 202, 474, 1453, 1380, 33, 374, 31, 202, 202, 474, 1104, 5729, 2555, 33, 374, 31, 202, 202, 430, 261, 4113, 2979, 13, 288, 368, 1623, 326, 7339, 977, 1082, 202, 4720, 5729, 2555, 33, 374, 31, 1082, 202, 11565, 2979, 33, 638, 31, 202, 202, 97, 469, 309, 261, 74, 2326, 18, 588, 6233, 1528, 1435, 480, 446, 13, 288, 1082, 202, 759, 326, 3347, 353, 444, 358, 326, 679, 578, 8435, 434, 326, 3170, 977, 1082, 202, 2148, 4421, 33, 284, 2326, 18, 2 ]
public static boolean isDesigner( HttpServletRequest request ) { boolean inDEsigner = false; if ( "true".equalsIgnoreCase( getParameter( request, PARAM_DESIGNER ) ) ) //$NON-NLS-1$ { inDEsigner = true; } return inDEsigner; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/4f8d9ec70a9a4bdebe627870db17ed54ddb4e8ef/ParameterAccessor.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/ParameterAccessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 353, 15478, 264, 12, 9984, 590, 262, 202, 95, 202, 202, 6494, 316, 1639, 2977, 264, 273, 629, 31, 9506, 202, 430, 261, 315, 3767, 9654, 14963, 5556, 12, 5575, 12, 590, 16, 4655, 67, 1639, 11260, 654, 262, 262, 262, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 95, 1082, 202, 267, 1639, 2977, 264, 273, 638, 31, 202, 202, 97, 9506, 202, 2463, 316, 1639, 2977, 264, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 353, 15478, 264, 12, 9984, 590, 262, 202, 95, 202, 202, 6494, 316, 1639, 2977, 264, 273, 629, 31, 9506, 202, 430, 261, 315, 3767, 9654, 14963, 5556, 12, 5575, 12, 590, 16, 4655, 67, 1639, 11260, 654, 262, 262, 262, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 95, 1082, 202, 267, 1639, 2977, 264, 273, 638, 31, 202, 202, 97, 9506, 202, 2463, 316, 1639, 2977, 264, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
decls = tu.getDeclarations(name_x2.resolveBinding());
decls = tu.getDeclarationsInAST(name_x2.resolveBinding());
public void testDesignatedInitializers() throws ParserException { StringBuffer buffer = new StringBuffer("typedef struct {\n"); //$NON-NLS-1$ buffer.append(" int x;\n"); //$NON-NLS-1$ buffer.append(" int y;\n"); //$NON-NLS-1$ buffer.append("} Coord;\n"); //$NON-NLS-1$ buffer.append("typedef struct {\n"); //$NON-NLS-1$ buffer.append("Coord *pos;\n"); //$NON-NLS-1$ buffer.append("int width;\n"); //$NON-NLS-1$ buffer.append("} Point;\n"); //$NON-NLS-1$ buffer.append("int main(int argc, char *argv[])\n"); //$NON-NLS-1$ buffer.append("{\n"); //$NON-NLS-1$ buffer.append("Coord xy = {.y = 10, .x = 11};\n"); //$NON-NLS-1$ buffer.append("Point point = {.width = 100, .pos = &xy};\n"); //$NON-NLS-1$ buffer.append("}\n"); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.C); assertNotNull(tu); IASTDeclaration[] declarations = tu.getDeclarations(); IASTName name_Coord = ((IASTSimpleDeclaration) declarations[0]) .getDeclarators()[0].getName(); IASTName name_x = ((IASTSimpleDeclaration) ((IASTCompositeTypeSpecifier) ((IASTSimpleDeclaration) declarations[0]) .getDeclSpecifier()).getMembers()[0]).getDeclarators()[0] .getName(); IASTName name_y = ((IASTSimpleDeclaration) ((IASTCompositeTypeSpecifier) ((IASTSimpleDeclaration) declarations[0]) .getDeclSpecifier()).getMembers()[1]).getDeclarators()[0] .getName(); IASTName name_Point = ((IASTSimpleDeclaration) declarations[1]) .getDeclarators()[0].getName(); IASTName name_pos = ((IASTSimpleDeclaration) ((IASTCompositeTypeSpecifier) ((IASTSimpleDeclaration) declarations[1]) .getDeclSpecifier()).getMembers()[0]).getDeclarators()[0] .getName(); IASTName name_width = ((IASTSimpleDeclaration) ((IASTCompositeTypeSpecifier) ((IASTSimpleDeclaration) declarations[1]) .getDeclSpecifier()).getMembers()[1]).getDeclarators()[0] .getName(); IASTFunctionDefinition main = (IASTFunctionDefinition) declarations[2]; IASTStatement[] statements = ((IASTCompoundStatement) main.getBody()) .getStatements(); IASTSimpleDeclaration xy = (IASTSimpleDeclaration) ((IASTDeclarationStatement) statements[0]) .getDeclaration(); IASTName name_Coord2 = ((IASTNamedTypeSpecifier) xy.getDeclSpecifier()) .getName(); IASTName name_xy = xy.getDeclarators()[0].getName(); IASTDeclarator declarator_xy = xy.getDeclarators()[0]; IASTInitializer[] initializers1 = ((IASTInitializerList) declarator_xy .getInitializer()).getInitializers(); IASTName name_y2 = ((ICASTFieldDesignator) ((ICASTDesignatedInitializer) initializers1[0]) .getDesignators()[0]).getName(); // test bug 87649 assertEquals(((ASTNode) (ICASTDesignatedInitializer) initializers1[0]) .getLength(), 7); IASTName name_x2 = ((ICASTFieldDesignator) ((ICASTDesignatedInitializer) initializers1[1]) .getDesignators()[0]).getName(); IASTSimpleDeclaration point = (IASTSimpleDeclaration) ((IASTDeclarationStatement) statements[1]) .getDeclaration(); IASTName name_Point2 = ((IASTNamedTypeSpecifier) point .getDeclSpecifier()).getName(); IASTName name_point = point.getDeclarators()[0].getName(); IASTDeclarator declarator_point = point.getDeclarators()[0]; IASTInitializer[] initializers2 = ((IASTInitializerList) declarator_point .getInitializer()).getInitializers(); IASTName name_width2 = ((ICASTFieldDesignator) ((ICASTDesignatedInitializer) initializers2[0]) .getDesignators()[0]).getName(); IASTName name_pos2 = ((ICASTFieldDesignator) ((ICASTDesignatedInitializer) initializers2[1]) .getDesignators()[0]).getName(); IASTName name_xy2 = ((IASTIdExpression) ((IASTUnaryExpression) ((IASTInitializerExpression) ((ICASTDesignatedInitializer) initializers2[1]) .getOperandInitializer()).getExpression()).getOperand()) .getName(); for (int i = 0; i < 2; ++i) { ICASTDesignatedInitializer designatedInitializer = (ICASTDesignatedInitializer) initializers1[i]; assertEquals(designatedInitializer.getDesignators().length, 1); ICASTFieldDesignator fieldDesignator = (ICASTFieldDesignator) designatedInitializer .getDesignators()[0]; assertNotNull(fieldDesignator.getName().toString()); } // test tu.getDeclarations(IBinding) IASTName[] decls = tu.getDeclarations(name_Coord2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_Coord); decls = tu.getDeclarations(name_xy.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_xy); decls = tu.getDeclarations(name_y2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_y); decls = tu.getDeclarations(name_x2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_x); decls = tu.getDeclarations(name_Point2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_Point); decls = tu.getDeclarations(name_point.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_point); decls = tu.getDeclarations(name_width2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_width); decls = tu.getDeclarations(name_pos2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_pos); decls = tu.getDeclarations(name_xy2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_xy); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/75cbff035e927043ff1116bbd1e33e89ab93b9cb/AST2Tests.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 15478, 690, 4435, 8426, 1435, 1216, 27990, 288, 3639, 6674, 1613, 273, 394, 6674, 2932, 723, 536, 1958, 18890, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1613, 18, 6923, 2932, 509, 619, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1613, 18, 6923, 2932, 509, 677, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1613, 18, 6923, 2932, 97, 10320, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1613, 18, 6923, 2932, 723, 536, 1958, 18890, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1613, 18, 6923, 2932, 5401, 380, 917, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1613, 18, 6923, 2932, 474, 1835, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1613, 18, 6923, 2932, 97, 4686, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1613, 18, 6923, 2932, 474, 2774, 12, 474, 1501, 71, 16, 1149, 380, 19485, 8526, 5153, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1613, 18, 6923, 2932, 23241, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1613, 18, 6923, 2932, 5401, 7668, 273, 288, 18, 93, 273, 1728, 16, 263, 92, 273, 4648, 97, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1613, 18, 6923, 2932, 2148, 1634, 273, 288, 18, 2819, 273, 2130, 16, 263, 917, 273, 473, 1698, 97, 9747, 82, 8863, 4329, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 15478, 690, 4435, 8426, 1435, 1216, 27990, 288, 3639, 6674, 1613, 273, 394, 6674, 2932, 723, 536, 1958, 18890, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1613, 18, 6923, 2932, 509, 619, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1613, 18, 6923, 2932, 509, 677, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1613, 18, 6923, 2932, 97, 10320, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1613, 18, 6923, 2932, 723, 536, 1958, 18890, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1613, 18, 6923, 2932, 5401, 380, 917, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 2 ]
policy.allow( policy.Context_isCallerInRole ); } catch ( IllegalStateException ise ) {
policy.allow(policy.Context_isCallerInRole); } catch (IllegalStateException ise) {
protected void testAllowedOperations(String methodName) { OperationsPolicy policy = new OperationsPolicy(); /*[0] Test getEJBHome /////////////////*/ try { ejbContext.getEJBHome(); policy.allow(policy.Context_getEJBHome); } catch ( IllegalStateException ise ) { } /*[1] Test getCallerPrincipal /////////*/ try { ejbContext.getCallerPrincipal(); policy.allow( policy.Context_getCallerPrincipal ); } catch ( IllegalStateException ise ) { } /*[2] Test isCallerInRole /////////////*/ try { ejbContext.isCallerInRole("ROLE"); policy.allow( policy.Context_isCallerInRole ); } catch ( IllegalStateException ise ) { } /*[3] Test getRollbackOnly ////////////*/ try { ejbContext.getRollbackOnly(); policy.allow( policy.Context_getRollbackOnly ); } catch ( IllegalStateException ise ) { } /*[4] Test setRollbackOnly ////////////*/ try { ejbContext.setRollbackOnly(); policy.allow( policy.Context_setRollbackOnly ); } catch ( IllegalStateException ise ) { } /*[5] Test getUserTransaction /////////*/ try { ejbContext.getUserTransaction(); policy.allow( policy.Context_getUserTransaction ); } catch ( IllegalStateException ise ) { } /*[6] Test getEJBObject ///////////////*/ try { ejbContext.getEJBObject(); policy.allow( policy.Context_getEJBObject ); } catch ( IllegalStateException ise ) { } /*[7] Test Context_getPrimaryKey /////////////// * * Can't really do this */ /*[8] Test JNDI_access_to_java_comp_env ///////////////*/ try { InitialContext jndiContext = new InitialContext(); String actual = (String)jndiContext.lookup("java:comp/env/stateless/references/JNDI_access_to_java_comp_env"); policy.allow( policy.JNDI_access_to_java_comp_env ); } catch ( IllegalStateException ise ) { } catch ( javax.naming.NamingException ne ) { } /*[9] Test Resource_manager_access ///////////////*/ try { InitialContext jndiContext = new InitialContext( ); DataSource ds = (DataSource)jndiContext.lookup("java:comp/env/stateless/references/Resource_manager_access"); policy.allow( policy.Resource_manager_access ); } catch ( IllegalStateException ise ) { } catch ( javax.naming.NamingException ne ) { } /*[10] Test Enterprise_bean_access ///////////////*/ try { InitialContext jndiContext = new InitialContext( ); Object obj = jndiContext.lookup("java:comp/env/stateless/beanReferences/Enterprise_bean_access"); policy.allow( policy.Enterprise_bean_access ); } catch ( IllegalStateException ise ) { } catch ( javax.naming.NamingException ne ) { } allowedOperationsTable.put(methodName, policy); }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/752037458c317f29601012a2e0efc461c25b1dc8/BasicBmpBean.java/clean/openejb2/modules/itests/src/java/org/openejb/test/entity/bmp/BasicBmpBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1842, 5042, 9343, 12, 780, 4918, 13, 288, 3639, 25938, 2582, 3329, 273, 394, 25938, 2582, 5621, 540, 1748, 63, 20, 65, 7766, 4774, 8877, 8684, 368, 2105, 18235, 19, 5549, 3639, 775, 288, 5411, 18024, 1042, 18, 588, 22719, 8684, 5621, 5411, 3329, 18, 5965, 12, 5086, 18, 1042, 67, 588, 22719, 8684, 1769, 3639, 289, 1044, 261, 5477, 31248, 262, 288, 3639, 289, 3639, 1748, 63, 21, 65, 7766, 336, 11095, 9155, 368, 18235, 19, 5549, 3639, 775, 288, 5411, 18024, 1042, 18, 588, 11095, 9155, 5621, 5411, 3329, 18, 5965, 12, 3329, 18, 1042, 67, 588, 11095, 9155, 11272, 3639, 289, 1044, 261, 5477, 31248, 262, 288, 3639, 289, 3639, 1748, 63, 22, 65, 7766, 353, 11095, 382, 2996, 368, 2105, 28111, 5549, 3639, 775, 288, 5411, 18024, 1042, 18, 291, 11095, 382, 2996, 2932, 16256, 8863, 5411, 3329, 18, 5965, 12, 3329, 18, 1042, 67, 291, 11095, 382, 2996, 11272, 3639, 289, 1044, 261, 5477, 31248, 262, 288, 3639, 289, 3639, 1748, 63, 23, 65, 7766, 4170, 355, 9669, 3386, 368, 2105, 759, 5549, 3639, 775, 288, 5411, 18024, 1042, 18, 588, 12703, 3386, 5621, 5411, 3329, 18, 5965, 12, 3329, 18, 1042, 67, 588, 12703, 3386, 11272, 3639, 289, 1044, 261, 5477, 31248, 262, 288, 3639, 289, 3639, 1748, 63, 24, 65, 7766, 444, 12703, 3386, 368, 2105, 759, 5549, 3639, 775, 288, 5411, 18024, 1042, 18, 542, 12703, 3386, 5621, 5411, 3329, 18, 5965, 12, 3329, 18, 1042, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1842, 5042, 9343, 12, 780, 4918, 13, 288, 3639, 25938, 2582, 3329, 273, 394, 25938, 2582, 5621, 540, 1748, 63, 20, 65, 7766, 4774, 8877, 8684, 368, 2105, 18235, 19, 5549, 3639, 775, 288, 5411, 18024, 1042, 18, 588, 22719, 8684, 5621, 5411, 3329, 18, 5965, 12, 5086, 18, 1042, 67, 588, 22719, 8684, 1769, 3639, 289, 1044, 261, 5477, 31248, 262, 288, 3639, 289, 3639, 1748, 63, 21, 65, 7766, 336, 11095, 9155, 368, 18235, 19, 5549, 3639, 775, 288, 5411, 18024, 1042, 18, 588, 11095, 9155, 5621, 5411, 3329, 18, 5965, 12, 3329, 18, 1042, 67, 588, 11095, 9155, 11272, 3639, 289, 1044, 261, 5477, 31248, 262, 288, 3639, 289, 3639, 1748, 63, 22, 2 ]
classification += "; "+classifications[i] ;
classification += ", "+classifications[i] ;
static public String getMetaDataFromDb (String meta_id, String parent_meta_id, User user, String host, String htmlFile, boolean showRoles ) throws IOException { String imcserver = Utility.getDomainPref("adminserver",host) ; final int NORMAL = 0 ; final int CHECKBOX = 1 ; final int OTHER = 2 ; String [] metatable = { /* Nullable Nullvalue */ "shared", "0", "disable_search", "0", "archive", "0", "show_meta", "0", "description", null, "meta_headline", null, "meta_text", null, "meta_image", null, "date_created", null, "date_modified", null, "activated_date", null, "activated_time", null, "archived_date", null, "archived_time", null, "doc_type", null, "target", null, "frame_name", null } ; // FIXME: Roll these two arrays into one. int metatabletype[] = { CHECKBOX, CHECKBOX, CHECKBOX, CHECKBOX, NORMAL, NORMAL, NORMAL, NORMAL, NORMAL, NORMAL, NORMAL, NORMAL, NORMAL, NORMAL, NORMAL, OTHER, OTHER } ; // Lets get the langprefix String lang_prefix = IMCServiceRMI.sqlQueryStr(imcserver, "select lang_prefix from lang_prefixes where lang_id = "+user.getInt("lang_id")) ; // Lets get all info for the meta id String sqlStr = "select * from meta where meta_id = "+meta_id ; Hashtable hash = IMCServiceRMI.sqlQueryHash(imcserver,sqlStr) ; // Get the info from the user object. // "temp_perm_settings" is an array containing a stringified meta-id, a hashtable of meta-info (column=value), // and a hashtable of roles and their corresponding set_id for this page (role_id=set_id). // This array comes from selecting the permissionpage. People set a lot of stuff in the page, // and then they forget to press "Save" before pressing another button. // If they press another button, this array will be put in the user-object, to remember their settings. Object[] temp_perm_settings = (Object[])user.get("temp_perm_settings") ; Vector vec = new Vector () ; if ( showRoles == true ) { getRolesFromDb(meta_id, user, host, vec) ; } user.remove("temp_perm_settings") ; // Forget about it, so it won't appear on a reload. if (temp_perm_settings != null && meta_id.equals(temp_perm_settings[0])) { // Make sure this is the right document. // Copy everything from this temporary hashtable into the meta-hash. Enumeration temp_enum = ((Hashtable)temp_perm_settings[1]).keys() ; while ( temp_enum.hasMoreElements() ) { String temp_key = (String)temp_enum.nextElement() ; ((String[])hash.get(temp_key))[0] = (String)((Hashtable)temp_perm_settings[1]).get(temp_key) ; } } // Lets get the template file String htmlStr = IMCServiceRMI.parseDoc(imcserver,null,htmlFile,lang_prefix ) ; // Lets fill the info from db into the vector vec String checks = "" ; for ( int i = 0 ; i<metatable.length ; i+=2 ) { String temp = ((String[])hash.get(metatable[i]))[0] ; String[] pd = { "&", "&amp;", "<", "&lt;", ">", "&gt;", "\"", "&quot;", } ; temp = Parser.parseDoc(temp,pd) ; String tag = "#"+metatable[i]+"#" ; if ( metatabletype[i/2] == NORMAL ) { // This is not a checkbox or an optionbox if ( htmlStr.indexOf(tag)==-1 ) { checks += "<input type=\"hidden\" name=\""+metatable[i]+"\" value=\""+temp+"\">" ; } else { vec.add(tag) ; // Replace its corresponding tag vec.add(temp) ; } } else if ( metatabletype[i/2] == CHECKBOX ) { // This is a checkbox if ( !temp.equals(metatable[i+1]) ) { // If it is equal to the nullvalue, it must not appear (i.e. equal null) if ( htmlStr.indexOf(tag)==-1 ) { checks += "<input type=\"hidden\" name=\""+metatable[i]+"\" value=\""+temp+"\">" ; } else { vec.add(tag) ; vec.add("checked") ; } } } } String target = ((String[])hash.get("target"))[0] ; String frame_name = ((String[])hash.get("frame_name"))[0] ; if ("_self".equals(target) || "_top".equals(target) || "_blank".equals(target)) { vec.add("#"+target+"#") ; vec.add("checked") ; vec.add("#frame_name#") ; vec.add("") ; } else if ("_other".equals(target) || ( target.length() == 0 && frame_name.length() != 0 ) ) { vec.add("#_other#") ; vec.add("checked") ; vec.add("#frame_name#") ; vec.add(frame_name) ; } else if (target.length() == 0) { vec.add("#_self#") ; vec.add("checked") ; vec.add("#frame_name#") ; vec.add("") ; } else { vec.add("#_other#") ; vec.add("checked") ; vec.add("#frame_name#") ; vec.add(target) ; } // Here i'll select all classification-strings and // concatenate them into one semicolon-separated string. sqlStr = "select code from classification c join meta_classification mc on mc.class_id = c.class_id where mc.meta_id = "+meta_id ; String[] classifications = IMCServiceRMI.sqlQuery(imcserver,sqlStr) ; String classification = "" ; if ( classifications.length > 0 ) { classification += classifications[0] ; for ( int i = 1 ; i<classifications.length ; ++i ) { classification += "; "+classifications[i] ; } } vec.add("#classification#") ; vec.add(classification) ; // Lets add the standard parameters to the vector vec.add("#meta_id#") ; vec.add(meta_id) ; vec.add("#parent_meta_id#") ; vec.add(parent_meta_id) ; // "#checks#" contains the extra hidden fields that are put in as a substitute for // the missing parameters. vec.add("#checks#") ; vec.add(checks) ; // Lets get the menu with the buttons String menuStr = IMCServiceRMI.getMenuButtons(imcserver, meta_id, user) ; vec.add("#adminMode#") ; vec.add(menuStr) ; // Lets get the owner from the db and add it to vec sqlStr = "select rtrim(first_name)+' '+rtrim(last_name) from users join meta on users.user_id = meta.owner_id and meta.meta_id = "+meta_id ; String owner = IMCServiceRMI.sqlQueryStr(imcserver,sqlStr) ; vec.add("#owner#") ; if ( owner != null ) { vec.add(owner) ; } else vec.add("?") ; // Lets fix the date_today tag vec.add("#date_today#") ; SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd") ; vec.add(dateformat.format(new Date())) ; // This is a nasty one, The PHB wants the parsing on the server. We're just // done with the parsing, but lets parse it on the server anyway // Lets generate the html code return IMCServiceRMI.parseDoc(imcserver, vec, htmlFile, lang_prefix ) ; } // end of parseMetaData
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a5fdebea4d2b1a378cbf78d248e3ab56fc60a772/MetaDataParser.java/clean/server/src/imcode/util/MetaDataParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 514, 23028, 1265, 4331, 261, 780, 2191, 67, 350, 16, 514, 982, 67, 3901, 67, 350, 16, 2177, 729, 16, 514, 1479, 16, 25083, 565, 514, 1729, 812, 16, 1250, 2405, 6898, 262, 1216, 1860, 288, 202, 780, 709, 71, 3567, 273, 13134, 18, 588, 3748, 23218, 2932, 3666, 3567, 3113, 2564, 13, 274, 202, 6385, 509, 16362, 225, 202, 33, 374, 274, 202, 6385, 509, 14565, 16876, 225, 202, 33, 404, 274, 202, 6385, 509, 22478, 202, 33, 576, 274, 202, 780, 5378, 5100, 8163, 273, 288, 202, 565, 1748, 225, 6375, 1082, 202, 2041, 1132, 1195, 202, 565, 315, 11574, 3113, 202, 202, 6, 20, 3113, 202, 565, 315, 8394, 67, 3072, 3113, 202, 6, 20, 3113, 202, 565, 315, 10686, 3113, 202, 202, 6, 20, 3113, 202, 565, 315, 4500, 67, 3901, 3113, 202, 6, 20, 3113, 202, 565, 315, 3384, 3113, 202, 2011, 16, 202, 565, 315, 3901, 67, 1978, 1369, 3113, 202, 2011, 16, 202, 565, 315, 3901, 67, 955, 3113, 202, 2011, 16, 202, 565, 315, 3901, 67, 2730, 3113, 202, 2011, 16, 202, 565, 315, 712, 67, 4824, 3113, 202, 2011, 16, 202, 565, 315, 712, 67, 7342, 3113, 202, 2011, 16, 202, 565, 315, 18836, 67, 712, 3113, 202, 2011, 16, 202, 565, 315, 18836, 67, 957, 3113, 202, 2011, 16, 202, 565, 315, 991, 2950, 67, 712, 3113, 202, 2011, 16, 202, 565, 315, 991, 2950, 67, 957, 3113, 202, 2011, 16, 202, 565, 315, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 514, 23028, 1265, 4331, 261, 780, 2191, 67, 350, 16, 514, 982, 67, 3901, 67, 350, 16, 2177, 729, 16, 514, 1479, 16, 25083, 565, 514, 1729, 812, 16, 1250, 2405, 6898, 262, 1216, 1860, 288, 202, 780, 709, 71, 3567, 273, 13134, 18, 588, 3748, 23218, 2932, 3666, 3567, 3113, 2564, 13, 274, 202, 6385, 509, 16362, 225, 202, 33, 374, 274, 202, 6385, 509, 14565, 16876, 225, 202, 33, 404, 274, 202, 6385, 509, 22478, 202, 33, 576, 274, 202, 780, 5378, 5100, 8163, 273, 288, 202, 565, 1748, 225, 6375, 1082, 202, 2041, 1132, 1195, 202, 565, 315, 11574, 3113, 202, 202, 6, 20, 3113, 202, 565, 315, 8394, 67, 3072, 3113, 202, 2 ]
WorkbenchPart part = (WorkbenchPart)getActivePart();
IWorkbenchPart part = getActivePart();
public void run() { WorkbenchPart part = (WorkbenchPart)getActivePart(); if(part != null) ((PartSite)part.getSite()).getPane().showPaneMenu();}
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/8a28c3b8bd1305702e7ceba48edfed57e3b0a68f/ShowMenuAction.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/ShowMenuAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1086, 1435, 288, 202, 2421, 22144, 1988, 1087, 273, 261, 2421, 22144, 1988, 13, 588, 3896, 1988, 5621, 202, 430, 12, 2680, 480, 446, 13, 202, 202, 12443, 1988, 4956, 13, 2680, 18, 588, 4956, 1435, 2934, 588, 8485, 7675, 4500, 8485, 4599, 5621, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1086, 1435, 288, 202, 2421, 22144, 1988, 1087, 273, 261, 2421, 22144, 1988, 13, 588, 3896, 1988, 5621, 202, 430, 12, 2680, 480, 446, 13, 202, 202, 12443, 1988, 4956, 13, 2680, 18, 588, 4956, 1435, 2934, 588, 8485, 7675, 4500, 8485, 4599, 5621, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public boolean visit(Block node) {
public boolean visit(AnonymousClassDeclaration node) {
public boolean visit(Block node) { this.result.append('{'); visitList(node, Block.STATEMENTS_PROPERTY, null); this.result.append('}'); return false; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/2fcc7d0f6d73a0e1ec44b95addeba29a0b163a14/ASTRewriteFlattener.java/clean/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFlattener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3757, 12, 1768, 756, 13, 288, 202, 202, 2211, 18, 2088, 18, 6923, 2668, 95, 8284, 202, 202, 11658, 682, 12, 2159, 16, 3914, 18, 28411, 55, 67, 9900, 16, 446, 1769, 202, 202, 2211, 18, 2088, 18, 6923, 2668, 1713, 1769, 202, 202, 2463, 629, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3757, 12, 1768, 756, 13, 288, 202, 202, 2211, 18, 2088, 18, 6923, 2668, 95, 8284, 202, 202, 11658, 682, 12, 2159, 16, 3914, 18, 28411, 55, 67, 9900, 16, 446, 1769, 202, 202, 2211, 18, 2088, 18, 6923, 2668, 1713, 1769, 202, 202, 2463, 629, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.out.println(raster +" "+ width +" "+ height);
private void createRaster(int dataType) { boolean createdValidBuffer = false; try{ raster = cm.createCompatibleWritableRaster(width, height); int rasterType = raster.getDataBuffer().getDataType(); if (rasterType == dataType) { switch (rasterType) { case DataBuffer.TYPE_INT: { iData = accessor.getDataInt(raster.getDataBuffer()); if (iData != null) { createdValidBuffer = true; } break; } case DataBuffer.TYPE_BYTE: { bData = accessor.getDataByte(raster.getDataBuffer()); if (bData != null) { createdValidBuffer = true; } break; } default: createdValidBuffer = false; } if(cm == ColorModel.getRGBdefault()){ forcedRGB = true; } } else { createdValidBuffer = false; } } catch(Exception e) { createdValidBuffer = false; } if (createdValidBuffer == false) { cm = ColorModel.getRGBdefault(); raster = cm.createCompatibleWritableRaster(width, height); System.out.println(raster +" "+ width +" "+ height); iData = accessor.getDataInt(raster.getDataBuffer()); bData = null; forcedRGB = true; } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/1380f0b7d7529273757b8c60cba9603d41c15f4d/BufferedImageFilter.java/clean/modules/awt/src/main/java/common/java/awt/image/BufferedImageFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 18637, 12, 474, 8891, 13, 288, 3639, 1250, 2522, 1556, 1892, 273, 629, 31, 3639, 775, 95, 5411, 12553, 273, 5003, 18, 2640, 14599, 12061, 18637, 12, 2819, 16, 2072, 1769, 5411, 509, 12553, 559, 273, 12553, 18, 588, 751, 1892, 7675, 588, 6273, 5621, 5411, 309, 261, 24215, 559, 422, 8891, 13, 288, 7734, 1620, 261, 24215, 559, 13, 288, 10792, 648, 1910, 1892, 18, 2399, 67, 3217, 30, 288, 13491, 277, 751, 273, 9789, 18, 588, 751, 1702, 12, 24215, 18, 588, 751, 1892, 10663, 13491, 309, 261, 77, 751, 480, 446, 13, 288, 18701, 2522, 1556, 1892, 273, 638, 31, 13491, 289, 13491, 898, 31, 10792, 289, 10792, 648, 1910, 1892, 18, 2399, 67, 15377, 30, 288, 13491, 324, 751, 273, 9789, 18, 588, 751, 3216, 12, 24215, 18, 588, 751, 1892, 10663, 13491, 309, 261, 70, 751, 480, 446, 13, 288, 18701, 2522, 1556, 1892, 273, 638, 31, 13491, 289, 13491, 898, 31, 10792, 289, 10792, 805, 30, 13491, 2522, 1556, 1892, 273, 629, 31, 7734, 289, 7734, 309, 12, 7670, 422, 5563, 1488, 18, 588, 11343, 1886, 10756, 95, 10792, 13852, 11343, 273, 638, 31, 7734, 289, 5411, 289, 469, 288, 7734, 2522, 1556, 1892, 273, 629, 31, 5411, 289, 3639, 289, 1044, 12, 503, 425, 13, 288, 5411, 2522, 1556, 1892, 273, 629, 31, 3639, 289, 3639, 309, 261, 4824, 1556, 1892, 422, 629, 13, 288, 5411, 5003, 273, 5563, 1488, 18, 588, 11343, 1886, 5621, 5411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 18637, 12, 474, 8891, 13, 288, 3639, 1250, 2522, 1556, 1892, 273, 629, 31, 3639, 775, 95, 5411, 12553, 273, 5003, 18, 2640, 14599, 12061, 18637, 12, 2819, 16, 2072, 1769, 5411, 509, 12553, 559, 273, 12553, 18, 588, 751, 1892, 7675, 588, 6273, 5621, 5411, 309, 261, 24215, 559, 422, 8891, 13, 288, 7734, 1620, 261, 24215, 559, 13, 288, 10792, 648, 1910, 1892, 18, 2399, 67, 3217, 30, 288, 13491, 277, 751, 273, 9789, 18, 588, 751, 1702, 12, 24215, 18, 588, 751, 1892, 10663, 13491, 309, 261, 77, 751, 480, 446, 13, 288, 18701, 2522, 1556, 1892, 273, 638, 31, 13491, 289, 13491, 898, 31, 10792, 289, 10792, 648, 1910, 1892, 18, 2 ]
else if (element.equals(REGISTRYDBLOCATION))
else if (element.getName().equals(REGISTRYDBLOCATION))
public static MartRegistry DocumentToMartRegistry(Document doc) throws ConfigurationException { Element thisElement = doc.getRootElement(); MartRegistry martreg = new MartRegistry(); for (Iterator iter = thisElement.getChildren().iterator(); iter.hasNext();) { Element element = (Element) iter.next(); if (element.getName().equals(VSCHEMA)) { String name = element.getAttributeValue("name"); virtualSchema vschema = new virtualSchema(name); MartLocation[] martLocs = getLocations(element); for (int i = 0, n = martLocs.length; i < n; i++) { vschema.addMartLocation(martLocs[i]); } } else { if (element.getName().equals(URLLOCATION)) martreg.addMartLocation(getURLLocation(element)); else if (element.getName().equals(DATABASELOCATION)) martreg.addMartLocation(getDBLocation(element)); else if (element.getName().equals(REGISTRYLOCATION)) martreg.addMartLocation(getRegLocation(element)); else if (element.equals(REGISTRYDBLOCATION)) martreg.addMartLocation(getRegDBLocation(element)); //else not needed } } return martreg; }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/97370f18ee12b38e40ec8a45143810986ec45a69/MartRegistryXMLUtils.java/clean/src/java/org/ensembl/mart/lib/config/MartRegistryXMLUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 490, 485, 4243, 4319, 774, 49, 485, 4243, 12, 2519, 997, 13, 1216, 22196, 288, 202, 202, 1046, 333, 1046, 273, 997, 18, 588, 2375, 1046, 5621, 202, 202, 49, 485, 4243, 312, 485, 1574, 273, 394, 490, 485, 4243, 5621, 202, 202, 1884, 261, 3198, 1400, 273, 333, 1046, 18, 588, 4212, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 5411, 3010, 930, 273, 261, 1046, 13, 1400, 18, 4285, 5621, 5411, 309, 261, 2956, 18, 17994, 7675, 14963, 12, 58, 14233, 3719, 288, 2868, 514, 508, 273, 930, 18, 588, 14942, 2932, 529, 8863, 12900, 5024, 3078, 331, 4821, 273, 394, 5024, 3078, 12, 529, 1769, 2868, 490, 485, 2735, 8526, 312, 485, 1333, 87, 273, 336, 10985, 12, 2956, 1769, 2868, 364, 261, 474, 277, 273, 374, 16, 290, 273, 312, 485, 1333, 87, 18, 2469, 31, 277, 411, 290, 31, 277, 27245, 288, 7734, 331, 4821, 18, 1289, 49, 485, 2735, 12, 81, 485, 1333, 87, 63, 77, 19226, 2868, 289, 5411, 289, 469, 288, 7734, 309, 261, 2956, 18, 17994, 7675, 14963, 12, 1785, 15277, 3719, 5375, 312, 485, 1574, 18, 1289, 49, 485, 2735, 12, 588, 1785, 2735, 12, 2956, 10019, 7734, 469, 309, 261, 2956, 18, 17994, 7675, 14963, 12, 22366, 15277, 3719, 5375, 312, 485, 1574, 18, 1289, 49, 485, 2735, 12, 588, 2290, 2735, 12, 2956, 10019, 7734, 469, 309, 261, 2956, 18, 17994, 7675, 14963, 12, 5937, 25042, 15277, 3719, 5375, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 490, 485, 4243, 4319, 774, 49, 485, 4243, 12, 2519, 997, 13, 1216, 22196, 288, 202, 202, 1046, 333, 1046, 273, 997, 18, 588, 2375, 1046, 5621, 202, 202, 49, 485, 4243, 312, 485, 1574, 273, 394, 490, 485, 4243, 5621, 202, 202, 1884, 261, 3198, 1400, 273, 333, 1046, 18, 588, 4212, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 5411, 3010, 930, 273, 261, 1046, 13, 1400, 18, 4285, 5621, 5411, 309, 261, 2956, 18, 17994, 7675, 14963, 12, 58, 14233, 3719, 288, 2868, 514, 508, 273, 930, 18, 588, 14942, 2932, 529, 8863, 12900, 5024, 3078, 331, 4821, 273, 394, 5024, 3078, 12, 529, 1769, 2868, 490, 485, 2735, 8526, 2 ]
public TextDocumentParser( IMCServiceInterface serverobject ) {
public TextDocumentParser( ImcmsServices serverobject ) {
public TextDocumentParser( IMCServiceInterface serverobject ) { this.service = serverobject; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/d060a6873350aa2972f54c354321cf3756f50e6f/TextDocumentParser.java/buggy/server/src/imcode/server/parser/TextDocumentParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3867, 2519, 2678, 12, 2221, 6851, 5676, 1438, 1612, 262, 288, 3639, 333, 18, 3278, 273, 1438, 1612, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3867, 2519, 2678, 12, 2221, 6851, 5676, 1438, 1612, 262, 288, 3639, 333, 18, 3278, 273, 1438, 1612, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
else { if (dc == '0') {/* ECMA 3, 1-9 or 01-99 */ if ((dp + 2) < da.length) { dc = da[dp + 2]; if (NativeRegExp.isDigit(dc)) { num = NativeRegExp.unDigit(dc); cp = dp + 3; } else return null; } else return null; /* $0 is not valid */ } else { num = NativeRegExp.unDigit(dc); cp = dp + 2; if ((dp + 2) < da.length) { dc = da[dp + 2]; if (NativeRegExp.isDigit(dc)) { num = 10 * num + NativeRegExp.unDigit(dc); cp++; } } } }
static SubString interpretDollar(RegExpImpl res, char[] da, int dp, int bp, int[] skip) { char[] ca; int cp; char dc; int num, tmp; /* Allow a real backslash (literal "\\") to escape "$1" etc. */ if (da[dp] != '$') throw new RuntimeException(); if (dp > bp && da[dp-1] == '\\') return null; /* Interpret all Perl match-induced dollar variables. */ dc = da[dp+1]; if (NativeRegExp.isDigit(dc)) { if (dc == '0') return null; /* Check for overflow to avoid gobbling arbitrary decimal digits. */ num = 0; ca = da; cp = dp; while (++cp < ca.length && NativeRegExp.isDigit(dc = ca[cp])) { tmp = 10 * num + NativeRegExp.unDigit(dc); if (tmp < num) break; num = tmp; } /* Adjust num from 1 $n-origin to 0 array-index-origin. */ num--; skip[0] = cp - dp; return res.getParenSubString(num); } skip[0] = 2; switch (dc) { case '&': return res.lastMatch; case '+': return res.lastParen; case '`': Context cx = Context.getCurrentContext(); if (cx.getLanguageVersion() == Context.VERSION_1_2) { /* * JS1.2 imitated the Perl4 bug where left context at each step * in an iterative use of a global regexp started from last match, * not from the start of the target string. But Perl4 does start * $` at the beginning of the target string when it is used in a * substitution, so we emulate that special case here. */ res.leftContext.index = 0; res.leftContext.length = res.lastMatch.index; } return res.leftContext; case '\'': return res.rightContext; } return null; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/bcf6134bdea4b7078a51fba9f7ad09d436f5fab3/RegExpImpl.java/buggy/js/rhino/org/mozilla/javascript/regexp/RegExpImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 469, 288, 309, 261, 7201, 422, 296, 20, 6134, 288, 20308, 7773, 5535, 890, 16, 404, 17, 29, 578, 8743, 17, 2733, 1195, 309, 14015, 9295, 397, 576, 13, 411, 5248, 18, 2469, 13, 288, 6744, 273, 5248, 63, 9295, 397, 576, 15533, 309, 261, 9220, 13673, 18, 291, 10907, 12, 7201, 3719, 288, 818, 273, 16717, 13673, 18, 318, 10907, 12, 7201, 1769, 3283, 273, 9986, 397, 890, 31, 289, 469, 327, 446, 31, 289, 469, 327, 446, 31, 1748, 271, 20, 353, 486, 923, 1195, 289, 469, 288, 818, 273, 16717, 13673, 18, 318, 10907, 12, 7201, 1769, 3283, 273, 9986, 397, 576, 31, 309, 14015, 9295, 397, 576, 13, 411, 5248, 18, 2469, 13, 288, 6744, 273, 5248, 63, 9295, 397, 576, 15533, 309, 261, 9220, 13673, 18, 291, 10907, 12, 7201, 3719, 288, 818, 273, 1728, 380, 818, 397, 16717, 13673, 18, 318, 10907, 12, 7201, 1769, 3283, 9904, 31, 289, 289, 289, 289, 469, 288, 309, 261, 7201, 422, 296, 20, 6134, 288, 20308, 7773, 5535, 890, 16, 404, 17, 29, 578, 8743, 17, 2733, 1195, 309, 14015, 9295, 397, 576, 13, 411, 5248, 18, 2469, 13, 288, 6744, 273, 5248, 63, 9295, 397, 576, 15533, 309, 261, 9220, 13673, 18, 291, 10907, 12, 7201, 3719, 288, 818, 273, 16717, 13673, 18, 318, 10907, 12, 7201, 1769, 3283, 273, 9986, 397, 890, 31, 289, 469, 327, 446, 31, 289, 469, 327, 446, 31, 1748, 271, 20, 353, 486, 923, 1195, 289, 469, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 469, 288, 309, 261, 7201, 422, 296, 20, 6134, 288, 20308, 7773, 5535, 890, 16, 404, 17, 29, 578, 8743, 17, 2733, 1195, 309, 14015, 9295, 397, 576, 13, 411, 5248, 18, 2469, 13, 288, 6744, 273, 5248, 63, 9295, 397, 576, 15533, 309, 261, 9220, 13673, 18, 291, 10907, 12, 7201, 3719, 288, 818, 273, 16717, 13673, 18, 318, 10907, 12, 7201, 1769, 3283, 273, 9986, 397, 890, 31, 289, 469, 327, 446, 31, 289, 469, 327, 446, 31, 1748, 271, 20, 353, 486, 923, 1195, 289, 469, 288, 818, 273, 16717, 13673, 18, 318, 10907, 12, 7201, 1769, 3283, 273, 9986, 397, 576, 31, 309, 14015, 9295, 397, 576, 13, 411, 5248, 18, 2469, 13, 288, 6744, 2 ]
public Preprocessor(Reader reader, String filename, IScannerInfo info, ISourceElementRequestor requestor, ParserMode mode, ParserLanguage language, IParserLogService logService ) { super(reader, filename, info, requestor, mode, language, logService );
public Preprocessor(Reader reader, String filename, IScannerInfo info, ISourceElementRequestor requestor, ParserMode mode, ParserLanguage language, IParserLogService logService, IScannerExtension scannerExtension ) { super(reader, filename, info, requestor, mode, language, logService, scannerExtension );
public Preprocessor(Reader reader, String filename, IScannerInfo info, ISourceElementRequestor requestor, ParserMode mode, ParserLanguage language, IParserLogService logService ) { super(reader, filename, info, requestor, mode, language, logService ); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/6dbe39d0d05fc79c35b81cae69bd88ac089585bb/Preprocessor.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/Preprocessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2962, 8700, 12, 2514, 2949, 16, 514, 1544, 16, 467, 11338, 966, 1123, 16, 467, 1830, 1046, 691, 280, 590, 280, 16, 6783, 2309, 1965, 16, 6783, 3779, 2653, 16, 467, 2678, 1343, 1179, 613, 1179, 262, 288, 3639, 2240, 12, 10530, 16, 1544, 16, 1123, 16, 590, 280, 16, 1965, 16, 2653, 16, 613, 1179, 225, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2962, 8700, 12, 2514, 2949, 16, 514, 1544, 16, 467, 11338, 966, 1123, 16, 467, 1830, 1046, 691, 280, 590, 280, 16, 6783, 2309, 1965, 16, 6783, 3779, 2653, 16, 467, 2678, 1343, 1179, 613, 1179, 262, 288, 3639, 2240, 12, 10530, 16, 1544, 16, 1123, 16, 590, 280, 16, 1965, 16, 2653, 16, 613, 1179, 225, 11272, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
case '0': break; case 'Z': loop = false; break;
case 'Z': l_endQuery = true; break;
public Object fastpath(int fnid, boolean resulttype, FastpathArg[] args) throws SQLException { // added Oct 7 1998 to give us thread safety synchronized (stream) { // send the function call try { // 70 is 'F' in ASCII. Note: don't use SendChar() here as it adds padding // that confuses the backend. The 0 terminates the command line. stream.SendInteger(70, 1); stream.SendInteger(0, 1); stream.SendInteger(fnid, 4); stream.SendInteger(args.length, 4); for (int i = 0;i < args.length;i++) args[i].send(stream); // This is needed, otherwise data can be lost stream.flush(); } catch (IOException ioe) { throw new PSQLException("postgresql.fp.send", new Integer(fnid), ioe); } // Now handle the result // We should get 'V' on sucess or 'E' on error. Anything else is treated // as an error. //int in = stream.ReceiveChar(); //DriverManager.println("ReceiveChar() = "+in+" '"+((char)in)+"'"); //if (in!='V') { //if (in=='E') //throw new SQLException(stream.ReceiveString(conn.getEncoding())); //throw new SQLException("Fastpath: expected 'V' from backend, got "+((char)in)); //} // Now loop, reading the results Object result = null; // our result StringBuffer errorMessage = null; boolean loop = true; while (loop) { int in = stream.ReceiveChar(); //DriverManager.println("ReceiveChar() = "+in+" '"+((char)in)+"'"); switch (in) { case 'V': break; //------------------------------ // Function returned properly // case 'G': int sz = stream.ReceiveIntegerR(4); //DriverManager.println("G: size="+sz); //debug // Return an Integer if if (resulttype) result = new Integer(stream.ReceiveIntegerR(sz)); else { byte buf[] = new byte[sz]; stream.Receive(buf, 0, sz); result = buf; } break; //------------------------------ // Error message returned case 'E': if ( errorMessage == null ) errorMessage = new StringBuffer(); errorMessage.append(stream.ReceiveString(conn.getEncoding())); break; //------------------------------ // Notice from backend case 'N': conn.addWarning(stream.ReceiveString(conn.getEncoding())); break; //------------------------------ // End of results // // Here we simply return res, which would contain the result // processed earlier. If no result, this already contains null case '0': //DriverManager.println("returning "+result); // return result; break; case 'Z': // cause the loop to exit loop = false; break; default: throw new PSQLException("postgresql.fp.protocol", new Character((char)in)); } } if ( errorMessage != null ) throw new PSQLException("postgresql.fp.error", errorMessage.toString()); return result; } }
45534 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45534/ef7d7910745cf2812007668138eaaf0a8e1d8d99/Fastpath.java/clean/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 14469, 12, 474, 2295, 350, 16, 1250, 563, 723, 16, 9545, 803, 4117, 8526, 833, 13, 1216, 6483, 202, 95, 202, 202, 759, 3096, 29482, 2371, 23673, 28, 358, 8492, 584, 2650, 24179, 202, 202, 22043, 261, 3256, 13, 202, 202, 95, 1082, 202, 759, 1366, 326, 445, 745, 1082, 202, 698, 1082, 202, 95, 9506, 202, 759, 16647, 353, 296, 42, 11, 316, 11768, 18, 3609, 30, 2727, 1404, 999, 2479, 2156, 1435, 2674, 487, 518, 4831, 4992, 9506, 202, 759, 716, 2195, 6117, 326, 4221, 18, 1021, 374, 30559, 326, 1296, 980, 18, 9506, 202, 3256, 18, 3826, 4522, 12, 7301, 16, 404, 1769, 9506, 202, 3256, 18, 3826, 4522, 12, 20, 16, 404, 1769, 9506, 202, 3256, 18, 3826, 4522, 12, 4293, 350, 16, 1059, 1769, 9506, 202, 3256, 18, 3826, 4522, 12, 1968, 18, 2469, 16, 1059, 1769, 9506, 202, 1884, 261, 474, 277, 273, 374, 31, 77, 411, 833, 18, 2469, 31, 77, 27245, 6862, 202, 1968, 63, 77, 8009, 4661, 12, 3256, 1769, 9506, 202, 759, 1220, 353, 3577, 16, 3541, 501, 848, 506, 13557, 9506, 202, 3256, 18, 11330, 5621, 1082, 202, 97, 1082, 202, 14683, 261, 14106, 10847, 13, 1082, 202, 95, 9506, 202, 12849, 394, 453, 23116, 2932, 2767, 24330, 18, 7944, 18, 4661, 3113, 394, 2144, 12, 4293, 350, 3631, 10847, 1769, 1082, 202, 97, 1082, 202, 759, 4494, 1640, 326, 563, 1082, 202, 759, 1660, 1410, 336, 296, 58, 11, 603, 1597, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 14469, 12, 474, 2295, 350, 16, 1250, 563, 723, 16, 9545, 803, 4117, 8526, 833, 13, 1216, 6483, 202, 95, 202, 202, 759, 3096, 29482, 2371, 23673, 28, 358, 8492, 584, 2650, 24179, 202, 202, 22043, 261, 3256, 13, 202, 202, 95, 1082, 202, 759, 1366, 326, 445, 745, 1082, 202, 698, 1082, 202, 95, 9506, 202, 759, 16647, 353, 296, 42, 11, 316, 11768, 18, 3609, 30, 2727, 1404, 999, 2479, 2156, 1435, 2674, 487, 518, 4831, 4992, 9506, 202, 759, 716, 2195, 6117, 326, 4221, 18, 1021, 374, 30559, 326, 1296, 980, 18, 9506, 202, 3256, 18, 3826, 4522, 12, 7301, 16, 404, 1769, 9506, 202, 3256, 18, 3826, 4522, 12, 20, 16, 2 ]
LayoutUtil.setWidthHint(fContainerDialogField.getLabelControl(null), widthHint); LayoutUtil.setHorizontalSpan(fContainerDialogField.getLabelControl(null), 2);
Text textControl= fContainerDialogField.getTextControl(inner); GridData textData= new GridData(); textData.widthHint= widthHint; textData.grabExcessHorizontalSpace= true; textData.horizontalIndent= indent; textControl.setLayoutData(textData);
protected Control createDialogArea(Composite parent) { Composite composite= (Composite)super.createDialogArea(parent); int widthHint= convertWidthInCharsToPixels(60); Composite inner= new Composite(composite, SWT.NONE); GridLayout layout= new GridLayout(); layout.marginHeight= 0; layout.marginWidth= 0; layout.numColumns= 2; inner.setLayout(layout); fContainerDialogField.doFillIntoGrid(inner, 3); LayoutUtil.setWidthHint(fContainerDialogField.getLabelControl(null), widthHint); LayoutUtil.setHorizontalSpan(fContainerDialogField.getLabelControl(null), 2); LayoutUtil.setWidthHint(fContainerDialogField.getTextControl(null), widthHint); LayoutUtil.setHorizontalGrabbing(fContainerDialogField.getTextControl(null)); fContainerDialogField.postSetFocusOnDialogField(parent.getDisplay()); return composite; }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/c3490497f52e9918326edad5d4ad9b745e0b4d58/OutputLocationDialog.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/OutputLocationDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6353, 5484, 12, 9400, 982, 13, 288, 202, 202, 9400, 9635, 33, 261, 9400, 13, 9565, 18, 2640, 6353, 5484, 12, 2938, 1769, 9506, 202, 474, 1835, 7002, 33, 1765, 2384, 382, 7803, 774, 18079, 12, 4848, 1769, 9506, 202, 9400, 3443, 33, 394, 14728, 12, 27676, 16, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 3744, 3511, 33, 394, 7145, 3744, 5621, 202, 202, 6741, 18, 10107, 2686, 33, 374, 31, 202, 202, 6741, 18, 10107, 2384, 33, 374, 31, 202, 202, 6741, 18, 2107, 3380, 33, 576, 31, 202, 202, 7872, 18, 542, 3744, 12, 6741, 1769, 9506, 202, 74, 2170, 6353, 974, 18, 2896, 8026, 5952, 6313, 12, 7872, 16, 890, 1769, 9506, 202, 3744, 1304, 18, 542, 2384, 7002, 12, 74, 2170, 6353, 974, 18, 588, 2224, 3367, 12, 2011, 3631, 1835, 7002, 1769, 202, 202, 3744, 1304, 18, 542, 14457, 6952, 12, 74, 2170, 6353, 974, 18, 588, 2224, 3367, 12, 2011, 3631, 576, 1769, 9506, 202, 3744, 1304, 18, 542, 2384, 7002, 12, 74, 2170, 6353, 974, 18, 588, 1528, 3367, 12, 2011, 3631, 1835, 7002, 1769, 202, 202, 3744, 1304, 18, 542, 14457, 14571, 9897, 310, 12, 74, 2170, 6353, 974, 18, 588, 1528, 3367, 12, 2011, 10019, 25083, 202, 74, 2170, 6353, 974, 18, 2767, 694, 9233, 1398, 6353, 974, 12, 2938, 18, 588, 4236, 10663, 202, 202, 2463, 9635, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6353, 5484, 12, 9400, 982, 13, 288, 202, 202, 9400, 9635, 33, 261, 9400, 13, 9565, 18, 2640, 6353, 5484, 12, 2938, 1769, 9506, 202, 474, 1835, 7002, 33, 1765, 2384, 382, 7803, 774, 18079, 12, 4848, 1769, 9506, 202, 9400, 3443, 33, 394, 14728, 12, 27676, 16, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 3744, 3511, 33, 394, 7145, 3744, 5621, 202, 202, 6741, 18, 10107, 2686, 33, 374, 31, 202, 202, 6741, 18, 10107, 2384, 33, 374, 31, 202, 202, 6741, 18, 2107, 3380, 33, 576, 31, 202, 202, 7872, 18, 542, 3744, 12, 6741, 1769, 9506, 202, 74, 2170, 6353, 974, 18, 2896, 8026, 5952, 6313, 12, 7872, 16, 890, 2 ]
subSequenceSpecifiers = new ArrayList();
subSequenceSpecifiers = new java.util.ArrayList();
public void handleAttrs(Attributes attlist) throws FOPException { super.handleAttrs(attlist); subSequenceSpecifiers = new ArrayList(); if (parent.getName().equals("fo:layout-master-set")) { this.layoutMasterSet = (LayoutMasterSet)parent; String pm = this.properties.get("master-name").getString(); if (pm == null) { getLogger().warn("page-sequence-master does not have " + "a master-name and so is being ignored"); } else { this.layoutMasterSet.addPageSequenceMaster(pm, this); } } else { throw new FOPException("fo:page-sequence-master must be child " + "of fo:layout-master-set, not " + parent.getName()); } }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/541f74f88cfcdb9a5aaa1fa33cca4d89d74de80e/PageSequenceMaster.java/buggy/src/org/apache/fop/fo/pagination/PageSequenceMaster.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 8262, 12, 2498, 2403, 1098, 13, 1216, 478, 3665, 503, 288, 3639, 2240, 18, 4110, 8262, 12, 4558, 1098, 1769, 3639, 720, 4021, 1990, 3383, 273, 394, 2252, 18, 1367, 18, 19558, 5621, 3639, 309, 261, 2938, 18, 17994, 7675, 14963, 2932, 617, 30, 6741, 17, 7525, 17, 542, 6, 3719, 288, 5411, 333, 18, 6741, 7786, 694, 273, 261, 3744, 7786, 694, 13, 2938, 31, 5411, 514, 7430, 273, 333, 18, 4738, 18, 588, 2932, 7525, 17, 529, 20387, 588, 780, 5621, 5411, 309, 261, 7755, 422, 446, 13, 288, 7734, 7156, 7675, 8935, 2932, 2433, 17, 6178, 17, 7525, 1552, 486, 1240, 315, 4766, 4202, 397, 315, 69, 4171, 17, 529, 471, 1427, 353, 3832, 5455, 8863, 5411, 289, 469, 288, 7734, 333, 18, 6741, 7786, 694, 18, 1289, 1964, 4021, 7786, 12, 7755, 16, 333, 1769, 5411, 289, 3639, 289, 469, 288, 5411, 604, 394, 478, 3665, 503, 2932, 617, 30, 2433, 17, 6178, 17, 7525, 1297, 506, 1151, 315, 4766, 282, 397, 315, 792, 18261, 30, 6741, 17, 7525, 17, 542, 16, 486, 315, 4766, 282, 397, 982, 18, 17994, 10663, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 8262, 12, 2498, 2403, 1098, 13, 1216, 478, 3665, 503, 288, 3639, 2240, 18, 4110, 8262, 12, 4558, 1098, 1769, 3639, 720, 4021, 1990, 3383, 273, 394, 2252, 18, 1367, 18, 19558, 5621, 3639, 309, 261, 2938, 18, 17994, 7675, 14963, 2932, 617, 30, 6741, 17, 7525, 17, 542, 6, 3719, 288, 5411, 333, 18, 6741, 7786, 694, 273, 261, 3744, 7786, 694, 13, 2938, 31, 5411, 514, 7430, 273, 333, 18, 4738, 18, 588, 2932, 7525, 17, 529, 20387, 588, 780, 5621, 5411, 309, 261, 7755, 422, 446, 13, 288, 7734, 7156, 7675, 8935, 2932, 2433, 17, 6178, 17, 7525, 1552, 486, 1240, 315, 4766, 4202, 397, 315, 69, 4171, 17, 529, 471, 1427, 2 ]
deleteRow( HandleAdapterFactory.getInstance( ) .getRowHandleAdapter( temp.get( i ) ) .getRowNumber( ) );
deleteRow( HandleAdapterFactory.getInstance( ).getRowHandleAdapter( temp.get( i ) ).getRowNumber( ) );
public void deleteRow( int[] rows ) throws SemanticException { if ( rows == null ) { return; } transStar( TRANS_LABEL_DELETE_ROWS ); if ( getRowCount( ) == rows.length ) { getHandle( ).drop( ); transEnd( ); return; } Arrays.sort( rows ); List temp = new ArrayList( ); int len = rows.length; for ( int i = 0; i < len; i++ ) { temp.add( getRow( rows[i] ) ); } for ( int i = len - 1; i >= 0; i-- ) { //deleteRow( rows[i] ); deleteRow( HandleAdapterFactory.getInstance( ) .getRowHandleAdapter( temp.get( i ) ) .getRowNumber( ) ); } transEnd( ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/f20dffa9abb940a955b0a18cf6914d4f48216b6c/TableHandleAdapter.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/core/model/schematic/TableHandleAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1430, 1999, 12, 509, 8526, 2595, 262, 1216, 24747, 503, 202, 95, 202, 202, 430, 261, 2595, 422, 446, 262, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2338, 18379, 12, 28093, 67, 13545, 67, 6460, 67, 28402, 11272, 202, 202, 430, 261, 11835, 1380, 12, 262, 422, 2595, 18, 2469, 262, 202, 202, 95, 1082, 202, 588, 3259, 12, 262, 18, 7285, 12, 11272, 1082, 202, 2338, 1638, 12, 11272, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 12726, 18, 3804, 12, 2595, 11272, 202, 202, 682, 1906, 273, 394, 2407, 12, 11272, 202, 202, 474, 562, 273, 2595, 18, 2469, 31, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 562, 31, 277, 9904, 262, 202, 202, 95, 1082, 202, 5814, 18, 1289, 12, 11835, 12, 2595, 63, 77, 65, 262, 11272, 202, 202, 97, 202, 202, 1884, 261, 509, 277, 273, 562, 300, 404, 31, 277, 1545, 374, 31, 277, 413, 262, 202, 202, 95, 1082, 202, 759, 3733, 1999, 12, 2595, 63, 77, 65, 11272, 1082, 202, 3733, 1999, 12, 5004, 4216, 1733, 18, 588, 1442, 12, 262, 6862, 202, 18, 588, 1999, 3259, 4216, 12, 1906, 18, 588, 12, 277, 262, 262, 6862, 202, 18, 588, 1999, 1854, 12, 262, 11272, 202, 202, 97, 202, 202, 2338, 1638, 12, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1430, 1999, 12, 509, 8526, 2595, 262, 1216, 24747, 503, 202, 95, 202, 202, 430, 261, 2595, 422, 446, 262, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2338, 18379, 12, 28093, 67, 13545, 67, 6460, 67, 28402, 11272, 202, 202, 430, 261, 11835, 1380, 12, 262, 422, 2595, 18, 2469, 262, 202, 202, 95, 1082, 202, 588, 3259, 12, 262, 18, 7285, 12, 11272, 1082, 202, 2338, 1638, 12, 11272, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 12726, 18, 3804, 12, 2595, 11272, 202, 202, 682, 1906, 273, 394, 2407, 12, 11272, 202, 202, 474, 562, 273, 2595, 18, 2469, 31, 202, 202, 1884, 261, 509, 277, 273, 2 ]
else { int offset = getTabRunOffset(tabPlacement, tabPane.getTabCount(), tabPane.getSelectedIndex(), (tabPlacement == SwingConstants.RIGHT) ? true : false); selectAdjacentRunTab(tabPlacement, tabPane.getSelectedIndex(), offset); }
else { int offset = getTabRunOffset(tabPlacement, tabPane.getTabCount(), tabPane.getSelectedIndex(), (tabPlacement == SwingConstants.RIGHT) ? true : false); selectAdjacentRunTab(tabPlacement, tabPane.getSelectedIndex(), offset); }
protected void navigateSelectedTab(int direction) { int tabPlacement = tabPane.getTabPlacement(); if (tabPlacement == SwingConstants.TOP || tabPlacement == SwingConstants.BOTTOM) { if (direction == SwingConstants.WEST) selectPreviousTabInRun(tabPane.getSelectedIndex()); else if (direction == SwingConstants.EAST) selectNextTabInRun(tabPane.getSelectedIndex()); else { int offset = getTabRunOffset(tabPlacement, tabPane.getTabCount(), tabPane.getSelectedIndex(), (tabPlacement == SwingConstants.RIGHT) ? true : false); selectAdjacentRunTab(tabPlacement, tabPane.getSelectedIndex(), offset); } } if (tabPlacement == SwingConstants.LEFT || tabPlacement == SwingConstants.RIGHT) { if (direction == SwingConstants.NORTH) selectPreviousTabInRun(tabPane.getSelectedIndex()); else if (direction == SwingConstants.SOUTH) selectNextTabInRun(tabPane.getSelectedIndex()); else { int offset = getTabRunOffset(tabPlacement, tabPane.getTabCount(), tabPane.getSelectedIndex(), (tabPlacement == SwingConstants.RIGHT) ? true : false); selectAdjacentRunTab(tabPlacement, tabPane.getSelectedIndex(), offset); } } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTabbedPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 28479, 7416, 5661, 12, 474, 4068, 13, 225, 288, 565, 509, 3246, 12420, 273, 3246, 8485, 18, 588, 5661, 12420, 5621, 565, 309, 261, 7032, 12420, 422, 26145, 2918, 18, 10462, 3639, 747, 3246, 12420, 422, 26145, 2918, 18, 28891, 13, 1377, 288, 202, 430, 261, 9855, 422, 26145, 2918, 18, 31285, 13, 202, 225, 2027, 8351, 5661, 382, 1997, 12, 7032, 8485, 18, 588, 7416, 1016, 10663, 202, 12107, 309, 261, 9855, 422, 26145, 2918, 18, 41, 9053, 13, 202, 225, 2027, 2134, 5661, 382, 1997, 12, 7032, 8485, 18, 588, 7416, 1016, 10663, 202, 12107, 202, 225, 288, 202, 565, 509, 1384, 273, 3181, 378, 1997, 2335, 12, 7032, 12420, 16, 3246, 8485, 18, 588, 5661, 1380, 9334, 202, 4766, 3246, 8485, 18, 588, 7416, 1016, 9334, 202, 4766, 261, 7032, 12420, 422, 26145, 2918, 18, 11847, 13, 202, 4766, 692, 638, 294, 629, 1769, 202, 565, 2027, 17886, 25897, 1997, 5661, 12, 7032, 12420, 16, 3246, 8485, 18, 588, 7416, 1016, 9334, 202, 7682, 1384, 1769, 202, 225, 289, 1377, 289, 565, 309, 261, 7032, 12420, 422, 26145, 2918, 18, 10066, 3639, 747, 3246, 12420, 422, 26145, 2918, 18, 11847, 13, 1377, 288, 202, 430, 261, 9855, 422, 26145, 2918, 18, 50, 28212, 13, 202, 225, 2027, 8351, 5661, 382, 1997, 12, 7032, 8485, 18, 588, 7416, 1016, 10663, 202, 12107, 309, 261, 9855, 422, 26145, 2918, 18, 3584, 5844, 13, 202, 225, 2027, 2134, 5661, 382, 1997, 12, 7032, 8485, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 28479, 7416, 5661, 12, 474, 4068, 13, 225, 288, 565, 509, 3246, 12420, 273, 3246, 8485, 18, 588, 5661, 12420, 5621, 565, 309, 261, 7032, 12420, 422, 26145, 2918, 18, 10462, 3639, 747, 3246, 12420, 422, 26145, 2918, 18, 28891, 13, 1377, 288, 202, 430, 261, 9855, 422, 26145, 2918, 18, 31285, 13, 202, 225, 2027, 8351, 5661, 382, 1997, 12, 7032, 8485, 18, 588, 7416, 1016, 10663, 202, 12107, 309, 261, 9855, 422, 26145, 2918, 18, 41, 9053, 13, 202, 225, 2027, 2134, 5661, 382, 1997, 12, 7032, 8485, 18, 588, 7416, 1016, 10663, 202, 12107, 202, 225, 288, 202, 565, 509, 1384, 273, 3181, 378, 1997, 2335, 12, 7032, 12420, 16, 3246, 8485, 18, 2 ]
final PsiMethod method = (PsiMethod) PsiTreeUtil.getParentOfType(expression, PsiMethod.class); if (method != null) {
final PsiMethod method = (PsiMethod) PsiTreeUtil.getParentOfType(expression, PsiMethod.class); if(method != null) {
private boolean expressionMustAssignVariable(PsiVariable field, PsiExpression expression, Set checkedMethods) { if (expression == null) { return false; } if (expression instanceof PsiThisExpression || expression instanceof PsiLiteralExpression || expression instanceof PsiSuperExpression || expression instanceof PsiClassObjectAccessExpression) { return false; } else if (expression instanceof PsiReferenceExpression) { final PsiReferenceExpression refExp = (PsiReferenceExpression) expression; if (field.equals(refExp.resolve())) { if (refExp.getParent() instanceof PsiAssignmentExpression) { final PsiAssignmentExpression pae = (PsiAssignmentExpression) refExp.getParent(); if (pae.getRExpression() != null) { if (pae.getRExpression().equals(refExp)) { if (!refExp.isQualified() || refExp.getQualifierExpression() instanceof PsiThisExpression) { uninitializedReads.add(expression); } } } } else { if (!refExp.isQualified() || refExp.getQualifierExpression() instanceof PsiThisExpression) { uninitializedReads.add(expression); } } } if (refExp.isQualified()) { return expressionMustAssignVariable(field, refExp.getQualifierExpression(), checkedMethods); } else { return false; } } else if (expression instanceof PsiMethodCallExpression) { final PsiMethod method = (PsiMethod) PsiTreeUtil.getParentOfType(expression, PsiMethod.class); if (method != null) { final PsiReferenceExpression methodExpression = ((PsiMethodCallExpression) expression).getMethodExpression(); if (methodExpression != null) { final PsiMethod calledMethod = (PsiMethod) methodExpression.resolve(); if (method.equals(calledMethod)) { // Skip recursive call to self that causes StackOverflowError. return false; } } } return methodCallMustAssignVariable(expression, field, checkedMethods); } else if (expression instanceof PsiNewExpression) { return newExpressionMustAssignVariable(expression, field, checkedMethods); } else if (expression instanceof PsiArrayInitializerExpression) { final PsiArrayInitializerExpression array = (PsiArrayInitializerExpression) expression; final PsiExpression[] initializers = array.getInitializers(); for (int i = 0; i < initializers.length; i++) { final PsiExpression initializer = initializers[i]; if (expressionMustAssignVariable(field, initializer, checkedMethods)) { return true; } } return false; } else if (expression instanceof PsiTypeCastExpression) { final PsiTypeCastExpression typeCast = (PsiTypeCastExpression) expression; final PsiExpression operand = typeCast.getOperand(); return expressionMustAssignVariable(field, operand, checkedMethods); } else if (expression instanceof PsiArrayAccessExpression) { final PsiArrayAccessExpression accessExpression = (PsiArrayAccessExpression) expression; final PsiExpression arrayExpression = accessExpression.getArrayExpression(); final PsiExpression indexExpression = accessExpression.getIndexExpression(); return expressionMustAssignVariable(field, arrayExpression, checkedMethods) || expressionMustAssignVariable(field, indexExpression, checkedMethods); } else if (expression instanceof PsiPrefixExpression) { final PsiPrefixExpression prefixExpression = (PsiPrefixExpression) expression; final PsiExpression operand = prefixExpression.getOperand(); return expressionMustAssignVariable(field, operand, checkedMethods); } else if (expression instanceof PsiPostfixExpression) { final PsiPostfixExpression postfixExpression = (PsiPostfixExpression) expression; final PsiExpression operand = postfixExpression.getOperand(); return expressionMustAssignVariable(field, operand, checkedMethods); } else if (expression instanceof PsiBinaryExpression) { final PsiBinaryExpression binaryExpression = (PsiBinaryExpression) expression; final PsiExpression lhs = binaryExpression.getLOperand(); final PsiExpression rhs = binaryExpression.getROperand(); return expressionMustAssignVariable(field, lhs, checkedMethods) || expressionMustAssignVariable(field, rhs, checkedMethods); } else if (expression instanceof PsiConditionalExpression) { final PsiConditionalExpression conditional = (PsiConditionalExpression) expression; final PsiExpression condition = conditional.getCondition(); if (expressionMustAssignVariable(field, condition, checkedMethods)) { return true; } final PsiExpression thenExpression = conditional.getThenExpression(); final PsiExpression elseExpression = conditional.getElseExpression(); return expressionMustAssignVariable(field, thenExpression, checkedMethods) && expressionMustAssignVariable(field, elseExpression, checkedMethods); } else if (expression instanceof PsiAssignmentExpression) { final PsiAssignmentExpression assignment = (PsiAssignmentExpression) expression; final PsiExpression lhs = assignment.getLExpression(); if (expressionMustAssignVariable(field, lhs, checkedMethods)) { return true; } final PsiExpression rhs = assignment.getRExpression(); if (expressionMustAssignVariable(field, rhs, checkedMethods)) { return true; } if (lhs instanceof PsiReferenceExpression) { final PsiElement element = ((PsiReference) lhs).resolve(); if (element != null && field != null && element.equals(field)) { return true; } } return false; } else { return false; } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/InitializationReadUtils.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/InitializationReadUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 2652, 10136, 4910, 3092, 12, 52, 7722, 3092, 652, 16, 4766, 1171, 453, 7722, 2300, 2652, 16, 4766, 1171, 1000, 5950, 4712, 13, 288, 3639, 309, 261, 8692, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 261, 8692, 1276, 453, 7722, 2503, 2300, 747, 7734, 2652, 1276, 453, 7722, 6177, 2300, 747, 7734, 2652, 1276, 453, 7722, 8051, 2300, 747, 7734, 2652, 1276, 453, 7722, 797, 921, 1862, 2300, 13, 288, 5411, 327, 629, 31, 3639, 289, 469, 309, 261, 8692, 1276, 453, 7722, 2404, 2300, 13, 288, 5411, 727, 453, 7722, 2404, 2300, 1278, 2966, 273, 261, 52, 7722, 2404, 2300, 13, 2652, 31, 5411, 309, 261, 1518, 18, 14963, 12, 1734, 2966, 18, 10828, 1435, 3719, 288, 7734, 309, 261, 1734, 2966, 18, 588, 3054, 1435, 1276, 453, 7722, 7729, 2300, 13, 288, 10792, 727, 453, 7722, 7729, 2300, 6790, 73, 273, 261, 52, 7722, 7729, 2300, 13, 1278, 2966, 18, 588, 3054, 5621, 10792, 309, 261, 8774, 73, 18, 588, 54, 2300, 1435, 480, 446, 13, 288, 13491, 309, 261, 8774, 73, 18, 588, 54, 2300, 7675, 14963, 12, 1734, 2966, 3719, 288, 18701, 309, 16051, 1734, 2966, 18, 291, 8708, 1435, 747, 1278, 2966, 18, 588, 16185, 2300, 1435, 1276, 453, 7722, 2503, 2300, 13, 288, 27573, 640, 13227, 7483, 18, 1289, 12, 8692, 1769, 18701, 289, 13491, 289, 10792, 289, 7734, 289, 469, 288, 10792, 309, 16051, 1734, 2966, 18, 291, 8708, 1435, 747, 1278, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 2652, 10136, 4910, 3092, 12, 52, 7722, 3092, 652, 16, 4766, 1171, 453, 7722, 2300, 2652, 16, 4766, 1171, 1000, 5950, 4712, 13, 288, 3639, 309, 261, 8692, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 261, 8692, 1276, 453, 7722, 2503, 2300, 747, 7734, 2652, 1276, 453, 7722, 6177, 2300, 747, 7734, 2652, 1276, 453, 7722, 8051, 2300, 747, 7734, 2652, 1276, 453, 7722, 797, 921, 1862, 2300, 13, 288, 5411, 327, 629, 31, 3639, 289, 469, 309, 261, 8692, 1276, 453, 7722, 2404, 2300, 13, 288, 5411, 727, 453, 7722, 2404, 2300, 1278, 2966, 273, 261, 52, 7722, 2404, 2300, 13, 2652, 31, 5411, 309, 261, 1518, 18, 14963, 12, 2 ]
public Analysis doAnalysis(Story story) {
public Analysis doAnalysis(Story story, String topic) {
public Analysis doAnalysis(Story story) { Analysis a = new Analysis(); a.setID(story.getID()); String content = story.getContent(); if (content.matches("IJsland")) { // If the string IJsland appears in the text, it's definitely about // Iceland a.setTopicRelevance("1.0"); } String author = story.getAuthor(); if (author.matches("Christian Luijten")) { // Christian Luijten writes 75% of the time about the topic a.setTopicRelevance("0.75"); } return a; }
50380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50380/7bbd9be8f9612d369cccd104083a8295ee7b7906/KeywordSpotter.java/buggy/src/amber/sieve/KeywordSpotter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16318, 741, 9418, 12, 510, 630, 17285, 16, 514, 3958, 13, 288, 3639, 16318, 279, 273, 394, 16318, 5621, 3639, 279, 18, 542, 734, 12, 31131, 18, 588, 734, 10663, 3639, 514, 913, 273, 17285, 18, 588, 1350, 5621, 3639, 309, 261, 1745, 18, 8436, 2932, 45, 46, 2069, 464, 6, 3719, 288, 5411, 368, 971, 326, 533, 467, 46, 2069, 464, 14606, 316, 326, 977, 16, 518, 1807, 2217, 25818, 2973, 5411, 368, 467, 2183, 464, 5411, 279, 18, 542, 6657, 17018, 5882, 2932, 21, 18, 20, 8863, 3639, 289, 3639, 514, 2869, 273, 17285, 18, 588, 3594, 5621, 3639, 309, 261, 4161, 18, 8436, 2932, 782, 86, 376, 2779, 511, 4881, 78, 2253, 6, 3719, 288, 5411, 368, 1680, 86, 376, 2779, 511, 4881, 78, 2253, 7262, 18821, 9, 434, 326, 813, 2973, 326, 3958, 5411, 279, 18, 542, 6657, 17018, 5882, 2932, 20, 18, 5877, 8863, 3639, 289, 3639, 327, 279, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16318, 741, 9418, 12, 510, 630, 17285, 16, 514, 3958, 13, 288, 3639, 16318, 279, 273, 394, 16318, 5621, 3639, 279, 18, 542, 734, 12, 31131, 18, 588, 734, 10663, 3639, 514, 913, 273, 17285, 18, 588, 1350, 5621, 3639, 309, 261, 1745, 18, 8436, 2932, 45, 46, 2069, 464, 6, 3719, 288, 5411, 368, 971, 326, 533, 467, 46, 2069, 464, 14606, 316, 326, 977, 16, 518, 1807, 2217, 25818, 2973, 5411, 368, 467, 2183, 464, 5411, 279, 18, 542, 6657, 17018, 5882, 2932, 21, 18, 20, 8863, 3639, 289, 3639, 514, 2869, 273, 17285, 18, 588, 3594, 5621, 3639, 309, 261, 4161, 18, 8436, 2932, 782, 86, 376, 2779, 511, 4881, 78, 2253, 6, 3719, 2 ]
return m_filteredItems;
return Collections.unmodifiableList(m_filteredItems);
public List getContent() { if (m_filteredItems == null) { return getAllContent(); } else { return m_filteredItems; } }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/dd1de739e472ad91ca1cf2a12f1f0e99ddff5d6d/CmsHtmlList.java/clean/src/org/opencms/workplace/list/CmsHtmlList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 5154, 1435, 288, 3639, 309, 261, 81, 67, 12071, 3126, 422, 446, 13, 288, 5411, 327, 5514, 1350, 5621, 3639, 289, 469, 288, 5411, 327, 5737, 18, 318, 13388, 682, 12, 81, 67, 12071, 3126, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 5154, 1435, 288, 3639, 309, 261, 81, 67, 12071, 3126, 422, 446, 13, 288, 5411, 327, 5514, 1350, 5621, 3639, 289, 469, 288, 5411, 327, 5737, 18, 318, 13388, 682, 12, 81, 67, 12071, 3126, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Utterance utterance = cepstra[cepstra.length-2].getUtterance(); if (utterance != null) { name = utterance.getName();
for (int i = 0; i < cepstra.length; i++) { if (cepstra[i].getUtterance() != null) { name = cepstra[i].getUtterance().getName(); break; }
public static void main(String[] argv) { if (argv.length < 3) { System.out.println ("Usage: java testClass <testName> " + "<propertiesFile> <audiofilename>"); } try { String testName = argv[0]; String propertiesFile = argv[1]; String audioFile = argv[2]; ProcessorTest fet = new ProcessorTest (testName, propertiesFile, audioFile); Preemphasizer preemphasizer = new Preemphasizer ("Preemphasizer", testName, fet.getAudioSource()); Windower windower = new Windower ("HammingWindow", testName, preemphasizer); SpectrumAnalyzer spectrumAnalyzer = new SpectrumAnalyzer ("FFT", testName, windower); MelFilterbank melFilterbank = new MelFilterbank ("MelFilter", testName, spectrumAnalyzer); MelCepstrumProducer melCepstrum = new MelCepstrumProducer ("MelCepstrumProducer", testName, melFilterbank); EnergyEndpointer endpointer = new EnergyEndpointer ("EnergyEndpointer", testName, melCepstrum); NonSpeechFilter nonSpeechFilter = new NonSpeechFilter ("NonSpeechFilter", testName, endpointer); CepstrumSource finalSource = endpointer; if (Boolean.getBoolean("removeNonSpeech")) { finalSource = nonSpeechFilter; } CepstraViewer cepstraViewer = new CepstraViewer("EndpointerTest"); cepstraViewer.show(); List cepstraGroupList = new LinkedList(); List cepstraList = new LinkedList(); Cepstrum cepstrum = null; do { cepstrum = finalSource.getCepstrum(); if (cepstrum != null) { cepstraList.add(cepstrum); Signal signal = cepstrum.getSignal(); if (signal != null && signal.equals(Signal.UTTERANCE_END)) { // an Utterance has ended Cepstrum[] cepstra = new Cepstrum[cepstraList.size()]; cepstraList.toArray(cepstra); String name = "no name"; // last Cepstrum with cepstral data Utterance utterance = cepstra[cepstra.length-2].getUtterance(); if (utterance != null) { name = utterance.getName(); } // create the CepstraGroup and add it to the viewer CepstraGroup cepstraGroup = new CepstraGroup (cepstra, name); cepstraViewer.addCepstraGroup(cepstraGroup); cepstraList = new LinkedList(); } } } while (cepstrum != null); System.out.println("no more cepstrum"); } catch (Exception e) { e.printStackTrace(); } }
48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/43a03c35edd6dec76314617cd38a463c839240a2/EnergyEndpointerTest.java/clean/sphinx4/tests/frontend/EnergyEndpointerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 5261, 13, 288, 202, 430, 261, 19485, 18, 2469, 411, 890, 13, 288, 202, 565, 2332, 18, 659, 18, 8222, 7734, 7566, 5357, 30, 2252, 1842, 797, 411, 3813, 461, 34, 315, 397, 1171, 3532, 4738, 812, 34, 411, 24901, 77, 792, 2550, 2984, 1769, 202, 97, 3639, 775, 288, 5411, 514, 1842, 461, 273, 5261, 63, 20, 15533, 5411, 514, 1790, 812, 273, 5261, 63, 21, 15533, 5411, 514, 7447, 812, 273, 5261, 63, 22, 15533, 5411, 15476, 4709, 284, 278, 273, 394, 15476, 4709, 7734, 261, 3813, 461, 16, 1790, 812, 16, 7447, 812, 1769, 5411, 2962, 351, 26377, 1824, 675, 351, 26377, 1824, 273, 394, 2962, 351, 26377, 1824, 7734, 7566, 1386, 351, 26377, 1824, 3113, 1842, 461, 16, 284, 278, 18, 588, 12719, 1830, 10663, 5411, 6076, 264, 2742, 264, 273, 394, 6076, 264, 7734, 7566, 44, 301, 11987, 3829, 3113, 1842, 461, 16, 675, 351, 26377, 1824, 1769, 5411, 348, 13324, 12803, 17970, 12803, 273, 394, 348, 13324, 12803, 7734, 7566, 2246, 56, 3113, 1842, 461, 16, 2742, 264, 1769, 5411, 490, 292, 1586, 10546, 312, 292, 1586, 10546, 273, 394, 490, 292, 1586, 10546, 7734, 7566, 49, 292, 1586, 3113, 1842, 461, 16, 17970, 12803, 1769, 5411, 490, 292, 39, 881, 701, 379, 12140, 312, 292, 39, 881, 701, 379, 273, 394, 490, 292, 39, 881, 701, 379, 12140, 7734, 7566, 49, 292, 39, 881, 701, 379, 12140, 3113, 1842, 461, 16, 312, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 5261, 13, 288, 202, 430, 261, 19485, 18, 2469, 411, 890, 13, 288, 202, 565, 2332, 18, 659, 18, 8222, 7734, 7566, 5357, 30, 2252, 1842, 797, 411, 3813, 461, 34, 315, 397, 1171, 3532, 4738, 812, 34, 411, 24901, 77, 792, 2550, 2984, 1769, 202, 97, 3639, 775, 288, 5411, 514, 1842, 461, 273, 5261, 63, 20, 15533, 5411, 514, 1790, 812, 273, 5261, 63, 21, 15533, 5411, 514, 7447, 812, 273, 5261, 63, 22, 15533, 5411, 15476, 4709, 284, 278, 273, 394, 15476, 4709, 7734, 261, 3813, 461, 16, 1790, 812, 16, 7447, 812, 1769, 5411, 2962, 351, 26377, 1824, 675, 351, 26377, 1824, 273, 394, 2962, 351, 26377, 2 ]