rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
configuration = config;
this.clonedConfig = clonedConfig;
protected BuildSettingsPage(IConfiguration config) { // fix for PR 63973 // If we use a grid layout then widgets that should be layed out horizontally, // e.g. StringButtonFieldEditor, will have their component widgets // arranged vertically. This looks terrible when you have for instance // a StringButtonFieldEditor, which has a label, an edit box, and a "modify" button // to the right because all three will be stacked vertically. super(FLAT); // end fix for 63973 noDefaultAndApplyButton(); configuration = config; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/ca2e8c288e0d3b7b382d3418afbe110662fcfed4/BuildSettingsPage.java/buggy/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildSettingsPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 3998, 2628, 1964, 12, 45, 1750, 642, 13, 288, 3196, 202, 759, 2917, 364, 11770, 1666, 5520, 9036, 3196, 202, 759, 971, 732, 999, 279, 3068, 3511, 1508, 10965, 716, 1410, 506, 328, 528, 329, 596, 366, 6157, 1230, 16, 3196, 202, 759, 425, 18, 75, 18, 514, 3616, 974, 6946, 16, 903, 1240, 3675, 1794, 10965, 3196, 202, 759, 2454, 2330, 3173, 6478, 18, 225, 1220, 10192, 27428, 1523, 1347, 1846, 1240, 364, 791, 3196, 202, 759, 279, 514, 3616, 974, 6946, 16, 1492, 711, 279, 1433, 16, 392, 3874, 3919, 16, 471, 279, 315, 17042, 6, 3568, 3196, 202, 759, 358, 326, 2145, 2724, 777, 8925, 903, 506, 25776, 3173, 6478, 18, 3196, 202, 9565, 12, 42, 12190, 1769, 3196, 202, 759, 679, 2917, 364, 1666, 5520, 9036, 202, 202, 2135, 1868, 1876, 7001, 3616, 5621, 202, 202, 7025, 273, 642, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 3998, 2628, 1964, 12, 45, 1750, 642, 13, 288, 3196, 202, 759, 2917, 364, 11770, 1666, 5520, 9036, 3196, 202, 759, 971, 732, 999, 279, 3068, 3511, 1508, 10965, 716, 1410, 506, 328, 528, 329, 596, 366, 6157, 1230, 16, 3196, 202, 759, 425, 18, 75, 18, 514, 3616, 974, 6946, 16, 903, 1240, 3675, 1794, 10965, 3196, 202, 759, 2454, 2330, 3173, 6478, 18, 225, 1220, 10192, 27428, 1523, 1347, 1846, 1240, 364, 791, 3196, 202, 759, 279, 514, 3616, 974, 6946, 16, 1492, 711, 279, 1433, 16, 392, 3874, 3919, 16, 471, 279, 315, 17042, 6, 3568, 3196, 202, 759, 358, 326, 2145, 2724, 777, 8925, 903, 506, 25776, 3173, 6478, 18, 3196, 202, 2 ]
abstract protected void performSave(Object target);
abstract protected void performSave(Object target, boolean b);
abstract protected void performSave(Object target);
53275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53275/6c47cbe485713fe8d2b500632651590033abed59/AbstractSavePersistentMethod.java/clean/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/AbstractSavePersistentMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 17801, 4750, 918, 3073, 4755, 12, 921, 1018, 1769, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17801, 4750, 918, 3073, 4755, 12, 921, 1018, 1769, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Object val = v[0]; Class propertyType = (Class) v[1];
Object[] args = new Object[] { v[0] };
public Object invoke(Object proxy, Method method, Object[] arguments) throws Exception { // Do we actually need the proxy? if (method == null) throw new RuntimeException("Invoking null method"); // Listener methods that weren't specified are ignored. If listenerMethod // is null, then all listener methods are processed. if (listenerMethod != null && !method.getName().equals(listenerMethod)) return null; // Extract the first arg from arguments and do getProperty on arg if (arguments == null || arguments.length == 0) return null; Object event = arguments[0]; // We hope :-) // Obtain the property XXX propertyType keeps showing up null - why? // because the object inside getProperty changes, but the ref variable // can't change this way, dolt! need a better way to get both values out // - need method and object to do the invoke and get return type Object v[] = getProperty(event, property); Object val = v[0]; Class propertyType = (Class) v[1]; // Find the actual method of target to invoke. We can't do this in the // constructor since we don't know the type of the property we extracted // from the event then. // // action can be either a property or a method. Sun's docs seem to imply // that action should be treated as a property first, and then a method, // but don't specifically say it. // // XXX check what happens with native type wrappers. The better thing to // do is look at the return type of the method Method actionMethod; try { // Look for a property setter for action. actionMethod = target.getClass().getMethod("set" + capitalize(action), new Class[] {propertyType}); } catch (NoSuchMethodException e) { // If action as property didn't work, try as method. try { actionMethod = target.getClass().getMethod(action, new Class[] {propertyType}); } catch (NoSuchMethodException e1) { // When event property is null, we may call action with no args if (property == null) { actionMethod = target.getClass().getMethod(action, null); return actionMethod.invoke(target, null); } else throw e1; } } // Invoke target.action(property) return actionMethod.invoke(target, new Object[] {val}); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 4356, 12, 921, 2889, 16, 2985, 707, 16, 1033, 8526, 1775, 13, 565, 1216, 1185, 225, 288, 565, 368, 2256, 732, 6013, 1608, 326, 2889, 35, 565, 309, 261, 2039, 422, 446, 13, 1377, 604, 394, 3235, 2932, 11354, 310, 446, 707, 8863, 565, 368, 10652, 2590, 716, 22646, 275, 1404, 1269, 854, 5455, 18, 225, 971, 2991, 1305, 565, 368, 353, 446, 16, 1508, 777, 2991, 2590, 854, 5204, 18, 565, 309, 261, 12757, 1305, 480, 446, 597, 401, 2039, 18, 17994, 7675, 14963, 12, 12757, 1305, 3719, 1377, 327, 446, 31, 565, 368, 8152, 326, 1122, 1501, 628, 1775, 471, 741, 3911, 603, 1501, 565, 309, 261, 7099, 422, 446, 747, 1775, 18, 2469, 422, 374, 13, 1377, 327, 446, 31, 565, 1033, 871, 273, 1775, 63, 20, 15533, 368, 1660, 27370, 294, 17, 13, 565, 368, 24850, 326, 1272, 11329, 21076, 20948, 17253, 731, 446, 300, 11598, 35, 565, 368, 2724, 326, 733, 4832, 3911, 3478, 16, 1496, 326, 1278, 2190, 565, 368, 848, 1404, 2549, 333, 4031, 16, 302, 4397, 5, 225, 1608, 279, 7844, 4031, 358, 336, 3937, 924, 596, 565, 368, 300, 1608, 707, 471, 733, 358, 741, 326, 4356, 471, 336, 327, 618, 565, 1033, 331, 8526, 273, 3911, 12, 2575, 16, 1272, 1769, 565, 1033, 1244, 273, 331, 63, 20, 15533, 565, 1659, 21076, 273, 261, 797, 13, 331, 63, 21, 15533, 565, 368, 4163, 326, 3214, 707, 434, 1018, 358, 4356, 18, 225, 1660, 848, 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, 1033, 4356, 12, 921, 2889, 16, 2985, 707, 16, 1033, 8526, 1775, 13, 565, 1216, 1185, 225, 288, 565, 368, 2256, 732, 6013, 1608, 326, 2889, 35, 565, 309, 261, 2039, 422, 446, 13, 1377, 604, 394, 3235, 2932, 11354, 310, 446, 707, 8863, 565, 368, 10652, 2590, 716, 22646, 275, 1404, 1269, 854, 5455, 18, 225, 971, 2991, 1305, 565, 368, 353, 446, 16, 1508, 777, 2991, 2590, 854, 5204, 18, 565, 309, 261, 12757, 1305, 480, 446, 597, 401, 2039, 18, 17994, 7675, 14963, 12, 12757, 1305, 3719, 1377, 327, 446, 31, 565, 368, 8152, 326, 1122, 1501, 628, 1775, 471, 741, 3911, 603, 1501, 565, 309, 261, 7099, 422, 446, 747, 1775, 18, 2469, 2 ]
kind = (isStatic ? ACCESSPUTSTATIC : ACCESSPUTFIELD);
private boolean checkAccess() { BasicBlocks bb = method.getBasicBlocks(); Handler[] excHandlers = bb.getExceptionHandlers(); if (excHandlers != null && excHandlers.length != 0) return false; Block[] blocks = bb.getBlocks(); Block startBlock = bb.getStartBlock(); if (startBlock == null) return false; Block[] succBlocks = startBlock.getSuccs(); if (succBlocks.length > 1 || (succBlocks.length == 1 && succBlocks[0] != null)) return false; Iterator iter = Arrays.asList(startBlock.getInstructions()).iterator(); if (!iter.hasNext()) return false; Instruction instr = (Instruction) iter.next(); int params = 0, slot = 0; while (instr.getOpcode() >= opc_iload && instr.getOpcode() <= opc_aload && instr.getLocalSlot() == slot) { params++; slot += (instr.getOpcode() == opc_lload || instr.getOpcode() == opc_dload) ? 2 : 1; if (!iter.hasNext()) return false; instr = (Instruction) iter.next(); } if (instr.getOpcode() == opc_getstatic || instr.getOpcode() == opc_getfield) { boolean isStatic = instr.getOpcode() == opc_getstatic; if (!isStatic) params--; if (params != 0) return false; Reference ref = instr.getReference(); String refClazz = ref.getClazz().substring(1); if (!(refClazz.substring(0, refClazz.length()-1) .equals(classInfo.getName().replace('.','/')))) return false; FieldInfo refField = classInfo.findField(ref.getName(), ref.getType()); if ((refField.getModifiers() & modifierMask) != Modifier.PRIVATE) return false; if (!iter.hasNext()) return false; instr = (Instruction) iter.next(); if (instr.getOpcode() < opc_ireturn || instr.getOpcode() > opc_areturn) return false; /* For valid bytecode the type matches automatically */ reference = ref; kind = (isStatic ? ACCESSGETSTATIC : ACCESSGETFIELD); return true; } if (instr.getOpcode() == opc_putfield || instr.getOpcode() == opc_putstatic) { boolean isStatic = instr.getOpcode() == opc_putstatic; if (!isStatic) params--; if (params != 1) return false; /* For valid bytecode the type of param matches automatically */ Reference ref = instr.getReference(); String refClazz = ref.getClazz().substring(1); if (!(refClazz.substring(0, refClazz.length()-1) .equals(classInfo.getName().replace('.','/')))) return false; FieldInfo refField = classInfo.findField(ref.getName(), ref.getType()); if ((refField.getModifiers() & modifierMask) != Modifier.PRIVATE) return false; if (iter.hasNext()) return false; reference = ref; kind = (isStatic ? ACCESSPUTSTATIC : ACCESSPUTFIELD); return true; } if (instr.getOpcode() == opc_invokestatic || instr.getOpcode() == opc_invokespecial) { boolean isStatic = instr.getOpcode() == opc_invokestatic; if (!isStatic) params--; Reference ref = instr.getReference(); String refClazz = ref.getClazz().substring(1); if (!(refClazz.substring(0, refClazz.length()-1) .equals(classInfo.getName().replace('.','/')))) return false; MethodInfo refMethod = classInfo.findMethod(ref.getName(), ref.getType()); MethodType refType = Type.tMethod(classInfo.getClassPath(), ref.getType()); if ((refMethod.getModifiers() & modifierMask) != Modifier.PRIVATE || refType.getParameterTypes().length != params) return false; if (refType.getReturnType() == Type.tVoid) { if (iter.hasNext()) return false; } else { if (!iter.hasNext()) return false; instr = (Instruction) iter.next(); if (instr.getOpcode() < opc_ireturn || instr.getOpcode() > opc_areturn) return false; } /* For valid bytecode the types matches automatically */ reference = ref; kind = (isStatic ? ACCESSSTATICMETHOD : ACCESSMETHOD); return true; } return false; }
5628 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5628/08bc5f51571f3b707c9b0a183b894668281f9009/SyntheticAnalyzer.java/buggy/jode/jode/jvm/SyntheticAnalyzer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 28484, 1435, 288, 202, 8252, 6450, 7129, 273, 707, 18, 588, 8252, 6450, 5621, 202, 1503, 8526, 3533, 6919, 273, 7129, 18, 588, 503, 6919, 5621, 202, 430, 261, 10075, 6919, 480, 446, 597, 3533, 6919, 18, 2469, 480, 374, 13, 202, 565, 327, 629, 31, 202, 1768, 8526, 4398, 273, 7129, 18, 588, 6450, 5621, 202, 1768, 787, 1768, 273, 7129, 18, 588, 1685, 1768, 5621, 202, 430, 261, 1937, 1768, 422, 446, 13, 202, 565, 327, 629, 31, 202, 1768, 8526, 21043, 6450, 273, 787, 1768, 18, 588, 17072, 952, 87, 5621, 202, 430, 261, 26560, 952, 6450, 18, 2469, 405, 404, 747, 3196, 565, 261, 26560, 952, 6450, 18, 2469, 422, 404, 597, 21043, 6450, 63, 20, 65, 480, 446, 3719, 202, 565, 327, 629, 31, 202, 3198, 1400, 273, 5647, 18, 345, 682, 12, 1937, 1768, 18, 588, 26712, 1435, 2934, 9838, 5621, 202, 430, 16051, 2165, 18, 5332, 2134, 10756, 202, 565, 327, 629, 31, 202, 11983, 16170, 273, 261, 11983, 13, 1400, 18, 4285, 5621, 202, 474, 859, 273, 374, 16, 4694, 273, 374, 31, 202, 17523, 261, 267, 701, 18, 588, 22808, 1435, 1545, 29277, 67, 330, 6189, 202, 4202, 597, 16170, 18, 588, 22808, 1435, 1648, 29277, 67, 287, 6189, 202, 4202, 597, 16170, 18, 588, 2042, 8764, 1435, 422, 4694, 13, 288, 202, 565, 859, 9904, 31, 202, 565, 4694, 1011, 261, 267, 701, 18, 588, 22808, 1435, 422, 29277, 67, 80, 945, 1875, 377, 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, 28484, 1435, 288, 202, 8252, 6450, 7129, 273, 707, 18, 588, 8252, 6450, 5621, 202, 1503, 8526, 3533, 6919, 273, 7129, 18, 588, 503, 6919, 5621, 202, 430, 261, 10075, 6919, 480, 446, 597, 3533, 6919, 18, 2469, 480, 374, 13, 202, 565, 327, 629, 31, 202, 1768, 8526, 4398, 273, 7129, 18, 588, 6450, 5621, 202, 1768, 787, 1768, 273, 7129, 18, 588, 1685, 1768, 5621, 202, 430, 261, 1937, 1768, 422, 446, 13, 202, 565, 327, 629, 31, 202, 1768, 8526, 21043, 6450, 273, 787, 1768, 18, 588, 17072, 952, 87, 5621, 202, 430, 261, 26560, 952, 6450, 18, 2469, 405, 404, 747, 3196, 565, 261, 26560, 952, 6450, 18, 2469, 422, 404, 597, 2 ]
public boolean eIsSet(EStructuralFeature eFeature) { switch (eDerivedStructuralFeatureID(eFeature)) { case NotationPackage.FILL_STYLE__FILL_COLOR: return fillColor != FILL_COLOR_EDEFAULT; } return eDynamicIsSet(eFeature); }
public boolean eIsSet(int featureID) { switch (featureID) { case NotationPackage.FILL_STYLE__FILL_COLOR: return fillColor != FILL_COLOR_EDEFAULT; } return super.eIsSet(featureID); }
public boolean eIsSet(EStructuralFeature eFeature) { switch (eDerivedStructuralFeatureID(eFeature)) { case NotationPackage.FILL_STYLE__FILL_COLOR: return fillColor != FILL_COLOR_EDEFAULT; } return eDynamicIsSet(eFeature); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/1d1e28c0f7853dd16bd3fe819770773ed4e61d20/FillStyleImpl.java/buggy/org.eclipse.gmf.notation/plugins/org.eclipse.gmf.runtime.notation/src/org/eclipse/gmf/runtime/notation/impl/FillStyleImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 20372, 12, 41, 14372, 4595, 425, 4595, 13, 288, 202, 202, 9610, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 288, 1082, 202, 3593, 2288, 367, 2261, 18, 29818, 67, 15066, 972, 29818, 67, 10989, 30, 9506, 202, 2463, 3636, 2957, 480, 8445, 48, 67, 10989, 67, 11236, 31, 202, 202, 97, 202, 202, 2463, 425, 9791, 15737, 12, 73, 4595, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 1250, 20372, 12, 41, 14372, 4595, 425, 4595, 13, 288, 202, 202, 9610, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 288, 1082, 202, 3593, 2288, 367, 2261, 18, 29818, 67, 15066, 972, 29818, 67, 10989, 30, 9506, 202, 2463, 3636, 2957, 480, 8445, 48, 67, 10989, 67, 11236, 31, 202, 202, 97, 202, 202, 2463, 425, 9791, 15737, 12, 73, 4595, 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 ]
System.err.println(node.getOffset());
public void nodeEntered(final PCamera target, final PNode node, int delayInMillis) { if(awaitingDisplay) { pendingTask.cancel(); } if(displayingNode) { hideSemanticNode(target); } pendingTask = new TimerTask() { public void run() { target.addChild(node); awaitingDisplay = false; displayingNode = true; displayedNode = node; target.repaint(); // TODO fix this hack if(displayedNode instanceof SemanticZoomNode) { SemanticZoomNode node = (SemanticZoomNode)displayedNode; node.loadCompositeImages(); System.err.println(node.getOffset()); Point parentPoint = parentComponent.getLocationOnScreen(); Point2D offset = node.getOffset(); int x = (int)Math.round(offset.getX()); int y = (int)Math.round(offset.getY()); node.setAbsoluteLocation(new Point(parentPoint.x+x, parentPoint.y+y)); } } }; showNodeTimer.schedule(pendingTask,delayInMillis); awaitingDisplay = true; }
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/28e98417641b00a2e12a791f10f204dc4562dec1/HoverManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/HoverManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 756, 10237, 329, 12, 6385, 453, 16521, 1018, 16, 18701, 727, 453, 907, 756, 16, 18701, 509, 4624, 16620, 13, 565, 288, 3639, 309, 12, 30515, 310, 4236, 13, 3639, 288, 5411, 4634, 2174, 18, 10996, 5621, 3639, 289, 7734, 309, 12, 5417, 310, 907, 13, 3639, 288, 5411, 6853, 13185, 9941, 907, 12, 3299, 1769, 3639, 289, 7734, 4634, 2174, 273, 394, 12290, 2174, 1435, 3639, 288, 5411, 1071, 918, 1086, 1435, 5411, 288, 7734, 1018, 18, 1289, 1763, 12, 2159, 1769, 7734, 4273, 310, 4236, 273, 629, 31, 7734, 23620, 907, 273, 638, 31, 7734, 10453, 907, 273, 756, 31, 7734, 1018, 18, 14462, 1598, 5621, 27573, 368, 2660, 2917, 333, 11769, 7734, 309, 12, 5417, 329, 907, 1276, 24747, 11497, 907, 13, 7734, 288, 10792, 24747, 11497, 907, 756, 273, 261, 13185, 9941, 11497, 907, 13, 5417, 329, 907, 31, 10792, 756, 18, 945, 9400, 8946, 5621, 4766, 21821, 4686, 982, 2148, 273, 982, 1841, 18, 588, 2735, 1398, 7956, 5621, 10792, 4686, 22, 40, 1384, 273, 756, 18, 588, 2335, 5621, 10792, 509, 619, 273, 261, 474, 13, 10477, 18, 2260, 12, 3348, 18, 588, 60, 10663, 10792, 509, 677, 273, 261, 474, 13, 10477, 18, 2260, 12, 3348, 18, 588, 61, 10663, 10792, 756, 18, 542, 10368, 2735, 12, 2704, 4686, 12, 2938, 2148, 18, 92, 15, 92, 16, 4766, 15604, 982, 2148, 18, 93, 15, 93, 10019, 7734, 289, 5411, 289, 3639, 289, 31, 13491, 2405, 907, 6777, 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, 756, 10237, 329, 12, 6385, 453, 16521, 1018, 16, 18701, 727, 453, 907, 756, 16, 18701, 509, 4624, 16620, 13, 565, 288, 3639, 309, 12, 30515, 310, 4236, 13, 3639, 288, 5411, 4634, 2174, 18, 10996, 5621, 3639, 289, 7734, 309, 12, 5417, 310, 907, 13, 3639, 288, 5411, 6853, 13185, 9941, 907, 12, 3299, 1769, 3639, 289, 7734, 4634, 2174, 273, 394, 12290, 2174, 1435, 3639, 288, 5411, 1071, 918, 1086, 1435, 5411, 288, 7734, 1018, 18, 1289, 1763, 12, 2159, 1769, 7734, 4273, 310, 4236, 273, 629, 31, 7734, 23620, 907, 273, 638, 31, 7734, 10453, 907, 273, 756, 31, 7734, 1018, 18, 14462, 1598, 5621, 27573, 368, 2660, 2917, 333, 11769, 7734, 309, 2 ]
GrouperLog.error(LOG, s, ERR_EFF_SNF);
GrouperLog.error(LOG, fake, ERR_EFF_SNF);
private void _eff( GrouperSession root, GrouperSession s, String msg, String name, Subject subj, Field f,Membership eff, String field ) { // Proxy as root so that we don't run into priv problems eff.setSession(root); // Get eff owner try { Group g = eff.getGroup(); msg += "group=" + g.getName(); } catch (GroupNotFoundException eGNF) { try { Stem ns = eff.getStem(); msg += "stem=" + ns.getName(); } catch (StemNotFoundException eSNF) { GrouperLog.error(LOG, s, ERR_EFF_ONF); msg += "owner=???"; } } // Get eff field msg += " " + field + eff.getList().getName(); // Get eff subject try { Subject subject = eff.getMember().getSubject(); msg += " subject=" + SubjectHelper.getPretty(subject); } catch (Exception e) { GrouperLog.error(LOG, s, ERR_EFF_SNF); msg += "subject=???"; } // Get added or removed message that caused this effective membership change msg += " (" + name + " ";; if (f.getType().equals(FieldType.ACCESS)) { msg += "priv=" + f.getName(); } else if (f.getType().equals(FieldType.LIST)) { msg += "list=" + f.getName(); } else if (f.getType().equals(FieldType.NAMING)) { msg += "priv=" + f.getName(); } // Get added or removed subject that caused this effective // membership change msg += " subject=" + SubjectHelper.getPretty(subj) + ")"; // Now log it GrouperLog.info(LOG, s.toString(), msg); // Reset to the original session eff.setSession(s); } // private void _eff(root, s, msg, name, subj, f, eff, field)
5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/cbff0cdaecf939d28067c35c3fe615033cfbc0ca/EventLog.java/clean/grouper/src/grouper/edu/internet2/middleware/grouper/EventLog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 389, 17098, 12, 565, 3756, 264, 2157, 1365, 16, 3756, 264, 2157, 272, 16, 514, 1234, 16, 514, 508, 16, 377, 9912, 15333, 16, 2286, 284, 16, 13447, 16419, 16, 514, 652, 225, 262, 225, 288, 565, 368, 7659, 487, 1365, 1427, 716, 732, 2727, 1404, 1086, 1368, 6015, 9688, 565, 16419, 18, 542, 2157, 12, 3085, 1769, 565, 368, 968, 16419, 3410, 565, 775, 288, 1377, 3756, 314, 273, 16419, 18, 588, 1114, 5621, 1377, 1234, 1011, 315, 1655, 1546, 397, 314, 18, 17994, 5621, 565, 289, 565, 1044, 261, 1114, 3990, 425, 8318, 42, 13, 288, 1377, 775, 288, 3639, 348, 874, 3153, 273, 16419, 18, 588, 28771, 5621, 3639, 1234, 1011, 315, 19781, 1546, 397, 3153, 18, 17994, 5621, 1377, 289, 1377, 1044, 261, 28771, 3990, 425, 13653, 42, 13, 288, 3639, 3756, 264, 1343, 18, 1636, 12, 4842, 16, 272, 16, 10359, 67, 31299, 67, 673, 42, 1769, 3639, 1234, 1011, 315, 8443, 33, 14646, 7225, 31, 1377, 289, 565, 289, 4202, 368, 968, 16419, 652, 565, 1234, 1011, 315, 315, 397, 652, 397, 16419, 18, 588, 682, 7675, 17994, 5621, 565, 368, 968, 16419, 3221, 565, 775, 288, 1377, 9912, 3221, 273, 16419, 18, 588, 4419, 7675, 588, 6638, 5621, 1377, 1234, 1011, 315, 3221, 1546, 397, 9912, 2276, 18, 588, 20491, 12, 7857, 1769, 565, 289, 565, 1044, 261, 503, 425, 13, 288, 1377, 3756, 264, 1343, 18, 1636, 12, 4842, 16, 10517, 16, 10359, 67, 31299, 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, 282, 3238, 918, 389, 17098, 12, 565, 3756, 264, 2157, 1365, 16, 3756, 264, 2157, 272, 16, 514, 1234, 16, 514, 508, 16, 377, 9912, 15333, 16, 2286, 284, 16, 13447, 16419, 16, 514, 652, 225, 262, 225, 288, 565, 368, 7659, 487, 1365, 1427, 716, 732, 2727, 1404, 1086, 1368, 6015, 9688, 565, 16419, 18, 542, 2157, 12, 3085, 1769, 565, 368, 968, 16419, 3410, 565, 775, 288, 1377, 3756, 314, 273, 16419, 18, 588, 1114, 5621, 1377, 1234, 1011, 315, 1655, 1546, 397, 314, 18, 17994, 5621, 565, 289, 565, 1044, 261, 1114, 3990, 425, 8318, 42, 13, 288, 1377, 775, 288, 3639, 348, 874, 3153, 273, 16419, 18, 588, 28771, 5621, 3639, 1234, 1011, 315, 19781, 2 ]
public org.quickfix.field.LastFragment getLastFragment() throws FieldNotFound { org.quickfix.field.LastFragment value = new org.quickfix.field.LastFragment();
public quickfix.field.LastFragment getLastFragment() throws FieldNotFound { quickfix.field.LastFragment value = new quickfix.field.LastFragment();
public org.quickfix.field.LastFragment getLastFragment() throws FieldNotFound { org.quickfix.field.LastFragment value = new org.quickfix.field.LastFragment(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityTypes.java/buggy/src/java/src/quickfix/fix44/SecurityTypes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 3024, 7456, 7595, 7456, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 3024, 7456, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 3024, 7456, 5621, 565, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 3024, 7456, 7595, 7456, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 3024, 7456, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 3024, 7456, 5621, 565, 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 ]
if ((spat.getType() & Spatial.TERRAIN_PAGE) != 0) {
if ((spat.getType() & SceneElement.TERRAIN_PAGE) != 0) {
public void multHeightMapValue(int x, int y, int toMult) { int quad = findQuadrant(x,y); int split = (size + 1) >> 1; if (children != null) for (int i = children.size(); --i >= 0; ) { Spatial spat = (Spatial)children.get(i); int col = x; int row = y; boolean match = false; // get the childs quadrant int childQuadrant = 0; if ((spat.getType() & Spatial.TERRAIN_PAGE) != 0) { childQuadrant = ((TerrainPage)spat).getQuadrant(); } else if ((spat.getType() & Spatial.TERRAIN_BLOCK) != 0) { childQuadrant = ((TerrainBlock)spat).getQuadrant(); } if (childQuadrant == 1 && (quad & 1) != 0) { match = true; } else if (childQuadrant == 2 && (quad & 2) != 0) { row = y-split+1; match = true; } else if (childQuadrant == 3 && (quad & 4) != 0) { col = x-split+1; match = true; } else if (childQuadrant == 4 && (quad & 8) != 0) { col = x-split+1; row = y-split+1; match = true; } if (match) { if ((spat.getType() & Spatial.TERRAIN_PAGE) != 0) { ((TerrainPage)spat).multHeightMapValue(col, row, toMult); } else if ((spat.getType() & Spatial.TERRAIN_BLOCK) != 0) { ((TerrainBlock)spat).multHeightMapValue(col, row, toMult); } } } }
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/b8d03366343e6a00d87a8e8a7db94252e95f8f78/TerrainPage.java/buggy/src/com/jmex/terrain/TerrainPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1778, 2686, 863, 620, 12, 474, 619, 16, 509, 677, 16, 509, 358, 5049, 13, 288, 4202, 509, 9474, 273, 1104, 24483, 6890, 12, 92, 16, 93, 1769, 4202, 509, 1416, 273, 261, 1467, 397, 404, 13, 1671, 404, 31, 4202, 309, 261, 5906, 480, 446, 13, 4202, 364, 261, 474, 277, 273, 2325, 18, 1467, 5621, 1493, 77, 1545, 374, 31, 262, 288, 6647, 21874, 1694, 270, 273, 261, 24648, 13, 5906, 18, 588, 12, 77, 1769, 6647, 509, 645, 273, 619, 31, 6647, 509, 1027, 273, 677, 31, 6647, 1250, 845, 273, 629, 31, 6647, 368, 336, 326, 21619, 9474, 6890, 6647, 509, 1151, 24483, 6890, 273, 374, 31, 6647, 309, 14015, 1752, 270, 18, 588, 559, 1435, 473, 29347, 1046, 18, 2560, 2849, 706, 67, 11219, 13, 480, 374, 13, 288, 9079, 1151, 24483, 6890, 273, 14015, 56, 264, 7596, 1964, 13, 1752, 270, 2934, 588, 24483, 6890, 5621, 6647, 289, 469, 309, 14015, 1752, 270, 18, 588, 559, 1435, 473, 21874, 18, 2560, 2849, 706, 67, 11403, 13, 480, 374, 13, 288, 9079, 1151, 24483, 6890, 273, 14015, 56, 264, 7596, 1768, 13, 1752, 270, 2934, 588, 24483, 6890, 5621, 6647, 289, 6647, 309, 261, 3624, 24483, 6890, 422, 404, 597, 261, 21733, 473, 404, 13, 480, 374, 13, 288, 9079, 845, 273, 638, 31, 6647, 289, 6647, 469, 309, 261, 3624, 24483, 6890, 422, 576, 597, 261, 21733, 473, 576, 13, 480, 374, 13, 288, 9079, 1027, 273, 677, 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, 565, 1071, 918, 1778, 2686, 863, 620, 12, 474, 619, 16, 509, 677, 16, 509, 358, 5049, 13, 288, 4202, 509, 9474, 273, 1104, 24483, 6890, 12, 92, 16, 93, 1769, 4202, 509, 1416, 273, 261, 1467, 397, 404, 13, 1671, 404, 31, 4202, 309, 261, 5906, 480, 446, 13, 4202, 364, 261, 474, 277, 273, 2325, 18, 1467, 5621, 1493, 77, 1545, 374, 31, 262, 288, 6647, 21874, 1694, 270, 273, 261, 24648, 13, 5906, 18, 588, 12, 77, 1769, 6647, 509, 645, 273, 619, 31, 6647, 509, 1027, 273, 677, 31, 6647, 1250, 845, 273, 629, 31, 6647, 368, 336, 326, 21619, 9474, 6890, 6647, 509, 1151, 24483, 6890, 273, 374, 31, 6647, 309, 14015, 1752, 270, 2 ]
private long countCHKBlocks() { long count =0;
private long countCHKBlocks() throws IOException { long count = 0;
private long countCHKBlocks() { long count =0; try{ Logger.minor(this, "Started counting items in database"); count = ((BtreeStats)chkDB.getStats(null)).getLeafNodeCount(); Logger.minor(this, "Counted "+count+" items in database"); }catch(DatabaseException ex){ Logger.minor(this, "Exception while counting items in database",ex); } return count; }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/fc1107153611521b8802dc2e6ed37430b0f7d687/BerkeleyDBFreenetStore.java/clean/src/freenet/store/BerkeleyDBFreenetStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1525, 1056, 1792, 47, 6450, 1435, 288, 377, 202, 5748, 1056, 273, 20, 31, 377, 202, 698, 95, 377, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 9217, 22075, 1516, 316, 2063, 8863, 377, 1082, 377, 202, 202, 1883, 273, 14015, 38, 3413, 4195, 13, 27038, 2290, 18, 588, 4195, 12, 2011, 13, 2934, 588, 16545, 1380, 5621, 377, 1082, 377, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 1380, 329, 13773, 1883, 9078, 1516, 316, 2063, 8863, 377, 202, 97, 14683, 12, 4254, 503, 431, 15329, 377, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 503, 1323, 22075, 1516, 316, 2063, 3113, 338, 1769, 377, 202, 97, 377, 202, 2463, 1056, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1525, 1056, 1792, 47, 6450, 1435, 288, 377, 202, 5748, 1056, 273, 20, 31, 377, 202, 698, 95, 377, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 9217, 22075, 1516, 316, 2063, 8863, 377, 1082, 377, 202, 202, 1883, 273, 14015, 38, 3413, 4195, 13, 27038, 2290, 18, 588, 4195, 12, 2011, 13, 2934, 588, 16545, 1380, 5621, 377, 1082, 377, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 1380, 329, 13773, 1883, 9078, 1516, 316, 2063, 8863, 377, 202, 97, 14683, 12, 4254, 503, 431, 15329, 377, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 503, 1323, 22075, 1516, 316, 2063, 3113, 338, 1769, 377, 202, 97, 377, 202, 2463, 1056, 31, 565, 2 ]
System.out.println("Parse " + (++parseCount) + ": "
Util.debugLog( "Parse " + (++parseCount) + ": "
public boolean parse() throws Backtrack { long startTime = System.currentTimeMillis(); translationUnit(); System.out.println("Parse " + (++parseCount) + ": " + ( System.currentTimeMillis() - startTime ) + "ms" + ( parsePassed ? "" : " - parse failure" )); return parsePassed; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/4d93d6c4dfbf4ed6d2df5a861214da56db3b7684/Parser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1109, 1435, 1216, 4297, 4101, 288, 202, 202, 5748, 8657, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 10173, 2802, 5621, 202, 202, 3163, 18, 659, 18, 8222, 2932, 3201, 315, 397, 261, 9904, 2670, 1380, 13, 397, 6398, 315, 1082, 202, 15, 261, 2332, 18, 2972, 28512, 1435, 300, 8657, 262, 397, 315, 959, 6, 1082, 202, 15, 261, 1109, 22530, 692, 1408, 294, 315, 300, 1109, 5166, 6, 262, 1769, 6862, 202, 2463, 1109, 22530, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1109, 1435, 1216, 4297, 4101, 288, 202, 202, 5748, 8657, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 10173, 2802, 5621, 202, 202, 3163, 18, 659, 18, 8222, 2932, 3201, 315, 397, 261, 9904, 2670, 1380, 13, 397, 6398, 315, 1082, 202, 15, 261, 2332, 18, 2972, 28512, 1435, 300, 8657, 262, 397, 315, 959, 6, 1082, 202, 15, 261, 1109, 22530, 692, 1408, 294, 315, 300, 1109, 5166, 6, 262, 1769, 6862, 202, 2463, 1109, 22530, 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 ]
protected void notifyAboutToUndo(IUndoableOperation operation) {
private void notifyAboutToUndo(IUndoableOperation operation) {
protected void notifyAboutToUndo(IUndoableOperation operation) { if (DEBUG_OPERATION_HISTORY_NOTIFICATION) { System.out.print("OPERATIONHISTORY >>> ABOUT_TO_UNDO "); //$NON-NLS-1$ System.out.print(operation); System.out.println(); } OperationHistoryEvent event = new OperationHistoryEvent( OperationHistoryEvent.ABOUT_TO_UNDO, this, operation); preNotifyOperation(operation, event); for (int i = 0; i < listeners.size(); i++) try { ((IOperationHistoryListener) listeners.get(i)) .historyNotification(event); } catch (Exception e) { handleNotificationException(e); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/3bad50e6f68ff26b260565b7df8938cfe4826b83/DefaultOperationHistory.java/clean/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/DefaultOperationHistory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 5066, 24813, 774, 31224, 12, 45, 31224, 429, 2988, 1674, 13, 288, 202, 202, 430, 261, 9394, 67, 22040, 67, 31746, 67, 4400, 14865, 13, 288, 1082, 202, 3163, 18, 659, 18, 1188, 2932, 22040, 31746, 4080, 10336, 5069, 67, 4296, 67, 2124, 3191, 315, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 1875, 202, 3163, 18, 659, 18, 1188, 12, 7624, 1769, 1082, 202, 3163, 18, 659, 18, 8222, 5621, 202, 202, 97, 202, 202, 2988, 5623, 1133, 871, 273, 394, 4189, 5623, 1133, 12, 9506, 202, 2988, 5623, 1133, 18, 2090, 5069, 67, 4296, 67, 2124, 3191, 16, 333, 16, 1674, 1769, 202, 202, 1484, 9168, 2988, 12, 7624, 16, 871, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 4679, 18, 1467, 5621, 277, 27245, 1082, 202, 698, 288, 9506, 202, 12443, 45, 2988, 5623, 2223, 13, 4679, 18, 588, 12, 77, 3719, 6862, 202, 18, 8189, 4386, 12, 2575, 1769, 1082, 202, 97, 1044, 261, 503, 425, 13, 288, 9506, 202, 4110, 4386, 503, 12, 73, 1769, 1082, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 5066, 24813, 774, 31224, 12, 45, 31224, 429, 2988, 1674, 13, 288, 202, 202, 430, 261, 9394, 67, 22040, 67, 31746, 67, 4400, 14865, 13, 288, 1082, 202, 3163, 18, 659, 18, 1188, 2932, 22040, 31746, 4080, 10336, 5069, 67, 4296, 67, 2124, 3191, 315, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 1875, 202, 3163, 18, 659, 18, 1188, 12, 7624, 1769, 1082, 202, 3163, 18, 659, 18, 8222, 5621, 202, 202, 97, 202, 202, 2988, 5623, 1133, 871, 273, 394, 4189, 5623, 1133, 12, 9506, 202, 2988, 5623, 1133, 18, 2090, 5069, 67, 4296, 67, 2124, 3191, 16, 333, 16, 1674, 1769, 202, 202, 1484, 9168, 2988, 12, 7624, 16, 871, 1769, 202, 2 ]
void unsuspect(Address mbr) {
private void unsuspect(Address mbr) {
void unsuspect(Address mbr) { bcast_task.removeSuspectedMember(mbr); pingable_mbrs.removeAllElements(); pingable_mbrs.addAll(members); pingable_mbrs.removeAll(bcast_task.getSuspectedMembers()); ping_dest=(Address)getPingDest(pingable_mbrs); }
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/0abdfadc655ddc3210312ed5ca837768a4e54342/FD.java/clean/src/org/jgroups/protocols/FD.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 16804, 407, 1181, 12, 1887, 312, 2848, 13, 288, 3639, 324, 4155, 67, 4146, 18, 4479, 55, 407, 1789, 4419, 12, 1627, 86, 1769, 3639, 10087, 429, 67, 1627, 5453, 18, 4479, 1595, 3471, 5621, 3639, 10087, 429, 67, 1627, 5453, 18, 1289, 1595, 12, 7640, 1769, 3639, 10087, 429, 67, 1627, 5453, 18, 4479, 1595, 12, 70, 4155, 67, 4146, 18, 588, 55, 407, 1789, 6918, 10663, 3639, 10087, 67, 10488, 28657, 1887, 13, 588, 17223, 9378, 12, 1382, 429, 67, 1627, 5453, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 16804, 407, 1181, 12, 1887, 312, 2848, 13, 288, 3639, 324, 4155, 67, 4146, 18, 4479, 55, 407, 1789, 4419, 12, 1627, 86, 1769, 3639, 10087, 429, 67, 1627, 5453, 18, 4479, 1595, 3471, 5621, 3639, 10087, 429, 67, 1627, 5453, 18, 1289, 1595, 12, 7640, 1769, 3639, 10087, 429, 67, 1627, 5453, 18, 4479, 1595, 12, 70, 4155, 67, 4146, 18, 588, 55, 407, 1789, 6918, 10663, 3639, 10087, 67, 10488, 28657, 1887, 13, 588, 17223, 9378, 12, 1382, 429, 67, 1627, 5453, 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 ]
void submitActionSetAndGlobalHandlers() { /* Mash the action sets and global actions together, with global actions * taking priority. */ Map handlersByCommandId = new HashMap(); handlersByCommandId.putAll(actionSetHandlersByCommandId); handlersByCommandId.putAll(globalActionHandlersByCommandId); // Create a low priority submission for each handler. final List newHandlerSubmissions = new ArrayList(); final Shell shell = getShell(); if (shell != null) { for (Iterator iterator = handlersByCommandId.entrySet().iterator(); iterator .hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); String commandId = (String) entry.getKey(); IHandler handler = (IHandler) entry.getValue(); newHandlerSubmissions.add(new HandlerSubmission(null, shell, null, commandId, handler, Priority.LEGACY)); } } // Remove the old submissions, and the add the new ones. final IWorkbenchCommandSupport commandSupport = Workbench.getInstance() .getCommandSupport(); commandSupport.removeHandlerSubmissions(handlerSubmissions); handlerSubmissions = newHandlerSubmissions; commandSupport.addHandlerSubmissions(newHandlerSubmissions); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/80cd048d71d12588ca69deda03625740f72c7a3e/WorkbenchWindow.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 9297, 1803, 694, 1876, 5160, 6919, 1435, 95, 20308, 49, 961, 5787, 1128, 4424, 464, 6347, 1128, 334, 717, 2437, 16, 1918, 6347, 4905, 14, 88, 6159, 8457, 4509, 19, 863, 11046, 858, 2189, 548, 33, 2704, 8658, 5621, 11046, 858, 2189, 548, 18, 458, 1595, 12, 1128, 694, 6919, 858, 2189, 548, 1769, 11046, 858, 2189, 548, 18, 458, 1595, 12, 6347, 1803, 6919, 858, 2189, 548, 1769, 759, 1684, 287, 543, 8457, 12684, 25055, 4176, 18, 6385, 682, 2704, 1503, 1676, 7300, 33, 2704, 19558, 5621, 6385, 13220, 10304, 33, 588, 13220, 5621, 430, 12, 10304, 5, 33, 2011, 15329, 1884, 12, 3198, 9838, 33, 11046, 858, 2189, 548, 18, 4099, 694, 7675, 9838, 5621, 9838, 18, 5332, 2134, 5621, 15329, 863, 18, 1622, 4099, 28657, 863, 18, 1622, 13, 9838, 18, 4285, 5621, 780, 3076, 548, 28657, 780, 13, 4099, 18, 588, 653, 5621, 45, 1503, 4176, 28657, 45, 1503, 13, 4099, 18, 24805, 5621, 2704, 1503, 1676, 7300, 18, 1289, 12, 2704, 1503, 17865, 12, 2011, 16, 10304, 16, 2011, 16, 3076, 548, 16, 4176, 16, 8183, 18, 19384, 2226, 61, 10019, 9090, 759, 4579, 546, 73, 1673, 25675, 16, 464, 24604, 72, 15991, 359, 5322, 18, 6385, 45, 2421, 22144, 2189, 6289, 3076, 6289, 33, 2421, 22144, 18, 588, 1442, 7675, 588, 2189, 6289, 5621, 3076, 6289, 18, 4479, 1503, 1676, 7300, 12, 4176, 1676, 7300, 1769, 4176, 1676, 7300, 33, 2704, 1503, 1676, 7300, 31, 3076, 6289, 18, 1289, 1503, 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, 918, 9297, 1803, 694, 1876, 5160, 6919, 1435, 95, 20308, 49, 961, 5787, 1128, 4424, 464, 6347, 1128, 334, 717, 2437, 16, 1918, 6347, 4905, 14, 88, 6159, 8457, 4509, 19, 863, 11046, 858, 2189, 548, 33, 2704, 8658, 5621, 11046, 858, 2189, 548, 18, 458, 1595, 12, 1128, 694, 6919, 858, 2189, 548, 1769, 11046, 858, 2189, 548, 18, 458, 1595, 12, 6347, 1803, 6919, 858, 2189, 548, 1769, 759, 1684, 287, 543, 8457, 12684, 25055, 4176, 18, 6385, 682, 2704, 1503, 1676, 7300, 33, 2704, 19558, 5621, 6385, 13220, 10304, 33, 588, 13220, 5621, 430, 12, 10304, 5, 33, 2011, 15329, 1884, 12, 3198, 9838, 33, 11046, 858, 2189, 548, 18, 4099, 694, 7675, 9838, 5621, 9838, 2 ]
mi.postCommand(var); MIVarCreateInfo info = var.getMIVarCreateInfo(); if (info == null) { throw new CDIException(CdiResources.getString("cdi.Common.No_answer")); } argument = new Argument(argDesc, info.getMIVar());
mi.postCommand(var, -1); argument = new Argument(argDesc, var);
public Argument createArgument(ArgumentDescriptor argDesc) throws CDIException { Variable variable = findVariable(argDesc); Argument argument = null; if (variable != null && variable instanceof Argument) { argument = (Argument) variable; } if (argument == null) { String name = argDesc.getQualifiedName(); StackFrame stack = (StackFrame)argDesc.getStackFrame(); Target target = (Target)argDesc.getTarget(); Thread currentThread = (Thread)target.getCurrentThread(); StackFrame currentFrame = currentThread.getCurrentStackFrame(); target.setCurrentThread(stack.getThread(), false); ((Thread)stack.getThread()).setCurrentStackFrame(stack, false); try { MISession mi = target.getMISession(); CommandFactory factory = mi.getCommandFactory(); MIVarCreate var = factory.createMIVarCreate(name); mi.postCommand(var); MIVarCreateInfo info = var.getMIVarCreateInfo(); if (info == null) { throw new CDIException(CdiResources.getString("cdi.Common.No_answer")); //$NON-NLS-1$ } argument = new Argument(argDesc, info.getMIVar()); List variablesList = getVariablesList(target); variablesList.add(argument); } catch (MIException e) { throw new MI2CDIException(e); } finally { target.setCurrentThread(currentThread, false); currentThread.setCurrentStackFrame(currentFrame, false); } } return argument; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/55872940c2323d2bc6159446d3d36830d34f067c/VariableManager.java/buggy/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5067, 752, 1379, 12, 1379, 3187, 1501, 4217, 13, 1216, 385, 2565, 503, 288, 202, 202, 3092, 2190, 273, 1104, 3092, 12, 3175, 4217, 1769, 202, 202, 1379, 1237, 273, 446, 31, 202, 202, 430, 261, 6105, 480, 446, 597, 2190, 1276, 5067, 13, 288, 1082, 202, 3446, 273, 261, 1379, 13, 2190, 31, 202, 202, 97, 202, 202, 430, 261, 3446, 422, 446, 13, 288, 1082, 202, 780, 508, 273, 1501, 4217, 18, 588, 12345, 5621, 1082, 202, 2624, 3219, 2110, 273, 261, 2624, 3219, 13, 3175, 4217, 18, 588, 2624, 3219, 5621, 1082, 202, 2326, 1018, 273, 261, 2326, 13, 3175, 4217, 18, 588, 2326, 5621, 1082, 202, 3830, 11800, 273, 261, 3830, 13, 3299, 18, 588, 3935, 3830, 5621, 1082, 202, 2624, 3219, 783, 3219, 273, 11800, 18, 588, 3935, 2624, 3219, 5621, 1082, 202, 3299, 18, 542, 3935, 3830, 12, 3772, 18, 588, 3830, 9334, 629, 1769, 1082, 202, 12443, 3830, 13, 3772, 18, 588, 3830, 1435, 2934, 542, 3935, 2624, 3219, 12, 3772, 16, 629, 1769, 1082, 202, 698, 288, 9506, 202, 7492, 2157, 12837, 273, 1018, 18, 588, 7492, 2157, 5621, 9506, 202, 2189, 1733, 3272, 273, 12837, 18, 588, 2189, 1733, 5621, 9506, 202, 7492, 1537, 1684, 569, 273, 3272, 18, 2640, 7492, 1537, 1684, 12, 529, 1769, 9506, 202, 9197, 18, 2767, 2189, 12, 1401, 1769, 9506, 202, 7492, 1537, 1684, 966, 1123, 273, 569, 18, 588, 7492, 1537, 1684, 966, 5621, 9506, 202, 430, 261, 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, 5067, 752, 1379, 12, 1379, 3187, 1501, 4217, 13, 1216, 385, 2565, 503, 288, 202, 202, 3092, 2190, 273, 1104, 3092, 12, 3175, 4217, 1769, 202, 202, 1379, 1237, 273, 446, 31, 202, 202, 430, 261, 6105, 480, 446, 597, 2190, 1276, 5067, 13, 288, 1082, 202, 3446, 273, 261, 1379, 13, 2190, 31, 202, 202, 97, 202, 202, 430, 261, 3446, 422, 446, 13, 288, 1082, 202, 780, 508, 273, 1501, 4217, 18, 588, 12345, 5621, 1082, 202, 2624, 3219, 2110, 273, 261, 2624, 3219, 13, 3175, 4217, 18, 588, 2624, 3219, 5621, 1082, 202, 2326, 1018, 273, 261, 2326, 13, 3175, 4217, 18, 588, 2326, 5621, 1082, 202, 3830, 11800, 273, 261, 3830, 13, 2 ]
p3 );
p3 );
public void testLogicalAssertionsWithExists() throws Exception { final PackageBuilder builder = new PackageBuilder(); builder.addPackageFromDrl( new InputStreamReader( getClass().getResourceAsStream( "test_LogicalAssertionWithExists.drl" ) ) ); final Package pkg = builder.getPackage(); final RuleBase ruleBase = getRuleBase(); ruleBase.addPackage( pkg ); final WorkingMemory workingMemory = ruleBase.newWorkingMemory(); Person p1 = new Person( "p1", "stilton", 20 ); p1.setStatus( "europe" ); FactHandle c1FactHandle = workingMemory.assertObject( p1 ); Person p2 = new Person( "p2", "stilton", 30 ); p2.setStatus( "europe" ); FactHandle c2FactHandle = workingMemory.assertObject( p2 ); Person p3 = new Person( "p3", "stilton", 40 ); p3.setStatus( "europe" ); FactHandle c3FactHandle = workingMemory.assertObject( p3 ); workingMemory.fireAllRules(); // all 3 in europe, so, 2 cheese List cheeseList = workingMemory.getObjects( Cheese.class ); assertEquals( 2, cheeseList.size() ); // europe=[ 1, 2 ], america=[ 3 ] p3.setStatus( "america" ); workingMemory.modifyObject( c3FactHandle, p3 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( Cheese.class ); assertEquals( 1, cheeseList.size() ); // europe=[ 1 ], america=[ 2, 3 ] p2.setStatus( "america" ); workingMemory.modifyObject( c2FactHandle, p2 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( Cheese.class ); assertEquals( 1, cheeseList.size() ); // europe=[ ], america=[ 1, 2, 3 ] p1.setStatus( "america" ); workingMemory.modifyObject( c1FactHandle, p1 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( Cheese.class ); assertEquals( 2, cheeseList.size() ); // europe=[ 2 ], america=[ 1, 3 ] p2.setStatus( "europe" ); workingMemory.modifyObject( c2FactHandle, p2 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( Cheese.class ); assertEquals( 1, cheeseList.size() ); // europe=[ 1, 2 ], america=[ 3 ] p1.setStatus( "europe" ); workingMemory.modifyObject( c1FactHandle, p1 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( Cheese.class ); assertEquals( 1, cheeseList.size() ); // europe=[ 1, 2, 3 ], america=[ ] p3.setStatus( "europe" ); workingMemory.modifyObject( c3FactHandle, p3 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( Cheese.class ); assertEquals( 2, cheeseList.size() ); }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/3943f90e624c362e86db72655aaa28741c820e7e/IntegrationCases.java/buggy/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 17955, 8213, 1115, 1190, 4002, 1435, 1216, 1185, 288, 3639, 727, 7508, 1263, 2089, 273, 394, 7508, 1263, 5621, 3639, 2089, 18, 1289, 2261, 1265, 40, 1321, 12, 394, 15322, 12, 2900, 7675, 588, 1420, 17052, 12, 315, 3813, 67, 17955, 14979, 1190, 4002, 18, 72, 1321, 6, 262, 262, 11272, 3639, 727, 7508, 3475, 273, 2089, 18, 588, 2261, 5621, 3639, 727, 6781, 2171, 1720, 2171, 273, 19048, 2171, 5621, 3639, 1720, 2171, 18, 1289, 2261, 12, 3475, 11272, 3639, 727, 22732, 6031, 5960, 6031, 273, 1720, 2171, 18, 2704, 14836, 6031, 5621, 3639, 11573, 293, 21, 273, 394, 11573, 12, 315, 84, 21, 3113, 27573, 315, 334, 330, 1917, 3113, 27573, 4200, 11272, 3639, 293, 21, 18, 542, 1482, 12, 315, 73, 24428, 6, 11272, 3639, 29057, 3259, 276, 21, 9766, 3259, 273, 5960, 6031, 18, 11231, 921, 12, 293, 21, 11272, 3639, 11573, 293, 22, 273, 394, 11573, 12, 315, 84, 22, 3113, 27573, 315, 334, 330, 1917, 3113, 27573, 5196, 11272, 3639, 293, 22, 18, 542, 1482, 12, 315, 73, 24428, 6, 11272, 3639, 29057, 3259, 276, 22, 9766, 3259, 273, 5960, 6031, 18, 11231, 921, 12, 293, 22, 11272, 3639, 11573, 293, 23, 273, 394, 11573, 12, 315, 84, 23, 3113, 27573, 315, 334, 330, 1917, 3113, 27573, 8063, 11272, 3639, 293, 23, 18, 542, 1482, 12, 315, 73, 24428, 6, 11272, 3639, 29057, 3259, 276, 23, 9766, 3259, 273, 5960, 6031, 18, 11231, 921, 12, 293, 23, 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, 17955, 8213, 1115, 1190, 4002, 1435, 1216, 1185, 288, 3639, 727, 7508, 1263, 2089, 273, 394, 7508, 1263, 5621, 3639, 2089, 18, 1289, 2261, 1265, 40, 1321, 12, 394, 15322, 12, 2900, 7675, 588, 1420, 17052, 12, 315, 3813, 67, 17955, 14979, 1190, 4002, 18, 72, 1321, 6, 262, 262, 11272, 3639, 727, 7508, 3475, 273, 2089, 18, 588, 2261, 5621, 3639, 727, 6781, 2171, 1720, 2171, 273, 19048, 2171, 5621, 3639, 1720, 2171, 18, 1289, 2261, 12, 3475, 11272, 3639, 727, 22732, 6031, 5960, 6031, 273, 1720, 2171, 18, 2704, 14836, 6031, 5621, 3639, 11573, 293, 21, 273, 394, 11573, 12, 315, 84, 21, 3113, 27573, 315, 334, 330, 1917, 3113, 27573, 4200, 11272, 2 ]
AST tmp2275_AST_in = (AST)_t;
AST tmp2291_AST_in = (AST)_t;
public final void comboboxphrase(AST _t) throws RecognitionException { AST comboboxphrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1703 = _t; AST tmp2262_AST_in = (AST)_t; match(_t,COMBOBOX); _t = _t.getFirstChild(); { _loop1715: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LISTITEMS: { AST __t1705 = _t; AST tmp2263_AST_in = (AST)_t; match(_t,LISTITEMS); _t = _t.getFirstChild(); constant(_t); _t = _retTree; { _loop1707: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2264_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); constant(_t); _t = _retTree; } else { break _loop1707; } } while (true); } _t = __t1705; _t = _t.getNextSibling(); break; } case LISTITEMPAIRS: { AST __t1708 = _t; AST tmp2265_AST_in = (AST)_t; match(_t,LISTITEMPAIRS); _t = _t.getFirstChild(); constant(_t); _t = _retTree; { _loop1710: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2266_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); constant(_t); _t = _retTree; } else { break _loop1710; } } while (true); } _t = __t1708; _t = _t.getNextSibling(); break; } case INNERLINES: { AST __t1711 = _t; AST tmp2267_AST_in = (AST)_t; match(_t,INNERLINES); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1711; _t = _t.getNextSibling(); break; } case SORT: { AST tmp2268_AST_in = (AST)_t; match(_t,SORT); _t = _t.getNextSibling(); break; } case TOOLTIP: { tooltip_expr(_t); _t = _retTree; break; } case SIMPLE: { AST tmp2269_AST_in = (AST)_t; match(_t,SIMPLE); _t = _t.getNextSibling(); break; } case DROPDOWN: { AST tmp2270_AST_in = (AST)_t; match(_t,DROPDOWN); _t = _t.getNextSibling(); break; } case DROPDOWNLIST: { AST tmp2271_AST_in = (AST)_t; match(_t,DROPDOWNLIST); _t = _t.getNextSibling(); break; } case MAXCHARS: { AST __t1712 = _t; AST tmp2272_AST_in = (AST)_t; match(_t,MAXCHARS); _t = _t.getFirstChild(); AST tmp2273_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); _t = __t1712; _t = _t.getNextSibling(); break; } case AUTOCOMPLETION: { AST __t1713 = _t; AST tmp2274_AST_in = (AST)_t; match(_t,AUTOCOMPLETION); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNIQUEMATCH: { AST tmp2275_AST_in = (AST)_t; match(_t,UNIQUEMATCH); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1713; _t = _t.getNextSibling(); break; } case SIZE: case SIZECHARS: case SIZEPIXELS: { sizephrase(_t); _t = _retTree; break; } default: { break _loop1715; } } } while (true); } _t = __t1703; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/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, 3894, 27570, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 3894, 27570, 9429, 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, 4033, 4630, 273, 389, 88, 31, 202, 202, 9053, 1853, 3787, 8898, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 4208, 5315, 16876, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 95, 202, 202, 67, 6498, 4033, 3600, 30, 202, 202, 2896, 288, 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, 15130, 29887, 30, 1082, 202, 95, 9506, 202, 9053, 1001, 88, 4033, 6260, 273, 389, 88, 31, 9506, 202, 9053, 1853, 3787, 4449, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 7085, 29887, 1769, 9506, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 9506, 202, 14384, 24899, 88, 1769, 9506, 202, 67, 88, 273, 389, 1349, 2471, 31, 9506, 202, 95, 9506, 202, 67, 6498, 4033, 8642, 30, 9506, 202, 2896, 288, 6862, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 6862, 202, 430, 14015, 67, 88, 18, 588, 559, 1435, 631, 4208, 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, 3894, 27570, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 3894, 27570, 9429, 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, 4033, 4630, 273, 389, 88, 31, 202, 202, 9053, 1853, 3787, 8898, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 4208, 5315, 16876, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 95, 202, 202, 67, 6498, 4033, 3600, 30, 202, 202, 2896, 288, 1082, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 2 ]
protected void fireMenuKeyPressed(MenuKeyEvent event) { }
protected void fireMenuKeyPressed(MenuKeyEvent event) { }
protected void fireMenuKeyPressed(MenuKeyEvent event) { // TODO } // fireMenuKeyPressed()
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/14511e3ad21013e92c6399b2bd2ec09a8263e33a/JMenuItem.java/clean/libjava/javax/swing/JMenuItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4452, 4599, 653, 24624, 12, 4599, 653, 1133, 871, 13, 288, 202, 202, 759, 2660, 202, 97, 368, 4452, 4599, 653, 24624, 1435, 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, 225, 202, 1117, 918, 4452, 4599, 653, 24624, 12, 4599, 653, 1133, 871, 13, 288, 202, 202, 759, 2660, 202, 97, 368, 4452, 4599, 653, 24624, 1435, 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 ]
throw new IllegalArgumentException("Invalid format");
throw new IllegalArgumentException(Messages.getString("awt.66"));
private static String getNextToken(StringTokenizer tokenizer) { try { return tokenizer.nextToken(); } catch (NoSuchElementException exception) { throw new IllegalArgumentException("Invalid format"); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/3b500ee5922bc7890c276ddee76f1520b369f2fd/AWTKeyStroke.java/clean/modules/awt/src/main/java/common/java/awt/AWTKeyStroke.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 22616, 12, 780, 10524, 10123, 13, 288, 3639, 775, 288, 5411, 327, 10123, 18, 4285, 1345, 5621, 3639, 289, 1044, 261, 28341, 20826, 1520, 13, 288, 2398, 604, 394, 2754, 12, 5058, 18, 588, 780, 2932, 2219, 88, 18, 6028, 7923, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 22616, 12, 780, 10524, 10123, 13, 288, 3639, 775, 288, 5411, 327, 10123, 18, 4285, 1345, 5621, 3639, 289, 1044, 261, 28341, 20826, 1520, 13, 288, 2398, 604, 394, 2754, 12, 5058, 18, 588, 780, 2932, 2219, 88, 18, 6028, 7923, 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 ]
iter = prev.iter; prev = prev.prev;
if (count > 0) { count --; } else { iter = prev.iter; prev = prev.prev; }
public void pop() { iter = prev.iter; prev = prev.prev; }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/f629550c5947df9c1dbe414645f3dc76bcb70df4/RubyIter.java/clean/org/jruby/runtime/RubyIter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1843, 1435, 288, 3639, 1400, 273, 2807, 18, 2165, 31, 3639, 2807, 273, 2807, 18, 10001, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1843, 1435, 288, 3639, 1400, 273, 2807, 18, 2165, 31, 3639, 2807, 273, 2807, 18, 10001, 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, -100 ]
throws org.xml.sax.SAXException {
throws org.xml.sax.SAXException {
public void startContextElement(String name, Attributes attributes) throws org.xml.sax.SAXException { String className = attributes.getValue("class"); if (!checkNonEmpty(className)) { throw new org.xml.sax.SAXException( "Process defined without specifying the class"); } try { targetProcess = proActiveDescriptor.createProcess(id, className); } catch (ProActiveException e) { //e.printStackTrace(); throw new org.xml.sax.SAXException(e.getMessage()); } String closeStream = attributes.getValue("closeStream"); if (checkNonEmpty(closeStream) && closeStream.equals("yes")) { targetProcess.closeStream(); } String hostname = attributes.getValue("hostname"); if (checkNonEmpty(hostname)) { targetProcess.setHostname(hostname); } String username = attributes.getValue("username"); if (checkNonEmpty(username)) { targetProcess.setUsername(username); } }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/02b74933ab36f3053e665e84b8287cd5fd62e098/ProcessDefinitionHandler.java/buggy/src/org/objectweb/proactive/core/descriptor/xml/ProcessDefinitionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 787, 1042, 1046, 12, 780, 508, 16, 9055, 1677, 13, 5411, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 288, 5411, 514, 2658, 273, 1677, 18, 24805, 2932, 1106, 8863, 5411, 309, 16051, 1893, 23176, 12, 12434, 3719, 288, 7734, 604, 394, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 12, 10792, 315, 2227, 2553, 2887, 13664, 326, 667, 8863, 5411, 289, 5411, 775, 288, 7734, 1018, 2227, 273, 450, 3896, 3187, 18, 2640, 2227, 12, 350, 16, 2658, 1769, 5411, 289, 1044, 261, 626, 3896, 503, 425, 13, 288, 7734, 368, 73, 18, 1188, 6332, 5621, 7734, 604, 394, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 12, 73, 18, 24906, 10663, 5411, 289, 5411, 514, 1746, 1228, 273, 1677, 18, 24805, 2932, 4412, 1228, 8863, 5411, 309, 261, 1893, 23176, 12, 4412, 1228, 13, 597, 1746, 1228, 18, 14963, 2932, 9707, 6, 3719, 288, 7734, 1018, 2227, 18, 4412, 1228, 5621, 5411, 289, 5411, 514, 5199, 273, 1677, 18, 24805, 2932, 10358, 8863, 5411, 309, 261, 1893, 23176, 12, 10358, 3719, 288, 7734, 1018, 2227, 18, 542, 13769, 12, 10358, 1769, 5411, 289, 5411, 514, 2718, 273, 1677, 18, 24805, 2932, 5053, 8863, 5411, 309, 261, 1893, 23176, 12, 5053, 3719, 288, 7734, 1018, 2227, 18, 542, 8575, 12, 5053, 1769, 5411, 289, 3639, 289, 2, 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, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 787, 1042, 1046, 12, 780, 508, 16, 9055, 1677, 13, 5411, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 288, 5411, 514, 2658, 273, 1677, 18, 24805, 2932, 1106, 8863, 5411, 309, 16051, 1893, 23176, 12, 12434, 3719, 288, 7734, 604, 394, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 12, 10792, 315, 2227, 2553, 2887, 13664, 326, 667, 8863, 5411, 289, 5411, 775, 288, 7734, 1018, 2227, 273, 450, 3896, 3187, 18, 2640, 2227, 12, 350, 16, 2658, 1769, 5411, 289, 1044, 261, 626, 3896, 503, 425, 13, 288, 7734, 368, 73, 18, 1188, 6332, 5621, 7734, 604, 394, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 12, 2 ]
return(activeAttempts--);
return(activeAttempts--);
public int getActiveAttempts() { return(activeAttempts--); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/41422245404c0fad8a30437d75fc29381b02be42/ConnectionManager.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/ConnectionManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 11960, 10113, 1435, 565, 288, 202, 2463, 12, 3535, 10113, 413, 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, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11960, 10113, 1435, 565, 288, 202, 2463, 12, 3535, 10113, 413, 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, -100, -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 RubyModule.newModule(getRuntime(), classId, parentModule);
return RubyModule.newModule(getRuntime(), getBaseName(), parentModule);
protected IRubyObject doClone() { return RubyModule.newModule(getRuntime(), classId, parentModule); }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/abfe85d15f992ecf4447b155d177050fe2239c3b/RubyModule.java/buggy/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 15908, 10340, 921, 741, 10930, 1435, 288, 377, 202, 2463, 19817, 3120, 18, 2704, 3120, 12, 588, 5576, 9334, 8297, 461, 9334, 982, 3120, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 15908, 10340, 921, 741, 10930, 1435, 288, 377, 202, 2463, 19817, 3120, 18, 2704, 3120, 12, 588, 5576, 9334, 8297, 461, 9334, 982, 3120, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
url = addCredentials(repository, url);
url = addCredentials(url, userName, password);
public static String getBugUrl(String repositoryUrl, int id) { TaskRepository repository = MylarTaskListPlugin.getRepositoryManager().getRepository( BugzillaPlugin.REPOSITORY_KIND, repositoryUrl); String url = repository.getUrl() + POST_ARGS_SHOW_BUG + id; try { url = addCredentials(repository, url); } catch (UnsupportedEncodingException e) { return ""; } return url; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/02c6a88e37a9d04f1fe217ec64c0a8b84fab1fb9/BugzillaRepositoryUtil.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 2882, 637, 1489, 12, 780, 3352, 1489, 16, 509, 612, 13, 288, 202, 202, 2174, 3305, 3352, 273, 8005, 7901, 2174, 682, 3773, 18, 588, 3305, 1318, 7675, 588, 3305, 12, 9506, 202, 19865, 15990, 3773, 18, 862, 30986, 67, 47, 2356, 16, 3352, 1489, 1769, 202, 202, 780, 880, 273, 3352, 18, 588, 1489, 1435, 397, 5485, 67, 22439, 67, 16677, 67, 4827, 397, 612, 31, 202, 202, 698, 288, 1082, 202, 718, 273, 527, 6163, 12, 9071, 16, 880, 1769, 202, 202, 97, 1044, 261, 8544, 13836, 425, 13, 288, 1082, 202, 2463, 1408, 31, 202, 202, 97, 202, 202, 2463, 880, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 760, 514, 2882, 637, 1489, 12, 780, 3352, 1489, 16, 509, 612, 13, 288, 202, 202, 2174, 3305, 3352, 273, 8005, 7901, 2174, 682, 3773, 18, 588, 3305, 1318, 7675, 588, 3305, 12, 9506, 202, 19865, 15990, 3773, 18, 862, 30986, 67, 47, 2356, 16, 3352, 1489, 1769, 202, 202, 780, 880, 273, 3352, 18, 588, 1489, 1435, 397, 5485, 67, 22439, 67, 16677, 67, 4827, 397, 612, 31, 202, 202, 698, 288, 1082, 202, 718, 273, 527, 6163, 12, 9071, 16, 880, 1769, 202, 202, 97, 1044, 261, 8544, 13836, 425, 13, 288, 1082, 202, 2463, 1408, 31, 202, 202, 97, 202, 202, 2463, 880, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100 ]
if (attributeValuesByName.containsKey("enabled") && !Boolean.TRUE.equals(attributeValuesByName .get("enabled"))) return false; else return true;
private boolean executeCommand(String commandId) throws CommandException { if (DEBUG) { System.out .println("KEYS >>> WorkbenchKeyboard.executeCommand(commandId = '" //$NON-NLS-1$ + commandId + "')"); //$NON-NLS-1$ } // Reset the key binding state (close window, clear status line, etc.) resetState(); // Dispatch to the handler. ICommand command = commandManager.getCommand(commandId); if (DEBUG && DEBUG_VERBOSE) { if (!command.isDefined()) { System.out.println("KEYS >>> not defined"); //$NON-NLS-1$ } else if (!command.isHandled()) { System.out.println("KEYS >>> not handled"); //$NON-NLS-1$ } else if (!isEnabled(command)) { System.out.println("KEYS >>> not enabled"); //$NON-NLS-1$ } else { try { Map attributeValuesByName = command .getAttributeValuesByName(); System.out .println("KEYS >>> value for 'id' attribute = " //$NON-NLS-1$ + attributeValuesByName.get("id")); //$NON-NLS-1$ System.out .println("KEYS >>> value for 'enabled' attribute = " //$NON-NLS-1$ + attributeValuesByName.get("enabled")); //$NON-NLS-1$ if (attributeValuesByName.containsKey("enabled") && !Boolean.TRUE.equals(attributeValuesByName .get("enabled"))) return false; else return true; } catch (NotHandledException eNotHandled) { System.out.println(eNotHandled); } } } final boolean commandDefined = command.isDefined(); final boolean commandHandled = command.isHandled(); if (commandDefined && commandHandled && isEnabled(command)) { command.execute(null); } return (commandDefined && commandHandled); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5fb2670c20652c581dabd4d53413ef87669267b9/WorkbenchKeyboard.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/WorkbenchKeyboard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 21120, 12, 780, 1296, 548, 13, 5411, 1216, 3498, 503, 288, 3639, 309, 261, 9394, 13, 288, 5411, 2332, 18, 659, 10792, 263, 8222, 2932, 16333, 4080, 4147, 22144, 17872, 18, 8837, 2189, 12, 3076, 548, 273, 2119, 4329, 3993, 17, 5106, 17, 21, 8, 18701, 397, 1296, 548, 397, 2491, 2225, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 289, 3639, 368, 7151, 326, 498, 5085, 919, 261, 4412, 2742, 16, 2424, 1267, 980, 16, 5527, 12998, 3639, 2715, 1119, 5621, 3639, 368, 11552, 358, 326, 1838, 18, 3639, 467, 2189, 1296, 273, 1296, 1318, 18, 588, 2189, 12, 3076, 548, 1769, 3639, 309, 261, 9394, 597, 6369, 67, 21900, 13, 288, 5411, 309, 16051, 3076, 18, 291, 8116, 10756, 288, 7734, 2332, 18, 659, 18, 8222, 2932, 16333, 4080, 377, 486, 2553, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 289, 469, 309, 16051, 3076, 18, 291, 23186, 10756, 288, 7734, 2332, 18, 659, 18, 8222, 2932, 16333, 4080, 377, 486, 7681, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 289, 469, 309, 16051, 291, 1526, 12, 3076, 3719, 288, 7734, 2332, 18, 659, 18, 8222, 2932, 16333, 4080, 377, 486, 3696, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 289, 469, 288, 7734, 775, 288, 10792, 1635, 1566, 1972, 5911, 273, 1296, 18701, 263, 588, 31770, 5911, 5621, 10792, 2332, 18, 659, 18701, 263, 8222, 2932, 16333, 4080, 377, 460, 364, 296, 350, 11, 1566, 273, 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, 3238, 1250, 21120, 12, 780, 1296, 548, 13, 5411, 1216, 3498, 503, 288, 3639, 309, 261, 9394, 13, 288, 5411, 2332, 18, 659, 10792, 263, 8222, 2932, 16333, 4080, 4147, 22144, 17872, 18, 8837, 2189, 12, 3076, 548, 273, 2119, 4329, 3993, 17, 5106, 17, 21, 8, 18701, 397, 1296, 548, 397, 2491, 2225, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 289, 3639, 368, 7151, 326, 498, 5085, 919, 261, 4412, 2742, 16, 2424, 1267, 980, 16, 5527, 12998, 3639, 2715, 1119, 5621, 3639, 368, 11552, 358, 326, 1838, 18, 3639, 467, 2189, 1296, 273, 1296, 1318, 18, 588, 2189, 12, 3076, 548, 1769, 3639, 309, 261, 9394, 597, 6369, 67, 21900, 13, 288, 5411, 309, 2 ]
defaultPerspID = Platform.getPreferencesService().getString( PlatformUI.PLUGIN_ID, IWorkbenchPreferenceConstants.DEFAULT_PERSPECTIVE_ID, "", null);
defaultPerspID = PrefUtil.getAPIPreferenceStore().getString( IWorkbenchPreferenceConstants.DEFAULT_PERSPECTIVE_ID);
public void load() { // Load the registries. loadPredefined(); loadCustom(); // Get default perspective. // Get it from the R1.0 dialog settings first. Fixes bug 17039 IDialogSettings dialogSettings = WorkbenchPlugin.getDefault().getDialogSettings(); String str = dialogSettings.get(ID_DEF_PERSP); if (str != null && str.length() > 0) { setDefaultPerspective(str); dialogSettings.put(ID_DEF_PERSP, ""); //$NON-NLS-1$ } else { defaultPerspID = Platform.getPreferencesService().getString( PlatformUI.PLUGIN_ID, IWorkbenchPreferenceConstants.DEFAULT_PERSPECTIVE_ID, "", //$NON-NLS-1$ null); } verifyDefaultPerspective(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b7361699ae1f314b870e5e3310e450a40e7a0ece/PerspectiveRegistry.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1262, 1435, 288, 202, 202, 759, 4444, 326, 960, 22796, 18, 21114, 202, 945, 1386, 2178, 5621, 202, 202, 945, 3802, 5621, 202, 202, 759, 968, 805, 26651, 18, 202, 202, 759, 968, 518, 628, 326, 534, 21, 18, 20, 6176, 1947, 1122, 18, 12139, 281, 7934, 8043, 4630, 29, 3196, 202, 734, 3529, 2628, 6176, 2628, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 6353, 2628, 5621, 202, 202, 780, 609, 273, 6176, 2628, 18, 588, 12, 734, 67, 12904, 67, 3194, 3118, 1769, 202, 202, 430, 261, 701, 480, 446, 597, 609, 18, 2469, 1435, 405, 374, 13, 288, 1082, 202, 542, 1868, 14781, 16772, 12, 701, 1769, 1082, 202, 12730, 2628, 18, 458, 12, 734, 67, 12904, 67, 3194, 3118, 16, 1408, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 469, 288, 1082, 565, 805, 14781, 84, 734, 273, 11810, 18, 588, 12377, 1179, 7675, 588, 780, 12, 10792, 11810, 5370, 18, 19415, 67, 734, 16, 10792, 467, 2421, 22144, 9624, 2918, 18, 5280, 67, 3194, 23810, 1268, 5354, 67, 734, 16, 23453, 4329, 3993, 17, 5106, 17, 21, 8, 10792, 446, 1769, 202, 202, 97, 202, 202, 8705, 1868, 14781, 16772, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1262, 1435, 288, 202, 202, 759, 4444, 326, 960, 22796, 18, 21114, 202, 945, 1386, 2178, 5621, 202, 202, 945, 3802, 5621, 202, 202, 759, 968, 805, 26651, 18, 202, 202, 759, 968, 518, 628, 326, 534, 21, 18, 20, 6176, 1947, 1122, 18, 12139, 281, 7934, 8043, 4630, 29, 3196, 202, 734, 3529, 2628, 6176, 2628, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 6353, 2628, 5621, 202, 202, 780, 609, 273, 6176, 2628, 18, 588, 12, 734, 67, 12904, 67, 3194, 3118, 1769, 202, 202, 430, 261, 701, 480, 446, 597, 609, 18, 2469, 1435, 405, 374, 13, 288, 1082, 202, 542, 1868, 14781, 16772, 12, 701, 1769, 1082, 202, 12730, 2628, 2 ]
public AttackOption(CEntity target, Mounted weapon, double value, ToHitData toHit) {
public AttackOption(CEntity target, Mounted weapon, double value, ToHitData toHit, int sec_mod) {
public AttackOption(CEntity target, Mounted weapon, double value, ToHitData toHit) { this.target = target; this.weapon = weapon; this.toHit = toHit; this.value = value; if (target != null) { WeaponType w = (WeaponType) weapon.getType(); // As a primary attack. Damage is already odds-adjusted. this.primary_odds = Compute.oddsAbove(toHit.getValue()) / 100.0; this.primary_expected = this.value; // As a secondary attack. Raw damage is extracted, then adjusted // for secondary to-hit odds. Since units with active Stealth armor // cannot be secondary targets, chances of hitting are 0. if (target.getEntity().isStealthActive()){ this.odds = 0.0; } else { this.odds = Compute.oddsAbove(toHit.getValue() + 1) / 100.0; } this.heat = w.getHeat(); this.expected = this.value/this.primary_odds; this.expected = this.expected * this.odds; final boolean isInfantryWeapon = ((w.getFlags() & WeaponType.F_INFANTRY) == WeaponType.F_INFANTRY); final boolean usesAmmo = (!isInfantryWeapon && w.getAmmoType() != AmmoType.T_NA); final Mounted ammo = usesAmmo ? weapon.getLinked() : null; if (usesAmmo && (ammo == null || ammo.getShotsLeft() == 0)) { this.value = 0; //should have already been caught... } else if (usesAmmo) { this.ammoLeft = ammo.getShotsLeft(); } } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/10d90e529b74a119c18b19ca356a1a227209309f/AttackOption.java/buggy/megamek/src/megamek/client/bot/AttackOption.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6020, 484, 1895, 12, 1441, 1628, 1018, 16, 13076, 329, 732, 28629, 16, 1645, 460, 16, 2974, 13616, 751, 358, 13616, 16, 509, 1428, 67, 1711, 13, 288, 3639, 333, 18, 3299, 273, 1018, 31, 3639, 333, 18, 1814, 28629, 273, 732, 28629, 31, 3639, 333, 18, 869, 13616, 273, 358, 13616, 31, 3639, 333, 18, 1132, 273, 460, 31, 3639, 309, 261, 3299, 480, 446, 13, 288, 5411, 1660, 28629, 559, 341, 273, 261, 3218, 28629, 559, 13, 732, 28629, 18, 588, 559, 5621, 13491, 368, 2970, 279, 3354, 13843, 18, 225, 463, 301, 410, 353, 1818, 14800, 87, 17, 13362, 329, 18, 5411, 333, 18, 8258, 67, 369, 2377, 273, 8155, 18, 369, 2377, 25477, 12, 869, 13616, 18, 24805, 10756, 342, 2130, 18, 20, 31, 5411, 333, 18, 8258, 67, 3825, 273, 333, 18, 1132, 31, 13491, 368, 2970, 279, 9946, 13843, 18, 225, 6576, 302, 301, 410, 353, 9438, 16, 1508, 13940, 5411, 368, 364, 9946, 358, 17, 15989, 14800, 87, 18, 225, 7897, 4971, 598, 2695, 7780, 4162, 23563, 280, 5411, 368, 2780, 506, 9946, 5774, 16, 3861, 764, 434, 6800, 1787, 854, 374, 18, 13491, 309, 261, 3299, 18, 588, 1943, 7675, 291, 510, 73, 4162, 3896, 10756, 95, 7734, 333, 18, 369, 2377, 273, 374, 18, 20, 31, 5411, 289, 469, 288, 7734, 333, 18, 369, 2377, 273, 8155, 18, 369, 2377, 25477, 12, 869, 13616, 18, 24805, 1435, 397, 404, 13, 342, 2130, 18, 20, 31, 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, 6020, 484, 1895, 12, 1441, 1628, 1018, 16, 13076, 329, 732, 28629, 16, 1645, 460, 16, 2974, 13616, 751, 358, 13616, 16, 509, 1428, 67, 1711, 13, 288, 3639, 333, 18, 3299, 273, 1018, 31, 3639, 333, 18, 1814, 28629, 273, 732, 28629, 31, 3639, 333, 18, 869, 13616, 273, 358, 13616, 31, 3639, 333, 18, 1132, 273, 460, 31, 3639, 309, 261, 3299, 480, 446, 13, 288, 5411, 1660, 28629, 559, 341, 273, 261, 3218, 28629, 559, 13, 732, 28629, 18, 588, 559, 5621, 13491, 368, 2970, 279, 3354, 13843, 18, 225, 463, 301, 410, 353, 1818, 14800, 87, 17, 13362, 329, 18, 5411, 333, 18, 8258, 67, 369, 2377, 273, 8155, 18, 369, 2377, 25477, 2 ]
public static Node parse (Tokenizer toker) throws Exception { NodeTerm nt = new NodeTerm(); Token t = toker.peek(); // integer literal if (t instanceof TokenIntegerLiteral) { nt.type = NodeTerm.INTEGER; nt.tokInt = (TokenIntegerLiteral) nt.eatToken(toker); return nt; } // boolean literal if (t.equals(TokenKeyword.TRUE) || t.equals(TokenKeyword.FALSE)) { nt.type = NodeTerm.BOOL; nt.boolValue = t.equals(TokenKeyword.TRUE); nt.eatToken(toker); return nt; } // string literal if (t instanceof TokenStringLiteral) { TokenStringLiteral ts = (TokenStringLiteral) t; int ql = ts.getQuotesLeft(); int qr = ts.getQuotesRight(); if (qr != 0) { // whole string literal nt.type = NodeTerm.STRING; nt.tokStr = (TokenStringLiteral) nt.eatToken(toker); nt.setStart(nt.tokStr); return nt; } // interpolated string literal (turn into a subexpr) LinkedList toklist = new LinkedList(); nt.type = NodeTerm.STRING; nt.tokStr = (TokenStringLiteral) nt.eatToken(toker); toklist.add(nt.tokStr.clone()); // cloned before it's changed. nt.tokStr.setQuotesRight(ql); Node lhs = nt; FilePos filepos = (FilePos) nt.tokStr.getFilePos(); boolean loop = true; while (loop) { Node rhs = null; Token tok = toker.peek(); if (tok instanceof TokenStringLiteral) { rhs = new NodeTerm(); NodeTerm rhsnt = (NodeTerm) rhs; ts = (TokenStringLiteral) tok; rhsnt.type = NodeTerm.STRING; rhsnt.tokStr = (TokenStringLiteral) rhsnt.eatToken(toker); toklist.add(rhsnt.tokStr.clone()); // cloned before it's changed. if (ts.getQuotesRight() == ql) { loop = false; } ts.setQuotesRight(ql); ts.setQuotesLeft(ql); } else if (tok.equals(TokenPunct.DOLLAR)) { rhs = NodeTerm.parse(toker); toklist.add(rhs); } else { throw new Exception("Error parsing "+ "interpolated string."); } // don't make a sum out of a blank string on either side boolean join = true; if (lhs instanceof NodeTerm) { NodeTerm lhst = (NodeTerm) lhs; if (lhst.type == STRING && lhst.tokStr.getString().length() == 0) { lhs = rhs; join = false; } } if (rhs instanceof NodeTerm) { NodeTerm rhst = (NodeTerm) rhs; if (rhst.type == STRING && rhst.tokStr.getString().length() == 0) { join = false; } } if (join) { lhs = new NodeSum(lhs, TokenPunct.PLUS, rhs); } } lhs.setTokenList(toklist); lhs.setStart(filepos); NodeTerm rnt = new NodeTerm(); rnt.type = NodeTerm.STRING; rnt.nodeString = lhs; rnt.addNode(lhs); return rnt; } // Sub-expression (in parenthesis) if (t.equals(TokenPunct.LPAREN)) { nt.type = NodeTerm.SUBEXPR; nt.setStart(nt.eatToken(toker)); nt.subExpr = (NodeExpr) NodeExpr.parse(toker); nt.addNode(nt.subExpr); nt.requireToken(toker, TokenPunct.RPAREN); return nt; } // defined test if (t.equals(TokenKeyword.DEFINED)) { nt.type = NodeTerm.DEFINEDTEST; nt.eatToken(toker); nt.subExpr = (NodeExpr) NodeExpr.parse(toker); nt.addNode(nt.subExpr); return nt; } // reverse function if (t.equals(TokenKeyword.REVERSE)) { nt.type = NodeTerm.REVERSEFUNC; nt.eatToken(toker); nt.subExpr = (NodeExpr) NodeExpr.parse(toker); nt.addNode(nt.subExpr); return nt; } // size function if (t.equals(TokenKeyword.SIZE)) { nt.type = NodeTerm.SIZEFUNC; nt.eatToken(toker); nt.subExpr = (NodeExpr) NodeExpr.parse(toker); nt.addNode(nt.subExpr); return nt; } // isnull function if (t.equals(TokenKeyword.ISNULL)) { nt.type = NodeTerm.ISNULLFUNC; nt.eatToken(toker); nt.subExpr = (NodeExpr) NodeExpr.parse(toker); nt.addNode(nt.subExpr); return nt; } // new and null if (t.equals(TokenKeyword.NEW) || t.equals(TokenKeyword.NEWNULL)) { nt.type = (t.equals(TokenKeyword.NEW) ? NodeTerm.NEW : NodeTerm.NEWNULL); nt.eatToken(toker); nt.newClass = nt.getIdent(toker); return nt; } // VarRef if (t.equals(TokenPunct.DOLLAR)) { nt.type = VARREF; nt.var = (NodeVarRef) NodeVarRef.parse(toker); nt.addNode(nt.var); // check for -> after, like: $object->method(arg1, arg2, ...) if (toker.peek().equals(TokenPunct.DEREF)) { nt.derefLine = toker.peek().getFilePos().line; nt.eatToken(toker); nt.type = METHCALL; // don't return... parsing continues below. } else { return nt; } } // function/method call if (t instanceof TokenIdent || nt.type == METHCALL) { if (nt.type != METHCALL) nt.type = FUNCCALL; nt.funcIdent = nt.getIdent(toker); nt.funcArgs = (NodeArguments) NodeArguments.parse(toker); nt.addNode(nt.funcArgs); return nt; } // array/hash literal if (NodeArrayLiteral.canStart(toker)) { nt.type = ARRAY; nt.subExpr = (NodeExpr) NodeArrayLiteral.parse(toker); return nt; } throw new Exception("Can't finish parsing NodeTerm at " + toker.locationString() + ", toker.peek() = " + t.toString()); }
5345 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5345/6676d99df452023146df224343fbbc77da7ccc7b/NodeTerm.java/clean/danga/s2/NodeTerm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2029, 1109, 261, 10524, 946, 264, 13, 1216, 1185, 565, 288, 202, 907, 4065, 9513, 273, 394, 2029, 4065, 5621, 202, 1345, 268, 273, 946, 264, 18, 347, 3839, 5621, 202, 759, 3571, 7158, 202, 430, 261, 88, 1276, 3155, 4522, 6177, 13, 288, 202, 565, 9513, 18, 723, 273, 2029, 4065, 18, 14217, 31, 202, 565, 9513, 18, 17692, 1702, 273, 261, 1345, 4522, 6177, 13, 9513, 18, 73, 270, 1345, 12, 17692, 264, 1769, 202, 565, 327, 9513, 31, 202, 97, 202, 759, 1250, 7158, 202, 430, 261, 88, 18, 14963, 12, 1345, 8736, 18, 18724, 13, 747, 268, 18, 14963, 12, 1345, 8736, 18, 21053, 3719, 288, 202, 565, 9513, 18, 723, 273, 2029, 4065, 18, 19040, 31, 202, 565, 9513, 18, 6430, 620, 273, 268, 18, 14963, 12, 1345, 8736, 18, 18724, 1769, 202, 565, 9513, 18, 73, 270, 1345, 12, 17692, 264, 1769, 202, 565, 327, 9513, 31, 202, 97, 202, 759, 533, 7158, 202, 430, 261, 88, 1276, 3155, 28565, 13, 288, 202, 565, 3155, 28565, 3742, 273, 261, 1345, 28565, 13, 268, 31, 202, 565, 509, 1043, 80, 273, 3742, 18, 588, 14292, 3910, 5621, 202, 565, 509, 12677, 273, 3742, 18, 588, 14292, 4726, 5621, 202, 565, 309, 261, 27401, 480, 374, 13, 288, 202, 202, 759, 7339, 533, 7158, 202, 202, 496, 18, 723, 273, 2029, 4065, 18, 5804, 31, 202, 202, 496, 18, 17692, 1585, 273, 261, 1345, 28565, 13, 9513, 18, 73, 270, 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, 2029, 1109, 261, 10524, 946, 264, 13, 1216, 1185, 565, 288, 202, 907, 4065, 9513, 273, 394, 2029, 4065, 5621, 202, 1345, 268, 273, 946, 264, 18, 347, 3839, 5621, 202, 759, 3571, 7158, 202, 430, 261, 88, 1276, 3155, 4522, 6177, 13, 288, 202, 565, 9513, 18, 723, 273, 2029, 4065, 18, 14217, 31, 202, 565, 9513, 18, 17692, 1702, 273, 261, 1345, 4522, 6177, 13, 9513, 18, 73, 270, 1345, 12, 17692, 264, 1769, 202, 565, 327, 9513, 31, 202, 97, 202, 759, 1250, 7158, 202, 430, 261, 88, 18, 14963, 12, 1345, 8736, 18, 18724, 13, 747, 268, 18, 14963, 12, 1345, 8736, 18, 21053, 3719, 288, 202, 565, 9513, 18, 723, 273, 2 ]
return findBuildInfo(resource.getProject());
return getBuildInfo(resource, true);
public static IManagedBuildInfo getBuildInfo(IResource resource) { return findBuildInfo(resource.getProject()); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d4bc99f45dbe082adf7fb99858b9cc8d66cd8797/ManagedBuildManager.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 6246, 4184, 3116, 966, 21122, 966, 12, 45, 1420, 1058, 13, 288, 202, 202, 2463, 1104, 3116, 966, 12, 3146, 18, 588, 4109, 10663, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 6246, 4184, 3116, 966, 21122, 966, 12, 45, 1420, 1058, 13, 288, 202, 202, 2463, 1104, 3116, 966, 12, 3146, 18, 588, 4109, 10663, 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 ]
Utils.writeStyleAttribute(d, c.getStyle());
Utils.writeStyleAttribute(d, dialog.getStyle());
protected void writePrefix(Device d, SContainer c) throws IOException { SDialog dialog = (SDialog) c; String encodingType = dialog.getEncodingType(); d.append("<form method=\""); if (dialog.getMethod()) d.append("post"); else d.append("get"); d.append("\""); Utils.writeStyleAttribute(d, c.getStyle()); if (encodingType != null) d.append(" enctype=\"").append(encodingType).append("\""); d.append(" action=\"").append(dialog.getServerAddress()). append("\">\n"); }
3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/248fc5ac421ad84c531a282e883e037228f5ab93/DialogCG.java/buggy/wings/src/org/wings/plaf/xhtml/css1/DialogCG.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1045, 2244, 12, 3654, 302, 16, 348, 2170, 276, 13, 3639, 1216, 1860, 565, 288, 3639, 348, 6353, 6176, 273, 261, 55, 6353, 13, 276, 31, 3639, 514, 2688, 559, 273, 6176, 18, 588, 4705, 559, 5621, 3639, 302, 18, 6923, 2932, 32, 687, 707, 5189, 8863, 3639, 309, 261, 12730, 18, 588, 1305, 10756, 5411, 302, 18, 6923, 2932, 2767, 8863, 3639, 469, 5411, 302, 18, 6923, 2932, 588, 8863, 3639, 302, 18, 6923, 2932, 8530, 1769, 3639, 6091, 18, 2626, 2885, 1499, 12, 72, 16, 6176, 18, 588, 2885, 10663, 3639, 309, 261, 5999, 559, 480, 446, 13, 5411, 302, 18, 6923, 2932, 570, 12387, 13186, 2934, 6923, 12, 5999, 559, 2934, 6923, 2932, 8530, 1769, 3639, 302, 18, 6923, 2932, 1301, 13186, 2934, 6923, 12, 12730, 18, 588, 2081, 1887, 1435, 2934, 5411, 714, 2932, 28219, 82, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1045, 2244, 12, 3654, 302, 16, 348, 2170, 276, 13, 3639, 1216, 1860, 565, 288, 3639, 348, 6353, 6176, 273, 261, 55, 6353, 13, 276, 31, 3639, 514, 2688, 559, 273, 6176, 18, 588, 4705, 559, 5621, 3639, 302, 18, 6923, 2932, 32, 687, 707, 5189, 8863, 3639, 309, 261, 12730, 18, 588, 1305, 10756, 5411, 302, 18, 6923, 2932, 2767, 8863, 3639, 469, 5411, 302, 18, 6923, 2932, 588, 8863, 3639, 302, 18, 6923, 2932, 8530, 1769, 3639, 6091, 18, 2626, 2885, 1499, 12, 72, 16, 6176, 18, 588, 2885, 10663, 3639, 309, 261, 5999, 559, 480, 446, 13, 5411, 302, 18, 6923, 2932, 570, 12387, 13186, 2934, 6923, 12, 5999, 559, 2934, 6923, 2932, 2 ]
public org.quickfix.field.RepoCollateralSecurityType getRepoCollateralSecurityType() throws FieldNotFound { org.quickfix.field.RepoCollateralSecurityType value = new org.quickfix.field.RepoCollateralSecurityType();
public quickfix.field.RepoCollateralSecurityType getRepoCollateralSecurityType() throws FieldNotFound { quickfix.field.RepoCollateralSecurityType value = new quickfix.field.RepoCollateralSecurityType();
public org.quickfix.field.RepoCollateralSecurityType getRepoCollateralSecurityType() throws FieldNotFound { org.quickfix.field.RepoCollateralSecurityType value = new org.quickfix.field.RepoCollateralSecurityType(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/IndicationOfInterest.java/buggy/src/java/src/quickfix/fix44/IndicationOfInterest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8791, 13535, 2045, 287, 4368, 559, 5561, 1631, 13535, 2045, 287, 4368, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8791, 13535, 2045, 287, 4368, 559, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8791, 13535, 2045, 287, 4368, 559, 5621, 565, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8791, 13535, 2045, 287, 4368, 559, 5561, 1631, 13535, 2045, 287, 4368, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8791, 13535, 2045, 287, 4368, 559, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8791, 13535, 2045, 287, 4368, 559, 5621, 565, 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 ]
public InetAddress getAddress()
public final InetAddress getAddress()
public InetAddress getAddress() { return addr; }
25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/b36f8eef237505f078dd95cd2d50183f990c35aa/InetSocketAddress.java/buggy/libjava/java/net/InetSocketAddress.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 14218, 14808, 1435, 565, 288, 202, 2463, 3091, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 727, 14218, 14808, 1435, 565, 288, 202, 2463, 3091, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Raster rr = cr.getData(); Point pt = new Point(0,0); WritableRaster wr = Raster.createWritableRaster(rr.getSampleModel(), rr.getDataBuffer(), pt);
public RenderedImage createRendering(RenderContext rc) { // Just copy over the rendering hints. RenderingHints rh = rc.getRenderingHints(); if (rh == null) rh = new RenderingHints(null); // update the current affine transform AffineTransform at = rc.getTransform(); // This splits out the scale and applies it // prior to the Gaussian. Then after appying the gaussian // it applies the shear (rotation) and translation components. double sx = at.getScaleX(); double sy = at.getScaleY(); double shx = at.getShearX(); double shy = at.getShearY(); double tx = at.getTranslateX(); double ty = at.getTranslateY(); // The Scale is the "hypotonose" of the matrix vectors. double scaleX = Math.sqrt(sx*sx + shy*shy); double scaleY = Math.sqrt(sy*sy + shx*shx); double sdx = stdDeviationX*scaleX; double sdy = stdDeviationY*scaleY; GaussianBlurOp op = new GaussianBlurOp(sdx, sdy, rh); double blurRadX = op.getRadiusX(); double blurRadY = op.getRadiusY(); Shape aoi = rc.getAreaOfInterest(); if(aoi == null) aoi = getBounds2D(); Rectangle2D r = aoi.getBounds2D(); // Grow the region in usr space. r = new Rectangle2D.Double(r.getX()-blurRadX/scaleX, r.getY()-blurRadY/scaleY, r.getWidth() +2*blurRadX/scaleX, r.getHeight()+2*blurRadY/scaleY); // This is the affine transform between our usr space and an // intermediate space which is scaled similarly to our device // space but is still axially aligned with our device space. AffineTransform srcAt; // This is the affine transform between our intermediate // coordinate space and the real device space, or null (if // we don't need an intermediate space). AffineTransform resAt; if (eps_eq(blurRadX, blurRadY) && eps_abs_eq(sx/scaleX, sy/scaleY)) { // Ok we have a square Gaussian kernel which means it is // circularly symetric, further our residual matrix (after // removing scaling) is a rotation matrix (perhaps with // mirroring), thus we can generate our source directly in // device space and convolve there rather than going to an // intermediate space (axially aligned with usr space) and // then completing the requested rotation/shear, with an // AffineRed... srcAt = at; resAt = null; } else { // Scale to device coords. srcAt = AffineTransform.getScaleInstance(scaleX, scaleY); // The shear/rotation simply divides out the // common scale factor in the matrix. resAt = new AffineTransform(sx/scaleX, shy/scaleX, shx/scaleY, sy/scaleY, tx, ty); } RenderedImage ri; ri = getSource().createRendering(new RenderContext(srcAt, r, rh)); if (ri == null) return null; CachableRed cr; cr = ConcreteRenderedImageCachableRed.wrap(ri); Shape devShape = srcAt.createTransformedShape(aoi); r = devShape.getBounds2D(); r = new Rectangle2D.Double(r.getX()-blurRadX, r.getY()-blurRadY, r.getWidth() +2*blurRadX, r.getHeight()+2*blurRadY); if (!r.getBounds().equals(cr.getBounds())) cr = new PadRed(cr, r.getBounds(), PadMode.ZERO_PAD, rh); ColorModel cm = cr.getColorModel(); // OK this is a bit of a cheat. We Pull the DataBuffer out of // The read-only raster that getData gives us. And use it to // build a WritableRaster. This avoids a copy of the data. Raster rr = cr.getData(); Point pt = new Point(0,0); WritableRaster wr = Raster.createWritableRaster(rr.getSampleModel(), rr.getDataBuffer(), pt); BufferedImage srcBI; srcBI = new BufferedImage(cm, wr, cm.isAlphaPremultiplied(), null); BufferedImage destBI; destBI = op.filter(srcBI, null); final int rrMinX = cr.getMinX(); final int rrMinY = cr.getMinY(); cr = new ConcreteBufferedImageCachableRed(destBI, rrMinX, rrMinY); if ((resAt != null) && (!resAt.isIdentity())) cr = new AffineRed(cr, resAt, rh); return cr; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/e94df1e1f84e3f01c3cc2dd5b67ab11198e395bd/ConcreteGaussianBlurRable.java/clean/sources/org/apache/batik/refimpl/gvt/filter/ConcreteGaussianBlurRable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6987, 329, 2040, 752, 14261, 12, 3420, 1042, 4519, 13, 288, 3639, 368, 12526, 1610, 1879, 326, 9782, 13442, 18, 3639, 22391, 6259, 273, 4519, 18, 588, 14261, 13368, 5621, 3639, 309, 261, 30138, 422, 446, 13, 6259, 273, 394, 22391, 12, 2011, 1769, 3639, 368, 1089, 326, 783, 28381, 2510, 3639, 23906, 558, 4059, 622, 273, 4519, 18, 588, 4059, 5621, 3639, 368, 1220, 11019, 596, 326, 3159, 471, 10294, 518, 3639, 368, 6432, 358, 326, 23079, 18, 225, 9697, 1839, 595, 14946, 326, 21490, 3639, 368, 518, 10294, 326, 23901, 297, 261, 18807, 13, 471, 4794, 4085, 18, 3639, 1645, 13280, 273, 622, 18, 588, 5587, 60, 5621, 3639, 1645, 1393, 273, 622, 18, 588, 5587, 61, 5621, 3639, 1645, 699, 92, 273, 622, 18, 588, 55, 580, 297, 60, 5621, 3639, 1645, 699, 93, 273, 622, 18, 588, 55, 580, 297, 61, 5621, 3639, 1645, 2229, 273, 622, 18, 588, 12818, 60, 5621, 3639, 1645, 13806, 273, 622, 18, 588, 12818, 61, 5621, 3639, 368, 1021, 12591, 353, 326, 315, 76, 879, 352, 265, 2584, 6, 434, 326, 3148, 10046, 18, 3639, 1645, 3159, 60, 273, 2361, 18, 24492, 12, 30319, 14, 30319, 397, 699, 93, 14, 674, 93, 1769, 3639, 1645, 3159, 61, 273, 2361, 18, 24492, 12, 9009, 14, 9009, 397, 699, 92, 14, 674, 92, 1769, 3639, 1645, 8349, 92, 273, 2044, 758, 13243, 60, 14, 5864, 60, 31, 3639, 1645, 8349, 93, 273, 2044, 758, 13243, 61, 14, 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, 6987, 329, 2040, 752, 14261, 12, 3420, 1042, 4519, 13, 288, 3639, 368, 12526, 1610, 1879, 326, 9782, 13442, 18, 3639, 22391, 6259, 273, 4519, 18, 588, 14261, 13368, 5621, 3639, 309, 261, 30138, 422, 446, 13, 6259, 273, 394, 22391, 12, 2011, 1769, 3639, 368, 1089, 326, 783, 28381, 2510, 3639, 23906, 558, 4059, 622, 273, 4519, 18, 588, 4059, 5621, 3639, 368, 1220, 11019, 596, 326, 3159, 471, 10294, 518, 3639, 368, 6432, 358, 326, 23079, 18, 225, 9697, 1839, 595, 14946, 326, 21490, 3639, 368, 518, 10294, 326, 23901, 297, 261, 18807, 13, 471, 4794, 4085, 18, 3639, 1645, 13280, 273, 622, 18, 588, 5587, 60, 5621, 3639, 1645, 1393, 273, 622, 18, 588, 2 ]
if (Double.isNaN(number)) return("NaN");
if (Double.isNaN(number)) return("NaN"); else if (number == Double.NEGATIVE_INFINITY) return("-Infinity"); else if (number == Double.POSITIVE_INFINITY) return("Infinity");
public static String formatNumber(double number, String pattern, DecimalFormat formatter) { try { if (Double.isNaN(number)) return("NaN"); StringBuffer result = new StringBuffer(); formatter.applyLocalizedPattern(pattern); formatter.format(number,result,_fieldPosition); return(result.toString()); } catch (IllegalArgumentException e) { runTimeError("Attempting to format number '"+ number + "' using pattern '" + pattern + "'."); return(EMPTYSTRING); } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/1e435ccb0550817516163c070c373c3c38e179f1/BasisLibrary.java/buggy/src/org/apache/xalan/xsltc/runtime/BasisLibrary.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 740, 1854, 12, 9056, 1300, 16, 514, 1936, 16, 6862, 1377, 29665, 4453, 13, 288, 202, 698, 288, 202, 565, 309, 261, 5265, 18, 291, 21172, 12, 2696, 3719, 327, 2932, 21172, 8863, 202, 565, 6674, 563, 273, 394, 6674, 5621, 202, 565, 4453, 18, 9010, 2042, 1235, 3234, 12, 4951, 1769, 202, 565, 4453, 18, 2139, 12, 2696, 16, 2088, 16, 67, 1518, 2555, 1769, 202, 565, 327, 12, 2088, 18, 10492, 10663, 202, 97, 202, 14683, 261, 31237, 425, 13, 288, 202, 565, 1086, 950, 668, 2932, 23089, 358, 740, 1300, 2119, 15, 1300, 397, 9506, 2491, 1450, 1936, 2119, 397, 1936, 397, 30156, 1769, 202, 565, 327, 12, 13625, 5804, 1769, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 740, 1854, 12, 9056, 1300, 16, 514, 1936, 16, 6862, 1377, 29665, 4453, 13, 288, 202, 698, 288, 202, 565, 309, 261, 5265, 18, 291, 21172, 12, 2696, 3719, 327, 2932, 21172, 8863, 202, 565, 6674, 563, 273, 394, 6674, 5621, 202, 565, 4453, 18, 9010, 2042, 1235, 3234, 12, 4951, 1769, 202, 565, 4453, 18, 2139, 12, 2696, 16, 2088, 16, 67, 1518, 2555, 1769, 202, 565, 327, 12, 2088, 18, 10492, 10663, 202, 97, 202, 14683, 261, 31237, 425, 13, 288, 202, 565, 1086, 950, 668, 2932, 23089, 358, 740, 1300, 2119, 15, 1300, 397, 9506, 2491, 1450, 1936, 2119, 397, 1936, 397, 30156, 1769, 202, 565, 327, 12, 13625, 5804, 1769, 202, 2 ]
titlePanel.add(title); Color aColor = title.getBackground();
title.setForeground(new Color(255,255,255)); JButton saveButton = new JButton("Save"); saveButton.setPreferredSize(new Dimension(70,17)); saveButton.setActionCommand("save"); saveButton.addActionListener(this); saveButton.setOpaque(false); saveButton.setForeground(TEXT_COLOR); if(!addSave) saveButton.setVisible(false); Color aColor = getBackground(); JTextArea descrip = new JTextArea();
public void renderTab(TabPanel tp) { if(!tp.isRendered) { tp.isRendered = true; tp.removeAll(); Vector iHoldTables = new Vector(); //add a title label to show which element JPanel titlePanel = new JPanel(); titlePanel.setLayout(new GridLayout(2,1)); JLabel title = new JLabel(); Font thisFont = title.getFont(); Font newFont = new Font(thisFont.getFontName(),Font.BOLD,18); title.setFont(newFont); if (tp.oNode != null) title.setText(" " + getTreePathName(tp.el,tp.oNode) + ":"); else title.setText(" " + getTreePathName(tp.el) + ":"); titlePanel.add(title); Color aColor = title.getBackground(); //if title has a description, add it in italics if (tp.el.hasAttribute("Description")) { if(tp.el.getAttribute("Description").length() != 0) { JTextArea descrip = new JTextArea(); descrip.setEditable(false); descrip.setLineWrap(true); descrip.setWrapStyleWord(true); descrip.setBackground(aColor); newFont = new Font(thisFont.getFontName(), Font.ITALIC,thisFont.getSize()); descrip.setFont(newFont); descrip.setText( " " + tp.el.getAttribute("Description")); titlePanel.add(descrip); } } title.setForeground(new Color(255,255,255)); titlePanel.setBackground(new Color(0,0,50)); //this sets up titlePanel so we can access its height later to //use for "Goto" button scrollpane view setting purposes tp.titlePanel = titlePanel; //First instantiation of TablePanel. This one corresponds to the //actual "top-level" element, e.g. what the main Tab element is TablePanel pan = new TablePanel(tp.el, tp, tp.oNode); iHoldTables.add(pan); //make the nested elements have a further indent to distinguish them //look at the template to get the nested Elements we need to display //with their own TablePanels Vector theseElements = DOMUtil.getChildElements("OMEElement",tp.el); //will be a list of those nested elements that have their own nested //elements Vector branchElements = new Vector(theseElements.size()); //check out each nested Element for(int i = 0;i<theseElements.size();i++) { Element e = null; if (theseElements.get(i) instanceof Element) { e = (Element) theseElements.get(i); } if (DOMUtil.getChildElements("OMEElement",e).size() != 0) { branchElements.add(e); } else { if(tp.oNode != null) { Vector v = new Vector(); String aName = e.getAttribute("XMLName"); if( aName.equals("Image") || aName.equals("Feature") || aName.equals("Dataset") || aName.equals("Project") ) { v = DOMUtil.getChildElements(aName, tp.oNode.getDOMElement()); } else if (tp.oNode.getChild("CustomAttributes") != null) { v = DOMUtil.getChildElements(aName, tp.oNode.getChild("CustomAttributes").getDOMElement()); } if (v.size() == 0) { OMEXMLNode n = null; TablePanel p = new TablePanel(e, tp, n); iHoldTables.add(p); } else { for(int j = 0;j<v.size();j++) { Element anEle = (Element) v.get(j); OMEXMLNode n = null; String unknownName = aName; try { ReflectedUniverse r = new ReflectedUniverse(); if (unknownName.equals("Project") || unknownName.equals("Feature") || unknownName.equals("CustomAttributes") || unknownName.equals("Dataset") || unknownName.equals("Image")) { r.exec("import org.openmicroscopy.xml." + unknownName + "Node"); r.setVar("DOMElement", anEle); r.exec("result = new " + unknownName + "Node(DOMElement)"); n = (OMEXMLNode) r.getVar("result"); } else { r.exec("import org.openmicroscopy.xml.st." + unknownName + "Node"); r.setVar("DOMElement", anEle); r.exec("result = new " + unknownName + "Node(DOMElement)"); n = (OMEXMLNode) r.getVar("result"); } } catch (Exception exc) {// System.out.println(exc.toString()); } if (n == null) { n = new AttributeNode(anEle); } TablePanel p = new TablePanel(e, tp, n); iHoldTables.add(p); } } } else { OMEXMLNode n = null; TablePanel p = new TablePanel(e, tp, n); iHoldTables.add(p); } } } String rowString = ""; for (int i = 0;i<iHoldTables.size();i++) { rowString = rowString + "5dlu, pref, "; } rowString = rowString.substring(0, rowString.length() - 2); FormLayout layout = new FormLayout( "5dlu, 5dlu, pref:grow, 5dlu, 5dlu", rowString); PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); int row = 0; for (int i = 0;i<iHoldTables.size();i++) { row = row + 2; if (i == 0) builder.add( (Component)iHoldTables.get(i), cc.xyw(2, row, 2, "left,center")); else builder.add( (Component)iHoldTables.get(i), cc.xyw(3, row, 2, "left,center")); } //Layout stuff distinguishes between the title and the data panels tp.setLayout(new BorderLayout()); tp.add(titlePanel,BorderLayout.NORTH); tp.add(builder.getPanel(),BorderLayout.CENTER); } }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/6298bc44d12f634ef846a5bb08de557962763ff0/MetadataPane.java/buggy/loci/ome/notebook/MetadataPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1743, 5661, 12, 5661, 5537, 8071, 13, 288, 565, 309, 12, 5, 6834, 18, 291, 19222, 13, 288, 1377, 8071, 18, 291, 19222, 273, 638, 31, 1377, 8071, 18, 4479, 1595, 5621, 5411, 5589, 277, 20586, 6905, 273, 394, 5589, 5621, 1377, 368, 1289, 279, 2077, 1433, 358, 2405, 1492, 930, 1377, 24048, 2077, 5537, 273, 394, 24048, 5621, 1377, 2077, 5537, 18, 542, 3744, 12, 2704, 7145, 3744, 12, 22, 16, 21, 10019, 1377, 21403, 2077, 273, 394, 21403, 5621, 1377, 10063, 333, 5711, 273, 2077, 18, 588, 5711, 5621, 1377, 10063, 394, 5711, 273, 394, 10063, 12, 2211, 5711, 18, 588, 5711, 461, 9334, 5711, 18, 38, 11846, 16, 2643, 1769, 1377, 2077, 18, 542, 5711, 12, 2704, 5711, 1769, 1377, 309, 261, 6834, 18, 83, 907, 480, 446, 13, 2077, 18, 542, 1528, 2932, 315, 397, 15867, 743, 461, 12, 6834, 18, 292, 16, 6834, 18, 83, 907, 13, 397, 6153, 1769, 1377, 469, 2077, 18, 542, 1528, 2932, 315, 397, 15867, 743, 461, 12, 6834, 18, 292, 13, 397, 6153, 1769, 1377, 2077, 5537, 18, 1289, 12, 2649, 1769, 1377, 5563, 279, 2957, 273, 2077, 18, 588, 8199, 5621, 1377, 368, 430, 2077, 711, 279, 2477, 16, 527, 518, 316, 518, 287, 2102, 1377, 309, 261, 6834, 18, 292, 18, 5332, 1499, 2932, 3291, 6, 3719, 288, 3639, 309, 12, 6834, 18, 292, 18, 588, 1499, 2932, 3291, 20387, 2469, 1435, 480, 374, 13, 288, 1850, 804, 1528, 5484, 302, 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, 1743, 5661, 12, 5661, 5537, 8071, 13, 288, 565, 309, 12, 5, 6834, 18, 291, 19222, 13, 288, 1377, 8071, 18, 291, 19222, 273, 638, 31, 1377, 8071, 18, 4479, 1595, 5621, 5411, 5589, 277, 20586, 6905, 273, 394, 5589, 5621, 1377, 368, 1289, 279, 2077, 1433, 358, 2405, 1492, 930, 1377, 24048, 2077, 5537, 273, 394, 24048, 5621, 1377, 2077, 5537, 18, 542, 3744, 12, 2704, 7145, 3744, 12, 22, 16, 21, 10019, 1377, 21403, 2077, 273, 394, 21403, 5621, 1377, 10063, 333, 5711, 273, 2077, 18, 588, 5711, 5621, 1377, 10063, 394, 5711, 273, 394, 10063, 12, 2211, 5711, 18, 588, 5711, 461, 9334, 5711, 18, 38, 11846, 16, 2643, 1769, 1377, 2077, 18, 2 ]
String sExpected = "<xml-fragment at0=\"val0\"/>";
String sExpected = "<xml-fragment at0=\"val0\" xmlns:pre=\"http:
public void testChildAttribute() throws XmlException { String sExpected = "<xml-fragment at0=\"val0\"/>"; String sQuery1 = "$this/foo/bar/attribute::at0"; XmlCursor c = Public2.getCursor(Public2.parse(sXmlChild)); c.selectPath(sQuery1, options ); assertEquals(1, c.getSelectionCount()); c.toNextSelection(); assertEquals(sExpected, c.xmlText()); }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/3719a765810de7eb12546e7f61fd46f491fff9e3/AxesTest.java/buggy/v2/test/src/xmlcursor/xpath/xbean_xpath/detailed/AxesTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1763, 1499, 1435, 1216, 5714, 503, 288, 3639, 514, 272, 6861, 273, 3532, 2902, 17, 11956, 622, 20, 5189, 1125, 20, 2412, 12302, 30, 1484, 5189, 2505, 30, 3639, 514, 26656, 21, 273, 4662, 2211, 19, 11351, 19, 3215, 19, 4589, 2866, 270, 20, 14432, 3639, 5714, 6688, 276, 273, 7224, 22, 18, 588, 6688, 12, 4782, 22, 18, 2670, 12, 87, 4432, 1763, 10019, 3639, 276, 18, 4025, 743, 12, 87, 1138, 21, 16, 702, 11272, 3639, 1815, 8867, 12, 21, 16, 276, 18, 588, 6233, 1380, 10663, 3639, 276, 18, 869, 2134, 6233, 5621, 3639, 1815, 8867, 12, 87, 6861, 16, 276, 18, 2902, 1528, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1763, 1499, 1435, 1216, 5714, 503, 288, 3639, 514, 272, 6861, 273, 3532, 2902, 17, 11956, 622, 20, 5189, 1125, 20, 2412, 12302, 30, 1484, 5189, 2505, 30, 3639, 514, 26656, 21, 273, 4662, 2211, 19, 11351, 19, 3215, 19, 4589, 2866, 270, 20, 14432, 3639, 5714, 6688, 276, 273, 7224, 22, 18, 588, 6688, 12, 4782, 22, 18, 2670, 12, 87, 4432, 1763, 10019, 3639, 276, 18, 4025, 743, 12, 87, 1138, 21, 16, 702, 11272, 3639, 1815, 8867, 12, 21, 16, 276, 18, 588, 6233, 1380, 10663, 3639, 276, 18, 869, 2134, 6233, 5621, 3639, 1815, 8867, 12, 87, 6861, 16, 276, 18, 2902, 1528, 10663, 565, 289, 2, -100, -100, -100, -100, -100 ]
if (dbadaptor.getNumDatasetConfigs() < 1)
if (dbadaptor.getNumDatasetConfigs(true) < 1)
public void removeDataset(StringTokenizer toks) throws InvalidQueryException { if (toks.hasMoreTokens()) { String name = toks.nextToken(); //special case where x.y must be of sourcename.datasetname String[] nametoks = name.split("\\."); try { if (nametoks.length == 2) { if (!(adaptorManager.supportsAdaptor(nametoks[0]) && adaptorManager.supportsDataset(nametoks[1]))) throw new InvalidQueryException( "Cannot remove dataset with name: " + name + " must remove it with datasetname relative to the environmental mart, or sourcename.datasetname explicitly\n"); DSConfigAdaptor adaptor = adaptorManager.getAdaptorByName(nametoks[0]); if (adaptor == null) throw new InvalidQueryException("Nothing loaded for Mart " + nametoks[0] + "\n"); if (adaptor.supportsDataset(nametoks[1])) { if (adaptor instanceof MultiDSConfigAdaptor) { MultiDSConfigAdaptor dbadaptor = (MultiDSConfigAdaptor) adaptor; DatasetConfigIterator dsvs = dbadaptor.getDatasetConfigsByDataset(nametoks[1]); while (dsvs.hasNext()) dbadaptor.removeDatasetConfig((DatasetConfig) dsvs.next()); if (dbadaptor.getNumDatasetConfigs() < 1) adaptorManager.remove(dbadaptor); } else adaptorManager.remove(adaptor); } else throw new InvalidQueryException("Mart " + nametoks[0] + " does not support dataset " + nametoks[1] + "\n"); } else if (nametoks.length == 1) { if (envMart == null) throw new InvalidQueryException("Must set environmental Mart to remove datasets relative to it."); DSConfigAdaptor adaptor = adaptorManager.getAdaptorByName(envMart.getName()); if (adaptor.supportsDataset(nametoks[0])) { if (adaptor instanceof MultiDSConfigAdaptor) { MultiDSConfigAdaptor dbadaptor = (MultiDSConfigAdaptor) adaptor; DatasetConfigIterator dsvs = dbadaptor.getDatasetConfigsByDataset(nametoks[1]); while (dsvs.hasNext()) { dbadaptor.removeDatasetConfig((DatasetConfig) dsvs.next()); } if (dbadaptor.getNumDatasetConfigs() < 1) adaptorManager.remove(dbadaptor); } else adaptorManager.remove(adaptor); } else throw new InvalidQueryException( "Dataset " + nametoks[0] + " is not supported by environmental Mart " + envMart.getName() + "\n"); } else throw new InvalidQueryException( "Cannot remove dataset with name " + name + " must remove it with datasetname relative to the environmental mart, or sourcename.datasetname explicitly\n"); } catch (ConfigurationException e) { throw new InvalidQueryException( "Caught ConfigurationException removing dataset " + name + " " + e.getMessage(), e); } catch (InvalidQueryException e) { throw e; } } else throw new InvalidQueryException("Invalid remove dataset command.\n"); }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/8cbbe7ecedabbc74b15d29992004a181d5da1959/MartShellLib.java/buggy/src/java/org/ensembl/mart/shell/MartShellLib.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1206, 10656, 12, 780, 10524, 21404, 13, 1216, 1962, 1138, 503, 288, 565, 309, 261, 17692, 87, 18, 5332, 7417, 5157, 10756, 288, 1377, 514, 508, 273, 21404, 18, 4285, 1345, 5621, 1377, 368, 9371, 648, 1625, 619, 18, 93, 1297, 506, 434, 272, 20989, 1069, 18, 8682, 529, 1377, 514, 8526, 15135, 278, 601, 87, 273, 508, 18, 4939, 2932, 1695, 1199, 1769, 1377, 775, 288, 3639, 309, 261, 17808, 278, 601, 87, 18, 2469, 422, 576, 13, 288, 1850, 309, 16051, 12, 19195, 280, 1318, 18, 28064, 29888, 12, 17808, 278, 601, 87, 63, 20, 5717, 597, 9087, 1318, 18, 28064, 10656, 12, 17808, 278, 601, 87, 63, 21, 65, 20349, 5411, 604, 394, 1962, 1138, 503, 12, 2868, 315, 4515, 1206, 3709, 598, 508, 30, 315, 7734, 397, 508, 7734, 397, 315, 1297, 1206, 518, 598, 3709, 529, 3632, 358, 326, 3330, 287, 312, 485, 16, 578, 272, 20989, 1069, 18, 8682, 529, 8122, 64, 82, 8863, 1850, 8678, 809, 29888, 9087, 273, 9087, 1318, 18, 588, 29888, 5911, 12, 17808, 278, 601, 87, 63, 20, 19226, 1850, 309, 261, 19195, 280, 422, 446, 13, 5411, 604, 394, 1962, 1138, 503, 2932, 23814, 4203, 364, 490, 485, 315, 397, 15135, 278, 601, 87, 63, 20, 65, 397, 1548, 82, 8863, 1850, 309, 261, 19195, 280, 18, 28064, 10656, 12, 17808, 278, 601, 87, 63, 21, 22643, 288, 5411, 309, 261, 19195, 280, 1276, 5991, 3948, 809, 29888, 13, 288, 2868, 5991, 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, 1206, 10656, 12, 780, 10524, 21404, 13, 1216, 1962, 1138, 503, 288, 565, 309, 261, 17692, 87, 18, 5332, 7417, 5157, 10756, 288, 1377, 514, 508, 273, 21404, 18, 4285, 1345, 5621, 1377, 368, 9371, 648, 1625, 619, 18, 93, 1297, 506, 434, 272, 20989, 1069, 18, 8682, 529, 1377, 514, 8526, 15135, 278, 601, 87, 273, 508, 18, 4939, 2932, 1695, 1199, 1769, 1377, 775, 288, 3639, 309, 261, 17808, 278, 601, 87, 18, 2469, 422, 576, 13, 288, 1850, 309, 16051, 12, 19195, 280, 1318, 18, 28064, 29888, 12, 17808, 278, 601, 87, 63, 20, 5717, 597, 9087, 1318, 18, 28064, 10656, 12, 17808, 278, 601, 87, 63, 21, 65, 20349, 5411, 604, 394, 2 ]
for (i=0;i<=lpcSize;i++)
for (i = 0; i <= lpcSize; i++)
public int encode(final Bits bits, final float[] in) { int i; float[] res, target, mem; float[] syn_resp; float[] orig; /* Copy new data in input buffer */ System.arraycopy(frmBuf, frameSize, frmBuf, 0, bufSize-frameSize); frmBuf[bufSize-frameSize] = in[0] - preemph*pre_mem; for (i=1; i<frameSize; i++) frmBuf[bufSize-frameSize+i] = in[i] - preemph*in[i-1]; pre_mem = in[frameSize-1]; /* Move signals 1 frame towards the past */ System.arraycopy(exc2Buf, frameSize, exc2Buf, 0, bufSize-frameSize); System.arraycopy(excBuf, frameSize, excBuf, 0, bufSize-frameSize); System.arraycopy(swBuf, frameSize, swBuf, 0, bufSize-frameSize); /* Window for analysis */ for (i=0; i<windowSize; i++) buf2[i] = frmBuf[i+frmIdx] * window[i]; /* Compute auto-correlation */ Lpc.autocorr(buf2, autocorr, lpcSize+1, windowSize); autocorr[0] += 10; /* prevents NANs */ autocorr[0] *= lpc_floor; /* Noise floor in auto-correlation domain */ /* Lag windowing: equivalent to filtering in the power-spectrum domain */ for (i=0; i<lpcSize+1; i++) autocorr[i] *= lagWindow[i]; /* Levinson-Durbin */ Lpc.wld(lpc, autocorr, rc, lpcSize); // tmperr System.arraycopy(lpc, 0, lpc, 1, lpcSize); lpc[0]=1; /* LPC to LSPs (x-domain) transform */ int roots=Lsp.lpc2lsp (lpc, lpcSize, lsp, 15, 0.2f); /* Check if we found all the roots */ if (roots==lpcSize) { /* LSP x-domain to angle domain*/ for (i=0;i<lpcSize;i++) lsp[i] = (float)Math.acos(lsp[i]); } else { /* Search again if we can afford it */ if (complexity>1) roots = Lsp.lpc2lsp (lpc, lpcSize, lsp, 11, 0.05f); if (roots==lpcSize) { /* LSP x-domain to angle domain*/ for (i=0;i<lpcSize;i++) lsp[i] = (float)Math.acos(lsp[i]); } else { /*If we can't find all LSP's, do some damage control and use previous filter*/ for (i=0;i<lpcSize;i++) { lsp[i]=old_lsp[i]; } } } float lsp_dist=0; for (i=0;i<lpcSize;i++) lsp_dist += (old_lsp[i] - lsp[i])*(old_lsp[i] - lsp[i]); /* Whole frame analysis (open-loop estimation of pitch and excitation gain) */ float ol_gain; int ol_pitch; float ol_pitch_coef; { if (first != 0) for (i=0; i<lpcSize;i++) interp_lsp[i] = lsp[i]; else for (i=0;i<lpcSize;i++) interp_lsp[i] = .375f*old_lsp[i] + .625f*lsp[i]; Lsp.enforce_margin(interp_lsp, lpcSize, .002f); /* Compute interpolated LPCs (unquantized) for whole frame*/ for (i=0; i<lpcSize; i++) interp_lsp[i] = (float)Math.cos(interp_lsp[i]); m_lsp.lsp2lpc(interp_lsp, interp_lpc, lpcSize); /*Open-loop pitch*/ if (submodes[submodeID] == null || vbr_enabled != 0 || vad_enabled != 0 || submodes[submodeID].forced_pitch_gain != 0 || submodes[submodeID].lbr_pitch != -1) { int[] nol_pitch = new int[6]; float[] nol_pitch_coef = new float[6]; Filters.bw_lpc(gamma1, interp_lpc, bw_lpc1, lpcSize); Filters.bw_lpc(gamma2, interp_lpc, bw_lpc2, lpcSize); Filters.filter_mem2(frmBuf, frmIdx, bw_lpc1, bw_lpc2, swBuf, swIdx, frameSize, lpcSize, mem_sw_whole, 0); Ltp.open_loop_nbest_pitch(swBuf, swIdx, min_pitch, max_pitch, frameSize, nol_pitch, nol_pitch_coef, 6); ol_pitch=nol_pitch[0]; ol_pitch_coef = nol_pitch_coef[0]; /*Try to remove pitch multiples*/ for (i=1;i<6;i++) { if ((nol_pitch_coef[i]>.85*ol_pitch_coef) && (Math.abs(nol_pitch[i]-ol_pitch/2.0)<=1 || Math.abs(nol_pitch[i]-ol_pitch/3.0)<=1 || Math.abs(nol_pitch[i]-ol_pitch/4.0)<=1 || Math.abs(nol_pitch[i]-ol_pitch/5.0)<=1)) { /*ol_pitch_coef=nol_pitch_coef[i];*/ ol_pitch = nol_pitch[i]; } } /*if (ol_pitch>50) ol_pitch/=2;*/ /*ol_pitch_coef = sqrt(ol_pitch_coef);*/ } else { ol_pitch=0; ol_pitch_coef=0; } /*Compute "real" excitation*/ Filters.fir_mem2(frmBuf, frmIdx, interp_lpc, excBuf, excIdx, frameSize, lpcSize, mem_exc); /* Compute open-loop excitation gain */ ol_gain=0; for (i=0;i<frameSize;i++) ol_gain += excBuf[excIdx+i]*excBuf[excIdx+i]; ol_gain=(float)Math.sqrt(1+ol_gain/frameSize); } /*VBR stuff*/ if (vbr != null && (vbr_enabled != 0 || vad_enabled != 0)) { if (abr_enabled != 0) { float qual_change=0; if (abr_drift2 * abr_drift > 0) { /* Only adapt if long-term and short-term drift are the same sign */ qual_change = -.00001f*abr_drift/(1+abr_count); if (qual_change>.05f) qual_change=.05f; if (qual_change<-.05f) qual_change=-.05f; } vbr_quality += qual_change; if (vbr_quality>10) vbr_quality=10; if (vbr_quality<0) vbr_quality=0; } relative_quality = vbr.analysis(in, frameSize, ol_pitch, ol_pitch_coef); /*if (delta_qual<0)*/ /* delta_qual*=.1*(3+st->vbr_quality);*/ if (vbr_enabled != 0) { int mode; int choice=0; float min_diff=100; mode = 8; while (mode > 0) { int v1; float thresh; v1=(int)Math.floor(vbr_quality); if (v1==10) thresh = Vbr.nb_thresh[mode][v1]; else thresh = (vbr_quality-v1)*Vbr.nb_thresh[mode][v1+1] + (1+v1-vbr_quality)*Vbr.nb_thresh[mode][v1]; if (relative_quality > thresh && relative_quality-thresh<min_diff) { choice = mode; min_diff = relative_quality-thresh; } mode--; } mode=choice; if (mode==0) { if (dtx_count==0 || lsp_dist>.05 || dtx_enabled==0 || dtx_count>20) { mode=1; dtx_count=1; } else { mode=0; dtx_count++; } } else { dtx_count=0; } setMode(mode); if (abr_enabled != 0) { int bitrate; bitrate = getBitRate(); abr_drift+=(bitrate-abr_enabled); abr_drift2 = .95f*abr_drift2 + .05f*(bitrate-abr_enabled); abr_count += 1.0; } } else { /*VAD only case*/ int mode; if (relative_quality<2) { if (dtx_count==0 || lsp_dist>.05 || dtx_enabled == 0 || dtx_count>20) { dtx_count=1; mode=1; } else { mode=0; dtx_count++; } } else { dtx_count = 0; mode=submodeSelect; } /*speex_encoder_ctl(state, SPEEX_SET_MODE, &mode);*/ submodeID=mode; } } else { relative_quality = -1; } /* First, transmit a zero for narrowband */ bits.pack(0, 1); /* Transmit the sub-mode we use for this frame */ bits.pack(submodeID, NB_SUBMODE_BITS); /* If null mode (no transmission), just set a couple things to zero*/ if (submodes[submodeID] == null) { for (i=0;i<frameSize;i++) excBuf[excIdx+i]=exc2Buf[exc2Idx+i]=swBuf[swIdx+i]=VERY_SMALL; for (i=0;i<lpcSize;i++) mem_sw[i]=0; first=1; bounded_pitch = 1; /* Final signal synthesis from excitation */ Filters.iir_mem2(excBuf, excIdx, interp_qlpc, frmBuf, frmIdx, frameSize, lpcSize, mem_sp); in[0] = frmBuf[frmIdx] + preemph*pre_mem2; for (i=1;i<frameSize;i++) in[i]=frmBuf[frmIdx=i] + preemph*in[i-1]; pre_mem2=in[frameSize-1]; return 0; } /* LSP Quantization */ if (first != 0) { for (i=0; i<lpcSize;i++) old_lsp[i] = lsp[i]; } /*Quantize LSPs*///#if 1 /*0 for unquantized*/ submodes[submodeID].lsqQuant.quant(lsp, qlsp, lpcSize, bits);//#else// for (i=0;i<lpcSize;i++)// qlsp[i]=lsp[i];//#endif /*If we use low bit-rate pitch mode, transmit open-loop pitch*/ if (submodes[submodeID].lbr_pitch!=-1) { bits.pack(ol_pitch-min_pitch, 7); } if (submodes[submodeID].forced_pitch_gain != 0) { int quant; quant = (int)Math.floor(.5+15*ol_pitch_coef); if (quant>15) quant=15; if (quant<0) quant=0; bits.pack(quant, 4); ol_pitch_coef=(float) 0.066667*quant; } /*Quantize and transmit open-loop excitation gain*/ { int qe = (int)(Math.floor(0.5+3.5*Math.log(ol_gain))); if (qe<0) qe=0; if (qe>31) qe=31; ol_gain = (float) Math.exp(qe/3.5); bits.pack(qe, 5); } /* Special case for first frame */ if (first != 0) { for (i=0;i<lpcSize;i++) old_qlsp[i] = qlsp[i]; } /* Filter response */ res = new float[subframeSize]; /* Target signal */ target = new float[subframeSize]; syn_resp = new float[subframeSize]; mem = new float[lpcSize]; orig = new float[frameSize]; for (i=0;i<frameSize;i++) orig[i]=frmBuf[frmIdx+i]; /* Loop on sub-frames */ for (int sub=0;sub<nbSubframes;sub++) { float tmp; int offset; int sp, sw, exc, exc2; int pitchval; /* Offset relative to start of frame */ offset = subframeSize*sub; /* Original signal */ sp=frmIdx+offset; /* Excitation */ exc=excIdx+offset; /* Weighted signal */ sw=swIdx+offset; exc2=exc2Idx+offset; /* LSP interpolation (quantized and unquantized) */ tmp = (float) (1.0 + sub)/nbSubframes; for (i=0;i<lpcSize;i++) interp_lsp[i] = (1-tmp)*old_lsp[i] + tmp*lsp[i]; for (i=0;i<lpcSize;i++) interp_qlsp[i] = (1-tmp)*old_qlsp[i] + tmp*qlsp[i]; /* Make sure the filters are stable */ Lsp.enforce_margin(interp_lsp, lpcSize, .002f); Lsp.enforce_margin(interp_qlsp, lpcSize, .002f); /* Compute interpolated LPCs (quantized and unquantized) */ for (i=0;i<lpcSize;i++) interp_lsp[i] = (float) Math.cos(interp_lsp[i]); m_lsp.lsp2lpc(interp_lsp, interp_lpc, lpcSize); for (i=0;i<lpcSize;i++) interp_qlsp[i] = (float) Math.cos(interp_qlsp[i]); m_lsp.lsp2lpc(interp_qlsp, interp_qlpc, lpcSize); /* Compute analysis filter gain at w=pi (for use in SB-CELP) */ tmp=1; pi_gain[sub]=0; for (i=0;i<=lpcSize;i++) { pi_gain[sub] += tmp*interp_qlpc[i]; tmp = -tmp; } /* Compute bandwidth-expanded (unquantized) LPCs for perceptual weighting */ Filters.bw_lpc(gamma1, interp_lpc, bw_lpc1, lpcSize); if (gamma2>=0) Filters.bw_lpc(gamma2, interp_lpc, bw_lpc2, lpcSize); else { bw_lpc2[0]=1; bw_lpc2[1]=-preemph; for (i=2;i<=lpcSize;i++) bw_lpc2[i]=0; } /* Compute impulse response of A(z/g1) / ( A(z)*A(z/g2) )*/ for (i=0;i<subframeSize;i++) excBuf[exc+i]=0; excBuf[exc]=1; Filters.syn_percep_zero(excBuf, exc, interp_qlpc, bw_lpc1, bw_lpc2, syn_resp, subframeSize, lpcSize); /* Reset excitation */ for (i=0;i<subframeSize;i++) excBuf[exc+i]=0; for (i=0;i<subframeSize;i++) exc2Buf[exc2+i]=0; /* Compute zero response of A(z/g1) / ( A(z/g2) * A(z) ) */ for (i=0;i<lpcSize;i++) mem[i]=mem_sp[i]; Filters.iir_mem2(excBuf, exc, interp_qlpc, excBuf, exc, subframeSize, lpcSize, mem); for (i=0;i<lpcSize;i++) mem[i]=mem_sw[i]; Filters.filter_mem2(excBuf, exc, bw_lpc1, bw_lpc2, res, 0, subframeSize, lpcSize, mem, 0); /* Compute weighted signal */ for (i=0;i<lpcSize;i++) mem[i]=mem_sw[i]; Filters.filter_mem2(frmBuf, sp, bw_lpc1, bw_lpc2, swBuf, sw, subframeSize, lpcSize, mem, 0); /* Compute target signal */ for (i=0;i<subframeSize;i++) target[i]=swBuf[sw+i]-res[i]; for (i=0;i<subframeSize;i++) excBuf[exc+i]=exc2Buf[exc2+i]=0; /* If we have a long-term predictor (otherwise, something's wrong) */// if (submodes[submodeID].ltp.quant)// { int pit_min, pit_max; /* Long-term prediction */ if (submodes[submodeID].lbr_pitch != -1) { /* Low bit-rate pitch handling */ int margin; margin = submodes[submodeID].lbr_pitch; if (margin != 0) { if (ol_pitch < min_pitch+margin-1) ol_pitch=min_pitch+margin-1; if (ol_pitch > max_pitch-margin) ol_pitch=max_pitch-margin; pit_min = ol_pitch-margin+1; pit_max = ol_pitch+margin; } else { pit_min=pit_max=ol_pitch; } } else { pit_min = min_pitch; pit_max = max_pitch; } /* Force pitch to use only the current frame if needed */ if (bounded_pitch != 0 && pit_max>offset) pit_max=offset; /* Perform pitch search */ pitchval = submodes[submodeID].ltp.quant(target, swBuf, sw, interp_qlpc, bw_lpc1, bw_lpc2, excBuf, exc, pit_min, pit_max, ol_pitch_coef, lpcSize, subframeSize, bits, exc2Buf, exc2, syn_resp, complexity); pitch[sub]=pitchval;// } else {// speex_error ("No pitch prediction, what's wrong");// } /* Update target for adaptive codebook contribution */ Filters.syn_percep_zero(excBuf, exc, interp_qlpc, bw_lpc1, bw_lpc2, res, subframeSize, lpcSize); for (i=0;i<subframeSize;i++) target[i]-=res[i]; /* Quantization of innovation */ { int innovptr; float ener=0, ener_1; innovptr = sub*subframeSize; for (i=0;i<subframeSize;i++) innov[innovptr+i]=0; Filters.residue_percep_zero(target, 0, interp_qlpc, bw_lpc1, bw_lpc2, buf2, subframeSize, lpcSize); for (i=0;i<subframeSize;i++) ener+=buf2[i]*buf2[i]; ener=(float)Math.sqrt(.1f+ener/subframeSize); /*for (i=0;i<subframeSize;i++) System.out.print(buf2[i]/ener + "\t"); */ ener /= ol_gain; /* Calculate gain correction for the sub-frame (if any) */ if (submodes[submodeID].have_subframe_gain != 0) { int qe; ener=(float)Math.log(ener); if (submodes[submodeID].have_subframe_gain==3) { qe = VQ.index(ener, exc_gain_quant_scal3, 8); bits.pack(qe, 3); ener=exc_gain_quant_scal3[qe]; } else { qe = VQ.index(ener, exc_gain_quant_scal1, 2); bits.pack(qe, 1); ener=exc_gain_quant_scal1[qe]; } ener=(float)Math.exp(ener); } else { ener=1; } ener*=ol_gain; /*System.out.println(ener + " " + ol_gain);*/ ener_1 = 1/ener; /* Normalize innovation */ for (i=0;i<subframeSize;i++) target[i]*=ener_1; /* Quantize innovation */// if (submodes[submodeID].innovation != null)// { /* Codebook search */ submodes[submodeID].innovation.quant(target, interp_qlpc, bw_lpc1, bw_lpc2, lpcSize, subframeSize, innov, innovptr, syn_resp, bits, complexity); /* De-normalize innovation and update excitation */ for (i=0;i<subframeSize;i++) innov[innovptr+i]*=ener; for (i=0;i<subframeSize;i++) excBuf[exc+i] += innov[innovptr+i];// } else {// speex_error("No fixed codebook");// } /* In some (rare) modes, we do a second search (more bits) to reduce noise even more */ if (submodes[submodeID].double_codebook != 0) { float[] innov2 = new float[subframeSize];// for (i=0;i<subframeSize;i++)// innov2[i]=0; for (i=0;i<subframeSize;i++) target[i]*=2.2; submodes[submodeID].innovation.quant(target, interp_qlpc, bw_lpc1, bw_lpc2, lpcSize, subframeSize, innov2, 0, syn_resp, bits, complexity); for (i=0;i<subframeSize;i++) innov2[i]*=ener*(1/2.2); for (i=0;i<subframeSize;i++) excBuf[exc+i] += innov2[i]; } for (i=0;i<subframeSize;i++) target[i]*=ener; } /*Keep the previous memory*/ for (i=0;i<lpcSize;i++) mem[i]=mem_sp[i]; /* Final signal synthesis from excitation */ Filters.iir_mem2(excBuf, exc, interp_qlpc, frmBuf, sp, subframeSize, lpcSize, mem_sp); /* Compute weighted signal again, from synthesized speech (not sure it's the right thing) */ Filters.filter_mem2(frmBuf, sp, bw_lpc1, bw_lpc2, swBuf, sw, subframeSize, lpcSize, mem_sw, 0); for (i=0;i<subframeSize;i++) exc2Buf[exc2+i]=excBuf[exc+i]; } /* Store the LSPs for interpolation in the next frame */ if (submodeID>=1) { for (i=0;i<lpcSize;i++) old_lsp[i] = lsp[i]; for (i=0;i<lpcSize;i++) old_qlsp[i] = qlsp[i]; } if (submodeID==1) { if (dtx_count != 0) { bits.pack(15, 4); } else { bits.pack(0, 4); } } /* The next frame will not be the first (Duh!) */ first = 0; { float ener=0, err=0; float snr; for (i=0;i<frameSize;i++) { ener+=frmBuf[frmIdx+i]*frmBuf[frmIdx+i]; err += (frmBuf[frmIdx+i]-orig[i])*(frmBuf[frmIdx+i]-orig[i]); } snr = (float) (10*Math.log((ener+1)/(err+1))); /*System.out.println("Frame result: SNR="+snr+" E="+ener+" Err="+err+"\r\n");*/ } /* Replace input by synthesized speech */ in[0] = frmBuf[frmIdx] + preemph*pre_mem2; for (i=1;i<frameSize;i++) in[i]=frmBuf[frmIdx+i] + preemph*in[i-1]; pre_mem2=in[frameSize-1]; if (submodes[submodeID].innovation instanceof NoiseSearch || submodeID==0) bounded_pitch = 1; else bounded_pitch = 0; return 1; }
6221 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6221/81112208859292bc5ef5f9b0033ab2ea6dab38c0/NbEncoder.java/buggy/main/trunk/codec/src/main/java/org/xiph/speex/NbEncoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 2017, 12, 6385, 18690, 4125, 16, 727, 1431, 8526, 316, 13, 225, 288, 565, 509, 277, 31, 565, 1431, 8526, 400, 16, 1018, 16, 1663, 31, 565, 1431, 8526, 6194, 67, 12243, 31, 565, 1431, 8526, 1647, 31, 565, 1748, 5631, 394, 501, 316, 810, 1613, 1195, 565, 2332, 18, 1126, 3530, 12, 4840, 81, 5503, 16, 2623, 1225, 16, 31074, 5503, 16, 374, 16, 1681, 1225, 17, 3789, 1225, 1769, 565, 31074, 5503, 63, 4385, 1225, 17, 3789, 1225, 65, 273, 316, 63, 20, 65, 300, 675, 351, 844, 14, 1484, 67, 3917, 31, 565, 364, 261, 77, 33, 21, 31, 277, 32, 3789, 1225, 31, 277, 27245, 1377, 31074, 5503, 63, 4385, 1225, 17, 3789, 1225, 15, 77, 65, 273, 316, 63, 77, 65, 300, 675, 351, 844, 14, 267, 63, 77, 17, 21, 15533, 565, 675, 67, 3917, 273, 316, 63, 3789, 1225, 17, 21, 15533, 565, 1748, 9933, 11505, 404, 2623, 23248, 326, 8854, 1195, 565, 2332, 18, 1126, 3530, 12, 10075, 22, 5503, 16, 2623, 1225, 16, 3533, 22, 5503, 16, 374, 16, 1681, 1225, 17, 3789, 1225, 1769, 565, 2332, 18, 1126, 3530, 12, 10075, 5503, 16, 2623, 1225, 16, 3533, 5503, 16, 374, 16, 1681, 1225, 17, 3789, 1225, 1769, 565, 2332, 18, 1126, 3530, 12, 5328, 5503, 16, 2623, 1225, 16, 1352, 5503, 16, 374, 16, 1681, 1225, 17, 3789, 1225, 1769, 565, 1748, 6076, 364, 6285, 1195, 565, 364, 261, 77, 33, 20, 31, 277, 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, 509, 2017, 12, 6385, 18690, 4125, 16, 727, 1431, 8526, 316, 13, 225, 288, 565, 509, 277, 31, 565, 1431, 8526, 400, 16, 1018, 16, 1663, 31, 565, 1431, 8526, 6194, 67, 12243, 31, 565, 1431, 8526, 1647, 31, 565, 1748, 5631, 394, 501, 316, 810, 1613, 1195, 565, 2332, 18, 1126, 3530, 12, 4840, 81, 5503, 16, 2623, 1225, 16, 31074, 5503, 16, 374, 16, 1681, 1225, 17, 3789, 1225, 1769, 565, 31074, 5503, 63, 4385, 1225, 17, 3789, 1225, 65, 273, 316, 63, 20, 65, 300, 675, 351, 844, 14, 1484, 67, 3917, 31, 565, 364, 261, 77, 33, 21, 31, 277, 32, 3789, 1225, 31, 277, 27245, 1377, 31074, 5503, 63, 4385, 1225, 17, 2 ]
public void endElement(String uri, String localName, String qName) throws SAXException {
public void endElement(String uri, String localName, String qName) {
public void endElement(String uri, String localName, String qName) throws SAXException { if ("ERROR".equals(name)) { LOG.error("Unable to retrieve pubmed record: " + characters); } else if ("Id".equals(name)) { publication = itemFactory.makeItemForClass(TARGET_NS + "Publication"); toStore.add(publication); publication.setAttribute("pubMedId", characters.toString()); } else if ("PubDate".equals(name)) { String year = characters.toString().split(" ")[0]; try { Integer.parseInt(year); publication.setAttribute("year", year); } catch (NumberFormatException e) { LOG.warn("Publication: " + publication + " has a year that cannot be parsed" + " to an Integer: " + year); } } else if ("Source".equals(name)) { publication.setAttribute("journal", characters.toString()); } else if ("Title".equals(name)) { publication.setAttribute("title", characters.toString()); } else if ("Volume".equals(name)) { publication.setAttribute("volume", characters.toString()); } else if ("Issue".equals(name)) { publication.setAttribute("issue", characters.toString()); } else if ("Pages".equals(name)) { publication.setAttribute("pages", characters.toString()); } else if ("Author".equals(name)) { Item author = itemFactory.makeItemForClass(TARGET_NS + "Author"); toStore.add(author); String authorString = characters.toString(); author.setAttribute("name", authorString); author.addToCollection("publications", publication); publication.addToCollection("authors", author); if (!publication.hasAttribute("firstAuthor")) { publication.setAttribute("firstAuthor", authorString); } } name = null; }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/bfb2e598221e0f266af5d15cdf8975e288e0acf8/UpdatePublications.java/clean/bio/postprocess/main/src/org/intermine/bio/postprocess/UpdatePublications.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 14840, 12, 780, 2003, 16, 514, 11927, 16, 514, 22914, 13, 288, 5411, 309, 7566, 3589, 9654, 14963, 12, 529, 3719, 288, 7734, 2018, 18, 1636, 2932, 3370, 358, 4614, 5634, 2937, 1409, 30, 315, 397, 3949, 1769, 5411, 289, 469, 309, 7566, 548, 9654, 14963, 12, 529, 3719, 288, 7734, 20574, 273, 761, 1733, 18, 6540, 1180, 22581, 12, 16374, 67, 3156, 397, 315, 4782, 367, 8863, 7734, 358, 2257, 18, 1289, 12, 28631, 1769, 7734, 20574, 18, 542, 1499, 2932, 10174, 13265, 548, 3113, 3949, 18, 10492, 10663, 5411, 289, 469, 309, 7566, 9581, 1626, 9654, 14963, 12, 529, 3719, 288, 7734, 514, 3286, 273, 3949, 18, 10492, 7675, 4939, 2932, 9369, 63, 20, 15533, 7734, 775, 288, 10792, 2144, 18, 2670, 1702, 12, 6874, 1769, 10792, 20574, 18, 542, 1499, 2932, 6874, 3113, 3286, 1769, 7734, 289, 1044, 261, 1854, 9291, 425, 13, 288, 10792, 2018, 18, 8935, 2932, 4782, 367, 30, 315, 397, 20574, 397, 315, 711, 279, 3286, 716, 2780, 506, 2707, 6, 11794, 397, 315, 358, 392, 2144, 30, 315, 397, 3286, 1769, 7734, 289, 5411, 289, 469, 309, 7566, 1830, 9654, 14963, 12, 529, 3719, 288, 7734, 20574, 18, 542, 1499, 2932, 22644, 3113, 3949, 18, 10492, 10663, 5411, 289, 469, 309, 7566, 4247, 9654, 14963, 12, 529, 3719, 288, 7734, 20574, 18, 542, 1499, 2932, 2649, 3113, 3949, 18, 10492, 10663, 5411, 289, 469, 309, 7566, 4545, 9654, 14963, 12, 529, 3719, 288, 7734, 20574, 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, 540, 1071, 918, 14840, 12, 780, 2003, 16, 514, 11927, 16, 514, 22914, 13, 288, 5411, 309, 7566, 3589, 9654, 14963, 12, 529, 3719, 288, 7734, 2018, 18, 1636, 2932, 3370, 358, 4614, 5634, 2937, 1409, 30, 315, 397, 3949, 1769, 5411, 289, 469, 309, 7566, 548, 9654, 14963, 12, 529, 3719, 288, 7734, 20574, 273, 761, 1733, 18, 6540, 1180, 22581, 12, 16374, 67, 3156, 397, 315, 4782, 367, 8863, 7734, 358, 2257, 18, 1289, 12, 28631, 1769, 7734, 20574, 18, 542, 1499, 2932, 10174, 13265, 548, 3113, 3949, 18, 10492, 10663, 5411, 289, 469, 309, 7566, 9581, 1626, 9654, 14963, 12, 529, 3719, 288, 7734, 514, 3286, 273, 3949, 18, 10492, 7675, 4939, 2932, 9369, 63, 20, 2 ]
} if (isDeletedFromEditor((ISourceReference)elem))
} if (elem instanceof IMember){ /* feature in jdt core - initializers from class files are not binary but have no cus * see bug 37199 * we just say 'no' to them */ IMember member= (IMember)elem; if (! member.isBinary() && SourceReferenceUtil.getCompilationUnit(member) == null) return false; } if (isDeletedFromEditor((ISourceReference)elem))
protected boolean canWorkOn(Object elem) throws JavaModelException{ if (elem == null) return false; if (! (elem instanceof ISourceReference)) return false; if (! (elem instanceof IJavaElement)) return false; if (elem instanceof IClassFile) return false; if (elem instanceof ICompilationUnit) return false; if (elem instanceof IMember){ IMember member= (IMember)elem; if (member.isBinary() && (member.getSourceRange() == null || fgUnknownRange.equals(member.getSourceRange()))) return false; } if (isDeletedFromEditor((ISourceReference)elem)) return false; if (elem instanceof IMember) //binary excluded before return true; if (elem instanceof IImportContainer) return true; if (elem instanceof IImportDeclaration) return true; if (elem instanceof IPackageDeclaration) return true; //we never get here normally return false; }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/4a735ace0840dea91f9043c758cfb8ae7504b758/SourceReferenceAction.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/SourceReferenceAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 848, 2421, 1398, 12, 921, 3659, 13, 1216, 5110, 1488, 503, 95, 202, 202, 430, 261, 10037, 422, 446, 13, 1082, 202, 2463, 629, 31, 6862, 202, 430, 16051, 261, 10037, 1276, 467, 1830, 2404, 3719, 1875, 202, 2463, 629, 31, 6862, 202, 430, 16051, 261, 10037, 1276, 467, 5852, 1046, 3719, 1875, 202, 2463, 629, 31, 6862, 25083, 202, 430, 261, 10037, 1276, 467, 797, 812, 13, 1875, 202, 2463, 629, 31, 202, 202, 430, 261, 10037, 1276, 467, 19184, 2802, 13, 1082, 202, 2463, 629, 31, 202, 202, 430, 261, 10037, 1276, 467, 4419, 15329, 1875, 202, 3445, 2558, 3140, 33, 261, 3445, 2558, 13, 10037, 31, 1082, 202, 430, 261, 5990, 18, 291, 5905, 1435, 597, 261, 5990, 18, 588, 1830, 2655, 1435, 422, 446, 747, 10186, 4874, 2655, 18, 14963, 12, 5990, 18, 588, 1830, 2655, 1435, 20349, 9506, 202, 2463, 629, 31, 202, 202, 97, 25083, 202, 430, 261, 291, 7977, 1265, 6946, 12443, 45, 1830, 2404, 13, 10037, 3719, 9506, 202, 2463, 629, 31, 6862, 9506, 202, 430, 261, 10037, 1276, 467, 4419, 13, 368, 8578, 8845, 1865, 1082, 202, 2463, 638, 31, 202, 202, 430, 261, 10037, 1276, 467, 5010, 2170, 13, 1082, 202, 2463, 638, 31, 202, 202, 430, 261, 10037, 1276, 467, 5010, 6094, 13, 1082, 202, 2463, 638, 31, 202, 202, 430, 261, 10037, 1276, 467, 2261, 6094, 13, 1082, 202, 2463, 638, 31, 6862, 1082, 202, 759, 1814, 5903, 336, 2674, 15849, 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, 1250, 848, 2421, 1398, 12, 921, 3659, 13, 1216, 5110, 1488, 503, 95, 202, 202, 430, 261, 10037, 422, 446, 13, 1082, 202, 2463, 629, 31, 6862, 202, 430, 16051, 261, 10037, 1276, 467, 1830, 2404, 3719, 1875, 202, 2463, 629, 31, 6862, 202, 430, 16051, 261, 10037, 1276, 467, 5852, 1046, 3719, 1875, 202, 2463, 629, 31, 6862, 25083, 202, 430, 261, 10037, 1276, 467, 797, 812, 13, 1875, 202, 2463, 629, 31, 202, 202, 430, 261, 10037, 1276, 467, 19184, 2802, 13, 1082, 202, 2463, 629, 31, 202, 202, 430, 261, 10037, 1276, 467, 4419, 15329, 1875, 202, 3445, 2558, 3140, 33, 261, 3445, 2558, 13, 10037, 31, 1082, 202, 430, 261, 5990, 18, 2 ]
assertObject( handle, handle.getObject(), propagationContext, workingMemory );
workingMemory.queueWorkingMemoryAction( workingMemory.new WorkingMemoryReteAssertAction( handle, false, true, null, null ) );
public WorkingMemory newWorkingMemory(final boolean keepReference) { final ReteooWorkingMemory workingMemory = new ReteooWorkingMemory( this.workingMemoryCounter++, this ); super.addWorkingMemory( workingMemory, keepReference ); final InitialFactHandle handle = new InitialFactHandle( workingMemory.getFactHandleFactory().newFactHandle( new Serializable() {} ) ); final PropagationContext propagationContext = new PropagationContextImpl( workingMemory.getNextPropagationIdCounter(), PropagationContext.ASSERTION, null, null ); assertObject( handle, handle.getObject(), propagationContext, workingMemory ); return workingMemory; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/86cff4d74a04222d865bf5eeac956f1056a94dab/ReteooRuleBase.java/clean/drools-core/src/main/java/org/drools/reteoo/ReteooRuleBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22732, 6031, 394, 14836, 6031, 12, 6385, 1250, 3455, 2404, 13, 288, 3639, 727, 17100, 4361, 83, 14836, 6031, 5960, 6031, 273, 394, 17100, 4361, 83, 14836, 6031, 12, 333, 18, 20478, 6031, 4789, 9904, 16, 28524, 6647, 333, 11272, 3639, 2240, 18, 1289, 14836, 6031, 12, 5960, 6031, 16, 27573, 3455, 2404, 11272, 3639, 727, 10188, 9766, 3259, 1640, 273, 394, 10188, 9766, 3259, 12, 5960, 6031, 18, 588, 9766, 3259, 1733, 7675, 2704, 9766, 3259, 12, 394, 13687, 1435, 2618, 262, 11272, 3639, 727, 1186, 9095, 367, 1042, 25686, 1042, 273, 394, 1186, 9095, 367, 1042, 2828, 12, 5960, 6031, 18, 588, 2134, 14225, 548, 4789, 9334, 28524, 5375, 1186, 9095, 367, 1042, 18, 8423, 11539, 1146, 16, 28524, 5375, 446, 16, 28524, 5375, 446, 11272, 3639, 1815, 921, 12, 1640, 16, 8227, 1640, 18, 588, 921, 9334, 8227, 25686, 1042, 16, 8227, 5960, 6031, 11272, 3639, 327, 5960, 6031, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22732, 6031, 394, 14836, 6031, 12, 6385, 1250, 3455, 2404, 13, 288, 3639, 727, 17100, 4361, 83, 14836, 6031, 5960, 6031, 273, 394, 17100, 4361, 83, 14836, 6031, 12, 333, 18, 20478, 6031, 4789, 9904, 16, 28524, 6647, 333, 11272, 3639, 2240, 18, 1289, 14836, 6031, 12, 5960, 6031, 16, 27573, 3455, 2404, 11272, 3639, 727, 10188, 9766, 3259, 1640, 273, 394, 10188, 9766, 3259, 12, 5960, 6031, 18, 588, 9766, 3259, 1733, 7675, 2704, 9766, 3259, 12, 394, 13687, 1435, 2618, 262, 11272, 3639, 727, 1186, 9095, 367, 1042, 25686, 1042, 273, 394, 1186, 9095, 367, 1042, 2828, 12, 5960, 6031, 18, 588, 2134, 14225, 548, 4789, 9334, 28524, 5375, 1186, 9095, 367, 1042, 18, 8423, 2 ]
{ String s = getString(columnIndex); if (s != null) { try { return Integer.parseInt(s); } catch (NumberFormatException e) { throw new SQLException ("Bad Integer Form: " + s); } } return 0; }
{ String s = getString(columnIndex); if (s != null) { try { return Integer.parseInt(s); } catch (NumberFormatException e) { throw new SQLException ("Bad Integer Form: " + s); } } return 0; }
public int getInt(int columnIndex) throws SQLException { String s = getString(columnIndex); if (s != null) { try { return Integer.parseInt(s); } catch (NumberFormatException e) { throw new SQLException ("Bad Integer Form: " + s); } } return 0; // SQL NULL }
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/6a061da272f04e1463864065f87f1f3fd61d6162/ResultSet.java/buggy/src/interfaces/jdbc/postgresql/ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 8145, 12, 474, 14882, 13, 1216, 6483, 202, 95, 202, 202, 780, 272, 273, 4997, 12, 2827, 1016, 1769, 202, 202, 430, 261, 87, 480, 446, 13, 202, 202, 95, 1082, 202, 698, 1082, 202, 95, 9506, 202, 2463, 2144, 18, 2670, 1702, 12, 87, 1769, 1082, 202, 97, 1044, 261, 1854, 9291, 425, 13, 288, 9506, 202, 12849, 394, 6483, 7566, 6434, 2144, 2748, 30, 315, 397, 272, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 374, 31, 202, 202, 759, 3063, 3206, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 8145, 12, 474, 14882, 13, 1216, 6483, 202, 95, 202, 202, 780, 272, 273, 4997, 12, 2827, 1016, 1769, 202, 202, 430, 261, 87, 480, 446, 13, 202, 202, 95, 1082, 202, 698, 1082, 202, 95, 9506, 202, 2463, 2144, 18, 2670, 1702, 12, 87, 1769, 1082, 202, 97, 1044, 261, 1854, 9291, 425, 13, 288, 9506, 202, 12849, 394, 6483, 7566, 6434, 2144, 2748, 30, 315, 397, 272, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 374, 31, 202, 202, 759, 3063, 3206, 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 ]
terminate();
terminate();
public void start() { if (connectDebugger(true) != RemotePort.mWaitOK) terminate(); }
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/3c3802a2d729ade92bfe215f545aff7a4fc13839/DebugTarget.java/clean/org.epic.debug/src/org/epic/debug/DebugTarget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1435, 202, 95, 202, 202, 430, 261, 3612, 24113, 12, 3767, 13, 480, 6304, 2617, 18, 81, 5480, 3141, 13, 6862, 202, 30017, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1435, 202, 95, 202, 202, 430, 261, 3612, 24113, 12, 3767, 13, 480, 6304, 2617, 18, 81, 5480, 3141, 13, 6862, 202, 30017, 5621, 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 ]
if (inProgress == true) {
last = lastEdit();
public boolean addEdit(UndoableEdit anEdit) { // Variables UndoableEdit lastEdit; if (inProgress == true) { // Get Last Edit lastEdit = lastEdit(); // Check for null if (lastEdit != null) { if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false) { edits.add(anEdit); } } } // if: lastEdit return true; } else { return false; } } // addEdit()
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/1a56510a6b5772240a0ed85a7518db15a15edb8a/CompoundEdit.java/buggy/libjava/javax/swing/undo/CompoundEdit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 527, 4666, 12, 31224, 429, 4666, 392, 4666, 13, 288, 202, 202, 759, 23536, 202, 202, 31224, 429, 4666, 202, 2722, 4666, 31, 202, 202, 430, 261, 267, 5491, 422, 638, 13, 288, 1082, 202, 759, 968, 6825, 15328, 1082, 202, 2722, 4666, 273, 1142, 4666, 5621, 1082, 202, 759, 2073, 364, 446, 1082, 202, 430, 261, 2722, 4666, 480, 446, 13, 288, 9506, 202, 430, 261, 2722, 4666, 18, 1289, 4666, 12, 304, 4666, 13, 422, 629, 13, 288, 6862, 202, 430, 261, 2722, 4666, 18, 2079, 4666, 12, 304, 4666, 13, 422, 629, 13, 288, 25083, 202, 329, 1282, 18, 1289, 12, 304, 4666, 1769, 6862, 202, 97, 9506, 202, 97, 1082, 202, 97, 368, 309, 30, 1142, 4666, 1082, 202, 2463, 638, 31, 202, 202, 97, 469, 288, 1082, 202, 2463, 629, 31, 202, 202, 97, 202, 97, 368, 527, 4666, 1435, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 527, 4666, 12, 31224, 429, 4666, 392, 4666, 13, 288, 202, 202, 759, 23536, 202, 202, 31224, 429, 4666, 202, 2722, 4666, 31, 202, 202, 430, 261, 267, 5491, 422, 638, 13, 288, 1082, 202, 759, 968, 6825, 15328, 1082, 202, 2722, 4666, 273, 1142, 4666, 5621, 1082, 202, 759, 2073, 364, 446, 1082, 202, 430, 261, 2722, 4666, 480, 446, 13, 288, 9506, 202, 430, 261, 2722, 4666, 18, 1289, 4666, 12, 304, 4666, 13, 422, 629, 13, 288, 6862, 202, 430, 261, 2722, 4666, 18, 2079, 4666, 12, 304, 4666, 13, 422, 629, 13, 288, 25083, 202, 329, 1282, 18, 1289, 12, 304, 4666, 1769, 6862, 202, 97, 9506, 202, 97, 1082, 202, 2 ]
return xsltObj.toString(); } else if(javaClass.isPrimitive()) { XString xstr = new XString(xsltObj.toString()); double num = xstr.num(); return convertDoubleToNumber(num, javaClass); } else if(javaClass == java.lang.Class.class) { return xsltObj.getClass();
if(javaClass == java.lang.String.class) { return xsltObj.toString(); } else if(javaClass.isPrimitive()) { XString xstr = new XString(xsltObj.toString()); double num = xstr.num(); return convertDoubleToNumber(num, javaClass); } else if(javaClass == java.lang.Class.class) { return xsltObj.getClass(); } else { return xsltObj; }
static Object convert(Object xsltObj, Class javaClass) throws javax.xml.transform.TransformerException { if(xsltObj instanceof XObject) { XObject xobj = ((XObject)xsltObj); int xsltClassType = xobj.getType(); switch(xsltClassType) { case XObject.CLASS_NULL: return null; case XObject.CLASS_BOOLEAN: { if(javaClass == java.lang.String.class) return xobj.str(); else return new Boolean(xobj.bool()); } // break; Unreachable case XObject.CLASS_NUMBER: { if(javaClass == java.lang.String.class) return xobj.str(); else if(javaClass == Boolean.TYPE) return new Boolean(xobj.bool()); else { return convertDoubleToNumber(xobj.num(), javaClass); } } // break; Unreachable case XObject.CLASS_STRING: { if((javaClass == java.lang.String.class) || (javaClass == java.lang.Object.class)) return xobj.str(); else if(javaClass == Character.TYPE) { String str = xobj.str(); if(str.length() > 0) return new Character(str.charAt(0)); else return null; // ?? } else if(javaClass == Boolean.TYPE) return new Boolean(xobj.bool()); else { return convertDoubleToNumber(xobj.num(), javaClass); } } // break; Unreachable case XObject.CLASS_RTREEFRAG: { // GLP: I don't see the reason for the isAssignableFrom call // instead of an == test as is used everywhere else. // Besides, if the javaClass is a subclass of NodeIterator // the condition will be true and we'll create a NodeIterator // which may not match the javaClass, causing a RuntimeException. // if((NodeIterator.class.isAssignableFrom(javaClass)) || if ( (javaClass == NodeIterator.class) || (javaClass == java.lang.Object.class) ) { return ((XRTreeFrag) xobj).asNodeIterator(); } else if (javaClass == NodeList.class) { return ((XRTreeFrag) xobj).convertToNodeset(); } // Same comment as above // else if(Node.class.isAssignableFrom(javaClass)) else if(javaClass == Node.class) { return xobj.rtree().getFirstChild(); } else if(javaClass == java.lang.String.class) { return xobj.str(); } else if(javaClass == Boolean.TYPE) { return new Boolean(xobj.bool()); } else if(javaClass.isPrimitive()) { return convertDoubleToNumber(xobj.num(), javaClass); } else { Node child = xobj.rtree().getFirstChild(); if(javaClass.isAssignableFrom(child.getClass())) return child; else return null; } } // break; Unreachable case XObject.CLASS_NODESET: { // GLP: I don't see the reason for the isAssignableFrom call // instead of an == test as is used everywhere else. // Besides, if the javaClass is a subclass of NodeIterator // the condition will be true and we'll create a NodeIterator // which may not match the javaClass, causing a RuntimeException. // if((NodeIterator.class.isAssignableFrom(javaClass)) || if ( (javaClass == NodeIterator.class) || (javaClass == java.lang.Object.class) ) { return xobj.nodeset(); } // Same comment as above // else if(NodeList.class.isAssignableFrom(javaClass)) else if(javaClass == NodeList.class) { return xobj.mutableNodeset(); } // Same comment as above // else if(Node.class.isAssignableFrom(javaClass)) else if(javaClass == Node.class) { // Xalan ensures that nodeset() always returns an // iterator positioned at the beginning. NodeIterator ni = xobj.nodeset(); return ni.nextNode(); // may be null. } else if(javaClass == java.lang.String.class) { return xobj.str(); } else if(javaClass == Boolean.TYPE) { return new Boolean(xobj.bool()); } else if(javaClass.isPrimitive()) { return convertDoubleToNumber(xobj.num(), javaClass); } else { Node child = xobj.nodeset().nextNode(); if(javaClass.isAssignableFrom(child.getClass())) return child; else return null; } } // break; Unreachable // No default:, fall-through on purpose } // end switch xsltObj = xobj.object(); } // end if if(xsltObj instanceof XObject) // At this point, we have a raw java object. if(javaClass == java.lang.String.class) { return xsltObj.toString(); } else if(javaClass.isPrimitive()) { // Assume a number conversion XString xstr = new XString(xsltObj.toString()); double num = xstr.num(); return convertDoubleToNumber(num, javaClass); } else if(javaClass == java.lang.Class.class) { return xsltObj.getClass(); } else { // Just pass the object directly, and hope for the best. return xsltObj; } }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/627db9799eee023955b11b6b1e6d253405940660/MethodResolver.java/buggy/src/org/apache/xalan/extensions/MethodResolver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1033, 1765, 12, 921, 31399, 2675, 16, 1659, 2252, 797, 13, 565, 1216, 6863, 18, 2902, 18, 6547, 18, 8319, 503, 225, 288, 565, 309, 12, 92, 14414, 2675, 1276, 1139, 921, 13, 565, 288, 1377, 1139, 921, 619, 2603, 273, 14015, 60, 921, 13, 92, 14414, 2675, 1769, 1377, 509, 31399, 18328, 273, 619, 2603, 18, 588, 559, 5621, 1377, 1620, 12, 92, 14414, 18328, 13, 1377, 288, 1377, 648, 1139, 921, 18, 5237, 67, 8560, 30, 3639, 327, 446, 31, 2868, 648, 1139, 921, 18, 5237, 67, 17900, 30, 3639, 288, 1850, 309, 12, 6290, 797, 422, 2252, 18, 4936, 18, 780, 18, 1106, 13, 5411, 327, 619, 2603, 18, 701, 5621, 1850, 469, 5411, 327, 394, 3411, 12, 92, 2603, 18, 6430, 10663, 3639, 289, 3639, 368, 898, 31, 1351, 17246, 1377, 648, 1139, 921, 18, 5237, 67, 9931, 30, 3639, 288, 1850, 309, 12, 6290, 797, 422, 2252, 18, 4936, 18, 780, 18, 1106, 13, 5411, 327, 619, 2603, 18, 701, 5621, 1850, 469, 309, 12, 6290, 797, 422, 3411, 18, 2399, 13, 5411, 327, 394, 3411, 12, 92, 2603, 18, 6430, 10663, 1850, 469, 6647, 288, 5411, 327, 1765, 5265, 774, 1854, 12, 92, 2603, 18, 2107, 9334, 2252, 797, 1769, 1850, 289, 3639, 289, 3639, 368, 898, 31, 1351, 17246, 2868, 648, 1139, 921, 18, 5237, 67, 5804, 30, 3639, 288, 1850, 309, 12443, 6290, 797, 422, 2252, 18, 4936, 18, 780, 18, 1106, 13, 747, 2398, 261, 6290, 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, 1033, 1765, 12, 921, 31399, 2675, 16, 1659, 2252, 797, 13, 565, 1216, 6863, 18, 2902, 18, 6547, 18, 8319, 503, 225, 288, 565, 309, 12, 92, 14414, 2675, 1276, 1139, 921, 13, 565, 288, 1377, 1139, 921, 619, 2603, 273, 14015, 60, 921, 13, 92, 14414, 2675, 1769, 1377, 509, 31399, 18328, 273, 619, 2603, 18, 588, 559, 5621, 1377, 1620, 12, 92, 14414, 18328, 13, 1377, 288, 1377, 648, 1139, 921, 18, 5237, 67, 8560, 30, 3639, 327, 446, 31, 2868, 648, 1139, 921, 18, 5237, 67, 17900, 30, 3639, 288, 1850, 309, 12, 6290, 797, 422, 2252, 18, 4936, 18, 780, 18, 1106, 13, 5411, 327, 619, 2603, 18, 701, 5621, 1850, 469, 5411, 2 ]
count = ScriptRuntime.toInteger(args[1]); if (count < 0)
double dcount = ScriptRuntime.toInteger(args[1]); if (dcount < 0) {
private static Object jsFunction_splice(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { /* create an empty Array to return. */ scope = getTopLevelScope(scope); Object result = ScriptRuntime.newObject(cx, scope, "Array", null); int argc = args.length; if (argc == 0) return result; double length = getLengthProperty(thisObj); /* Convert the first argument into a starting index. */ double begin = ScriptRuntime.toInteger(args[0]); double end; double delta; double count; if (begin < 0) { begin += length; if (begin < 0) begin = 0; } else if (begin > length) { begin = length; } argc--; /* Convert the second argument from a count into a fencepost index. */ delta = length - begin; if (args.length == 1) { count = delta; end = length; } else { count = ScriptRuntime.toInteger(args[1]); if (count < 0) count = 0; else if (count > delta) count = delta; end = begin + count; argc--; } long lbegin = (long)begin; long lend = (long)end; /* If there are elements to remove, put them into the return value. */ if (count > 0) { if (count == 1 && (cx.getLanguageVersion() == Context.VERSION_1_2)) { /* * JS lacks "list context", whereby in Perl one turns the * single scalar that's spliced out into an array just by * assigning it to @single instead of $single, or by using it * as Perl push's first argument, for instance. * * JS1.2 emulated Perl too closely and returned a non-Array for * the single-splice-out case, requiring callers to test and * wrap in [] if necessary. So JS1.3, default, and other * versions all return an array of length 1 for uniformity. */ result = getElem(thisObj, lbegin); } else { for (long last = lbegin; last < lend; last++) { Scriptable resultArray = (Scriptable)result; Object temp = getElem(thisObj, last); setElem(resultArray, last - lbegin, temp); } } } else if (count == 0 && cx.getLanguageVersion() == Context.VERSION_1_2) { /* Emulate C JS1.2; if no elements are removed, return undefined. */ result = Context.getUndefinedValue(); } /* Find the direction (up or down) to copy and make way for argv. */ delta = argc - count; if (delta > 0) { for (long last = (long)length - 1; last >= lend; last--) { Object temp = getElem(thisObj, last); setElem(thisObj, last + (long)delta, temp); } } else if (delta < 0) { for (long last = lend; last < length; last++) { Object temp = getElem(thisObj, last); setElem(thisObj, last + (long)delta, temp); } } /* Copy from argv into the hole to complete the splice. */ int argoffset = args.length - argc; for (int i = 0; i < argc; i++) { setElem(thisObj, lbegin + i, args[i + argoffset]); } /* Update length in case we deleted elements from the end. */ ScriptRuntime.setProp(thisObj, "length", new Double(length + delta), thisObj); return result; }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/5f6a565762eea9efee2aee1297e0f938ac7edf63/NativeArray.java/clean/js/rhino/src/org/mozilla/javascript/NativeArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1033, 3828, 2083, 67, 19535, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 5411, 22780, 15261, 16, 1033, 8526, 833, 13, 565, 288, 3639, 1748, 752, 392, 1008, 1510, 358, 327, 18, 1195, 3639, 2146, 273, 13729, 2355, 3876, 12, 4887, 1769, 3639, 1033, 563, 273, 7739, 5576, 18, 2704, 921, 12, 71, 92, 16, 2146, 16, 315, 1076, 3113, 446, 1769, 3639, 509, 1501, 71, 273, 833, 18, 2469, 31, 3639, 309, 261, 3175, 71, 422, 374, 13, 5411, 327, 563, 31, 3639, 1645, 769, 273, 9888, 1396, 12, 2211, 2675, 1769, 3639, 1748, 4037, 326, 1122, 1237, 1368, 279, 5023, 770, 18, 1195, 3639, 1645, 2376, 273, 7739, 5576, 18, 869, 4522, 12, 1968, 63, 20, 19226, 3639, 1645, 679, 31, 3639, 1645, 3622, 31, 3639, 1645, 1056, 31, 3639, 309, 261, 10086, 411, 374, 13, 288, 5411, 2376, 1011, 769, 31, 5411, 309, 261, 10086, 411, 374, 13, 7734, 2376, 273, 374, 31, 3639, 289, 469, 309, 261, 10086, 405, 769, 13, 288, 5411, 2376, 273, 769, 31, 3639, 289, 3639, 1501, 71, 413, 31, 3639, 1748, 4037, 326, 2205, 1237, 628, 279, 1056, 1368, 279, 284, 802, 2767, 770, 18, 1195, 3639, 3622, 273, 769, 300, 2376, 31, 3639, 309, 261, 1968, 18, 2469, 422, 404, 13, 288, 5411, 1056, 273, 3622, 31, 5411, 679, 273, 769, 31, 3639, 289, 469, 288, 5411, 1056, 273, 7739, 5576, 18, 869, 4522, 12, 1968, 63, 21, 19226, 5411, 309, 261, 1883, 411, 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, 1033, 3828, 2083, 67, 19535, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 5411, 22780, 15261, 16, 1033, 8526, 833, 13, 565, 288, 3639, 1748, 752, 392, 1008, 1510, 358, 327, 18, 1195, 3639, 2146, 273, 13729, 2355, 3876, 12, 4887, 1769, 3639, 1033, 563, 273, 7739, 5576, 18, 2704, 921, 12, 71, 92, 16, 2146, 16, 315, 1076, 3113, 446, 1769, 3639, 509, 1501, 71, 273, 833, 18, 2469, 31, 3639, 309, 261, 3175, 71, 422, 374, 13, 5411, 327, 563, 31, 3639, 1645, 769, 273, 9888, 1396, 12, 2211, 2675, 1769, 3639, 1748, 4037, 326, 1122, 1237, 1368, 279, 5023, 770, 18, 1195, 3639, 1645, 2376, 273, 7739, 5576, 18, 869, 4522, 12, 1968, 2 ]
if (isTopLevel) for (int i = 0; i < typeDeclarations.length ; i++) trash = typeDeclarations[i].accept(this);
if (TopLevelDeclaration != null) trash = TopLevelDeclaration.accept(this);
public Object visitCompilationUnit(JCompilationUnit self, JPackageName packageName, JPackageImport[] importedPackages, JClassImport[] importedClasses, JTypeDeclaration[] typeDeclarations) { /* The beginning of the visit! */ //install a try to catch all runtime errors and report the line //number try { blockStart("CompilationUnit", self); boolean isTopLevel = false; /*if (packageName.getName().length() > 0) packageName.accept(this);*/ /*for (int i = 0; i < importedPackages.length ; i++) importedPackages[i].accept(this);*/ /* for (int i = 0; i < importedClasses.length ; i++) importedClasses[i].accept(this);*/ //check to see if this is the top level compilation unit //by checking all of the class declarations for (int i = 0; i < typeDeclarations.length ; i++) { if (typeDeclarations[i] instanceof JClassDeclaration) { JClassDeclaration decl = (JClassDeclaration) typeDeclarations[i]; if (decl.getSourceClass().getSuperClass(). getIdent().equals("StreamIt")) { if (isTopLevel) at.dms.util.Utils.fail(printLine(decl) + "Top level stream already twice."); isTopLevel = true; } } } //visit the file only if it is the top level!!!! if (isTopLevel) for (int i = 0; i < typeDeclarations.length ; i++) trash = typeDeclarations[i].accept(this); /* the end of the visit */ } catch (Throwable t) { System.err.println("Error at or around line " + lineNumber); System.err.println("Stack Trace:\n"); t.printStackTrace(); System.exit(-1); } return topLevel; }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/a62974f972e075f9eb88fe8fe9ba988c82ef88e3/Kopi2SIR.java/clean/streams/src/at/dms/kjc/Kopi2SIR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 3757, 19184, 2802, 12, 46, 19184, 2802, 365, 16, 19694, 804, 18308, 9929, 16, 19694, 804, 2261, 5010, 8526, 9101, 11425, 16, 19694, 804, 797, 5010, 8526, 9101, 4818, 16, 19694, 804, 559, 6094, 8526, 618, 21408, 13, 565, 288, 202, 20308, 1021, 8435, 434, 326, 3757, 5, 1195, 202, 202, 759, 5425, 279, 775, 358, 1044, 777, 3099, 1334, 471, 2605, 326, 980, 202, 759, 2696, 202, 698, 288, 202, 565, 1203, 1685, 2932, 19184, 2802, 3113, 365, 1769, 202, 565, 1250, 353, 27046, 273, 629, 31, 202, 377, 202, 565, 1748, 430, 261, 5610, 461, 18, 17994, 7675, 2469, 1435, 405, 374, 13, 202, 1377, 9929, 18, 9436, 12, 2211, 1769, 5549, 202, 377, 202, 565, 1748, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 9101, 11425, 18, 2469, 274, 277, 27245, 202, 1377, 9101, 11425, 63, 77, 8009, 9436, 12, 2211, 1769, 5549, 202, 377, 202, 565, 1748, 225, 364, 261, 474, 277, 273, 374, 31, 277, 411, 9101, 4818, 18, 2469, 274, 277, 27245, 202, 202, 29266, 4818, 63, 77, 8009, 9436, 12, 2211, 1769, 5549, 202, 565, 368, 1893, 358, 2621, 309, 333, 353, 326, 1760, 1801, 8916, 2836, 202, 565, 368, 1637, 6728, 777, 434, 326, 667, 12312, 202, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 618, 21408, 18, 2469, 274, 277, 27245, 288, 202, 202, 430, 261, 723, 21408, 63, 77, 65, 1276, 804, 797, 6094, 13, 288, 1082, 565, 804, 797, 6094, 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, 3757, 19184, 2802, 12, 46, 19184, 2802, 365, 16, 19694, 804, 18308, 9929, 16, 19694, 804, 2261, 5010, 8526, 9101, 11425, 16, 19694, 804, 797, 5010, 8526, 9101, 4818, 16, 19694, 804, 559, 6094, 8526, 618, 21408, 13, 565, 288, 202, 20308, 1021, 8435, 434, 326, 3757, 5, 1195, 202, 202, 759, 5425, 279, 775, 358, 1044, 777, 3099, 1334, 471, 2605, 326, 980, 202, 759, 2696, 202, 698, 288, 202, 565, 1203, 1685, 2932, 19184, 2802, 3113, 365, 1769, 202, 565, 1250, 353, 27046, 273, 629, 31, 202, 377, 202, 565, 1748, 430, 261, 5610, 461, 18, 17994, 7675, 2469, 1435, 405, 374, 13, 202, 1377, 9929, 18, 9436, 12, 2211, 1769, 5549, 202, 377, 2 ]
public void extra_statement() throws RecognitionException { try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:401:9: ( ( import_statement | global | function ) ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:401:9: ( import_statement | global | function ) { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:401:9: ( import_statement | global | function ) int alt24=3; switch ( input.LA(1) ) { case 17: alt24=1; break; case 19: alt24=2; break; case 20: alt24=3; break; default: NoViableAltException nvae = new NoViableAltException("401:9: ( import_statement | global | function )", 24, 0, input); throw nvae; } switch (alt24) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:401:17: import_statement { following.push(FOLLOW_import_statement_in_extra_statement720); import_statement(); following.pop(); } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:402:17: global { following.push(FOLLOW_global_in_extra_statement725); global(); following.pop(); } break; case 3 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:403:17: function { following.push(FOLLOW_function_in_extra_statement730); function(); following.pop(); } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/ca87e40b5754cd366785b207f8cd109258275f53/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2870, 67, 11516, 1435, 1216, 9539, 288, 6647, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 17300, 87, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 27002, 30, 29, 30, 261, 261, 1930, 67, 11516, 571, 2552, 571, 445, 262, 262, 5411, 368, 342, 6588, 19, 70, 947, 19, 17300, 87, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 27002, 30, 29, 30, 261, 1930, 67, 11516, 571, 2552, 571, 445, 262, 5411, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 17300, 87, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 27002, 30, 29, 30, 261, 1930, 67, 11516, 571, 2552, 571, 445, 262, 5411, 509, 3770, 3247, 33, 23, 31, 5411, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 5411, 648, 8043, 30, 7734, 3770, 3247, 33, 21, 31, 7734, 898, 31, 5411, 648, 5342, 30, 7734, 3770, 3247, 33, 22, 31, 7734, 898, 31, 5411, 648, 4200, 30, 7734, 3770, 3247, 33, 23, 31, 7734, 898, 31, 5411, 805, 30, 7734, 17114, 15077, 273, 10792, 394, 17114, 2932, 27002, 30, 29, 30, 261, 1930, 67, 11516, 571, 2552, 571, 445, 262, 3113, 4248, 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, 2870, 67, 11516, 1435, 1216, 9539, 288, 6647, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 17300, 87, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 27002, 30, 29, 30, 261, 261, 1930, 67, 11516, 571, 2552, 571, 445, 262, 262, 5411, 368, 342, 6588, 19, 70, 947, 19, 17300, 87, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 27002, 30, 29, 30, 261, 1930, 67, 11516, 571, 2552, 571, 445, 262, 5411, 288, 5411, 368, 342, 6588, 2 ]
if (canceled[0] != null) {
if (canceled[0] != null) {
public void runInUI(final IRunnableContext context, final IRunnableWithProgress runnable, final ISchedulingRule rule) throws InvocationTargetException, InterruptedException { final IJobManager manager = Platform.getJobManager(); final InvocationTargetException[] exception = new InvocationTargetException[1]; final InterruptedException[] canceled = new InterruptedException[1]; BusyIndicator.showWhile(Display.getDefault(), new Runnable() { public void run() { try { manager.beginRule(rule, ((Workbench) PlatformUI.getWorkbench()) .isStarting() ? new NullProgressMonitor() : getEventLoopMonitor()); context.run(false, false, runnable); } catch (InvocationTargetException e) { exception[0] = e; } catch (InterruptedException e) { canceled[0] = e; } catch (OperationCanceledException e) { canceled[0] = new InterruptedException(e.getMessage()); } finally { manager.endRule(rule); } } /** * Get a progress monitor that forwards to an event loop monitor. * Override #setBlocked() so that we always open the blocked dialog. * * @return the monitor on the event loop */ private IProgressMonitor getEventLoopMonitor() { return new EventLoopProgressMonitor(new NullProgressMonitor()) { /* * (non-Javadoc) * * @see org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor#setBlocked(org.eclipse.core.runtime.IStatus) */ public void setBlocked(IStatus reason) { // Set a shell to open with as we want to create this // even if there is a modal shell. Dialog.getBlockedHandler().showBlocked( ProgressManagerUtil.getDefaultParent(), this, reason, getTaskName()); } }; } }); if (exception[0] != null) { throw exception[0]; } if (canceled[0] != null) { throw canceled[0]; } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/82e45bfb168fa5c37a8ced4976d2cc8fef6ce0f2/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 382, 5370, 12, 6385, 467, 20013, 1042, 819, 16, 1082, 202, 6385, 467, 20013, 1190, 5491, 14685, 16, 727, 4437, 13252, 2175, 1720, 13, 1082, 202, 15069, 15342, 16, 7558, 288, 202, 202, 6385, 467, 2278, 1318, 3301, 273, 11810, 18, 588, 2278, 1318, 5621, 202, 202, 6385, 15342, 8526, 1520, 273, 394, 15342, 63, 21, 15533, 202, 202, 6385, 7558, 8526, 17271, 273, 394, 7558, 63, 21, 15533, 202, 202, 29289, 13140, 18, 4500, 15151, 12, 4236, 18, 588, 1868, 9334, 394, 10254, 1435, 288, 1082, 202, 482, 918, 1086, 1435, 288, 9506, 202, 698, 288, 6862, 202, 4181, 18, 10086, 2175, 12, 5345, 16, 6862, 1082, 202, 12443, 2421, 22144, 13, 11810, 5370, 18, 588, 2421, 22144, 10756, 6862, 6862, 202, 18, 291, 11715, 1435, 692, 394, 4112, 5491, 7187, 1435, 6862, 6862, 202, 30, 9832, 6452, 7187, 10663, 6862, 202, 2472, 18, 2681, 12, 5743, 16, 629, 16, 14685, 1769, 9506, 202, 97, 1044, 261, 9267, 14950, 425, 13, 288, 6862, 202, 4064, 63, 20, 65, 273, 425, 31, 9506, 202, 97, 1044, 261, 24485, 503, 425, 13, 288, 6862, 202, 10996, 329, 63, 20, 65, 273, 425, 31, 9506, 202, 97, 1044, 261, 2988, 23163, 503, 425, 13, 288, 6862, 202, 10996, 329, 63, 20, 65, 273, 394, 7558, 12, 73, 18, 24906, 10663, 9506, 202, 97, 3095, 288, 6862, 202, 4181, 18, 409, 2175, 12, 5345, 1769, 9506, 202, 97, 1082, 202, 97, 1082, 202, 26873, 9506, 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, 918, 1086, 382, 5370, 12, 6385, 467, 20013, 1042, 819, 16, 1082, 202, 6385, 467, 20013, 1190, 5491, 14685, 16, 727, 4437, 13252, 2175, 1720, 13, 1082, 202, 15069, 15342, 16, 7558, 288, 202, 202, 6385, 467, 2278, 1318, 3301, 273, 11810, 18, 588, 2278, 1318, 5621, 202, 202, 6385, 15342, 8526, 1520, 273, 394, 15342, 63, 21, 15533, 202, 202, 6385, 7558, 8526, 17271, 273, 394, 7558, 63, 21, 15533, 202, 202, 29289, 13140, 18, 4500, 15151, 12, 4236, 18, 588, 1868, 9334, 394, 10254, 1435, 288, 1082, 202, 482, 918, 1086, 1435, 288, 9506, 202, 698, 288, 6862, 202, 4181, 18, 10086, 2175, 12, 5345, 16, 6862, 1082, 202, 12443, 2421, 22144, 13, 11810, 2 ]
SportletLog log = (SportletLog)logMap.get(clazz);
SportletLog log = (SportletLog) logMap.get(clazz);
public static synchronized PortletLog getInstance(Class clazz) { SportletLog log = (SportletLog)logMap.get(clazz); if (log != null) return log; log = new SportletLog(clazz); logMap.put(clazz, new SportletLog(clazz)); return log; }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/7435ddafff452aa8d099de2180b3d30143fa29c5/SportletLog.java/buggy/src/org/gridlab/gridsphere/portlet/impl/SportletLog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3852, 21305, 1343, 3694, 12, 797, 4003, 13, 288, 3639, 348, 655, 1810, 1343, 613, 273, 261, 55, 655, 1810, 1343, 13, 613, 863, 18, 588, 12, 830, 3638, 1769, 3639, 309, 261, 1330, 480, 446, 13, 327, 613, 31, 3639, 613, 273, 394, 348, 655, 1810, 1343, 12, 830, 3638, 1769, 3639, 613, 863, 18, 458, 12, 830, 3638, 16, 394, 348, 655, 1810, 1343, 12, 830, 3638, 10019, 3639, 327, 613, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3852, 21305, 1343, 3694, 12, 797, 4003, 13, 288, 3639, 348, 655, 1810, 1343, 613, 273, 261, 55, 655, 1810, 1343, 13, 613, 863, 18, 588, 12, 830, 3638, 1769, 3639, 309, 261, 1330, 480, 446, 13, 327, 613, 31, 3639, 613, 273, 394, 348, 655, 1810, 1343, 12, 830, 3638, 1769, 3639, 613, 863, 18, 458, 12, 830, 3638, 16, 394, 348, 655, 1810, 1343, 12, 830, 3638, 10019, 3639, 327, 613, 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 ]
public Par Decs() throws Exception{ /* * Decs ::= Decs; Dec * Decso.pend = Decs1.pend ??? Dec.pend ??? (si Dec.props.clase = tipo entonces {Dec.id} si no ??? ) * * Decs ::= Dec * Decs.pend = Dec.pend ??? (si Dec.props.clase = tipo entonces {Dec.id} si no ??????) */ Par a = new Par(); System.out.println("llamo a dec"); Par atrDeDec = Dec(); System.out.println("vuevlo de dec"); TS.agnadeID(atrDeDec.getId(), atrDeDec.getProps(), atrDeDec.getClase(), atrDeDec.getDir()); TS.muestra(); //System.out.println(atrDeDec.getId()); //System.out.println(atrDeDec.getProps().getTipo()); dir = dir + atrDeDec.getProps().getTam(); //System.out.println(dir); if (atrDeDec.getProps().getTipo().equals("error")){ a.getProps().setTipo("error"); } Token tk = lexico.getNextToken(); if (tk.equals(new Token("#", Tipos.TKCUA))){ lexico.lexer(); //consumimos # return a; } else{ if (tk.equals(new Token(";", Tipos.TKPYCOMA))){ lexico.lexer(); //consumimos ; //System.out.println(""); System.out.println("llamo a decs"); Par atrDeDecs = Decs(); System.out.println("vuelvo de decs"); //TS.agnadeID(atrDeDecs.getId(), atrDeDecs.getProps(), atrDeDecs.getClase(), atrDeDecs.getDir()); //TS.muestra(); if (atrDeDecs.getProps().getTipo().equals("error")){ a.getProps().setTipo("error"); } return a; } else{ a.getProps().setTipo("error"); return a; } } }
10474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10474/f6dc44d80fd64451a5eb89c4413e42d14f2f424d/Sintactico.java/buggy/plg/procesador/Sintactico.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2280, 3416, 87, 1435, 1216, 1185, 95, 202, 20308, 202, 380, 3416, 87, 493, 33, 3416, 87, 31, 3416, 202, 380, 3416, 2048, 18, 1302, 273, 3416, 87, 21, 18, 1302, 5317, 35, 3416, 18, 1302, 5317, 35, 202, 12, 7722, 3416, 18, 9693, 18, 830, 448, 273, 25196, 3281, 265, 764, 288, 1799, 18, 350, 97, 7533, 1158, 5317, 35, 262, 3196, 380, 3196, 380, 3416, 87, 493, 33, 3416, 202, 380, 3416, 87, 18, 1302, 273, 3416, 18, 1302, 5317, 35, 261, 7722, 3416, 18, 9693, 18, 830, 448, 273, 25196, 3281, 265, 764, 288, 1799, 18, 350, 97, 225, 202, 7722, 1158, 5317, 14646, 35, 8535, 202, 1195, 202, 202, 1553, 279, 273, 394, 2280, 5621, 202, 202, 3163, 18, 659, 18, 8222, 2932, 2906, 301, 83, 279, 2109, 8863, 202, 202, 1553, 622, 86, 758, 1799, 273, 3416, 5621, 202, 202, 3163, 18, 659, 18, 8222, 2932, 90, 344, 90, 383, 443, 2109, 8863, 202, 202, 8047, 18, 346, 82, 2486, 734, 12, 270, 86, 758, 1799, 18, 26321, 9334, 622, 86, 758, 1799, 18, 588, 5047, 9334, 622, 86, 758, 1799, 18, 588, 2009, 448, 9334, 622, 86, 758, 1799, 18, 588, 1621, 10663, 202, 202, 8047, 18, 81, 3610, 2033, 5621, 202, 202, 759, 3163, 18, 659, 18, 8222, 12, 270, 86, 758, 1799, 18, 26321, 10663, 202, 202, 759, 3163, 18, 659, 18, 8222, 12, 270, 86, 758, 1799, 18, 588, 5047, 7675, 588, 14189, 83, 10663, 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, 2280, 3416, 87, 1435, 1216, 1185, 95, 202, 20308, 202, 380, 3416, 87, 493, 33, 3416, 87, 31, 3416, 202, 380, 3416, 2048, 18, 1302, 273, 3416, 87, 21, 18, 1302, 5317, 35, 3416, 18, 1302, 5317, 35, 202, 12, 7722, 3416, 18, 9693, 18, 830, 448, 273, 25196, 3281, 265, 764, 288, 1799, 18, 350, 97, 7533, 1158, 5317, 35, 262, 3196, 380, 3196, 380, 3416, 87, 493, 33, 3416, 202, 380, 3416, 87, 18, 1302, 273, 3416, 18, 1302, 5317, 35, 261, 7722, 3416, 18, 9693, 18, 830, 448, 273, 25196, 3281, 265, 764, 288, 1799, 18, 350, 97, 225, 202, 7722, 1158, 5317, 14646, 35, 8535, 202, 1195, 202, 202, 1553, 279, 273, 2 ]
private void loadDataFromFile() throws IOException, SQLException { final InputStream is = openInputStream(); final InputStreamReader reader = new InputStreamReader(is); final BufferedReader bufferedReader = new BufferedReader(reader); final Pattern regex = Pattern.compile("INSERT INTO ([^ ]+)(.*)VALUES(.*)\\((.*)\\);"); String line; int lineNumber = 0; int tableRowCount = 0; String prevTable = "";
private void loadDataFromFile() throws Exception { InputStream is = openInputStream(); if (is == null) { throw new Exception("No data file to process"); } try { final InputStreamReader reader = new InputStreamReader(is); final BufferedReader bufferedReader = new BufferedReader(reader); final Pattern regex = Pattern.compile("INSERT INTO `([^ ]+)` \\((.*)\\) VALUES\\((.*)\\);"); String line; int lineNumber = 0; int tableRowCount = 0; String prevTable = ""; String quotedTableName = null; String quotedColumnNames = null; Column[] orderedColumns = null; String[] batch = new String[inputBatchSize]; int batchSize = 0; while ((line = bufferedReader.readLine()) != null) { ++lineNumber; if (line.startsWith("#")) { continue; } final Matcher matcher = regex.matcher(line); if (!matcher.matches()) { throw MondrianResource.instance().newInvalidInsertLine( new Integer(lineNumber), line); } String tableName = matcher.group(1); String columnNames = matcher.group(2); String values = matcher.group(3);
private void loadDataFromFile() throws IOException, SQLException { final InputStream is = openInputStream(); final InputStreamReader reader = new InputStreamReader(is); final BufferedReader bufferedReader = new BufferedReader(reader); final Pattern regex = Pattern.compile("INSERT INTO ([^ ]+)(.*)VALUES(.*)\\((.*)\\);"); String line; int lineNumber = 0; int tableRowCount = 0; String prevTable = ""; String[] batch = new String[inputBatchSize]; int batchSize = 0; while ((line = bufferedReader.readLine()) != null) { ++lineNumber; if (line.startsWith("#")) { continue; } // Split the up the line. For example, // INSERT INTO foo VALUES (1, 'bar'); // would yield // tableName = "foo" // values = "1, 'bar'" final Matcher matcher = regex.matcher(line); if (!matcher.matches()) { throw MondrianResource.instance().newInvalidInsertLine( new Integer(lineNumber), line); } final String tableName = matcher.group(1); // e.g. "foo" final String values = matcher.group(2); // e.g. "1, 'bar'" Util.discard(values); // Not needed now // If table just changed, flush the previous batch. if (!tableName.equals(prevTable)) { if (!prevTable.equals("")) { System.out.println("Table " + prevTable + ": loaded " + tableRowCount + " rows."); } tableRowCount = 0; writeBatch(batch, batchSize); batchSize = 0; prevTable = tableName; } // remove trailing ';' assert line.endsWith(";"); line = line.substring(0, line.length() - 1); // this database represents booleans as integers if (sqlQuery.isMySQL()) { line = line.replaceAll("false", "0") .replaceAll("true", "1"); } ++tableRowCount; batch[batchSize++] = line; if (batchSize >= inputBatchSize) { writeBatch(batch, batchSize); batchSize = 0; } } // Print summary of the final table. if (!prevTable.equals("")) { System.out.println("Table " + prevTable + ": loaded " + tableRowCount + " rows."); tableRowCount = 0; writeBatch(batch, batchSize); batchSize = 0; } }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/7a5a66ebc66d989ac82c2b6fd80bfc14c5531667/MondrianFoodMartLoader.java/buggy/testsrc/main/mondrian/test/loader/MondrianFoodMartLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 29422, 13087, 1435, 1216, 1860, 16, 6483, 288, 3639, 727, 5037, 353, 273, 1696, 4348, 5621, 3639, 727, 15322, 2949, 273, 394, 15322, 12, 291, 1769, 3639, 727, 10633, 11445, 2514, 273, 394, 10633, 12, 10530, 1769, 3639, 727, 6830, 3936, 273, 6830, 18, 11100, 2932, 11356, 12421, 261, 5969, 308, 6975, 14361, 16386, 14361, 1695, 12, 14361, 1695, 1769, 8863, 3639, 514, 980, 31, 3639, 509, 13629, 273, 374, 31, 3639, 509, 1014, 26359, 273, 374, 31, 3639, 514, 2807, 1388, 273, 1408, 31, 3639, 514, 8526, 2581, 273, 394, 514, 63, 2630, 23304, 15533, 3639, 509, 16494, 273, 374, 31, 3639, 1323, 14015, 1369, 273, 11445, 2514, 18, 896, 1670, 10756, 480, 446, 13, 288, 5411, 965, 1369, 1854, 31, 5411, 309, 261, 1369, 18, 17514, 1190, 2932, 17133, 3719, 288, 7734, 1324, 31, 5411, 289, 5411, 368, 5385, 326, 731, 326, 980, 18, 2457, 3454, 16, 5411, 368, 282, 14834, 12421, 8431, 13477, 261, 21, 16, 296, 3215, 8284, 5411, 368, 4102, 2824, 5411, 368, 282, 4775, 273, 315, 11351, 6, 5411, 368, 282, 924, 273, 315, 21, 16, 296, 3215, 4970, 5411, 727, 9757, 4546, 273, 3936, 18, 22761, 12, 1369, 1769, 5411, 309, 16051, 22761, 18, 8436, 10756, 288, 7734, 604, 490, 1434, 566, 304, 1420, 18, 1336, 7675, 2704, 1941, 4600, 1670, 12, 10792, 394, 2144, 12, 1369, 1854, 3631, 980, 1769, 5411, 289, 5411, 727, 514, 4775, 273, 4546, 18, 1655, 12, 21, 1769, 368, 425, 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, 29422, 13087, 1435, 1216, 1860, 16, 6483, 288, 3639, 727, 5037, 353, 273, 1696, 4348, 5621, 3639, 727, 15322, 2949, 273, 394, 15322, 12, 291, 1769, 3639, 727, 10633, 11445, 2514, 273, 394, 10633, 12, 10530, 1769, 3639, 727, 6830, 3936, 273, 6830, 18, 11100, 2932, 11356, 12421, 261, 5969, 308, 6975, 14361, 16386, 14361, 1695, 12, 14361, 1695, 1769, 8863, 3639, 514, 980, 31, 3639, 509, 13629, 273, 374, 31, 3639, 509, 1014, 26359, 273, 374, 31, 3639, 514, 2807, 1388, 273, 1408, 31, 3639, 514, 8526, 2581, 273, 394, 514, 63, 2630, 23304, 15533, 3639, 509, 16494, 273, 374, 31, 3639, 1323, 14015, 1369, 273, 11445, 2514, 18, 896, 1670, 10756, 480, 446, 13, 2 ]
ColorModel dstCM = getColorModel();
public WritableRaster copyData(WritableRaster wr) { // Get my source. CachableRed src = (CachableRed)getSources().get(0); Rectangle r = wr.getBounds(); r.x -= xinset; r.y -= yinset; r.width += 2*xinset; r.height += 2*yinset; // System.out.println("Gaussian GenR: " + wr); // System.out.println("SrcReq: " + r); ColorModel srcCM = src.getColorModel(); ColorModel dstCM = getColorModel(); WritableRaster tmpR1=null, tmpR2=null; tmpR1 = srcCM.createCompatibleWritableRaster(r.width, r.height); { WritableRaster fill; fill = tmpR1.createWritableTranslatedChild(r.x, r.y); src.copyData(fill); } if (srcCM.hasAlpha() && !srcCM.isAlphaPremultiplied()) GraphicsUtil.coerceData(tmpR1, srcCM, true); // For the blur box approx we can use dest as our intermediate // otherwise we let it default to null which means we create a new // one... // this lets the Vertical conv know how much is junk, so it // doesn't bother to convolve the top and bottom edges int skipX; // long t1 = System.currentTimeMillis(); if (xinset == 0) { skipX = 0; } else if (convOp[0] != null) { tmpR2 = getColorModel().createCompatibleWritableRaster (r.width, r.height); tmpR2 = convOp[0].filter(tmpR1, tmpR2); skipX = convOp[0].getKernel().getXOrigin(); // Swap them... WritableRaster tmp = tmpR1; tmpR1 = tmpR2; tmpR2 = tmp; } else { if ((dX&0x01) == 0){ tmpR1 = boxFilterH(tmpR1, tmpR1, 0, 0, dX, dX/2); tmpR1 = boxFilterH(tmpR1, tmpR1, dX/2, 0, dX, dX/2-1); tmpR1 = boxFilterH(tmpR1, tmpR1, dX-1, 0, dX+1, dX/2); skipX = dX-1 + dX/2; } else { tmpR1 = boxFilterH(tmpR1, tmpR1, 0, 0, dX, dX/2); tmpR1 = boxFilterH(tmpR1, tmpR1, dX/2, 0, dX, dX/2); tmpR1 = boxFilterH(tmpR1, tmpR1, dX-2, 0, dX, dX/2); skipX = dX-2 + dX/2; } } if (yinset == 0) { tmpR2 = tmpR1; } else if (convOp[1] != null) { if (tmpR2 == null) { tmpR2 = getColorModel().createCompatibleWritableRaster (r.width, r.height); } tmpR2 = convOp[1].filter(tmpR1, tmpR2); } else { if ((dY&0x01) == 0){ tmpR1 = boxFilterV(tmpR1, tmpR1, skipX, 0, dY, dY/2); tmpR1 = boxFilterV(tmpR1, tmpR1, skipX, dY/2, dY, dY/2-1); tmpR1 = boxFilterV(tmpR1, tmpR1, skipX, dY-1, dY+1, dY/2); } else { tmpR1 = boxFilterV(tmpR1, tmpR1, skipX, 0, dY, dY/2); tmpR1 = boxFilterV(tmpR1, tmpR1, skipX, dY/2, dY, dY/2); tmpR1 = boxFilterV(tmpR1, tmpR1, skipX, dY-2, dY, dY/2); } tmpR2 = tmpR1; } // long t2 = System.currentTimeMillis(); // System.out.println("Time: " + (t2-t1) + // (((convOp[0] != null) || (convOp[1] != null))? // " ConvOp":"")); // System.out.println("Rasters WR :" + wr.getBounds()); // System.out.println(" tmp:" + tmpR2.getBounds()); // System.out.println(" bounds:" + getBounds()); // System.out.println(" skipX:" + skipX + // " dx:" + dX + " Dy: " + dY); tmpR2 = tmpR2.createWritableTranslatedChild(r.x, r.y); GraphicsUtil.copyData(tmpR2, wr); return wr; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/37794489f7dedd0c74c1b7ae67e92cf8d877b256/GaussianBlurRed8Bit.java/clean/sources/org/apache/batik/ext/awt/image/rendered/GaussianBlurRed8Bit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 14505, 18637, 1610, 751, 12, 12061, 18637, 12408, 13, 288, 3639, 368, 968, 3399, 1084, 18, 3639, 23782, 429, 3715, 1705, 273, 261, 11309, 429, 3715, 13, 588, 8628, 7675, 588, 12, 20, 1769, 3639, 13264, 436, 273, 12408, 18, 588, 5694, 5621, 3639, 436, 18, 92, 1377, 3947, 282, 619, 267, 542, 31, 540, 436, 18, 93, 1377, 3947, 282, 677, 267, 542, 31, 3639, 436, 18, 2819, 225, 1011, 576, 14, 92, 267, 542, 31, 3639, 436, 18, 4210, 1011, 576, 14, 93, 267, 542, 31, 3639, 368, 2332, 18, 659, 18, 8222, 2932, 43, 12086, 10938, 54, 30, 315, 397, 12408, 1769, 3639, 368, 2332, 18, 659, 18, 8222, 2932, 7740, 6113, 30, 315, 397, 436, 1769, 3639, 5563, 1488, 1705, 9611, 273, 1705, 18, 588, 2957, 1488, 5621, 9079, 14505, 18637, 1853, 54, 21, 33, 2011, 16, 1853, 54, 22, 33, 2011, 31, 3639, 1853, 54, 21, 273, 1705, 9611, 18, 2640, 14599, 12061, 18637, 12, 86, 18, 2819, 16, 436, 18, 4210, 1769, 3639, 288, 5411, 14505, 18637, 3636, 31, 5411, 3636, 273, 1853, 54, 21, 18, 2640, 12061, 20421, 1763, 12, 86, 18, 92, 16, 436, 18, 93, 1769, 5411, 1705, 18, 3530, 751, 12, 5935, 1769, 3639, 289, 3639, 309, 261, 4816, 9611, 18, 5332, 9690, 1435, 597, 401, 4816, 9611, 18, 291, 9690, 1386, 7027, 3110, 10756, 2398, 16830, 1304, 18, 2894, 2765, 751, 12, 5645, 54, 21, 16, 1705, 9611, 16, 638, 1769, 3639, 368, 2457, 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, 14505, 18637, 1610, 751, 12, 12061, 18637, 12408, 13, 288, 3639, 368, 968, 3399, 1084, 18, 3639, 23782, 429, 3715, 1705, 273, 261, 11309, 429, 3715, 13, 588, 8628, 7675, 588, 12, 20, 1769, 3639, 13264, 436, 273, 12408, 18, 588, 5694, 5621, 3639, 436, 18, 92, 1377, 3947, 282, 619, 267, 542, 31, 540, 436, 18, 93, 1377, 3947, 282, 677, 267, 542, 31, 3639, 436, 18, 2819, 225, 1011, 576, 14, 92, 267, 542, 31, 3639, 436, 18, 4210, 1011, 576, 14, 93, 267, 542, 31, 3639, 368, 2332, 18, 659, 18, 8222, 2932, 43, 12086, 10938, 54, 30, 315, 397, 12408, 1769, 3639, 368, 2332, 18, 659, 18, 8222, 2932, 7740, 6113, 30, 315, 2 ]
new WriteCommandAction(selectedNode.getDomElement().getParent().getManager().getProject()) { protected void run(final Result result) throws Throwable {
final DomElement domElement = selectedNode.getDomElement(); new WriteCommandAction(domElement.getManager().getProject(), domElement.getXmlTag().getContainingFile()) { protected void run(final Result result) throws Throwable {
public void actionPerformed(AnActionEvent e, DomModelTreeView treeView) { if (treeView.getTree().getSelectedNode() instanceof BaseDomElementNode) { final BaseDomElementNode selectedNode = (BaseDomElementNode)treeView.getTree().getSelectedNode(); new WriteCommandAction(selectedNode.getDomElement().getParent().getManager().getProject()) { protected void run(final Result result) throws Throwable { selectedNode.getDomElement().undefine(); } }.execute(); } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/543a6720cd446dc379bb0ee3e213c600fff9aac5/DeleteDomElement.java/clean/dom/impl/src/com/intellij/util/xml/tree/actions/DeleteDomElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 26100, 12, 979, 1803, 1133, 425, 16, 12965, 1488, 2471, 1767, 2151, 1767, 13, 288, 1377, 309, 261, 3413, 1767, 18, 588, 2471, 7675, 588, 7416, 907, 1435, 1276, 3360, 8832, 1046, 907, 13, 288, 4202, 727, 3360, 8832, 1046, 907, 3170, 907, 273, 261, 2171, 8832, 1046, 907, 13, 3413, 1767, 18, 588, 2471, 7675, 588, 7416, 907, 5621, 3639, 394, 2598, 2189, 1803, 12, 8109, 907, 18, 588, 8832, 1046, 7675, 588, 3054, 7675, 588, 1318, 7675, 588, 4109, 10756, 288, 540, 4750, 918, 1086, 12, 6385, 3438, 563, 13, 1216, 4206, 288, 6647, 3170, 907, 18, 588, 8832, 1046, 7675, 318, 11255, 5621, 540, 289, 4202, 289, 18, 8837, 5621, 377, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 26100, 12, 979, 1803, 1133, 425, 16, 12965, 1488, 2471, 1767, 2151, 1767, 13, 288, 1377, 309, 261, 3413, 1767, 18, 588, 2471, 7675, 588, 7416, 907, 1435, 1276, 3360, 8832, 1046, 907, 13, 288, 4202, 727, 3360, 8832, 1046, 907, 3170, 907, 273, 261, 2171, 8832, 1046, 907, 13, 3413, 1767, 18, 588, 2471, 7675, 588, 7416, 907, 5621, 3639, 394, 2598, 2189, 1803, 12, 8109, 907, 18, 588, 8832, 1046, 7675, 588, 3054, 7675, 588, 1318, 7675, 588, 4109, 10756, 288, 540, 4750, 918, 1086, 12, 6385, 3438, 563, 13, 1216, 4206, 288, 6647, 3170, 907, 18, 588, 8832, 1046, 7675, 318, 11255, 5621, 540, 289, 4202, 289, 18, 8837, 5621, 377, 289, 225, 2 ]
Object oldValue= getValue();
Object oldValue= computeValue();
public void setValue(final Object value) { AsyncRunnable runnable = new AsyncRunnable(){ public void run(){ try { updating = true; if (attribute.equals(ViewersProperties.SINGLE_SELECTION)) { Object oldValue= getValue(); viewer.setSelection(value == null ? StructuredSelection.EMPTY : new StructuredSelection(value)); fireChangeEvent(ChangeEvent.CHANGE, oldValue, getValue()); } } finally { updating = false; } } }; runnable.runOn(viewer.getControl().getDisplay()); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/0761e1ecd3419699cb01bfda9e914b2a545d7fac/StructuredViewerUpdatableValue.java/clean/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/viewers/StructuredViewerUpdatableValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5524, 12, 6385, 1033, 460, 13, 288, 202, 202, 2771, 20013, 14685, 273, 394, 9672, 20013, 1435, 95, 1082, 202, 482, 918, 1086, 1435, 95, 9506, 202, 698, 288, 6862, 202, 5533, 1776, 273, 638, 31, 6862, 202, 430, 261, 4589, 18, 14963, 12, 1767, 414, 2297, 18, 20184, 67, 1090, 15445, 3719, 288, 25083, 202, 921, 11144, 33, 2366, 5621, 25083, 202, 25256, 18, 542, 6233, 12, 1132, 422, 446, 692, 7362, 2862, 6233, 18, 13625, 6862, 9506, 202, 30, 394, 7362, 2862, 6233, 12, 1132, 10019, 25083, 202, 12179, 20930, 12, 20930, 18, 14473, 16, 11144, 16, 2366, 10663, 6862, 202, 97, 9506, 202, 97, 3095, 288, 6862, 202, 5533, 1776, 273, 629, 31, 9506, 202, 97, 1082, 202, 97, 202, 202, 20451, 202, 202, 2681, 6914, 18, 2681, 1398, 12, 25256, 18, 588, 3367, 7675, 588, 4236, 10663, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5524, 12, 6385, 1033, 460, 13, 288, 202, 202, 2771, 20013, 14685, 273, 394, 9672, 20013, 1435, 95, 1082, 202, 482, 918, 1086, 1435, 95, 9506, 202, 698, 288, 6862, 202, 5533, 1776, 273, 638, 31, 6862, 202, 430, 261, 4589, 18, 14963, 12, 1767, 414, 2297, 18, 20184, 67, 1090, 15445, 3719, 288, 25083, 202, 921, 11144, 33, 2366, 5621, 25083, 202, 25256, 18, 542, 6233, 12, 1132, 422, 446, 692, 7362, 2862, 6233, 18, 13625, 6862, 9506, 202, 30, 394, 7362, 2862, 6233, 12, 1132, 10019, 25083, 202, 12179, 20930, 12, 20930, 18, 14473, 16, 11144, 16, 2366, 10663, 6862, 202, 97, 9506, 202, 97, 3095, 288, 6862, 202, 5533, 1776, 273, 629, 2 ]
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 100: ResultType ::= void // case 100: { //#line 675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 101: FormalParameterList ::= LastFormalParameter // case 101: { //#line 695 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 102: FormalParameterList ::= FormalParameters , LastFormalParameter // case 102: { //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 103: FormalParameters ::= FormalParameter // case 103: { //#line 709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 711 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 104: FormalParameters ::= FormalParameters , FormalParameter // case 104: { //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 105: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 105: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 107: VariableModifiers ::= VariableModifiers VariableModifier // case 107: { //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 735 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 108: VariableModifier ::= final // case 108: { //#line 741 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 109: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 109: { //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 749 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 111: MethodModifiers ::= MethodModifiers MethodModifier // case 111: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 112: MethodModifier ::= public // case 112: { //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 113: MethodModifier ::= protected // case 113: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 114: MethodModifier ::= private // case 114: { //#line 781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 115: MethodModifier ::= abstract // case 115: { //#line 786 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 116: MethodModifier ::= static // case 116: { //#line 791 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 117: MethodModifier ::= final // case 117: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 118: MethodModifier ::= native // case 118: { //#line 806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 119: MethodModifier ::= strictfp // case 119: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 120: Throws ::= throws ExceptionTypeList // case 120: { //#line 815 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 817 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 121: ExceptionTypeList ::= ExceptionType // case 121: { //#line 821 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 823 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 122: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 122: { //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 830 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 125: MethodBody ::= ; // case 125: setResult(null); break; // // Rule 127: StaticInitializer ::= static Block // case 127: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 128: SimpleTypeName ::= identifier // case 128: { //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 869 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 130: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 130: { //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 876 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 131: ConstructorModifier ::= public // case 131: { //#line 884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 132: ConstructorModifier ::= protected // case 132: { //#line 889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 133: ConstructorModifier ::= private // case 133: { //#line 894 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 134: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 134: { //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 900 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; l = new TypedList(new LinkedList(), Stmt.class, false); if (ExplicitConstructorInvocationopt == null) { l.add(nf.SuperCall(pos(), Collections.EMPTY_LIST)); } else { l.add(ExplicitConstructorInvocationopt); } l.addAll(BlockStatementsopt); setResult(nf.Block(pos(), l)); break; } // // Rule 135: Arguments ::= ( ArgumentListopt ) // case 135: { //#line 933 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 935 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 138: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 138: { //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 139: InterfaceModifier ::= public // case 139: { //#line 961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 140: InterfaceModifier ::= protected // case 140: { //#line 966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 141: InterfaceModifier ::= private // case 141: { //#line 971 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 142: InterfaceModifier ::= abstract // case 142: { //#line 976 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 143: InterfaceModifier ::= static // case 143: { //#line 981 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 144: InterfaceModifier ::= strictfp // case 144: { //#line 986 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 145: ExtendsInterfaces ::= extends InterfaceType // case 145: { //#line 990 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 146: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 146: { //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 999 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 147: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 147: { //#line 1009 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 149: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 149: { //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1018 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 151: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 151: { //#line 1024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1026 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= ClassDeclaration // case 152: { //#line 1031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1033 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 153: { //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= ; // case 154: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 155: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 155: { //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 157: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 157: { //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1073 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 158: ConstantModifier ::= public // case 158: { //#line 1081 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 159: ConstantModifier ::= static // case 159: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 160: ConstantModifier ::= final // case 160: { //#line 1091 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 162: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 162: { //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 163: AbstractMethodModifier ::= public // case 163: { //#line 1108 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 164: AbstractMethodModifier ::= abstract // case 164: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 165: SimpleName ::= identifier // case 165: { //#line 1169 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 166: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 166: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 167: VariableInitializers ::= VariableInitializer // case 167: { //#line 1206 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 168: VariableInitializers ::= VariableInitializers , VariableInitializer // case 168: { //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 169: Block ::= { BlockStatementsopt } // case 169: { //#line 1234 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 170: BlockStatements ::= BlockStatement // case 170: { //#line 1240 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1242 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 171: BlockStatements ::= BlockStatements BlockStatement // case 171: { //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1249 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 173: BlockStatement ::= ClassDeclaration // case 173: { //#line 1255 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 174: BlockStatement ::= Statement // case 174: { //#line 1262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 176: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 176: { //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1274 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 200: IfThenStatement ::= if ( Expression ) Statement // case 200: { //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 201: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 201: { //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1343 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 202: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 202: { //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 203: EmptyStatement ::= ; // case 203: { //#line 1355 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 204: LabeledStatement ::= identifier : Statement // case 204: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1361 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 205: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 205: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 206: ExpressionStatement ::= StatementExpression ; // case 206: { //#line 1370 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1372 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 214: AssertStatement ::= assert Expression ; // case 214: { //#line 1393 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1395 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 215: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 215: { //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1400 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 216: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 216: { //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 217: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 217: { //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 219: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 219: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 220: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 220: { //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1427 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 221: SwitchLabels ::= SwitchLabel // case 221: { //#line 1434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1436 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabels SwitchLabel // case 222: { //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1443 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 223: SwitchLabel ::= case ConstantExpression : // case 223: { //#line 1448 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1450 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 224: SwitchLabel ::= default : // case 224: { //#line 1457 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 225: WhileStatement ::= while ( Expression ) Statement // case 225: { //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 226: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 226: { //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1472 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 227: DoStatement ::= do Statement while ( Expression ) ; // case 227: { //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1478 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 230: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 230: { //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1487 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 231: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 231: { //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1493 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 233: ForInit ::= LocalVariableDeclaration // case 233: { //#line 1498 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 235: StatementExpressionList ::= StatementExpression // case 235: { //#line 1508 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1510 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 236: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 236: { //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 237: BreakStatement ::= break identifieropt ; // case 237: { //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1527 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 238: ContinueStatement ::= continue identifieropt ; // case 238: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 239: ReturnStatement ::= return Expressionopt ; // case 239: { //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1543 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 240: ThrowStatement ::= throw Expression ; // case 240: { //#line 1547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 241: TryStatement ::= try Block Catches // case 241: { //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1561 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 242: TryStatement ::= try Block Catchesopt Finally // case 242: { //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1566 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 243: Catches ::= CatchClause // case 243: { //#line 1570 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1572 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 244: Catches ::= Catches CatchClause // case 244: { //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1579 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 245: CatchClause ::= catch ( FormalParameter ) Block // case 245: { //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 246: Finally ::= finally Block // case 246: { //#line 1590 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1592 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 250: PrimaryNoNewArray ::= Type . class // case 250: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 251: PrimaryNoNewArray ::= void . class // case 251: { //#line 1631 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 252: PrimaryNoNewArray ::= this // case 252: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 253: PrimaryNoNewArray ::= ClassName . this // case 253: { //#line 1640 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1642 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 254: PrimaryNoNewArray ::= ( Expression ) // case 254: { //#line 1645 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1647 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 259: Literal ::= IntegerLiteral$IntegerLiteral // case 259: { //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1657 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 260: Literal ::= LongLiteral$LongLiteral // case 260: { //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1663 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 261: Literal ::= FloatingPointLiteral$FloatLiteral // case 261: { //#line 1667 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1669 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 262: Literal ::= DoubleLiteral$DoubleLiteral // case 262: { //#line 1673 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 263: Literal ::= BooleanLiteral // case 263: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 264: Literal ::= CharacterLiteral$CharacterLiteral // case 264: { //#line 1684 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 265: Literal ::= StringLiteral$str // case 265: { //#line 1690 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1692 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 266: Literal ::= null // case 266: { //#line 1698 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 267: BooleanLiteral ::= true$trueLiteral // case 267: { //#line 1702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 268: BooleanLiteral ::= false$falseLiteral // case 268: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: ArgumentList ::= Expression // case 269: { //#line 1722 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1724 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 270: ArgumentList ::= ArgumentList , Expression // case 270: { //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1731 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 271: DimExprs ::= DimExpr // case 271: { //#line 1765 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1767 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 272: DimExprs ::= DimExprs DimExpr // case 272: { //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1774 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 273: DimExpr ::= [ Expression ] // case 273: { //#line 1779 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 274: Dims ::= [ ] // case 274: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 275: Dims ::= Dims [ ] // case 275: { //#line 1790 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1792 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 276: FieldAccess ::= Primary . identifier // case 276: { //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 277: FieldAccess ::= super . identifier // case 277: { //#line 1801 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= ClassName . super$sup . identifier // case 278: { //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1808 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 279: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 279: { //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1814 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 281: PostfixExpression ::= ExpressionName // case 281: { //#line 1837 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1839 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 284: PostIncrementExpression ::= PostfixExpression ++ // case 284: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 285: PostDecrementExpression ::= PostfixExpression -- // case 285: { //#line 1851 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1853 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 288: UnaryExpression ::= + UnaryExpression // case 288: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 289: UnaryExpression ::= - UnaryExpression // case 289: { //#line 1864 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1866 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 291: PreIncrementExpression ::= ++ UnaryExpression // case 291: { //#line 1871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 292: PreDecrementExpression ::= -- UnaryExpression // case 292: { //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1879 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 294: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 294: { //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1886 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 295: { //#line 1889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1891 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 298: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 298: { //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1905 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 299: { //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1910 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 300: { //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 302: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 302: { //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 303: { //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1927 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 305: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 305: { //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1934 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 306: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 307: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 307: { //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1945 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 309: RelationalExpression ::= RelationalExpression < ShiftExpression // case 309: { //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression > ShiftExpression // case 310: { //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1958 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 311: { //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1963 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 312: { //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1968 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 314: EqualityExpression ::= EqualityExpression == RelationalExpression // case 314: { //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1984 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression != RelationalExpression // case 315: { //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1989 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 317: AndExpression ::= AndExpression & EqualityExpression // case 317: { //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1996 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 319: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 319: { //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 321: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 321: { //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2010 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 323: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 323: { //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 325: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 325: { //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 327: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 327: { //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 330: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 330: { //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 331: LeftHandSide ::= ExpressionName // case 331: { //#line 2044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2046 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 334: AssignmentOperator ::= = // case 334: { //#line 2054 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 335: AssignmentOperator ::= *= // case 335: { //#line 2059 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 336: AssignmentOperator ::= /= // case 336: { //#line 2064 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= %= // case 337: { //#line 2069 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= += // case 338: { //#line 2074 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= -= // case 339: { //#line 2079 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= <<= // case 340: { //#line 2084 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= > > = // case 341: { //#line 2089 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > > = // case 342: { //#line 2095 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= &= // case 343: { //#line 2101 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= ^= // case 344: { //#line 2106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= |= // case 345: { //#line 2111 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 348: Dimsopt ::= $Empty // case 348: { //#line 2124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 350: Catchesopt ::= $Empty // case 350: { //#line 2131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 352: identifieropt ::= $Empty // case 352: setResult(null); break; // // Rule 353: identifieropt ::= identifier // case 353: { //#line 2138 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2140 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 354: ForUpdateopt ::= $Empty // case 354: { //#line 2146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 356: Expressionopt ::= $Empty // case 356: setResult(null); break; // // Rule 358: ForInitopt ::= $Empty // case 358: { //#line 2157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 360: SwitchLabelsopt ::= $Empty // case 360: { //#line 2164 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 362: SwitchBlockStatementGroupsopt ::= $Empty // case 362: { //#line 2171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 364: VariableModifiersopt ::= $Empty // case 364: { //#line 2178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 366: VariableInitializersopt ::= $Empty // case 366: setResult(null); break; // // Rule 368: AbstractMethodModifiersopt ::= $Empty // case 368: { //#line 2208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 370: ConstantModifiersopt ::= $Empty // case 370: { //#line 2215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 372: InterfaceMemberDeclarationsopt ::= $Empty // case 372: { //#line 2222 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 374: ExtendsInterfacesopt ::= $Empty // case 374: { //#line 2229 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 376: InterfaceModifiersopt ::= $Empty // case 376: { //#line 2236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 378: ClassBodyopt ::= $Empty // case 378: setResult(null); break; // // Rule 380: Argumentsopt ::= $Empty // case 380: setResult(null); break; // // Rule 381: Argumentsopt ::= Arguments // case 381: throw new Error("No action specified for rule " + 381); // // Rule 382: ,opt ::= $Empty // case 382: setResult(null); break; // // Rule 384: ArgumentListopt ::= $Empty // case 384: { //#line 2266 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 386: BlockStatementsopt ::= $Empty // case 386: { //#line 2273 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 388: ExplicitConstructorInvocationopt ::= $Empty // case 388: setResult(null); break; // // Rule 390: ConstructorModifiersopt ::= $Empty // case 390: { //#line 2284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 392: ...opt ::= $Empty // case 392: setResult(null); break; // // Rule 394: FormalParameterListopt ::= $Empty // case 394: { //#line 2295 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 396: Throwsopt ::= $Empty // case 396: { //#line 2302 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 398: MethodModifiersopt ::= $Empty // case 398: { //#line 2309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 400: FieldModifiersopt ::= $Empty // case 400: { //#line 2316 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 402: ClassBodyDeclarationsopt ::= $Empty // case 402: { //#line 2323 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 404: Interfacesopt ::= $Empty // case 404: { //#line 2330 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 406: Superopt ::= $Empty // case 406: { //#line 2337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 408: ClassModifiersopt ::= $Empty // case 408: { //#line 2348 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 410: TypeDeclarationsopt ::= $Empty // case 410: { //#line 2360 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 412: ImportDeclarationsopt ::= $Empty // case 412: { //#line 2367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 414: PackageDeclarationopt ::= $Empty // case 414: setResult(null); break; // // Rule 416: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 416: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 417: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 734 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: PackageDeclaration ::= package PackageName ; // case 418: { //#line 740 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 742 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 419: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 419: { //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 748 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 421: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 421: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 422: X10ClassModifier ::= ClassModifier // case 422: { //#line 769 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 423: X10ClassModifier ::= safe // case 423: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 424: PropertyList ::= ( Properties WhereClauseopt ) // case 424: { //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 782 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 425: PropertyList ::= ( WhereClause ) // case 425: { //#line 787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 426: Properties ::= Property // case 426: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 427: Properties ::= Properties , Property // case 427: { //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 805 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 428: Property ::= Type identifier // case 428: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 813 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 429: MethodDeclaration ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt MethodBody // case 429: { //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(6); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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, MethodBody)); break; } // // Rule 430: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 430: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 431: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 431: { //#line 855 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 857 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 432: { //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 862 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 433: { //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 434: { //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 435: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 435: { //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 890 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 436: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 436: { //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 437: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 438: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 930 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 439: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 439: { //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 440: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 440: { //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 441: { //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 949 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 443: AssignPropertyCall ::= property ( ArgumentList ) // case 443: { //#line 954 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 444: Type ::= DataType // case 444: { //#line 965 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 967 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 445: Type ::= nullable < Type > DepParametersopt // case 445: { //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 972 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 446: Type ::= future < Type > // case 446: { //#line 978 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 980 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 450: PrimitiveType ::= NumericType DepParametersopt // case 450: { //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 451: PrimitiveType ::= boolean DepParametersopt // case 451: { //#line 1003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1005 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 456: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 456: { //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 457: DepParameters ::= ( DepParameterExpr ) // case 457: { //#line 1036 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 458: DepParameterExpr ::= ArgumentList WhereClauseopt // case 458: { //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 459: DepParameterExpr ::= WhereClause // case 459: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1049 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 460: WhereClause ::= : ConstExpression // case 460: { //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1055 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 461: ConstPrimary ::= Literal // case 461: { //#line 1060 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1062 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 462: ConstPrimary ::= Type . class // case 462: { //#line 1065 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1067 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 463: ConstPrimary ::= void . class // case 463: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 464: ConstPrimary ::= this // case 464: { //#line 1092 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 465: ConstPrimary ::= here // case 465: { //#line 1097 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 466: ConstPrimary ::= ClassName . this // case 466: { //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1102 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 467: ConstPrimary ::= ( ConstExpression ) // case 467: { //#line 1105 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1107 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 469: ConstPrimary ::= self // case 469: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 470: ConstPostfixExpression ::= ConstPrimary // case 470: { //#line 1119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 471: ConstPostfixExpression ::= ExpressionName // case 471: { //#line 1124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 472: ConstUnaryExpression ::= ConstPostfixExpression // case 472: { //#line 1129 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 473: ConstUnaryExpression ::= + ConstUnaryExpression // case 473: { //#line 1134 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 474: ConstUnaryExpression ::= - ConstUnaryExpression // case 474: { //#line 1139 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= ! ConstUnaryExpression // case 475: { //#line 1144 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 476: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 476: { //#line 1150 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 477: { //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 478: { //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1162 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 479: { //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1167 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 480: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 480: { //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1173 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 481: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 481: { //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 482: { //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1183 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstRelationalExpression ::= ConstAdditiveExpression // case 483: { //#line 1188 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1190 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 484: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 484: { //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1195 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 485: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 486: { //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1205 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 487: { //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1210 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 488: ConstEqualityExpression ::= ConstRelationalExpression // case 488: { //#line 1214 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1216 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 489: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 489: { //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1221 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 490: { //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1226 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 491: ConstAndExpression ::= ConstEqualityExpression // case 491: { //#line 1230 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1232 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 492: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 492: { //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1237 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 493: ConstExclusiveOrExpression ::= ConstAndExpression // case 493: { //#line 1241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 494: { //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 495: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 495: { //#line 1252 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1254 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 496: { //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1259 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 497: ConstExpression ::= ConstInclusiveOrExpression // case 497: { //#line 1263 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1265 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 498: { //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1270 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 499: ConstFieldAccess ::= ConstPrimary . identifier // case 499: { //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 500: ConstFieldAccess ::= super . identifier // case 500: { //#line 1280 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= ClassName . super$sup . identifier // case 501: { //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1287 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 503: X10ArrayType ::= Type [ . ] // case 503: { //#line 1303 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1305 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 504: X10ArrayType ::= Type value [ . ] // case 504: { //#line 1308 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1310 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 505: X10ArrayType ::= Type [ DepParameterExpr ] // case 505: { //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1315 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 506: X10ArrayType ::= Type value [ DepParameterExpr ] // case 506: { //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1320 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 507: ObjectKind ::= value // case 507: throw new Error("No action specified for rule " + 507); // // Rule 508: ObjectKind ::= reference // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: MethodModifier ::= atomic // case 509: { //#line 1334 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 510: MethodModifier ::= extern // case 510: { //#line 1339 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 511: MethodModifier ::= safe // case 511: { //#line 1344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 512: MethodModifier ::= sequential // case 512: { //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 513: MethodModifier ::= local // case 513: { //#line 1354 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 514: MethodModifier ::= nonblocking // case 514: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 516: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 516: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 517: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1377 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 518: { //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 519: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 519: { //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 520: ThisClause ::= this DepParameters // case 520: { //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1408 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 521: Super ::= extends DataType // case 521: { //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 522: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 522: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 523: MethodDeclarator ::= MethodDeclarator [ ] // case 523: { //#line 1430 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1432 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 524: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 524: { //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1440 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 525: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 525: { //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 526: { //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1482 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 527: { //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1488 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 528: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 528: { //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1497 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 529: { //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 530: { //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1507 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 531: Valueopt ::= $Empty // case 531: setResult(null); break; // // Rule 532: Valueopt ::= value // case 532: { //#line 1516 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 535: ArrayBaseType ::= nullable < Type > // case 535: { //#line 1523 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 536: ArrayBaseType ::= future < Type > // case 536: { //#line 1528 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1530 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= ( Type ) // case 537: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 538: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 538: { //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 539: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 539: { //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1548 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 556: NowStatement ::= now ( Clock ) Statement // case 556: { //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1576 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 557: ClockedClause ::= clocked ( ClockList ) // case 557: { //#line 1580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1582 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 558: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 558: { //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 559: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 559: { //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1598 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 560: WhenStatement ::= when ( Expression ) Statement // case 560: { //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1607 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 561: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 561: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 562: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 562: { //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1619 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 563: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1629 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 564: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1639 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 565: FinishStatement ::= finish Statement // case 565: { //#line 1646 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 566: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 566: { //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 567: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 567: { //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 568: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 568: { //#line 1668 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1670 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 569: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 569: { //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1676 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 570: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 571: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 571: { //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1688 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 572: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1699 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 573: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 574: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 574: { //#line 1716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 575: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 575: { //#line 1723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 577: NextStatement ::= next ; // case 577: { //#line 1733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 578: AwaitStatement ::= await Expression ; // case 578: { //#line 1737 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1739 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 579: ClockList ::= Clock // case 579: { //#line 1743 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1745 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 580: ClockList ::= ClockList , Clock // case 580: { //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1752 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 581: Clock ::= Expression // case 581: { //#line 1758 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1760 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 582: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 582: { //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 583: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 583: { //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1777 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: RelationalExpression ::= RelationalExpression instanceof Type // case 584: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 585: IdentifierList ::= identifier // case 585: { //#line 1795 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1797 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 586: IdentifierList ::= IdentifierList , identifier // case 586: { //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1804 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 587: Primary ::= here // case 587: { //#line 1811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 590: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 590: { //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1829 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 591: RegionExpressionList ::= RegionExpression // case 591: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 592: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 592: { //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1854 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 593: Primary ::= [ RegionExpressionList ] // case 593: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 594: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 594: { //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 595: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 595: { //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 596: FieldModifier ::= mutable // case 596: { //#line 1892 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 597: FieldModifier ::= const // case 597: { //#line 1897 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 598: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 598: throw new Error("No action specified for rule " + 598); // // Rule 599: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: MethodModifier ::= synchronized // case 607: { //#line 1928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"synchronized\" is an invalid X10 Method Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.SYNCHRONIZED); break; } // // Rule 608: FieldModifier ::= volatile // case 608: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"volatile\" is an invalid X10 Field Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.VOLATILE); break; } // // Rule 609: SynchronizedStatement ::= synchronized ( Expression ) Block // case 609: { //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1946 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "Synchronized Statement is invalid in X10", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 610: ThisClauseopt ::= $Empty // case 610: setResult(null); break; // // Rule 612: PlaceTypeSpecifieropt ::= $Empty // case 612: setResult(null); break; // // Rule 614: DepParametersopt ::= $Empty // case 614: setResult(null); break; // // Rule 616: PropertyListopt ::= $Empty // case 616: setResult(null); break; // // Rule 618: WhereClauseopt ::= $Empty // case 618: setResult(null); break; // // Rule 620: ObjectKindopt ::= $Empty // case 620: setResult(null); break; // // Rule 622: ArrayInitializeropt ::= $Empty // case 622: setResult(null); break; // // Rule 624: PlaceExpressionSingleListopt ::= $Empty // case 624: setResult(null); break; // // Rule 626: ArgumentListopt ::= $Empty // case 626: setResult(null); break; // // Rule 628: X10ClassModifiersopt ::= $Empty // case 628: { //#line 1992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 630: DepParametersopt ::= $Empty // case 630: setResult(null); break; // // Rule 632: Unsafeopt ::= $Empty // case 632: setResult(null); break; // // Rule 633: Unsafeopt ::= unsafe // case 633: { //#line 2004 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 634: ParamIdopt ::= $Empty // case 634: setResult(null); break; // // Rule 635: ParamIdopt ::= identifier // case 635: { //#line 2011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2013 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 636: ClockedClauseopt ::= $Empty // case 636: { //#line 2019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/f8e1720cd66996a6339b992bf154aa0d019240a3/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, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 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, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 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, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 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, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 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, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 2 ]
Ring ring2 = new Ring();
Ring ring2 = builder.newRing();
public void testContains_Atom() { RingSet ringset = new RingSet(); Atom ring1Atom1 = new Atom("C"); // rather artificial molecule Atom ring1Atom2 = new Atom("C"); Atom sharedAtom1 = new Atom("C"); Atom sharedAtom2 = new Atom("C"); Atom ring2Atom1 = new Atom("C"); Atom ring2Atom2 = new Atom("C"); Bond ring1Bond1 = new Bond(ring1Atom1, ring1Atom2); Bond ring1Bond2 = new Bond(sharedAtom1, ring1Atom1); Bond ring1Bond3 = new Bond(sharedAtom2, ring1Atom2); Bond sharedBond = new Bond(sharedAtom1, sharedAtom2); Bond ring2Bond1 = new Bond(ring2Atom1, ring2Atom2); Bond ring2Bond2 = new Bond(sharedAtom1, ring2Atom1); Bond ring2Bond3 = new Bond(sharedAtom2, ring2Atom2); Ring ring1 = new Ring(); ring1.addAtom(ring1Atom1); ring1.addAtom(ring1Atom2); ring1.addAtom(sharedAtom1); ring1.addAtom(sharedAtom2); ring1.addBond(ring1Bond1); ring1.addBond(ring1Bond2); ring1.addBond(ring1Bond3); ring1.addBond(sharedBond); Ring ring2 = new Ring(); ring2.addAtom(ring2Atom1); ring2.addAtom(ring2Atom2); ring2.addAtom(sharedAtom1); ring2.addAtom(sharedAtom2); ring2.addBond(ring2Bond1); ring2.addBond(ring2Bond2); ring2.addBond(ring2Bond3); ring2.addBond(sharedBond); ringset.add(ring1); ringset.add(ring2); assertTrue(ringset.contains(ring1Atom1)); assertTrue(ringset.contains(ring1Atom2)); assertTrue(ringset.contains(sharedAtom1)); assertTrue(ringset.contains(sharedAtom2)); assertTrue(ringset.contains(ring2Atom1)); assertTrue(ringset.contains(ring2Atom2)); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/67261c8143759a6ee4feb79dc1687d6dcfa25f40/RingSetTest.java/buggy/src/org/openscience/cdk/test/RingSetTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 10846, 67, 3641, 1435, 288, 3639, 25463, 694, 9221, 542, 273, 394, 25463, 694, 5621, 3639, 7149, 9221, 21, 3641, 21, 273, 394, 7149, 2932, 39, 8863, 368, 9178, 3688, 1507, 649, 13661, 3639, 7149, 9221, 21, 3641, 22, 273, 394, 7149, 2932, 39, 8863, 3639, 7149, 5116, 3641, 21, 273, 394, 7149, 2932, 39, 8863, 3639, 7149, 5116, 3641, 22, 273, 394, 7149, 2932, 39, 8863, 3639, 7149, 9221, 22, 3641, 21, 273, 394, 7149, 2932, 39, 8863, 3639, 7149, 9221, 22, 3641, 22, 273, 394, 7149, 2932, 39, 8863, 3639, 605, 1434, 9221, 21, 9807, 21, 273, 394, 605, 1434, 12, 8022, 21, 3641, 21, 16, 9221, 21, 3641, 22, 1769, 3639, 605, 1434, 9221, 21, 9807, 22, 273, 394, 605, 1434, 12, 11574, 3641, 21, 16, 9221, 21, 3641, 21, 1769, 3639, 605, 1434, 9221, 21, 9807, 23, 273, 394, 605, 1434, 12, 11574, 3641, 22, 16, 9221, 21, 3641, 22, 1769, 3639, 605, 1434, 5116, 9807, 273, 394, 605, 1434, 12, 11574, 3641, 21, 16, 5116, 3641, 22, 1769, 3639, 605, 1434, 9221, 22, 9807, 21, 273, 394, 605, 1434, 12, 8022, 22, 3641, 21, 16, 9221, 22, 3641, 22, 1769, 3639, 605, 1434, 9221, 22, 9807, 22, 273, 394, 605, 1434, 12, 11574, 3641, 21, 16, 9221, 22, 3641, 21, 1769, 3639, 605, 1434, 9221, 22, 9807, 23, 273, 394, 605, 1434, 12, 11574, 3641, 22, 16, 9221, 22, 3641, 22, 1769, 3639, 25463, 9221, 21, 273, 394, 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, 10846, 67, 3641, 1435, 288, 3639, 25463, 694, 9221, 542, 273, 394, 25463, 694, 5621, 3639, 7149, 9221, 21, 3641, 21, 273, 394, 7149, 2932, 39, 8863, 368, 9178, 3688, 1507, 649, 13661, 3639, 7149, 9221, 21, 3641, 22, 273, 394, 7149, 2932, 39, 8863, 3639, 7149, 5116, 3641, 21, 273, 394, 7149, 2932, 39, 8863, 3639, 7149, 5116, 3641, 22, 273, 394, 7149, 2932, 39, 8863, 3639, 7149, 9221, 22, 3641, 21, 273, 394, 7149, 2932, 39, 8863, 3639, 7149, 9221, 22, 3641, 22, 273, 394, 7149, 2932, 39, 8863, 3639, 605, 1434, 9221, 21, 9807, 21, 273, 394, 605, 1434, 12, 8022, 21, 3641, 21, 16, 9221, 21, 3641, 22, 1769, 3639, 605, 2 ]
return "java.lang.StringBuffer".equals(name)|| "java.lang.StringBuilder".equals(name);
return "java.lang.StringBuffer".equals(name) || "java.lang.StringBuilder".equals(name);
public static boolean isAppend(PsiMethodCallExpression call) { final PsiReferenceExpression methodExpression = call.getMethodExpression(); if(methodExpression == null){ return false; } final String callName = methodExpression.getReferenceName(); if(!"append".equals(callName)){ return false; } final PsiMethod method = call.resolveMethod(); if(method == null){ return false; } final PsiClass containingClass = method.getContainingClass(); if(containingClass == null){ return false; } final String name = containingClass.getQualifiedName(); return "java.lang.StringBuffer".equals(name)|| "java.lang.StringBuilder".equals(name); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/3837c95856454e21e9059f3aa91174a1e2c65526/AppendUtil.java/buggy/plugins/IntentionPowerPak/src/com/siyeh/ipp/concatenation/AppendUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 353, 5736, 12, 52, 7722, 12592, 2300, 745, 13, 565, 288, 3639, 727, 453, 7722, 2404, 2300, 707, 2300, 273, 7734, 745, 18, 588, 1305, 2300, 5621, 3639, 309, 12, 2039, 2300, 422, 446, 15329, 5411, 327, 629, 31, 3639, 289, 3639, 727, 514, 745, 461, 273, 707, 2300, 18, 588, 2404, 461, 5621, 3639, 309, 12, 4442, 6923, 9654, 14963, 12, 1991, 461, 3719, 95, 5411, 327, 629, 31, 3639, 289, 3639, 727, 453, 7722, 1305, 707, 273, 745, 18, 10828, 1305, 5621, 3639, 309, 12, 2039, 422, 446, 15329, 5411, 327, 629, 31, 3639, 289, 3639, 727, 453, 7722, 797, 4191, 797, 273, 707, 18, 588, 24344, 797, 5621, 3639, 309, 12, 1213, 3280, 797, 422, 446, 15329, 5411, 327, 629, 31, 3639, 289, 3639, 727, 514, 508, 273, 4191, 797, 18, 588, 12345, 5621, 3639, 327, 315, 6290, 18, 4936, 18, 780, 1892, 9654, 14963, 12, 529, 14047, 96, 15604, 315, 6290, 18, 4936, 18, 21253, 9654, 14963, 12, 529, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 353, 5736, 12, 52, 7722, 12592, 2300, 745, 13, 565, 288, 3639, 727, 453, 7722, 2404, 2300, 707, 2300, 273, 7734, 745, 18, 588, 1305, 2300, 5621, 3639, 309, 12, 2039, 2300, 422, 446, 15329, 5411, 327, 629, 31, 3639, 289, 3639, 727, 514, 745, 461, 273, 707, 2300, 18, 588, 2404, 461, 5621, 3639, 309, 12, 4442, 6923, 9654, 14963, 12, 1991, 461, 3719, 95, 5411, 327, 629, 31, 3639, 289, 3639, 727, 453, 7722, 1305, 707, 273, 745, 18, 10828, 1305, 5621, 3639, 309, 12, 2039, 422, 446, 15329, 5411, 327, 629, 31, 3639, 289, 3639, 727, 453, 7722, 797, 4191, 797, 273, 707, 18, 588, 24344, 797, 5621, 3639, 309, 12, 1213, 2 ]
else if (sym.isModule()) { Symbol clasz = sym.moduleClass();
else if (sym.isModule())
private void putSymbol(Symbol sym) { if (putEntry(sym)) { if (debug) System.out.println("put " + sym); if (isLocal(sym)) { putEntry(sym.name); putSymbol(sym.isConstructor() ? sym.constructorClass() : sym.owner()); switch (sym.kind) { case TYPE: if (sym.isViewBounded()) putType(sym.vuBound()); else putType(sym.info()); putType(sym.loBound()); break; case ALIAS: putType(sym.info()); putSymbol(sym.allConstructors()); break; case CLASS: putType(sym.info()); putType(sym.typeOfThis()); putSymbol(sym.allConstructors()); for (Scope.SymbolIterator it = sym.members().iterator(); it.hasNext();) putSymbol(it.next()); break; case VAL: putType(sym.info()); if (sym.isConstructor() && sym == sym.constructorClass().allConstructors()) putSymbol(sym.constructorClass()); else if (sym.isModule()) { Symbol clasz = sym.moduleClass(); putSymbol(sym.moduleClass()); assert !modules.containsKey(clasz): Debug.show(sym); modules.put(clasz, sym); } break; default: throw new ApplicationError(); } } else if (sym.kind != NONE) { putEntry(sym.isModuleClass() || sym.isRoot() ? sym.name.toTermName() : sym.name); if (!sym.owner().isRoot()) putSymbol(sym.owner()); } } }
48012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48012/3ec2af254866c60389b3fd304c14d1137b9cf4c8/Pickle.java/clean/sources/scalac/symtab/classfile/Pickle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1378, 5335, 12, 5335, 5382, 13, 288, 202, 430, 261, 458, 1622, 12, 8117, 3719, 288, 202, 565, 309, 261, 4148, 13, 2332, 18, 659, 18, 8222, 2932, 458, 315, 397, 5382, 1769, 202, 565, 309, 261, 291, 2042, 12, 8117, 3719, 288, 202, 202, 458, 1622, 12, 8117, 18, 529, 1769, 202, 202, 458, 5335, 12, 8117, 18, 291, 6293, 1435, 692, 5382, 18, 12316, 797, 1435, 294, 5382, 18, 8443, 10663, 202, 202, 9610, 261, 8117, 18, 9224, 13, 288, 202, 202, 3593, 3463, 30, 1082, 565, 309, 261, 8117, 18, 291, 1767, 38, 12002, 10756, 1378, 559, 12, 8117, 18, 90, 89, 3499, 10663, 1082, 565, 469, 1378, 559, 12, 8117, 18, 1376, 10663, 1082, 565, 1378, 559, 12, 8117, 18, 383, 3499, 10663, 1082, 565, 898, 31, 202, 202, 3593, 16822, 3033, 30, 1082, 565, 1378, 559, 12, 8117, 18, 1376, 10663, 1082, 565, 1378, 5335, 12, 8117, 18, 454, 29590, 10663, 1082, 565, 898, 31, 202, 202, 3593, 7383, 30, 1082, 565, 1378, 559, 12, 8117, 18, 1376, 10663, 1082, 565, 1378, 559, 12, 8117, 18, 723, 951, 2503, 10663, 1082, 565, 1378, 5335, 12, 8117, 18, 454, 29590, 10663, 1082, 565, 364, 261, 3876, 18, 5335, 3198, 518, 273, 5382, 18, 7640, 7675, 9838, 5621, 9506, 518, 18, 5332, 2134, 5621, 13, 1082, 202, 458, 5335, 12, 305, 18, 4285, 10663, 1082, 565, 898, 31, 202, 202, 3593, 5143, 30, 1082, 565, 1378, 559, 12, 8117, 18, 1376, 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, 1378, 5335, 12, 5335, 5382, 13, 288, 202, 430, 261, 458, 1622, 12, 8117, 3719, 288, 202, 565, 309, 261, 4148, 13, 2332, 18, 659, 18, 8222, 2932, 458, 315, 397, 5382, 1769, 202, 565, 309, 261, 291, 2042, 12, 8117, 3719, 288, 202, 202, 458, 1622, 12, 8117, 18, 529, 1769, 202, 202, 458, 5335, 12, 8117, 18, 291, 6293, 1435, 692, 5382, 18, 12316, 797, 1435, 294, 5382, 18, 8443, 10663, 202, 202, 9610, 261, 8117, 18, 9224, 13, 288, 202, 202, 3593, 3463, 30, 1082, 565, 309, 261, 8117, 18, 291, 1767, 38, 12002, 10756, 1378, 559, 12, 8117, 18, 90, 89, 3499, 10663, 1082, 565, 469, 1378, 559, 12, 8117, 18, 1376, 2 ]
node.createPage();
createPage(node);
protected boolean showPage(IPreferenceNode node) { if (node == null) return false; // Create the page if nessessary if (node.getPage() == null) node.createPage(); if (node.getPage() == null) return false; IPreferencePage newPage = getPage(node); if (newPage == currentPage) return true; if (currentPage != null) { if (!currentPage.okToLeave()) return false; } IPreferencePage oldPage = currentPage; currentPage = newPage; // Set the new page's container currentPage.setContainer(this); // Ensure that the page control has been created // (this allows lazy page control creation) if (currentPage.getControl() == null) { final boolean[] failed = { false }; Platform.run(new ISafeRunnable() { public void handleException(Throwable e) { failed[0] = true; } public void run() { createPageControl(currentPage, pageContainer); } }); if (failed[0]) return false; // the page is responsible for ensuring the created control is // accessable // via getControl. Assert.isNotNull(currentPage.getControl()); } // Force calculation of the page's description label because // label can be wrapped. final Point[] size = new Point[1]; final Point failed = new Point(-1, -1); Platform.run(new ISafeRunnable() { public void handleException(Throwable e) { size[0] = failed; } public void run() { size[0] = currentPage.computeSize(); } }); if (size[0].equals(failed)) return false; Point contentSize = size[0]; // Do we need resizing. Computation not needed if the // first page is inserted since computing the dialog's // size is done by calling dialog.open(). // Also prevent auto resize if the user has manually resized Shell shell = getShell(); Point shellSize = shell.getSize(); if (oldPage != null) { Rectangle rect = pageContainer.getClientArea(); Point containerSize = new Point(rect.width, rect.height); int hdiff = contentSize.x - containerSize.x; int vdiff = contentSize.y - containerSize.y; if (hdiff > 0 || vdiff > 0) { if (shellSize.equals(lastShellSize)) { hdiff = Math.max(0, hdiff); vdiff = Math.max(0, vdiff); setShellSize(shellSize.x + hdiff, shellSize.y + vdiff); lastShellSize = shell.getSize(); if (currentPage.getControl().getSize().x == 0) currentPage.getControl().setSize(containerSize); } else { currentPage.setSize(containerSize); } } else if (hdiff < 0 || vdiff < 0) { currentPage.setSize(containerSize); } } // Ensure that all other pages are invisible // (including ones that triggered an exception during // their creation). Control[] children = pageContainer.getChildren(); Control currentControl = currentPage.getControl(); for (int i = 0; i < children.length; i++) { if (children[i] != currentControl) children[i].setVisible(false); } // Make the new page visible currentPage.setVisible(true); if (oldPage != null) oldPage.setVisible(false); // update the dialog controls update(); return true; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/b04822b19da25d2275db8f0e7c40d9d979503af4/PreferenceDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 2405, 1964, 12, 45, 9624, 907, 756, 13, 288, 202, 202, 430, 261, 2159, 422, 446, 13, 1082, 202, 2463, 629, 31, 202, 202, 759, 1788, 326, 1363, 309, 290, 403, 403, 814, 202, 202, 430, 261, 2159, 18, 588, 1964, 1435, 422, 446, 13, 1082, 202, 2159, 18, 2640, 1964, 5621, 202, 202, 430, 261, 2159, 18, 588, 1964, 1435, 422, 446, 13, 1082, 202, 2463, 629, 31, 202, 202, 45, 9624, 1964, 394, 1964, 273, 8957, 12, 2159, 1769, 202, 202, 430, 261, 2704, 1964, 422, 15117, 13, 1082, 202, 2463, 638, 31, 202, 202, 430, 261, 2972, 1964, 480, 446, 13, 288, 1082, 202, 430, 16051, 2972, 1964, 18, 601, 774, 21300, 10756, 9506, 202, 2463, 629, 31, 202, 202, 97, 202, 202, 45, 9624, 1964, 1592, 1964, 273, 15117, 31, 202, 202, 2972, 1964, 273, 394, 1964, 31, 202, 202, 759, 1000, 326, 394, 1363, 1807, 1478, 202, 202, 2972, 1964, 18, 542, 2170, 12, 2211, 1769, 202, 202, 759, 7693, 716, 326, 1363, 3325, 711, 2118, 2522, 202, 202, 759, 261, 2211, 5360, 7962, 1363, 3325, 6710, 13, 202, 202, 430, 261, 2972, 1964, 18, 588, 3367, 1435, 422, 446, 13, 288, 1082, 202, 6385, 1250, 8526, 2535, 273, 288, 629, 289, 31, 1082, 202, 8201, 18, 2681, 12, 2704, 4437, 2513, 20013, 1435, 288, 9506, 202, 482, 918, 20879, 12, 15155, 425, 13, 288, 6862, 202, 7307, 63, 20, 65, 273, 638, 31, 9506, 202, 97, 9506, 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, 1250, 2405, 1964, 12, 45, 9624, 907, 756, 13, 288, 202, 202, 430, 261, 2159, 422, 446, 13, 1082, 202, 2463, 629, 31, 202, 202, 759, 1788, 326, 1363, 309, 290, 403, 403, 814, 202, 202, 430, 261, 2159, 18, 588, 1964, 1435, 422, 446, 13, 1082, 202, 2159, 18, 2640, 1964, 5621, 202, 202, 430, 261, 2159, 18, 588, 1964, 1435, 422, 446, 13, 1082, 202, 2463, 629, 31, 202, 202, 45, 9624, 1964, 394, 1964, 273, 8957, 12, 2159, 1769, 202, 202, 430, 261, 2704, 1964, 422, 15117, 13, 1082, 202, 2463, 638, 31, 202, 202, 430, 261, 2972, 1964, 480, 446, 13, 288, 1082, 202, 430, 16051, 2972, 1964, 18, 601, 774, 21300, 2 ]
EmailElementCache eecache = new EmailElementCache(); addEmails(m, eecache, Mime.parseAddressHeader(mm, "From"), EmailType.FROM); addEmails(m, eecache, Mime.parseAddressHeader(mm, "Reply-To"), EmailType.REPLY_TO); addEmails(m, eecache, Mime.parseAddressHeader(mm, "To"), EmailType.TO); addEmails(m, eecache, Mime.parseAddressHeader(mm, "Cc"), EmailType.CC); addEmails(m, eecache, Mime.parseAddressHeader(mm, "Bcc"), EmailType.BCC);
addEmails(m, Mime.parseAddressHeader(mm, "From"), EmailType.FROM); addEmails(m, Mime.parseAddressHeader(mm, "Reply-To"), EmailType.REPLY_TO); addEmails(m, Mime.parseAddressHeader(mm, "To"), EmailType.TO); addEmails(m, Mime.parseAddressHeader(mm, "Cc"), EmailType.CC); addEmails(m, Mime.parseAddressHeader(mm, "Bcc"), EmailType.BCC);
public static Element encodeMessageAsMP(Element parent, ZimbraSoapContext lc, Message msg, String part, boolean wantHTML, boolean neuter) throws ServiceException { boolean wholeMessage = (part == null || part.trim().equals("")); Element m; if (wholeMessage) { m = encodeMessageCommon(parent, lc, msg, NOTIFY_FIELDS); m.addAttribute(MailService.A_ID, lc.formatItemId(msg)); } else { m = parent.addElement(MailService.E_MSG); m.addAttribute(MailService.A_ID, lc.formatItemId(msg)); m.addAttribute(MailService.A_PART, part); } try { MimeMessage mm = msg.getMimeMessage(); if (!wholeMessage) { MimePart mp = Mime.getMimePart(mm, part); if (mp == null) throw MailServiceException.NO_SUCH_PART(part); Object content = Mime.getMessageContent(mp); if (!(content instanceof MimeMessage)) throw MailServiceException.NO_SUCH_PART(part); mm = (MimeMessage) content; } else part = ""; EmailElementCache eecache = new EmailElementCache(); addEmails(m, eecache, Mime.parseAddressHeader(mm, "From"), EmailType.FROM); addEmails(m, eecache, Mime.parseAddressHeader(mm, "Reply-To"), EmailType.REPLY_TO); addEmails(m, eecache, Mime.parseAddressHeader(mm, "To"), EmailType.TO); addEmails(m, eecache, Mime.parseAddressHeader(mm, "Cc"), EmailType.CC); addEmails(m, eecache, Mime.parseAddressHeader(mm, "Bcc"), EmailType.BCC); String subject = mm.getSubject(); if (subject != null) m.addAttribute(MailService.E_SUBJECT, StringUtil.stripControlCharacters(subject), Element.DISP_CONTENT); String messageID = mm.getMessageID(); if (messageID != null && !messageID.trim().equals("")) m.addAttribute(MailService.E_MSG_ID_HDR, StringUtil.stripControlCharacters(messageID), Element.DISP_CONTENT); if (wholeMessage && msg.isDraft()) { if (msg.getDraftOrigId() > 0) m.addAttribute(MailService.A_ORIG_ID, lc.formatItemId(msg.getDraftOrigId())); if (!msg.getDraftReplyType().equals("")) m.addAttribute(MailService.A_REPLY_TYPE, msg.getDraftReplyType()); String inReplyTo = mm.getHeader("In-Reply-To", null); if (inReplyTo != null && !inReplyTo.equals("")) m.addAttribute(MailService.E_IN_REPLY_TO, StringUtil.stripControlCharacters(inReplyTo), Element.DISP_CONTENT); } if (!wholeMessage) m.addAttribute(MailService.A_SIZE, mm.getSize()); java.util.Date sent = mm.getSentDate(); if (sent != null) m.addAttribute(MailService.A_SENT_DATE, sent.getTime()); if (msg.isInvite()) encodeInvitesForMessage(m, lc, msg, NOTIFY_FIELDS); List parts = Mime.getParts(mm); if (parts != null && !parts.isEmpty()) { MPartInfo body = Mime.getBody(parts, wantHTML); addParts(m, (MPartInfo) parts.get(0), body, part, neuter); } } catch (IOException ex) { throw ServiceException.FAILURE(ex.getMessage(), ex); } catch (MessagingException ex) { throw ServiceException.FAILURE(ex.getMessage(), ex); } return m; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/fad4c84f4ca0d2273e9f0c27a34fcd6a6449b7e7/ToXML.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/mail/ToXML.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3010, 2017, 1079, 1463, 4566, 12, 1046, 982, 16, 2285, 381, 15397, 20601, 1042, 9109, 16, 2350, 1234, 16, 514, 1087, 16, 1250, 2545, 4870, 16, 1250, 1073, 26812, 13, 565, 1216, 16489, 288, 3639, 1250, 7339, 1079, 273, 261, 2680, 422, 446, 747, 1087, 18, 5290, 7675, 14963, 2932, 7923, 1769, 3639, 3010, 312, 31, 3639, 309, 261, 3350, 790, 1079, 13, 288, 5411, 312, 273, 2017, 1079, 6517, 12, 2938, 16, 9109, 16, 1234, 16, 4269, 12096, 67, 12683, 1769, 5411, 312, 18, 1289, 1499, 12, 6759, 1179, 18, 37, 67, 734, 16, 9109, 18, 2139, 17673, 12, 3576, 10019, 3639, 289, 469, 288, 5411, 312, 273, 982, 18, 1289, 1046, 12, 6759, 1179, 18, 41, 67, 11210, 1769, 5411, 312, 18, 1289, 1499, 12, 6759, 1179, 18, 37, 67, 734, 16, 9109, 18, 2139, 17673, 12, 3576, 10019, 5411, 312, 18, 1289, 1499, 12, 6759, 1179, 18, 37, 67, 15055, 16, 1087, 1769, 3639, 289, 3639, 775, 288, 5411, 22059, 1079, 9740, 273, 1234, 18, 588, 13320, 1079, 5621, 5411, 309, 16051, 3350, 790, 1079, 13, 288, 7734, 22059, 1988, 6749, 273, 22059, 18, 588, 13320, 1988, 12, 7020, 16, 1087, 1769, 7734, 309, 261, 1291, 422, 446, 13, 10792, 604, 11542, 15133, 18, 3417, 67, 19958, 67, 15055, 12, 2680, 1769, 7734, 1033, 913, 273, 22059, 18, 24906, 1350, 12, 1291, 1769, 7734, 309, 16051, 12, 1745, 1276, 22059, 1079, 3719, 10792, 604, 11542, 15133, 18, 3417, 67, 19958, 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, 377, 1071, 760, 3010, 2017, 1079, 1463, 4566, 12, 1046, 982, 16, 2285, 381, 15397, 20601, 1042, 9109, 16, 2350, 1234, 16, 514, 1087, 16, 1250, 2545, 4870, 16, 1250, 1073, 26812, 13, 565, 1216, 16489, 288, 3639, 1250, 7339, 1079, 273, 261, 2680, 422, 446, 747, 1087, 18, 5290, 7675, 14963, 2932, 7923, 1769, 3639, 3010, 312, 31, 3639, 309, 261, 3350, 790, 1079, 13, 288, 5411, 312, 273, 2017, 1079, 6517, 12, 2938, 16, 9109, 16, 1234, 16, 4269, 12096, 67, 12683, 1769, 5411, 312, 18, 1289, 1499, 12, 6759, 1179, 18, 37, 67, 734, 16, 9109, 18, 2139, 17673, 12, 3576, 10019, 3639, 289, 469, 288, 5411, 312, 273, 982, 18, 1289, 1046, 12, 6759, 1179, 2 ]
int definedArgs = theData.itsVariableTable.getParameterCount();
int definedArgs = fnOrScript.argCount;
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Scriptable fnOrScript, InterpreterData theData) throws JavaScriptException { int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = theData.itsVariableTable.size(); final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK, // sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = theData.itsVariableTable.getParameterCount(); if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; double lDbl; int rIntValue; double rDbl; int[] catchStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } if (maxTryDepth != 0) { // catchStack[2 * i]: starting pc of catch block // catchStack[2 * i + 1]: starting pc of finally block catchStack = new int[maxTryDepth * 2]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; catchStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lLongValue = stack_uint32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lLongValue >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && (iCode[pc+1] << 8) + (iCode[pc+2] & 0xFF) != -1) { // special code for better error message for call // to undefined lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; case TokenStream.LINE : case TokenStream.BREAKPOINT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == TokenStream.BREAKPOINT || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Exception ex) { cx.interpreterSecurityDomain = null; if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, OTHER = 2; int exType; Object errObj; // Object seen by catch if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else { errObj = ex; exType = OTHER; } if (cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (tryStackTop > 0) { --tryStackTop; scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; if (exType == SCRIPT_THROW || exType == ECMA) { pc = catchStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = catchStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; else throw (RuntimeException)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. stackTop = 0; stack[0] = errObj; cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/2e5f0c80aa851723c959897d5baa5abe7a788df3/Interpreter.java/clean/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 565, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 565, 22780, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 326, 751, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 509, 277, 31, 3639, 1033, 8499, 31, 3639, 727, 509, 943, 2624, 273, 326, 751, 18, 1282, 2747, 2624, 31, 3639, 727, 509, 943, 5555, 273, 326, 751, 18, 1282, 3092, 1388, 18, 1467, 5621, 3639, 727, 509, 943, 1333, 1031, 273, 326, 751, 18, 1282, 2747, 1333, 1031, 31, 3639, 727, 509, 943, 7833, 6148, 273, 326, 751, 18, 1282, 2747, 7833, 6148, 31, 7734, 727, 509, 8350, 67, 2664, 4464, 273, 943, 2624, 31, 540, 727, 509, 15234, 67, 2664, 4464, 273, 8350, 67, 2664, 4464, 397, 943, 5555, 31, 540, 727, 509, 4235, 61, 67, 19444, 67, 2664, 4464, 273, 15234, 67, 2664, 4464, 397, 943, 1333, 1031, 31, 759, 2110, 63, 20, 1648, 277, 411, 8350, 67, 2664, 4464, 14542, 2110, 501, 759, 2110, 63, 7716, 67, 2664, 4464, 1648, 277, 411, 15234, 67, 2664, 4464, 14542, 3152, 759, 2110, 63, 14922, 67, 2664, 4464, 1648, 277, 411, 4235, 61, 67, 19444, 67, 2664, 4464, 14542, 1399, 364, 394, 5814, 19, 407, 278, 30752, 759, 2110, 63, 17805, 67, 19444, 67, 2664, 4464, 1648, 277, 14542, 775, 8124, 759, 1347, 374, 1648, 277, 411, 15234, 67, 2664, 4464, 471, 2110, 63, 92, 65, 422, 2383, 48, 67, 23464, 47, 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, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 565, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 565, 22780, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 326, 751, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 509, 277, 31, 3639, 1033, 8499, 31, 3639, 727, 509, 943, 2624, 273, 326, 751, 18, 1282, 2747, 2624, 31, 3639, 727, 509, 943, 5555, 273, 326, 751, 18, 1282, 3092, 1388, 18, 1467, 5621, 3639, 727, 509, 943, 1333, 1031, 273, 326, 751, 18, 1282, 2747, 1333, 1031, 31, 3639, 727, 509, 943, 7833, 6148, 273, 326, 751, 18, 1282, 2747, 7833, 6148, 31, 7734, 727, 509, 8350, 67, 2664, 4464, 273, 943, 2624, 31, 2 ]
if (node != null) { db.setOwnerObject(lockKey); long addr = db.findValue(lockKey, node); if(addr == KEY_NOT_FOUND) return false; RecordPos rec = findValuePosition(addr); page = rec.page.getPageNum(); p = rec.page; offset = rec.offset - 2; node = null; } else if (-1 < startAddress) { RecordPos rec = findValuePosition(startAddress); page = rec.page.getPageNum(); offset = rec.offset - 2; p = rec.page; } else if (page > -1) p = db.getCurrentPage(page); else { lock.release(lockKey); return false; } db.buffer.add(p); DOMFilePageHeader ph = p.getPageHeader();
public boolean hasNext() { Lock lock = db.getLock(); try { try { lock.acquire(lockKey); lock.enter(lockKey); } catch (LockException e) { return false; } if (node != null) { db.setOwnerObject(lockKey); long addr = db.findValue(lockKey, node); if(addr == KEY_NOT_FOUND) return false; RecordPos rec = findValuePosition(addr); page = rec.page.getPageNum(); p = rec.page; offset = rec.offset - 2; node = null; } else if (-1 < startAddress) { RecordPos rec = findValuePosition(startAddress); page = rec.page.getPageNum(); offset = rec.offset - 2; p = rec.page; } else if (page > -1) p = db.getCurrentPage(page); else { lock.release(lockKey); return false; } db.buffer.add(p); DOMFilePageHeader ph = p.getPageHeader(); lock.release(lockKey); if (offset < ph.getDataLength()) return true; else if (ph.getNextDataPage() < 0) return false; else return true; } catch (BTreeException e) { LOG.warn(e); } catch (IOException e) { LOG.warn(e); } lock.release(lockKey); return false; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/1c0cc42431436631d1b2e9ea8af63bb6dd883496/DOMFile.java/clean/src/org/exist/storage/DOMFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 4564, 1435, 288, 1082, 202, 2531, 2176, 273, 1319, 18, 588, 2531, 5621, 1082, 202, 698, 288, 9506, 202, 698, 288, 6862, 202, 739, 18, 1077, 1039, 12, 739, 653, 1769, 6862, 202, 739, 18, 2328, 12, 739, 653, 1769, 9506, 202, 97, 1044, 261, 2531, 503, 425, 13, 288, 6862, 202, 2463, 629, 31, 9506, 202, 97, 9506, 202, 430, 261, 2159, 480, 446, 13, 288, 6862, 202, 1966, 18, 542, 5541, 921, 12, 739, 653, 1769, 6862, 202, 5748, 3091, 273, 1319, 18, 4720, 620, 12, 739, 653, 16, 756, 1769, 6862, 202, 430, 12, 4793, 422, 5311, 67, 4400, 67, 9294, 13, 25083, 202, 2463, 629, 31, 6862, 202, 2115, 1616, 1950, 273, 1104, 620, 2555, 12, 4793, 1769, 6862, 202, 2433, 273, 1950, 18, 2433, 18, 588, 1964, 2578, 5621, 6862, 202, 84, 273, 1950, 18, 2433, 31, 6862, 202, 3348, 273, 1950, 18, 3348, 300, 576, 31, 6862, 202, 2159, 273, 446, 31, 9506, 202, 97, 469, 309, 24927, 21, 411, 787, 1887, 13, 288, 6862, 202, 2115, 1616, 1950, 273, 1104, 620, 2555, 12, 1937, 1887, 1769, 6862, 202, 2433, 273, 1950, 18, 2433, 18, 588, 1964, 2578, 5621, 6862, 202, 3348, 273, 1950, 18, 3348, 300, 576, 31, 6862, 202, 84, 273, 1950, 18, 2433, 31, 9506, 202, 97, 469, 309, 261, 2433, 405, 300, 21, 13, 6862, 202, 84, 273, 1319, 18, 588, 3935, 1964, 12, 2433, 1769, 9506, 202, 12107, 288, 6862, 202, 739, 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, 3196, 202, 482, 1250, 4564, 1435, 288, 1082, 202, 2531, 2176, 273, 1319, 18, 588, 2531, 5621, 1082, 202, 698, 288, 9506, 202, 698, 288, 6862, 202, 739, 18, 1077, 1039, 12, 739, 653, 1769, 6862, 202, 739, 18, 2328, 12, 739, 653, 1769, 9506, 202, 97, 1044, 261, 2531, 503, 425, 13, 288, 6862, 202, 2463, 629, 31, 9506, 202, 97, 9506, 202, 430, 261, 2159, 480, 446, 13, 288, 6862, 202, 1966, 18, 542, 5541, 921, 12, 739, 653, 1769, 6862, 202, 5748, 3091, 273, 1319, 18, 4720, 620, 12, 739, 653, 16, 756, 1769, 6862, 202, 430, 12, 4793, 422, 5311, 67, 4400, 67, 9294, 13, 25083, 202, 2463, 629, 31, 6862, 202, 2115, 1616, 1950, 2 ]
public String getPGType(int oid) throws SQLException
public int getPGType(String typeName) throws SQLException
public String getPGType(int oid) throws SQLException { String pgType = (String) pgTypeCache.get(new Integer(oid)); if (pgType == null) { getSQLType(oid); pgType = (String) pgTypeCache.get(new Integer(oid)); } return pgType; }
49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/0378a269f3ab3c44e67b14f96414b6ca95263263/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1689, 43, 559, 12, 474, 7764, 13, 1216, 6483, 202, 95, 202, 202, 780, 7184, 559, 273, 261, 780, 13, 7184, 559, 1649, 18, 588, 12, 2704, 2144, 12, 839, 10019, 202, 202, 430, 261, 8365, 559, 422, 446, 13, 202, 202, 95, 1082, 202, 588, 3997, 559, 12, 839, 1769, 1082, 202, 8365, 559, 273, 261, 780, 13, 7184, 559, 1649, 18, 588, 12, 2704, 2144, 12, 839, 10019, 202, 202, 97, 202, 202, 2463, 7184, 559, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1689, 43, 559, 12, 474, 7764, 13, 1216, 6483, 202, 95, 202, 202, 780, 7184, 559, 273, 261, 780, 13, 7184, 559, 1649, 18, 588, 12, 2704, 2144, 12, 839, 10019, 202, 202, 430, 261, 8365, 559, 422, 446, 13, 202, 202, 95, 1082, 202, 588, 3997, 559, 12, 839, 1769, 1082, 202, 8365, 559, 273, 261, 780, 13, 7184, 559, 1649, 18, 588, 12, 2704, 2144, 12, 839, 10019, 202, 202, 97, 202, 202, 2463, 7184, 559, 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 ]
public CreateConnectorViewAndElementRequest(IElementType type, PreferencesHint preferencesHint) { super( new ConnectorViewAndElementDescriptor( new CreateElementRequestAdapter( new CreateRelationshipRequest(type)), preferencesHint));
public CreateConnectorViewAndElementRequest(ConnectorViewAndElementDescriptor connectorViewAndElementDescriptor) { super(connectorViewAndElementDescriptor);
public CreateConnectorViewAndElementRequest(IElementType type, PreferencesHint preferencesHint) { super( new ConnectorViewAndElementDescriptor( new CreateElementRequestAdapter( new CreateRelationshipRequest(type)), preferencesHint)); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/8cde65fc058a9faaf847d04bf9b28594ea600f8f/CreateConnectorViewAndElementRequest.java/clean/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/requests/CreateConnectorViewAndElementRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1788, 7487, 1767, 1876, 1046, 691, 12, 45, 17481, 618, 16, 28310, 7002, 12750, 7002, 13, 288, 202, 202, 9565, 12, 1082, 202, 2704, 15779, 1767, 1876, 1046, 3187, 12, 9506, 202, 2704, 1788, 1046, 691, 4216, 12, 6862, 202, 2704, 1788, 8180, 691, 12, 723, 13, 3631, 12750, 7002, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1788, 7487, 1767, 1876, 1046, 691, 12, 45, 17481, 618, 16, 28310, 7002, 12750, 7002, 13, 288, 202, 202, 9565, 12, 1082, 202, 2704, 15779, 1767, 1876, 1046, 3187, 12, 9506, 202, 2704, 1788, 1046, 691, 4216, 12, 6862, 202, 2704, 1788, 8180, 691, 12, 723, 13, 3631, 12750, 7002, 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 ]
public void test218RDFProductConfig() throws IOException { ServerConfigurationFactory factory = ServerConfigurationFactory.getInstance(); RepositoryConfiguration config = factory.getConfiguration(IBugzillaConstants.TEST_BUGZILLA_218_URL); assertNotNull(config); assertEquals("2.18.5", config.getInstallVersion()); assertEquals(7, config.getStatusValues().size()); assertEquals(8, config.getResolutions().size()); assertEquals(8, config.getPlatforms().size()); assertEquals(37, config.getOSs().size()); assertEquals(5, config.getPriorities().size()); assertEquals(7, config.getSeverities().size()); assertEquals(1, config.getProducts().size()); assertEquals(4, config.getOpenStatusValues().size()); assertEquals(1, config.getComponents("TestProduct").size()); assertEquals(1, config.getVersions("TestProduct").size()); //assertEquals(1, config.getTargetMilestones("TestProduct").size()); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/4db4cd6e586263286bb85a61cf90591f0c599a6f/BugzillaConfigurationTest.java/buggy/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaConfigurationTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 22, 2643, 30137, 4133, 809, 1435, 1216, 1860, 288, 202, 202, 2081, 1750, 1733, 3272, 273, 3224, 1750, 1733, 18, 588, 1442, 5621, 202, 202, 3305, 1750, 642, 273, 3272, 18, 588, 1750, 12, 13450, 637, 15990, 2918, 18, 16961, 67, 4827, 62, 2627, 2534, 67, 22, 2643, 67, 1785, 1769, 202, 202, 11231, 5962, 12, 1425, 1769, 202, 202, 11231, 8867, 2932, 22, 18, 2643, 18, 25, 3113, 642, 18, 588, 6410, 1444, 10663, 202, 202, 11231, 8867, 12, 27, 16, 642, 18, 588, 1482, 1972, 7675, 1467, 10663, 202, 202, 11231, 8867, 12, 28, 16, 642, 18, 588, 2903, 6170, 7675, 1467, 10663, 202, 202, 11231, 8867, 12, 28, 16, 642, 18, 588, 8201, 87, 7675, 1467, 10663, 202, 202, 11231, 8867, 12, 6418, 16, 642, 18, 588, 4618, 87, 7675, 1467, 10663, 202, 202, 11231, 8867, 12, 25, 16, 642, 18, 588, 25355, 1961, 7675, 1467, 10663, 202, 202, 11231, 8867, 12, 27, 16, 642, 18, 588, 1761, 502, 1961, 7675, 1467, 10663, 202, 202, 11231, 8867, 12, 21, 16, 642, 18, 588, 13344, 7675, 1467, 10663, 202, 202, 11231, 8867, 12, 24, 16, 642, 18, 588, 3678, 1482, 1972, 7675, 1467, 10663, 202, 202, 11231, 8867, 12, 21, 16, 642, 18, 588, 7171, 2932, 4709, 4133, 20387, 1467, 10663, 202, 202, 11231, 8867, 12, 21, 16, 642, 18, 588, 5940, 2932, 4709, 4133, 20387, 1467, 10663, 202, 202, 759, 11231, 8867, 12, 21, 16, 642, 18, 588, 2326, 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, 918, 1842, 22, 2643, 30137, 4133, 809, 1435, 1216, 1860, 288, 202, 202, 2081, 1750, 1733, 3272, 273, 3224, 1750, 1733, 18, 588, 1442, 5621, 202, 202, 3305, 1750, 642, 273, 3272, 18, 588, 1750, 12, 13450, 637, 15990, 2918, 18, 16961, 67, 4827, 62, 2627, 2534, 67, 22, 2643, 67, 1785, 1769, 202, 202, 11231, 5962, 12, 1425, 1769, 202, 202, 11231, 8867, 2932, 22, 18, 2643, 18, 25, 3113, 642, 18, 588, 6410, 1444, 10663, 202, 202, 11231, 8867, 12, 27, 16, 642, 18, 588, 1482, 1972, 7675, 1467, 10663, 202, 202, 11231, 8867, 12, 28, 16, 642, 18, 588, 2903, 6170, 7675, 1467, 10663, 202, 202, 11231, 8867, 12, 28, 16, 642, 18, 2 ]
public void ignorableWhitespace(XMLString text) throws XNIException {
public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException {
public void ignorableWhitespace(XMLString text) throws XNIException { printIndent(); fOut.print("ignorableWhitespace("); fOut.print("text="); printQuotedString(text.ch, text.offset, text.length); fOut.println(')'); fOut.flush(); } // ignorableWhitespace(XMLString)
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/1281996de10d3af1b51f0b4d78cfcd75d8ade6fe/DocumentTracer.java/clean/samples/xni/DocumentTracer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9750, 15514, 9431, 12, 4201, 780, 977, 16, 432, 14870, 1012, 279, 9024, 13, 1216, 1139, 50, 45, 503, 288, 3639, 1172, 7790, 5621, 3639, 284, 1182, 18, 1188, 2932, 724, 15514, 9431, 2932, 1769, 3639, 284, 1182, 18, 1188, 2932, 955, 1546, 1769, 3639, 1172, 15919, 780, 12, 955, 18, 343, 16, 977, 18, 3348, 16, 977, 18, 2469, 1769, 3639, 284, 1182, 18, 8222, 2668, 2506, 1769, 3639, 284, 1182, 18, 11330, 5621, 565, 289, 368, 9750, 15514, 9431, 12, 4201, 780, 13, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9750, 15514, 9431, 12, 4201, 780, 977, 16, 432, 14870, 1012, 279, 9024, 13, 1216, 1139, 50, 45, 503, 288, 3639, 1172, 7790, 5621, 3639, 284, 1182, 18, 1188, 2932, 724, 15514, 9431, 2932, 1769, 3639, 284, 1182, 18, 1188, 2932, 955, 1546, 1769, 3639, 1172, 15919, 780, 12, 955, 18, 343, 16, 977, 18, 3348, 16, 977, 18, 2469, 1769, 3639, 284, 1182, 18, 8222, 2668, 2506, 1769, 3639, 284, 1182, 18, 11330, 5621, 565, 289, 368, 9750, 15514, 9431, 12, 4201, 780, 13, 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 ]
this.container.setVerticalDimensions(translateY, this.screenHeight);
setContentArea( 0, translateY, this.screenWidth, this.screenHeight - (this.infoHeight + this.subTitleHeight + translateY) );
public final void paint(Graphics g) { //#if tmp.fullScreenInPaint if (!this.isInFullScreenMode) { super.setFullScreenMode( true ); this.isInFullScreenMode = true; //#ifdef polish.FullCanvasHeight:defined //#= this.fullScreenHeight = ${polish.FullCanvasHeight}; //#else this.fullScreenHeight = getHeight(); //#endif this.screenHeight = this.fullScreenHeight - this.menuBarHeight; this.originalScreenHeight = this.screenHeight; this.scrollIndicatorY = this.screenHeight - this.scrollIndicatorWidth - 1; } //#endif //#if polish.useFullScreen && polish.api.nokia-ui this.isInPaintMethod = true; //#endif //#ifdef polish.debug.error try { //#endif // paint background: if (this.background != null) { //#ifdef tmp.menuFullScreen this.background.paint(0, 0, this.screenWidth, this.fullScreenHeight, g); //#else this.background.paint(0, 0, this.screenWidth, this.screenHeight, g); //#endif } else { g.setColor( 0xFFFFFF ); //#ifdef tmp.menuFullScreen g.fillRect( 0, 0, this.screenWidth, this.fullScreenHeight ); //#else g.fillRect( 0, 0, this.screenWidth, this.screenHeight ); //#endif } int tHeight = 0; //#ifdef tmp.usingTitle // paint title: if (this.title != null && this.showTitleOrMenu) { this.title.paint(0, 0, 0, this.screenWidth, g); tHeight = this.titleHeight; } //#elif !tmp.menuFullScreen int translateY = g.getTranslateY(); if (translateY != 0 && this.screenHeight == this.originalScreenHeight) { this.screenHeight -= translateY; this.scrollIndicatorY -= translateY; //#debug System.out.println("Adjusting screenheight from " + this.originalScreenHeight + " to " + this.screenHeight ); if (this.container != null) { this.container.setVerticalDimensions(translateY, this.screenHeight); } } //#endif if (this.subTitle != null) { this.subTitle.paint( 0, tHeight, 0, this.screenWidth, g ); tHeight += this.subTitleHeight; } if (this.showInfoItem) { this.infoItem.paint( 0, tHeight, 0, this.screenWidth, g ); tHeight += this.infoHeight; } // protect the title, ticker and the full-screen-menu area: g.setClip(0, tHeight, this.screenWidth, this.screenHeight - tHeight ); g.translate( 0, tHeight ); // paint content: //System.out.println("starting to paint content of screen"); paintScreen( g ); //System.out.println("done painting content of screen"); g.translate( 0, - tHeight ); // allow painting outside of the screen again: //#ifdef tmp.menuFullScreen g.setClip(0, 0, this.screenWidth, this.fullScreenHeight ); //#else g.setClip(0, 0, this.screenWidth, this.originalScreenHeight ); //#endif //#ifndef polish.skipTicker if (this.ticker != null) { this.ticker.paint( 0, this.screenHeight, 0, this.screenWidth, g ); } //#endif // paint border: if (this.border != null) { this.border.paint(0, 0, this.screenWidth, this.screenHeight, g); } // paint menu in full-screen mode: //#ifdef tmp.menuFullScreen //#ifdef tmp.useExternalMenuBar this.menuBar.paint(0, this.screenHeight, 0, this.screenWidth, g); if (this.menuBar.isOpened) { this.paintScrollIndicator = this.menuBar.paintScrollIndicator; this.paintScrollIndicatorUp = this.menuBar.canScrollUpwards; this.paintScrollIndicatorDown = this.menuBar.canScrollDownwards; } //#else if (this.menuOpened) { tHeight -= this.infoHeight; int menuHeight = this.menuContainer.getItemHeight(this.menuMaxWidth, this.menuMaxWidth); int y = this.originalScreenHeight - menuHeight; if (y < tHeight) { this.paintScrollIndicator = true; this.paintScrollIndicatorUp = (this.menuContainer.yOffset != 0); this.paintScrollIndicatorDown = (this.menuContainer.yOffset + menuHeight > this.originalScreenHeight - tHeight); y = tHeight; this.menuContainer.setVerticalDimensions(y, this.originalScreenHeight); } else { this.paintScrollIndicator = false; } g.setClip(0, tHeight, this.screenWidth, this.originalScreenHeight - tHeight ); this.menuContainer.paint(0, y, 0, this.menuMaxWidth, g); g.setClip(0, 0, this.screenWidth, this.fullScreenHeight ); } if (this.showTitleOrMenu || this.menuOpened) { // clear menu-bar: if (this.menuBarColor != Item.TRANSPARENT) { g.setColor( this.menuBarColor ); g.fillRect(0, this.originalScreenHeight, this.screenWidth, this.menuBarHeight ); } if (this.menuContainer != null && this.menuContainer.size() > 0) { String menuText = null; if (this.menuOpened) { //#ifdef polish.command.select:defined //#= menuText = "${polish.command.select}"; //#else menuText = "Select"; //#endif } else { if (this.menuSingleLeftCommand != null) { menuText = this.menuSingleLeftCommand.getLabel(); } else { //#ifdef polish.command.options:defined //#= menuText = "${polish.command.options}"; //#else menuText = "Options"; //#endif } } //#ifdef polish.hasPointerEvents this.menuLeftCommandX = 2 + this.menuFont.stringWidth( menuText ); //#endif g.setColor( this.menuFontColor ); g.setFont( this.menuFont ); //#ifdef polish.Menu.MarginLeft:defined //#= int menuX = ${polish.Menu.MarginLeft}; //#else int menuX = 2; //#endif //#ifdef polish.Menu.MarginTop:defined //#= g.drawString(menuText, menuX, this.originalScreenHeight + ${polish.Menu.MarginTop}, Graphics.TOP | Graphics.LEFT ); //#else g.drawString(menuText, menuX, this.originalScreenHeight + 2, Graphics.TOP | Graphics.LEFT ); //#endif if ( this.menuOpened ) { // draw cancel string: //#ifdef polish.command.cancel:defined //#= menuText = "${polish.command.cancel}"; //#else menuText = "Cancel"; //#endif //#ifdef polish.Menu.MarginRight:defined //#= menuX = ${polish.Menu.MarginRight}; //#elifdef polish.Menu.MarginLeft:defined menuX = 2; //#endif //#ifdef polish.Menu.MarginTop:defined //#= g.drawString(menuText, this.screenWidth - menuX, this.originalScreenHeight + ${polish.Menu.MarginTop}, Graphics.TOP | Graphics.RIGHT ); //#else g.drawString(menuText, this.screenWidth - menuX, this.originalScreenHeight + 2, Graphics.TOP | Graphics.RIGHT ); //#endif //#ifdef polish.hasPointerEvents this.menuRightCommandX = this.screenWidth - 2 - this.menuFont.stringWidth( menuText ); //#endif } } if (this.menuSingleRightCommand != null && !this.menuOpened) { g.setColor( this.menuFontColor ); g.setFont( this.menuFont ); String menuText = this.menuSingleRightCommand.getLabel(); //#ifdef polish.Menu.MarginRight:defined //#= int menuX = ${polish.Menu.MarginRight}; //#else int menuX = 2; //#endif //#ifdef polish.Menu.MarginTop:defined //#= g.drawString(menuText, this.screenWidth - menuX, this.originalScreenHeight + ${polish.Menu.MarginTop}, Graphics.TOP | Graphics.RIGHT ); //#else g.drawString(menuText, this.screenWidth - menuX, this.originalScreenHeight + 2, Graphics.TOP | Graphics.RIGHT ); //#endif //#ifdef polish.hasPointerEvents this.menuRightCommandX = this.screenWidth - menuX - this.menuFont.stringWidth( menuText ); //#endif } } // if this.showTitleOrMenu || this.menuOpened //#endif //#endif // paint scroll-indicator in the middle of the menu: if (this.paintScrollIndicator) { g.setColor( this.scrollIndicatorColor ); int x = this.scrollIndicatorX; int y = this.scrollIndicatorY; int width = this.scrollIndicatorWidth; int halfWidth = width / 2; if (this.paintScrollIndicatorUp) { //#ifdef polish.midp2 g.fillTriangle(x, y + halfWidth-1, x + width, y + halfWidth-1, x + halfWidth, y ); //#else g.drawLine( x, y + halfWidth-1, x + width, y + halfWidth-1 ); g.drawLine( x, y + halfWidth-1, x + halfWidth, y ); g.drawLine( x + width, y + halfWidth-1, x + halfWidth, y ); //#endif } if (this.paintScrollIndicatorDown) { //#ifdef polish.midp2 g.fillTriangle(x, y + halfWidth+1, x + width, y + halfWidth+1, x + halfWidth, y + width ); //#else g.drawLine( x, y + halfWidth+1, x + width, y + halfWidth+1 ); g.drawLine( x, y + halfWidth+1, x + halfWidth, y + width ); g.drawLine(x + width, y + halfWidth+1, x + halfWidth, y + width ); //#endif } } //#ifdef polish.css.foreground-image if (this.foregroundImage != null) { g.drawImage( this.foregroundImage, this.foregroundX, this.foregroundY, Graphics.TOP | Graphics.LEFT ); } //#endif //#ifdef polish.debug.error } catch (RuntimeException e) { //#debug error Debug.debug( "unable to paint screen", e ); } //#endif //#if polish.useFullScreen && polish.api.nokia-ui this.lastPaintTime = System.currentTimeMillis(); this.isInPaintMethod = false; //#endif }
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/2d2ee1a8b2dd39fe6c831aded2568d110a1ee975/Screen.java/buggy/j2me/source/src/de/enough/polish/ui/Screen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 12574, 12, 17558, 314, 13, 288, 202, 202, 759, 7, 430, 1853, 18, 2854, 7956, 382, 12699, 1082, 202, 430, 16051, 2211, 18, 291, 382, 5080, 7956, 2309, 13, 288, 9506, 202, 9565, 18, 542, 5080, 7956, 2309, 12, 638, 11272, 9506, 202, 2211, 18, 291, 382, 5080, 7956, 2309, 273, 638, 31, 9506, 202, 759, 7, 430, 536, 2952, 1468, 18, 5080, 12971, 2686, 30, 2178, 6862, 202, 759, 7, 33, 333, 18, 2854, 7956, 2686, 273, 3531, 3915, 1468, 18, 5080, 12971, 2686, 20451, 9506, 202, 759, 7, 12107, 6862, 202, 2211, 18, 2854, 7956, 2686, 273, 9263, 5621, 9506, 202, 759, 7, 409, 430, 9506, 202, 2211, 18, 9252, 2686, 273, 333, 18, 2854, 7956, 2686, 300, 333, 18, 5414, 5190, 2686, 31, 9506, 202, 2211, 18, 8830, 7956, 2686, 273, 333, 18, 9252, 2686, 31, 9506, 202, 2211, 18, 12033, 13140, 61, 273, 333, 18, 9252, 2686, 300, 333, 18, 12033, 13140, 2384, 300, 404, 31, 1082, 202, 97, 202, 202, 759, 7, 409, 430, 6862, 202, 759, 7, 430, 2952, 1468, 18, 1202, 5080, 7956, 597, 2952, 1468, 18, 2425, 18, 82, 31179, 17, 4881, 1875, 202, 2211, 18, 291, 382, 12699, 1305, 273, 638, 31, 202, 202, 759, 7, 409, 430, 202, 202, 759, 7, 430, 536, 2952, 1468, 18, 4148, 18, 1636, 202, 202, 698, 288, 202, 202, 759, 7, 409, 430, 1082, 202, 759, 12574, 5412, 30, 1082, 202, 430, 261, 2211, 18, 9342, 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, 12574, 12, 17558, 314, 13, 288, 202, 202, 759, 7, 430, 1853, 18, 2854, 7956, 382, 12699, 1082, 202, 430, 16051, 2211, 18, 291, 382, 5080, 7956, 2309, 13, 288, 9506, 202, 9565, 18, 542, 5080, 7956, 2309, 12, 638, 11272, 9506, 202, 2211, 18, 291, 382, 5080, 7956, 2309, 273, 638, 31, 9506, 202, 759, 7, 430, 536, 2952, 1468, 18, 5080, 12971, 2686, 30, 2178, 6862, 202, 759, 7, 33, 333, 18, 2854, 7956, 2686, 273, 3531, 3915, 1468, 18, 5080, 12971, 2686, 20451, 9506, 202, 759, 7, 12107, 6862, 202, 2211, 18, 2854, 7956, 2686, 273, 9263, 5621, 9506, 202, 759, 7, 409, 430, 9506, 202, 2211, 18, 9252, 2686, 273, 2 ]
action.setToolTipText(WorkbenchMessages.getString("Workbench.move.ToolTip"));
action.setToolTipText(WorkbenchMessages.getString("Workbench.moveToolTip"));
public IWorkbenchAction create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } RetargetAction action = new RetargetAction(getId(), WorkbenchMessages.getString("Workbench.move")); //$NON-NLS-1$ //$NON-NLS-2$ action.setToolTipText(WorkbenchMessages.getString("Workbench.move.ToolTip")); //$NON-NLS-1$ window.getPartService().addPartListener(action); action.setActionDefinitionId("org.eclipse.ui.edit.move"); //$NON-NLS-1$ return action; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/041bd5e759c0bce2ddee002925167c673a5abed9/ActionFactory.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/ActionFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 467, 2421, 22144, 1803, 752, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 1082, 202, 430, 261, 5668, 422, 446, 13, 288, 9506, 202, 12849, 394, 2754, 5621, 1082, 202, 97, 1082, 202, 7055, 826, 1803, 1301, 273, 394, 17100, 826, 1803, 12, 26321, 9334, 4147, 22144, 5058, 18, 588, 780, 2932, 2421, 22144, 18, 8501, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 225, 4329, 3993, 17, 5106, 17, 22, 8, 1082, 202, 1128, 18, 542, 29250, 1528, 12, 2421, 22144, 5058, 18, 588, 780, 2932, 2421, 22144, 18, 8501, 29250, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 5668, 18, 588, 1988, 1179, 7675, 1289, 1988, 2223, 12, 1128, 1769, 1082, 202, 1128, 18, 542, 1803, 21768, 2932, 3341, 18, 20416, 18, 4881, 18, 4619, 18, 8501, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2463, 1301, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 467, 2421, 22144, 1803, 752, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 1082, 202, 430, 261, 5668, 422, 446, 13, 288, 9506, 202, 12849, 394, 2754, 5621, 1082, 202, 97, 1082, 202, 7055, 826, 1803, 1301, 273, 394, 17100, 826, 1803, 12, 26321, 9334, 4147, 22144, 5058, 18, 588, 780, 2932, 2421, 22144, 18, 8501, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 225, 4329, 3993, 17, 5106, 17, 22, 8, 1082, 202, 1128, 18, 542, 29250, 1528, 12, 2421, 22144, 5058, 18, 588, 780, 2932, 2421, 22144, 18, 8501, 29250, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 5668, 18, 588, 1988, 1179, 7675, 1289, 1988, 2223, 12, 1128, 1769, 2 ]
if (idx == tabFolder.getItemCount()) idx = 0;
public void addPart(IPresentablePart newPart, IPresentablePart position) { int idx = indexOf(position); if (idx == tabFolder.getItemCount()) idx = 0; createPartTab(newPart, idx); setControlSize(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/1f3843fe8162789eb313a39b251f51eaa5163737/BasicStackPresentation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/BasicStackPresentation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 1988, 12, 2579, 1581, 429, 1988, 394, 1988, 16, 2971, 1581, 429, 1988, 1754, 13, 288, 202, 202, 474, 2067, 273, 3133, 12, 3276, 1769, 202, 202, 430, 261, 3465, 422, 3246, 3899, 18, 588, 30687, 10756, 1082, 202, 3465, 273, 374, 31, 202, 202, 2640, 1988, 5661, 12, 2704, 1988, 16, 2067, 1769, 9506, 202, 542, 3367, 1225, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 1988, 12, 2579, 1581, 429, 1988, 394, 1988, 16, 2971, 1581, 429, 1988, 1754, 13, 288, 202, 202, 474, 2067, 273, 3133, 12, 3276, 1769, 202, 202, 430, 261, 3465, 422, 3246, 3899, 18, 588, 30687, 10756, 1082, 202, 3465, 273, 374, 31, 202, 202, 2640, 1988, 5661, 12, 2704, 1988, 16, 2067, 1769, 9506, 202, 542, 3367, 1225, 5621, 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 ]
album.addItemListener( this );
album.addActionListener( this );
private void jbInitEvents() { fetch.addActionListener( this ); upload.addActionListener( this ); browse.addActionListener( this ); newGallery.addActionListener( this ); gallery.addActionListener( this ); username.addCaretListener( this ); password.addCaretListener( this ); jMenuItemQuit.addActionListener( this ); jMenuItemAbout.addActionListener( this ); jCheckBoxMenuThumbnails.addItemListener( this ); jCheckBoxMenuPreview.addItemListener( this ); jCheckBoxMenuPath.addItemListener( this ); album.addItemListener( this ); picturesList.addListSelectionListener( this ); addWindowListener( new java.awt.event.WindowAdapter() { public void windowClosing( java.awt.event.WindowEvent e ) { thisWindowClosing( e ); } } ); previewFrame.addWindowListener( new java.awt.event.WindowAdapter() { public void windowClosing( java.awt.event.WindowEvent e ) { jCheckBoxMenuPreview.setState( false ); } } ); picturesList.addKeyListener( new KeyAdapter() { public void keyPressed( KeyEvent e ) { jListKeyPressed( e ); } } ); }
9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/479482292b2f0fd02e996191faf0ed69b7fe8f02/MainFrame.java/buggy/com/gallery/GalleryRemote/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 20515, 2570, 3783, 1435, 288, 202, 202, 5754, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 6327, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 25731, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 2704, 18511, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 21454, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 5053, 18, 1289, 39, 20731, 2223, 12, 333, 11272, 202, 202, 3664, 18, 1289, 39, 20731, 2223, 12, 333, 11272, 202, 202, 78, 12958, 25365, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 78, 12958, 24813, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 78, 19174, 4599, 16270, 87, 18, 1289, 1180, 2223, 12, 333, 11272, 202, 202, 78, 19174, 4599, 11124, 18, 1289, 1180, 2223, 12, 333, 11272, 202, 202, 78, 19174, 4599, 743, 18, 1289, 1180, 2223, 12, 333, 11272, 202, 202, 25090, 18, 1289, 1180, 2223, 12, 333, 11272, 202, 202, 84, 28636, 682, 18, 1289, 682, 6233, 2223, 12, 333, 11272, 202, 202, 1289, 3829, 2223, 12, 1082, 202, 2704, 2252, 18, 2219, 88, 18, 2575, 18, 3829, 4216, 1435, 1082, 202, 95, 9506, 202, 482, 918, 2742, 15745, 12, 2252, 18, 2219, 88, 18, 2575, 18, 3829, 1133, 425, 262, 288, 6862, 202, 2211, 3829, 15745, 12, 425, 11272, 9506, 202, 97, 1082, 202, 97, 11272, 202, 202, 12102, 3219, 18, 1289, 3829, 2223, 12, 1082, 202, 2704, 2252, 18, 2219, 88, 18, 2575, 18, 3829, 4216, 1435, 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, 20515, 2570, 3783, 1435, 288, 202, 202, 5754, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 6327, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 25731, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 2704, 18511, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 21454, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 5053, 18, 1289, 39, 20731, 2223, 12, 333, 11272, 202, 202, 3664, 18, 1289, 39, 20731, 2223, 12, 333, 11272, 202, 202, 78, 12958, 25365, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 78, 12958, 24813, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 78, 19174, 4599, 16270, 87, 18, 1289, 1180, 2223, 12, 333, 2 ]
if(Plugin.class.isAssignableFrom(clazz))
int modifiers = clazz.getModifiers(); if(Plugin.class.isAssignableFrom(clazz) && !Modifier.isInterface(modifiers) && !Modifier.isAbstract(modifiers))
public void loadPluginClass(String name) throws Exception { Class clazz = loadClass(MiscUtilities.fileToClass(name),false); if(Plugin.class.isAssignableFrom(clazz)) { Plugin plugin = (Plugin)clazz.newInstance(); System.out.println(" -- loaded plugin: " + clazz.getName()); jEdit.addPlugin(plugin); } }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/3b3f81d530ce47fcca4f76a4b2d4c70674ca7967/JARClassLoader.java/buggy/org/gjt/sp/jedit/JARClassLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1262, 3773, 797, 12, 780, 508, 13, 202, 202, 15069, 1185, 202, 95, 202, 202, 797, 4003, 273, 16038, 12, 11729, 71, 11864, 18, 768, 774, 797, 12, 529, 3631, 5743, 1769, 202, 202, 430, 12, 3773, 18, 1106, 18, 291, 7961, 1265, 12, 830, 3638, 3719, 202, 202, 95, 1082, 202, 3773, 1909, 273, 261, 3773, 13, 830, 3638, 18, 2704, 1442, 5621, 1082, 202, 3163, 18, 659, 18, 8222, 2932, 1493, 4203, 1909, 30, 315, 397, 9506, 202, 830, 3638, 18, 17994, 10663, 1082, 202, 78, 4666, 18, 1289, 3773, 12, 4094, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1262, 3773, 797, 12, 780, 508, 13, 202, 202, 15069, 1185, 202, 95, 202, 202, 797, 4003, 273, 16038, 12, 11729, 71, 11864, 18, 768, 774, 797, 12, 529, 3631, 5743, 1769, 202, 202, 430, 12, 3773, 18, 1106, 18, 291, 7961, 1265, 12, 830, 3638, 3719, 202, 202, 95, 1082, 202, 3773, 1909, 273, 261, 3773, 13, 830, 3638, 18, 2704, 1442, 5621, 1082, 202, 3163, 18, 659, 18, 8222, 2932, 1493, 4203, 1909, 30, 315, 397, 9506, 202, 830, 3638, 18, 17994, 10663, 1082, 202, 78, 4666, 18, 1289, 3773, 12, 4094, 1769, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
m_root.setComplete(true);
public void endDocument() throws org.xml.sax.SAXException { // System.out.println("endDocument: "+m_id); m_root.setComplete(true); m_eventsCount = m_maxEventsToNotify; notifyWaiters(); Object synchObj = m_root; synchronized (synchObj) { m_sourceTreeHandler.endDocument(); popShouldStripWhitespace(); if (!m_useMultiThreading && (null != m_transformer) && m_shouldTransformAtEnd) { try { m_transformer.transformNode(m_root); } catch(TransformerException te) { // te.printStackTrace(); throw new org.xml.sax.SAXException(te); } } } m_eventsCount = m_maxEventsToNotify; notifyWaiters(); // printTree(m_root); if (m_useMultiThreading && (null != m_transformer)) { Thread transformThread = m_transformer.getTransformThread(); if (null != transformThread) { try { // This should wait until the transformThread is considered not alive. transformThread.join(); m_transformer.setTransformThread(null); } catch (InterruptedException ie){} } } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/7bcd4fe17487a265fc35c75d972eba8342f496b8/SourceTreeHandler.java/clean/src/org/apache/xalan/stree/SourceTreeHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 679, 2519, 1435, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 225, 288, 565, 368, 2332, 18, 659, 18, 8222, 2932, 409, 2519, 30, 13773, 81, 67, 350, 1769, 377, 312, 67, 5989, 1380, 273, 312, 67, 1896, 3783, 774, 9168, 31, 565, 5066, 5480, 414, 5621, 565, 1033, 272, 2515, 2675, 273, 312, 67, 3085, 31, 565, 3852, 261, 87, 2515, 2675, 13, 565, 288, 1377, 312, 67, 3168, 2471, 1503, 18, 409, 2519, 5621, 1377, 1843, 14309, 16632, 9431, 5621, 1377, 309, 16051, 81, 67, 1202, 5002, 3830, 310, 597, 261, 2011, 480, 312, 67, 21523, 13, 597, 312, 67, 13139, 4059, 861, 1638, 13, 1377, 288, 3639, 775, 3639, 288, 1850, 312, 67, 21523, 18, 6547, 907, 12, 81, 67, 3085, 1769, 3639, 289, 3639, 1044, 12, 8319, 503, 6489, 13, 3639, 288, 1850, 368, 6489, 18, 1188, 6332, 5621, 1850, 604, 394, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 12, 736, 1769, 3639, 289, 1377, 289, 565, 289, 565, 312, 67, 5989, 1380, 273, 312, 67, 1896, 3783, 774, 9168, 31, 565, 5066, 5480, 414, 5621, 565, 368, 1172, 2471, 12, 81, 67, 3085, 1769, 565, 309, 261, 81, 67, 1202, 5002, 3830, 310, 597, 261, 2011, 480, 312, 67, 21523, 3719, 565, 288, 1377, 4884, 2510, 3830, 273, 312, 67, 21523, 18, 588, 4059, 3830, 5621, 1377, 309, 261, 2011, 480, 2510, 3830, 13, 1377, 288, 3639, 775, 3639, 288, 1850, 368, 1220, 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, 679, 2519, 1435, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 225, 288, 565, 368, 2332, 18, 659, 18, 8222, 2932, 409, 2519, 30, 13773, 81, 67, 350, 1769, 377, 312, 67, 5989, 1380, 273, 312, 67, 1896, 3783, 774, 9168, 31, 565, 5066, 5480, 414, 5621, 565, 1033, 272, 2515, 2675, 273, 312, 67, 3085, 31, 565, 3852, 261, 87, 2515, 2675, 13, 565, 288, 1377, 312, 67, 3168, 2471, 1503, 18, 409, 2519, 5621, 1377, 1843, 14309, 16632, 9431, 5621, 1377, 309, 16051, 81, 67, 1202, 5002, 3830, 310, 597, 261, 2011, 480, 312, 67, 21523, 13, 597, 312, 67, 13139, 4059, 861, 1638, 13, 1377, 288, 3639, 775, 3639, 288, 2 ]
p.sysex[patchNameStart+(i*2)]=namebytes[i];
((Patch)p).sysex[patchNameStart+(i*2)]=namebytes[i];
public void setPatchName(Patch p, String name) { if (patchNameSize==0) {JOptionPane.showMessageDialog(null, "The Driver for this patch does not support Patch Name Editing.","Error", JOptionPane.ERROR_MESSAGE); return; } if (name.length()<patchNameSize) name=name+" "; byte [] namebytes = new byte [64]; try { namebytes=name.getBytes("US-ASCII"); for (int i=0;i<patchNameSize;i++) p.sysex[patchNameStart+(i*2)]=namebytes[i]; } catch (UnsupportedEncodingException ex) {return;} calculateChecksum(p); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b6e99a36d447b749f8ec1622f6d2477fcd586fcb/EmuProteusMPSSingleDriver.java/clean/JSynthLib/synthdrivers/EmuProteusMPS/EmuProteusMPSSingleDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 7332, 461, 12, 7332, 293, 16, 514, 508, 13, 225, 288, 565, 309, 261, 2272, 461, 1225, 631, 20, 13, 4202, 288, 46, 1895, 8485, 18, 4500, 1079, 6353, 12, 2011, 16, 3639, 315, 1986, 9396, 364, 333, 4729, 1552, 486, 2865, 12042, 1770, 15328, 310, 1199, 10837, 668, 3113, 804, 1895, 8485, 18, 3589, 67, 8723, 1769, 540, 327, 31, 4202, 289, 565, 309, 261, 529, 18, 2469, 1435, 32, 2272, 461, 1225, 13, 508, 33, 529, 9078, 5411, 13636, 565, 1160, 5378, 508, 3890, 273, 394, 1160, 306, 1105, 15533, 565, 775, 288, 540, 508, 3890, 33, 529, 18, 588, 2160, 2932, 3378, 17, 13756, 8863, 540, 364, 261, 474, 277, 33, 20, 31, 77, 32, 2272, 461, 1225, 31, 77, 27245, 6647, 14015, 7332, 13, 84, 2934, 9009, 20909, 63, 2272, 461, 1685, 15, 12, 77, 14, 22, 25887, 33, 529, 3890, 63, 77, 15533, 3639, 289, 1044, 261, 8544, 13836, 431, 13, 288, 2463, 31, 97, 565, 4604, 10723, 12, 84, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 7332, 461, 12, 7332, 293, 16, 514, 508, 13, 225, 288, 565, 309, 261, 2272, 461, 1225, 631, 20, 13, 4202, 288, 46, 1895, 8485, 18, 4500, 1079, 6353, 12, 2011, 16, 3639, 315, 1986, 9396, 364, 333, 4729, 1552, 486, 2865, 12042, 1770, 15328, 310, 1199, 10837, 668, 3113, 804, 1895, 8485, 18, 3589, 67, 8723, 1769, 540, 327, 31, 4202, 289, 565, 309, 261, 529, 18, 2469, 1435, 32, 2272, 461, 1225, 13, 508, 33, 529, 9078, 5411, 13636, 565, 1160, 5378, 508, 3890, 273, 394, 1160, 306, 1105, 15533, 565, 775, 288, 540, 508, 3890, 33, 529, 18, 588, 2160, 2932, 3378, 17, 13756, 8863, 540, 364, 261, 474, 277, 33, 20, 2 ]
mLogger.info("getPost() Called =========[ SUPPORTED ]====="); mLogger.info(" PostId: " + postid); mLogger.info(" UserId: " + userid);
mLogger.debug("getPost() Called =========[ SUPPORTED ]====="); mLogger.debug(" PostId: " + postid); mLogger.debug(" UserId: " + userid);
public Object getPost(String postid, String userid, String password) throws Exception { mLogger.info("getPost() Called =========[ SUPPORTED ]====="); mLogger.info(" PostId: " + postid); mLogger.info(" UserId: " + userid); Roller roller = RollerFactory.getRoller(); WeblogManager weblogMgr = roller.getWeblogManager(); WeblogEntryData entry = weblogMgr.retrieveWeblogEntry(postid); validate(entry.getWebsite().getHandle(), userid,password); try { return createPostStruct(entry, userid); } catch (Exception e) { String msg = "ERROR in MetaWeblogAPIHandler.getPost"; mLogger.error(msg,e); throw new XmlRpcException(UNKNOWN_EXCEPTION, msg); } }
46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/8303161b2baeb9ed6394bbe61608f373b4ca9fbf/MetaWeblogAPIHandler.java/clean/src/org/roller/presentation/xmlrpc/MetaWeblogAPIHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 14150, 12, 780, 1603, 350, 16, 514, 6709, 16, 514, 2201, 13, 5411, 1216, 1185, 288, 7734, 312, 3328, 18, 1376, 2932, 588, 3349, 1435, 11782, 422, 894, 12275, 63, 29556, 308, 894, 1546, 1769, 3639, 312, 3328, 18, 1376, 2932, 377, 5616, 548, 30, 315, 397, 1603, 350, 1769, 3639, 312, 3328, 18, 1376, 2932, 377, 2177, 548, 30, 315, 397, 6709, 1769, 7734, 11714, 749, 10643, 749, 273, 11714, 749, 1733, 18, 588, 4984, 749, 5621, 3639, 2999, 1330, 1318, 3311, 1330, 9455, 273, 10643, 749, 18, 588, 4079, 1330, 1318, 5621, 3639, 2999, 1330, 1622, 751, 1241, 273, 3311, 1330, 9455, 18, 17466, 4079, 1330, 1622, 12, 2767, 350, 1769, 7734, 1954, 12, 4099, 18, 588, 19186, 7675, 588, 3259, 9334, 6709, 16, 3664, 1769, 7734, 775, 288, 5411, 327, 752, 3349, 3823, 12, 4099, 16, 6709, 1769, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 514, 1234, 273, 315, 3589, 316, 6565, 4079, 1330, 2557, 1503, 18, 588, 3349, 14432, 5411, 312, 3328, 18, 1636, 12, 3576, 16, 73, 1769, 5411, 604, 394, 5714, 11647, 503, 12, 14737, 67, 12658, 16, 1234, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 14150, 12, 780, 1603, 350, 16, 514, 6709, 16, 514, 2201, 13, 5411, 1216, 1185, 288, 7734, 312, 3328, 18, 1376, 2932, 588, 3349, 1435, 11782, 422, 894, 12275, 63, 29556, 308, 894, 1546, 1769, 3639, 312, 3328, 18, 1376, 2932, 377, 5616, 548, 30, 315, 397, 1603, 350, 1769, 3639, 312, 3328, 18, 1376, 2932, 377, 2177, 548, 30, 315, 397, 6709, 1769, 7734, 11714, 749, 10643, 749, 273, 11714, 749, 1733, 18, 588, 4984, 749, 5621, 3639, 2999, 1330, 1318, 3311, 1330, 9455, 273, 10643, 749, 18, 588, 4079, 1330, 1318, 5621, 3639, 2999, 1330, 1622, 751, 1241, 273, 3311, 1330, 9455, 18, 17466, 4079, 1330, 1622, 12, 2767, 350, 1769, 7734, 1954, 12, 2 ]
public void dimInsert(Row row, String table, boolean newentry, String keyfield, boolean autoinc, Value technicalKey, String versionfield, Value val_version, String datefrom, Value val_datfrom, String dateto, Value val_datto, String fieldlookup[], int fieldnrs[], String key[], String keylookup[], int keynrs[] ) throws KettleDatabaseException { int i; if (prepStatementInsert==null && prepStatementUpdate==null) // first time: construct prepared statement { /* Construct the SQL statement... * * INSERT INTO * d_customer(keyfield, versionfield, datefrom, dateto, key[], fieldlookup[]) * VALUES (val_key ,val_version , val_datfrom, val_datto, keynrs[], fieldnrs[]) * ; */ String sql="INSERT INTO "+table+"( "; if (!autoinc) sql+=keyfield+", "; // NO AUTOINCREMENT else if (databaseMeta.getDatabaseType()==DatabaseMeta.TYPE_DATABASE_INFORMIX) sql+="0, "; // placeholder on informix! sql+=versionfield+", "+datefrom+", "+dateto; for (i=0;i<keylookup.length;i++) { sql+=", "+keylookup[i]; } for (i=0;i<fieldlookup.length;i++) { sql+=", "+fieldlookup[i]; } sql+=") VALUES("; if (!autoinc) sql+="?, "; sql+="?, ?, ?"; for (i=0;i<keynrs.length;i++) { sql+=", ?"; } for (i=0;i<fieldnrs.length;i++) { sql+=", ?"; } sql+=" )"; try { if (keyfield==null) { log.logDetailed(toString(), "SQL w/ return keys=["+sql+"]"); prepStatementInsert=connection.prepareStatement(databaseMeta.stripCR(sql), Statement.RETURN_GENERATED_KEYS); } else { log.logDetailed(toString(), "SQL=["+sql+"]"); prepStatementInsert=connection.prepareStatement(databaseMeta.stripCR(sql)); } //pstmt=con.prepareStatement(sql, new String[] { "klant_tk" } ); } catch(SQLException ex) { throw new KettleDatabaseException("Unable to prepare dimension insert :"+Const.CR+sql, ex); } /* * UPDATE d_customer * SET dateto = val_datnow * WHERE keylookup[] = keynrs[] * AND versionfield = val_version - 1 * ; */ String sql_upd="UPDATE "+table+Const.CR+"SET "+dateto+" = ?"+Const.CR; sql_upd+="WHERE "; for (i=0;i<keylookup.length;i++) { if (i>0) sql_upd+="AND "; sql_upd+=keylookup[i]+" = ?"+Const.CR; } sql_upd+="AND "+versionfield+" = ? "; try { log.logDetailed(toString(), "Preparing update: "+Const.CR+sql_upd+Const.CR); prepStatementUpdate=connection.prepareStatement(databaseMeta.stripCR(sql_upd)); } catch(SQLException ex) { throw new KettleDatabaseException("Unable to prepare dimension update :"+Const.CR+sql_upd, ex); } } Row rins=new Row(); if (!autoinc) rins.addValue(technicalKey); if (!newentry) { Value val_new_version = new Value(val_version); val_new_version.setValue( val_new_version.getNumber()+1 ); // determine next version rins.addValue(val_new_version); } else { rins.addValue(val_version); } rins.addValue(val_datfrom); rins.addValue(val_datto); for (i=0;i<keynrs.length;i++) { rins.addValue( row.getValue(keynrs[i])); } for (i=0;i<fieldnrs.length;i++) { Value val = row.getValue(fieldnrs[i]); rins.addValue( val ); } log.logDebug(toString(), "rins, size="+rins.size()+", values="+rins.toString()); // INSERT NEW VALUE! setValues(rins, prepStatementInsert); insertRow(prepStatementInsert); log.logDebug(toString(), "Row inserted!"); if (keyfield==null) { try { Row keys = getGeneratedKeys(prepStatementInsert); if (keys.size()>0) { technicalKey.setValue(keys.getValue(0).getInteger()); } else { throw new KettleDatabaseException("Unable to retrieve value of auto-generated technical key : no value found!"); } } catch(Exception e) { throw new KettleDatabaseException("Unable to retrieve value of auto-generated technical key : unexpected error: ", e); } } if (!newentry) // we have to update the previous version in the dimension! { /* * UPDATE d_customer * SET dateto = val_datfrom * WHERE keylookup[] = keynrs[] * AND versionfield = val_version - 1 * ; */ Row rupd = new Row(); rupd.addValue(val_datfrom); for (i=0;i<keynrs.length;i++) { rupd.addValue( row.getValue(keynrs[i])); } rupd.addValue(val_version); log.logRowlevel(toString(), "UPDATE using rupd="+rupd.toString()); // UPDATE VALUES setValues(rupd, prepStatementUpdate); // set values for update log.logDebug(toString(), "Values set for update ("+rupd.size()+")"); insertRow(prepStatementUpdate); // do the actual update log.logDebug(toString(), "Row updated!"); } }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/5f2d3456db02ff640ffd7d8a5ed4f458e0989468/Database.java/clean/kettle/src/be/ibridge/kettle/core/database/Database.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6459, 3509, 4600, 12, 1999, 492, 16, 202, 780, 2121, 16, 202, 6494, 2704, 4099, 16, 202, 780, 856, 1518, 16, 202, 6494, 5854, 885, 71, 16, 202, 58, 700, 278, 22528, 1706, 653, 16, 202, 780, 1589, 1518, 16, 202, 620, 1125, 67, 1589, 16, 202, 780, 712, 2080, 16, 202, 620, 1125, 67, 3404, 2080, 16, 202, 780, 3404, 11453, 16, 202, 620, 1125, 67, 3404, 869, 16, 202, 780, 1518, 8664, 63, 6487, 202, 474, 1518, 82, 5453, 63, 6487, 202, 780, 856, 63, 6487, 202, 780, 856, 8664, 63, 6487, 202, 474, 856, 82, 5453, 8526, 6862, 1082, 202, 13, 202, 202, 15069, 47, 278, 5929, 4254, 503, 202, 95, 202, 202, 474, 77, 31, 9506, 202, 430, 12, 19109, 3406, 4600, 631, 2011, 10, 10, 19109, 3406, 1891, 631, 2011, 13, 759, 3645, 957, 30, 10062, 9366, 72, 11516, 202, 202, 95, 1082, 202, 20308, 7249, 5787, 3997, 11516, 2777, 1082, 202, 14, 1082, 202, 14, 11356, 3217, 51, 1082, 202, 14, 72, 67, 10061, 12, 856, 1518, 16, 1589, 1518, 16, 712, 2080, 16, 3404, 11453, 16, 856, 63, 6487, 1518, 8664, 63, 5717, 1082, 202, 14, 16386, 12, 1125, 67, 856, 16, 1125, 67, 1589, 16, 1125, 67, 3404, 2080, 16, 1125, 67, 3404, 869, 16, 856, 82, 5453, 63, 6487, 1518, 82, 5453, 63, 5717, 1082, 202, 14, 31, 1082, 202, 5549, 25083, 202, 780, 4669, 1546, 11356, 3217, 51, 6, 15, 2121, 9078, 2932, 31, 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, 6459, 3509, 4600, 12, 1999, 492, 16, 202, 780, 2121, 16, 202, 6494, 2704, 4099, 16, 202, 780, 856, 1518, 16, 202, 6494, 5854, 885, 71, 16, 202, 58, 700, 278, 22528, 1706, 653, 16, 202, 780, 1589, 1518, 16, 202, 620, 1125, 67, 1589, 16, 202, 780, 712, 2080, 16, 202, 620, 1125, 67, 3404, 2080, 16, 202, 780, 3404, 11453, 16, 202, 620, 1125, 67, 3404, 869, 16, 202, 780, 1518, 8664, 63, 6487, 202, 474, 1518, 82, 5453, 63, 6487, 202, 780, 856, 63, 6487, 202, 780, 856, 8664, 63, 6487, 202, 474, 856, 82, 5453, 8526, 6862, 1082, 202, 13, 202, 202, 15069, 47, 278, 5929, 4254, 503, 202, 95, 202, 202, 2 ]
for ( Iterator i = dependencies.iterator(); i.hasNext(); )
for ( Iterator i = plugins.iterator(); i.hasNext(); )
private void transformPomToReleaseVersionPom( MavenProject project ) throws MojoExecutionException { if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ) ) { if ( !isSnapshot( project.getVersion() ) ) { throw new MojoExecutionException( "The project " + project.getGroupId() + ":" + project.getArtifactId() + " isn't a snapshot (" + project.getVersion() + ")." ); } Model model = project.getOriginalModel(); //Rewrite parent version if ( model.getParent() != null ) { Artifact parentArtifact = project.getParentArtifact(); if ( isSnapshot( parentArtifact.getBaseVersion() ) ) { String version = resolveVersion( parentArtifact, "parent", project ); model.getParent().setVersion( version ); } } //Rewrite dependencies section List dependencies = model.getDependencies(); if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); // Avoid in dep mgmt if ( dep.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( dep.getGroupId(), dep.getArtifactId() ); if ( resolvedVersion != null ) { dep.setVersion( resolvedVersion ); } } } } DependencyManagement dependencyManagement = model.getDependencyManagement(); dependencies = dependencyManagement != null ? dependencyManagement.getDependencies() : null; if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); if ( dep.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( dep.getGroupId(), dep.getArtifactId() ); if ( resolvedVersion != null ) { dep.setVersion( resolvedVersion ); } } } } Build build = model.getBuild(); if ( build != null ) { //Rewrite plugins section List plugins = build.getPlugins(); if ( plugins != null ) { for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); // Avoid in plugin mgmt if ( plugin.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } } PluginManagement pluginManagement = build.getPluginManagement(); plugins = pluginManagement != null ? pluginManagement.getPlugins() : null; if ( plugins != null ) { for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); if ( plugin.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } } //Rewrite extensions section List extensions = build.getExtensions(); for ( Iterator i = extensions.iterator(); i.hasNext(); ) { Extension ext = (Extension) i.next(); String resolvedVersion = getVersionResolver().getResolvedVersion( ext.getGroupId(), ext.getArtifactId() ); if ( resolvedVersion != null ) { ext.setVersion( resolvedVersion ); } } } Reporting reporting = model.getReporting(); if ( reporting != null ) { //Rewrite reports section List reports = reporting.getPlugins(); for ( Iterator i = reports.iterator(); i.hasNext(); ) { ReportPlugin plugin = (ReportPlugin) i.next(); String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } Writer writer = null; try { writer = new FileWriter( project.getFile() ); project.writeOriginalModel( writer ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot write released version of pom to: " + project.getFile(), e ); } finally { IOUtil.close( writer ); } try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } }
47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/22f9a34107d27782bab8e88b50b54708304b73dc/PrepareReleaseMojo.java/buggy/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2510, 52, 362, 774, 7391, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135, 18, 4258, 67, 52, 1872, 67, 16596, 7473, 25773, 67, 7473, 67, 30762, 262, 262, 3639, 288, 5411, 309, 261, 401, 291, 4568, 12, 1984, 18, 588, 1444, 1435, 262, 262, 5411, 288, 7734, 604, 394, 18780, 12, 315, 1986, 1984, 315, 397, 1984, 18, 588, 8722, 1435, 397, 6153, 397, 10792, 1984, 18, 588, 7581, 548, 1435, 397, 315, 5177, 1404, 279, 4439, 7566, 397, 1984, 18, 588, 1444, 1435, 397, 9369, 1199, 11272, 5411, 289, 5411, 3164, 938, 273, 1984, 18, 588, 8176, 1488, 5621, 5411, 368, 19618, 982, 1177, 5411, 309, 261, 938, 18, 588, 3054, 1435, 480, 446, 262, 5411, 288, 7734, 14022, 982, 7581, 273, 1984, 18, 588, 3054, 7581, 5621, 7734, 309, 261, 353, 4568, 12, 982, 7581, 18, 588, 2171, 1444, 1435, 262, 262, 7734, 288, 10792, 514, 1177, 273, 2245, 1444, 12, 982, 7581, 16, 315, 2938, 3113, 1984, 11272, 10792, 938, 18, 588, 3054, 7675, 542, 1444, 12, 1177, 11272, 7734, 289, 5411, 289, 5411, 368, 19618, 5030, 2442, 5411, 987, 5030, 273, 938, 18, 588, 8053, 5621, 5411, 309, 261, 5030, 480, 446, 262, 5411, 288, 7734, 364, 261, 4498, 277, 273, 4799, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 7734, 288, 10792, 11993, 5993, 273, 261, 7787, 13, 277, 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, 2510, 52, 362, 774, 7391, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135, 18, 4258, 67, 52, 1872, 67, 16596, 7473, 25773, 67, 7473, 67, 30762, 262, 262, 3639, 288, 5411, 309, 261, 401, 291, 4568, 12, 1984, 18, 588, 1444, 1435, 262, 262, 5411, 288, 7734, 604, 394, 18780, 12, 315, 1986, 1984, 315, 397, 1984, 18, 588, 8722, 1435, 397, 6153, 397, 10792, 1984, 18, 588, 7581, 548, 1435, 397, 315, 5177, 1404, 279, 4439, 7566, 397, 1984, 18, 588, 1444, 1435, 397, 9369, 1199, 11272, 5411, 289, 5411, 3164, 938, 273, 1984, 18, 588, 2 ]
OPT_BasicBlock origBlock = getOrigBlock (inst);
OPT_BasicBlock _origBlock = getOrigBlock (inst);
void move(OPT_Instruction inst, OPT_BasicBlock to) { OPT_BasicBlock origBlock = getOrigBlock (inst); OPT_Instruction cand = null; /* find a position within bestBlock */ if (dominator.dominates (origBlock.getNumber(), to.getNumber())) { // moved down, so insert in from OPT_Instruction last = null; OPT_InstructionEnumeration e = to.forwardInstrEnumerator(); while (e.hasMoreElements()) { cand = e.next(); if (DEBUG) VM.sysWrite(cand.toString() + "\n"); if (( !Label.conforms (cand)) // skip labels, phis, and yieldpoints && !cand.isYieldPoint() && !Phi.conforms(cand)) break; last = cand; } cand = last; } else { // moved up, so insert at end of block OPT_InstructionEnumeration e = to.reverseInstrEnumerator(); while (e.hasMoreElements()) { cand = e.next(); if (DEBUG) VM.sysWrite(cand.toString() + "\n"); if (( !BBend.conforms(cand)) && !cand.isBranch() // skip branches and newly placed insts && !relocated.contains (cand)) break; } if (DEBUG) VM.sysWrite ("Adding to relocated: "+inst+"\n"); relocated.add (inst); } if (DEBUG && moved.add(inst.operator)) VM.sysWrite("m(" + (ir.IRStage == ir.LIR ? "l" : "h") + ") " + inst.operator + "\n"); if (verbose) { VM.sysWrite(ir.IRStage == ir.LIR ? "%" : "#"); VM.sysWrite(" moving " + inst + " from " + origBlock + " to " + to + "\n" + "behind " + cand + "\n"); } inst.remove(); cand.insertAfter(inst); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/cb4d5807180265c43e09e55a868066d05d56274a/OPT_LICM.java/clean/rvm/src/vm/compilers/optimizing/optimizations/global/ssa/codePlacement/OPT_LICM.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 3635, 12, 15620, 67, 11983, 1804, 16, 16456, 67, 8252, 1768, 358, 13, 288, 565, 16456, 67, 8252, 1768, 389, 4949, 1768, 273, 336, 4741, 1768, 261, 8591, 1769, 565, 16456, 67, 11983, 15350, 273, 446, 31, 3639, 1748, 1104, 279, 1754, 3470, 3796, 1768, 1195, 565, 309, 261, 9859, 4240, 18, 9859, 4174, 261, 4949, 1768, 18, 588, 1854, 9334, 358, 18, 588, 1854, 1435, 3719, 288, 1377, 368, 10456, 2588, 16, 1427, 2243, 316, 628, 1377, 16456, 67, 11983, 1142, 273, 446, 31, 1377, 16456, 67, 11983, 21847, 425, 273, 358, 18, 11565, 382, 701, 3572, 7385, 5621, 1377, 1323, 261, 73, 18, 5332, 7417, 3471, 10756, 288, 3639, 15350, 273, 425, 18, 4285, 5621, 3639, 309, 261, 9394, 13, 8251, 18, 9499, 3067, 12, 71, 464, 18, 10492, 1435, 397, 1548, 82, 8863, 3639, 309, 14015, 225, 401, 2224, 18, 591, 9741, 261, 71, 464, 3719, 368, 2488, 3249, 16, 1844, 291, 16, 471, 2824, 4139, 5411, 597, 401, 71, 464, 18, 291, 16348, 2148, 1435, 5411, 597, 401, 31905, 18, 591, 9741, 12, 71, 464, 3719, 898, 31, 540, 1142, 273, 15350, 31, 1377, 289, 1377, 15350, 273, 1142, 31, 565, 289, 469, 288, 1377, 368, 10456, 731, 16, 1427, 2243, 622, 679, 434, 1203, 1377, 16456, 67, 11983, 21847, 425, 273, 358, 18, 9845, 382, 701, 3572, 7385, 5621, 1377, 1323, 261, 73, 18, 5332, 7417, 3471, 10756, 288, 3639, 15350, 273, 425, 18, 4285, 5621, 3639, 309, 261, 9394, 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, 918, 3635, 12, 15620, 67, 11983, 1804, 16, 16456, 67, 8252, 1768, 358, 13, 288, 565, 16456, 67, 8252, 1768, 389, 4949, 1768, 273, 336, 4741, 1768, 261, 8591, 1769, 565, 16456, 67, 11983, 15350, 273, 446, 31, 3639, 1748, 1104, 279, 1754, 3470, 3796, 1768, 1195, 565, 309, 261, 9859, 4240, 18, 9859, 4174, 261, 4949, 1768, 18, 588, 1854, 9334, 358, 18, 588, 1854, 1435, 3719, 288, 1377, 368, 10456, 2588, 16, 1427, 2243, 316, 628, 1377, 16456, 67, 11983, 1142, 273, 446, 31, 1377, 16456, 67, 11983, 21847, 425, 273, 358, 18, 11565, 382, 701, 3572, 7385, 5621, 1377, 1323, 261, 73, 18, 5332, 7417, 3471, 10756, 288, 3639, 15350, 273, 425, 18, 4285, 5621, 2 ]
{
{
public Container getContainer() { return textComponent; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4039, 9272, 1435, 202, 202, 95, 1377, 327, 977, 1841, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4039, 9272, 1435, 202, 202, 95, 1377, 327, 977, 1841, 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, -100, -100, -100, -100, -100, -100, -100, -100 ]
addTaskAction = IDEActionFactory.ADD_TASK.create(getWindow());
addTaskAction = IDEActionFactory.ADD_TASK.create(window);
protected void makeActions(IWorkbenchWindow window) { // @issue should obtain from ConfigurationItemFactory statusLineItem = new StatusLineContributionItem("ModeContributionItem"); //$NON-NLS-1$ newWizardAction = ActionFactory.NEW.create(getWindow()); register(newWizardAction); newWizardDropDownAction = IDEActionFactory.NEW_WIZARD_DROP_DOWN .create(getWindow()); register(newWizardDropDownAction); importResourcesAction = ActionFactory.IMPORT.create(getWindow()); register(importResourcesAction); exportResourcesAction = ActionFactory.EXPORT.create(getWindow()); register(exportResourcesAction); buildAllAction = IDEActionFactory.BUILD.create(getWindow()); register(buildAllAction); cleanAction = IDEActionFactory.BUILD_CLEAN.create(getWindow()); register(cleanAction); toggleAutoBuildAction = IDEActionFactory.BUILD_AUTOMATICALLY .create(getWindow()); register(toggleAutoBuildAction); saveAction = ActionFactory.SAVE.create(getWindow()); register(saveAction); saveAsAction = ActionFactory.SAVE_AS.create(getWindow()); register(saveAsAction); saveAllAction = ActionFactory.SAVE_ALL.create(getWindow()); register(saveAllAction); undoAction = ActionFactory.UNDO.create(getWindow()); register(undoAction); redoAction = ActionFactory.REDO.create(getWindow()); register(redoAction); cutAction = ActionFactory.CUT.create(getWindow()); register(cutAction); copyAction = ActionFactory.COPY.create(getWindow()); register(copyAction); pasteAction = ActionFactory.PASTE.create(getWindow()); register(pasteAction); printAction = ActionFactory.PRINT.create(getWindow()); register(printAction); selectAllAction = ActionFactory.SELECT_ALL.create(getWindow()); register(selectAllAction); findAction = ActionFactory.FIND.create(getWindow()); register(findAction); closeAction = ActionFactory.CLOSE.create(getWindow()); register(closeAction); closeAllAction = ActionFactory.CLOSE_ALL.create(getWindow()); register(closeAllAction); closeAllSavedAction = ActionFactory.CLOSE_ALL_SAVED.create(getWindow()); register(closeAllSavedAction); helpContentsAction = ActionFactory.HELP_CONTENTS.create(getWindow()); register(helpContentsAction); aboutAction = ActionFactory.ABOUT.create(getWindow()); aboutAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_OBJS_DEFAULT_PROD)); register(aboutAction); openPreferencesAction = ActionFactory.PREFERENCES.create(getWindow()); register(openPreferencesAction); addBookmarkAction = IDEActionFactory.BOOKMARK.create(getWindow()); register(addBookmarkAction); addTaskAction = IDEActionFactory.ADD_TASK.create(getWindow()); register(addTaskAction); deleteAction = ActionFactory.DELETE.create(getWindow()); register(deleteAction); AboutInfo[] infos = IDEWorkbenchPlugin.getDefault().getFeatureInfos(); // See if a welcome page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getWelcomePageURL() != null) { quickStartAction = IDEActionFactory.QUICK_START .create(getWindow()); register(quickStartAction); break; } } // See if a tips and tricks page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getTipsAndTricksHref() != null) { tipsAndTricksAction = IDEActionFactory.TIPS_AND_TRICKS .create(getWindow()); register(tipsAndTricksAction); break; } } // Actions for invisible accelerators showViewMenuAction = ActionFactory.SHOW_VIEW_MENU.create(getWindow()); register(showViewMenuAction); showPartPaneMenuAction = ActionFactory.SHOW_PART_PANE_MENU .create(getWindow()); register(showPartPaneMenuAction); nextEditorAction = ActionFactory.NEXT_EDITOR.create(getWindow()); register(nextEditorAction); prevEditorAction = ActionFactory.PREVIOUS_EDITOR.create(getWindow()); register(prevEditorAction); ActionFactory.linkCycleActionPair(nextEditorAction, prevEditorAction); nextPartAction = ActionFactory.NEXT_PART.create(getWindow()); register(nextPartAction); prevPartAction = ActionFactory.PREVIOUS_PART.create(getWindow()); register(prevPartAction); ActionFactory.linkCycleActionPair(nextPartAction, prevPartAction); nextPerspectiveAction = ActionFactory.NEXT_PERSPECTIVE .create(getWindow()); register(nextPerspectiveAction); prevPerspectiveAction = ActionFactory.PREVIOUS_PERSPECTIVE .create(getWindow()); register(prevPerspectiveAction); ActionFactory.linkCycleActionPair(nextPerspectiveAction, prevPerspectiveAction); activateEditorAction = ActionFactory.ACTIVATE_EDITOR .create(getWindow()); register(activateEditorAction); maximizePartAction = ActionFactory.MAXIMIZE.create(getWindow()); register(maximizePartAction); minimizePartAction = ActionFactory.MINIMIZE.create(getWindow()); register(minimizePartAction); workbenchEditorsAction = ActionFactory.SHOW_OPEN_EDITORS .create(getWindow()); register(workbenchEditorsAction); workbookEditorsAction = ActionFactory.SHOW_WORKBOOK_EDITORS .create(getWindow()); register(workbookEditorsAction); hideShowEditorAction = ActionFactory.SHOW_EDITOR.create(getWindow()); register(hideShowEditorAction); savePerspectiveAction = ActionFactory.SAVE_PERSPECTIVE .create(getWindow()); register(savePerspectiveAction); editActionSetAction = ActionFactory.EDIT_ACTION_SETS .create(getWindow()); register(editActionSetAction); lockToolBarAction = ActionFactory.LOCK_TOOL_BAR.create(getWindow()); register(lockToolBarAction); resetPerspectiveAction = ActionFactory.RESET_PERSPECTIVE .create(getWindow()); register(resetPerspectiveAction); closePerspAction = ActionFactory.CLOSE_PERSPECTIVE.create(getWindow()); register(closePerspAction); closeAllPerspsAction = ActionFactory.CLOSE_ALL_PERSPECTIVES .create(getWindow()); register(closeAllPerspsAction); forwardHistoryAction = ActionFactory.FORWARD_HISTORY .create(getWindow()); register(forwardHistoryAction); backwardHistoryAction = ActionFactory.BACKWARD_HISTORY .create(getWindow()); register(backwardHistoryAction); revertAction = ActionFactory.REVERT.create(getWindow()); register(revertAction); refreshAction = ActionFactory.REFRESH.create(getWindow()); register(refreshAction); propertiesAction = ActionFactory.PROPERTIES.create(getWindow()); register(propertiesAction); quitAction = ActionFactory.QUIT.create(getWindow()); register(quitAction); moveAction = ActionFactory.MOVE.create(getWindow()); register(moveAction); renameAction = ActionFactory.RENAME.create(getWindow()); register(renameAction); goIntoAction = ActionFactory.GO_INTO.create(getWindow()); register(goIntoAction); backAction = ActionFactory.BACK.create(getWindow()); register(backAction); forwardAction = ActionFactory.FORWARD.create(getWindow()); register(forwardAction); upAction = ActionFactory.UP.create(getWindow()); register(upAction); nextAction = ActionFactory.NEXT.create(getWindow()); nextAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_NEXT_NAV)); register(nextAction); previousAction = ActionFactory.PREVIOUS.create(getWindow()); previousAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_PREVIOUS_NAV)); register(previousAction); buildProjectAction = IDEActionFactory.BUILD_PROJECT.create(getWindow()); register(buildProjectAction); openProjectAction = IDEActionFactory.OPEN_PROJECT.create(getWindow()); register(openProjectAction); closeProjectAction = IDEActionFactory.CLOSE_PROJECT.create(getWindow()); register(closeProjectAction); openWorkspaceAction = IDEActionFactory.OPEN_WORKSPACE .create(getWindow()); register(openWorkspaceAction); projectPropertyDialogAction = IDEActionFactory.OPEN_PROJECT_PROPERTIES .create(getWindow()); register(projectPropertyDialogAction); if (getWindow().getWorkbench().getIntroManager().hasIntro()) { introAction = ActionFactory.INTRO.create(window); register(introAction); } String showInQuickMenuId = "org.eclipse.ui.navigate.showInQuickMenu"; //$NON-NLS-1$ showInQuickMenu = new QuickMenuAction(showInQuickMenuId) { protected void fillMenu(IMenuManager menu) { menu.add(ContributionItemFactory.VIEWS_SHOW_IN .create(getWindow())); } }; register(showInQuickMenu); final String newQuickMenuId = "org.eclipse.ui.file.newQuickMenu"; //$NON-NLS-1$ newQuickMenu = new QuickMenuAction(newQuickMenuId) { protected void fillMenu(IMenuManager menu) { menu.add(new NewWizardMenu(getWindow())); } }; register(newQuickMenu); pinEditorContributionItem = ContributionItemFactory.PIN_EDITOR .create(getWindow()); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1bde0643dd187b23bf57cd332e0997f6c371aaa1/WorkbenchActionBuilder.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1221, 6100, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 3639, 368, 632, 13882, 1410, 7161, 628, 4659, 1180, 1733, 3639, 1267, 30038, 273, 394, 2685, 1670, 442, 4027, 1180, 2932, 2309, 442, 4027, 1180, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 394, 27130, 1803, 273, 4382, 1733, 18, 12917, 18, 2640, 12, 588, 3829, 10663, 3639, 1744, 12, 2704, 27130, 1803, 1769, 3639, 394, 27130, 7544, 4164, 1803, 273, 1599, 41, 1803, 1733, 18, 12917, 67, 59, 6867, 8085, 67, 18768, 67, 12711, 7734, 263, 2640, 12, 588, 3829, 10663, 3639, 1744, 12, 2704, 27130, 7544, 4164, 1803, 1769, 3639, 1930, 3805, 1803, 273, 4382, 1733, 18, 20445, 18, 2640, 12, 588, 3829, 10663, 3639, 1744, 12, 5666, 3805, 1803, 1769, 3639, 3359, 3805, 1803, 273, 4382, 1733, 18, 31275, 18, 2640, 12, 588, 3829, 10663, 3639, 1744, 12, 6530, 3805, 1803, 1769, 3639, 1361, 1595, 1803, 273, 1599, 41, 1803, 1733, 18, 20215, 18, 2640, 12, 588, 3829, 10663, 3639, 1744, 12, 3510, 1595, 1803, 1769, 3639, 2721, 1803, 273, 1599, 41, 1803, 1733, 18, 20215, 67, 39, 10439, 18, 2640, 12, 588, 3829, 10663, 3639, 1744, 12, 6200, 1803, 1769, 3639, 10486, 4965, 3116, 1803, 273, 1599, 41, 1803, 1733, 18, 20215, 67, 37, 1693, 1872, 11781, 4685, 61, 7734, 263, 2640, 12, 588, 3829, 10663, 3639, 1744, 12, 14401, 4965, 3116, 1803, 1769, 3639, 1923, 1803, 273, 4382, 1733, 18, 25242, 18, 2640, 12, 588, 3829, 10663, 3639, 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, 1221, 6100, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 3639, 368, 632, 13882, 1410, 7161, 628, 4659, 1180, 1733, 3639, 1267, 30038, 273, 394, 2685, 1670, 442, 4027, 1180, 2932, 2309, 442, 4027, 1180, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 394, 27130, 1803, 273, 4382, 1733, 18, 12917, 18, 2640, 12, 588, 3829, 10663, 3639, 1744, 12, 2704, 27130, 1803, 1769, 3639, 394, 27130, 7544, 4164, 1803, 273, 1599, 41, 1803, 1733, 18, 12917, 67, 59, 6867, 8085, 67, 18768, 67, 12711, 7734, 263, 2640, 12, 588, 3829, 10663, 3639, 1744, 12, 2704, 27130, 7544, 4164, 1803, 1769, 3639, 1930, 3805, 1803, 273, 4382, 1733, 18, 20445, 18, 2640, 12, 588, 3829, 2 ]
udpService = new Service( name, TransportType.DATAGRAM, port ); tcpService = new Service( name, TransportType.SOCKET, port ); registry.bind( udpService, handler ); registry.bind( tcpService, handler );
acceptor.bind( new InetSocketAddress( port ), handler );
public DnsServer(DnsConfiguration config, ServiceRegistry registry, RecordStore store) { this.config = config; this.registry = registry; this.store = store; String name = config.getName(); int port = config.getPort(); try { handler = new DnsProtocolHandler( config, this.store ); udpService = new Service( name, TransportType.DATAGRAM, port ); tcpService = new Service( name, TransportType.SOCKET, port ); registry.bind( udpService, handler ); registry.bind( tcpService, handler ); log.debug( "{} listening on port {}", name, new Integer( port ) ); } catch ( IOException ioe ) { log.error( ioe.getMessage(), ioe ); } }
10677 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10677/05ad6b2f1dfc0a667fdae4160212ce3cf4f8151a/DnsServer.java/buggy/protocol-dns/src/main/java/org/apache/directory/server/dns/DnsServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 28456, 2081, 12, 18600, 1750, 642, 16, 1956, 4243, 4023, 16, 5059, 2257, 1707, 13, 565, 288, 3639, 333, 18, 1425, 273, 642, 31, 3639, 333, 18, 9893, 273, 4023, 31, 3639, 333, 18, 2233, 273, 1707, 31, 3639, 514, 508, 273, 642, 18, 17994, 5621, 3639, 509, 1756, 273, 642, 18, 588, 2617, 5621, 3639, 775, 3639, 288, 5411, 1838, 273, 394, 28456, 5752, 1503, 12, 642, 16, 333, 18, 2233, 11272, 5411, 16673, 1179, 273, 394, 1956, 12, 508, 16, 9514, 559, 18, 11102, 1781, 54, 2192, 16, 1756, 11272, 5411, 9658, 1179, 273, 394, 1956, 12, 508, 16, 9514, 559, 18, 25699, 16, 1756, 11272, 5411, 4023, 18, 4376, 12, 16673, 1179, 16, 1838, 11272, 5411, 4023, 18, 4376, 12, 9658, 1179, 16, 1838, 11272, 5411, 613, 18, 4148, 12, 7421, 13895, 603, 1756, 3728, 16, 508, 16, 394, 2144, 12, 1756, 262, 11272, 3639, 289, 3639, 1044, 261, 1860, 10847, 262, 3639, 288, 5411, 613, 18, 1636, 12, 10847, 18, 24906, 9334, 10847, 11272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 28456, 2081, 12, 18600, 1750, 642, 16, 1956, 4243, 4023, 16, 5059, 2257, 1707, 13, 565, 288, 3639, 333, 18, 1425, 273, 642, 31, 3639, 333, 18, 9893, 273, 4023, 31, 3639, 333, 18, 2233, 273, 1707, 31, 3639, 514, 508, 273, 642, 18, 17994, 5621, 3639, 509, 1756, 273, 642, 18, 588, 2617, 5621, 3639, 775, 3639, 288, 5411, 1838, 273, 394, 28456, 5752, 1503, 12, 642, 16, 333, 18, 2233, 11272, 5411, 16673, 1179, 273, 394, 1956, 12, 508, 16, 9514, 559, 18, 11102, 1781, 54, 2192, 16, 1756, 11272, 5411, 9658, 1179, 273, 394, 1956, 12, 508, 16, 9514, 559, 18, 25699, 16, 1756, 11272, 5411, 4023, 18, 4376, 12, 16673, 1179, 16, 1838, 2 ]
String global, boolean flat);
String global, boolean flat);
public Object newRegExp(Context cx, Scriptable scope, String source, String global, boolean flat);
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/fb69c14ae4e860dfb5b5df7d866e510acca73ed9/RegExpProxy.java/buggy/js/rhino/src/org/mozilla/javascript/RegExpProxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 394, 13673, 12, 1042, 9494, 16, 22780, 2146, 16, 514, 1084, 16, 4766, 2398, 514, 2552, 16, 1250, 3569, 1769, 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, 1033, 394, 13673, 12, 1042, 9494, 16, 22780, 2146, 16, 514, 1084, 16, 4766, 2398, 514, 2552, 16, 1250, 3569, 1769, 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 ]
return TableSorter.DESCENDING;
return TableComparator.DESCENDING;
public int getDefaultDirection() { return TableSorter.DESCENDING; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/b34bac03ab70048a4b238ebb6ad2383d1ae284b3/FieldPriority.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldPriority.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 4829, 8212, 1435, 288, 202, 202, 2463, 3555, 24952, 18, 10964, 12280, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 509, 4829, 8212, 1435, 288, 202, 202, 2463, 3555, 24952, 18, 10964, 12280, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 enc = serverInfo.getProperty(ENCODING, "UTF-8");
String enc = serverInfo.getProperty(Configuration.ENCODING, "UTF-8");
public static void main(String args[]) { Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { Shutdown.shutdown(); } }); // load server defaults configuration try { serverInfo.load(AppServer.class.getResourceAsStream("/conf/snipsnap.conf")); } catch (IOException e) { // ignore } System.setProperty(VERSION, serverInfo.getProperty(VERSION)); // output version and copyright information System.out.println("SnipSnap " + serverInfo.getProperty(VERSION)); BufferedReader copyrightReader = new BufferedReader(new InputStreamReader(AppServer.class.getResourceAsStream("/conf/copyright.txt"))); String line = null; try { while ((line = copyrightReader.readLine()) != null) { System.out.println(line); } } catch (IOException e) { // ignore io exception here ... } // load additional local configuration try { serverInfo.load(new FileInputStream("conf/snipsnap.conf")); } catch (IOException e) { // ignore local server configuration not found } serverInfo = parseArguments(args, serverInfo); // set encoding of the JVM String enc = serverInfo.getProperty(ENCODING, "UTF-8"); System.setProperty("file.encoding", enc); // start jetty server and install web application try { jettyServer = new Server(getResource("/conf/jetty.conf", "./conf/jetty.conf")); jettyServer.start(); } catch (IOException e) { System.err.println("WARNING: admin server configuration not found: " + e); } catch (MultiException e) { Iterator exceptions = e.getExceptions().iterator(); while (exceptions.hasNext()) { Exception ex = (Exception) exceptions.next(); ex.printStackTrace(); System.out.println("ERROR: can't start server: " + ex.getMessage()); } System.exit(-1); } // now, after loading all possible services we will look for applications and start them int errors = ApplicationLoader.loadApplications(serverInfo.getProperty(WEBAPP_ROOT)); if (errors == 0 && ApplicationLoader.getApplicationCount() == 0) { System.out.println("ATTENTION: Server is still unconfigured!"); System.out.println("ATTENTION: Point your browser to the following address:"); HttpListener listener = jettyServer.getListeners()[0]; String host = listener.getHost(); if (InetAddrPort.__0_0_0_0.equals(host)) { try { host = InetAddress.getLocalHost().getHostName(); } catch (UnknownHostException e) { host = System.getProperty("host", "localhost"); } } System.out.println("ATTENTION: http://" + host + ":" + listener.getPort() + "/install"); } else { System.out.println(ApplicationLoader.getApplicationCount() + " applications loaded and running (" + errors + " errors)."); } }
6853 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6853/bd335d59f4f784dcaffcc5850ea73efff2300495/AppServer.java/buggy/src/org/snipsnap/server/AppServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 833, 63, 5717, 288, 565, 2509, 18, 588, 5576, 7675, 1289, 10961, 5394, 12, 2704, 4884, 1435, 288, 1377, 1071, 918, 1086, 1435, 288, 3639, 17640, 18, 15132, 5621, 1377, 289, 565, 15549, 565, 368, 1262, 1438, 3467, 1664, 565, 775, 288, 1377, 1438, 966, 18, 945, 12, 3371, 2081, 18, 1106, 18, 588, 1420, 17052, 2932, 19, 3923, 19, 8134, 7146, 2322, 18, 3923, 7923, 1769, 565, 289, 1044, 261, 14106, 425, 13, 288, 1377, 368, 2305, 565, 289, 565, 2332, 18, 542, 1396, 12, 5757, 16, 1438, 966, 18, 588, 1396, 12, 5757, 10019, 565, 368, 876, 1177, 471, 22245, 1779, 565, 2332, 18, 659, 18, 8222, 2932, 10461, 625, 24063, 315, 397, 1438, 966, 18, 588, 1396, 12, 5757, 10019, 565, 10633, 22245, 2514, 273, 394, 10633, 12, 2704, 15322, 12, 3371, 2081, 18, 1106, 18, 588, 1420, 17052, 2932, 19, 3923, 19, 29187, 18, 5830, 6, 3719, 1769, 565, 514, 980, 273, 446, 31, 565, 775, 288, 1377, 1323, 14015, 1369, 273, 22245, 2514, 18, 896, 1670, 10756, 480, 446, 13, 288, 3639, 2332, 18, 659, 18, 8222, 12, 1369, 1769, 1377, 289, 565, 289, 1044, 261, 14106, 425, 13, 288, 1377, 368, 2305, 2527, 1520, 2674, 1372, 565, 289, 565, 368, 1262, 3312, 1191, 1664, 565, 775, 288, 1377, 1438, 966, 18, 945, 12, 2704, 11907, 2932, 3923, 19, 8134, 7146, 2322, 18, 3923, 7923, 1769, 565, 289, 1044, 261, 14106, 425, 13, 288, 1377, 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, 760, 918, 2774, 12, 780, 833, 63, 5717, 288, 565, 2509, 18, 588, 5576, 7675, 1289, 10961, 5394, 12, 2704, 4884, 1435, 288, 1377, 1071, 918, 1086, 1435, 288, 3639, 17640, 18, 15132, 5621, 1377, 289, 565, 15549, 565, 368, 1262, 1438, 3467, 1664, 565, 775, 288, 1377, 1438, 966, 18, 945, 12, 3371, 2081, 18, 1106, 18, 588, 1420, 17052, 2932, 19, 3923, 19, 8134, 7146, 2322, 18, 3923, 7923, 1769, 565, 289, 1044, 261, 14106, 425, 13, 288, 1377, 368, 2305, 565, 289, 565, 2332, 18, 542, 1396, 12, 5757, 16, 1438, 966, 18, 588, 1396, 12, 5757, 10019, 565, 368, 876, 1177, 471, 22245, 1779, 565, 2332, 18, 659, 18, 8222, 2932, 10461, 625, 2 ]
} else if (getFormConfiguration().captchaFieldIsOnCheckPage() && ACTION_CONFIRMED.equals(getRequest().getParameter(PARAM_FORMACTION)) && !validationCorrect) {
} else if (getFormConfiguration().captchaFieldIsOnCheckPage() && ACTION_CONFIRMED.equals(getRequest().getParameter(PARAM_FORMACTION)) && !validate()) {
public boolean showCheck() { boolean result = false; boolean validationCorrect = validate(); if (getFormConfiguration().getShowCheck() && ACTION_SUBMIT.equals(getRequest().getParameter(PARAM_FORMACTION))) { result = true; } else if (getFormConfiguration().captchaFieldIsOnCheckPage() && ACTION_CONFIRMED.equals(getRequest().getParameter(PARAM_FORMACTION)) && !validationCorrect) { result = true; } return result; }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/f0f12c4913fd8751ca68b32444bbf5f77c976de9/CmsFormHandler.java/buggy/src-modules/org/opencms/frontend/templateone/form/CmsFormHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 2405, 1564, 1435, 288, 7734, 1250, 563, 273, 629, 31, 3639, 1250, 3379, 16147, 273, 1954, 5621, 7734, 309, 261, 588, 1204, 1750, 7675, 588, 5706, 1564, 1435, 597, 11385, 67, 8362, 6068, 18, 14963, 12, 588, 691, 7675, 588, 1662, 12, 8388, 67, 4983, 12249, 20349, 288, 5411, 563, 273, 638, 31, 3639, 289, 469, 309, 261, 588, 1204, 1750, 7675, 27267, 974, 2520, 1398, 1564, 1964, 1435, 597, 11385, 67, 2248, 1653, 54, 25773, 18, 14963, 12, 588, 691, 7675, 588, 1662, 12, 8388, 67, 4983, 12249, 3719, 597, 401, 5662, 10756, 288, 5411, 563, 273, 638, 31, 3639, 289, 7734, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1250, 2405, 1564, 1435, 288, 7734, 1250, 563, 273, 629, 31, 3639, 1250, 3379, 16147, 273, 1954, 5621, 7734, 309, 261, 588, 1204, 1750, 7675, 588, 5706, 1564, 1435, 597, 11385, 67, 8362, 6068, 18, 14963, 12, 588, 691, 7675, 588, 1662, 12, 8388, 67, 4983, 12249, 20349, 288, 5411, 563, 273, 638, 31, 3639, 289, 469, 309, 261, 588, 1204, 1750, 7675, 27267, 974, 2520, 1398, 1564, 1964, 1435, 597, 11385, 67, 2248, 1653, 54, 25773, 18, 14963, 12, 588, 691, 7675, 588, 1662, 12, 8388, 67, 4983, 12249, 3719, 597, 401, 5662, 10756, 288, 5411, 563, 273, 638, 31, 3639, 289, 7734, 327, 563, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
int defaultVal = extend+restrict+list+union+substitute;
int defaultVal = extend+restrict+substitute;
private int parseBlockSet (String blockString) throws Exception { if( blockString == null) return fBlockDefault; else if ( blockString.equals (SchemaSymbols.ATTVAL_POUNDALL) ) { return SchemaSymbols.SUBSTITUTION+SchemaSymbols.EXTENSION+SchemaSymbols.LIST+SchemaSymbols.RESTRICTION+SchemaSymbols.UNION; } else { int extend = 0; int restrict = 0; int substitute = 0; int list = 0; int union = 0; StringTokenizer t = new StringTokenizer (blockString, " "); while (t.hasMoreTokens()) { String token = t.nextToken (); if ( token.equals (SchemaSymbols.ATTVAL_SUBSTITUTION) ) { if ( substitute == 0 ) { substitute = SchemaSymbols.SUBSTITUTION; } else { // REVISIT: Localize reportGenericSchemaError ( "The value 'substitution' already in the list" ); } } else if ( token.equals (SchemaSymbols.ATTVAL_EXTENSION) ) { if ( extend == 0 ) { extend = SchemaSymbols.EXTENSION; } else { // REVISIT: Localize reportGenericSchemaError ( "The value 'extension' is already in the list" ); } } else if ( token.equals (SchemaSymbols.ELT_LIST) ) { if ( list == 0 ) { list = SchemaSymbols.LIST; } else { // REVISIT: Localize reportGenericSchemaError ( "The value 'list' is already present in the list" ); } } else if ( token.equals (SchemaSymbols.ELT_UNION) ) { if ( union == 0 ) { union = SchemaSymbols.UNION; } else { // REVISIT: Localize reportGenericSchemaError ( "The value 'union' is already present in the list" ); } } else if ( token.equals (SchemaSymbols.ATTVAL_RESTRICTION) ) { if ( restrict == 0 ) { restrict = SchemaSymbols.RESTRICTION; } else { // REVISIT: Localize reportGenericSchemaError ( "The value 'restriction' is already in the list" ); } } else { // REVISIT: Localize reportGenericSchemaError ( "Invalid block value (" + blockString + ")" ); } } int defaultVal = extend+restrict+list+union+substitute; return (defaultVal == 0 ? fBlockDefault : defaultVal); } }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/23ae44560d6bd8800691f13371bc64acd5f995ae/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1109, 1768, 694, 261, 780, 1203, 780, 13, 225, 1216, 1185, 565, 288, 5411, 309, 12, 1203, 780, 422, 446, 13, 1171, 327, 284, 1768, 1868, 31, 5411, 469, 309, 261, 1203, 780, 18, 14963, 261, 3078, 14821, 18, 789, 56, 2669, 67, 2419, 5240, 4685, 13, 262, 288, 10792, 327, 4611, 14821, 18, 8362, 882, 1285, 13269, 15, 3078, 14821, 18, 12796, 15, 3078, 14821, 18, 7085, 15, 3078, 14821, 18, 12030, 2259, 3106, 15, 3078, 14821, 18, 2124, 1146, 31, 5411, 289, 469, 288, 10792, 509, 2133, 273, 374, 31, 10792, 509, 13108, 273, 374, 31, 10792, 509, 14811, 273, 374, 31, 10792, 509, 666, 273, 374, 31, 10792, 509, 7812, 273, 374, 31, 10792, 16370, 268, 273, 394, 16370, 261, 2629, 780, 16, 315, 315, 1769, 10792, 1323, 261, 88, 18, 5332, 7417, 5157, 10756, 288, 18701, 514, 1147, 273, 268, 18, 4285, 1345, 261, 1769, 18701, 309, 261, 1147, 18, 14963, 261, 3078, 14821, 18, 789, 56, 2669, 67, 8362, 882, 1285, 13269, 13, 262, 288, 4766, 565, 309, 261, 14811, 422, 374, 262, 288, 4766, 5411, 14811, 273, 4611, 14821, 18, 8362, 882, 1285, 13269, 31, 4766, 565, 289, 469, 288, 4766, 3639, 368, 2438, 26780, 1285, 30, 3566, 554, 4766, 5411, 2605, 7014, 3078, 668, 261, 315, 1986, 460, 296, 1717, 14278, 11, 1818, 316, 326, 666, 6, 11272, 4766, 565, 289, 18701, 289, 469, 309, 261, 1147, 18, 14963, 261, 3078, 14821, 18, 789, 56, 2669, 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, 377, 3238, 509, 1109, 1768, 694, 261, 780, 1203, 780, 13, 225, 1216, 1185, 565, 288, 5411, 309, 12, 1203, 780, 422, 446, 13, 1171, 327, 284, 1768, 1868, 31, 5411, 469, 309, 261, 1203, 780, 18, 14963, 261, 3078, 14821, 18, 789, 56, 2669, 67, 2419, 5240, 4685, 13, 262, 288, 10792, 327, 4611, 14821, 18, 8362, 882, 1285, 13269, 15, 3078, 14821, 18, 12796, 15, 3078, 14821, 18, 7085, 15, 3078, 14821, 18, 12030, 2259, 3106, 15, 3078, 14821, 18, 2124, 1146, 31, 5411, 289, 469, 288, 10792, 509, 2133, 273, 374, 31, 10792, 509, 13108, 273, 374, 31, 10792, 509, 14811, 273, 374, 31, 10792, 509, 666, 273, 374, 31, 10792, 509, 7812, 273, 374, 31, 2 ]
ProjectUtil.createNewProject(null);
try { BrowserUtil.launchBrowser(KEYMAP_URL); } catch (IllegalThreadStateException ex) { }
protected void onPress(InputEvent e) { ProjectUtil.createNewProject(null); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/057c1fc4eca73d8d659037771b3e5b73e8b81dd3/WelcomeScreen.java/clean/source/com/intellij/openapi/wm/impl/welcomeScreen/WelcomeScreen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 4750, 918, 603, 11840, 12, 1210, 1133, 425, 13, 288, 3639, 775, 288, 15408, 1304, 18, 20738, 9132, 12, 3297, 8352, 67, 1785, 1769, 289, 1044, 261, 12195, 3830, 5060, 431, 13, 288, 225, 289, 1377, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 4750, 918, 603, 11840, 12, 1210, 1133, 425, 13, 288, 3639, 775, 288, 15408, 1304, 18, 20738, 9132, 12, 3297, 8352, 67, 1785, 1769, 289, 1044, 261, 12195, 3830, 5060, 431, 13, 288, 225, 289, 1377, 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 ]
File pedFile = new File(inputOptions[0]);
File inFile = new File(inputOptions[0]);
void readPedGenotypes(String[] f, int type){ //input is a 3 element array with //inputOptions[0] = ped file //inputOptions[1] = info file (null if none) //inputOptions[2] = max comparison distance (don't compute d' if markers are greater than this dist apart) //type is either 3 or 4 for ped and hapmap files respectively inputOptions = f; File pedFile = new File(inputOptions[0]); try { if (pedFile.length() < 1){ throw new HaploViewException("Pedfile is empty or nonexistent: " + pedFile.getName()); } checkPanel = new CheckDataPanel(pedFile, type); checkPanel.setAlignmentX(Component.CENTER_ALIGNMENT); theData = new HaploData(assocTest); JTable table = checkPanel.getTable(); boolean[] markerResultArray = new boolean[table.getRowCount()]; for (int i = 0; i < table.getRowCount(); i++){ markerResultArray[i] = ((Boolean)table.getValueAt(i,7)).booleanValue(); } theData.linkageToChrom(markerResultArray,checkPanel.getPedFile(),checkPanel.getPedFile().getHMInfo()); processData(checkPanel.getPedFile().getHMInfo()); }catch(IOException ioexec) { JOptionPane.showMessageDialog(this, ioexec.getMessage(), "File Error", JOptionPane.ERROR_MESSAGE); } catch(PedFileException pfe){ JOptionPane.showMessageDialog(this, pfe.getMessage(), "File Error", JOptionPane.ERROR_MESSAGE); }catch (HaploViewException hve){ JOptionPane.showMessageDialog(this, hve.getMessage(), "File Error", JOptionPane.ERROR_MESSAGE); } }
51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/74b6b739164a324ce0d6aa10c62d5cca5cc16768/HaploView.java/buggy/edu/mit/wi/haploview/HaploView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 855, 52, 329, 7642, 20297, 12, 780, 8526, 284, 16, 509, 618, 15329, 3639, 368, 2630, 353, 279, 890, 930, 526, 598, 3639, 368, 2630, 1320, 63, 20, 65, 273, 31840, 585, 3639, 368, 2630, 1320, 63, 21, 65, 273, 1123, 585, 261, 2011, 309, 6555, 13, 3639, 368, 2630, 1320, 63, 22, 65, 273, 943, 5826, 3888, 261, 19752, 1404, 3671, 302, 11, 309, 11754, 854, 6802, 2353, 333, 2411, 513, 485, 13, 3639, 368, 723, 353, 3344, 890, 578, 1059, 364, 31840, 471, 5622, 1458, 1390, 19629, 3639, 810, 1320, 273, 284, 31, 3639, 1387, 316, 812, 273, 394, 1387, 12, 2630, 1320, 63, 20, 19226, 3639, 775, 288, 5411, 309, 261, 1845, 812, 18, 2469, 1435, 411, 404, 15329, 7734, 604, 394, 670, 438, 383, 1767, 503, 2932, 52, 329, 768, 353, 1008, 578, 1661, 19041, 30, 315, 397, 31840, 812, 18, 17994, 10663, 5411, 289, 5411, 866, 5537, 273, 394, 2073, 751, 5537, 12, 1845, 812, 16, 618, 1769, 5411, 866, 5537, 18, 542, 11535, 60, 12, 1841, 18, 19835, 67, 26439, 3212, 1769, 5411, 326, 751, 273, 394, 670, 438, 383, 751, 12, 14578, 4709, 1769, 5411, 804, 1388, 1014, 273, 866, 5537, 18, 588, 1388, 5621, 5411, 1250, 8526, 5373, 1253, 1076, 273, 394, 1250, 63, 2121, 18, 588, 26359, 1435, 15533, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1014, 18, 588, 26359, 5621, 277, 27245, 95, 7734, 5373, 1253, 1076, 63, 77, 65, 273, 14015, 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, 918, 855, 52, 329, 7642, 20297, 12, 780, 8526, 284, 16, 509, 618, 15329, 3639, 368, 2630, 353, 279, 890, 930, 526, 598, 3639, 368, 2630, 1320, 63, 20, 65, 273, 31840, 585, 3639, 368, 2630, 1320, 63, 21, 65, 273, 1123, 585, 261, 2011, 309, 6555, 13, 3639, 368, 2630, 1320, 63, 22, 65, 273, 943, 5826, 3888, 261, 19752, 1404, 3671, 302, 11, 309, 11754, 854, 6802, 2353, 333, 2411, 513, 485, 13, 3639, 368, 723, 353, 3344, 890, 578, 1059, 364, 31840, 471, 5622, 1458, 1390, 19629, 3639, 810, 1320, 273, 284, 31, 3639, 1387, 316, 812, 273, 394, 1387, 12, 2630, 1320, 63, 20, 19226, 3639, 775, 288, 5411, 309, 261, 1845, 812, 18, 2 ]
public Effect pieceMoved (BangObject bangobj, Piece piece)
public void pieceMoved (BangObject bangobj, Piece piece)
public Effect pieceMoved (BangObject bangobj, Piece piece) { return null; }
8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/61174950174b0f249df257a59cb9325ec9646940/Scenario.java/buggy/src/java/com/threerings/bang/game/server/scenario/Scenario.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11151, 25317, 261, 38, 539, 921, 324, 539, 2603, 16, 453, 8414, 11151, 13, 565, 288, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11151, 25317, 261, 38, 539, 921, 324, 539, 2603, 16, 453, 8414, 11151, 13, 565, 288, 3639, 327, 446, 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 ]
log.finest("\n" + Util.dumpString(sfBytes, "+++ sfBytes "));
log.finest("\n" + Util.dumpString(sfBytes, "+++ sfBytes "));
void writeSF(JarOutputStream jar) throws IOException { if (this.state != FINISHED) throw new IllegalStateException("Helper is NOT finished"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); JarUtils.writeSFManifest(sfMainAttributes, sfEntries, baos); sfBytes = baos.toByteArray(); log.finest("\n" + Util.dumpString(sfBytes, "+++ sfBytes ")); jar.write(sfBytes); jar.flush(); this.state = SF_GENERATED; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/SFHelper.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/SFHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1045, 22395, 12, 10813, 4632, 7334, 13, 1216, 1860, 225, 288, 565, 309, 261, 2211, 18, 2019, 480, 25768, 2056, 13, 1377, 604, 394, 5477, 2932, 2276, 353, 4269, 6708, 8863, 565, 11559, 17548, 273, 394, 11559, 5621, 565, 15644, 1989, 18, 2626, 22395, 9121, 12, 21668, 6376, 2498, 16, 9033, 5400, 16, 17548, 1769, 565, 9033, 2160, 273, 17548, 18, 869, 8826, 5621, 565, 613, 18, 926, 395, 31458, 82, 6, 397, 3564, 18, 8481, 780, 12, 21668, 2160, 16, 315, 9904, 15, 9033, 2160, 9369, 1769, 565, 7334, 18, 2626, 12, 21668, 2160, 1769, 565, 7334, 18, 11330, 5621, 565, 333, 18, 2019, 273, 21318, 67, 31915, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1045, 22395, 12, 10813, 4632, 7334, 13, 1216, 1860, 225, 288, 565, 309, 261, 2211, 18, 2019, 480, 25768, 2056, 13, 1377, 604, 394, 5477, 2932, 2276, 353, 4269, 6708, 8863, 565, 11559, 17548, 273, 394, 11559, 5621, 565, 15644, 1989, 18, 2626, 22395, 9121, 12, 21668, 6376, 2498, 16, 9033, 5400, 16, 17548, 1769, 565, 9033, 2160, 273, 17548, 18, 869, 8826, 5621, 565, 613, 18, 926, 395, 31458, 82, 6, 397, 3564, 18, 8481, 780, 12, 21668, 2160, 16, 315, 9904, 15, 9033, 2160, 9369, 1769, 565, 7334, 18, 2626, 12, 21668, 2160, 1769, 565, 7334, 18, 11330, 5621, 565, 333, 18, 2019, 273, 21318, 67, 31915, 31, 225, 289, 2, -100, -100, -100, -100, -100 ]
random = new Random(17);
layout.random = new Random(17);
public static void simAnnealAssign(FlatNode node) { System.out.println("Simulated Annealing Assignment"); int nsucc =0, j = 0; double currentCost = 0.0, minCost = 0.0; //number of paths tried at an iteration int nover = 100; //* RawBackend.rawRows * RawBackend.rawColumns; try { init(node); random = new Random(17); //random placement randomPlacement(); filew = new FileWriter("simanneal.out"); int configuration = 0; currentCost = placementCost(); System.out.println("Initial Cost: " + currentCost); if (KjcOptions.noanneal || KjcOptions.decoupled) { dumpLayout("noanneal.dot"); return; } //as a little hack, we will cache the layout with the minimum cost //these two hashmaps store this layout HashMap sirMin = (HashMap)SIRassignment.clone(); HashMap tileMin = (HashMap)tileAssignment.clone(); minCost = currentCost; if (currentCost == 0.0) { dumpLayout("layout.dot"); return; } //run the annealing twice. The first iteration is really just to get a //good initial layout. Some random layouts really kill the algorithm for (int two = 0; two < RawBackend.rawRows ; two++) { double t = annealMaxTemp(); double tFinal = annealMinTemp(); while (true) { int k = 0; nsucc = 0; for (k = 0; k < nover; k++) { if (perturbConfiguration(t)) { filew.write(configuration++ + " " + placementCost() + "\n"); nsucc++; } currentCost = placementCost(); //keep the layout with the minimum cost //this will be the final layout if (currentCost < minCost) { minCost = currentCost; //save the layout with the minimum cost sirMin = (HashMap)SIRassignment.clone(); tileMin = (HashMap)tileAssignment.clone(); } if (placementCost() == 0.0) break; } t *= TFACTR; if (nsucc == 0) break; if (currentCost == 0) break; if (t <= tFinal) break; j++; } if (currentCost == 0) break; } currentCost = placementCost(); System.out.println("Final Cost: " + currentCost + " Min Cost : " + minCost + " in " + j + " iterations."); if (minCost < currentCost) { SIRassignment = sirMin; tileAssignment = tileMin; } filew.close(); } catch (Exception e) { e.printStackTrace(); } dumpLayout("layout.dot"); }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/5b2a87706aed7992affe11d823069f4e5bc6fc36/Layout.java/clean/streams/src/at/dms/kjc/raw/Layout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 3142, 979, 4644, 287, 4910, 12, 16384, 907, 756, 13, 377, 288, 202, 3163, 18, 659, 18, 8222, 2932, 7993, 11799, 1922, 4644, 287, 310, 15499, 8863, 202, 474, 3153, 89, 952, 273, 20, 16, 525, 273, 374, 31, 202, 9056, 783, 8018, 273, 374, 18, 20, 16, 1131, 8018, 273, 374, 18, 20, 31, 202, 759, 2696, 434, 2953, 12928, 622, 392, 6532, 202, 474, 1158, 502, 273, 2130, 31, 368, 14, 6576, 7172, 18, 1899, 4300, 380, 6576, 7172, 18, 1899, 3380, 31, 202, 698, 288, 202, 565, 1208, 12, 2159, 1769, 202, 565, 2744, 273, 394, 8072, 12, 4033, 1769, 202, 565, 368, 9188, 12607, 202, 565, 2744, 12420, 5621, 202, 565, 585, 91, 273, 394, 24639, 2932, 9812, 1072, 73, 287, 18, 659, 8863, 202, 565, 509, 1664, 273, 374, 31, 202, 565, 783, 8018, 273, 12607, 8018, 5621, 202, 565, 2332, 18, 659, 18, 8222, 2932, 4435, 28108, 30, 315, 397, 783, 8018, 1769, 202, 377, 202, 565, 309, 261, 47, 78, 71, 1320, 18, 2135, 1072, 73, 287, 747, 1475, 78, 71, 1320, 18, 323, 2894, 416, 1259, 13, 288, 202, 202, 8481, 3744, 2932, 2135, 1072, 73, 287, 18, 9811, 8863, 202, 202, 2463, 31, 202, 565, 289, 202, 565, 368, 345, 279, 12720, 11769, 16, 732, 903, 1247, 326, 3511, 598, 326, 5224, 6991, 202, 565, 368, 451, 3392, 2795, 1651, 10711, 1707, 333, 3511, 202, 565, 4317, 272, 481, 2930, 273, 261, 8658, 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, 1071, 760, 918, 3142, 979, 4644, 287, 4910, 12, 16384, 907, 756, 13, 377, 288, 202, 3163, 18, 659, 18, 8222, 2932, 7993, 11799, 1922, 4644, 287, 310, 15499, 8863, 202, 474, 3153, 89, 952, 273, 20, 16, 525, 273, 374, 31, 202, 9056, 783, 8018, 273, 374, 18, 20, 16, 1131, 8018, 273, 374, 18, 20, 31, 202, 759, 2696, 434, 2953, 12928, 622, 392, 6532, 202, 474, 1158, 502, 273, 2130, 31, 368, 14, 6576, 7172, 18, 1899, 4300, 380, 6576, 7172, 18, 1899, 3380, 31, 202, 698, 288, 202, 565, 1208, 12, 2159, 1769, 202, 565, 2744, 273, 394, 8072, 12, 4033, 1769, 202, 565, 368, 9188, 12607, 202, 565, 2744, 12420, 5621, 202, 565, 2 ]
+ "\n\nCheck network connection.", e));
+ "\n\nCheck network connection.", e));
protected List<AbstractQueryHit> performQuery(AbstractRepositoryQuery repositoryQuery, final IProgressMonitor monitor, MultiStatus queryStatus) { if (!(repositoryQuery instanceof JiraRepositoryQuery)) { return Collections.emptyList(); } final JiraRepositoryQuery jiraRepositoryQuery = (JiraRepositoryQuery) repositoryQuery; final List<AbstractQueryHit> hits = new ArrayList<AbstractQueryHit>(); JiraIssueCollector collector = new JiraIssueCollector(monitor, jiraRepositoryQuery, hits); try { TaskRepository repository = MylarTaskListPlugin.getRepositoryManager().getRepository( MylarJiraPlugin.REPOSITORY_KIND, repositoryQuery.getRepositoryUrl()); JiraServerFacade.getDefault().getJiraServer(repository).search(jiraRepositoryQuery.getNamedFilter(), collector); } catch (Exception e) { queryStatus.add(new Status(IStatus.OK, MylarTaskListPlugin.PLUGIN_ID, IStatus.OK, "Could not log in to server: " + repositoryQuery.getRepositoryUrl() + "\n\nCheck network connection.", e)); } queryStatus.add(Status.OK_STATUS); return hits; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/8488498a51ba5cd9d5edff02a2a327fe4773890c/JiraRepositoryConnector.java/clean/org.eclipse.mylyn.jira.ui/src/org/eclipse/mylyn/internal/jira/JiraRepositoryConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 987, 32, 7469, 1138, 13616, 34, 3073, 1138, 12, 7469, 3305, 1138, 3352, 1138, 16, 1082, 202, 6385, 467, 5491, 7187, 6438, 16, 5991, 1482, 843, 1482, 13, 288, 202, 202, 430, 16051, 12, 9071, 1138, 1276, 804, 11547, 3305, 1138, 3719, 288, 1082, 202, 2463, 5737, 18, 5531, 682, 5621, 202, 202, 97, 202, 202, 6385, 804, 11547, 3305, 1138, 525, 11547, 3305, 1138, 273, 261, 46, 11547, 3305, 1138, 13, 3352, 1138, 31, 202, 202, 6385, 987, 32, 7469, 1138, 13616, 34, 11076, 273, 394, 2407, 32, 7469, 1138, 13616, 34, 5621, 202, 202, 46, 11547, 12956, 7134, 8543, 273, 394, 804, 11547, 12956, 7134, 12, 10259, 16, 525, 11547, 3305, 1138, 16, 11076, 1769, 202, 202, 698, 288, 1082, 202, 2174, 3305, 3352, 273, 8005, 7901, 2174, 682, 3773, 18, 588, 3305, 1318, 7675, 588, 3305, 12, 6862, 202, 12062, 7901, 46, 11547, 3773, 18, 862, 30986, 67, 47, 2356, 16, 3352, 1138, 18, 588, 3305, 1489, 10663, 1082, 202, 46, 11547, 2081, 12467, 18, 588, 1868, 7675, 588, 46, 11547, 2081, 12, 9071, 2934, 3072, 12, 78, 11547, 3305, 1138, 18, 588, 7604, 1586, 9334, 8543, 1769, 202, 202, 97, 1044, 261, 503, 425, 13, 288, 1082, 202, 2271, 1482, 18, 1289, 12, 2704, 2685, 12, 45, 1482, 18, 3141, 16, 8005, 7901, 2174, 682, 3773, 18, 19415, 67, 734, 16, 467, 1482, 18, 3141, 16, 6862, 202, 6, 4445, 486, 613, 316, 358, 1438, 30, 315, 397, 3352, 1138, 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, 987, 32, 7469, 1138, 13616, 34, 3073, 1138, 12, 7469, 3305, 1138, 3352, 1138, 16, 1082, 202, 6385, 467, 5491, 7187, 6438, 16, 5991, 1482, 843, 1482, 13, 288, 202, 202, 430, 16051, 12, 9071, 1138, 1276, 804, 11547, 3305, 1138, 3719, 288, 1082, 202, 2463, 5737, 18, 5531, 682, 5621, 202, 202, 97, 202, 202, 6385, 804, 11547, 3305, 1138, 525, 11547, 3305, 1138, 273, 261, 46, 11547, 3305, 1138, 13, 3352, 1138, 31, 202, 202, 6385, 987, 32, 7469, 1138, 13616, 34, 11076, 273, 394, 2407, 32, 7469, 1138, 13616, 34, 5621, 202, 202, 46, 11547, 12956, 7134, 8543, 273, 394, 804, 11547, 12956, 7134, 12, 10259, 16, 525, 11547, 3305, 1138, 16, 11076, 2 ]
WorkbenchWindow win = (WorkbenchWindow) window; if (win != null) { WorkbenchPage page = win.getActiveWorkbenchPage(); if (page != null) { IPerspectiveDescriptor perspectives[] = page .getOpenPerspectives(); for (int i = 0; i < perspectives.length; i++) { IPerspectiveDescriptor persp = perspectives[i]; if (perspectiveId.equals(persp.getId())) { win.getShell().open(); page.setPerspective(persp); return page; } } } }
WorkbenchWindow win = (WorkbenchWindow) window; if (win != null) { WorkbenchPage page = win.getActiveWorkbenchPage(); if (page != null) { IPerspectiveDescriptor perspectives[] = page .getOpenPerspectives(); for (int i = 0; i < perspectives.length; i++) { IPerspectiveDescriptor persp = perspectives[i]; if (perspectiveId.equals(persp.getId())) { win.getShell().open(); page.setPerspective(persp); return page; } } } }
public IWorkbenchPage showPerspective(String perspectiveId, IWorkbenchWindow window) throws WorkbenchException { Assert.isNotNull(perspectiveId); // If the specified window has the requested perspective open, then the // window // is given focus and the perspective is shown. The page's input is // ignored. WorkbenchWindow win = (WorkbenchWindow) window; if (win != null) { WorkbenchPage page = win.getActiveWorkbenchPage(); if (page != null) { IPerspectiveDescriptor perspectives[] = page .getOpenPerspectives(); for (int i = 0; i < perspectives.length; i++) { IPerspectiveDescriptor persp = perspectives[i]; if (perspectiveId.equals(persp.getId())) { win.getShell().open(); page.setPerspective(persp); return page; } } } } // If another window that has the workspace root as input and the // requested // perpective open and active, then the window is given focus. IAdaptable input = getDefaultPageInput(); IWorkbenchWindow[] windows = getWorkbenchWindows(); for (int i = 0; i < windows.length; i++) { win = (WorkbenchWindow) windows[i]; if (window != win) { WorkbenchPage page = win.getActiveWorkbenchPage(); if (page != null) { boolean inputSame = false; if (input == null) inputSame = (page.getInput() == null); else inputSame = input.equals(page.getInput()); if (inputSame) { Perspective persp = page.getActivePerspective(); if (perspectiveId.equals(persp.getDesc().getId())) { Shell shell = win.getShell(); shell.open(); if (shell.getMinimized()) shell.setMinimized(false); return page; } } } } } // Otherwise the requested perspective is opened and shown in the // specified // window or in a new window depending on the current user preference // for opening // perspectives, and that window is given focus. win = (WorkbenchWindow) window; if (win != null) { IPreferenceStore store = WorkbenchPlugin.getDefault() .getPreferenceStore(); int mode = store.getInt(IPreferenceConstants.OPEN_PERSP_MODE); IWorkbenchPage page = win.getActiveWorkbenchPage(); IPerspectiveDescriptor persp = null; if (page != null) persp = page.getPerspective(); // Only open a new window if user preference is set and the window // has an active perspective. if (IPreferenceConstants.OPM_NEW_WINDOW == mode && persp != null) { IWorkbenchWindow newWindow = openWorkbenchWindow(perspectiveId, input); return newWindow.getActivePage(); } IPerspectiveDescriptor desc = getPerspectiveRegistry() .findPerspectiveWithId(perspectiveId); if (desc == null) throw new WorkbenchException( NLS.bind(WorkbenchMessages.WorkbenchPage_ErrorCreatingPerspective, perspectiveId )); win.getShell().open(); if (page == null) page = win.openPage(perspectiveId, input); else page.setPerspective(desc); return page; } // Just throw an exception.... throw new WorkbenchException( NLS.bind(WorkbenchMessages.Workbench_showPerspectiveError, perspectiveId )); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9337b828e86179850647141c34d497be28275ed2/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 2421, 22144, 1964, 2405, 14781, 16772, 12, 780, 26651, 548, 16, 5411, 467, 2421, 22144, 3829, 2742, 13, 1216, 4147, 22144, 503, 288, 3639, 5452, 18, 291, 5962, 12, 10422, 16772, 548, 1769, 3639, 368, 971, 326, 1269, 2742, 711, 326, 3764, 26651, 1696, 16, 1508, 326, 3639, 368, 2742, 3639, 368, 353, 864, 7155, 471, 326, 26651, 353, 12188, 18, 1021, 1363, 1807, 810, 353, 3639, 368, 5455, 18, 3639, 4147, 22144, 3829, 5657, 273, 261, 2421, 22144, 3829, 13, 2742, 31, 3639, 309, 261, 8082, 480, 446, 13, 288, 5411, 4147, 22144, 1964, 1363, 273, 5657, 18, 588, 3896, 2421, 22144, 1964, 5621, 5411, 309, 261, 2433, 480, 446, 13, 288, 7734, 2971, 414, 16772, 3187, 13508, 1181, 3606, 8526, 273, 1363, 13491, 263, 588, 3678, 14781, 1181, 3606, 5621, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 13508, 1181, 3606, 18, 2469, 31, 277, 27245, 288, 10792, 2971, 414, 16772, 3187, 13508, 84, 273, 13508, 1181, 3606, 63, 77, 15533, 10792, 309, 261, 10422, 16772, 548, 18, 14963, 12, 10422, 84, 18, 26321, 1435, 3719, 288, 13491, 5657, 18, 588, 13220, 7675, 3190, 5621, 13491, 1363, 18, 542, 14781, 16772, 12, 10422, 84, 1769, 13491, 327, 1363, 31, 10792, 289, 7734, 289, 5411, 289, 3639, 289, 3639, 368, 971, 4042, 2742, 716, 711, 326, 6003, 1365, 487, 810, 471, 326, 3639, 368, 3764, 3639, 368, 1534, 16772, 1696, 471, 2695, 16, 1508, 326, 2742, 353, 864, 7155, 18, 3639, 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, 467, 2421, 22144, 1964, 2405, 14781, 16772, 12, 780, 26651, 548, 16, 5411, 467, 2421, 22144, 3829, 2742, 13, 1216, 4147, 22144, 503, 288, 3639, 5452, 18, 291, 5962, 12, 10422, 16772, 548, 1769, 3639, 368, 971, 326, 1269, 2742, 711, 326, 3764, 26651, 1696, 16, 1508, 326, 3639, 368, 2742, 3639, 368, 353, 864, 7155, 471, 326, 26651, 353, 12188, 18, 1021, 1363, 1807, 810, 353, 3639, 368, 5455, 18, 3639, 4147, 22144, 3829, 5657, 273, 261, 2421, 22144, 3829, 13, 2742, 31, 3639, 309, 261, 8082, 480, 446, 13, 288, 5411, 4147, 22144, 1964, 1363, 273, 5657, 18, 588, 3896, 2421, 22144, 1964, 5621, 5411, 309, 261, 2433, 480, 446, 13, 288, 7734, 2971, 414, 2 ]
Commandline cl = StarteamCommandLineUtils.createStarteamBaseCommandLine( "add", toBeAddedFile, repo );
Commandline cl = StarteamCommandLineUtils.createStarteamBaseCommandLine( "add", scmFileSet, repo );
static Commandline createCommandLine( StarteamScmProviderRepository repo, File toBeAddedFile, String issue ) { Commandline cl = StarteamCommandLineUtils.createStarteamBaseCommandLine( "add", toBeAddedFile, repo ); if ( issue != null && issue.length() > 0 ) { cl.createArgument().setValue( "-cr" ); cl.createArgument().setValue( issue ); } cl.createArgument().setValue( toBeAddedFile.getName() ); return cl; }
48502 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48502/e75a8292d17bf2c67ba0aedf8478c856ecc161f3/StarteamAddCommand.java/clean/maven-scm-providers/maven-scm-provider-starteam/src/main/java/org/apache/maven/scm/provider/starteam/command/add/StarteamAddCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 3498, 1369, 752, 21391, 12, 3603, 3820, 1541, 81, 2249, 3305, 3538, 16, 1387, 21333, 8602, 812, 16, 514, 5672, 262, 565, 288, 3639, 3498, 1369, 927, 273, 3603, 3820, 21391, 1989, 18, 2640, 1685, 3820, 2171, 21391, 12, 315, 1289, 3113, 29207, 812, 694, 16, 3538, 11272, 3639, 309, 261, 5672, 480, 446, 597, 5672, 18, 2469, 1435, 405, 374, 262, 3639, 288, 5411, 927, 18, 2640, 1379, 7675, 542, 620, 12, 3701, 3353, 6, 11272, 5411, 927, 18, 2640, 1379, 7675, 542, 620, 12, 5672, 11272, 3639, 289, 3639, 927, 18, 2640, 1379, 7675, 542, 620, 12, 21333, 8602, 812, 18, 17994, 1435, 11272, 3639, 327, 927, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 3498, 1369, 752, 21391, 12, 3603, 3820, 1541, 81, 2249, 3305, 3538, 16, 1387, 21333, 8602, 812, 16, 514, 5672, 262, 565, 288, 3639, 3498, 1369, 927, 273, 3603, 3820, 21391, 1989, 18, 2640, 1685, 3820, 2171, 21391, 12, 315, 1289, 3113, 29207, 812, 694, 16, 3538, 11272, 3639, 309, 261, 5672, 480, 446, 597, 5672, 18, 2469, 1435, 405, 374, 262, 3639, 288, 5411, 927, 18, 2640, 1379, 7675, 542, 620, 12, 3701, 3353, 6, 11272, 5411, 927, 18, 2640, 1379, 7675, 542, 620, 12, 5672, 11272, 3639, 289, 3639, 927, 18, 2640, 1379, 7675, 542, 620, 12, 21333, 8602, 812, 18, 17994, 1435, 11272, 3639, 327, 927, 31, 565, 289, 2, -100, -100, -100, -100, -100 ]
log.error(ioError);
System.err.println(ioError);
public static void main(String[] args) { String config="config.txt"; BufferedReader fileReader; String line; boolean sender=false; int num_msgs=1000; int msg_size=500; int num_senders=1; long log_interval=1000; ServerSocket srv_sock; List nodes=new ArrayList(); // list of cluster nodes (InetAddresses) for(int i=0; i < args.length; i++) { if("-sender".equals(args[i])) { sender=true; continue; } if("-receiver".equals(args[i])) { sender=false; continue; } if("-config".equals(args[i])) { config=args[++i]; continue; } help(); return; } try { fileReader=new BufferedReader(new FileReader(config)); while((line=fileReader.readLine()) != null) { if(line.startsWith("#")) continue; else if(line.startsWith("NUM_MSGS=")) { num_msgs=Integer.parseInt(line.substring(line.indexOf('=') + 1, line.indexOf(';'))); } else if(line.startsWith("MSG_SIZE=")) { msg_size=Integer.parseInt(line.substring(line.indexOf('=') + 1, line.indexOf(';'))); } else if(line.startsWith("GRPMEMBERS=")) { grpMembers=Integer.parseInt(line.substring(line.indexOf('=') + 1, line.indexOf(';'))); } else if(line.startsWith("NUM_SENDERS=")) { num_senders=Integer.parseInt(line.substring(line.indexOf('=') + 1, line.indexOf(';'))); } else if(line.startsWith("LOG_INTERVAL=")) { log_interval=Long.parseLong(line.substring(line.indexOf('=') + 1, line.indexOf(';'))); } else if(line.startsWith("CLUSTER=")) { nodes=parseCommaDelimitedList(line.substring(line.indexOf('=') + 1, line.indexOf(';')).trim()); } else if(line.startsWith("GNUPLOT_OUTPUT=")) { // only parse if not yet set by -Dgnuplot_output=true option (overrides file) if(System.getProperty("gnuplot_output") == null) { String gnuplot_output=line.substring(line.indexOf('=') + 1, line.indexOf(';')).trim(); if(gnuplot_output != null) System.setProperty("gnuplot_output", gnuplot_output); } } } fileReader.close(); System.out.println("Javagroups test:"); String s="Initial params parsing completed. Starting test" + " with these values:\n" + "Sender:" + sender + " num_msgs:" + num_msgs + " Size(bytes):" + msg_size + " # Mbrs:" + grpMembers + " Senders: " + num_senders + "\nLog interval: " + log_interval + '\n'; System.out.println(s); Logger.getLogger(Test.class).info("main(): " + s); srv_sock=new ServerSocket(srv_port); new TcpTester(sender, num_msgs, msg_size, grpMembers, num_senders, log_interval, srv_sock, nodes).initialize(); } catch(FileNotFoundException notFound) { log.error("File not found.\n" + notFound); } catch(IOException ioError) { log.error(ioError); } catch(Exception ex) { ex.printStackTrace(); } }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/13de68466e3cf7fde6ee0bde0cee09a33e837e89/Test.java/buggy/tests/other/org/jgroups/tests/adapttcp/Test.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 514, 642, 1546, 1425, 18, 5830, 14432, 3639, 10633, 585, 2514, 31, 3639, 514, 980, 31, 3639, 1250, 5793, 33, 5743, 31, 3639, 509, 818, 67, 27439, 33, 18088, 31, 3639, 509, 1234, 67, 1467, 33, 12483, 31, 3639, 509, 818, 67, 4661, 414, 33, 21, 31, 3639, 1525, 282, 613, 67, 6624, 33, 18088, 31, 3639, 3224, 4534, 7302, 67, 15031, 31, 3639, 987, 2199, 33, 2704, 2407, 5621, 368, 666, 434, 2855, 2199, 261, 382, 278, 7148, 13, 3639, 364, 12, 474, 277, 33, 20, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 5411, 309, 2932, 17, 15330, 9654, 14963, 12, 1968, 63, 77, 22643, 288, 7734, 5793, 33, 3767, 31, 7734, 1324, 31, 5411, 289, 5411, 309, 2932, 17, 24454, 9654, 14963, 12, 1968, 63, 77, 22643, 288, 7734, 5793, 33, 5743, 31, 7734, 1324, 31, 5411, 289, 5411, 309, 2932, 17, 1425, 9654, 14963, 12, 1968, 63, 77, 22643, 288, 7734, 642, 33, 1968, 63, 9904, 77, 15533, 7734, 1324, 31, 5411, 289, 5411, 2809, 5621, 5411, 327, 31, 3639, 289, 3639, 775, 288, 5411, 585, 2514, 33, 2704, 10633, 12, 2704, 23010, 12, 1425, 10019, 5411, 1323, 12443, 1369, 33, 768, 2514, 18, 896, 1670, 10756, 480, 446, 13, 288, 7734, 309, 12, 1369, 18, 17514, 1190, 2932, 17133, 3719, 10792, 1324, 31, 7734, 469, 309, 12, 1369, 18, 17514, 1190, 2932, 6069, 67, 11210, 55, 1546, 3719, 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, 833, 13, 288, 3639, 514, 642, 1546, 1425, 18, 5830, 14432, 3639, 10633, 585, 2514, 31, 3639, 514, 980, 31, 3639, 1250, 5793, 33, 5743, 31, 3639, 509, 818, 67, 27439, 33, 18088, 31, 3639, 509, 1234, 67, 1467, 33, 12483, 31, 3639, 509, 818, 67, 4661, 414, 33, 21, 31, 3639, 1525, 282, 613, 67, 6624, 33, 18088, 31, 3639, 3224, 4534, 7302, 67, 15031, 31, 3639, 987, 2199, 33, 2704, 2407, 5621, 368, 666, 434, 2855, 2199, 261, 382, 278, 7148, 13, 3639, 364, 12, 474, 277, 33, 20, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 5411, 309, 2932, 17, 15330, 9654, 14963, 12, 1968, 63, 2 ]
int x0 = getLocation().x;
public int columnAtPoint(Point point) { if (point != null) { int x0 = getLocation().x; int ncols = getColumnCount(); Dimension gap = getIntercellSpacing(); TableColumnModel cols = getColumnModel(); int x = point.x; for (int i = 0; i < ncols; ++i) { int width = cols.getColumn(i).getWidth() + (gap == null ? 0 : gap.width); if (0 <= x && x < width) return i; x -= width; } } return -1; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e8a49a412752cdcc88a774cac2de160a23c6f550/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 1057, 861, 2148, 12, 2148, 1634, 13, 225, 288, 565, 309, 261, 1153, 480, 446, 13, 1377, 288, 9079, 509, 21330, 273, 6716, 1380, 5621, 3639, 13037, 9300, 273, 336, 2465, 3855, 18006, 5621, 3639, 3555, 1494, 1488, 5347, 273, 6716, 1488, 5621, 3639, 509, 619, 273, 1634, 18, 92, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 21330, 31, 965, 77, 13, 1850, 288, 5411, 509, 1835, 273, 5347, 18, 588, 1494, 12, 77, 2934, 588, 2384, 1435, 13491, 397, 261, 14048, 422, 446, 692, 374, 294, 9300, 18, 2819, 1769, 5411, 309, 261, 20, 1648, 619, 597, 619, 411, 1835, 13, 2868, 327, 277, 31, 5411, 619, 3947, 1835, 31, 1850, 289, 1377, 289, 565, 327, 300, 21, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 1057, 861, 2148, 12, 2148, 1634, 13, 225, 288, 565, 309, 261, 1153, 480, 446, 13, 1377, 288, 9079, 509, 21330, 273, 6716, 1380, 5621, 3639, 13037, 9300, 273, 336, 2465, 3855, 18006, 5621, 3639, 3555, 1494, 1488, 5347, 273, 6716, 1488, 5621, 3639, 509, 619, 273, 1634, 18, 92, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 21330, 31, 965, 77, 13, 1850, 288, 5411, 509, 1835, 273, 5347, 18, 588, 1494, 12, 77, 2934, 588, 2384, 1435, 13491, 397, 261, 14048, 422, 446, 692, 374, 294, 9300, 18, 2819, 1769, 5411, 309, 261, 20, 1648, 619, 597, 619, 411, 1835, 13, 2868, 327, 277, 31, 5411, 619, 3947, 1835, 31, 1850, 2 ]
serial = mol.getAtomNumber(ca);
serial = mol.getAtomNumber(connectedAtom);
private void writeMolecule(IMoleculeSet som) throws IOException { //int na = 0; //String info = ""; String sym; double chrg; //boolean writecharge = true; for (int molnum = 0; molnum < som.getMoleculeCount(); molnum++) { IMolecule mol = som.getMolecule(molnum); try { int natom = mol.getAtomCount(); int nbond = mol.getBondCount(); String molname = "mol " + (molnum + 1) + " " + mol.getProperty(CDKConstants.TITLE); writer.write(molname, 0, molname.length()); writer.newLine(); // Loop through the atoms and write them out: IAtom[] atoms = mol.getAtoms(); IBond[] bonds = mol.getBonds(); for (int i = 0; i < natom; i++) { String line = "atom "; IAtom a = atoms[i]; sym = a.getSymbol(); chrg = a.getCharge(); Point3d p3 = a.getPoint3d(); line = line + Integer.toString(i + 1) + " - " + sym + " ** - " + Double.toString(chrg) + " " + Double.toString(p3.x) + " " + Double.toString(p3.y) + " " + Double.toString(p3.z) + " "; String buf = ""; int ncon = 0; for (int j = 0; j < nbond; j++) { IBond b = bonds[j]; if (b.contains(a)) { // current atom is in the bond so lets get the connected atom IAtom ca = b.getConnectedAtom(a); double bo = b.getOrder(); int serial; String bt = ""; // get the serial no for this atom serial = mol.getAtomNumber(ca); if (bo == 1) bt = "s"; else if (bo == 2) bt = "d"; else if (bo == 3) bt = "t"; else if (bo == 1.5) bt = "a"; buf = buf + Integer.toString(serial + 1) + " " + bt + " "; ncon++; } } line = line + " " + Integer.toString(ncon) + " " + buf; writer.write(line, 0, line.length()); writer.newLine(); } String buf = "endmol " + (molnum + 1); writer.write(buf, 0, buf.length()); writer.newLine(); } catch (IOException e) { throw e; } } }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/ac0a6b18a6d245827364b5448594afbcc11a0a28/HINWriter.java/clean/src/org/openscience/cdk/io/HINWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 29669, 12, 3445, 10545, 694, 4737, 13, 1216, 1860, 288, 3639, 368, 474, 9583, 273, 374, 31, 3639, 368, 780, 1123, 273, 1408, 31, 3639, 514, 5382, 31, 3639, 1645, 4513, 75, 31, 3639, 368, 6494, 1045, 16385, 273, 638, 31, 3639, 364, 261, 474, 12629, 2107, 273, 374, 31, 12629, 2107, 411, 4737, 18, 588, 29669, 1380, 5621, 12629, 2107, 27245, 288, 5411, 6246, 10545, 12629, 273, 4737, 18, 588, 29669, 12, 21260, 2107, 1769, 5411, 775, 288, 7734, 509, 290, 7466, 273, 12629, 18, 588, 3641, 1380, 5621, 7734, 509, 4264, 1434, 273, 12629, 18, 588, 9807, 1380, 5621, 7734, 514, 12629, 529, 273, 315, 21260, 315, 397, 261, 21260, 2107, 397, 404, 13, 397, 315, 315, 397, 12629, 18, 588, 1396, 12, 39, 3398, 2918, 18, 14123, 1769, 7734, 2633, 18, 2626, 12, 21260, 529, 16, 374, 16, 12629, 529, 18, 2469, 10663, 7734, 2633, 18, 2704, 1670, 5621, 7734, 368, 9720, 3059, 326, 9006, 471, 1045, 2182, 596, 30, 7734, 8831, 8526, 9006, 273, 12629, 18, 588, 14280, 5621, 7734, 16178, 8526, 15692, 273, 12629, 18, 588, 26090, 5621, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 290, 7466, 31, 277, 27245, 288, 10792, 514, 980, 273, 315, 7466, 13636, 10792, 8831, 279, 273, 9006, 63, 77, 15533, 10792, 5382, 273, 279, 18, 588, 5335, 5621, 10792, 4513, 75, 273, 279, 18, 588, 17649, 5621, 10792, 4686, 23, 72, 293, 23, 273, 279, 18, 588, 2148, 23, 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, 1045, 29669, 12, 3445, 10545, 694, 4737, 13, 1216, 1860, 288, 3639, 368, 474, 9583, 273, 374, 31, 3639, 368, 780, 1123, 273, 1408, 31, 3639, 514, 5382, 31, 3639, 1645, 4513, 75, 31, 3639, 368, 6494, 1045, 16385, 273, 638, 31, 3639, 364, 261, 474, 12629, 2107, 273, 374, 31, 12629, 2107, 411, 4737, 18, 588, 29669, 1380, 5621, 12629, 2107, 27245, 288, 5411, 6246, 10545, 12629, 273, 4737, 18, 588, 29669, 12, 21260, 2107, 1769, 5411, 775, 288, 7734, 509, 290, 7466, 273, 12629, 18, 588, 3641, 1380, 5621, 7734, 509, 4264, 1434, 273, 12629, 18, 588, 9807, 1380, 5621, 7734, 514, 12629, 529, 273, 315, 21260, 315, 397, 261, 21260, 2107, 397, 404, 2 ]
DebuggerTreeNodeImpl child = (DebuggerTreeNodeImpl)e.nextElement(); NodeDescriptorImpl descriptor = child.getDescriptor(); if(descriptor != null) { if (descriptor instanceof LocalVariableDescriptorImpl) { if (((LocalVariableDescriptorImpl) descriptor).isNewLocal() && getDebuggerContext().getDebuggerSession().isSteppingThrough(getDebuggerContext().getThreadProxy())) { TreePath treePath = new TreePath(child.getPath()); addSelectionPath (treePath); scrollPathToVisible(treePath); myAnyNewLocals = true; descriptor.myIsSelected = true; } else { removeSelectionPath(new TreePath(child.getPath())); descriptor.myIsSelected = false; } ((LocalVariableDescriptorImpl) descriptor).setNewLocal(false); }
final DebuggerTreeNodeImpl child = (DebuggerTreeNodeImpl)e.nextElement(); final NodeDescriptorImpl descriptor = child.getDescriptor(); if(!(descriptor instanceof LocalVariableDescriptorImpl)) { continue;
public void threadAction() { super.threadAction(); DebuggerTreeNodeImpl rootNode; final ThreadReferenceProxyImpl currentThread = getDebuggerContext().getThreadProxy(); if(currentThread == null) return; try { StackFrameProxyImpl frame = getDebuggerContext().getFrameProxy(); if (frame != null) { NodeManagerImpl nodeManager = getNodeFactory(); rootNode = nodeManager.createNode(nodeManager.getStackFrameDescriptor(null, frame), getDebuggerContext().createEvaluationContext()); } else { rootNode = getNodeFactory().getDefaultNode(); SuspendManager suspendManager = getSuspendContext().getDebugProcess().getSuspendManager(); if(suspendManager.isSuspended(currentThread)) { try { if(currentThread.frameCount() == 0) { rootNode.add(MessageDescriptor.THREAD_IS_EMPTY); } else { rootNode.add(MessageDescriptor.DEBUG_INFO_UNAVAILABLE); } } catch (EvaluateException e) { rootNode.add(new MessageDescriptor(e.getMessage())); } } else { rootNode.add(MessageDescriptor.THREAD_IS_RUNNING); } } } catch (Exception ex) { if (LOG.isDebugEnabled()) { LOG.debug(ex); } rootNode = getNodeFactory().getDefaultNode(); rootNode.add(MessageDescriptor.DEBUG_INFO_UNAVAILABLE); } final DebuggerTreeNodeImpl rootNode1 = rootNode; DebuggerInvocationUtil.invokeLater(getProject(), new Runnable() { public void run() { getMutableModel().setRoot(rootNode1); treeChanged(); getModel().addTreeModelListener(new TreeModelAdapter() { public void treeStructureChanged(TreeModelEvent e) { Object[] path = e.getPath(); if(path.length > 0 && path[path.length - 1] == rootNode1) { if(ViewsGeneralSettings.getInstance().AUTOSCROLL_TO_NEW_LOCALS) { autoscrollToNewLocals(rootNode1); } } } }); } private void autoscrollToNewLocals(DebuggerTreeNodeImpl frameNode) { for (Enumeration e = frameNode.rawChildren(); e.hasMoreElements();) { DebuggerTreeNodeImpl child = (DebuggerTreeNodeImpl)e.nextElement(); NodeDescriptorImpl descriptor = child.getDescriptor(); if(descriptor != null) { if (descriptor instanceof LocalVariableDescriptorImpl) { if (((LocalVariableDescriptorImpl) descriptor).isNewLocal() && getDebuggerContext().getDebuggerSession().isSteppingThrough(getDebuggerContext().getThreadProxy())) { TreePath treePath = new TreePath(child.getPath()); addSelectionPath (treePath); scrollPathToVisible(treePath); myAnyNewLocals = true; descriptor.myIsSelected = true; } else { removeSelectionPath(new TreePath(child.getPath())); descriptor.myIsSelected = false; } ((LocalVariableDescriptorImpl) descriptor).setNewLocal(false); } } } } }); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/84b20496caf8e6402adec0168964a1bb5832373f/FrameDebuggerTree.java/clean/source/com/intellij/debugger/ui/impl/FrameDebuggerTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2650, 1803, 1435, 288, 1377, 2240, 18, 5930, 1803, 5621, 1377, 28645, 12513, 2828, 10181, 31, 1377, 727, 4884, 2404, 3886, 2828, 11800, 273, 336, 24113, 1042, 7675, 588, 3830, 3886, 5621, 1377, 309, 12, 2972, 3830, 422, 446, 13, 327, 31, 1377, 775, 288, 3639, 7283, 3219, 3886, 2828, 2623, 273, 336, 24113, 1042, 7675, 588, 3219, 3886, 5621, 3639, 309, 261, 3789, 480, 446, 13, 288, 1850, 2029, 1318, 2828, 756, 1318, 273, 5973, 1733, 5621, 1850, 10181, 273, 756, 1318, 18, 2640, 907, 12, 2159, 1318, 18, 588, 2624, 3219, 3187, 12, 2011, 16, 2623, 3631, 336, 24113, 1042, 7675, 2640, 13468, 1042, 10663, 3639, 289, 469, 288, 1850, 10181, 273, 5973, 1733, 7675, 588, 1868, 907, 5621, 1850, 348, 18815, 1318, 20413, 1318, 273, 1322, 18815, 1042, 7675, 588, 2829, 2227, 7675, 588, 55, 18815, 1318, 5621, 1850, 309, 12, 87, 18815, 1318, 18, 291, 55, 22942, 12, 2972, 3830, 3719, 288, 5411, 775, 288, 2868, 309, 12, 2972, 3830, 18, 3789, 1380, 1435, 422, 374, 13, 288, 7734, 10181, 18, 1289, 12, 1079, 3187, 18, 21730, 67, 5127, 67, 13625, 1769, 2868, 289, 469, 288, 7734, 10181, 18, 1289, 12, 1079, 3187, 18, 9394, 67, 5923, 67, 2124, 23222, 1769, 2868, 289, 5411, 289, 5411, 1044, 261, 15369, 503, 425, 13, 288, 2868, 10181, 18, 1289, 12, 2704, 2350, 3187, 12, 73, 18, 24906, 1435, 10019, 5411, 289, 1850, 289, 469, 288, 5411, 10181, 18, 1289, 12, 1079, 3187, 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, 2650, 1803, 1435, 288, 1377, 2240, 18, 5930, 1803, 5621, 1377, 28645, 12513, 2828, 10181, 31, 1377, 727, 4884, 2404, 3886, 2828, 11800, 273, 336, 24113, 1042, 7675, 588, 3830, 3886, 5621, 1377, 309, 12, 2972, 3830, 422, 446, 13, 327, 31, 1377, 775, 288, 3639, 7283, 3219, 3886, 2828, 2623, 273, 336, 24113, 1042, 7675, 588, 3219, 3886, 5621, 3639, 309, 261, 3789, 480, 446, 13, 288, 1850, 2029, 1318, 2828, 756, 1318, 273, 5973, 1733, 5621, 1850, 10181, 273, 756, 1318, 18, 2640, 907, 12, 2159, 1318, 18, 588, 2624, 3219, 3187, 12, 2011, 16, 2623, 3631, 336, 24113, 1042, 7675, 2640, 13468, 1042, 10663, 3639, 289, 469, 288, 1850, 10181, 273, 5973, 1733, 2 ]
} Certificate cert = new Certificate(); cert.readBytes(bais); long msgId = DataHelper.readLong(bais, 4); Date expiration = DataHelper.readDate(bais); set.setCertificate(cert); set.setMessageId(msgId); set.setExpiration(expiration.getTime()); return set; } catch (IOException ioe) { _log.error("Error reading clove set", ioe); return null; } catch (DataFormatException dfe) { _log.error("Error reading clove set", dfe); return null;
private CloveSet readCloveSet(byte data[]) { Set cloves = new HashSet(); ByteArrayInputStream bais = new ByteArrayInputStream(data); try { CloveSet set = new CloveSet(); int numCloves = (int)DataHelper.readLong(bais, 1); _log.debug("# cloves to read: " + numCloves); for (int i = 0; i < numCloves; i++) { _log.debug("Reading clove " + i); try { GarlicClove clove = new GarlicClove(_context); clove.readBytes(bais); set.addClove(clove); } catch (DataFormatException dfe) { _log.warn("Unable to read clove " + i, dfe); } catch (IOException ioe) { _log.warn("Unable to read clove " + i, ioe); } _log.debug("After reading clove " + i); } Certificate cert = new Certificate(); cert.readBytes(bais); long msgId = DataHelper.readLong(bais, 4); Date expiration = DataHelper.readDate(bais); set.setCertificate(cert); set.setMessageId(msgId); set.setExpiration(expiration.getTime()); return set; } catch (IOException ioe) { _log.error("Error reading clove set", ioe); return null; } catch (DataFormatException dfe) { _log.error("Error reading clove set", dfe); return null; } }
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/1107e50108f2845c6b117044e0ab95019b20a309/GarlicMessageParser.java/clean/router/java/src/net/i2p/router/message/GarlicMessageParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 22442, 537, 694, 855, 4082, 537, 694, 12, 7229, 501, 63, 5717, 288, 3639, 1000, 1219, 3324, 273, 394, 6847, 5621, 3639, 16180, 9846, 291, 273, 394, 16180, 12, 892, 1769, 3639, 775, 288, 5411, 22442, 537, 694, 444, 273, 394, 22442, 537, 694, 5621, 13491, 509, 818, 4082, 3324, 273, 261, 474, 13, 751, 2276, 18, 896, 3708, 12, 12124, 291, 16, 404, 1769, 5411, 389, 1330, 18, 4148, 2932, 7, 1219, 3324, 358, 855, 30, 315, 397, 818, 4082, 3324, 1769, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 818, 4082, 3324, 31, 277, 27245, 288, 7734, 389, 1330, 18, 4148, 2932, 15714, 1219, 537, 315, 397, 277, 1769, 7734, 775, 288, 10792, 611, 13007, 335, 4082, 537, 1219, 537, 273, 394, 611, 13007, 335, 4082, 537, 24899, 2472, 1769, 10792, 1219, 537, 18, 896, 2160, 12, 12124, 291, 1769, 10792, 444, 18, 1289, 4082, 537, 12, 7550, 537, 1769, 7734, 289, 1044, 261, 751, 9291, 3013, 73, 13, 288, 10792, 389, 1330, 18, 8935, 2932, 3370, 358, 855, 1219, 537, 315, 397, 277, 16, 3013, 73, 1769, 7734, 289, 1044, 261, 14106, 10847, 13, 288, 10792, 389, 1330, 18, 8935, 2932, 3370, 358, 855, 1219, 537, 315, 397, 277, 16, 10847, 1769, 7734, 289, 7734, 389, 1330, 18, 4148, 2932, 4436, 6453, 1219, 537, 315, 397, 277, 1769, 5411, 289, 5411, 6660, 3320, 273, 394, 6660, 5621, 5411, 3320, 18, 896, 2160, 12, 12124, 291, 1769, 5411, 1525, 1234, 548, 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, 22442, 537, 694, 855, 4082, 537, 694, 12, 7229, 501, 63, 5717, 288, 3639, 1000, 1219, 3324, 273, 394, 6847, 5621, 3639, 16180, 9846, 291, 273, 394, 16180, 12, 892, 1769, 3639, 775, 288, 5411, 22442, 537, 694, 444, 273, 394, 22442, 537, 694, 5621, 13491, 509, 818, 4082, 3324, 273, 261, 474, 13, 751, 2276, 18, 896, 3708, 12, 12124, 291, 16, 404, 1769, 5411, 389, 1330, 18, 4148, 2932, 7, 1219, 3324, 358, 855, 30, 315, 397, 818, 4082, 3324, 1769, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 818, 4082, 3324, 31, 277, 27245, 288, 7734, 389, 1330, 18, 4148, 2932, 15714, 1219, 537, 315, 397, 277, 1769, 7734, 775, 288, 10792, 2 ]
SecurityManager sm = Runtime.securityManager;
SecurityManager sm = SecurityManager.current;
public static void setProperties(Properties properties) { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPropertiesAccess(); if (properties == null) { // Note that we use clone here and not new. Some programs // assume that the system properties do not have a parent. properties = (Properties) Runtime.defaultProperties.clone(); } System.properties = properties; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/206de32e8ebd7bc5080236c5c9ea198dd5243913/System.java/buggy/core/src/classpath/java/java/lang/System.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 23126, 12, 2297, 1790, 13, 225, 288, 565, 6036, 1318, 3029, 273, 6036, 1318, 18, 2972, 31, 368, 4823, 2650, 17, 4626, 18, 565, 309, 261, 4808, 480, 446, 13, 1377, 3029, 18, 1893, 2297, 1862, 5621, 565, 309, 261, 4738, 422, 446, 13, 1377, 288, 202, 759, 3609, 716, 732, 999, 3236, 2674, 471, 486, 394, 18, 225, 10548, 25038, 202, 759, 6750, 716, 326, 2619, 1790, 741, 486, 1240, 279, 982, 18, 202, 4738, 273, 261, 2297, 13, 2509, 18, 1886, 2297, 18, 14056, 5621, 1377, 289, 565, 2332, 18, 4738, 273, 1790, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 23126, 12, 2297, 1790, 13, 225, 288, 565, 6036, 1318, 3029, 273, 6036, 1318, 18, 2972, 31, 368, 4823, 2650, 17, 4626, 18, 565, 309, 261, 4808, 480, 446, 13, 1377, 3029, 18, 1893, 2297, 1862, 5621, 565, 309, 261, 4738, 422, 446, 13, 1377, 288, 202, 759, 3609, 716, 732, 999, 3236, 2674, 471, 486, 394, 18, 225, 10548, 25038, 202, 759, 6750, 716, 326, 2619, 1790, 741, 486, 1240, 279, 982, 18, 202, 4738, 273, 261, 2297, 13, 2509, 18, 1886, 2297, 18, 14056, 5621, 1377, 289, 565, 2332, 18, 4738, 273, 1790, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]