rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
public void run() { try { // look for plugin directories specified as a system property String pluginDirs = System.getProperty("pluginDirs"); if (pluginDirs != null) { StringTokenizer st = new StringTokenizer(pluginDirs, ", "); while (st.hasMoreTokens()) { String dir = st.nextToken(); if (!devPlugins.contains(dir)) { loadPlugin(new File(dir)); devPlugins.add(dir); } } } File[] jars = pluginDirectory.listFiles(new FileFilter() { public boolean accept(File pathname) { String fileName = pathname.getName().toLowerCase(); return (fileName.endsWith(".jar") || fileName.endsWith(".war")); } }); if(jars == null){ return; } for (int i = 0; i < jars.length; i++) { File jarFile = jars[i]; String pluginName = jarFile.getName().substring(0, jarFile.getName().length() - 4).toLowerCase(); // See if the JAR has already been exploded. File dir = new File(pluginDirectory, pluginName); // If the JAR hasn't been exploded, do so. if (!dir.exists()) { unzipPlugin(pluginName, jarFile, dir); } // See if the JAR is newer than the directory. If so, the plugin // needs to be unloaded and then reloaded. else if (jarFile.lastModified() > dir.lastModified()) { unloadPlugin(pluginName); // Ask the system to clean up references. System.gc(); int count = 0; while (!deleteDir(dir) && count < 5) { Log.error("Error unloading plugin " + pluginName + ". " + "Will attempt again momentarily."); Thread.sleep(5000); count++; } // Now unzip the plugin. unzipPlugin(pluginName, jarFile, dir); } } File[] dirs = pluginDirectory.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirectory(); } }); // Sort the list of directories so that the "admin" plugin is always // first in the list. Arrays.sort(dirs, new Comparator<File>() { public int compare(File file1, File file2) { if (file1.getName().equals("admin")) { return -1; } else if (file2.getName().equals("admin")) { return 1; } else return file1.compareTo(file2); } }); // See if any currently running plugins need to be unloaded // due to the JAR file being deleted (ignore admin plugin). // Build a list of plugins to delete first so that the plugins // keyset isn't modified as we're iterating through it. List<String> toDelete = new ArrayList<String>(); for (File pluginDir : dirs) { String pluginName = pluginDir.getName(); if (pluginName.equals("admin")) { continue; } File file = new File(pluginDirectory, pluginName + ".jar"); if (!file.exists()) { file = new File(pluginDirectory, pluginName + ".war"); if (!file.exists()) { toDelete.add(pluginName); } } } for (String pluginName : toDelete) { unloadPlugin(pluginName); System.gc(); int count = 0; File dir = new File(pluginDirectory, pluginName); while (!deleteDir(dir) && count < 5) { Log.error("Error unloading plugin " + pluginName + ". " + "Will attempt again momentarily."); Thread.sleep(5000); count++; } } // Load all plugins that need to be loaded. for (int i = 0; i < dirs.length; i++) { File dirFile = dirs[i]; // If the plugin hasn't already been started, start it. if (dirFile.exists() && !plugins.containsKey(dirFile.getName())) { loadPlugin(dirFile); } } } catch (Exception e) { Log.error(e); } }
6312 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6312/7362d516f7fa4fa276ef064c90f178de6b45feef/PluginManager.java/clean/src/java/org/jivesoftware/messenger/container/PluginManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 775, 288, 7734, 368, 2324, 364, 1909, 6402, 1269, 487, 279, 2619, 1272, 7734, 514, 1909, 9872, 273, 2332, 18, 588, 1396, 2932, 4094, 9872, 8863, 7734, 309, 261, 4094, 9872, 480, 446, 13, 288, 10792, 16370, 384, 273, 394, 16370, 12, 4094, 9872, 16, 3104, 315, 1769, 10792, 1323, 261, 334, 18, 5332, 7417, 5157, 10756, 288, 13491, 514, 1577, 273, 384, 18, 4285, 1345, 5621, 13491, 309, 16051, 5206, 9461, 18, 12298, 12, 1214, 3719, 288, 18701, 1262, 3773, 12, 2704, 1387, 12, 1214, 10019, 18701, 4461, 9461, 18, 1289, 12, 1214, 1769, 13491, 289, 10792, 289, 7734, 289, 7734, 1387, 8526, 28838, 273, 1909, 2853, 18, 1098, 2697, 12, 2704, 1387, 1586, 1435, 288, 10792, 1071, 1250, 2791, 12, 812, 9806, 13, 288, 13491, 514, 3968, 273, 9806, 18, 17994, 7675, 869, 5630, 5621, 13491, 327, 261, 17812, 18, 5839, 1190, 2932, 18, 11930, 7923, 747, 3968, 18, 5839, 1190, 2932, 18, 905, 7923, 1769, 10792, 289, 7734, 15549, 7734, 309, 12, 78, 5913, 422, 446, 15329, 10792, 327, 31, 7734, 289, 27573, 364, 261, 474, 277, 273, 374, 31, 277, 411, 28838, 18, 2469, 31, 277, 27245, 288, 10792, 1387, 22588, 273, 28838, 63, 77, 15533, 10792, 514, 15909, 273, 22588, 18, 17994, 7675, 28023, 12, 20, 16, 18701, 22588, 18, 17994, 7675, 2469, 1435, 300, 1059, 2934, 869, 5630, 5621, 10792, 368, 2164, 309, 326, 24728, 711, 1818, 2118, 22676, 18, 10792, 1387, 1577, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 775, 288, 7734, 368, 2324, 364, 1909, 6402, 1269, 487, 279, 2619, 1272, 7734, 514, 1909, 9872, 273, 2332, 18, 588, 1396, 2932, 4094, 9872, 8863, 7734, 309, 261, 4094, 9872, 480, 446, 13, 288, 10792, 16370, 384, 273, 394, 16370, 12, 4094, 9872, 16, 3104, 315, 1769, 10792, 1323, 261, 334, 18, 5332, 7417, 5157, 10756, 288, 13491, 514, 1577, 273, 384, 18, 4285, 1345, 5621, 13491, 309, 16051, 5206, 9461, 18, 12298, 12, 1214, 3719, 288, 18701, 1262, 3773, 12, 2704, 1387, 12, 1214, 10019, 18701, 4461, 9461, 18, 1289, 12, 1214, 1769, 13491, 289, 10792, 289, 7734, 289, 7734, 1387, 8526, 28838, 273, 1909, 2853, 18, 1098, 2697, 12, 2 ]
protected void convertValueNoPattern(BaseLocaleConverter converter, String msgId, Object value, Object expectedValue) { try { result = converter.convert(value); } catch (Exception e) { fail("No Pattern conversion threw " + msgId + " threw " + e); } assertEquals("Check conversion value without pattern " + msgId, expectedValue, result);
protected void convertValueNoPattern(BaseLocaleConverter converter, Object value, Object expectedValue) { convertValueNoPattern(converter, "", value, expectedValue);
protected void convertValueNoPattern(BaseLocaleConverter converter, String msgId, Object value, Object expectedValue) { // Convert value with no pattern try { result = converter.convert(value); } catch (Exception e) { fail("No Pattern conversion threw " + msgId + " threw " + e); } assertEquals("Check conversion value without pattern " + msgId, expectedValue, result); }
54521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54521/1671189d5b73e7e6e01157358027a62a3b235d12/BaseLocaleConverterTestCase.java/buggy/src/test/org/apache/commons/beanutils/locale/converters/BaseLocaleConverterTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1765, 620, 2279, 3234, 12, 2171, 3916, 5072, 6027, 16, 514, 1234, 548, 16, 1033, 460, 16, 1033, 30844, 13, 288, 3639, 368, 4037, 460, 598, 1158, 1936, 3639, 775, 288, 5411, 563, 273, 6027, 18, 6283, 12, 1132, 1769, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 2321, 2932, 2279, 6830, 4105, 21146, 315, 397, 1234, 548, 397, 315, 21146, 315, 397, 425, 1769, 3639, 289, 3639, 1815, 8867, 2932, 1564, 4105, 460, 2887, 1936, 315, 397, 1234, 548, 16, 30844, 16, 563, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1765, 620, 2279, 3234, 12, 2171, 3916, 5072, 6027, 16, 514, 1234, 548, 16, 1033, 460, 16, 1033, 30844, 13, 288, 3639, 368, 4037, 460, 598, 1158, 1936, 3639, 775, 288, 5411, 563, 273, 6027, 18, 6283, 12, 1132, 1769, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 2321, 2932, 2279, 6830, 4105, 21146, 315, 397, 1234, 548, 397, 315, 21146, 315, 397, 425, 1769, 3639, 289, 3639, 1815, 8867, 2932, 1564, 4105, 460, 2887, 1936, 315, 397, 1234, 548, 16, 30844, 16, 563, 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 ]
return logfile; }
public static synchronized PrintWriter setLogFile( PrintWriter aLogFile ) { System.getProperties( ).put( IZPACK_LOGFILE, aLogFile ); PrintWriter logfile = (PrintWriter) System.getProperties().get(IZPACK_LOGFILE); if( logfile == null ) { System.err.println( "Set::logfile == null" ); } return logfile; }
46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/buggy/src/lib/com/izforge/izpack/util/Debug.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 3852, 14071, 444, 19103, 12, 14071, 279, 19103, 262, 225, 288, 565, 2332, 18, 588, 2297, 12, 225, 262, 18, 458, 12, 467, 62, 12231, 67, 4842, 3776, 16, 279, 19103, 11272, 565, 14071, 15204, 273, 261, 5108, 2289, 13, 2332, 18, 588, 2297, 7675, 588, 12, 6867, 12231, 67, 4842, 3776, 1769, 565, 309, 12, 15204, 422, 446, 262, 565, 288, 1377, 2332, 18, 370, 18, 8222, 12, 315, 694, 2866, 28806, 422, 446, 6, 11272, 565, 289, 565, 327, 15204, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 760, 3852, 14071, 444, 19103, 12, 14071, 279, 19103, 262, 225, 288, 565, 2332, 18, 588, 2297, 12, 225, 262, 18, 458, 12, 467, 62, 12231, 67, 4842, 3776, 16, 279, 19103, 11272, 565, 14071, 15204, 273, 261, 5108, 2289, 13, 2332, 18, 588, 2297, 7675, 588, 12, 6867, 12231, 67, 4842, 3776, 1769, 565, 309, 12, 15204, 422, 446, 262, 565, 288, 1377, 2332, 18, 370, 18, 8222, 12, 315, 694, 2866, 28806, 422, 446, 6, 11272, 565, 289, 565, 327, 15204, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (Assert.VERIFY_ASSERTIONS) Assert._assert(!RefCountSpace.isGreen(object)); if (Assert.VERIFY_ASSERTIONS) Assert._assert(RefCountSpace.isBuffered(object));
if (Assert.VERIFY_ASSERTIONS) Assert._assert(!RefCountSpace.isGreen(object)); if (Assert.VERIFY_ASSERTIONS) Assert._assert(RefCountSpace.isBuffered(object));
private final void filter(ObjectReference object, ObjectReferenceDeque tgt) { // Log.write("f[");Log.write(obj);RefCountSpace.print(obj);Log.writeln("]"); if (Assert.VERIFY_ASSERTIONS) Assert._assert(!RefCountSpace.isGreen(object)); if (Assert.VERIFY_ASSERTIONS) Assert._assert(RefCountSpace.isBuffered(object)); if (RefCountSpace.isLiveRC(object)) { if (RefCountSpace.isPurple(object)) { tgt.insert(object); } else { RefCountSpace.clearBufferedBit(object); } } else { RefCountSpace.clearBufferedBit(object); freeBuffer.push(object); } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/4c66aa27cec27f8dd5902baec018ff86d7f49ee2/TrialDeletion.java/buggy/MMTk/src/org/mmtk/utility/TrialDeletion.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 727, 918, 1034, 12, 22101, 733, 16, 31321, 30873, 11680, 13, 288, 565, 368, 565, 1827, 18, 2626, 2932, 74, 63, 8863, 1343, 18, 2626, 12, 2603, 1769, 1957, 1380, 3819, 18, 1188, 12, 2603, 1769, 1343, 18, 5363, 292, 82, 2932, 4279, 1769, 565, 309, 261, 8213, 18, 23756, 67, 8423, 11539, 1146, 55, 13, 5452, 6315, 11231, 12, 5, 1957, 1380, 3819, 18, 291, 21453, 12, 1612, 10019, 565, 309, 261, 8213, 18, 23756, 67, 8423, 11539, 1146, 55, 13, 5452, 6315, 11231, 12, 1957, 1380, 3819, 18, 291, 17947, 12, 1612, 10019, 565, 309, 261, 1957, 1380, 3819, 18, 291, 12328, 11529, 12, 1612, 3719, 288, 1377, 309, 261, 1957, 1380, 3819, 18, 291, 10262, 1802, 12, 1612, 3719, 288, 3639, 11680, 18, 6387, 12, 1612, 1769, 1377, 289, 469, 288, 3639, 3941, 1380, 3819, 18, 8507, 17947, 5775, 12, 1612, 1769, 1377, 289, 565, 289, 469, 288, 1377, 3941, 1380, 3819, 18, 8507, 17947, 5775, 12, 1612, 1769, 1377, 4843, 1892, 18, 6206, 12, 1612, 1769, 565, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 727, 918, 1034, 12, 22101, 733, 16, 31321, 30873, 11680, 13, 288, 565, 368, 565, 1827, 18, 2626, 2932, 74, 63, 8863, 1343, 18, 2626, 12, 2603, 1769, 1957, 1380, 3819, 18, 1188, 12, 2603, 1769, 1343, 18, 5363, 292, 82, 2932, 4279, 1769, 565, 309, 261, 8213, 18, 23756, 67, 8423, 11539, 1146, 55, 13, 5452, 6315, 11231, 12, 5, 1957, 1380, 3819, 18, 291, 21453, 12, 1612, 10019, 565, 309, 261, 8213, 18, 23756, 67, 8423, 11539, 1146, 55, 13, 5452, 6315, 11231, 12, 1957, 1380, 3819, 18, 291, 17947, 12, 1612, 10019, 565, 309, 261, 1957, 1380, 3819, 18, 291, 12328, 11529, 12, 1612, 3719, 288, 1377, 309, 261, 1957, 1380, 3819, 18, 291, 2 ]
public String getRequiredAttributeValue(String namespace, String name)
public String getRequiredAttributeValue(String name)
public String getRequiredAttributeValue(String namespace, String name) throws IOException, XmlPullParserException;
3949 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3949/deea3a05ac00a2f7e687f264ad80beccdf37647e/XmlPullParserWrapper.java/buggy/addons/java/wrapper/src/org/xmlpull/v1/wrapper/XmlPullParserWrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 19881, 14942, 12, 780, 508, 13, 3639, 1216, 1860, 16, 5714, 9629, 25746, 31, 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, 514, 19881, 14942, 12, 780, 508, 13, 3639, 1216, 1860, 16, 5714, 9629, 25746, 31, 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 ]
}
}
void refreshInternal(final boolean recursive, final ModalityState modalityState, final boolean forceRefresh, final boolean asynchronous, final boolean noWatcher) { if (!asynchronous) { ApplicationManager.getApplication().assertWriteAccessAllowed(); } if (!isValid()) return; if (LOG.isDebugEnabled()) { LOG.debug("refreshInternal recursive = " + recursive + " asynchronous = " + asynchronous + " file = " + myName); } final PhysicalFile physicalFile = getPhysicalFile(); PhysicalFile[] childFiles = null; final boolean isDirectory; if (myChildren == null) { isDirectory = physicalFile.isDirectory(); } else { childFiles = physicalFile.listFiles(); isDirectory = childFiles != null; } if (isDirectory != myDirectoryFlag) { ourFileSystem.getManager().addEventToFireByRefresh( new Runnable() { public void run() { if (!isValid()) return; VirtualFileImpl parent = getParent(); if (parent == null) return; ourFileSystem.fireBeforeFileDeletion(null, VirtualFileImpl.this); parent.removeChild(VirtualFileImpl.this); ourFileSystem.fireFileDeleted(null, VirtualFileImpl.this, myName, myDirectoryFlag, parent); VirtualFileImpl newChild = new VirtualFileImpl(parent, physicalFile, isDirectory); parent.addChild(newChild); ourFileSystem.fireFileCreated(null, newChild); } }, asynchronous, modalityState ); return; } if (isDirectory) { if (myChildren == null) return; final int[] newIndices = new int[myChildren.length]; for (int i = 0; i < newIndices.length; i++) newIndices[i] = -1; VirtualFileImpl[] children = myChildren; for (int i = 0; i < childFiles.length; i++) { final PhysicalFile file = childFiles[i]; final String name = file.getName(); int index = -1; if (i < children.length && children[i].nameEquals(name)) { index = i; } else { for (int j = 0; j < children.length; j++) { VirtualFileImpl child = myChildren[j]; if (child.nameEquals(name)) index = j; } } if (index < 0) { ourFileSystem.getManager().addEventToFireByRefresh( new Runnable() { public void run() { if (VirtualFileImpl.this.isValid()) { if (findChild(file.getName()) != null) return; // was already created VirtualFileImpl newChild = new VirtualFileImpl( VirtualFileImpl.this, file, file.isDirectory() ); addChild(newChild); ourFileSystem.fireFileCreated(null, newChild); } } }, asynchronous, modalityState ); } else { newIndices[index] = i; } } for (int i = 0; i < children.length; i++) { final VirtualFileImpl child = children[i]; final int newIndex = newIndices[i]; if (newIndex >= 0) { final String oldName = child.getName(); final String newName = childFiles[newIndex].getName(); if (!oldName.equals(newName)) { ourFileSystem.getManager().addEventToFireByRefresh( new Runnable() { public void run() { if (child.isValid()) { ourFileSystem.fireBeforePropertyChange(null, child, VirtualFile.PROP_NAME, oldName, newName); child.setName(newName); ourFileSystem.firePropertyChanged(null, child, VirtualFile.PROP_NAME, oldName, newName); } } }, asynchronous, modalityState ); } if (recursive) { ourFileSystem.refreshInner(child, true, modalityState, asynchronous, false, noWatcher); } } else { ourFileSystem.getManager().addEventToFireByRefresh( new Runnable() { public void run() { if (child.isValid()) { ourFileSystem.fireBeforeFileDeletion(null, child); removeChild(child); ourFileSystem.fireFileDeleted(null, child, child.myName, child.myDirectoryFlag, VirtualFileImpl.this); } } }, asynchronous, modalityState ); } } } else { if (myTimeStamp > 0) { final long timeStamp = physicalFile.lastModified(); if (timeStamp != myTimeStamp || forceRefresh) { ourFileSystem.getManager().addEventToFireByRefresh( new Runnable() { public void run() { if (!forceRefresh && (timeStamp == myTimeStamp || !isValid())) return; ourFileSystem.fireBeforeContentsChange(null, VirtualFileImpl.this); long oldModificationStamp = getModificationStamp(); myTimeStamp = timeStamp; myModificationStamp = LocalTimeCounter.currentTime(); ourFileSystem.fireContentsChanged(null, VirtualFileImpl.this, oldModificationStamp); } }, asynchronous, modalityState ); } } } if (myWritableFlag != null) { final boolean isWritable = isWritable(physicalFile, isDirectory()); if (isWritable != myWritableFlag.booleanValue()) { ourFileSystem.getManager().addEventToFireByRefresh( new Runnable() { public void run() { if (!isValid()) return; ourFileSystem.fireBeforePropertyChange( null, VirtualFileImpl.this, PROP_WRITABLE, myWritableFlag, isWritable ? Boolean.TRUE : Boolean.FALSE ); myWritableFlag = isWritable ? Boolean.TRUE : Boolean.FALSE; ourFileSystem.firePropertyChanged( null, VirtualFileImpl.this, PROP_WRITABLE, isWritable ? Boolean.FALSE : Boolean.TRUE, myWritableFlag ); } }, asynchronous, modalityState ); } } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/0c50c62d516d7dbfd71cffd7cea061bd9613113a/VirtualFileImpl.java/buggy/source/com/intellij/openapi/vfs/impl/local/VirtualFileImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 4460, 3061, 12, 6385, 1250, 5904, 16, 15604, 727, 3431, 7919, 1119, 681, 7919, 1119, 16, 15604, 727, 1250, 2944, 8323, 16, 15604, 727, 1250, 9007, 16, 15604, 727, 1250, 1158, 9918, 13, 288, 565, 309, 16051, 345, 7121, 13, 288, 1377, 4257, 1318, 18, 588, 3208, 7675, 11231, 3067, 1862, 5042, 5621, 377, 289, 377, 309, 16051, 26810, 10756, 327, 31, 565, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 1377, 2018, 18, 4148, 2932, 9144, 3061, 5904, 273, 315, 397, 5904, 397, 315, 9007, 273, 315, 397, 9007, 397, 315, 585, 273, 315, 397, 3399, 461, 1769, 377, 289, 377, 727, 19712, 812, 11640, 812, 273, 21735, 7046, 812, 5621, 565, 19712, 812, 8526, 1151, 2697, 273, 446, 31, 565, 727, 1250, 10126, 31, 565, 309, 261, 4811, 4212, 422, 446, 13, 288, 1377, 10126, 273, 11640, 812, 18, 291, 2853, 5621, 377, 289, 377, 469, 288, 1377, 1151, 2697, 273, 11640, 812, 18, 1098, 2697, 5621, 1377, 10126, 273, 1151, 2697, 480, 446, 31, 377, 289, 377, 309, 261, 291, 2853, 480, 3399, 2853, 4678, 13, 288, 1377, 3134, 11785, 18, 588, 1318, 7675, 1289, 1133, 774, 9723, 858, 8323, 12, 3639, 394, 10254, 1435, 288, 1850, 1071, 918, 1086, 1435, 288, 5411, 309, 16051, 26810, 10756, 327, 31, 5411, 7269, 812, 2828, 982, 273, 5089, 5621, 5411, 309, 261, 2938, 422, 446, 13, 327, 31, 5411, 3134, 11785, 18, 12179, 4649, 812, 13064, 12, 2011, 16, 7269, 812, 2828, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 4460, 3061, 12, 6385, 1250, 5904, 16, 15604, 727, 3431, 7919, 1119, 681, 7919, 1119, 16, 15604, 727, 1250, 2944, 8323, 16, 15604, 727, 1250, 9007, 16, 15604, 727, 1250, 1158, 9918, 13, 288, 565, 309, 16051, 345, 7121, 13, 288, 1377, 4257, 1318, 18, 588, 3208, 7675, 11231, 3067, 1862, 5042, 5621, 377, 289, 377, 309, 16051, 26810, 10756, 327, 31, 565, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 1377, 2018, 18, 4148, 2932, 9144, 3061, 5904, 273, 315, 397, 5904, 397, 315, 9007, 273, 315, 397, 9007, 397, 315, 585, 273, 315, 397, 3399, 461, 1769, 377, 289, 377, 727, 19712, 812, 11640, 812, 273, 21735, 7046, 812, 5621, 565, 19712, 812, 8526, 2 ]
iVisitor.visitDotNode(this); }
iVisitor.visitDotNode(this); }
public void accept(NodeVisitor iVisitor) { iVisitor.visitDotNode(this); }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/3b95e6f239598e8fb886e0afdcc7358c9a96d8de/DotNode.java/clean/org/jruby/nodes/DotNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2791, 12, 907, 7413, 277, 7413, 13, 288, 3639, 277, 7413, 18, 11658, 10412, 907, 12, 2211, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 2791, 12, 907, 7413, 277, 7413, 13, 288, 3639, 277, 7413, 18, 11658, 10412, 907, 12, 2211, 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 ]
return fatal; }
return fatal; }
public RubyClass getFatal() { return fatal; }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyExceptions.java/clean/org/jruby/runtime/RubyExceptions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 797, 2812, 3145, 1435, 288, 202, 202, 2463, 10081, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19817, 797, 2812, 3145, 1435, 288, 202, 202, 2463, 10081, 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, -100, -100, -100 ]
Atom atom = new Atom("C");
Atom atom = builder.newAtom("C");
public void testClone_Charge() { Atom atom = new Atom("C"); atom.setCharge(1.0); Atom clone = (Atom)atom.clone(); // test cloning atom.setCharge(5.0); assertEquals(1.0, clone.getCharge(), 0.001); }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/2569471249d8066c9cb1c037569a570e039ed288/AtomTest.java/clean/src/org/openscience/cdk/test/AtomTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 10930, 67, 17649, 1435, 288, 3639, 7149, 3179, 273, 2089, 18, 2704, 3641, 2932, 39, 8863, 3639, 3179, 18, 542, 17649, 12, 21, 18, 20, 1769, 3639, 7149, 3236, 273, 261, 3641, 13, 7466, 18, 14056, 5621, 3639, 368, 1842, 927, 22470, 3639, 3179, 18, 542, 17649, 12, 25, 18, 20, 1769, 3639, 1815, 8867, 12, 21, 18, 20, 16, 3236, 18, 588, 17649, 9334, 374, 18, 11664, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 10930, 67, 17649, 1435, 288, 3639, 7149, 3179, 273, 2089, 18, 2704, 3641, 2932, 39, 8863, 3639, 3179, 18, 542, 17649, 12, 21, 18, 20, 1769, 3639, 7149, 3236, 273, 261, 3641, 13, 7466, 18, 14056, 5621, 3639, 368, 1842, 927, 22470, 3639, 3179, 18, 542, 17649, 12, 25, 18, 20, 1769, 3639, 1815, 8867, 12, 21, 18, 20, 16, 3236, 18, 588, 17649, 9334, 374, 18, 11664, 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 ]
layout.addShowViewShortcut(SearchUI.SEARCH_VIEW_ID);
layout.addShowViewShortcut(NewSearchUI.SEARCH_VIEW_ID);
public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); IFolderLayout folder= layout.createFolder("left", IPageLayout.LEFT, (float)0.25, editorArea); //$NON-NLS-1$ folder.addView(JavaUI.ID_TYPE_HIERARCHY); folder.addPlaceholder(IPageLayout.ID_OUTLINE); folder.addPlaceholder(JavaUI.ID_PACKAGES); folder.addPlaceholder(IPageLayout.ID_RES_NAV); IPlaceholderFolderLayout outputfolder= layout.createPlaceholderFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea); //$NON-NLS-1$ outputfolder.addPlaceholder(IPageLayout.ID_PROBLEM_VIEW); outputfolder.addPlaceholder(SearchUI.SEARCH_VIEW_ID); outputfolder.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW); outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS); outputfolder.addPlaceholder(JavaUI.ID_SOURCE_VIEW); outputfolder.addPlaceholder(JavaUI.ID_JAVADOC_VIEW); layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET); layout.addActionSet(JavaUI.ID_ACTION_SET); layout.addActionSet(JavaUI.ID_ELEMENT_CREATION_ACTION_SET); // views - java layout.addShowViewShortcut(JavaUI.ID_PACKAGES); layout.addShowViewShortcut(JavaUI.ID_TYPE_HIERARCHY); layout.addShowViewShortcut(SearchUI.SEARCH_VIEW_ID); // views - debugging layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW); // views - standard workbench layout.addShowViewShortcut(IPageLayout.ID_OUTLINE); layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW); layout.addShowViewShortcut(IPageLayout.ID_RES_NAV); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/bd9f155b83b6e2248c019c2e9d9a397ba51fd078/JavaHierarchyPerspectiveFactory.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaHierarchyPerspectiveFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 4435, 3744, 12, 45, 1964, 3744, 3511, 13, 288, 3196, 202, 780, 4858, 5484, 273, 3511, 18, 588, 6946, 5484, 5621, 9506, 202, 45, 3899, 3744, 3009, 33, 3511, 18, 2640, 3899, 2932, 4482, 3113, 467, 1964, 3744, 18, 10066, 16, 261, 5659, 13, 20, 18, 2947, 16, 4858, 5484, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 5609, 18, 1289, 1767, 12, 5852, 5370, 18, 734, 67, 2399, 67, 29994, 654, 10586, 61, 1769, 3196, 202, 5609, 18, 1289, 14038, 12, 45, 1964, 3744, 18, 734, 67, 5069, 5997, 1769, 202, 202, 5609, 18, 1289, 14038, 12, 5852, 5370, 18, 734, 67, 19077, 55, 1769, 202, 202, 5609, 18, 1289, 14038, 12, 45, 1964, 3744, 18, 734, 67, 7031, 67, 50, 5856, 1769, 9506, 202, 45, 14038, 3899, 3744, 876, 5609, 33, 3511, 18, 2640, 14038, 3899, 2932, 9176, 3113, 467, 1964, 3744, 18, 28891, 16, 261, 5659, 13, 20, 18, 5877, 16, 4858, 5484, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 2844, 5609, 18, 1289, 14038, 12, 45, 1964, 3744, 18, 734, 67, 3373, 38, 26817, 67, 12145, 1769, 202, 202, 2844, 5609, 18, 1289, 14038, 12, 2979, 5370, 18, 17251, 67, 12145, 67, 734, 1769, 202, 202, 2844, 5609, 18, 1289, 14038, 12, 45, 10215, 2918, 18, 734, 67, 2248, 3584, 900, 67, 12145, 1769, 202, 202, 2844, 5609, 18, 1289, 14038, 12, 45, 1964, 3744, 18, 734, 67, 28163, 12693, 55, 1769, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 4435, 3744, 12, 45, 1964, 3744, 3511, 13, 288, 3196, 202, 780, 4858, 5484, 273, 3511, 18, 588, 6946, 5484, 5621, 9506, 202, 45, 3899, 3744, 3009, 33, 3511, 18, 2640, 3899, 2932, 4482, 3113, 467, 1964, 3744, 18, 10066, 16, 261, 5659, 13, 20, 18, 2947, 16, 4858, 5484, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 5609, 18, 1289, 1767, 12, 5852, 5370, 18, 734, 67, 2399, 67, 29994, 654, 10586, 61, 1769, 3196, 202, 5609, 18, 1289, 14038, 12, 45, 1964, 3744, 18, 734, 67, 5069, 5997, 1769, 202, 202, 5609, 18, 1289, 14038, 12, 5852, 5370, 18, 734, 67, 19077, 55, 1769, 202, 202, 5609, 18, 1289, 14038, 2 ]
setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(),
setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(),
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } // The "align" attribute is deprecated. This needs to be removed when // the "align" attribute is finally removed. try { setAlign((String) evalAttr("align", getAlign(), String.class)); } catch (NullAttributeException ex) { setAlign(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setBorder((String) evalAttr("border", getBorder(), String.class)); } catch (NullAttributeException ex) { setBorder(null); } try { setBundle((String) evalAttr("bundle", getBundle(), String.class)); } catch (NullAttributeException ex) { setBundle(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setLocale((String) evalAttr("locale", getLocale(), String.class)); } catch (NullAttributeException ex) { setLocale(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setPage((String) evalAttr("page", getPage(), String.class)); } catch (NullAttributeException ex) { setPage(null); } try { setPageKey((String) evalAttr("pageKey", getPageKey(), String.class)); } catch (NullAttributeException ex) { setPageKey(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setSrc((String) evalAttr("src", getSrc(), String.class)); } catch (NullAttributeException ex) { setSrc(null); } try { setSrcKey((String) evalAttr("srcKey", getSrcKey(), String.class)); } catch (NullAttributeException ex) { setSrcKey(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/db064e19656421b94aaf753550935d95f44bd5f9/ELImageTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELImageTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 1862, 856, 12, 2011, 1769, 3639, 289, 3639, 368, 225, 1021, 315, 7989, 6, 1566, 353, 6849, 18, 225, 1220, 4260, 358, 506, 3723, 1347, 3639, 368, 225, 326, 315, 7989, 6, 1566, 353, 3095, 3723, 18, 3639, 775, 288, 5411, 444, 10044, 12443, 780, 13, 5302, 3843, 2932, 7989, 3113, 336, 10044, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10044, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 653, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 25715, 12443, 780, 13, 5302, 3843, 2932, 8815, 3113, 2882, 1019, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 25715, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 3405, 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, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 1862, 856, 12, 2011, 1769, 3639, 289, 3639, 368, 225, 1021, 315, 7989, 6, 1566, 353, 6849, 18, 225, 1220, 4260, 358, 506, 3723, 1347, 3639, 368, 225, 326, 315, 7989, 6, 1566, 353, 3095, 3723, 18, 3639, 775, 288, 5411, 444, 10044, 12443, 780, 13, 5302, 3843, 2932, 7989, 3113, 336, 10044, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10044, 12, 2011, 2 ]
this.arg0 = arg0;
this.arg0 = arg0;
public void setArg0(String arg0) { this.arg0 = arg0; }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/84efaca353d1744bb1552a9b539287cb8320e07b/MessageTag.java/buggy/src/share/org/apache/struts/taglib/bean/MessageTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 4117, 20, 12, 780, 1501, 20, 13, 288, 202, 2211, 18, 3175, 20, 273, 1501, 20, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 4117, 20, 12, 780, 1501, 20, 13, 288, 202, 2211, 18, 3175, 20, 273, 1501, 20, 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 ]
throw new TypeError(getRuntime(), "not a java object: " + object);
throw getRuntime().newTypeError("not a java object: " + object);
public JavaObject set_value(IRubyObject object, IRubyObject value) { if (! (object instanceof JavaObject)) { throw new TypeError(getRuntime(), "not a java object: " + object); } if (! (value instanceof JavaObject)) { throw new TypeError(getRuntime(), "not a java object:" + value); } Object javaObject = ((JavaObject) object).getValue(); try { Object convertedValue = JavaUtil.convertArgument(((JavaObject) value).getValue(), field.getType()); field.set(javaObject, convertedValue); } catch (IllegalAccessException iae) { throw new TypeError(getRuntime(), "illegal access on setting variable: " + iae.getMessage()); } catch (IllegalArgumentException iae) { throw new TypeError(getRuntime(), "wrong type for " + field.getType().getName() + ": " + ((JavaObject) value).getValue().getClass().getName()); } return (JavaObject) value; }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaField.java/clean/src/org/jruby/javasupport/JavaField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5110, 921, 444, 67, 1132, 12, 7937, 10340, 921, 733, 16, 15908, 10340, 921, 460, 13, 288, 540, 309, 16051, 261, 1612, 1276, 5110, 921, 3719, 288, 5411, 604, 18814, 7675, 2704, 19030, 2932, 902, 279, 2252, 733, 30, 315, 397, 733, 1769, 3639, 289, 3639, 309, 16051, 261, 1132, 1276, 5110, 921, 3719, 288, 5411, 604, 394, 3580, 12, 588, 5576, 9334, 315, 902, 279, 2252, 733, 2773, 397, 460, 1769, 3639, 289, 3639, 1033, 2252, 921, 273, 14015, 5852, 921, 13, 733, 2934, 24805, 5621, 3639, 775, 288, 5411, 1033, 5970, 620, 273, 5110, 1304, 18, 6283, 1379, 12443, 12, 5852, 921, 13, 460, 2934, 24805, 9334, 4766, 11794, 652, 18, 588, 559, 10663, 5411, 652, 18, 542, 12, 6290, 921, 16, 5970, 620, 1769, 3639, 289, 1044, 261, 12195, 9773, 30905, 13, 288, 5411, 604, 394, 3580, 12, 588, 5576, 9334, 27573, 315, 31751, 2006, 603, 3637, 2190, 30, 315, 397, 30905, 18, 24906, 10663, 3639, 289, 1044, 261, 31237, 30905, 13, 288, 5411, 604, 394, 3580, 12, 588, 5576, 9334, 27573, 315, 21530, 618, 364, 315, 397, 652, 18, 588, 559, 7675, 17994, 1435, 397, 6398, 315, 397, 27573, 14015, 5852, 921, 13, 460, 2934, 24805, 7675, 588, 797, 7675, 17994, 10663, 3639, 289, 3639, 327, 261, 5852, 921, 13, 460, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5110, 921, 444, 67, 1132, 12, 7937, 10340, 921, 733, 16, 15908, 10340, 921, 460, 13, 288, 540, 309, 16051, 261, 1612, 1276, 5110, 921, 3719, 288, 5411, 604, 18814, 7675, 2704, 19030, 2932, 902, 279, 2252, 733, 30, 315, 397, 733, 1769, 3639, 289, 3639, 309, 16051, 261, 1132, 1276, 5110, 921, 3719, 288, 5411, 604, 394, 3580, 12, 588, 5576, 9334, 315, 902, 279, 2252, 733, 2773, 397, 460, 1769, 3639, 289, 3639, 1033, 2252, 921, 273, 14015, 5852, 921, 13, 733, 2934, 24805, 5621, 3639, 775, 288, 5411, 1033, 5970, 620, 273, 5110, 1304, 18, 6283, 1379, 12443, 12, 5852, 921, 13, 460, 2934, 24805, 9334, 4766, 11794, 652, 18, 588, 559, 10663, 5411, 2 ]
String label = null;;
protected JComponent buildComponent(Element current) { String tag = current.getTagName(); JComponent comp = null; String label = null;; // menu tag if (tag.equals(menu_tag)) { Node node; JMenu menu = new MenuCtrl(); String my_id = current.getAttribute(id_attr); comp = menu; label = getReferencedLabel(current, label_attr); if (label != null) ((JMenuItem)comp).setText(label); menu.setActionCommand(my_id); node = current.getFirstChild().getNextSibling(); // loop through all its children while (node != null) { processNode(node, menu); node = node.getNextSibling(); } } else if (tag.equals(menuitem_tag)) { // menuitem tag String type = current.getAttribute(type_attr); UIAction action; // which type of menuitem? if (type.equals("")) { // no type ? it's a regular menuitem comp = buildMenuItem(current); } else if (type.equals(separator_attr)) { // separator comp = buildSeparator(current); } else if (type.equals(checkbox_attr)) { // checkboxes comp = buildCheckBoxMenuItem(current); } else if (type.equals(radio_attr)) { // radio comp = buildRadioMenuItem(current); } } comp.setFont(new Font("Helvetica", Font.PLAIN, 12)); return comp; }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/a112eda973917bda5c74cb0ead33e27e85fdf535/XMLMenuBuilder.java/clean/grendel/ui/XMLMenuBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 29058, 1361, 1841, 12, 1046, 783, 13, 288, 565, 514, 1047, 273, 783, 18, 588, 8520, 5621, 565, 29058, 1161, 273, 446, 31, 6647, 368, 3824, 1047, 565, 309, 261, 2692, 18, 14963, 12, 5414, 67, 2692, 3719, 288, 1377, 2029, 756, 31, 1377, 804, 4599, 3824, 273, 394, 9809, 12418, 5621, 1377, 514, 3399, 67, 350, 273, 783, 18, 588, 1499, 12, 350, 67, 1747, 1769, 1377, 1161, 273, 3824, 31, 1377, 1433, 273, 13223, 72, 2224, 12, 2972, 16, 1433, 67, 1747, 1769, 1377, 309, 261, 1925, 480, 446, 13, 14015, 46, 12958, 13, 2919, 2934, 542, 1528, 12, 1925, 1769, 1377, 3824, 18, 542, 1803, 2189, 12, 4811, 67, 350, 1769, 1377, 756, 273, 783, 18, 588, 3759, 1763, 7675, 588, 2134, 10291, 5621, 1377, 368, 2798, 3059, 777, 2097, 2325, 1377, 1323, 261, 2159, 480, 446, 13, 288, 3639, 1207, 907, 12, 2159, 16, 3824, 1769, 3639, 756, 273, 756, 18, 588, 2134, 10291, 5621, 1377, 289, 565, 289, 469, 309, 261, 2692, 18, 14963, 12, 5414, 1726, 67, 2692, 3719, 288, 368, 3824, 1726, 1047, 1377, 514, 618, 273, 783, 18, 588, 1499, 12, 723, 67, 1747, 1769, 1377, 6484, 1803, 1301, 31, 5411, 368, 1492, 618, 434, 3824, 1726, 35, 1377, 309, 261, 723, 18, 14963, 2932, 6, 3719, 288, 540, 368, 1158, 618, 692, 518, 1807, 279, 6736, 3824, 1726, 3639, 1161, 273, 1361, 12958, 12, 2972, 1769, 1377, 289, 469, 309, 261, 723, 18, 14963, 12, 11287, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 29058, 1361, 1841, 12, 1046, 783, 13, 288, 565, 514, 1047, 273, 783, 18, 588, 8520, 5621, 565, 29058, 1161, 273, 446, 31, 6647, 368, 3824, 1047, 565, 309, 261, 2692, 18, 14963, 12, 5414, 67, 2692, 3719, 288, 1377, 2029, 756, 31, 1377, 804, 4599, 3824, 273, 394, 9809, 12418, 5621, 1377, 514, 3399, 67, 350, 273, 783, 18, 588, 1499, 12, 350, 67, 1747, 1769, 1377, 1161, 273, 3824, 31, 1377, 1433, 273, 13223, 72, 2224, 12, 2972, 16, 1433, 67, 1747, 1769, 1377, 309, 261, 1925, 480, 446, 13, 14015, 46, 12958, 13, 2919, 2934, 542, 1528, 12, 1925, 1769, 1377, 3824, 18, 542, 1803, 2189, 12, 4811, 67, 350, 1769, 1377, 756, 273, 2 ]
IASTName[] decls = tu.getDeclarations(name_pfv1.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_pfv);
IASTName[] decls = tu.getDeclarations(name_pfv1.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_pfv);
public void testTypedefExample4b() throws Exception { StringBuffer buffer = new StringBuffer("typedef void DWORD;\n"); //$NON-NLS-1$ buffer.append("typedef DWORD (*pfv)(int);\n"); //$NON-NLS-1$ buffer.append("pfv signal(int, pfv);\n"); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.C); IASTSimpleDeclaration decl1 = (IASTSimpleDeclaration) tu .getDeclarations()[0]; ITypedef dword = (ITypedef) decl1.getDeclarators()[0].getName() .resolveBinding(); IType dword_t = dword.getType(); assertTrue(dword_t instanceof IBasicType); assertEquals(((IBasicType) dword_t).getType(), IBasicType.t_void); IASTSimpleDeclaration decl2 = (IASTSimpleDeclaration) tu .getDeclarations()[1]; ITypedef pfv = (ITypedef) decl2.getDeclarators()[0].getNestedDeclarator() .getName().resolveBinding(); IType pfv_t_1 = pfv.getType(); assertTrue(pfv_t_1 instanceof IPointerType); IType pfv_t_2 = ((IPointerType) pfv_t_1).getType(); assertTrue(pfv_t_2 instanceof IFunctionType); IType pfv_t_2_ret_1 = ((IFunctionType) pfv_t_2).getReturnType(); assertTrue(pfv_t_2_ret_1 instanceof ITypedef); IType pfv_t_2_ret_2 = ((ITypedef) pfv_t_2_ret_1).getType(); assertTrue(pfv_t_2_ret_2 instanceof IBasicType); assertEquals(((IBasicType) pfv_t_2_ret_2).getType(), IBasicType.t_void); assertTrue(((ITypedef) pfv_t_2_ret_1).getName().equals("DWORD")); //$NON-NLS-1$ IType pfv_t_2_parm = ((IFunctionType) pfv_t_2).getParameterTypes()[0]; assertTrue(pfv_t_2_parm instanceof IBasicType); assertEquals(((IBasicType) pfv_t_2_parm).getType(), IBasicType.t_int); IASTSimpleDeclaration decl3 = (IASTSimpleDeclaration) tu .getDeclarations()[2]; IFunction signal = (IFunction) decl3.getDeclarators()[0].getName() .resolveBinding(); IFunctionType signal_t = signal.getType(); IType signal_ret_1 = signal_t.getReturnType(); assertTrue(signal_ret_1 instanceof ITypedef); IType signal_ret_2 = ((ITypedef) signal_ret_1).getType(); assertTrue(signal_ret_2 instanceof IPointerType); IType signal_ret_3 = ((IPointerType) signal_ret_2).getType(); assertTrue(signal_ret_3 instanceof IFunctionType); IType signal_ret_ret_1 = ((IFunctionType) signal_ret_3).getReturnType(); assertTrue(signal_ret_ret_1 instanceof ITypedef); IType signal_ret_ret_2 = ((ITypedef) signal_ret_ret_1).getType(); assertTrue(signal_ret_ret_2 instanceof IBasicType); assertEquals(((IBasicType) signal_ret_ret_2).getType(), IBasicType.t_void); assertTrue(((ITypedef) signal_ret_ret_1).getName().equals("DWORD")); //$NON-NLS-1$ IType signal_parm_t1 = signal_t.getParameterTypes()[0]; assertTrue(signal_parm_t1 instanceof IBasicType); assertEquals(((IBasicType) signal_parm_t1).getType(), IBasicType.t_int); IType signal_parm_t2 = signal_t.getParameterTypes()[1]; assertTrue(signal_parm_t2 instanceof ITypedef); IType signal_parm_t2_1 = ((ITypedef) signal_parm_t2).getType(); assertTrue(signal_parm_t2_1 instanceof IPointerType); IType signal_parm_t2_2 = ((IPointerType) signal_parm_t2_1).getType(); assertTrue(signal_parm_t2_2 instanceof IFunctionType); IType signal_parm_t2_ret_1 = ((IFunctionType) signal_parm_t2_2) .getReturnType(); assertTrue(signal_parm_t2_ret_1 instanceof ITypedef); IType signal_parm_t2_ret_2 = ((ITypedef) signal_parm_t2_ret_1).getType(); assertTrue(signal_parm_t2_ret_2 instanceof IBasicType); assertEquals(((IBasicType) signal_parm_t2_ret_2).getType(), IBasicType.t_void); assertTrue(((ITypedef) signal_parm_t2_ret_1).getName().equals("DWORD")); //$NON-NLS-1$ // test tu.getDeclarations(IBinding) IASTName name_pfv = decl2.getDeclarators()[0].getNestedDeclarator() .getName(); IASTName name_pfv1 = ((IASTNamedTypeSpecifier) decl3.getDeclSpecifier()) .getName(); IASTName name_pfv2 = ((IASTNamedTypeSpecifier) ((IASTStandardFunctionDeclarator) decl3 .getDeclarators()[0]).getParameters()[1].getDeclSpecifier()) .getName(); IASTName[] decls = tu.getDeclarations(name_pfv1.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_pfv); decls = tu.getDeclarations(name_pfv2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_pfv); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/98145350e052e39e57313251e0f805a20472a08d/AST2Tests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 559, 536, 10908, 24, 70, 1435, 1216, 1185, 288, 1377, 6674, 1613, 273, 394, 6674, 2932, 723, 536, 918, 463, 7952, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 1613, 18, 6923, 2932, 723, 536, 463, 7952, 261, 14, 14241, 90, 21433, 474, 20472, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 1613, 18, 6923, 2932, 14241, 90, 4277, 12, 474, 16, 10811, 90, 20472, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 467, 9053, 6717, 2802, 28325, 273, 1109, 12, 4106, 18, 10492, 9334, 6783, 3779, 18, 39, 1769, 1377, 467, 9053, 5784, 6094, 3496, 21, 273, 261, 45, 9053, 5784, 6094, 13, 28325, 5411, 263, 588, 21408, 1435, 63, 20, 15533, 1377, 467, 559, 536, 302, 1095, 273, 261, 45, 559, 536, 13, 3496, 21, 18, 588, 3456, 297, 3062, 1435, 63, 20, 8009, 17994, 1435, 5411, 263, 10828, 5250, 5621, 1377, 467, 559, 302, 1095, 67, 88, 273, 302, 1095, 18, 588, 559, 5621, 1377, 1815, 5510, 12, 72, 1095, 67, 88, 1276, 467, 8252, 559, 1769, 1377, 1815, 8867, 12443, 12, 45, 8252, 559, 13, 302, 1095, 67, 88, 2934, 588, 559, 9334, 467, 8252, 559, 18, 88, 67, 6459, 1769, 1377, 467, 9053, 5784, 6094, 3496, 22, 273, 261, 45, 9053, 5784, 6094, 13, 28325, 5411, 263, 588, 21408, 1435, 63, 21, 15533, 1377, 467, 559, 536, 10811, 90, 273, 261, 45, 559, 536, 13, 3496, 22, 18, 588, 3456, 297, 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, 1842, 559, 536, 10908, 24, 70, 1435, 1216, 1185, 288, 1377, 6674, 1613, 273, 394, 6674, 2932, 723, 536, 918, 463, 7952, 9747, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 1613, 18, 6923, 2932, 723, 536, 463, 7952, 261, 14, 14241, 90, 21433, 474, 20472, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 1613, 18, 6923, 2932, 14241, 90, 4277, 12, 474, 16, 10811, 90, 20472, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 467, 9053, 6717, 2802, 28325, 273, 1109, 12, 4106, 18, 10492, 9334, 6783, 3779, 18, 39, 1769, 1377, 467, 9053, 5784, 6094, 3496, 21, 273, 261, 45, 9053, 5784, 6094, 13, 28325, 5411, 263, 588, 2 ]
double ld = ((Number)lChild.getDatum()).doubleValue();
double ld = lChild.getDouble();
void foldConstants(Node n, Node parent){ Node lChild, rChild=null; // children lChild = n.getFirstChild(); if(lChild == null){ // no children -- exit return; }else{ rChild = lChild.getNextSibling(); if(rChild == null){ foldConstants(lChild, n); // one child -- recurse return; } } /* o.w. two children -- recurse on both first and proceed */ foldConstants(lChild, n); foldConstants(rChild, n); /* take care of all the other children */ Node child = rChild.getNextSibling(); while (child != null) { foldConstants(child, n); child = child.getNextSibling(); } /* children can change, so recompute them */ lChild = n.getFirstChild(); if(lChild == null){ // no children -- exit return; }else{ rChild = lChild.getNextSibling(); if(rChild == null){ return; } } /* at this point n has two children or more */ int lt = lChild.getType(); int rt = rChild.getType(); /* two or more children */ switch(n.getType()){ /* numerical addition and string concatenation */ case TokenStream.ADD: /* number addition -- both numbers */ if(lt == TokenStream.NUMBER && rt == TokenStream.NUMBER){ if(lChild.getDatum() instanceof Double || rChild.getDatum() instanceof Double){ parent.replaceChild(n, new Node(TokenStream.NUMBER, new Double(lChild.getDouble() + rChild.getDouble()))); }else{ long longval = lChild.getLong() + rChild.getLong(); parent.replaceChild(n, new Node(TokenStream.NUMBER, toSmallestType(longval))); } }else /* string + string */ if(lt == TokenStream.STRING && rt == TokenStream.STRING){ parent.replaceChild(n, new Node(TokenStream.STRING, lChild.getString() + rChild.getString())); }else /* string + num */ if(lt == TokenStream.STRING && rt == TokenStream.NUMBER){ parent.replaceChild(n, new Node(TokenStream.STRING, lChild.getString() + ScriptRuntime.numberToString(rChild.getDouble(), 10))); }else /* num + string */ if(lt == TokenStream.NUMBER && rt == TokenStream.STRING){ parent.replaceChild(n, new Node(TokenStream.STRING, ScriptRuntime.numberToString(lChild.getDouble(), 10) + rChild.getString())); } /* can't do anything if we don't know both types - since 0 + object is supposed to call toString on the object and do string concantenation rather than addition */ break; /* subtraction */ case TokenStream.SUB: /* both numbers */ if(lt == TokenStream.NUMBER && rt == TokenStream.NUMBER){ if(lChild.getDatum() instanceof Double || rChild.getDatum() instanceof Double){ parent.replaceChild(n, new Node(TokenStream.NUMBER, new Double(lChild.getDouble() - rChild.getDouble()))); }else{ long longval = lChild.getLong() - rChild.getLong(); parent.replaceChild(n, new Node(TokenStream.NUMBER, toSmallestType(longval))); } }else /* first 0: 0-x -> -x */ if(lt == TokenStream.NUMBER && lChild.getDouble() == 0){ parent.replaceChild(n, new Node(TokenStream.UNARYOP, rChild, new Integer(TokenStream.SUB))); }else /* second 0: x-0 -> x */ if(rt == TokenStream.NUMBER && rChild.getDouble() == 0){ parent.replaceChild(n, lChild); } break; /* handle multiplication by zero and one */ case TokenStream.MUL: /* both constants -- just multiply */ if(lt == TokenStream.NUMBER && rt == TokenStream.NUMBER){ /* at least one double */ if(lChild.getDatum() instanceof Double || rChild.getDatum() instanceof Double){ parent.replaceChild(n, new Node(TokenStream.NUMBER, new Double(lChild.getDouble() * rChild.getDouble()))); }else{ long longval = lChild.getLong() * rChild.getLong(); parent.replaceChild(n, new Node(TokenStream.NUMBER, toSmallestType(longval))); } /* one of them is constant -- zero or one */ /* can't do zero, since zero * infinity has to become a NaN */ }else{ if(lt == TokenStream.NUMBER){ double ld = ((Number)lChild.getDatum()).doubleValue(); if(ld == 1){ parent.replaceChild(n, rChild); } }else if(rt == TokenStream.NUMBER){ double rd = ((Number)rChild.getDatum()).doubleValue(); if(rd == 1){ parent.replaceChild(n, lChild); } } } break; case TokenStream.DIV: /* both constants -- just divide */ if(lt == TokenStream.NUMBER && rt == TokenStream.NUMBER){ /* at least one double */ if((lChild.getDatum() instanceof Double || rChild.getDatum() instanceof Double)){ double d = rChild.getDouble(); if(d == 0) return; // division by zero else parent.replaceChild(n, new Node(TokenStream.NUMBER, new Double(lChild.getDouble() / d))); }else{ int d = rChild.getInt(); if(d == 0) return; // division by zero else{ long longval = lChild.getLong() / rChild.getLong(); parent.replaceChild(n, new Node(TokenStream.NUMBER, toSmallestType(longval))); } } /* 0/x , x!=0 */ }else /* x/1 */ if((rt == TokenStream.NUMBER) && // added cast -roger rChild.getDouble()==1){ parent.replaceChild(n, lChild); } break; case TokenStream.AND: /* if the first one is false, replace with FALSE */ if( ((lt == TokenStream.PRIMARY && lChild.getInt() == TokenStream.NULL) || (lt == TokenStream.PRIMARY && lChild.getInt() == TokenStream.UNDEFINED)) && !IRFactory.hasSideEffects(rChild) ){ parent.replaceChild(n, new Node(TokenStream.PRIMARY, new Integer(TokenStream.FALSE))); }else /* if the second one is false, replace with FALSE */ if( ((rt==TokenStream.PRIMARY && rChild.getInt()==TokenStream.NULL) || (rt==TokenStream.PRIMARY && rChild.getInt()==TokenStream.UNDEFINED)) && !IRFactory.hasSideEffects(lChild) ){ parent.replaceChild(n, new Node(TokenStream.PRIMARY, new Integer(TokenStream.FALSE))); }else /* if first is true, set to second */ if( (lt == TokenStream.PRIMARY && ((Integer)lChild.getDatum()).intValue() == TokenStream.TRUE) || (lt == TokenStream.NUMBER && ((Number)lChild.getDatum()).doubleValue() != 0) ){ parent.replaceChild(n, rChild); }else /* if second is true, set to first */ if( (rt == TokenStream.PRIMARY && ((Integer)rChild.getDatum()).intValue() == TokenStream.TRUE) || (rt == TokenStream.NUMBER && ((Number)rChild.getDatum()).doubleValue() != 0) ){ parent.replaceChild(n, lChild); } break; case TokenStream.OR: /* if first is false, set to second */ if( (lt == TokenStream.PRIMARY && lChild.getInt() == TokenStream.NULL) || (lt == TokenStream.PRIMARY && lChild.getInt() == TokenStream.UNDEFINED) || (lt == TokenStream.PRIMARY && lChild.getInt() == TokenStream.FALSE) || (lt == TokenStream.NUMBER && ((Number)lChild.getDatum()).doubleValue() == 0) ){ parent.replaceChild(n, rChild); }else /* if second is true, set to first */ if( (rt == TokenStream.PRIMARY && rChild.getInt() == TokenStream.NULL) || (rt == TokenStream.PRIMARY && rChild.getInt() == TokenStream.UNDEFINED) || (rt == TokenStream.PRIMARY && rChild.getInt() == TokenStream.FALSE) || (rt == TokenStream.NUMBER && ((Number)rChild.getDatum()).doubleValue() == 0) ){ parent.replaceChild(n, lChild); }else /* if first one is true, replace with TRUE */ if( ((lt == TokenStream.PRIMARY && ((Integer)lChild.getDatum()).intValue() == TokenStream.TRUE) || (lt == TokenStream.NUMBER && ((Number)lChild.getDatum()).doubleValue() != 0)) && !IRFactory.hasSideEffects(rChild) ){ parent.replaceChild(n, new Node(TokenStream.PRIMARY, new Integer(TokenStream.TRUE))); }else /* if second one is true, replace with TRUE */ if( ((rt == TokenStream.PRIMARY && ((Integer)rChild.getDatum()).intValue() == TokenStream.TRUE) || (rt == TokenStream.NUMBER && ((Number)rChild.getDatum()).doubleValue() != 0)) && !IRFactory.hasSideEffects(lChild) ){ parent.replaceChild(n, new Node(TokenStream.PRIMARY, new Integer(TokenStream.TRUE))); } break; case TokenStream.BLOCK: /* if statement */ if(lChild.getType() == TokenStream.IFNE){ Node condition = lChild.getFirstChild(); /* if(false) -> replace by the else clause if it exists */ if(condition.getType() == TokenStream.PRIMARY){ int id = condition.getInt(); if(id == TokenStream.FALSE||id == TokenStream.NULL||id == TokenStream.UNDEFINED){ Node elseClause = null; try{ elseClause = rChild.getNextSibling().getNextSibling().getNextSibling().getFirstChild(); }catch(Exception e){ return; } if(elseClause != null){ parent.replaceChild(n, elseClause); } /* if(true) -> replace by the then clause if it exists */ }else if((condition.getType() == TokenStream.PRIMARY && condition.getInt() == TokenStream.TRUE) || (condition.getType() == TokenStream.NUMBER && ((Number)condition.getDatum()).doubleValue() != 0)) { if(rChild.getType() == TokenStream.BLOCK){ parent.replaceChild(n, rChild.getFirstChild()); } } } } break; }//switch }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/dfdc492a06d12db18bbb6e0ac0de6e19784f642d/Optimizer.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Optimizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 11590, 2918, 12, 907, 290, 16, 2029, 982, 15329, 3639, 2029, 328, 1763, 16, 436, 1763, 33, 2011, 31, 6647, 368, 2325, 3639, 328, 1763, 273, 290, 18, 588, 3759, 1763, 5621, 3639, 309, 12, 80, 1763, 422, 446, 15329, 1171, 368, 1158, 2325, 1493, 2427, 5411, 327, 31, 3639, 289, 12107, 95, 5411, 436, 1763, 273, 328, 1763, 18, 588, 2134, 10291, 5621, 5411, 309, 12, 86, 1763, 422, 446, 15329, 7734, 11590, 2918, 12, 80, 1763, 16, 290, 1769, 282, 368, 1245, 1151, 1493, 11502, 7734, 327, 31, 5411, 289, 3639, 289, 3639, 1748, 320, 18, 91, 18, 2795, 2325, 1493, 11502, 603, 3937, 1122, 471, 11247, 1195, 3639, 11590, 2918, 12, 80, 1763, 16, 290, 1769, 3639, 11590, 2918, 12, 86, 1763, 16, 290, 1769, 3639, 1748, 4862, 7671, 434, 777, 326, 1308, 2325, 1195, 3639, 2029, 1151, 273, 436, 1763, 18, 588, 2134, 10291, 5621, 3639, 1323, 261, 3624, 480, 446, 13, 288, 5411, 11590, 2918, 12, 3624, 16, 290, 1769, 5411, 1151, 273, 1151, 18, 588, 2134, 10291, 5621, 3639, 289, 3639, 1748, 2325, 848, 2549, 16, 1427, 30067, 2182, 1195, 3639, 328, 1763, 273, 290, 18, 588, 3759, 1763, 5621, 3639, 309, 12, 80, 1763, 422, 446, 15329, 1171, 368, 1158, 2325, 1493, 2427, 5411, 327, 31, 3639, 289, 12107, 95, 5411, 436, 1763, 273, 328, 1763, 18, 588, 2134, 10291, 5621, 5411, 309, 12, 86, 1763, 422, 446, 15329, 7734, 327, 31, 5411, 289, 3639, 289, 3639, 1748, 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, 11590, 2918, 12, 907, 290, 16, 2029, 982, 15329, 3639, 2029, 328, 1763, 16, 436, 1763, 33, 2011, 31, 6647, 368, 2325, 3639, 328, 1763, 273, 290, 18, 588, 3759, 1763, 5621, 3639, 309, 12, 80, 1763, 422, 446, 15329, 1171, 368, 1158, 2325, 1493, 2427, 5411, 327, 31, 3639, 289, 12107, 95, 5411, 436, 1763, 273, 328, 1763, 18, 588, 2134, 10291, 5621, 5411, 309, 12, 86, 1763, 422, 446, 15329, 7734, 11590, 2918, 12, 80, 1763, 16, 290, 1769, 282, 368, 1245, 1151, 1493, 11502, 7734, 327, 31, 5411, 289, 3639, 289, 3639, 1748, 320, 18, 91, 18, 2795, 2325, 1493, 11502, 603, 3937, 1122, 471, 11247, 1195, 3639, 11590, 2918, 12, 80, 1763, 16, 2 ]
prep_phrases.add(newPrepositionalPhrase(Constants.Preposition.MAINTAINING, inventory));
Asset resource = inventory.getInventoryPG().getResource(); StringBuffer inventoryID = new StringBuffer().append("Inventory:").append(resource.getTypeIdentificationPG().getTypeIdentification()); prep_phrases.add(newPrepositionalPhrase(Constants.Preposition.MAINTAINING, inventoryID.toString()));
protected Task newProjectSupplyTask(Inventory inventory, long start, long end, Rate rate) { Task parentTask = inventoryPlugIn_.findOrMakeMILTask(inventory); // Create start and end time preferences (strictly at) ScoringFunction score; Vector prefs = new Vector(); score = ScoringFunction.createStrictlyAtValue(new TimeAspectValue(AspectType.START_TIME, start)); prefs.addElement(ldmFactory_.newPreference(AspectType.START_TIME, score)); score = ScoringFunction.createStrictlyAtValue(new TimeAspectValue(AspectType.END_TIME, end)); prefs.addElement(ldmFactory_.newPreference(AspectType.END_TIME, score)); Vector prep_phrases = new Vector(); prep_phrases.add(newPrepositionalPhrase(Constants.Preposition.FOR, myOrgName_)); prep_phrases.add(newPrepositionalPhrase(Constants.Preposition.OFTYPE, supplyType_)); prep_phrases.add(newPrepositionalPhrase(Constants.Preposition.MAINTAINING, inventory)); prep_phrases.add(newPrepositionalPhrase(Constants.Preposition.REFILL)); InventoryPG invpg = (InventoryPG)inventory.getInventoryPG(); NewTask t = (NewTask)buildTask(parentTask, Constants.Verb.PROJECTSUPPLY, invpg.getResource(), prep_phrases, prefs.elements()); t.setPreference(TaskUtils.createDemandRatePreference(ldmFactory_, rate)); t.setPreference(TaskUtils.createDemandMultiplierPreference(ldmFactory_, 1.0)); t.setCommitmentDate(new Date(end));// printDebug("newProjectSupplyTask(), created new ProjectSupply task "+TaskUtils.taskDesc(t)); return t; }
7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/a44aad124599fa6573ae7a97762619815907df4e/InventoryManager.java/clean/glm/src/org/cougaar/domain/glm/plugins/inventory/InventoryManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3837, 394, 4109, 3088, 1283, 2174, 12, 15059, 13086, 16, 1525, 787, 16, 1525, 679, 16, 13025, 4993, 13, 288, 202, 2174, 982, 2174, 273, 13086, 1749, 637, 382, 27799, 4720, 1162, 6464, 49, 2627, 2174, 12, 26024, 1769, 202, 759, 1788, 787, 471, 679, 813, 12750, 261, 13948, 715, 622, 13, 202, 1541, 6053, 2083, 4462, 31, 202, 5018, 15503, 273, 394, 5589, 5621, 202, 6355, 273, 2850, 6053, 2083, 18, 2640, 14809, 715, 861, 620, 12, 2704, 2647, 17468, 620, 12, 17468, 559, 18, 7570, 67, 4684, 16, 787, 10019, 202, 1484, 2556, 18, 1289, 1046, 12, 1236, 81, 1733, 27799, 2704, 9624, 12, 17468, 559, 18, 7570, 67, 4684, 16, 4462, 10019, 202, 6355, 273, 2850, 6053, 2083, 18, 2640, 14809, 715, 861, 620, 12, 2704, 2647, 17468, 620, 12, 17468, 559, 18, 4415, 67, 4684, 16, 679, 10019, 202, 1484, 2556, 18, 1289, 1046, 12, 1236, 81, 1733, 27799, 2704, 9624, 12, 17468, 559, 18, 4415, 67, 4684, 16, 4462, 10019, 202, 5018, 13237, 67, 844, 17415, 273, 394, 5589, 5621, 202, 19109, 67, 844, 17415, 18, 1289, 12, 2704, 1386, 3276, 287, 12812, 12, 2918, 18, 1386, 3276, 18, 7473, 16, 3399, 6001, 461, 67, 10019, 202, 19109, 67, 844, 17415, 18, 1289, 12, 2704, 1386, 3276, 287, 12812, 12, 2918, 18, 1386, 3276, 18, 3932, 2399, 16, 14467, 559, 67, 10019, 202, 19109, 67, 844, 17415, 18, 1289, 12, 2704, 1386, 3276, 287, 12812, 12, 2918, 18, 1386, 3276, 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, 3837, 394, 4109, 3088, 1283, 2174, 12, 15059, 13086, 16, 1525, 787, 16, 1525, 679, 16, 13025, 4993, 13, 288, 202, 2174, 982, 2174, 273, 13086, 1749, 637, 382, 27799, 4720, 1162, 6464, 49, 2627, 2174, 12, 26024, 1769, 202, 759, 1788, 787, 471, 679, 813, 12750, 261, 13948, 715, 622, 13, 202, 1541, 6053, 2083, 4462, 31, 202, 5018, 15503, 273, 394, 5589, 5621, 202, 6355, 273, 2850, 6053, 2083, 18, 2640, 14809, 715, 861, 620, 12, 2704, 2647, 17468, 620, 12, 17468, 559, 18, 7570, 67, 4684, 16, 787, 10019, 202, 1484, 2556, 18, 1289, 1046, 12, 1236, 81, 1733, 27799, 2704, 9624, 12, 17468, 559, 18, 7570, 67, 4684, 16, 4462, 10019, 202, 6355, 2 ]
jf.getContentPane().add(jdbce); jf.setBounds(0, 0, 500, 480); jf.setClosable(true); jf.setIconifiable(true); jf.setMaximizable(true); jf.setResizable(true); jf.setVisible(true);
jf.getContentPane().add(jdbce); jf.setBounds(0, 0, 500, 480); jf.setClosable(true); jf.setIconifiable(true); jf.setMaximizable(true); jf.setResizable(true); jf.setVisible(true);
private void newJDBCExplorerMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newJDBCExplorerMenuItemActionPerformed try { JInternalFrame jf = new JInternalFrame(); jf.setTitle("JDBC Explorer - " + this.jdbcConnectionUrl); Class.forName(this.jdbcDriverClassName); java.sql.Connection con = java.sql.DriverManager.getConnection(this.jdbcConnectionUrl); JDBCExplorer jdbce = new JDBCExplorer(con); jf.getContentPane().add(jdbce); jf.setBounds(0, 0, 500, 480); jf.setClosable(true); jf.setIconifiable(true); jf.setMaximizable(true); jf.setResizable(true); jf.setVisible(true); desktopPane.add(jf); jf.show(); } catch (Exception ex) { ex.printStackTrace(); } }//GEN-LAST:event_newJDBCExplorerMenuItemActionPerformed
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/d4a93c3315c8aa9b9d64e1c03577610a1dbca61d/Workbench.java/clean/src/main/mondrian/gui/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 394, 30499, 20938, 12958, 19449, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 6324, 13, 288, 759, 16652, 17, 15354, 30, 2575, 67, 2704, 30499, 20938, 12958, 19449, 3639, 775, 288, 5411, 804, 3061, 3219, 525, 74, 273, 394, 804, 3061, 3219, 5621, 5411, 525, 74, 18, 542, 4247, 2932, 30499, 1312, 11766, 300, 315, 397, 333, 18, 24687, 1952, 1489, 1769, 5411, 1659, 18, 1884, 461, 12, 2211, 18, 24687, 4668, 3834, 1769, 5411, 2252, 18, 4669, 18, 1952, 356, 273, 2252, 18, 4669, 18, 4668, 1318, 18, 588, 1952, 12, 2211, 18, 24687, 1952, 1489, 1769, 5411, 16364, 20938, 525, 1966, 311, 273, 394, 16364, 20938, 12, 591, 1769, 5411, 525, 74, 18, 588, 1350, 8485, 7675, 1289, 12, 78, 1966, 311, 1769, 5411, 525, 74, 18, 542, 5694, 12, 20, 16, 374, 16, 6604, 16, 1059, 3672, 1769, 5411, 525, 74, 18, 542, 4082, 87, 429, 12, 3767, 1769, 5411, 525, 74, 18, 542, 5554, 8424, 12, 3767, 1769, 5411, 525, 74, 18, 542, 2747, 381, 6934, 12, 3767, 1769, 5411, 525, 74, 18, 542, 607, 6934, 12, 3767, 1769, 5411, 525, 74, 18, 542, 6207, 12, 3767, 1769, 5411, 21304, 8485, 18, 1289, 12, 78, 74, 1769, 5411, 525, 74, 18, 4500, 5621, 3639, 289, 1044, 261, 503, 431, 13, 288, 5411, 431, 18, 1188, 6332, 5621, 3639, 289, 565, 289, 759, 16652, 17, 14378, 30, 2575, 67, 2704, 30499, 20938, 12958, 19449, 2, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 394, 30499, 20938, 12958, 19449, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 6324, 13, 288, 759, 16652, 17, 15354, 30, 2575, 67, 2704, 30499, 20938, 12958, 19449, 3639, 775, 288, 5411, 804, 3061, 3219, 525, 74, 273, 394, 804, 3061, 3219, 5621, 5411, 525, 74, 18, 542, 4247, 2932, 30499, 1312, 11766, 300, 315, 397, 333, 18, 24687, 1952, 1489, 1769, 5411, 1659, 18, 1884, 461, 12, 2211, 18, 24687, 4668, 3834, 1769, 5411, 2252, 18, 4669, 18, 1952, 356, 273, 2252, 18, 4669, 18, 4668, 1318, 18, 588, 1952, 12, 2211, 18, 24687, 1952, 1489, 1769, 5411, 16364, 20938, 525, 1966, 311, 273, 394, 16364, 20938, 12, 591, 1769, 5411, 525, 74, 2 ]
five_prime_utr.put(transcript_name, protein);
final List utr_list; if(five_prime_utr.containsKey(transcript_name)) utr_list = (Vector)five_prime_utr.get(transcript_name); else utr_list = new Vector(); utr_list.add(utr); five_prime_utr.put(transcript_name, utr_list);
public void add5PrimeUtr(String transcript_name, Object protein) throws InvalidRelationException { five_prime_utr.put(transcript_name, protein); }
10874 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10874/0877c6643f942939ec16627379ce429a0bffaf63/ChadoCanonicalGene.java/buggy/uk/ac/sanger/artemis/io/ChadoCanonicalGene.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 25, 23327, 57, 313, 12, 780, 15194, 67, 529, 16, 1033, 14314, 13, 1850, 1216, 1962, 3963, 503, 225, 288, 565, 727, 987, 582, 313, 67, 1098, 31, 309, 12, 74, 688, 67, 16382, 67, 14566, 18, 12298, 653, 12, 27257, 67, 529, 3719, 582, 313, 67, 1098, 273, 261, 5018, 13, 74, 688, 67, 16382, 67, 14566, 18, 588, 12, 27257, 67, 529, 1769, 469, 582, 313, 67, 1098, 273, 394, 5589, 5621, 225, 582, 313, 67, 1098, 18, 1289, 12, 14566, 1769, 23714, 67, 16382, 67, 14566, 18, 458, 12, 27257, 67, 529, 16, 582, 313, 67, 1098, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 25, 23327, 57, 313, 12, 780, 15194, 67, 529, 16, 1033, 14314, 13, 1850, 1216, 1962, 3963, 503, 225, 288, 565, 727, 987, 582, 313, 67, 1098, 31, 309, 12, 74, 688, 67, 16382, 67, 14566, 18, 12298, 653, 12, 27257, 67, 529, 3719, 582, 313, 67, 1098, 273, 261, 5018, 13, 74, 688, 67, 16382, 67, 14566, 18, 588, 12, 27257, 67, 529, 1769, 469, 582, 313, 67, 1098, 273, 394, 5589, 5621, 225, 582, 313, 67, 1098, 18, 1289, 12, 14566, 1769, 23714, 67, 16382, 67, 14566, 18, 458, 12, 27257, 67, 529, 16, 582, 313, 67, 1098, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
currentFragment.addMarkupElement(new RawMarkup(tag.toCharSequence()));
this.markupElements.add(new RawMarkup(tag.toCharSequence()));
private MarkupFragment parseMarkup() { final Stack<MarkupFragment> fragmentStack = new Stack<MarkupFragment>(); this.currentFragment = this.rootFragment; try { // allways remember the latest index (size) int size = currentFragment.size(); // Loop through tags for (ComponentTag tag; null != (tag = (ComponentTag)this.markupFilterChain.nextTag());) { boolean add = (tag.getId() != null); if (!add && tag.getXmlTag().isClose()) { add = ((tag.getOpenTag() != null) && (tag.getOpenTag().getId() != null)); } // Add tag to list? if (add || tag.isModified()) { final CharSequence text = this.xmlParser.getInputFromPositionMarker(tag .getPos()); // Add text from last position to tag position if (text.length() > 0) { String rawMarkup = text.toString(); if (this.stripComments) { rawMarkup = removeComment(rawMarkup); } if (this.compressWhitespace) { rawMarkup = compressWhitespace(rawMarkup); } // Make sure you add it at the correct location. // IMarkupFilters might have added elements as well. currentFragment.addMarkupElement(size, new RawMarkup(rawMarkup)); } if (add) { // Add to list unless preview component tag remover // flagged as removed if (!WicketRemoveTagHandler.IGNORE.equals(tag.getId())) { if (tag.isOpen() || tag.isOpenClose()) { fragmentStack.push(currentFragment); MarkupFragment newFragment = new MarkupFragment(this.markup); currentFragment.addMarkupElement(newFragment); currentFragment = newFragment; } currentFragment.addMarkupElement(tag); if (tag.isClose() || tag.isOpenClose() || tag.hasNoCloseTag()) { currentFragment = fragmentStack.pop(); } } } else if (tag.isModified()) { currentFragment.addMarkupElement(new RawMarkup(tag.toCharSequence())); } this.xmlParser.setPositionMarker(); } // allways remember the latest index (size) size = currentFragment.size(); } } catch (final ParseException ex) { // Add remaining input string final CharSequence text = this.xmlParser.getInputFromPositionMarker(-1); if (text.length() > 0) { currentFragment.addMarkupElement(new RawMarkup(text)); } this.markup.setEncoding(this.xmlParser.getEncoding()); this.markup.setXmlDeclaration(this.xmlParser.getXmlDeclaration()); // Create a MarkupStream and position it at the error location MarkupElement element = currentFragment.get(currentFragment.size() - 1); MarkupStream markupStream = new MarkupStream(this.rootFragment); while (markupStream.hasMore()) { if (markupStream.next() == element) { break; } } throw new MarkupException(markupStream, ex.getMessage(), ex); } // Add tail? final CharSequence text = this.xmlParser.getInputFromPositionMarker(-1); if (text.length() > 0) { String rawMarkup = text.toString(); if (this.stripComments) { rawMarkup = removeComment(rawMarkup); } if (this.compressWhitespace) { rawMarkup = compressWhitespace(rawMarkup); } currentFragment.addMarkupElement(new RawMarkup(rawMarkup)); } // Do we have unclosed tags in the markup? Re-balance the markup tree if (fragmentStack.size() > 0) { currentFragment.handleUnclosedTags(); currentFragment = this.rootFragment; } // remove "empty" root fragment if ((currentFragment.size() == 1) && (currentFragment.get(0) instanceof MarkupFragment)) { currentFragment = (MarkupFragment)currentFragment.get(0); } return currentFragment; }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/7b52a0c32e60a468e3e73478df90838d37d577d4/MarkupParser.java/clean/wicket/src/main/java/wicket/markup/MarkupParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 26420, 7456, 1109, 13111, 1435, 202, 95, 202, 202, 6385, 7283, 32, 13111, 7456, 34, 5481, 2624, 273, 394, 7283, 32, 13111, 7456, 34, 5621, 202, 202, 2211, 18, 2972, 7456, 273, 333, 18, 3085, 7456, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 759, 777, 3052, 11586, 326, 4891, 770, 261, 1467, 13, 1082, 202, 474, 963, 273, 783, 7456, 18, 1467, 5621, 1082, 202, 759, 9720, 3059, 2342, 1082, 202, 1884, 261, 1841, 1805, 1047, 31, 446, 480, 261, 2692, 273, 261, 1841, 1805, 13, 2211, 18, 15056, 1586, 3893, 18, 4285, 1805, 10663, 13, 1082, 202, 95, 9506, 202, 6494, 527, 273, 261, 2692, 18, 26321, 1435, 480, 446, 1769, 9506, 202, 430, 16051, 1289, 597, 1047, 18, 588, 4432, 1805, 7675, 291, 4605, 10756, 9506, 202, 95, 6862, 202, 1289, 273, 14015, 2692, 18, 588, 3678, 1805, 1435, 480, 446, 13, 597, 261, 2692, 18, 588, 3678, 1805, 7675, 26321, 1435, 480, 446, 10019, 9506, 202, 97, 9506, 202, 759, 1436, 1047, 358, 666, 35, 9506, 202, 430, 261, 1289, 747, 1047, 18, 291, 4575, 10756, 9506, 202, 95, 6862, 202, 6385, 9710, 977, 273, 333, 18, 2902, 2678, 18, 588, 1210, 1265, 2555, 7078, 12, 2692, 6862, 1082, 202, 18, 588, 1616, 10663, 6862, 202, 759, 1436, 977, 628, 1142, 1754, 358, 1047, 1754, 6862, 202, 430, 261, 955, 18, 2469, 1435, 405, 374, 13, 6862, 202, 95, 25083, 202, 780, 1831, 13111, 273, 977, 18, 10492, 5621, 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, 26420, 7456, 1109, 13111, 1435, 202, 95, 202, 202, 6385, 7283, 32, 13111, 7456, 34, 5481, 2624, 273, 394, 7283, 32, 13111, 7456, 34, 5621, 202, 202, 2211, 18, 2972, 7456, 273, 333, 18, 3085, 7456, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 759, 777, 3052, 11586, 326, 4891, 770, 261, 1467, 13, 1082, 202, 474, 963, 273, 783, 7456, 18, 1467, 5621, 1082, 202, 759, 9720, 3059, 2342, 1082, 202, 1884, 261, 1841, 1805, 1047, 31, 446, 480, 261, 2692, 273, 261, 1841, 1805, 13, 2211, 18, 15056, 1586, 3893, 18, 4285, 1805, 10663, 13, 1082, 202, 95, 9506, 202, 6494, 527, 273, 261, 2692, 18, 26321, 1435, 480, 446, 1769, 9506, 202, 2 ]
if(log.isInfoEnabled()) log.info("received CONFIG event: " + evt.getArg());
if(log.isInfoEnabled()) log.info("received CONFIG event: " + evt.getArg());
public void up(Event evt) { Object obj; NakAckHeader hdr; Message msg; Digest digest; switch(evt.getType()) { case Event.STABLE: // generated by STABLE layer. Delete stable messages passed in arg stable((Digest)evt.getArg()); return; // do not pass up further (Bela Aug 7 2001) case Event.GET_DIGEST: digest=getDigestHighestDeliveredMsgs(); passDown(new Event(Event.GET_DIGEST_OK, digest)); return; case Event.GET_DIGEST_STABLE: digest=getDigestHighestDeliveredMsgs(); passDown(new Event(Event.GET_DIGEST_STABLE_OK, digest)); return; case Event.SET_LOCAL_ADDRESS: local_addr=(Address)evt.getArg(); break; case Event.CONFIG: passUp(evt); if(log.isInfoEnabled()) log.info("received CONFIG event: " + evt.getArg()); handleConfigEvent((HashMap)evt.getArg()); return; case Event.MSG: msg=(Message)evt.getArg(); obj=msg.getHeader(name); if(obj == null || !(obj instanceof NakAckHeader)) break; // pass up (e.g. unicast msg) // discard messages while not yet server (i.e., until JOIN has returned) if(!is_server) { if(log.isDebugEnabled()) log.debug("message was discarded (not yet server)"); return; } // Changed by bela Jan 29 2003: we must not remove the header, otherwise // further xmit requests will fail ! //hdr=(NakAckHeader)msg.removeHeader(getName()); hdr=(NakAckHeader)obj; switch(hdr.type) { case NakAckHeader.MSG: handleMessage(msg, hdr); return; // transmitter passes message up for us ! case NakAckHeader.XMIT_REQ: if(hdr.range == null) { if(log.isErrorEnabled()) log.error("XMIT_REQ: range of xmit msg is null; discarding request from " + msg.getSrc()); return; } handleXmitReq(msg.getSrc(), hdr.range.low, hdr.range.high); return; case NakAckHeader.XMIT_RSP: if(log.isTraceEnabled()) log.trace("received missing messages " + hdr.range); handleXmitRsp(msg); return; default: if(log.isErrorEnabled()) log.error("NakAck header type " + hdr.type + " not known !"); return; } } passUp(evt); }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/075d5da62a76c103fd5a6349db8f624913cccd47/NAKACK.java/buggy/src/org/jgroups/protocols/pbcast/NAKACK.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 731, 12, 1133, 6324, 13, 288, 3639, 1033, 4202, 1081, 31, 3639, 423, 581, 11931, 1864, 7723, 31, 3639, 2350, 1377, 1234, 31, 3639, 15864, 4202, 5403, 31, 3639, 1620, 12, 73, 11734, 18, 588, 559, 10756, 288, 5411, 648, 2587, 18, 882, 2782, 30, 225, 368, 4374, 635, 2347, 2782, 3018, 18, 2504, 14114, 2743, 2275, 316, 1501, 7734, 14114, 12443, 9568, 13, 73, 11734, 18, 588, 4117, 10663, 7734, 327, 31, 225, 368, 741, 486, 1342, 731, 9271, 261, 18097, 69, 432, 637, 2371, 4044, 21, 13, 5411, 648, 2587, 18, 3264, 67, 2565, 27332, 30, 7734, 5403, 33, 588, 9568, 8573, 395, 20813, 329, 17949, 5621, 7734, 1342, 4164, 12, 2704, 2587, 12, 1133, 18, 3264, 67, 2565, 27332, 67, 3141, 16, 5403, 10019, 7734, 327, 31, 5411, 648, 2587, 18, 3264, 67, 2565, 27332, 67, 882, 2782, 30, 7734, 5403, 33, 588, 9568, 8573, 395, 20813, 329, 17949, 5621, 7734, 1342, 4164, 12, 2704, 2587, 12, 1133, 18, 3264, 67, 2565, 27332, 67, 882, 2782, 67, 3141, 16, 5403, 10019, 7734, 327, 31, 5411, 648, 2587, 18, 4043, 67, 14922, 67, 15140, 30, 7734, 1191, 67, 4793, 28657, 1887, 13, 73, 11734, 18, 588, 4117, 5621, 7734, 898, 31, 5411, 648, 2587, 18, 7203, 30, 7734, 1342, 1211, 12, 73, 11734, 1769, 1171, 309, 12, 1330, 18, 291, 966, 1526, 10756, 613, 18, 1376, 2932, 15213, 9128, 871, 30, 315, 397, 6324, 18, 588, 4117, 10663, 7734, 1640, 809, 1133, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 731, 12, 1133, 6324, 13, 288, 3639, 1033, 4202, 1081, 31, 3639, 423, 581, 11931, 1864, 7723, 31, 3639, 2350, 1377, 1234, 31, 3639, 15864, 4202, 5403, 31, 3639, 1620, 12, 73, 11734, 18, 588, 559, 10756, 288, 5411, 648, 2587, 18, 882, 2782, 30, 225, 368, 4374, 635, 2347, 2782, 3018, 18, 2504, 14114, 2743, 2275, 316, 1501, 7734, 14114, 12443, 9568, 13, 73, 11734, 18, 588, 4117, 10663, 7734, 327, 31, 225, 368, 741, 486, 1342, 731, 9271, 261, 18097, 69, 432, 637, 2371, 4044, 21, 13, 5411, 648, 2587, 18, 3264, 67, 2565, 27332, 30, 7734, 5403, 33, 588, 9568, 8573, 395, 20813, 329, 17949, 5621, 7734, 1342, 4164, 12, 2704, 2587, 12, 2 ]
final Point location = persistence.get("location", new Point(100, 100));
final Point location = persistence.get("location", getMainWindowLocation());
BrowserWindow(final Browser browser) throws HeadlessException { super("BrowserWindow"); this.browser = browser; this.logger = Logger.getLogger(getClass()); this.persistence = PersistenceFactory.getPersistence(getClass()); getRootPane().setBorder(new WindowBorder2()); addWindowListener(new WindowAdapter() { public void windowClosing(final WindowEvent e) { persist(); browser.hibernate(); }}); initMenu(); setIconImage(com.thinkparity.ophelia.browser.Constants.Images.WINDOW_ICON_IMAGE); setTitle(java.util.ResourceBundle.getBundle("localization/JFrame_Messages").getString("BrowserWindow.Title")); setUndecorated(true); setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); final Point location = persistence.get("location", new Point(100, 100)); location.x = (location.x < 0 ? 0 : location.x ); location.y = (location.y < 0 ? 0 : location.y ); setLocation(location.x, location.y); final Dimension size = persistence.get("size", getMainWindowSize()); mainWindowSize.setSize(size); setResizable(true); setMinimumSize(getMainWindowSize()); setSize(getMainWindowSize()); initComponents(); // Set up the semi-transparent JPanel semiTransparentJPanel = new SemiTransparentJPanel(Boolean.FALSE); getLayeredPane().add(semiTransparentJPanel, JLayeredPane.PALETTE_LAYER); // Set up the resizer resizer = new Resizer(browser, this, Boolean.FALSE, Resizer.ResizeEdges.ALL_EDGES); }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/5df2e6a8f48a4687ecb1808669030ad1f9cc6e45/BrowserWindow.java/buggy/local/browser/src/main/java/com/thinkparity/ophelia/browser/application/browser/BrowserWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 9132, 3829, 12, 6385, 15408, 4748, 13, 1216, 3667, 2656, 503, 288, 202, 202, 9565, 2932, 9132, 3829, 8863, 202, 202, 2211, 18, 11213, 273, 4748, 31, 202, 202, 2211, 18, 4901, 273, 4242, 18, 588, 3328, 12, 588, 797, 10663, 3639, 333, 18, 24854, 273, 13381, 1733, 18, 588, 13182, 12, 588, 797, 10663, 3639, 202, 202, 588, 2375, 8485, 7675, 542, 8107, 12, 2704, 6076, 8107, 22, 10663, 3639, 527, 3829, 2223, 12, 2704, 6076, 4216, 1435, 288, 5411, 1071, 918, 2742, 15745, 12, 6385, 6076, 1133, 425, 13, 288, 7734, 3898, 5621, 7734, 4748, 18, 15769, 22828, 5621, 5411, 10523, 1769, 3639, 1208, 4599, 5621, 3639, 202, 202, 542, 5554, 2040, 12, 832, 18, 451, 754, 1065, 560, 18, 23169, 24407, 18, 11213, 18, 2918, 18, 8946, 18, 23407, 67, 21745, 67, 13603, 1769, 202, 202, 542, 4247, 12, 6290, 18, 1367, 18, 18731, 18, 588, 3405, 2932, 3729, 1588, 19, 46, 3219, 67, 5058, 20387, 588, 780, 2932, 9132, 3829, 18, 4247, 7923, 1769, 202, 202, 542, 984, 11880, 690, 12, 3767, 1769, 202, 202, 542, 1868, 4605, 2988, 12, 46, 3219, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 3639, 727, 4686, 2117, 273, 9756, 18, 588, 2932, 3562, 3113, 15011, 3829, 2735, 10663, 2868, 2117, 18, 92, 273, 261, 3562, 18, 92, 411, 374, 692, 374, 294, 2117, 18, 92, 11272, 3639, 2117, 18, 93, 273, 261, 3562, 18, 93, 411, 374, 692, 374, 294, 2117, 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, 9132, 3829, 12, 6385, 15408, 4748, 13, 1216, 3667, 2656, 503, 288, 202, 202, 9565, 2932, 9132, 3829, 8863, 202, 202, 2211, 18, 11213, 273, 4748, 31, 202, 202, 2211, 18, 4901, 273, 4242, 18, 588, 3328, 12, 588, 797, 10663, 3639, 333, 18, 24854, 273, 13381, 1733, 18, 588, 13182, 12, 588, 797, 10663, 3639, 202, 202, 588, 2375, 8485, 7675, 542, 8107, 12, 2704, 6076, 8107, 22, 10663, 3639, 527, 3829, 2223, 12, 2704, 6076, 4216, 1435, 288, 5411, 1071, 918, 2742, 15745, 12, 6385, 6076, 1133, 425, 13, 288, 7734, 3898, 5621, 7734, 4748, 18, 15769, 22828, 5621, 5411, 10523, 1769, 3639, 1208, 4599, 5621, 3639, 202, 202, 542, 5554, 2040, 12, 832, 18, 2 ]
setDescription(element.getAttribute(IConfiguration.DESCRIPTION));
this.description = element.getAttribute(IConfiguration.DESCRIPTION);
protected void loadFromProject(Element element) { // id setId(element.getAttribute(IConfiguration.ID)); // name if (element.hasAttribute(IConfiguration.NAME)) setName(element.getAttribute(IConfiguration.NAME)); // description if (element.hasAttribute(IConfiguration.DESCRIPTION)) setDescription(element.getAttribute(IConfiguration.DESCRIPTION)); if (element.hasAttribute(IConfiguration.PARENT)) { // See if the parent belongs to the same project parent = managedProject.getConfiguration(element.getAttribute(IConfiguration.PARENT)); // If not, then try the extension configurations if (parent == null) { parent = ManagedBuildManager.getExtensionConfiguration(element.getAttribute(IConfiguration.PARENT)); } } // Get the name of the build artifact associated with target (usually // in the plugin specification). if (element.hasAttribute(ARTIFACT_NAME)) { artifactName = element.getAttribute(ARTIFACT_NAME); } // Get the semicolon separated list of IDs of the error parsers if (element.hasAttribute(ERROR_PARSERS)) { errorParserIds = element.getAttribute(ERROR_PARSERS); } // Get the artifact extension if (element.hasAttribute(EXTENSION)) { artifactExtension = element.getAttribute(EXTENSION); } // Get the clean command if (element.hasAttribute(CLEAN_COMMAND)) { cleanCommand = element.getAttribute(CLEAN_COMMAND); } // Get the pre-build and post-build commands if (element.hasAttribute(PREBUILD_STEP)) { prebuildStep = element.getAttribute(PREBUILD_STEP); } if (element.hasAttribute(POSTBUILD_STEP)) { postbuildStep = element.getAttribute(POSTBUILD_STEP); } // Get the pre-build and post-build announcements if (element.hasAttribute(PREANNOUNCEBUILD_STEP)) { preannouncebuildStep = element.getAttribute(PREANNOUNCEBUILD_STEP); } if (element.hasAttribute(POSTANNOUNCEBUILD_STEP)) { postannouncebuildStep = element .getAttribute(POSTANNOUNCEBUILD_STEP); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/ca2e8c288e0d3b7b382d3418afbe110662fcfed4/Configuration.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Configuration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24935, 4109, 12, 1046, 930, 13, 288, 9506, 202, 759, 612, 202, 202, 542, 548, 12, 2956, 18, 588, 1499, 12, 45, 1750, 18, 734, 10019, 202, 202, 759, 508, 202, 202, 430, 261, 2956, 18, 5332, 1499, 12, 45, 1750, 18, 1985, 3719, 1082, 202, 542, 461, 12, 2956, 18, 588, 1499, 12, 45, 1750, 18, 1985, 10019, 9506, 202, 759, 2477, 202, 202, 430, 261, 2956, 18, 5332, 1499, 12, 45, 1750, 18, 15911, 3719, 1082, 202, 542, 3291, 12, 2956, 18, 588, 1499, 12, 45, 1750, 18, 15911, 10019, 9506, 202, 430, 261, 2956, 18, 5332, 1499, 12, 45, 1750, 18, 14943, 3719, 288, 1082, 202, 759, 2164, 309, 326, 982, 11081, 358, 326, 1967, 1984, 1082, 202, 2938, 273, 7016, 4109, 18, 588, 1750, 12, 2956, 18, 588, 1499, 12, 45, 1750, 18, 14943, 10019, 1082, 202, 759, 971, 486, 16, 1508, 775, 326, 2710, 10459, 1082, 202, 430, 261, 2938, 422, 446, 13, 288, 9506, 202, 2938, 273, 10024, 3116, 1318, 18, 588, 3625, 1750, 12, 2956, 18, 588, 1499, 12, 45, 1750, 18, 14943, 10019, 1082, 202, 97, 202, 202, 97, 202, 202, 759, 968, 326, 508, 434, 326, 1361, 6462, 3627, 598, 1018, 261, 407, 3452, 3196, 202, 759, 316, 326, 1909, 7490, 2934, 202, 202, 430, 261, 2956, 18, 5332, 1499, 12, 4928, 45, 11625, 67, 1985, 3719, 288, 1082, 202, 17706, 461, 273, 930, 18, 588, 1499, 12, 4928, 45, 11625, 67, 1985, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24935, 4109, 12, 1046, 930, 13, 288, 9506, 202, 759, 612, 202, 202, 542, 548, 12, 2956, 18, 588, 1499, 12, 45, 1750, 18, 734, 10019, 202, 202, 759, 508, 202, 202, 430, 261, 2956, 18, 5332, 1499, 12, 45, 1750, 18, 1985, 3719, 1082, 202, 542, 461, 12, 2956, 18, 588, 1499, 12, 45, 1750, 18, 1985, 10019, 9506, 202, 759, 2477, 202, 202, 430, 261, 2956, 18, 5332, 1499, 12, 45, 1750, 18, 15911, 3719, 1082, 202, 542, 3291, 12, 2956, 18, 588, 1499, 12, 45, 1750, 18, 15911, 10019, 9506, 202, 430, 261, 2956, 18, 5332, 1499, 12, 45, 1750, 18, 14943, 3719, 288, 1082, 202, 759, 2164, 309, 326, 982, 11081, 2 ]
private void configure(TransactionalEditingDomain domain) {
protected void configure(TransactionalEditingDomain domain) {
private void configure(TransactionalEditingDomain domain) { ResourceSet rset = domain.getResourceSet(); // ensure that the cross-referencing adapter is installed if (CrossReferenceAdapter.getExistingCrossReferenceAdapter(rset) == null) { rset.eAdapters().add(new CrossReferenceAdapter()); } // ensure that the path map manager is installed if (PathmapManager.getExistingPathmapManager(rset) == null) { rset.eAdapters().add(new PathmapManager()); } }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/5ceffe7bba7a8ea6a4449754ba79eb09e07f27f6/GMFEditingDomainFactory.java/clean/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.emf.core/src/org/eclipse/gmf/runtime/emf/core/GMFEditingDomainFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 5068, 12, 3342, 287, 28029, 3748, 2461, 13, 288, 202, 202, 1420, 694, 436, 542, 273, 2461, 18, 588, 1420, 694, 5621, 9506, 202, 759, 3387, 716, 326, 6828, 17, 266, 586, 15495, 4516, 353, 5876, 202, 202, 430, 261, 13941, 2404, 4216, 18, 588, 9895, 13941, 2404, 4216, 12, 86, 542, 13, 422, 446, 13, 288, 1082, 202, 86, 542, 18, 73, 26620, 7675, 1289, 12, 2704, 19742, 2404, 4216, 10663, 202, 202, 97, 9506, 202, 759, 3387, 716, 326, 589, 852, 3301, 353, 5876, 202, 202, 430, 261, 743, 1458, 1318, 18, 588, 9895, 743, 1458, 1318, 12, 86, 542, 13, 422, 446, 13, 288, 1082, 202, 86, 542, 18, 73, 26620, 7675, 1289, 12, 2704, 2666, 1458, 1318, 10663, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1152, 918, 5068, 12, 3342, 287, 28029, 3748, 2461, 13, 288, 202, 202, 1420, 694, 436, 542, 273, 2461, 18, 588, 1420, 694, 5621, 9506, 202, 759, 3387, 716, 326, 6828, 17, 266, 586, 15495, 4516, 353, 5876, 202, 202, 430, 261, 13941, 2404, 4216, 18, 588, 9895, 13941, 2404, 4216, 12, 86, 542, 13, 422, 446, 13, 288, 1082, 202, 86, 542, 18, 73, 26620, 7675, 1289, 12, 2704, 19742, 2404, 4216, 10663, 202, 202, 97, 9506, 202, 759, 3387, 716, 326, 589, 852, 3301, 353, 5876, 202, 202, 430, 261, 743, 1458, 1318, 18, 588, 9895, 743, 1458, 1318, 12, 86, 542, 13, 422, 446, 13, 288, 1082, 202, 86, 542, 18, 73, 26620, 7675, 2 ]
public void run(){ System.err.println("*** Thread "+_ID+" starting "+doc.getDocumentElement().getNodeName()+" "+nIter); for ( int i = 0 ; i < nIter ; i++ ){ switch (0){
public void run() { System.err.println("*** Thread " + _ID + " starting " + doc.getDocumentElement().getNodeName() + " " + nIter); try { for (int i = 0; i < nIter; i++) { switch (0) {
public void run(){ System.err.println("*** Thread "+_ID+" starting "+doc.getDocumentElement().getNodeName()+" "+nIter); for ( int i = 0 ; i < nIter ; i++ ){ //System.err.println("*** Thread "+_ID+" starting "); switch (0){//_ID case 0:{ doc.getDocumentElement().appendChild(doc.createElement("foobar")); if ( i % 5==0 ){ NodeList nl=doc.getDocumentElement().getElementsByTagName("foobar"); if (nl.getLength()>0){ Element par=(Element)nl.item(0).getParentNode(); par.removeChild((Element)nl.item(0)); } } // break; }case 1:{ ((Element)doc.getDocumentElement()).setAttributeNode(doc.createAttribute("foobar")); if ( i % 5==0 ){ NamedNodeMap nl=doc.getDocumentElement().getAttributes(); if (nl.getLength()>0){ Element par=(Element)((Attr)nl.getNamedItem("foobar")).getOwnerElement(); par.removeAttribute("foobar"); } } // break; }case 2:{ doc.getDocumentElement().appendChild(doc.createTextNode("foobar")); if ( i % 5==0 ){ NodeList nl=((Element)doc.getDocumentElement()).getElementsByTagName("foobar"); if (nl!=null && nl.getLength()>0){ Element par=(Element)nl.item(i % nl.getLength()).getParentNode(); par.removeChild((Element)nl.item(0)); } } // break; }case 3:{ Node n=doc.getDocumentElement().getFirstChild(); if (n!=null && (n instanceof Text) ){ ((Text)n).setData("newText"); if ( i % 5==0 ){ int len; if ( ( len=((Text)n).getData().length() )>0) ((Text)n).splitText(len/2); } } // break; }case 4:{ // System.err.println("*** Thread "+_ID+" case 4 "); NodeList n=((Element)doc.getDocumentElement()).getElementsByTagNameNS("foo:org","myns:foo2"); Attr at=doc.createAttribute("foo2_at"); if (n!=null && n.getLength()>0){ ((Element)n.item(0)).setAttributeNode(at); if ( i % 5==0 ){ ((Element)n.item(0)).removeAttributeNode(at); } } } } } }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/7191ab51921f7d9709d234e359125542f949ced4/MultipleDocsTest.java/clean/v2/test/src/dom/detailed/MultipleDocsTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 95, 202, 565, 2332, 18, 370, 18, 8222, 2932, 14465, 4884, 13773, 67, 734, 9078, 5023, 13773, 2434, 18, 588, 2519, 1046, 7675, 588, 18948, 1435, 9078, 13773, 82, 2360, 1769, 202, 565, 364, 261, 509, 277, 273, 374, 274, 277, 411, 290, 2360, 274, 277, 9904, 262, 95, 202, 202, 759, 3163, 18, 370, 18, 8222, 2932, 14465, 4884, 13773, 67, 734, 9078, 5023, 315, 1769, 202, 202, 9610, 261, 20, 15329, 759, 67, 734, 202, 202, 3593, 374, 18611, 1082, 565, 997, 18, 588, 2519, 1046, 7675, 6923, 1763, 12, 2434, 18, 2640, 1046, 2932, 617, 947, 297, 7923, 1769, 1082, 565, 309, 261, 277, 738, 1381, 631, 20, 262, 95, 1082, 202, 19914, 7741, 33, 2434, 18, 588, 2519, 1046, 7675, 588, 3471, 10401, 2932, 617, 947, 297, 8863, 1082, 202, 430, 261, 14039, 18, 588, 1782, 1435, 34, 20, 15329, 9506, 565, 3010, 779, 28657, 1046, 13, 14039, 18, 1726, 12, 20, 2934, 588, 3054, 907, 5621, 9506, 565, 779, 18, 4479, 1763, 12443, 1046, 13, 14039, 18, 1726, 12, 20, 10019, 1082, 202, 97, 1082, 565, 289, 1082, 565, 368, 898, 31, 202, 202, 97, 3593, 404, 18611, 1082, 565, 14015, 1046, 13, 2434, 18, 588, 2519, 1046, 1435, 2934, 542, 1499, 907, 12, 2434, 18, 2640, 1499, 2932, 617, 947, 297, 7923, 1769, 1082, 565, 309, 261, 277, 738, 1381, 631, 20, 262, 95, 1082, 202, 7604, 907, 863, 7741, 33, 2434, 18, 588, 2519, 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, 1435, 95, 202, 565, 2332, 18, 370, 18, 8222, 2932, 14465, 4884, 13773, 67, 734, 9078, 5023, 13773, 2434, 18, 588, 2519, 1046, 7675, 588, 18948, 1435, 9078, 13773, 82, 2360, 1769, 202, 565, 364, 261, 509, 277, 273, 374, 274, 277, 411, 290, 2360, 274, 277, 9904, 262, 95, 202, 202, 759, 3163, 18, 370, 18, 8222, 2932, 14465, 4884, 13773, 67, 734, 9078, 5023, 315, 1769, 202, 202, 9610, 261, 20, 15329, 759, 67, 734, 202, 202, 3593, 374, 18611, 1082, 565, 997, 18, 588, 2519, 1046, 7675, 6923, 1763, 12, 2434, 18, 2640, 1046, 2932, 617, 947, 297, 7923, 1769, 1082, 565, 309, 261, 277, 738, 1381, 631, 20, 262, 95, 2 ]
Atom carbon3 = new Atom("C");
IAtom carbon3 = builder.newAtom("C");
public void testClone() { Atom carbon = new Atom("C"); carbon.setID("central"); Atom carbon1 = new Atom("C"); carbon1.setID("c1"); Atom carbon2 = new Atom("C"); carbon2.setID("c2"); Atom carbon3 = new Atom("C"); carbon3.setID("c3"); Atom carbon4 = new Atom("C"); carbon4.setID("c4"); int parityInt = 1; AtomParity parity = new AtomParity(carbon, carbon1, carbon2, carbon3, carbon4, parityInt); Object clone = parity.clone(); assertTrue(clone instanceof AtomParity); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/a6318b3c903d5db8b6bc699fc60e65d7d3afeae6/AtomParityTest.java/buggy/src/org/openscience/cdk/test/AtomParityTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 10930, 1435, 288, 3639, 7149, 28755, 273, 394, 7149, 2932, 39, 8863, 3639, 28755, 18, 542, 734, 2932, 71, 12839, 8863, 3639, 7149, 28755, 21, 273, 394, 7149, 2932, 39, 8863, 3639, 28755, 21, 18, 542, 734, 2932, 71, 21, 8863, 3639, 7149, 28755, 22, 273, 394, 7149, 2932, 39, 8863, 3639, 28755, 22, 18, 542, 734, 2932, 71, 22, 8863, 3639, 8831, 28755, 23, 273, 2089, 18, 2704, 3641, 2932, 39, 8863, 3639, 28755, 23, 18, 542, 734, 2932, 71, 23, 8863, 3639, 7149, 28755, 24, 273, 394, 7149, 2932, 39, 8863, 3639, 28755, 24, 18, 542, 734, 2932, 71, 24, 8863, 3639, 509, 19904, 1702, 273, 404, 31, 3639, 7149, 1553, 560, 19904, 273, 394, 7149, 1553, 560, 12, 71, 11801, 16, 28755, 21, 16, 28755, 22, 16, 28755, 23, 16, 28755, 24, 16, 19904, 1702, 1769, 3639, 1033, 3236, 273, 19904, 18, 14056, 5621, 3639, 1815, 5510, 12, 14056, 1276, 7149, 1553, 560, 1769, 565, 289, 377, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 10930, 1435, 288, 3639, 7149, 28755, 273, 394, 7149, 2932, 39, 8863, 3639, 28755, 18, 542, 734, 2932, 71, 12839, 8863, 3639, 7149, 28755, 21, 273, 394, 7149, 2932, 39, 8863, 3639, 28755, 21, 18, 542, 734, 2932, 71, 21, 8863, 3639, 7149, 28755, 22, 273, 394, 7149, 2932, 39, 8863, 3639, 28755, 22, 18, 542, 734, 2932, 71, 22, 8863, 3639, 8831, 28755, 23, 273, 2089, 18, 2704, 3641, 2932, 39, 8863, 3639, 28755, 23, 18, 542, 734, 2932, 71, 23, 8863, 3639, 7149, 28755, 24, 273, 394, 7149, 2932, 39, 8863, 3639, 28755, 24, 18, 542, 734, 2932, 71, 24, 8863, 3639, 509, 19904, 1702, 273, 404, 31, 3639, 7149, 1553, 560, 2 ]
try{
try {
public void searchCompleted(List<?> l) { // deal with File if(l.isEmpty()) return; Map<String, String> nodes = new HashMap<String, String>(); if (l.get(0) instanceof FileSearchResult){ FileSearchResult fsr = (FileSearchResult) l.get(0); Object[] far = fsr.getElements(); for(int i = 0; i < far.length; i++){ Match[] mar = fsr.getMatches(far[i]); if(far[i] instanceof File){ File f = (File)far[i]; // change the file into a document// FileEditorInput fei = new FileEditorInput(f); for(int j = 0; j < mar.length; j++){ Match m = mar[j]; try{ IMylarStructureBridge bridge = MylarPlugin.getDefault().getStructureBridge(f.getName()); String handle = bridge.getHandleForOffsetInObject(f, m.getOffset()); String second = handle.substring(handle.indexOf(";")); XmlNodeHelper xnode = new XmlNodeHelper(f.getFullPath().toString(), second); nodeMap.put(m, xnode); Object o = bridge.getObjectForHandle(handle); String name = bridge.getName(o); if(o != null){ nodes.put(handle, name); } } catch(Exception e){ MylarPlugin.log(e, "search failed - unable to create match"); } } } } } for(String handle : nodes.keySet()) { incrementInterest(node, PdeStructureBridge.CONTENT_TYPE, handle, degreeOfSeparation); } gathered = true; XmlReferencesProvider.this.searchCompleted(node); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/bc49e17738c180ef267b88ec7ff44e166c3a3958/XmlReferencesProvider.java/clean/org.eclipse.mylyn.resources.ui/src/org/eclipse/mylyn/xml/XmlReferencesProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 7734, 1071, 918, 1623, 9556, 12, 682, 12880, 34, 328, 13, 288, 10402, 368, 225, 10490, 598, 1387, 10402, 309, 12, 80, 18, 291, 1921, 10756, 327, 31, 4766, 1377, 1635, 32, 780, 16, 514, 34, 2199, 273, 394, 4317, 32, 780, 16, 514, 34, 5621, 4766, 1377, 309, 261, 80, 18, 588, 12, 20, 13, 1276, 1387, 24916, 15329, 15604, 1387, 24916, 2662, 86, 273, 261, 812, 24916, 13, 328, 18, 588, 12, 20, 1769, 21821, 1033, 8526, 10247, 273, 2662, 86, 18, 588, 3471, 5621, 15604, 364, 12, 474, 277, 273, 374, 31, 277, 411, 10247, 18, 2469, 31, 277, 27245, 95, 21821, 4639, 8526, 21282, 273, 2662, 86, 18, 588, 6869, 12, 31246, 63, 77, 19226, 1171, 9079, 309, 12, 31246, 63, 77, 65, 1276, 1387, 15329, 1171, 9079, 1387, 284, 273, 261, 812, 13, 31246, 63, 77, 15533, 4766, 17311, 368, 2549, 326, 585, 1368, 279, 1668, 759, 1171, 9079, 1387, 6946, 1210, 1656, 77, 273, 394, 1387, 6946, 1210, 12, 74, 1769, 4766, 15604, 364, 12, 474, 525, 273, 374, 31, 525, 411, 21282, 18, 2469, 31, 525, 27245, 95, 4766, 282, 4639, 312, 273, 21282, 63, 78, 15533, 4766, 282, 775, 288, 4766, 1377, 6246, 93, 7901, 6999, 13691, 10105, 273, 8005, 7901, 3773, 18, 588, 1868, 7675, 588, 6999, 13691, 12, 74, 18, 17994, 10663, 28524, 2868, 514, 1640, 273, 10105, 18, 588, 3259, 1290, 2335, 382, 921, 12, 74, 16, 312, 18, 588, 2335, 10663, 4766, 4202, 514, 2205, 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, 7734, 1071, 918, 1623, 9556, 12, 682, 12880, 34, 328, 13, 288, 10402, 368, 225, 10490, 598, 1387, 10402, 309, 12, 80, 18, 291, 1921, 10756, 327, 31, 4766, 1377, 1635, 32, 780, 16, 514, 34, 2199, 273, 394, 4317, 32, 780, 16, 514, 34, 5621, 4766, 1377, 309, 261, 80, 18, 588, 12, 20, 13, 1276, 1387, 24916, 15329, 15604, 1387, 24916, 2662, 86, 273, 261, 812, 24916, 13, 328, 18, 588, 12, 20, 1769, 21821, 1033, 8526, 10247, 273, 2662, 86, 18, 588, 3471, 5621, 15604, 364, 12, 474, 277, 273, 374, 31, 277, 411, 10247, 18, 2469, 31, 277, 27245, 95, 21821, 4639, 8526, 21282, 273, 2662, 86, 18, 588, 6869, 12, 31246, 63, 77, 19226, 2 ]
protected void paintComponent(final Graphics g) { if (shouldInitialize) { initialize(); } if (!isInitialized) { return; } // NOTE: must do this when the context is not current as it may // involve destroying the pbuffer (current context) and // re-creating it -- tricky to do properly while the context is // current if (handleReshape) { handleReshape(); } updater.setGraphics(g); if (oglPipelineEnabled) { Java2D.invokeWithOGLContextCurrent(g, new Runnable() { public void run() { if (DEBUG && VERBOSE) { System.err.println("-- In invokeWithOGLContextCurrent"); } // Create no-op context representing Java2D context if (j2dContext == null) { j2dContext = GLDrawableFactory.getFactory().createExternalGLContext(); if (DEBUG) { j2dContext.setGL(new DebugGL(j2dContext.getGL())); } // Check to see whether we can support the requested // capabilities or need to fall back to a pbuffer // FIXME: add more checks? j2dContext.makeCurrent(); GL gl = j2dContext.getGL(); if ((getGLInteger(gl, GL.GL_RED_BITS) < offscreenCaps.getRedBits()) || (getGLInteger(gl, GL.GL_GREEN_BITS) < offscreenCaps.getGreenBits()) || (getGLInteger(gl, GL.GL_BLUE_BITS) < offscreenCaps.getBlueBits()) || // (getGLInteger(gl, GL.GL_ALPHA_BITS) < offscreenCaps.getAlphaBits()) || (getGLInteger(gl, GL.GL_ACCUM_RED_BITS) < offscreenCaps.getAccumRedBits()) || (getGLInteger(gl, GL.GL_ACCUM_GREEN_BITS) < offscreenCaps.getAccumGreenBits()) || (getGLInteger(gl, GL.GL_ACCUM_BLUE_BITS) < offscreenCaps.getAccumBlueBits()) || (getGLInteger(gl, GL.GL_ACCUM_ALPHA_BITS) < offscreenCaps.getAccumAlphaBits()) || // (getGLInteger(gl, GL.GL_DEPTH_BITS) < offscreenCaps.getDepthBits()) || (getGLInteger(gl, GL.GL_STENCIL_BITS) < offscreenCaps.getStencilBits())) { if (DEBUG) { System.err.println("GLJPanel: Falling back to pbuffer-based support because Java2D context insufficient"); System.err.println(" Available Required"); System.err.println("GL_RED_BITS " + getGLInteger(gl, GL.GL_RED_BITS) + " " + offscreenCaps.getRedBits()); System.err.println("GL_GREEN_BITS " + getGLInteger(gl, GL.GL_GREEN_BITS) + " " + offscreenCaps.getGreenBits()); System.err.println("GL_BLUE_BITS " + getGLInteger(gl, GL.GL_BLUE_BITS) + " " + offscreenCaps.getBlueBits()); System.err.println("GL_ALPHA_BITS " + getGLInteger(gl, GL.GL_ALPHA_BITS) + " " + offscreenCaps.getAlphaBits()); System.err.println("GL_ACCUM_RED_BITS " + getGLInteger(gl, GL.GL_ACCUM_RED_BITS) + " " + offscreenCaps.getAccumRedBits()); System.err.println("GL_ACCUM_GREEN_BITS " + getGLInteger(gl, GL.GL_ACCUM_GREEN_BITS) + " " + offscreenCaps.getAccumGreenBits()); System.err.println("GL_ACCUM_BLUE_BITS " + getGLInteger(gl, GL.GL_ACCUM_BLUE_BITS) + " " + offscreenCaps.getAccumBlueBits()); System.err.println("GL_ACCUM_ALPHA_BITS " + getGLInteger(gl, GL.GL_ACCUM_ALPHA_BITS) + " " + offscreenCaps.getAccumAlphaBits()); System.err.println("GL_DEPTH_BITS " + getGLInteger(gl, GL.GL_DEPTH_BITS) + " " + offscreenCaps.getDepthBits()); System.err.println("GL_STENCIL_BITS " + getGLInteger(gl, GL.GL_STENCIL_BITS) + " " + offscreenCaps.getStencilBits()); } isInitialized = false; shouldInitialize = true; oglPipelineEnabled = false; handleReshape = true; j2dContext.release(); j2dContext.destroy(); j2dContext = null; return; } j2dContext.release(); } j2dContext.makeCurrent(); try { captureJ2DState(j2dContext.getGL(), g); Object curSurface = Java2D.getOGLSurfaceIdentifier(g); if (curSurface != null) { if (j2dSurface != curSurface) { if (joglContext != null) { // Note that the following operation may make the // joglContext current briefly joglContext.destroy(); joglContext = null; joglDrawable = null; sendReshape = true; j2dContext.makeCurrent(); if (DEBUG) { System.err.println("Sending reshape because surface changed"); System.err.println("New surface = " + curSurface); } } j2dSurface = curSurface; } if (joglContext == null) { joglDrawable = GLDrawableFactory.getFactory().createExternalGLDrawable(); joglContext = joglDrawable.createContext(shareWith); if (DEBUG) { joglContext.setGL(new DebugGL(joglContext.getGL())); } if (Java2D.isFBOEnabled() && Java2D.getOGLSurfaceType(g) == Java2D.FBOBJECT && fbObjectWorkarounds) { createNewDepthBuffer = true; } } if (DEBUG && VERBOSE && Java2D.isFBOEnabled()) { System.err.print("-- Surface type: "); int surfaceType = Java2D.getOGLSurfaceType(g); if (surfaceType == Java2D.UNDEFINED) { System.err.println("UNDEFINED"); } else if (surfaceType == Java2D.WINDOW) { System.err.println("WINDOW"); } else if (surfaceType == Java2D.PBUFFER) { System.err.println("PBUFFER"); } else if (surfaceType == Java2D.TEXTURE) { System.err.println("TEXTURE"); } else if (surfaceType == Java2D.FLIP_BACKBUFFER) { System.err.println("FLIP_BACKBUFFER"); } else if (surfaceType == Java2D.FBOBJECT) { System.err.println("FBOBJECT"); } else { System.err.println("(Unknown surface type " + surfaceType + ")"); } } drawableHelper.invokeGL(joglDrawable, joglContext, displayAction, initAction); } } finally { j2dContext.release(); } } }); } else { if (!hardwareAccelerationDisabled) { pbuffer.display(); } else { drawableHelper.invokeGL(offscreenDrawable, offscreenContext, displayAction, initAction); } } }
47702 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47702/6b66ec1550a1f022db2dda2db3fe473cbebfec85/GLJPanel.java/clean/src/classes/javax/media/opengl/GLJPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 12574, 1841, 12, 6385, 16830, 314, 13, 288, 430, 261, 13139, 7520, 13, 288, 11160, 5621, 97, 430, 16051, 291, 11459, 13, 288, 2463, 31, 97, 759, 5219, 30, 1297, 741, 333, 1347, 326, 819, 353, 486, 783, 487, 518, 2026, 759, 2198, 5390, 5546, 310, 326, 293, 4106, 261, 2972, 819, 13, 471, 759, 283, 17, 23799, 518, 1493, 433, 13055, 358, 741, 8214, 1323, 326, 819, 353, 759, 783, 430, 261, 4110, 607, 6560, 13, 288, 4110, 607, 6560, 5621, 97, 25575, 18, 542, 17558, 12, 75, 1769, 430, 261, 717, 80, 8798, 1526, 13, 288, 5852, 22, 40, 18, 14407, 1190, 51, 11261, 1042, 3935, 12, 75, 16, 394, 10254, 1435, 288, 482, 918, 1086, 1435, 288, 430, 261, 9394, 597, 27857, 13, 288, 3163, 18, 370, 18, 8222, 2932, 413, 657, 4356, 1190, 51, 11261, 1042, 3935, 8863, 97, 759, 1788, 1158, 17, 556, 819, 5123, 5110, 22, 40, 819, 430, 261, 78, 22, 72, 1042, 422, 446, 13, 288, 78, 22, 72, 1042, 273, 10252, 16149, 1733, 18, 588, 1733, 7675, 2640, 6841, 11261, 1042, 5621, 430, 261, 9394, 13, 288, 78, 22, 72, 1042, 18, 542, 11261, 12, 2704, 4015, 11261, 12, 78, 22, 72, 1042, 18, 588, 11261, 1435, 10019, 97, 759, 2073, 358, 2621, 2856, 732, 848, 2865, 326, 3764, 759, 12359, 578, 1608, 358, 4159, 1473, 358, 279, 293, 4106, 759, 9852, 30, 527, 1898, 4271, 35, 78, 22, 72, 1042, 18, 6540, 3935, 5621, 11261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 12574, 1841, 12, 6385, 16830, 314, 13, 288, 430, 261, 13139, 7520, 13, 288, 11160, 5621, 97, 430, 16051, 291, 11459, 13, 288, 2463, 31, 97, 759, 5219, 30, 1297, 741, 333, 1347, 326, 819, 353, 486, 783, 487, 518, 2026, 759, 2198, 5390, 5546, 310, 326, 293, 4106, 261, 2972, 819, 13, 471, 759, 283, 17, 23799, 518, 1493, 433, 13055, 358, 741, 8214, 1323, 326, 819, 353, 759, 783, 430, 261, 4110, 607, 6560, 13, 288, 4110, 607, 6560, 5621, 97, 25575, 18, 542, 17558, 12, 75, 1769, 430, 261, 717, 80, 8798, 1526, 13, 288, 5852, 22, 40, 18, 14407, 1190, 51, 11261, 1042, 3935, 12, 75, 16, 394, 10254, 1435, 288, 482, 918, 2 ]
public int getMinorTickSpacing() { return 0; }
public int getMinorTickSpacing() { return minorTickSpacing; }
public int getMinorTickSpacing() { return 0; // TODO } // getMinorTickSpacing()
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/0788b89b7368770a1157f825d60dd8c5a9df183e/JSlider.java/buggy/core/src/classpath/javax/javax/swing/JSlider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 9555, 280, 6264, 18006, 1435, 288, 202, 202, 2463, 374, 31, 368, 2660, 202, 97, 368, 9555, 280, 6264, 18006, 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, 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, 225, 202, 482, 509, 9555, 280, 6264, 18006, 1435, 288, 202, 202, 2463, 374, 31, 368, 2660, 202, 97, 368, 9555, 280, 6264, 18006, 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, -100, -100 ]
Map map = makeMap();
Map map = makeEmptyMap();
public void testEntrySetRemove() { if ((this instanceof TestMap.EntrySetSupportsRemove) == false || (this instanceof TestMap.SupportsPut) == false) { return; } Map map = makeMap(); map.put("1","1"); map.put("2","2"); map.put("3","3"); Object o = map.entrySet().iterator().next(); // remove one of the key/value pairs Set set = map.entrySet(); set.remove(o); assertTrue(set.size() == 2); // try to remove it again, to make sure // the Set is not confused by missing entries set.remove(o); assertTrue("size of Map should be 2, but was " + map.size(), map.size() == 2); }
55609 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55609/95ccabfc7c69813848c52fcb84fddd32b3eb7828/TestMap.java/clean/src/test/org/apache/commons/collections/TestMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1622, 694, 3288, 1435, 288, 3639, 309, 14015, 2211, 1276, 7766, 863, 18, 1622, 694, 27878, 3288, 13, 422, 629, 747, 5411, 261, 2211, 1276, 7766, 863, 18, 27878, 6426, 13, 422, 629, 13, 288, 5411, 327, 31, 3639, 289, 3639, 1635, 852, 273, 1221, 1921, 863, 5621, 3639, 852, 18, 458, 2932, 21, 15937, 21, 8863, 3639, 852, 18, 458, 2932, 22, 15937, 22, 8863, 3639, 852, 18, 458, 2932, 23, 15937, 23, 8863, 3639, 1033, 320, 273, 852, 18, 4099, 694, 7675, 9838, 7675, 4285, 5621, 3639, 368, 1206, 1245, 434, 326, 498, 19, 1132, 5574, 3639, 1000, 444, 273, 852, 18, 4099, 694, 5621, 3639, 444, 18, 4479, 12, 83, 1769, 3639, 1815, 5510, 12, 542, 18, 1467, 1435, 422, 576, 1769, 3639, 368, 775, 358, 1206, 518, 3382, 16, 358, 1221, 3071, 540, 368, 326, 1000, 353, 486, 2195, 3668, 635, 3315, 3222, 3639, 444, 18, 4479, 12, 83, 1769, 3639, 1815, 5510, 2932, 1467, 434, 1635, 1410, 506, 576, 16, 1496, 1703, 315, 397, 852, 18, 1467, 9334, 852, 18, 1467, 1435, 422, 576, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1622, 694, 3288, 1435, 288, 3639, 309, 14015, 2211, 1276, 7766, 863, 18, 1622, 694, 27878, 3288, 13, 422, 629, 747, 5411, 261, 2211, 1276, 7766, 863, 18, 27878, 6426, 13, 422, 629, 13, 288, 5411, 327, 31, 3639, 289, 3639, 1635, 852, 273, 1221, 1921, 863, 5621, 3639, 852, 18, 458, 2932, 21, 15937, 21, 8863, 3639, 852, 18, 458, 2932, 22, 15937, 22, 8863, 3639, 852, 18, 458, 2932, 23, 15937, 23, 8863, 3639, 1033, 320, 273, 852, 18, 4099, 694, 7675, 9838, 7675, 4285, 5621, 3639, 368, 1206, 1245, 434, 326, 498, 19, 1132, 5574, 3639, 1000, 444, 273, 852, 18, 4099, 694, 5621, 3639, 444, 18, 4479, 12, 83, 1769, 3639, 2 ]
if (Policy.DEBUG_STALE_JOBS) WorkbenchPlugin.log("Stale Job " + job.getName());
if (Policy.DEBUG_STALE_JOBS) { WorkbenchPlugin.log("Stale Job " + job.getName()); }
private boolean pruneStaleJobs() { Object[] jobsToCheck = jobs.keySet().toArray(); boolean pruned = false; for (int i = 0; i < jobsToCheck.length; i++) { Job job = (Job) jobsToCheck[i]; if(checkForStaleness(job)){ if (Policy.DEBUG_STALE_JOBS) WorkbenchPlugin.log("Stale Job " + job.getName()); //$NON-NLS-1$ pruned = true; } } return pruned; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/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, 377, 3238, 1250, 13293, 19155, 7276, 1435, 288, 3639, 1033, 8526, 6550, 18126, 273, 6550, 18, 856, 694, 7675, 31447, 5621, 3639, 1250, 27843, 273, 629, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 6550, 18126, 18, 2469, 31, 277, 27245, 288, 5411, 3956, 1719, 273, 261, 2278, 13, 6550, 18126, 63, 77, 15533, 5411, 309, 12, 1893, 1290, 510, 287, 15681, 12, 4688, 3719, 95, 2398, 202, 430, 261, 2582, 18, 9394, 67, 882, 37, 900, 67, 18321, 55, 13, 377, 1082, 3639, 4147, 22144, 3773, 18, 1330, 2932, 19155, 3956, 315, 397, 1719, 18, 17994, 10663, 4329, 3993, 17, 5106, 17, 21, 8, 2398, 202, 683, 20630, 273, 638, 31, 5411, 289, 3639, 289, 3639, 327, 27843, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 13293, 19155, 7276, 1435, 288, 3639, 1033, 8526, 6550, 18126, 273, 6550, 18, 856, 694, 7675, 31447, 5621, 3639, 1250, 27843, 273, 629, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 6550, 18126, 18, 2469, 31, 277, 27245, 288, 5411, 3956, 1719, 273, 261, 2278, 13, 6550, 18126, 63, 77, 15533, 5411, 309, 12, 1893, 1290, 510, 287, 15681, 12, 4688, 3719, 95, 2398, 202, 430, 261, 2582, 18, 9394, 67, 882, 37, 900, 67, 18321, 55, 13, 377, 1082, 3639, 4147, 22144, 3773, 18, 1330, 2932, 19155, 3956, 315, 397, 1719, 18, 17994, 10663, 4329, 3993, 17, 5106, 17, 21, 8, 2398, 202, 683, 20630, 273, 638, 31, 5411, 289, 3639, 289, 2 ]
int rowsToAdd = 8; final String theString = "abcdefghijklmnopqrstuvwxyz"; int count = 0; for (int i = 1; i <= rowsToAdd; i++) { pStmt.setInt(1, i); pStmt.setString(2, theString.substring(0, i));
int rowsToAdd = 8; final String theString = "abcdefghijklmnopqrstuvwxyz"; int count = 0; for (int i = 1; i <= rowsToAdd; i++) { pStmt.setInt(1, i); pStmt.setString(2, theString.substring(0, i));
public void testTransactions0010() throws Exception { Connection cx = getConnection(); dropTable("#t0010"); Statement stmt = cx.createStatement(); stmt.executeUpdate("create table #t0010 " + " (i integer not null, " + " s char(10) not null) "); cx.setAutoCommit(false); PreparedStatement pStmt = cx.prepareStatement( "insert into #t0010 values (?, ?)"); int rowsToAdd = 8; final String theString = "abcdefghijklmnopqrstuvwxyz"; int count = 0; for (int i = 1; i <= rowsToAdd; i++) { pStmt.setInt(1, i); pStmt.setString(2, theString.substring(0, i)); count += pStmt.executeUpdate(); } assertTrue(count == rowsToAdd); cx.rollback(); stmt = cx.createStatement(); ResultSet rs = stmt.executeQuery("select s, i from #t0010"); assertNotNull(rs); count = 0; while (rs.next()) { count++; assertTrue(rs.getString(1).trim().length() == rs.getInt(2)); } assertTrue(count == 0); cx.commit(); rowsToAdd = 6; for (int j = 1; j <= 2; j++) { count = 0; for (int i = 1; i <= rowsToAdd; i++) { pStmt.setInt(1, i + ((j-1) * rowsToAdd)); pStmt.setString(2, theString.substring(0, i)); count += pStmt.executeUpdate(); } assertTrue(count == rowsToAdd); cx.commit(); } rs = stmt.executeQuery("select s, i from #t0010"); count = 0; while (rs.next()) { count++; int i = rs.getInt(2); if (i > rowsToAdd) i -= rowsToAdd; assertTrue(rs.getString(1).trim().length() == i); } assertTrue(count == (2 * rowsToAdd)); cx.commit(); cx.setAutoCommit(true); }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/d456535dc5bca0bbf54c0b9c6730e782aa275787/TimestampTest.java/clean/src.old/test/freetds/TimestampTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 14186, 713, 2163, 1435, 1216, 1185, 202, 95, 202, 202, 1952, 9494, 273, 6742, 5621, 202, 202, 7285, 1388, 2932, 7, 88, 713, 2163, 8863, 202, 202, 3406, 3480, 273, 9494, 18, 2640, 3406, 5621, 202, 202, 10589, 18, 8837, 1891, 2932, 2640, 1014, 468, 88, 713, 2163, 315, 1082, 202, 15, 315, 225, 261, 77, 225, 3571, 225, 486, 446, 16, 1377, 315, 1082, 202, 15, 315, 282, 272, 225, 1149, 12, 2163, 13, 486, 446, 13, 1377, 315, 1769, 202, 202, 71, 92, 18, 542, 4965, 5580, 12, 5743, 1769, 202, 202, 29325, 293, 8952, 273, 9494, 18, 9366, 3406, 12, 1082, 202, 6, 6387, 1368, 468, 88, 713, 2163, 924, 13590, 16, 692, 2225, 1769, 202, 202, 474, 2595, 13786, 273, 1725, 31, 202, 202, 6385, 514, 326, 780, 273, 315, 28953, 17680, 8302, 16391, 13607, 556, 85, 16114, 30900, 17177, 14432, 202, 202, 474, 1056, 273, 374, 31, 202, 202, 1884, 261, 474, 277, 273, 404, 31, 277, 1648, 2595, 13786, 31, 277, 27245, 202, 202, 95, 1082, 202, 84, 8952, 18, 542, 1702, 12, 21, 16, 277, 1769, 1082, 202, 84, 8952, 18, 542, 780, 12, 22, 16, 326, 780, 18, 28023, 12, 20, 16, 277, 10019, 1082, 202, 1883, 1011, 293, 8952, 18, 8837, 1891, 5621, 202, 202, 97, 202, 202, 11231, 5510, 12, 1883, 422, 2595, 13786, 1769, 202, 202, 71, 92, 18, 20050, 5621, 202, 202, 10589, 273, 9494, 18, 2640, 3406, 5621, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 14186, 713, 2163, 1435, 1216, 1185, 202, 95, 202, 202, 1952, 9494, 273, 6742, 5621, 202, 202, 7285, 1388, 2932, 7, 88, 713, 2163, 8863, 202, 202, 3406, 3480, 273, 9494, 18, 2640, 3406, 5621, 202, 202, 10589, 18, 8837, 1891, 2932, 2640, 1014, 468, 88, 713, 2163, 315, 1082, 202, 15, 315, 225, 261, 77, 225, 3571, 225, 486, 446, 16, 1377, 315, 1082, 202, 15, 315, 282, 272, 225, 1149, 12, 2163, 13, 486, 446, 13, 1377, 315, 1769, 202, 202, 71, 92, 18, 542, 4965, 5580, 12, 5743, 1769, 202, 202, 29325, 293, 8952, 273, 9494, 18, 9366, 3406, 12, 1082, 202, 6, 6387, 1368, 468, 88, 713, 2163, 924, 13590, 2 ]
if (_option_handlers[ii] != null)
if (optionHandlers[ii] != null)
protected void _connectAction_() throws IOException { /* (start). BUGFIX: clean the option info for each connection*/ for (int ii = 0; ii < TelnetOption.MAX_OPTION_VALUE + 1; ii++) { _doResponse[ii] = 0; _willResponse[ii] = 0; _options[ii] = 0; if (_option_handlers[ii] != null) { _option_handlers[ii].setDo(false); _option_handlers[ii].setWill(false); } } /* (end). BUGFIX: clean the option info for each connection*/ super._connectAction_(); _input_ = new BufferedInputStream(_input_); _output_ = new BufferedOutputStream(_output_); /* open TelnetOptionHandler functionality (start)*/ for (int ii = 0; ii < TelnetOption.MAX_OPTION_VALUE + 1; ii++) { if (_option_handlers[ii] != null) { if (_option_handlers[ii].getInitLocal()) { try { _requestWill(_option_handlers[ii].getOptionCode()); } catch(IOException e) { System.err.println( "Exception while initializing option: " + e.getMessage()); } } if (_option_handlers[ii].getInitRemote()) { try { _requestDo(_option_handlers[ii].getOptionCode()); } catch (IOException e) { System.err.println( "Exception while initializing option: " + e.getMessage()); } } } } /* open TelnetOptionHandler functionality (end)*/ }
50121 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50121/9cdfe8b631f8520c9bcf72b76cc6a9e9a5392222/Telnet.java/clean/src/java/org/apache/commons/net/telnet/Telnet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 389, 3612, 1803, 67, 1435, 1216, 1860, 565, 288, 3639, 1748, 261, 1937, 2934, 10937, 43, 4563, 30, 2721, 326, 1456, 1123, 364, 1517, 1459, 5549, 3639, 364, 261, 474, 6072, 273, 374, 31, 6072, 411, 399, 292, 2758, 1895, 18, 6694, 67, 7425, 67, 4051, 397, 404, 31, 6072, 27245, 3639, 288, 5411, 389, 2896, 1064, 63, 2835, 65, 273, 374, 31, 5411, 389, 20194, 1064, 63, 2835, 65, 273, 374, 31, 5411, 389, 2116, 63, 2835, 65, 273, 374, 31, 5411, 309, 261, 3482, 6919, 63, 2835, 65, 480, 446, 13, 5411, 288, 7734, 389, 3482, 67, 11046, 63, 2835, 8009, 542, 3244, 12, 5743, 1769, 7734, 389, 3482, 67, 11046, 63, 2835, 8009, 542, 13670, 12, 5743, 1769, 5411, 289, 3639, 289, 3639, 1748, 261, 409, 2934, 10937, 43, 4563, 30, 2721, 326, 1456, 1123, 364, 1517, 1459, 5549, 3639, 2240, 6315, 3612, 1803, 67, 5621, 3639, 389, 2630, 67, 273, 394, 24742, 24899, 2630, 67, 1769, 3639, 389, 2844, 67, 273, 394, 28649, 24899, 2844, 67, 1769, 3639, 1748, 1696, 399, 292, 2758, 1895, 1503, 14176, 261, 1937, 13, 5549, 3639, 364, 261, 474, 6072, 273, 374, 31, 6072, 411, 399, 292, 2758, 1895, 18, 6694, 67, 7425, 67, 4051, 397, 404, 31, 6072, 27245, 3639, 288, 5411, 309, 261, 3482, 6919, 63, 2835, 65, 480, 446, 13, 5411, 288, 7734, 309, 261, 67, 3482, 67, 11046, 63, 2835, 8009, 588, 2570, 2042, 10756, 7734, 288, 10792, 775, 10792, 288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 389, 3612, 1803, 67, 1435, 1216, 1860, 565, 288, 3639, 1748, 261, 1937, 2934, 10937, 43, 4563, 30, 2721, 326, 1456, 1123, 364, 1517, 1459, 5549, 3639, 364, 261, 474, 6072, 273, 374, 31, 6072, 411, 399, 292, 2758, 1895, 18, 6694, 67, 7425, 67, 4051, 397, 404, 31, 6072, 27245, 3639, 288, 5411, 389, 2896, 1064, 63, 2835, 65, 273, 374, 31, 5411, 389, 20194, 1064, 63, 2835, 65, 273, 374, 31, 5411, 389, 2116, 63, 2835, 65, 273, 374, 31, 5411, 309, 261, 3482, 6919, 63, 2835, 65, 480, 446, 13, 5411, 288, 7734, 389, 3482, 67, 11046, 63, 2835, 8009, 542, 3244, 12, 5743, 1769, 7734, 389, 3482, 67, 11046, 63, 2835, 8009, 2 ]
public BadFilterException ( String s, int nErrorLineNumber ) { m_strException = s; m_nLine = nErrorLineNumber;
public BadFilterException () { m_strException = "Unknown Error";
public BadFilterException ( String s, int nErrorLineNumber ) { m_strException = s; m_nLine = nErrorLineNumber; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/59ef87b922389c2acb498b8fdd992ed9924b80b1/BadFilterException.java/buggy/directory/java-sdk/ldapfilter/netscape/ldap/util/BadFilterException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6107, 1586, 503, 261, 514, 272, 16, 509, 290, 668, 31063, 262, 288, 3639, 312, 67, 701, 503, 273, 272, 31, 3639, 312, 67, 82, 1670, 273, 290, 668, 31063, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6107, 1586, 503, 261, 514, 272, 16, 509, 290, 668, 31063, 262, 288, 3639, 312, 67, 701, 503, 273, 272, 31, 3639, 312, 67, 82, 1670, 273, 290, 668, 31063, 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 ]
functionNumber = 0;
fn_functionNumber = 0;
private Object function(TokenStream ts, boolean isExpr) throws IOException, JavaScriptException { int baseLineno = ts.getLineno(); // line number where source starts String name; Object memberExprNode = null; if (ts.matchToken(ts.NAME)) { name = ts.getString(); if (!ts.matchToken(ts.LP)) { if (Context.getContext().hasFeature (Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME)) { // Extension to ECMA: if 'function <name>' does not follow // by '(', assume <name> starts memberExpr sourceAddString(ts.NAME, name); Object memberExprHead = nf.createName(name); name = null; memberExprNode = memberExprTail(ts, false, memberExprHead); } mustMatchToken(ts, ts.LP, "msg.no.paren.parms"); } } else if (ts.matchToken(ts.LP)) { // Anonymous function name = null; } else { name = null; if (Context.getContext().hasFeature (Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME)) { // Note that memberExpr can not start with '(' like // in (1+2).toString, because 'function (' already // processed as anonymous function memberExprNode = memberExpr(ts, false); } mustMatchToken(ts, ts.LP, "msg.no.paren.parms"); } if (memberExprNode != null) { // transform 'function' <memberExpr> to <memberExpr> = function // even in the decompilated source sourceAdd((char)ts.ASSIGN); sourceAdd((char)ts.NOP); } // save a reference to the function in the enclosing source. sourceAdd((char) ts.FUNCTION); sourceAdd((char)functionNumber); ++functionNumber; // Save current source top to restore it on exit not to include // function to parent source int savedSourceTop = sourceTop; int savedFunctionNumber = functionNumber; ObjArray args = new ObjArray(); Object body; String source; try { functionNumber = 0; // FUNCTION as the first token in a Source means it's a function // definition, and not a reference. sourceAdd((char) ts.FUNCTION); if (name != null) { sourceAddString(ts.NAME, name); } sourceAdd((char) ts.LP); if (!ts.matchToken(ts.RP)) { boolean first = true; do { if (!first) sourceAdd((char)ts.COMMA); first = false; mustMatchToken(ts, ts.NAME, "msg.no.parm"); String s = ts.getString(); args.add(s); sourceAddString(ts.NAME, s); } while (ts.matchToken(ts.COMMA)); mustMatchToken(ts, ts.RP, "msg.no.paren.after.parms"); } sourceAdd((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.body"); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); body = parseFunctionBody(ts); mustMatchToken(ts, ts.RC, "msg.no.brace.after.body"); sourceAdd((char)ts.RC); // skip the last EOL so nested functions work... // name might be null; source = sourceToString(savedSourceTop); } finally { sourceTop = savedSourceTop; functionNumber = savedFunctionNumber; } Object pn = nf.createFunction(name, args, body, ts.getSourceName(), baseLineno, ts.getLineno(), source, isExpr || memberExprNode != null); if (memberExprNode != null) { pn = nf.createBinary(ts.ASSIGN, ts.NOP, memberExprNode, pn); } // Add EOL but only if function is not part of expression, in which // case it gets SEMI + EOL from Statement. if (!isExpr) { if (memberExprNode != null) { // Add ';' to make 'function x.f(){}' and 'x.f = function(){}' // to print the same strings when decompiling sourceAdd((char)ts.SEMI); } sourceAdd((char)ts.EOL); wellTerminated(ts, ts.FUNCTION); } return pn; }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/56c3f65ac92dbd3ff9f471a1829280e95bd7ddf4/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 445, 12, 1345, 1228, 3742, 16, 1250, 353, 4742, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 509, 1026, 48, 267, 5764, 273, 3742, 18, 588, 48, 267, 5764, 5621, 225, 368, 980, 1300, 1625, 1084, 2542, 3639, 514, 508, 31, 3639, 1033, 3140, 4742, 907, 273, 446, 31, 3639, 309, 261, 3428, 18, 1916, 1345, 12, 3428, 18, 1985, 3719, 288, 5411, 508, 273, 3742, 18, 588, 780, 5621, 5411, 309, 16051, 3428, 18, 1916, 1345, 12, 3428, 18, 14461, 3719, 288, 7734, 309, 261, 1042, 18, 29120, 7675, 5332, 4595, 10792, 261, 1042, 18, 18257, 67, 19630, 67, 2294, 8025, 67, 3033, 67, 7788, 67, 1985, 3719, 7734, 288, 10792, 368, 10021, 358, 7773, 5535, 30, 309, 296, 915, 411, 529, 1870, 1552, 486, 2805, 10792, 368, 635, 7747, 2187, 6750, 411, 529, 34, 2542, 3140, 4742, 10792, 1084, 986, 780, 12, 3428, 18, 1985, 16, 508, 1769, 10792, 1033, 3140, 4742, 1414, 273, 13958, 18, 2640, 461, 12, 529, 1769, 10792, 508, 273, 446, 31, 10792, 3140, 4742, 907, 273, 3140, 4742, 12363, 12, 3428, 16, 629, 16, 3140, 4742, 1414, 1769, 7734, 289, 7734, 1297, 2060, 1345, 12, 3428, 16, 3742, 18, 14461, 16, 315, 3576, 18, 2135, 18, 13012, 18, 29927, 8863, 5411, 289, 3639, 289, 3639, 469, 309, 261, 3428, 18, 1916, 1345, 12, 3428, 18, 14461, 3719, 288, 5411, 368, 29775, 445, 5411, 508, 273, 446, 31, 3639, 289, 3639, 469, 288, 5411, 508, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 445, 12, 1345, 1228, 3742, 16, 1250, 353, 4742, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 509, 1026, 48, 267, 5764, 273, 3742, 18, 588, 48, 267, 5764, 5621, 225, 368, 980, 1300, 1625, 1084, 2542, 3639, 514, 508, 31, 3639, 1033, 3140, 4742, 907, 273, 446, 31, 3639, 309, 261, 3428, 18, 1916, 1345, 12, 3428, 18, 1985, 3719, 288, 5411, 508, 273, 3742, 18, 588, 780, 5621, 5411, 309, 16051, 3428, 18, 1916, 1345, 12, 3428, 18, 14461, 3719, 288, 7734, 309, 261, 1042, 18, 29120, 7675, 5332, 4595, 10792, 261, 1042, 18, 18257, 67, 19630, 67, 2294, 8025, 67, 3033, 67, 7788, 67, 1985, 3719, 7734, 288, 10792, 368, 10021, 2 ]
private void handleComment(String line, int row) { area.insertEnterAndIndent(); if (row > 0) { int index = row; while (index > 0) { line = area.getLineText(index); index--; if (COMMENT_REG_EXP.isMatch(line)) { REMatch matches = COMMENT_REG_EXP.getMatch(line); String hashes = matches.toString(2); if (hashes.equals("##")) { String indent = matches.toString(1); area.selectLine(); String text = area.getSelectedText() == null ? "" : area.getSelectedText(); text = text.trim(); area.setSelectedText(indent + "# " + text); area.goToEndOfLine(false); break; } } else { break; } } } }
13291 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13291/5ffc02345f22517bede1be03362a05e02b94dab1/AutoIndentAndInsertEnd.java/buggy/src/org/jedit/ruby/structure/AutoIndentAndInsertEnd.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 4110, 4469, 12, 780, 1369, 16, 474, 492, 15329, 5036, 18, 6387, 10237, 1876, 7790, 5621, 430, 12, 492, 34, 20, 15329, 474, 1615, 33, 492, 31, 17523, 12, 1615, 34, 20, 15329, 1369, 33, 5036, 18, 588, 1670, 1528, 12, 1615, 1769, 1615, 413, 31, 430, 12, 12200, 67, 5937, 67, 16109, 18, 291, 2060, 12, 1369, 3719, 95, 862, 2060, 8436, 33, 12200, 67, 5937, 67, 16109, 18, 588, 2060, 12, 1369, 1769, 780, 17612, 33, 8436, 18, 10492, 12, 22, 1769, 430, 12, 17612, 18, 14963, 2932, 1189, 6, 3719, 95, 780, 9355, 33, 8436, 18, 10492, 12, 21, 1769, 5036, 18, 4025, 1670, 5621, 780, 955, 33, 5036, 18, 588, 7416, 1528, 1435, 631, 2011, 35, 3660, 30, 5036, 18, 588, 7416, 1528, 5621, 955, 33, 955, 18, 5290, 5621, 5036, 18, 542, 7416, 1528, 12, 9355, 9078, 17133, 15, 955, 1769, 5036, 18, 3240, 774, 23358, 1670, 12, 5743, 1769, 8820, 31, 9090, 12107, 95, 8820, 31, 9090, 9090, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 4110, 4469, 12, 780, 1369, 16, 474, 492, 15329, 5036, 18, 6387, 10237, 1876, 7790, 5621, 430, 12, 492, 34, 20, 15329, 474, 1615, 33, 492, 31, 17523, 12, 1615, 34, 20, 15329, 1369, 33, 5036, 18, 588, 1670, 1528, 12, 1615, 1769, 1615, 413, 31, 430, 12, 12200, 67, 5937, 67, 16109, 18, 291, 2060, 12, 1369, 3719, 95, 862, 2060, 8436, 33, 12200, 67, 5937, 67, 16109, 18, 588, 2060, 12, 1369, 1769, 780, 17612, 33, 8436, 18, 10492, 12, 22, 1769, 430, 12, 17612, 18, 14963, 2932, 1189, 6, 3719, 95, 780, 9355, 33, 8436, 18, 10492, 12, 21, 1769, 5036, 18, 4025, 1670, 5621, 780, 955, 33, 5036, 18, 588, 7416, 1528, 1435, 2 ]
res.sendRedirect(PortalSessionManager.RENDER_URL_ELEMENT+PortalSessionManager.PORTAL_URL_SEPARATOR+newDetachId+PortalSessionManager.PORTAL_URL_SEPARATOR+PortalSessionManager.PORTAL_URL_SUFFIX);
res.sendRedirect(PortalSessionManager.DETACH_URL_ELEMENT+PortalSessionManager.PORTAL_URL_SEPARATOR+newDetachId+PortalSessionManager.PORTAL_URL_SEPARATOR+PortalSessionManager.PORTAL_URL_SUFFIX);
public void renderState (HttpServletRequest req, HttpServletResponse res, ChannelManager channelManager, IUserLayoutManager ulm, Object rendering_lock) throws PortalException { // process possible worker dispatch if(!processWorkerDispatch(req,res,channelManager,ulm)) { synchronized(rendering_lock) { // This function does ALL the content gathering/presentation work. // The following filter sequence is processed: // userLayoutXML (in UserLayoutManager) // | // incorporate StructureAttributes // | // Structure transformation // + (buffering step) // ChannelRendering Buffer // | // ThemeAttributesIncorporation Filter // | // Theme Transformation // | // ChannelIncorporation filter // | // Serializer (XHTML/WML/HTML/etc.) // | // JspWriter // try { // call layout manager to process all user-preferences-related request parameters // this will update UserPreference object contained by UserLayoutManager, so that // appropriate attribute incorporation filters and parameter tables can be constructed. ulm.processUserPreferencesParameters(req); PrintWriter out=res.getWriter(); // determine uPElement (optimistic prediction) --begin // We need uPElement for ChannelManager.setReqNRes() call. That call will distribute uPElement // to Privileged channels. We assume that Privileged channels are smart enough not to delete // themselves in the detach mode ! // In general transformations will start at the userLayoutRoot node, unless // we are rendering something in a detach mode. Node rElement = null; boolean detachMode = false; // see if an old detach target exists in the servlet path String detachId = null; String servletPath = req.getServletPath(); String uPFile = servletPath.substring(servletPath.lastIndexOf('/')+1, servletPath.length()); StringTokenizer uPTokenizer=new StringTokenizer(uPFile,PortalSessionManager.PORTAL_URL_SEPARATOR); if(uPTokenizer.hasMoreTokens()) { String type=uPTokenizer.nextToken(); if(type.equals(PortalSessionManager.DETACH_URL_ELEMENT)) { // detach mode, determine detached node if(uPTokenizer.hasMoreTokens()) { detachId=uPTokenizer.nextToken(); // LogService.instance().log(LogService.DEBUG,"UserInstance::renderState() : found detachId=\""+detachId+"\"."); } } } // see if a new detach target has been specified String newDetachId = req.getParameter("uP_detach_target"); // set optimistic uPElement value String uPElement = PortalSessionManager.RENDER_URL_ELEMENT; if (newDetachId != null) { uPElement = PortalSessionManager.DETACH_URL_ELEMENT +PortalSessionManager.PORTAL_URL_SEPARATOR+newDetachId; } else if (detachId!=null) { uPElement = PortalSessionManager.DETACH_URL_ELEMENT +PortalSessionManager.PORTAL_URL_SEPARATOR+detachId; } // determine uPElement (optimistic prediction) --end // set up the channel manager channelManager.setReqNRes(req, res, uPElement); // process events that have to be handed directly to the userLayoutManager. // (examples of such events are "remove channel", "minimize channel", etc. // basically things that directly affect the userLayout structure) try { processUserLayoutParameters(req,channelManager); } catch (PortalException pe) { LogService.instance().log(LogService.ERROR, "UserInstance.renderState(): processUserLayoutParameters() threw an exception - " + pe.getMessage()); } // after this point the layout is determined Document userLayout; BooleanLock llock=ulm.getUserLayoutWriteLock(); synchronized(llock) { // if the layout lock is dirty, prune the cache if(llock.getValue()) { LogService.instance().log(LogService.DEBUG,"UserInstance::writeContent() : pruning system caches."); systemCache.clear(); systemCharacterCache.clear(); llock.setValue(false); } userLayout=ulm.getUserLayout(); } UserPreferences userPreferences=ulm.getUserPreferences(); StructureStylesheetDescription ssd= ulm.getStructureStylesheetDescription(); ThemeStylesheetDescription tsd=ulm.getThemeStylesheetDescription(); // verify upElement and determine rendering root --begin // reset uPElement uPElement = PortalSessionManager.RENDER_URL_ELEMENT; if (newDetachId != null && (!newDetachId.equals(detachId))) { // see if the new detach traget is valid rElement = userLayout.getElementById(newDetachId); if (rElement != null) { // valid new detach id was specified. need to redirect res.sendRedirect(PortalSessionManager.RENDER_URL_ELEMENT+PortalSessionManager.PORTAL_URL_SEPARATOR+newDetachId+PortalSessionManager.PORTAL_URL_SEPARATOR+PortalSessionManager.PORTAL_URL_SUFFIX); return; } } // else ignore new id, proceed with the old detach target (or the lack of such) if (detachId != null) { // LogService.instance().log(LogService.DEBUG,"UserInstance::renderState() : uP_detach_target=\""+detachId+"\"."); rElement = userLayout.getElementById(detachId); detachMode = true; } // if we haven't found root node so far, set it to the userLayoutRoot if (rElement == null) { rElement = userLayout; detachMode = false; } if (detachMode) { LogService.instance().log(LogService.DEBUG, "UserInstance::renderState() : entering detach mode for nodeId=\"" + detachId + "\"."); uPElement = PortalSessionManager.RENDER_URL_ELEMENT+PortalSessionManager.PORTAL_URL_SEPARATOR+detachId; } // inform channel manager about the new uPElement value channelManager.setUPElement(uPElement); // verify upElement and determine rendering root --begin // set the response mime type res.setContentType(tsd.getMimeType()); // get a serializer appropriate for the target media BaseMarkupSerializer markupSerializer = mediaM.getSerializerByName(tsd.getSerializerName(), out); // set up the serializer markupSerializer.asContentHandler(); // see if we can use character caching boolean ccaching=(CHARACTER_CACHE_ENABLED && (markupSerializer instanceof CachingSerializer)); // initialize ChannelIncorporationFilter // ChannelIncorporationFilter cif = new ChannelIncorporationFilter(markupSerializer, channelManager); // this should be slightly faster then the ccaching version, may be worth adding support later CharacterCachingChannelIncorporationFilter cif = new CharacterCachingChannelIncorporationFilter(markupSerializer, channelManager,this.CACHE_ENABLED && this.CHARACTER_CACHE_ENABLED); String cacheKey=null; boolean output_produced=false; if(this.CACHE_ENABLED) { boolean ccache_exists=false; // obtain the cache key cacheKey=constructCacheKey(this.getPerson(),userPreferences,uPElement); if(ccaching) { // obtain character cache CharacterCacheEntry cCache=(CharacterCacheEntry) this.systemCharacterCache.get(cacheKey); if(cCache!=null && cCache.channelIds!=null && cCache.systemBuffers!=null) { ccache_exists=true; LogService.instance().log(LogService.DEBUG,"UserInstance::renderState() : retreived transformation character block cache for a key \""+cacheKey+"\""); // start channel threads for(int i=0;i<cCache.channelIds.size();i++) { Vector chanEntry=(Vector) cCache.channelIds.get(i); if(chanEntry!=null || chanEntry.size()!=2) { String chanId=(String)chanEntry.get(0); String chanClassName=(String)chanEntry.get(1); Long timeOut=(Long)chanEntry.get(2); Hashtable chanParams=(Hashtable)chanEntry.get(3); String channelPublishId=(String)chanEntry.get(4); channelManager.startChannelRendering(chanId,channelPublishId, chanClassName,timeOut.longValue(),chanParams,true); } else { LogService.instance().log(LogService.ERROR,"UserInstance::renderState() : channel entry "+Integer.toString(i)+" in character cache is invalid !"); } } // go through the output loop int ccsize=cCache.systemBuffers.size(); if(cCache.channelIds.size()!=ccsize-1) { LogService.instance().log(LogService.ERROR,"UserInstance::renderState() : channelId character cache has invalid size !"); } CachingSerializer cSerializer=(CachingSerializer) markupSerializer; cSerializer.setDocumentStarted(true); for(int sb=0; sb<ccsize-1;sb++) { cSerializer.printRawCharacters((String)cCache.systemBuffers.get(sb)); //LogService.instance().log(LogService.DEBUG,"----------printing frame piece "+Integer.toString(sb)); //LogService.instance().log(LogService.DEBUG,(String)cCache.systemBuffers.get(sb)); // get channel output Vector chanEntry=(Vector) cCache.channelIds.get(sb); String chanId=(String)chanEntry.get(0); String chanClassName=(String)chanEntry.get(1); Long timeOut=(Long)chanEntry.get(2); Hashtable chanParams=(Hashtable)chanEntry.get(3); String channelPublishId=(String)chanEntry.get(4); Object o=channelManager.getChannelCharacters (chanId, channelPublishId, chanClassName,timeOut.longValue(),chanParams); if(o!=null) { if(o instanceof String) { LogService.instance().log(LogService.DEBUG,"UserInstance::renderState() : received a character result for channelId=\""+chanId+"\""); cSerializer.printRawCharacters((String)o); //LogService.instance().log(LogService.DEBUG,"----------printing channel cache #"+Integer.toString(sb)); //LogService.instance().log(LogService.DEBUG,(String)o); } else if(o instanceof SAX2BufferImpl) { LogService.instance().log(LogService.DEBUG,"UserInstance::renderState() : received an XSLT result for channelId=\""+chanId+"\""); // extract a character cache // start new channel cache if(!cSerializer.startCaching()) { LogService.instance().log(LogService.ERROR,"UserInstance::renderState() : unable to restart channel cache on a channel start!"); } // output channel buffer if(o instanceof SAX2BufferImpl) { SAX2BufferImpl b=(SAX2BufferImpl) o; b.outputBuffer(markupSerializer); } // save the old cache state if(cSerializer.stopCaching()) { try { channelManager.setChannelCharacterCache(chanId,cSerializer.getCache()); //LogService.instance().log(LogService.DEBUG,"----------generated channel cache #"+Integer.toString(sb)); //LogService.instance().log(LogService.DEBUG,cSerializer.getCache()); } catch (UnsupportedEncodingException e) { LogService.instance().log(LogService.ERROR,"UserInstance::renderState() : unable to obtain character cache, invalid encoding specified ! "+e); } catch (IOException ioe) { LogService.instance().log(LogService.ERROR,"UserInstance::renderState() : IO exception occurred while retreiving character cache ! "+ioe); } } else { LogService.instance().log(LogService.ERROR,"UserInstance::renderState() : unable to reset cache state ! Serializer was not caching when it should've been !"); } } else { LogService.instance().log(LogService.ERROR,"UserInstance::renderState() : ChannelManager.getChannelCharacters() returned an unidentified object!"); } } } // print out the last block cSerializer.printRawCharacters((String)cCache.systemBuffers.get(ccsize-1)); //LogService.instance().log(LogService.DEBUG,"----------printing frame piece "+Integer.toString(ccsize-1)); //LogService.instance().log(LogService.DEBUG,(String)cCache.systemBuffers.get(ccsize-1)); cSerializer.flush(); output_produced=true; } } // if this failed, try XSLT cache if((!ccaching) || (!ccache_exists)) { // obtain XSLT cache SAX2BufferImpl cachedBuffer=(SAX2BufferImpl) this.systemCache.get(cacheKey); if(cachedBuffer!=null) { // replay the buffer to channel incorporation filter LogService.instance().log(LogService.DEBUG,"UserInstance::renderState() : retreived XSLT transformation cache for a key \""+cacheKey+"\""); // attach rendering buffer downstream of the cached buffer ChannelRenderingBuffer crb = new ChannelRenderingBuffer((XMLReader)cachedBuffer,channelManager,ccaching); // attach channel incorporation filter downstream of the channel rendering buffer cif.setParent(crb); crb.setOutputAtDocumentEnd(true); cachedBuffer.outputBuffer((ContentHandler)crb); output_produced=true; } } } // fallback on the regular rendering procedure if(!output_produced) { // obtain transformer handlers for both structure and theme stylesheets TransformerHandler ssth = XSLT.getTransformerHandler(PortalSessionManager.getResourceAsURL(ssd.getStylesheetURI()).toString()); TransformerHandler tsth = XSLT.getTransformerHandler(PortalSessionManager.getResourceAsURL(tsd.getStylesheetURI()).toString()); // obtain transformer references from the handlers Transformer sst=ssth.getTransformer(); Transformer tst=tsth.getTransformer(); // empty transformer to do dom2sax transition Transformer emptyt=TransformerFactory.newInstance().newTransformer(); // initialize ChannelRenderingBuffer and attach it downstream of the structure transformer ChannelRenderingBuffer crb = new ChannelRenderingBuffer(channelManager,ccaching); ssth.setResult(new SAXResult(crb)); // determine and set the stylesheet params // prepare .uP element and detach flag to be passed to the stylesheets // Including the context path in front of uPElement is necessary for phone.com browsers to work sst.setParameter("baseActionURL", new String(uPElement+PortalSessionManager.PORTAL_URL_SEPARATOR+PortalSessionManager.PORTAL_URL_SUFFIX)); Hashtable supTable = userPreferences.getStructureStylesheetUserPreferences().getParameterValues(); for (Enumeration e = supTable.keys(); e.hasMoreElements();) { String pName = (String)e.nextElement(); String pValue = (String)supTable.get(pName); LogService.instance().log(LogService.DEBUG, "UserInstance::renderState() : setting sparam \"" + pName + "\"=\"" + pValue + "\"."); sst.setParameter(pName, pValue); } // all the parameters are set up, fire up structure transformation // filter to fill in channel/folder attributes for the "structure" transformation. StructureAttributesIncorporationFilter saif = new StructureAttributesIncorporationFilter(ssth, userPreferences.getStructureStylesheetUserPreferences()); // This is a debug statement that will print out XML incoming to the // structure transformation to a log file serializer to a printstream StringWriter dbwr1 = null; OutputFormat outputFormat = null; if (printXMLBeforeStructureTransformation) { dbwr1 = new StringWriter(); outputFormat = new OutputFormat(); outputFormat.setIndenting(true); XMLSerializer dbser1 = new XMLSerializer(dbwr1, outputFormat); SAX2DuplicatingFilterImpl dupl1 = new SAX2DuplicatingFilterImpl(ssth, dbser1); dupl1.setParent(saif); } // if operating in the detach mode, need wrap everything // in a document node and a <layout_fragment> node if (detachMode) { saif.startDocument(); saif.startElement("","layout_fragment","layout_fragment", new org.xml.sax.helpers.AttributesImpl()); emptyt.transform(new DOMSource(rElement),new SAXResult(new ChannelSAXStreamFilter((ContentHandler)saif))); saif.endElement("","layout_fragment","layout_fragment"); saif.endDocument(); } else { emptyt.transform(new DOMSource(rElement),new SAXResult((ContentHandler)saif)); } // all channels should be rendering now // Debug piece to print out the recorded pre-structure transformation XML if (printXMLBeforeStructureTransformation) { LogService.instance().log(LogService.DEBUG, "UserInstance::renderState() : XML incoming to the structure transformation :\n\n" + dbwr1.toString() + "\n\n"); } // prepare for the theme transformation // set up of the parameters tst.setParameter("baseActionURL", new String(uPElement+PortalSessionManager.PORTAL_URL_SEPARATOR+PortalSessionManager.PORTAL_URL_SUFFIX)); Hashtable tupTable = userPreferences.getThemeStylesheetUserPreferences().getParameterValues(); for (Enumeration e = tupTable.keys(); e.hasMoreElements();) { String pName = (String)e.nextElement(); String pValue = (String)tupTable.get(pName); LogService.instance().log(LogService.DEBUG, "UserInstance::renderState() : setting tparam \"" + pName + "\"=\"" + pValue + "\"."); tst.setParameter(pName, pValue); } // initialize a filter to fill in channel attributes for the "theme" (second) transformation. // attach it downstream of the channel rendering buffer ThemeAttributesIncorporationFilter taif = new ThemeAttributesIncorporationFilter((XMLReader)crb, userPreferences.getThemeStylesheetUserPreferences()); // attach theme transformation downstream of the theme attribute incorporation filter taif.setAllHandlers(tsth); // This is a debug statement that will print out XML incoming to the // theme transformation to a log file serializer to a printstream StringWriter dbwr2 = null; if (printXMLBeforeThemeTransformation) { dbwr2 = new StringWriter(); XMLSerializer dbser2 = new XMLSerializer(dbwr2, outputFormat); SAX2DuplicatingFilterImpl dupl2 = new SAX2DuplicatingFilterImpl(tsth, dbser2); dupl2.setParent(taif); } if(this.CACHE_ENABLED && !ccaching) { // record cache // attach caching buffer downstream of the theme transformer SAX2BufferImpl newCache=new SAX2BufferImpl(); tsth.setResult(new SAXResult(newCache)); // attach channel incorporation filter downstream of the caching buffer cif.setParent(newCache); systemCache.put(cacheKey,newCache); newCache.setOutputAtDocumentEnd(true); LogService.instance().log(LogService.DEBUG,"UserInstance::renderState() : recorded transformation cache with key \""+cacheKey+"\""); } else { // attach channel incorporation filter downstream of the theme transformer tsth.setResult(new SAXResult(cif)); } // fire up theme transformation crb.stopBuffering(); crb.outputBuffer(); crb.clearBuffer(); // Debug piece to print out the recorded pre-theme transformation XML if (printXMLBeforeThemeTransformation) { LogService.instance().log(LogService.DEBUG, "UserInstance::renderState() : XML incoming to the theme transformation :\n\n" + dbwr2.toString() + "\n\n"); } if(this.CACHE_ENABLED && ccaching) { // save character block cache CharacterCacheEntry ce=new CharacterCacheEntry(); ce.systemBuffers=cif.getSystemCCacheBlocks(); ce.channelIds=cif.getChannelIdBlocks(); if(ce.systemBuffers==null || ce.channelIds==null) { LogService.instance().log(LogService.ERROR,"UserInstance::renderState() : CharacterCachingChannelIncorporationFilter returned invalid cache entries!"); } else { // record cache systemCharacterCache.put(cacheKey,ce); LogService.instance().log(LogService.DEBUG,"UserInstance::renderState() : recorded transformation character block cache with key \""+cacheKey+"\""); /* LogService.instance().log(LogService.DEBUG,"Printing transformation cache system blocks:"); for(int i=0;i<ce.systemBuffers.size();i++) { LogService.instance().log(LogService.DEBUG,"----------piece "+Integer.toString(i)); LogService.instance().log(LogService.DEBUG,(String)ce.systemBuffers.get(i)); } LogService.instance().log(LogService.DEBUG,"Printing transformation cache channel IDs:"); for(int i=0;i<ce.channelIds.size();i++) { LogService.instance().log(LogService.DEBUG,"----------channel entry "+Integer.toString(i)); LogService.instance().log(LogService.DEBUG,(String)((Vector)ce.channelIds.get(i)).get(0)); } */ } } } // signal the end of the rendering round channelManager.finishedRendering(); } catch (Exception e) { throw new PortalException(e); } } } }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/64aba2c37ae9d6b316a5aab9aea61b4d287e2a67/UserInstance.java/buggy/source/org/jasig/portal/UserInstance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1743, 1119, 261, 2940, 18572, 1111, 16, 12446, 400, 16, 5307, 1318, 1904, 1318, 16, 467, 1299, 3744, 1318, 7493, 81, 16, 1033, 9782, 67, 739, 13, 1216, 25478, 503, 288, 3639, 368, 1207, 3323, 4322, 3435, 3639, 309, 12, 5, 2567, 6671, 5325, 12, 3658, 16, 455, 16, 4327, 1318, 16, 332, 81, 3719, 288, 5411, 3852, 12, 5902, 310, 67, 739, 13, 288, 7734, 368, 1220, 445, 1552, 8061, 326, 913, 11090, 310, 19, 10364, 1440, 18, 7734, 368, 1021, 3751, 1034, 3102, 353, 5204, 30, 7734, 368, 3639, 729, 3744, 4201, 261, 267, 2177, 3744, 1318, 13, 7734, 368, 2868, 571, 7734, 368, 3639, 316, 3850, 3831, 340, 13348, 2498, 7734, 368, 2868, 571, 7734, 368, 3639, 13348, 8620, 7734, 368, 2868, 397, 261, 4106, 310, 2235, 13, 7734, 368, 3639, 5307, 14261, 3525, 7734, 368, 2868, 571, 7734, 368, 3639, 19745, 2498, 382, 29245, 4008, 7734, 368, 2868, 571, 7734, 368, 3639, 19745, 21274, 7734, 368, 2868, 571, 7734, 368, 3639, 5307, 382, 29245, 1034, 7734, 368, 2868, 571, 7734, 368, 3639, 15348, 261, 60, 4870, 19, 59, 1495, 19, 4870, 19, 14175, 12998, 7734, 368, 2868, 571, 7734, 368, 3639, 19300, 2289, 7734, 368, 7734, 775, 288, 10792, 368, 745, 3511, 3301, 358, 1207, 777, 729, 17, 23219, 17, 9243, 590, 1472, 10792, 368, 333, 903, 1089, 2177, 9624, 733, 7542, 635, 2177, 3744, 1318, 16, 1427, 716, 10792, 368, 5505, 1566, 316, 29245, 3415, 471, 1569, 4606, 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, 377, 1071, 918, 1743, 1119, 261, 2940, 18572, 1111, 16, 12446, 400, 16, 5307, 1318, 1904, 1318, 16, 467, 1299, 3744, 1318, 7493, 81, 16, 1033, 9782, 67, 739, 13, 1216, 25478, 503, 288, 3639, 368, 1207, 3323, 4322, 3435, 3639, 309, 12, 5, 2567, 6671, 5325, 12, 3658, 16, 455, 16, 4327, 1318, 16, 332, 81, 3719, 288, 5411, 3852, 12, 5902, 310, 67, 739, 13, 288, 7734, 368, 1220, 445, 1552, 8061, 326, 913, 11090, 310, 19, 10364, 1440, 18, 7734, 368, 1021, 3751, 1034, 3102, 353, 5204, 30, 7734, 368, 3639, 729, 3744, 4201, 261, 267, 2177, 3744, 1318, 13, 7734, 368, 2868, 571, 7734, 368, 3639, 316, 3850, 3831, 340, 13348, 2498, 7734, 368, 2868, 2 ]
logger.fine("Tried to move with a rotation, rotating only.");
logger.info(": move ignored (rotating)");
public void readOutputLink() { m_LastMove.reset(); m_RWaves = 0; assert m_Agent != null; int numberOfCommands = m_Agent.GetNumberCommands(); if (numberOfCommands == 0) { logger.fine(getName() + ": world count: " + Integer.toString(m_World.getWorldCount()) + ", issued no command."); return; } Identifier moveId = null; for (int i = 0; i < numberOfCommands; ++i) { Identifier commandId = m_Agent.GetCommand(i); String commandName = commandId.GetAttribute(); if (commandName.equalsIgnoreCase(kMoveID)) { if (m_LastMove.move == true) { logger.fine(getName() + ": Extra move commands detected."); commandId.AddStatusError(); continue; } String moveDirection = commandId.GetParameterValue(kDirectionID); if (moveDirection == null) { logger.fine(getName() + ": null move direction."); commandId.AddStatusError(); continue; } if (moveDirection.equalsIgnoreCase(kForwardID)) { m_LastMove.moveDirection = m_FacingInt; } else if (moveDirection.equalsIgnoreCase(kBackwardID)) { m_LastMove.moveDirection = Direction.backwardOf[this.m_FacingInt]; } else if (moveDirection.equalsIgnoreCase(kLeftID)) { m_LastMove.moveDirection = Direction.leftOf[this.m_FacingInt]; } else if (moveDirection.equalsIgnoreCase(kRightID)) { m_LastMove.moveDirection = Direction.rightOf[this.m_FacingInt]; } else { logger.fine(getName() + ": illegal move direction: " + moveDirection); commandId.AddStatusError(); continue; } moveId = commandId; m_LastMove.move = true; } else if (commandName.equalsIgnoreCase(kFireID)) { if (m_LastMove.fire == true) { logger.fine(getName() + ": Extra fire commands detected."); commandId.AddStatusError(); continue; } if (m_Missiles > 0) { m_LastMove.fire = true; } else { logger.fine(getName() + ": Attempted fire with no missles."); commandId.AddStatusError(); continue; } // Weapon ignored } else if (commandName.equalsIgnoreCase(kRadarID)) { if (m_LastMove.radar == true) { logger.fine(getName() + ": Extra radar commands detected."); commandId.AddStatusError(); continue; } String radarSwitch = commandId.GetParameterValue(kSwitchID); if (radarSwitch == null) { logger.fine(getName() + ": null radar switch."); commandId.AddStatusError(); continue; } m_LastMove.radar = true; m_LastMove.radarSwitch = radarSwitch.equalsIgnoreCase(kOn) ? true : false; } else if (commandName.equalsIgnoreCase(kRadarPowerID)) { if (m_LastMove.radarPower == true) { logger.fine(getName() + ": Extra radar power commands detected."); commandId.AddStatusError(); continue; } String powerValue = commandId.GetParameterValue(kSettingID); if (powerValue == null) { logger.fine(getName() + ": null radar power value."); commandId.AddStatusError(); continue; } try { m_LastMove.radarPowerSetting = Integer.decode(powerValue).intValue(); } catch (NumberFormatException e) { logger.fine(getName() + ": Unable to parse radar power setting " + powerValue + ": " + e.getMessage()); commandId.AddStatusError(); continue; } m_LastMove.radarPower = true; } else if (commandName.equalsIgnoreCase(kShieldsID)) { if (m_LastMove.shields == true) { logger.fine(getName() + ": Extra shield commands detected."); commandId.AddStatusError(); continue; } String shieldsSetting = commandId.GetParameterValue(kSwitchID); if (shieldsSetting == null) { logger.fine(getName() + ": null shields setting."); commandId.AddStatusError(); continue; } m_LastMove.shields = true; m_LastMove.shieldsSetting = shieldsSetting.equalsIgnoreCase(kOn) ? true : false; // Shields must be handled pronto handleShields(); } else if (commandName.equalsIgnoreCase(kRotateID)) { if (m_LastMove.rotate == true) { logger.fine(getName() + ": Extra rotate commands detected."); commandId.AddStatusError(); continue; } m_LastMove.rotateDirection = commandId.GetParameterValue(kDirectionID); if (m_LastMove.rotateDirection == null) { logger.fine(getName() + ": null rotation direction."); commandId.AddStatusError(); continue; } m_LastMove.rotate = true; // Rotation must be handled pronto and never fails. if (m_LastMove.rotate) { rotate(m_LastMove.rotateDirection); } } else { logger.warning(getName() + ": Unknown command: " + commandName); commandId.AddStatusError(); continue; } commandId.AddStatusComplete(); } m_Agent.ClearOutputLinkChanges(); m_Agent.Commit(); // Do not allow a move if we rotated. if (m_LastMove.rotate) { if (m_LastMove.move) { logger.fine("Tried to move with a rotation, rotating only."); assert moveId != null; moveId.AddStatusError(); moveId = null; m_LastMove.move = false; } } logger.info(getName() + " at (" + getLocation().x + "," + getLocation().y +"), world count: " + Integer.toString(m_World.getWorldCount()) + ", move: " + m_LastMove.toString()); }
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/6ab98c14254b2ebc08d9e407a42e8d1a9f57f80b/Tank.java/clean/SoarSuite/Environments/JavaTankSoar/source/tanksoar/Tank.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 855, 1447, 2098, 1435, 288, 202, 202, 81, 67, 3024, 7607, 18, 6208, 5621, 202, 202, 81, 67, 18810, 6606, 273, 374, 31, 9506, 202, 11231, 312, 67, 3630, 480, 446, 31, 202, 202, 474, 7922, 9127, 273, 312, 67, 3630, 18, 967, 1854, 9127, 5621, 202, 202, 430, 261, 2696, 951, 9127, 422, 374, 13, 288, 1082, 202, 4901, 18, 74, 558, 12, 17994, 1435, 397, 6398, 9117, 1056, 30, 315, 397, 2144, 18, 10492, 12, 81, 67, 18071, 18, 588, 18071, 1380, 10756, 397, 3104, 16865, 1158, 1296, 1199, 1769, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 3004, 3635, 548, 273, 446, 31, 9506, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 7922, 9127, 31, 965, 77, 13, 288, 1082, 202, 3004, 1296, 548, 273, 312, 67, 3630, 18, 967, 2189, 12, 77, 1769, 1082, 202, 780, 20893, 273, 1296, 548, 18, 967, 1499, 5621, 1082, 202, 430, 261, 3076, 461, 18, 14963, 5556, 12, 79, 7607, 734, 3719, 288, 9506, 202, 430, 261, 81, 67, 3024, 7607, 18, 8501, 422, 638, 13, 288, 6862, 202, 4901, 18, 74, 558, 12, 17994, 1435, 397, 6398, 13592, 3635, 4364, 8316, 1199, 1769, 6862, 202, 3076, 548, 18, 986, 1482, 668, 5621, 6862, 202, 17143, 31, 9506, 202, 97, 9506, 202, 780, 3635, 8212, 273, 1296, 548, 18, 967, 29655, 12, 79, 8212, 734, 1769, 9506, 202, 430, 261, 8501, 8212, 422, 446, 13, 288, 6862, 202, 4901, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 855, 1447, 2098, 1435, 288, 202, 202, 81, 67, 3024, 7607, 18, 6208, 5621, 202, 202, 81, 67, 18810, 6606, 273, 374, 31, 9506, 202, 11231, 312, 67, 3630, 480, 446, 31, 202, 202, 474, 7922, 9127, 273, 312, 67, 3630, 18, 967, 1854, 9127, 5621, 202, 202, 430, 261, 2696, 951, 9127, 422, 374, 13, 288, 1082, 202, 4901, 18, 74, 558, 12, 17994, 1435, 397, 6398, 9117, 1056, 30, 315, 397, 2144, 18, 10492, 12, 81, 67, 18071, 18, 588, 18071, 1380, 10756, 397, 3104, 16865, 1158, 1296, 1199, 1769, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 3004, 3635, 548, 273, 446, 31, 9506, 202, 1884, 261, 474, 277, 273, 374, 2 ]
if(!jList.isSelectionEmpty()) { return true; }
if(!jList.isSelectionEmpty()) { if(Connection.ONLINE == application.getConnectionStatus()) { return true; } }
public boolean canImport(final JComponent comp, final DataFlavor[] transferFlavors) { logger.debug(comp.getClass().getSimpleName()); // when updating a document; only 1 file must be imported if(1 == transferFlavors.length) { if(TxUtils.containsJavaFileList(transferFlavors)) { if(!jList.isSelectionEmpty()) { return true; } } } return false; }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/6cb388c7b9557f81ceac3e7efc2b4dafe30c338f/UpdateDocumentTxHandler.java/buggy/local/browser/src/main/java/com/thinkparity/browser/application/browser/dnd/UpdateDocumentTxHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 848, 5010, 12, 6385, 29058, 1161, 16, 5411, 727, 1910, 2340, 9444, 8526, 7412, 2340, 842, 1383, 13, 288, 3639, 1194, 18, 4148, 12, 2919, 18, 588, 797, 7675, 588, 5784, 461, 10663, 3639, 368, 1347, 9702, 279, 1668, 31, 1338, 404, 585, 1297, 506, 9101, 3639, 309, 12, 21, 422, 7412, 2340, 842, 1383, 18, 2469, 13, 288, 5411, 309, 12, 4188, 1989, 18, 12298, 5852, 26098, 12, 13866, 2340, 842, 1383, 3719, 288, 7734, 309, 12, 5, 78, 682, 18, 291, 6233, 1921, 10756, 288, 309, 12, 1952, 18, 673, 5997, 422, 2521, 18, 588, 1952, 1482, 10756, 288, 327, 638, 31, 289, 289, 5411, 289, 3639, 289, 3639, 327, 629, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 848, 5010, 12, 6385, 29058, 1161, 16, 5411, 727, 1910, 2340, 9444, 8526, 7412, 2340, 842, 1383, 13, 288, 3639, 1194, 18, 4148, 12, 2919, 18, 588, 797, 7675, 588, 5784, 461, 10663, 3639, 368, 1347, 9702, 279, 1668, 31, 1338, 404, 585, 1297, 506, 9101, 3639, 309, 12, 21, 422, 7412, 2340, 842, 1383, 18, 2469, 13, 288, 5411, 309, 12, 4188, 1989, 18, 12298, 5852, 26098, 12, 13866, 2340, 842, 1383, 3719, 288, 7734, 309, 12, 5, 78, 682, 18, 291, 6233, 1921, 10756, 288, 309, 12, 1952, 18, 673, 5997, 422, 2521, 18, 588, 1952, 1482, 10756, 288, 327, 638, 31, 289, 289, 5411, 289, 3639, 289, 3639, 327, 629, 31, 565, 289, 2 ]
if (fCopyRangeEndStack != null) { doCopySourcePreVisit(fEventStore.getRangeCopySources(node), fCopyRangeEndStack);
if (this.copyRangeEndStack != null) { doCopySourcePreVisit(ASTRewriteAnalyzer.this.eventStore.getRangeCopySources(node), this.copyRangeEndStack);
private void checkForRangeStart(ASTNode node) { if (fCopyRangeEndStack != null) { doCopySourcePreVisit(fEventStore.getRangeCopySources(node), fCopyRangeEndStack); } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/40ace06b6f9aaa2f71ebf049ffa37ed745fa6ef3/ASTRewriteAnalyzer.java/clean/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 918, 13855, 2655, 1685, 12, 9053, 907, 756, 13, 288, 1082, 202, 430, 261, 74, 2951, 2655, 1638, 2624, 480, 446, 13, 288, 9506, 202, 2896, 2951, 1830, 1386, 10432, 12, 74, 1133, 2257, 18, 588, 2655, 2951, 8628, 12, 2159, 3631, 284, 2951, 2655, 1638, 2624, 1769, 1082, 202, 97, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 918, 13855, 2655, 1685, 12, 9053, 907, 756, 13, 288, 1082, 202, 430, 261, 74, 2951, 2655, 1638, 2624, 480, 446, 13, 288, 9506, 202, 2896, 2951, 1830, 1386, 10432, 12, 74, 1133, 2257, 18, 588, 2655, 2951, 8628, 12, 2159, 3631, 284, 2951, 2655, 1638, 2624, 1769, 1082, 202, 97, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void rule_attributes(RuleDescr rule) throws RecognitionException { AttributeDescr a = null; try { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:447:25: ( ( 'attributes' )? ( ':' )? opt_eol ( ( ',' )? a= rule_attribute opt_eol )* ) // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:447:25: ( 'attributes' )? ( ':' )? opt_eol ( ( ',' )? a= rule_attribute opt_eol )* { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:447:25: ( 'attributes' )? int alt27=2; int LA27_0 = input.LA(1); if ( LA27_0==34 ) { alt27=1; } else if ( LA27_0==EOL||LA27_0==15||LA27_0==24||LA27_0==29||(LA27_0>=31 && LA27_0<=33)||(LA27_0>=35 && LA27_0<=40) ) { alt27=2; } else { NoViableAltException nvae = new NoViableAltException("447:25: ( \'attributes\' )?", 27, 0, input); throw nvae; } switch (alt27) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:447:25: 'attributes' { match(input,34,FOLLOW_34_in_rule_attributes802); } break; } // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:447:39: ( ':' )? int alt28=2; int LA28_0 = input.LA(1); if ( LA28_0==32 ) { alt28=1; } else if ( LA28_0==EOL||LA28_0==15||LA28_0==24||LA28_0==29||LA28_0==31||LA28_0==33||(LA28_0>=35 && LA28_0<=40) ) { alt28=2; } else { NoViableAltException nvae = new NoViableAltException("447:39: ( \':\' )?", 28, 0, input); throw nvae; } switch (alt28) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:447:39: ':' { match(input,32,FOLLOW_32_in_rule_attributes805); } break; } following.push(FOLLOW_opt_eol_in_rule_attributes808); opt_eol(); following.pop(); // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:448:25: ( ( ',' )? a= rule_attribute opt_eol )* loop30: do { int alt30=2; int LA30_0 = input.LA(1); if ( LA30_0==24||(LA30_0>=35 && LA30_0<=40) ) { alt30=1; } switch (alt30) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:448:33: ( ',' )? a= rule_attribute opt_eol { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:448:33: ( ',' )? int alt29=2; int LA29_0 = input.LA(1); if ( LA29_0==24 ) { alt29=1; } else if ( (LA29_0>=35 && LA29_0<=40) ) { alt29=2; } else { NoViableAltException nvae = new NoViableAltException("448:33: ( \',\' )?", 29, 0, input); throw nvae; } switch (alt29) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:448:33: ',' { match(input,24,FOLLOW_24_in_rule_attributes815); } break; } following.push(FOLLOW_rule_attribute_in_rule_attributes820); a=rule_attribute(); following.pop(); following.push(FOLLOW_opt_eol_in_rule_attributes822); opt_eol(); following.pop(); rule.addAttribute( a ); } break; default : break loop30; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/cb210a30853642e270a3bba6ce570409f6046852/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 67, 4350, 12, 2175, 16198, 1720, 13, 1216, 9539, 288, 6647, 3601, 16198, 279, 273, 446, 31, 3639, 775, 288, 5411, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 10649, 8464, 17, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 6334, 27, 30, 2947, 30, 261, 261, 296, 4350, 11, 7851, 261, 3921, 7851, 2153, 67, 30951, 261, 261, 3316, 7851, 279, 33, 1720, 67, 4589, 2153, 67, 30951, 8618, 262, 5411, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 10649, 8464, 17, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 6334, 27, 30, 2947, 30, 261, 296, 4350, 11, 7851, 261, 3921, 7851, 2153, 67, 30951, 261, 261, 3316, 7851, 279, 33, 1720, 67, 4589, 2153, 67, 30951, 8618, 5411, 288, 5411, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 10649, 8464, 17, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 6334, 27, 30, 2947, 30, 261, 296, 4350, 11, 7851, 5411, 509, 3770, 5324, 33, 22, 31, 5411, 509, 2928, 5324, 67, 20, 273, 810, 18, 2534, 12, 21, 1769, 5411, 309, 261, 2928, 5324, 67, 20, 631, 5026, 262, 288, 7734, 3770, 5324, 33, 21, 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, 377, 1071, 918, 1720, 67, 4350, 12, 2175, 16198, 1720, 13, 1216, 9539, 288, 6647, 3601, 16198, 279, 273, 446, 31, 3639, 775, 288, 5411, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 10649, 8464, 17, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 6334, 27, 30, 2947, 30, 261, 261, 296, 4350, 11, 7851, 261, 3921, 7851, 2153, 67, 30951, 261, 261, 3316, 7851, 279, 33, 1720, 67, 4589, 2153, 67, 30951, 8618, 262, 5411, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 10649, 8464, 17, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 2 ]
if (index >= args.length || args[index] instanceof vNull) { return dflt;
if (index >= args.length) { iRuntime.error(102); return 0.0;
static double argVal(vDescriptor[] args, int index, double dflt) // optional arg{ if (index >= args.length || args[index] instanceof vNull) { return dflt; } else { return args[index].mkReal().value; }}
4078 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4078/2b65dad4348487af766c7087e324e86d99c944b8/vReal.java/buggy/jcon/vReal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 1645, 1501, 3053, 12, 90, 3187, 8526, 833, 16, 509, 770, 16, 1645, 302, 31864, 13, 368, 3129, 1501, 95, 565, 309, 261, 1615, 1545, 833, 18, 2469, 747, 833, 63, 1615, 65, 1276, 331, 2041, 13, 288, 202, 2463, 302, 31864, 31, 565, 289, 469, 288, 202, 2463, 833, 63, 1615, 8009, 24816, 6955, 7675, 1132, 31, 565, 10523, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 1645, 1501, 3053, 12, 90, 3187, 8526, 833, 16, 509, 770, 16, 1645, 302, 31864, 13, 368, 3129, 1501, 95, 565, 309, 261, 1615, 1545, 833, 18, 2469, 747, 833, 63, 1615, 65, 1276, 331, 2041, 13, 288, 202, 2463, 302, 31864, 31, 565, 289, 469, 288, 202, 2463, 833, 63, 1615, 8009, 24816, 6955, 7675, 1132, 31, 565, 10523, 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 ]
_t = __t1348;
_t = __t1353;
public final void sqlupdatestate(AST _t) throws RecognitionException { AST sqlupdatestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1344 = _t; AST tmp1579_AST_in = (AST)_t; match(_t,UPDATE); _t = _t.getFirstChild(); tbl(_t,CQ.SCHEMATABLESYMBOL); _t = _retTree; AST tmp1580_AST_in = (AST)_t; match(_t,SET); _t = _t.getNextSibling(); sqlupdate_equal(_t); _t = _retTree; { _loop1346: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp1581_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); sqlupdate_equal(_t); _t = _retTree; } else { break _loop1346; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WHERE: { AST __t1348 = _t; AST tmp1582_AST_in = (AST)_t; match(_t,WHERE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_30.member(_t.getType()))) { sqlexpression(_t); _t = _retTree; } else if ((_t.getType()==CURRENT)) { AST tmp1583_AST_in = (AST)_t; match(_t,CURRENT); _t = _t.getNextSibling(); AST tmp1584_AST_in = (AST)_t; match(_t,OF); _t = _t.getNextSibling(); AST tmp1585_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); } else { throw new NoViableAltException(_t); } } _t = __t1348; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t1344; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1847, 416, 3404, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1847, 416, 3404, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 3437, 6334, 273, 389, 88, 31, 202, 202, 9053, 1853, 3600, 7235, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 8217, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 16187, 24899, 88, 16, 39, 53, 18, 55, 10390, 789, 2782, 22093, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 9053, 1853, 3600, 3672, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 4043, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 202, 202, 4669, 2725, 67, 9729, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 95, 202, 202, 67, 6498, 3437, 8749, 30, 202, 202, 2896, 288, 1082, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 1082, 202, 430, 14015, 67, 88, 18, 588, 559, 1435, 631, 4208, 5535, 3719, 288, 9506, 202, 9053, 1853, 3600, 11861, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 4208, 5535, 1769, 9506, 202, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1847, 416, 3404, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1847, 416, 3404, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 3437, 6334, 273, 389, 88, 31, 202, 202, 9053, 1853, 3600, 7235, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 8217, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 16187, 24899, 88, 16, 39, 53, 18, 55, 10390, 789, 2782, 22093, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 2 ]
shape = new Shape(spContainer, parent);
shape = new Picture(spContainer, parent);
public static Shape createShape(EscherContainerRecord spContainer, Shape parent){ if (spContainer.getRecordId() == EscherContainerRecord.SPGR_CONTAINER){ return new ShapeGroup(spContainer, parent); } Shape shape; EscherSpRecord spRecord = spContainer.getChildById(EscherSpRecord.RECORD_ID); int type = spRecord.getOptions() >> 4; switch (type){ case ShapeTypes.TextBox: case ShapeTypes.Rectangle: shape = new Shape(spContainer, parent); break; case ShapeTypes.PictureFrame: shape = new Shape(spContainer, parent); break; case ShapeTypes.Line: shape = new Line(spContainer, parent); break; case ShapeTypes.Ellipse: shape = new Ellipse(spContainer, parent); break; case ShapeTypes.NotPrimitive: shape = new ShapeGroup(spContainer, parent); break; default: shape = new Shape(spContainer, parent); break; } return shape; }
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/a6b1ef6d07c6eb85d5763c3f3e3e27af2d77d5ba/ShapeFactory.java/buggy/src/scratchpad/src/org/apache/poi/hslf/model/ShapeFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 12383, 752, 8500, 12, 6705, 19322, 2170, 2115, 1694, 2170, 16, 12383, 982, 15329, 3639, 309, 261, 1752, 2170, 18, 588, 2115, 548, 1435, 422, 25948, 19322, 2170, 2115, 18, 3118, 6997, 67, 21395, 15329, 5411, 327, 394, 12383, 1114, 12, 1752, 2170, 16, 982, 1769, 3639, 289, 3639, 12383, 2179, 31, 3639, 25948, 19322, 3389, 2115, 1694, 2115, 273, 1694, 2170, 18, 588, 1763, 5132, 12, 6705, 19322, 3389, 2115, 18, 22261, 67, 734, 1769, 3639, 509, 618, 273, 1694, 2115, 18, 588, 1320, 1435, 1671, 1059, 31, 3639, 1620, 261, 723, 15329, 5411, 648, 12383, 2016, 18, 1528, 3514, 30, 5411, 648, 12383, 2016, 18, 19463, 30, 7734, 2179, 273, 394, 28770, 12, 1752, 2170, 16, 982, 1769, 7734, 898, 31, 5411, 648, 12383, 2016, 18, 24061, 3219, 30, 7734, 2179, 273, 394, 28770, 12, 1752, 2170, 16, 982, 1769, 7734, 898, 31, 5411, 648, 12383, 2016, 18, 1670, 30, 7734, 2179, 273, 394, 5377, 12, 1752, 2170, 16, 982, 1769, 7734, 898, 31, 5411, 648, 12383, 2016, 18, 4958, 10472, 30, 7734, 2179, 273, 394, 10426, 10472, 12, 1752, 2170, 16, 982, 1769, 7734, 898, 31, 5411, 648, 12383, 2016, 18, 1248, 9840, 30, 7734, 2179, 273, 394, 12383, 1114, 12, 1752, 2170, 16, 982, 1769, 7734, 898, 31, 5411, 805, 30, 7734, 2179, 273, 394, 28770, 12, 1752, 2170, 16, 982, 1769, 7734, 898, 31, 3639, 289, 3639, 327, 2179, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 12383, 752, 8500, 12, 6705, 19322, 2170, 2115, 1694, 2170, 16, 12383, 982, 15329, 3639, 309, 261, 1752, 2170, 18, 588, 2115, 548, 1435, 422, 25948, 19322, 2170, 2115, 18, 3118, 6997, 67, 21395, 15329, 5411, 327, 394, 12383, 1114, 12, 1752, 2170, 16, 982, 1769, 3639, 289, 3639, 12383, 2179, 31, 3639, 25948, 19322, 3389, 2115, 1694, 2115, 273, 1694, 2170, 18, 588, 1763, 5132, 12, 6705, 19322, 3389, 2115, 18, 22261, 67, 734, 1769, 3639, 509, 618, 273, 1694, 2115, 18, 588, 1320, 1435, 1671, 1059, 31, 3639, 1620, 261, 723, 15329, 5411, 648, 12383, 2016, 18, 1528, 3514, 30, 5411, 648, 12383, 2016, 18, 19463, 30, 7734, 2179, 273, 394, 28770, 12, 1752, 2 ]
public MechFileParser(File f) { parse(f); }
public MechFileParser(File f) { parse(f); }
public MechFileParser(File f) { parse(f); }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/ba1566034a29b07081038502057427a362edb252/MechFileParser.java/clean/megamek/src/megamek/common/MechFileParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 202, 482, 7499, 343, 812, 2678, 12, 812, 284, 13, 225, 202, 95, 3196, 202, 2670, 12, 74, 1769, 225, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 202, 482, 7499, 343, 812, 2678, 12, 812, 284, 13, 225, 202, 95, 3196, 202, 2670, 12, 74, 1769, 225, 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 ]
commands = readCommandsFromFile( ADD_TYPE_DATA );
commands = readCommandsFromFile( INSERT_TYPE_DATA );
void initDatabase() { try { ArrayList commands = readCommandsFromFile( DROP_TABLES ); executeCommands( commands ); commands = readCommandsFromFile( CREATE_TABLES ); executeCreateCommands( commands ); // I tried to use batchUpdate but for the current Mimer driver that only works for SELECT, INSERT, UPDATE, // and DELETE operations and this method is also used for create table and drop table commands. /Hasse // sqlProcessor.executeBatchUpdate( con, (String[])commands.toArray( new String[commands.size()] ) ); commands = readCommandsFromFile( ADD_TYPE_DATA ); sqlProcessor.executeBatchUpdate( (String[])commands.toArray( new String[commands.size()] ) ); commands = readCommandsFromFile( INSERT_TYPE_DATA ); switch( databaseType ) { case MY_SQL: commands = changeCharInCurrentTimestampCast( commands ); break; } sqlProcessor.executeBatchUpdate( (String[])commands.toArray( new String[commands.size()] ) ); } catch( IOException ex ) { log.fatal( "Couldn't open a file ", ex ); } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/058c33fb5f3dc82b838656327eba7ddf2c108c27/DatabaseService.java/buggy/server/src/imcode/server/db/DatabaseService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1208, 4254, 1435, 288, 3639, 775, 288, 5411, 2407, 4364, 273, 855, 9127, 13087, 12, 25736, 67, 7775, 55, 11272, 5411, 1836, 9127, 12, 4364, 11272, 5411, 4364, 273, 855, 9127, 13087, 12, 13278, 67, 7775, 55, 11272, 5411, 29977, 9127, 12, 4364, 11272, 5411, 368, 467, 12928, 358, 999, 2581, 1891, 1496, 364, 326, 783, 490, 4417, 3419, 716, 1338, 6330, 364, 9111, 16, 14834, 16, 11028, 16, 5411, 368, 471, 8568, 5295, 471, 333, 707, 353, 2546, 1399, 364, 752, 1014, 471, 3640, 1014, 4364, 18, 342, 5582, 307, 5411, 368, 1847, 5164, 18, 8837, 4497, 1891, 12, 356, 16, 261, 780, 63, 5717, 7847, 18, 31447, 12, 394, 514, 63, 7847, 18, 1467, 1435, 65, 262, 11272, 5411, 4364, 273, 855, 9127, 13087, 12, 14834, 67, 2399, 67, 4883, 11272, 5411, 1847, 5164, 18, 8837, 4497, 1891, 12, 261, 780, 63, 5717, 7847, 18, 31447, 12, 394, 514, 63, 7847, 18, 1467, 1435, 65, 262, 11272, 5411, 4364, 273, 855, 9127, 13087, 12, 14834, 67, 2399, 67, 4883, 11272, 5411, 1620, 12, 2063, 559, 262, 288, 7734, 648, 22069, 67, 3997, 30, 10792, 4364, 273, 2549, 2156, 382, 3935, 4921, 9735, 12, 4364, 11272, 10792, 898, 31, 5411, 289, 5411, 1847, 5164, 18, 8837, 4497, 1891, 12, 261, 780, 63, 5717, 7847, 18, 31447, 12, 394, 514, 63, 7847, 18, 1467, 1435, 65, 262, 11272, 3639, 289, 1044, 12, 1860, 431, 262, 288, 5411, 613, 18, 30709, 12, 315, 16342, 1404, 1696, 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, 1208, 4254, 1435, 288, 3639, 775, 288, 5411, 2407, 4364, 273, 855, 9127, 13087, 12, 25736, 67, 7775, 55, 11272, 5411, 1836, 9127, 12, 4364, 11272, 5411, 4364, 273, 855, 9127, 13087, 12, 13278, 67, 7775, 55, 11272, 5411, 29977, 9127, 12, 4364, 11272, 5411, 368, 467, 12928, 358, 999, 2581, 1891, 1496, 364, 326, 783, 490, 4417, 3419, 716, 1338, 6330, 364, 9111, 16, 14834, 16, 11028, 16, 5411, 368, 471, 8568, 5295, 471, 333, 707, 353, 2546, 1399, 364, 752, 1014, 471, 3640, 1014, 4364, 18, 342, 5582, 307, 5411, 368, 1847, 5164, 18, 8837, 4497, 1891, 12, 356, 16, 261, 780, 63, 5717, 7847, 18, 31447, 12, 394, 514, 63, 7847, 18, 1467, 1435, 2 ]
synchronized PersistentItemStateProvider getWorkspaceStateManager(String workspaceName)
PersistentItemStateProvider getWorkspaceStateManager(String workspaceName)
synchronized PersistentItemStateProvider getWorkspaceStateManager(String workspaceName) throws NoSuchWorkspaceException, RepositoryException { // check state if (disposed) { throw new IllegalStateException("repository instance has been shut down"); } WorkspaceConfig wspConfig = (WorkspaceConfig) wspConfigs.get(workspaceName); if (wspConfig == null) { throw new NoSuchWorkspaceException(workspaceName); } // get/create per named workspace (i.e. per physical storage) item state manager PersistentItemStateProvider stateMgr = (PersistentItemStateProvider) wspStateMgrs.get(workspaceName); if (stateMgr == null) { // create state manager try { stateMgr = new PersistentItemStateManager(wspConfig.getPersistenceManager(), rootNodeUUID, ntReg); } catch (ItemStateException ise) { String msg = "failed to instantiate the persistent state manager"; log.error(msg, ise); throw new RepositoryException(msg, ise); } wspStateMgrs.put(workspaceName, stateMgr); } return stateMgr; }
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/0ecf861823d2bd78ff7b16b146e3a6bc63b73c12/RepositoryImpl.java/buggy/src/java/org/apache/jackrabbit/core/RepositoryImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 11049, 1180, 1119, 2249, 20280, 1119, 1318, 12, 780, 21522, 13, 5411, 1216, 5823, 8241, 503, 16, 13367, 288, 3639, 368, 866, 919, 3639, 309, 261, 2251, 7423, 13, 288, 5411, 604, 394, 5477, 2932, 9071, 791, 711, 2118, 9171, 2588, 8863, 3639, 289, 3639, 14396, 809, 341, 1752, 809, 273, 261, 8241, 809, 13, 341, 1752, 8062, 18, 588, 12, 14915, 461, 1769, 3639, 309, 261, 91, 1752, 809, 422, 446, 13, 288, 5411, 604, 394, 5823, 8241, 503, 12, 14915, 461, 1769, 3639, 289, 3639, 368, 336, 19, 2640, 1534, 4141, 6003, 261, 77, 18, 73, 18, 1534, 11640, 2502, 13, 761, 919, 3301, 3639, 11049, 1180, 1119, 2249, 919, 9455, 273, 7734, 261, 11906, 1180, 1119, 2249, 13, 341, 1752, 1119, 9455, 87, 18, 588, 12, 14915, 461, 1769, 3639, 309, 261, 2019, 9455, 422, 446, 13, 288, 5411, 368, 752, 919, 3301, 5411, 775, 288, 7734, 919, 9455, 273, 394, 11049, 1180, 1119, 1318, 12, 91, 1752, 809, 18, 588, 13182, 1318, 9334, 10181, 5562, 16, 9513, 1617, 1769, 5411, 289, 1044, 261, 1180, 5060, 31248, 13, 288, 7734, 514, 1234, 273, 315, 7307, 358, 10275, 326, 9195, 919, 3301, 14432, 7734, 613, 18, 1636, 12, 3576, 16, 31248, 1769, 7734, 604, 394, 13367, 12, 3576, 16, 31248, 1769, 5411, 289, 5411, 341, 1752, 1119, 9455, 87, 18, 458, 12, 14915, 461, 16, 919, 9455, 1769, 3639, 289, 3639, 327, 919, 9455, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 11049, 1180, 1119, 2249, 20280, 1119, 1318, 12, 780, 21522, 13, 5411, 1216, 5823, 8241, 503, 16, 13367, 288, 3639, 368, 866, 919, 3639, 309, 261, 2251, 7423, 13, 288, 5411, 604, 394, 5477, 2932, 9071, 791, 711, 2118, 9171, 2588, 8863, 3639, 289, 3639, 14396, 809, 341, 1752, 809, 273, 261, 8241, 809, 13, 341, 1752, 8062, 18, 588, 12, 14915, 461, 1769, 3639, 309, 261, 91, 1752, 809, 422, 446, 13, 288, 5411, 604, 394, 5823, 8241, 503, 12, 14915, 461, 1769, 3639, 289, 3639, 368, 336, 19, 2640, 1534, 4141, 6003, 261, 77, 18, 73, 18, 1534, 11640, 2502, 13, 761, 919, 3301, 3639, 11049, 1180, 1119, 2249, 919, 9455, 273, 7734, 261, 11906, 1180, 2 ]
} else { setLv(2);
public void setWithParamRequest(ServletRequest request) { String s; s = request.getParameter("fn"); if (s != null) { setFn(s); } s = request.getParameter("pn"); if (s != null) { setPn(s); } s = request.getParameter("ws"); if (s != null) { setWs(s); } s = request.getParameter("mo"); if (s != null) { setMo(s); } s = request.getParameter("mk"); if (s != null) { setMk(s); } s = request.getParameter("wx"); if (s != null) { setWx(s); } s = request.getParameter("wy"); if (s != null) { setWy(s); } s = request.getParameter("ww"); if (s != null) { setWw(s); } s = request.getParameter("wh"); if (s != null) { setWh(s); } s = request.getParameter("dw"); if (s != null) { setDw(s); } s = request.getParameter("dh"); if (s != null) { setDh(s); } s = request.getParameter("rot"); if (s != null) { setRot(s); } s = request.getParameter("cont"); if (s != null) { setCont(s); } s = request.getParameter("brgt"); if (s != null) { setBrgt(s); } s = request.getParameter("rgbm"); if (s != null) { setRgbm(s); } s = request.getParameter("rgba"); if (s != null) { setRgba(s); } s = request.getParameter("pt"); if (s != null) { setPt(s); }// lugi - begin s = request.getParameter("lv"); if (s != null) { setLv(s); } else { setLv(2); // default level ( might be initialized // in the reset method - robert? ) }// lugi - end s = ((HttpServletRequest) request).getPathInfo(); if (s != null) { setRequestPath(s); } }
53488 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53488/540098f4860fc74776b32b567f4d5d00fcdef3ab/DigilibRequest.java/buggy/servlet/src/digilib/servlet/DigilibRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 1190, 786, 691, 12, 18572, 590, 13, 288, 202, 202, 780, 272, 31, 202, 202, 87, 273, 590, 18, 588, 1662, 2932, 4293, 8863, 202, 202, 430, 261, 87, 480, 446, 13, 288, 1082, 202, 542, 5372, 12, 87, 1769, 202, 202, 97, 202, 202, 87, 273, 590, 18, 588, 1662, 2932, 7449, 8863, 202, 202, 430, 261, 87, 480, 446, 13, 288, 1082, 202, 542, 52, 82, 12, 87, 1769, 202, 202, 97, 202, 202, 87, 273, 590, 18, 588, 1662, 2932, 4749, 8863, 202, 202, 430, 261, 87, 480, 446, 13, 288, 1082, 202, 542, 15444, 12, 87, 1769, 202, 202, 97, 202, 202, 87, 273, 590, 18, 588, 1662, 2932, 8683, 8863, 202, 202, 430, 261, 87, 480, 446, 13, 288, 1082, 202, 542, 16727, 12, 87, 1769, 202, 202, 97, 202, 202, 87, 273, 590, 18, 588, 1662, 2932, 24816, 8863, 202, 202, 430, 261, 87, 480, 446, 13, 288, 1082, 202, 542, 49, 79, 12, 87, 1769, 202, 202, 97, 202, 202, 87, 273, 590, 18, 588, 1662, 2932, 27226, 8863, 202, 202, 430, 261, 87, 480, 446, 13, 288, 1082, 202, 542, 59, 92, 12, 87, 1769, 202, 202, 97, 202, 202, 87, 273, 590, 18, 588, 1662, 2932, 91, 93, 8863, 202, 202, 430, 261, 87, 480, 446, 13, 288, 1082, 202, 542, 59, 93, 12, 87, 1769, 202, 202, 97, 202, 202, 87, 273, 590, 18, 588, 1662, 2932, 3107, 8863, 202, 202, 430, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 1190, 786, 691, 12, 18572, 590, 13, 288, 202, 202, 780, 272, 31, 202, 202, 87, 273, 590, 18, 588, 1662, 2932, 4293, 8863, 202, 202, 430, 261, 87, 480, 446, 13, 288, 1082, 202, 542, 5372, 12, 87, 1769, 202, 202, 97, 202, 202, 87, 273, 590, 18, 588, 1662, 2932, 7449, 8863, 202, 202, 430, 261, 87, 480, 446, 13, 288, 1082, 202, 542, 52, 82, 12, 87, 1769, 202, 202, 97, 202, 202, 87, 273, 590, 18, 588, 1662, 2932, 4749, 8863, 202, 202, 430, 261, 87, 480, 446, 13, 288, 1082, 202, 542, 15444, 12, 87, 1769, 202, 202, 97, 202, 202, 87, 273, 590, 18, 588, 1662, 2932, 8683, 2 ]
public void setClassifier(/*MClassifier*/Object element) {
public void setClassifier(MClassifier element) {
public void setClassifier(/*MClassifier*/Object element) { Object target = getTarget(); if (org.argouml.model.ModelFacade.isAInstance(target)) { Object inst = /*(MInstance)*/ target;// ((MInstance) target).setClassifier((MClassifier) element); // delete all classifiers Collection col = ModelFacade.getClassifiers(inst); if (col != null) { Iterator iter = col.iterator(); if (iter != null && iter.hasNext()) { Object classifier = /*(MClassifier)*/ iter.next(); ModelFacade.removeClassifier(inst, classifier); } } // add classifier ModelFacade.addClassifier(inst, element); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/b646b1664d60a04ad3229da9ac57cd78ada607c2/PropPanelComponentInstance.java/buggy/src_new/org/argouml/uml/ui/behavior/common_behavior/PropPanelComponentInstance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 13860, 12, 49, 13860, 930, 13, 288, 3639, 1033, 1018, 273, 8571, 5621, 3639, 309, 261, 3341, 18, 26999, 22192, 18, 2284, 18, 1488, 12467, 18, 291, 37, 1442, 12, 3299, 3719, 288, 202, 565, 1033, 1804, 273, 1748, 12, 49, 1442, 13, 5549, 1018, 31, 759, 5411, 14015, 49, 1442, 13, 1018, 2934, 542, 13860, 12443, 49, 13860, 13, 930, 1769, 202, 565, 368, 1430, 777, 667, 3383, 202, 565, 2200, 645, 273, 3164, 12467, 18, 588, 10469, 12, 8591, 1769, 202, 565, 309, 261, 1293, 480, 446, 13, 288, 202, 202, 3198, 1400, 273, 645, 18, 9838, 5621, 202, 202, 430, 261, 2165, 480, 446, 597, 1400, 18, 5332, 2134, 10756, 288, 1082, 565, 1033, 14622, 273, 1748, 12, 49, 13860, 13, 5549, 1400, 18, 4285, 5621, 1082, 565, 3164, 12467, 18, 4479, 13860, 12, 8591, 16, 14622, 1769, 202, 202, 97, 202, 565, 289, 202, 565, 368, 527, 14622, 202, 565, 3164, 12467, 18, 1289, 13860, 12, 8591, 16, 930, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 444, 13860, 12, 49, 13860, 930, 13, 288, 3639, 1033, 1018, 273, 8571, 5621, 3639, 309, 261, 3341, 18, 26999, 22192, 18, 2284, 18, 1488, 12467, 18, 291, 37, 1442, 12, 3299, 3719, 288, 202, 565, 1033, 1804, 273, 1748, 12, 49, 1442, 13, 5549, 1018, 31, 759, 5411, 14015, 49, 1442, 13, 1018, 2934, 542, 13860, 12443, 49, 13860, 13, 930, 1769, 202, 565, 368, 1430, 777, 667, 3383, 202, 565, 2200, 645, 273, 3164, 12467, 18, 588, 10469, 12, 8591, 1769, 202, 565, 309, 261, 1293, 480, 446, 13, 288, 202, 202, 3198, 1400, 273, 645, 18, 9838, 5621, 202, 202, 430, 261, 2165, 480, 446, 597, 1400, 18, 5332, 2134, 10756, 288, 1082, 2 ]
if (jj_scan_token(INTERFACE)) return true;
Token xsp; xsp = jj_scanpos; if (jj_scan_token(28)) jj_scanpos = xsp; if (jj_scan_token(CLASS)) return true;
final private boolean jj_3R_91() { if (jj_scan_token(INTERFACE)) return true; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/b068fe5a79db07a544f081402e946a51a0f553c2/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 12416, 1435, 288, 565, 3155, 619, 1752, 31, 619, 1752, 273, 10684, 67, 9871, 917, 31, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 6030, 3719, 10684, 67, 9871, 917, 273, 619, 1752, 31, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 5237, 3719, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 12416, 1435, 288, 565, 3155, 619, 1752, 31, 619, 1752, 273, 10684, 67, 9871, 917, 31, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 6030, 3719, 10684, 67, 9871, 917, 273, 619, 1752, 31, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 5237, 3719, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
V source = e.getSource(); V target = e.getTarget();
V source = getEdgeSource(e); V target = getEdgeTarget(e);
public void removeEdgeFromTouchingVertices(E e) { V source = e.getSource(); V target = e.getTarget(); getEdgeContainer(source).removeOutgoingEdge(e); getEdgeContainer(target).removeIncomingEdge(e); }
47032 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47032/c3e5aa9fad3b9e0927939b2a916ae5049377758b/AbstractBaseGraph.java/buggy/src/org/jgrapht/graph/AbstractBaseGraph.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1206, 6098, 1265, 10491, 310, 13371, 12, 41, 425, 13, 3639, 288, 5411, 776, 1084, 273, 425, 18, 588, 1830, 5621, 5411, 776, 1018, 273, 425, 18, 588, 2326, 5621, 5411, 336, 6098, 2170, 12, 3168, 2934, 4479, 24866, 6098, 12, 73, 1769, 5411, 336, 6098, 2170, 12, 3299, 2934, 4479, 20370, 6098, 12, 73, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1206, 6098, 1265, 10491, 310, 13371, 12, 41, 425, 13, 3639, 288, 5411, 776, 1084, 273, 425, 18, 588, 1830, 5621, 5411, 776, 1018, 273, 425, 18, 588, 2326, 5621, 5411, 336, 6098, 2170, 12, 3168, 2934, 4479, 24866, 6098, 12, 73, 1769, 5411, 336, 6098, 2170, 12, 3299, 2934, 4479, 20370, 6098, 12, 73, 1769, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void lookupDoubleEntry() throws TestFailureException{ try{ try{ InitialContext ctx = new InitialContext(); Assert.assertNotNull("The InitialContext is null", ctx ); Double expected = new Double(1.0D); Double actual = (Double)ctx.lookup("java:comp/env/stateless/references/Double"); Assert.assertNotNull("The Double looked up is null", actual ); Assert.assertEquals(expected, actual ); } catch (Exception e){ Assert.fail("Received Exception "+e.getClass()+ " : "+e.getMessage()); } } catch (AssertionFailedError afe){ throw new TestFailureException(afe); } }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/a7581bfcff213c059c5fb436a8d713653398e685/EncStatelessBean.java/clean/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/EncStatelessBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3689, 5265, 1622, 1435, 1216, 7766, 14389, 95, 3639, 775, 95, 5411, 775, 95, 5411, 10188, 1042, 1103, 273, 394, 10188, 1042, 5621, 5411, 5452, 18, 11231, 5962, 2932, 1986, 10188, 1042, 353, 446, 3113, 1103, 11272, 13491, 3698, 2665, 273, 394, 3698, 12, 21, 18, 20, 40, 1769, 5411, 3698, 3214, 282, 273, 261, 5265, 13, 5900, 18, 8664, 2932, 6290, 30, 2919, 19, 3074, 19, 5642, 12617, 19, 14353, 19, 5265, 8863, 13491, 5452, 18, 11231, 5962, 2932, 1986, 3698, 27321, 731, 353, 446, 3113, 3214, 11272, 5411, 5452, 18, 11231, 8867, 12, 3825, 16, 3214, 11272, 5411, 289, 1044, 261, 503, 425, 15329, 7734, 5452, 18, 6870, 2932, 8872, 1185, 13773, 73, 18, 588, 797, 1435, 15, 315, 294, 13773, 73, 18, 24906, 10663, 5411, 289, 3639, 289, 1044, 261, 14979, 2925, 668, 279, 3030, 15329, 5411, 604, 394, 7766, 14389, 12, 2513, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3689, 5265, 1622, 1435, 1216, 7766, 14389, 95, 3639, 775, 95, 5411, 775, 95, 5411, 10188, 1042, 1103, 273, 394, 10188, 1042, 5621, 5411, 5452, 18, 11231, 5962, 2932, 1986, 10188, 1042, 353, 446, 3113, 1103, 11272, 13491, 3698, 2665, 273, 394, 3698, 12, 21, 18, 20, 40, 1769, 5411, 3698, 3214, 282, 273, 261, 5265, 13, 5900, 18, 8664, 2932, 6290, 30, 2919, 19, 3074, 19, 5642, 12617, 19, 14353, 19, 5265, 8863, 13491, 5452, 18, 11231, 5962, 2932, 1986, 3698, 27321, 731, 353, 446, 3113, 3214, 11272, 5411, 5452, 18, 11231, 8867, 12, 3825, 16, 3214, 11272, 5411, 289, 1044, 261, 503, 425, 15329, 7734, 5452, 18, 6870, 2932, 8872, 1185, 13773, 73, 18, 2 ]
default : throw argCountError(0); } }
default : throw argCountError(0); } }
public PyObject __call__() { PyCursor cursor = (PyCursor)__self__; switch (index) { case 0 : return cursor.fetchmany(cursor.arraysize); case 1 : cursor.close(); return Py.None; case 2 : return cursor.fetchall(); case 3 : return cursor.fetchone(); case 4 : return cursor.nextset(); default : throw argCountError(0); } }
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/0d813d1add7aae68e4ceb005186b7cb172ed5562/PyCursor.java/clean/com/ziclix/python/sql/PyCursor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4707, 921, 1001, 1991, 972, 1435, 288, 202, 202, 9413, 6688, 3347, 273, 261, 9413, 6688, 13, 972, 2890, 972, 31, 202, 202, 9610, 261, 1615, 13, 288, 1082, 202, 3593, 374, 294, 9506, 202, 2463, 3347, 18, 5754, 9353, 12, 9216, 18, 1126, 1467, 1769, 1082, 202, 3593, 404, 294, 9506, 202, 9216, 18, 4412, 5621, 9506, 202, 2463, 4707, 18, 7036, 31, 1082, 202, 3593, 576, 294, 9506, 202, 2463, 3347, 18, 5754, 454, 5621, 1082, 202, 3593, 890, 294, 9506, 202, 2463, 3347, 18, 5754, 476, 5621, 1082, 202, 3593, 1059, 294, 9506, 202, 2463, 3347, 18, 4285, 542, 5621, 1082, 202, 1886, 294, 9506, 202, 12849, 1501, 1380, 668, 12, 20, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4707, 921, 1001, 1991, 972, 1435, 288, 202, 202, 9413, 6688, 3347, 273, 261, 9413, 6688, 13, 972, 2890, 972, 31, 202, 202, 9610, 261, 1615, 13, 288, 1082, 202, 3593, 374, 294, 9506, 202, 2463, 3347, 18, 5754, 9353, 12, 9216, 18, 1126, 1467, 1769, 1082, 202, 3593, 404, 294, 9506, 202, 9216, 18, 4412, 5621, 9506, 202, 2463, 4707, 18, 7036, 31, 1082, 202, 3593, 576, 294, 9506, 202, 2463, 3347, 18, 5754, 454, 5621, 1082, 202, 3593, 890, 294, 9506, 202, 2463, 3347, 18, 5754, 476, 5621, 1082, 202, 3593, 1059, 294, 9506, 202, 2463, 3347, 18, 4285, 542, 5621, 1082, 202, 1886, 294, 9506, 202, 12849, 1501, 1380, 668, 12, 20, 1769, 2 ]
}*/
long[] begLength = ((RubyRange)args[0]).getBeginLength(length()); if (begLength == null) { return getRuby().getNil(); } else { return subseq(begLength[0], begLength[1]); } }
public RubyObject m_slice(RubyObject[] args) { if (args.length == 2) { long beg = ((RubyFixnum)args[0]).getValue(); long len = ((RubyFixnum)args[1]).getValue(); if (beg < 0) { beg += array.size(); } return subseq(beg, len); } if (args.length == 1) { if (args[0] instanceof RubyFixnum) { return entry(((RubyFixnum)args[0]).getValue()); }/* if (args[0] instanceof RubyBignum) { throw new RubyIndexException("index too big"); } if (args[0] instanceof RubyRange) { }*/ } return getRuby().getNil(); }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyArray.java/buggy/org/jruby/RubyArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 312, 67, 6665, 12, 54, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 1968, 18, 2469, 422, 576, 13, 288, 5411, 1525, 16847, 273, 14015, 54, 10340, 8585, 2107, 13, 1968, 63, 20, 65, 2934, 24805, 5621, 5411, 1525, 562, 273, 14015, 54, 10340, 8585, 2107, 13, 1968, 63, 21, 65, 2934, 24805, 5621, 5411, 309, 261, 70, 1332, 411, 374, 13, 288, 7734, 16847, 1011, 526, 18, 1467, 5621, 5411, 289, 5411, 327, 720, 5436, 12, 70, 1332, 16, 562, 1769, 3639, 289, 3639, 309, 261, 1968, 18, 2469, 422, 404, 13, 288, 5411, 309, 261, 1968, 63, 20, 65, 1276, 19817, 8585, 2107, 13, 288, 7734, 327, 1241, 12443, 12, 54, 10340, 8585, 2107, 13, 1968, 63, 20, 65, 2934, 24805, 10663, 5411, 289, 20308, 5411, 309, 261, 1968, 63, 20, 65, 1276, 19817, 38, 724, 379, 13, 288, 7734, 604, 394, 19817, 1016, 503, 2932, 1615, 4885, 5446, 8863, 5411, 289, 5411, 309, 261, 1968, 63, 20, 65, 1276, 19817, 2655, 13, 288, 21821, 1525, 8526, 16847, 1782, 273, 14015, 54, 10340, 2655, 13, 1968, 63, 20, 65, 2934, 588, 8149, 1782, 12, 2469, 10663, 309, 261, 70, 1332, 1782, 422, 446, 13, 288, 327, 4170, 10340, 7675, 588, 12616, 5621, 289, 469, 288, 327, 720, 5436, 12, 70, 1332, 1782, 63, 20, 6487, 16847, 1782, 63, 21, 19226, 289, 289, 3639, 289, 3639, 327, 4170, 10340, 7675, 588, 12616, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 312, 67, 6665, 12, 54, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 1968, 18, 2469, 422, 576, 13, 288, 5411, 1525, 16847, 273, 14015, 54, 10340, 8585, 2107, 13, 1968, 63, 20, 65, 2934, 24805, 5621, 5411, 1525, 562, 273, 14015, 54, 10340, 8585, 2107, 13, 1968, 63, 21, 65, 2934, 24805, 5621, 5411, 309, 261, 70, 1332, 411, 374, 13, 288, 7734, 16847, 1011, 526, 18, 1467, 5621, 5411, 289, 5411, 327, 720, 5436, 12, 70, 1332, 16, 562, 1769, 3639, 289, 3639, 309, 261, 1968, 18, 2469, 422, 404, 13, 288, 5411, 309, 261, 1968, 63, 20, 65, 1276, 19817, 8585, 2107, 13, 288, 7734, 327, 1241, 12443, 12, 54, 10340, 2 ]
public Thread (String n)
public Thread (ThreadGroup g, Runnable r, String n)
public Thread (String n) { this (null, null, n); }
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/9f3113e8a7b81eb35512df22ad15046b6d0ede75/Thread.java/buggy/libjava/java/lang/Thread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4884, 261, 3830, 1114, 314, 16, 10254, 436, 16, 514, 290, 13, 225, 288, 565, 333, 261, 2011, 16, 446, 16, 290, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 282, 1071, 4884, 261, 3830, 1114, 314, 16, 10254, 436, 16, 514, 290, 13, 225, 288, 565, 333, 261, 2011, 16, 446, 16, 290, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
IContributionItem insertGroupMenus = manager.findUsingPath( InsertGroupMenuAction.ID );
IContributionItem insertGroupMenus = manager.findUsingPath( InsertGroupMenuAction.ID );
public void menuAboutToShow( IMenuManager manager ) { IContributionItem addGroupMenu = manager.findUsingPath( AddGroupAction.ID ); IContributionItem insertGroupMenus = manager.findUsingPath( InsertGroupMenuAction.ID ); if(addGroupMenu == null || insertGroupMenus == null) { return; } RetargetAction action = (RetargetAction) getAction( AddGroupAction.ID ); if ( action != null && action.getActionHandler( ) instanceof AddGroupAction ) { if(action.getActionHandler( ).isEnabled( )) { addGroupMenu.setVisible( true ); insertGroupMenus.setVisible( false ); }else { addGroupMenu.setVisible( false ); insertGroupMenus.setVisible( true ); } manager.update( true ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/4b3efcb49bcc6fb6a234d6ca8911ba881eec5bae/DesignerActionBarContributor.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/DesignerActionBarContributor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3824, 24813, 774, 5706, 12, 467, 4599, 1318, 3301, 262, 1082, 202, 95, 9506, 202, 45, 442, 4027, 1180, 18899, 4599, 273, 3301, 18, 4720, 7736, 743, 12, 1436, 1114, 1803, 18, 734, 11272, 9506, 202, 45, 442, 4027, 1180, 2243, 1114, 29755, 273, 3301, 18, 4720, 7736, 743, 12, 8040, 1114, 4599, 1803, 18, 734, 11272, 25083, 202, 430, 12, 1289, 1114, 4599, 422, 446, 747, 2243, 1114, 29755, 422, 446, 13, 9506, 202, 95, 6862, 202, 2463, 31, 9506, 202, 97, 9506, 202, 7055, 826, 1803, 1301, 273, 261, 7055, 826, 1803, 13, 12473, 12, 1436, 1114, 1803, 18, 734, 11272, 9506, 202, 430, 261, 1301, 480, 446, 25083, 202, 10, 10, 1301, 18, 588, 1803, 1503, 12, 262, 1276, 1436, 1114, 1803, 262, 9506, 202, 95, 6862, 202, 430, 12, 1128, 18, 588, 1803, 1503, 12, 262, 18, 291, 1526, 12, 8623, 6862, 202, 95, 6862, 6862, 9506, 202, 1289, 1114, 4599, 18, 542, 6207, 12, 638, 11272, 25083, 202, 6387, 1114, 29755, 18, 542, 6207, 12, 629, 11272, 6862, 202, 97, 12107, 6862, 202, 95, 25083, 202, 1289, 1114, 4599, 18, 542, 6207, 12, 629, 11272, 25083, 202, 6387, 1114, 29755, 18, 542, 6207, 12, 638, 11272, 6862, 6862, 6862, 6862, 202, 97, 6862, 202, 4181, 18, 2725, 12, 638, 11272, 9506, 202, 97, 1082, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3824, 24813, 774, 5706, 12, 467, 4599, 1318, 3301, 262, 1082, 202, 95, 9506, 202, 45, 442, 4027, 1180, 18899, 4599, 273, 3301, 18, 4720, 7736, 743, 12, 1436, 1114, 1803, 18, 734, 11272, 9506, 202, 45, 442, 4027, 1180, 2243, 1114, 29755, 273, 3301, 18, 4720, 7736, 743, 12, 8040, 1114, 4599, 1803, 18, 734, 11272, 25083, 202, 430, 12, 1289, 1114, 4599, 422, 446, 747, 2243, 1114, 29755, 422, 446, 13, 9506, 202, 95, 6862, 202, 2463, 31, 9506, 202, 97, 9506, 202, 7055, 826, 1803, 1301, 273, 261, 7055, 826, 1803, 13, 12473, 12, 1436, 1114, 1803, 18, 734, 11272, 9506, 202, 430, 261, 1301, 480, 446, 25083, 202, 10, 10, 1301, 2 ]
Rectangle area = tree.getClientArea(); TreeColumn[] columns = tree.getColumns(); if (area.width > 0 && columns[0].getWidth() == 0) { columns[0].setWidth(area.width * 40 / 100); columns[1].setWidth(area.width - columns[0].getWidth() - 4); tree.removeControlListener(controlListener);
Rectangle area = tree.getClientArea(); TreeColumn[] columns = tree.getColumns(); if (area.width > 0 && columns[0].getWidth() == 0) { columns[0].setWidth(area.width * 40 / 100); columns[1].setWidth(area.width - columns[0].getWidth() - 4); tree.removeControlListener(this); }
public void controlResized(ControlEvent e) { Rectangle area = tree.getClientArea(); TreeColumn[] columns = tree.getColumns(); if (area.width > 0 && columns[0].getWidth() == 0) { columns[0].setWidth(area.width * 40 / 100); columns[1].setWidth(area.width - columns[0].getWidth() - 4); tree.removeControlListener(controlListener); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/1fd7d8f0526607ac9de97f9304024c624274cd62/PropertySheetViewer.java/buggy/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheetViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3325, 607, 1235, 12, 3367, 1133, 425, 13, 288, 5411, 13264, 5091, 273, 2151, 18, 588, 1227, 5484, 5621, 5411, 4902, 1494, 8526, 2168, 273, 2151, 18, 588, 3380, 5621, 5411, 309, 261, 5036, 18, 2819, 405, 374, 597, 2168, 63, 20, 8009, 588, 2384, 1435, 422, 374, 13, 288, 7734, 2168, 63, 20, 8009, 542, 2384, 12, 5036, 18, 2819, 380, 8063, 342, 2130, 1769, 7734, 2168, 63, 21, 8009, 542, 2384, 12, 5036, 18, 2819, 300, 2168, 63, 20, 8009, 588, 2384, 1435, 300, 1059, 1769, 7734, 2151, 18, 4479, 3367, 2223, 12, 7098, 2223, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3325, 607, 1235, 12, 3367, 1133, 425, 13, 288, 5411, 13264, 5091, 273, 2151, 18, 588, 1227, 5484, 5621, 5411, 4902, 1494, 8526, 2168, 273, 2151, 18, 588, 3380, 5621, 5411, 309, 261, 5036, 18, 2819, 405, 374, 597, 2168, 63, 20, 8009, 588, 2384, 1435, 422, 374, 13, 288, 7734, 2168, 63, 20, 8009, 542, 2384, 12, 5036, 18, 2819, 380, 8063, 342, 2130, 1769, 7734, 2168, 63, 21, 8009, 542, 2384, 12, 5036, 18, 2819, 300, 2168, 63, 20, 8009, 588, 2384, 1435, 300, 1059, 1769, 7734, 2151, 18, 4479, 3367, 2223, 12, 7098, 2223, 1769, 5411, 289, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void testSvnHandle() throws Exception { SVNBaseCommand command = new SVNBaseCommand(); ShowThumbnailsController controller = new ShowThumbnailsController(); final Properties mimeMappings = new Properties(); mimeMappings.setProperty("jpg", "image/jpg"); mimeMappings.setProperty("jpe", "image/jpg"); mimeMappings.setProperty("jpeg", "image/jpg"); mimeMappings.setProperty("gif", "image/gif"); mimeMappings.setProperty("png", "image/png"); final ImageUtil imageUtil = new ImageUtil(); imageUtil.setMimeMappings(mimeMappings); controller.setImageUtil(imageUtil); MockHttpServletRequest req = new MockHttpServletRequest(); String[] pathEntries = new String[]{"file1.gif", "file2.jpg", "file.abc"}; req.addParameter("entry", pathEntries); req.addParameter(GetController.DISPLAY_REQUEST_PARAMETER, GetController.DISPLAY_TYPE_INLINE); final ModelAndView modelAndView = controller.svnHandle(new TestRepository(), command, SVNRevision.HEAD, null, req, null, null); Map model = modelAndView.getModel(); List entries = (List) model.get("thumbnailentries"); assertEquals(2, entries.size()); }
50734 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50734/33ec330f69d36699fc489c44227e80f827077f42/ShowThumbnailsControllerTest.java/buggy/sventon/dev/java/testsrc/de/berlios/sventon/web/ctrl/ShowThumbnailsControllerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 55, 25031, 3259, 1435, 1216, 1185, 288, 565, 29537, 50, 2171, 2189, 1296, 273, 394, 29537, 50, 2171, 2189, 5621, 565, 9674, 16270, 87, 2933, 2596, 273, 394, 9674, 16270, 87, 2933, 5621, 565, 727, 6183, 4892, 7742, 273, 394, 6183, 5621, 565, 4892, 7742, 18, 542, 1396, 2932, 14362, 3113, 315, 2730, 19, 14362, 8863, 565, 4892, 7742, 18, 542, 1396, 2932, 78, 347, 3113, 315, 2730, 19, 14362, 8863, 565, 4892, 7742, 18, 542, 1396, 2932, 14423, 3113, 315, 2730, 19, 14362, 8863, 565, 4892, 7742, 18, 542, 1396, 2932, 13905, 3113, 315, 2730, 19, 13905, 8863, 565, 4892, 7742, 18, 542, 1396, 2932, 6446, 3113, 315, 2730, 19, 6446, 8863, 3639, 727, 3421, 1304, 1316, 1304, 273, 394, 3421, 1304, 5621, 565, 1316, 1304, 18, 542, 13320, 7742, 12, 11757, 7742, 1769, 565, 2596, 18, 542, 2040, 1304, 12, 2730, 1304, 1769, 565, 7867, 2940, 18572, 1111, 273, 394, 7867, 2940, 18572, 5621, 565, 514, 8526, 589, 5400, 273, 394, 514, 63, 7073, 6, 768, 21, 18, 13905, 3113, 315, 768, 22, 18, 14362, 3113, 315, 768, 18, 18947, 6, 20451, 565, 1111, 18, 1289, 1662, 2932, 4099, 3113, 589, 5400, 1769, 565, 1111, 18, 1289, 1662, 12, 967, 2933, 18, 17463, 67, 5519, 67, 9819, 16, 968, 2933, 18, 17463, 67, 2399, 67, 706, 5997, 1769, 565, 727, 3164, 1876, 1767, 938, 1876, 1767, 273, 2596, 18, 31505, 3259, 12, 2704, 7766, 3305, 9334, 3639, 1296, 16, 29537, 50, 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, 1842, 55, 25031, 3259, 1435, 1216, 1185, 288, 565, 29537, 50, 2171, 2189, 1296, 273, 394, 29537, 50, 2171, 2189, 5621, 565, 9674, 16270, 87, 2933, 2596, 273, 394, 9674, 16270, 87, 2933, 5621, 565, 727, 6183, 4892, 7742, 273, 394, 6183, 5621, 565, 4892, 7742, 18, 542, 1396, 2932, 14362, 3113, 315, 2730, 19, 14362, 8863, 565, 4892, 7742, 18, 542, 1396, 2932, 78, 347, 3113, 315, 2730, 19, 14362, 8863, 565, 4892, 7742, 18, 542, 1396, 2932, 14423, 3113, 315, 2730, 19, 14362, 8863, 565, 4892, 7742, 18, 542, 1396, 2932, 13905, 3113, 315, 2730, 19, 13905, 8863, 565, 4892, 7742, 18, 542, 1396, 2932, 6446, 3113, 315, 2730, 19, 6446, 8863, 3639, 727, 2 ]
percent[0] = theme.getInt(IWorkbenchThemeConstants.ACTIVE_TAB_PERCENT); vertical = theme.getBoolean(IWorkbenchThemeConstants.ACTIVE_TAB_VERTICAL);
if (presentation.isActive()) { control.setSelectionForeground(colorRegistry.get(IWorkbenchThemeConstants.ACTIVE_TAB_TEXT_COLOR)); c[0] = colorRegistry.get(IWorkbenchThemeConstants.ACTIVE_TAB_BG_START); c[1] = colorRegistry.get(IWorkbenchThemeConstants.ACTIVE_TAB_BG_END); percent[0] = theme.getInt(IWorkbenchThemeConstants.ACTIVE_TAB_PERCENT); vertical = theme.getBoolean(IWorkbenchThemeConstants.ACTIVE_TAB_VERTICAL); }
public static void setTabAttributes(final CTabFolder control) { ITheme theme = PlatformUI.getWorkbench().getThemeManager().getCurrentTheme(); if (control.getData(LISTENER_KEY) == null) { final IPropertyChangeListener listener = new IPropertyChangeListener() { /* (non-Javadoc) * @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent) */ public void propertyChange(PropertyChangeEvent event) { String property = event.getProperty(); if (property.equals(IThemeManager.CHANGE_CURRENT_THEME) || property.equals(IWorkbenchThemeConstants.INACTIVE_TAB_BG_START) || property.equals(IWorkbenchThemeConstants.INACTIVE_TAB_BG_END) || property.equals(IWorkbenchThemeConstants.INACTIVE_TAB_TEXT_COLOR) || property.equals(IWorkbenchThemeConstants.ACTIVE_TAB_TEXT_COLOR) || property.equals(IWorkbenchThemeConstants.ACTIVE_TAB_BG_START) || property.equals(IWorkbenchThemeConstants.ACTIVE_TAB_BG_END) || property.equals(IWorkbenchThemeConstants.TAB_TEXT_FONT)) { setTabAttributes(control); } } }; control.setData(LISTENER_KEY, listener); control.addDisposeListener(new DisposeListener() { /* (non-Javadoc) * @see org.eclipse.swt.events.DisposeListener#widgetDisposed(org.eclipse.swt.events.DisposeEvent) */ public void widgetDisposed(DisposeEvent e) { PlatformUI .getWorkbench() .getThemeManager() .removePropertyChangeListener(listener); }}); PlatformUI .getWorkbench() .getThemeManager() .addPropertyChangeListener(listener); } int [] percent = new int[1]; boolean vertical; ColorRegistry colorRegistry = theme.getColorRegistry(); control.setForeground(colorRegistry.get(IWorkbenchThemeConstants.INACTIVE_TAB_TEXT_COLOR)); Color [] c = new Color[2]; c[0] = colorRegistry.get(IWorkbenchThemeConstants.INACTIVE_TAB_BG_START); c[1] = colorRegistry.get(IWorkbenchThemeConstants.INACTIVE_TAB_BG_END); percent[0] = theme.getInt(IWorkbenchThemeConstants.ACTIVE_TAB_PERCENT); vertical = theme.getBoolean(IWorkbenchThemeConstants.ACTIVE_TAB_VERTICAL); control.setBackground(c, percent, vertical); control.setSelectionForeground(colorRegistry.get(IWorkbenchThemeConstants.ACTIVE_TAB_TEXT_COLOR)); c[0] = colorRegistry.get(IWorkbenchThemeConstants.ACTIVE_TAB_BG_START); c[1] = colorRegistry.get(IWorkbenchThemeConstants.ACTIVE_TAB_BG_END); percent[0] = theme.getInt(IWorkbenchThemeConstants.ACTIVE_TAB_PERCENT); vertical = theme.getBoolean(IWorkbenchThemeConstants.ACTIVE_TAB_VERTICAL); control.setSelectionBackground(c, percent, vertical); control.setFont(theme.getFontRegistry().get(IWorkbenchThemeConstants.TAB_TEXT_FONT)); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/a8745665458a7b1961a68767f53cbf8120b96045/ColorSchemeService.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ColorSchemeService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 444, 5661, 2498, 12, 6385, 385, 5661, 3899, 3325, 13, 288, 202, 565, 467, 8335, 5006, 273, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 8335, 1318, 7675, 588, 3935, 8335, 5621, 202, 565, 309, 261, 7098, 18, 588, 751, 12, 26421, 67, 3297, 13, 422, 446, 13, 288, 202, 3639, 727, 467, 1396, 15744, 2991, 273, 394, 467, 1396, 15744, 1435, 288, 7734, 1748, 261, 5836, 17, 24060, 13, 1171, 380, 632, 5946, 2358, 18, 20416, 18, 78, 865, 18, 1367, 18, 45, 1396, 15744, 7, 4468, 3043, 12, 3341, 18, 20416, 18, 78, 865, 18, 1367, 18, 1396, 20930, 13, 1171, 1195, 7734, 1071, 918, 1272, 3043, 12, 1396, 20930, 871, 13, 288, 4766, 3639, 514, 1272, 273, 871, 18, 588, 1396, 5621, 10792, 309, 261, 4468, 18, 14963, 12, 1285, 76, 4698, 1318, 18, 14473, 67, 15487, 67, 24644, 958, 13, 11794, 747, 1272, 18, 14963, 12, 45, 2421, 22144, 8335, 2918, 18, 706, 13301, 67, 28899, 67, 30098, 67, 7570, 13, 18701, 747, 1272, 18, 14963, 12, 45, 2421, 22144, 8335, 2918, 18, 706, 13301, 67, 28899, 67, 30098, 67, 4415, 13, 18701, 747, 1272, 18, 14963, 12, 45, 2421, 22144, 8335, 2918, 18, 706, 13301, 67, 28899, 67, 5151, 67, 10989, 13, 18701, 747, 1272, 18, 14963, 12, 45, 2421, 22144, 8335, 2918, 18, 13301, 67, 28899, 67, 5151, 67, 10989, 13, 6862, 1082, 202, 20081, 1272, 18, 14963, 12, 45, 2421, 22144, 8335, 2918, 18, 13301, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 444, 5661, 2498, 12, 6385, 385, 5661, 3899, 3325, 13, 288, 202, 565, 467, 8335, 5006, 273, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 8335, 1318, 7675, 588, 3935, 8335, 5621, 202, 565, 309, 261, 7098, 18, 588, 751, 12, 26421, 67, 3297, 13, 422, 446, 13, 288, 202, 3639, 727, 467, 1396, 15744, 2991, 273, 394, 467, 1396, 15744, 1435, 288, 7734, 1748, 261, 5836, 17, 24060, 13, 1171, 380, 632, 5946, 2358, 18, 20416, 18, 78, 865, 18, 1367, 18, 45, 1396, 15744, 7, 4468, 3043, 12, 3341, 18, 20416, 18, 78, 865, 18, 1367, 18, 1396, 20930, 13, 1171, 1195, 7734, 1071, 918, 1272, 3043, 12, 1396, 20930, 871, 13, 2 ]
suite.addTestSuite(ModuleNodeTest.class); suite.addTestSuite(BSFTest.class); suite.addTestSuite(CacheBSFTest.class); suite.addTestSuite(BytecodeHelperTest.class); suite.addTestSuite(CapitalizeTest.class);
suite.addTestSuite(CompilationUnitTest.class); suite.addTestSuite(CompilerTest.class);
public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(GroovySourceASTTest.class); suite.addTestSuite(SourceBufferTest.class); suite.addTestSuite(SourcePrinterTest.class); suite.addTestSuite(ClassNodeTest.class); suite.addTestSuite(ModuleNodeTest.class); suite.addTestSuite(BSFTest.class); suite.addTestSuite(CacheBSFTest.class); suite.addTestSuite(BytecodeHelperTest.class); suite.addTestSuite(CapitalizeTest.class); suite.addTestSuite(ConstructorTest.class); suite.addTestSuite(ForTest.class); suite.addTestSuite(GetPropertyTest.class); suite.addTestSuite(GroovyClassLoaderTest.class); suite.addTestSuite(GStringTest.class); suite.addTestSuite(IfElseTest.class); suite.addTestSuite(MainTest.class); suite.addTestSuite(MethodTest.class); suite.addTestSuite(ReflectorGeneratorTest.class); suite.addTestSuite(RunBugsTest.class); suite.addTestSuite(RunClosureTest.class); suite.addTestSuite(RunGroovyTest.class); suite.addTestSuite(TupleListTest.class); suite.addTestSuite(VerifierCodeVisitorTest.class); suite.addTestSuite(CompilationUnitTest.class);// suite.addTestSuite(TestCaseRenderEngineTest.class);// suite.addTestSuite(RunWikiTest.class); suite.addTestSuite(DomToGroovyTest.class); suite.addTestSuite(FileSystemCompilerTest.class); suite.addTestSuite(CompilerTest.class); suite.addTestSuite(TokenTest.class); suite.addTestSuite(TupleListTest.class); suite.addTestSuite(org.codehaus.groovy.classgen.PropertyTest.class); suite.addTestSuite(org.codehaus.groovy.runtime.PropertyTest.class); suite.addTestSuite(NewStaticMetaMethodTest.class); suite.addTestSuite(MethodKeyTest.class); suite.addTestSuite(MethodFailureTest.class); suite.addTestSuite(InvokerTest.class); suite.addTestSuite(InvokeMethodTest.class); suite.addTestSuite(InvokeGroovyMethodTest.class); suite.addTestSuite(InvokeConstructorTest.class); suite.addTestSuite(InheritedInterfaceMethodTest.class); suite.addTestSuite(DefaultGroovyMethodsTest.class); suite.addTestSuite(SyntaxErrorMessageTest.class); return suite; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/92269dc3df969d6e6ff55ad1bef585f8b95df58d/AllCodehausJavaTestsSuite.java/clean/src/test/AllCodehausJavaTestsSuite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 7766, 11371, 1435, 288, 3639, 7766, 13587, 11371, 273, 394, 7766, 13587, 5621, 3639, 11371, 18, 1289, 4709, 13587, 12, 43, 12859, 1830, 9053, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 1830, 1892, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 1830, 12149, 4709, 18, 1106, 1769, 1850, 11371, 18, 1289, 4709, 13587, 12, 797, 907, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 3120, 907, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 12692, 4464, 395, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 1649, 12692, 4464, 395, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 858, 16651, 2276, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 4664, 7053, 554, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 6293, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 1290, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 967, 1396, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 43, 12859, 7805, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 43, 780, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 2047, 12427, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 6376, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 1305, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 1957, 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, 7766, 11371, 1435, 288, 3639, 7766, 13587, 11371, 273, 394, 7766, 13587, 5621, 3639, 11371, 18, 1289, 4709, 13587, 12, 43, 12859, 1830, 9053, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 1830, 1892, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 1830, 12149, 4709, 18, 1106, 1769, 1850, 11371, 18, 1289, 4709, 13587, 12, 797, 907, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 3120, 907, 4709, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 12692, 4464, 395, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 1649, 12692, 4464, 395, 18, 1106, 1769, 3639, 11371, 18, 1289, 4709, 13587, 12, 858, 16651, 2 ]
object.add(typeTable.getQNamefortheType(ptype.getName()));
QName qNamefortheType = typeTable.getQNamefortheType(ptype.getName()); object.add(new QName(qNamefortheType.getNamespaceURI(), propDesc.getName(), qNamefortheType.getPrefix()));
public static XMLStreamReader getPullParser(Object beanObject, QName beanName, TypeTable typeTable) { try { JamServiceFactory factory = JamServiceFactory.getInstance(); JamServiceParams jam_service_parms = factory.createServiceParams(); jam_service_parms.addClassLoader(beanObject.getClass().getClassLoader());// beanObject.getClass().isArray() jam_service_parms.includeClass(beanObject.getClass().getName()); JamService service = factory.createService(jam_service_parms); JamClassIterator jClassIter = service.getClasses(); JClass jClass; if (jClassIter.hasNext()) { jClass = (JClass) jClassIter.next(); } else { throw new AxisFault("No service class found , exception from JAM"); } // properties from JAM JProperty properties [] = jClass.getDeclaredProperties(); Arrays.sort(properties); BeanInfo beanInfo = Introspector.getBeanInfo(beanObject.getClass()); PropertyDescriptor [] propDescs = beanInfo.getPropertyDescriptors(); HashMap propertMap = new HashMap(); for (int i = 0; i < propDescs.length; i++) { PropertyDescriptor propDesc = propDescs[i]; propertMap.put(propDesc.getName(), propDesc); } ArrayList object = new ArrayList(); for (int i = 0; i < properties.length; i++) { JProperty property = properties[i]; PropertyDescriptor propDesc = (PropertyDescriptor) propertMap.get( getCorrectName(property.getSimpleName())); if (propDesc == null) { // JAM does bad thing so I need to add this continue; } Class ptype = propDesc.getPropertyType(); if (propDesc.getName().equals("class")) { continue; } if (SimpleTypeMapper.isSimpleType(ptype)) { Object value = propDesc.getReadMethod().invoke(beanObject, null); if (typeTable != null) { object.add(typeTable.getQNamefortheType(ptype.getName())); } else { object.add(new QName(beanName.getNamespaceURI(), propDesc.getName(), beanName.getPrefix())); } object.add(value == null ? null : SimpleTypeMapper.getStringValue(value)); } else if (ptype.isArray()) { Object value [] = (Object[]) propDesc.getReadMethod().invoke(beanObject, null); if (SimpleTypeMapper.isSimpleType(ptype.getComponentType())) { for (int j = 0; j < value.length; j++) { Object o = value[j]; if (typeTable != null) { object.add(typeTable.getQNamefortheType(ptype.getName())); } else { object.add(new QName(beanName.getNamespaceURI(), propDesc.getName(), beanName.getPrefix())); } object.add(o == null ? null : SimpleTypeMapper.getStringValue(o)); } } else { for (int j = 0; j < value.length; j++) { Object o = value[j]; if (typeTable != null) { object.add(typeTable.getQNamefortheType(ptype.getName())); } else { object.add(new QName(beanName.getNamespaceURI(), propDesc.getName(), beanName.getPrefix())); } object.add(o); } } } else if (SimpleTypeMapper.isArrayList(ptype)) { Object value = propDesc.getReadMethod().invoke(beanObject, null); ArrayList objList = (ArrayList) value; if (objList != null && objList.size() > 0) { //this was given error , when the array.size = 0 // and if the array contain simple type , then the ADBPullParser asked // PullParser from That simpel type for (int j = 0; j < objList.size(); j++) { Object o = objList.get(j); if (SimpleTypeMapper.isSimpleType(o)) { if (typeTable != null) { object.add(typeTable.getQNamefortheType(ptype.getName())); } else { object.add(new QName(beanName.getNamespaceURI(), propDesc.getName(), beanName.getPrefix())); } object.add(o); } else { if (typeTable != null) { object.add(typeTable.getQNamefortheType(ptype.getName())); } else { object.add(new QName(beanName.getNamespaceURI(), propDesc.getName(), beanName.getPrefix())); } object.add(o); } } } } else { if (typeTable != null) { object.add(typeTable.getQNamefortheType(ptype.getName())); } else { object.add(new QName(beanName.getNamespaceURI(), propDesc.getName(), beanName.getPrefix())); } Object value = propDesc.getReadMethod().invoke(beanObject, null); object.add(value); } } return new ADBXMLStreamReaderImpl(beanName, object.toArray(), null); } catch (java.io.IOException e) { throw new RuntimeException(e); } catch (java.beans.IntrospectionException e) { throw new RuntimeException(e); } catch (java.lang.reflect.InvocationTargetException e) { throw new RuntimeException(e); } catch (java.lang.IllegalAccessException e) { throw new RuntimeException(e); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/d1c33824b9ead4cdca9e118bb720769f9de135b8/BeanUtil.java/buggy/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15595, 2514, 1689, 420, 2678, 12, 921, 3931, 921, 16, 4766, 7734, 16723, 17932, 16, 4766, 7734, 1412, 1388, 618, 1388, 13, 288, 3639, 775, 288, 5411, 804, 301, 1179, 1733, 3272, 273, 804, 301, 1179, 1733, 18, 588, 1442, 5621, 5411, 804, 301, 1179, 1370, 525, 301, 67, 3278, 67, 29927, 273, 3272, 18, 2640, 1179, 1370, 5621, 5411, 525, 301, 67, 3278, 67, 29927, 18, 1289, 7805, 12, 14496, 921, 18, 588, 797, 7675, 588, 7805, 10663, 759, 5411, 3931, 921, 18, 588, 797, 7675, 291, 1076, 1435, 5411, 525, 301, 67, 3278, 67, 29927, 18, 6702, 797, 12, 14496, 921, 18, 588, 797, 7675, 17994, 10663, 5411, 804, 301, 1179, 1156, 273, 3272, 18, 2640, 1179, 12, 78, 301, 67, 3278, 67, 29927, 1769, 5411, 804, 301, 797, 3198, 525, 797, 2360, 273, 1156, 18, 588, 4818, 5621, 5411, 804, 797, 525, 797, 31, 5411, 309, 261, 78, 797, 2360, 18, 5332, 2134, 10756, 288, 7734, 525, 797, 273, 261, 46, 797, 13, 525, 797, 2360, 18, 4285, 5621, 5411, 289, 469, 288, 7734, 604, 394, 15509, 7083, 2932, 2279, 1156, 667, 1392, 269, 1520, 628, 804, 2192, 8863, 5411, 289, 5411, 368, 1790, 628, 804, 2192, 5411, 804, 1396, 1790, 5378, 273, 525, 797, 18, 588, 18888, 2297, 5621, 5411, 5647, 18, 3804, 12, 4738, 1769, 5411, 7704, 966, 3931, 966, 273, 3094, 26170, 280, 18, 588, 3381, 966, 12, 14496, 921, 18, 588, 797, 10663, 5411, 26761, 5378, 2270, 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, 15595, 2514, 1689, 420, 2678, 12, 921, 3931, 921, 16, 4766, 7734, 16723, 17932, 16, 4766, 7734, 1412, 1388, 618, 1388, 13, 288, 3639, 775, 288, 5411, 804, 301, 1179, 1733, 3272, 273, 804, 301, 1179, 1733, 18, 588, 1442, 5621, 5411, 804, 301, 1179, 1370, 525, 301, 67, 3278, 67, 29927, 273, 3272, 18, 2640, 1179, 1370, 5621, 5411, 525, 301, 67, 3278, 67, 29927, 18, 1289, 7805, 12, 14496, 921, 18, 588, 797, 7675, 588, 7805, 10663, 759, 5411, 3931, 921, 18, 588, 797, 7675, 291, 1076, 1435, 5411, 525, 301, 67, 3278, 67, 29927, 18, 6702, 797, 12, 14496, 921, 18, 588, 797, 7675, 17994, 10663, 5411, 804, 301, 1179, 1156, 273, 3272, 2 ]
return function.call(cx, function.getParentScope(), thisArg, args);
return function.call(cx, scope, thisArg, args);
public static Object callSimple(Context cx, String id, Scriptable scope, Object[] args) throws JavaScriptException { Scriptable obj = scope; Object prop = null; Scriptable thisArg = null; search: while (obj != null) { Scriptable m = obj; do { prop = m.get(id, obj); if (prop != Scriptable.NOT_FOUND) { thisArg = obj; break search; } m = m.getPrototype(); } while (m != null); obj = obj.getParentScope(); } if ((prop == null) || (prop == Scriptable.NOT_FOUND)) { Object[] errorArgs = { id }; throw NativeGlobal.constructError( cx, "ReferenceError", ScriptRuntime.getMessage("msg.is.not.defined", errorArgs), scope); } while (thisArg instanceof NativeWith) thisArg = thisArg.getPrototype(); if (thisArg instanceof NativeCall) thisArg = ScriptableObject.getTopLevelScope(thisArg); Function function; try { function = (Function) prop; } catch (ClassCastException e) { Object[] errorArgs = { toString(prop) }; throw cx.reportRuntimeError( getMessage("msg.isnt.function", errorArgs)); } return function.call(cx, function.getParentScope(), thisArg, args); }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/bd7f012cbbb813de51ac2e96aee25817768f6f6b/OptRuntime.java/buggy/src/org/mozilla/javascript/optimizer/OptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 745, 5784, 12, 1042, 9494, 16, 514, 612, 16, 22780, 2146, 16, 4766, 565, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 22780, 1081, 273, 2146, 31, 3639, 1033, 2270, 273, 446, 31, 3639, 22780, 20134, 273, 446, 31, 1623, 30, 3639, 1323, 261, 2603, 480, 446, 13, 288, 5411, 22780, 312, 273, 1081, 31, 5411, 741, 288, 7734, 2270, 273, 312, 18, 588, 12, 350, 16, 1081, 1769, 7734, 309, 261, 5986, 480, 22780, 18, 4400, 67, 9294, 13, 288, 10792, 20134, 273, 1081, 31, 4766, 3639, 898, 1623, 31, 7734, 289, 7734, 312, 273, 312, 18, 588, 15846, 5621, 5411, 289, 1323, 261, 81, 480, 446, 1769, 5411, 1081, 273, 1081, 18, 588, 3054, 3876, 5621, 3639, 289, 3639, 309, 14015, 5986, 422, 446, 13, 747, 261, 5986, 422, 22780, 18, 4400, 67, 9294, 3719, 288, 5411, 1033, 8526, 555, 2615, 273, 288, 612, 289, 31, 5411, 604, 16717, 5160, 18, 10062, 668, 12, 13491, 9494, 16, 315, 2404, 668, 3113, 13491, 7739, 5576, 18, 24906, 2932, 3576, 18, 291, 18, 902, 18, 2178, 3113, 555, 2615, 3631, 13491, 2146, 1769, 3639, 289, 7734, 1323, 261, 2211, 4117, 1276, 16717, 1190, 13, 5411, 20134, 273, 20134, 18, 588, 15846, 5621, 3639, 309, 261, 2211, 4117, 1276, 16717, 1477, 13, 5411, 20134, 273, 22780, 921, 18, 588, 27046, 3876, 12, 2211, 4117, 1769, 7734, 4284, 445, 31, 3639, 775, 288, 5411, 445, 273, 261, 2083, 13, 2270, 31, 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, 760, 1033, 745, 5784, 12, 1042, 9494, 16, 514, 612, 16, 22780, 2146, 16, 4766, 565, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 22780, 1081, 273, 2146, 31, 3639, 1033, 2270, 273, 446, 31, 3639, 22780, 20134, 273, 446, 31, 1623, 30, 3639, 1323, 261, 2603, 480, 446, 13, 288, 5411, 22780, 312, 273, 1081, 31, 5411, 741, 288, 7734, 2270, 273, 312, 18, 588, 12, 350, 16, 1081, 1769, 7734, 309, 261, 5986, 480, 22780, 18, 4400, 67, 9294, 13, 288, 10792, 20134, 273, 1081, 31, 4766, 3639, 898, 1623, 31, 7734, 289, 7734, 312, 273, 312, 18, 588, 15846, 5621, 5411, 289, 1323, 261, 81, 480, 446, 1769, 5411, 1081, 273, 2 ]
debug("found: " + found + ", written: " + written);
if(LOG.isDebugEnabled()) LOG.debug("found: " + found + ", written: " + written);
public boolean removeDoc(FileDesc fd) { URN hash = fd.getSHA1Urn(); boolean found; LimeXMLDocument val; synchronized(mainMap){ val = (LimeXMLDocument)mainMap.remove(hash); found = (val != null); } boolean written = false; if(found){ written = write(); if( written ) { fd.removeLimeXMLDocument((LimeXMLDocument)val); removeKeywords(val); } else { // put it back to maintain consistency synchronized(mainMap) { mainMap.put(hash,val); } } } debug("found: " + found + ", written: " + written); return (found && written); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/6e14bff6be0ffa59c6b4e04afad816b26e0fff53/LimeXMLReplyCollection.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/xml/LimeXMLReplyCollection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1206, 1759, 12, 812, 4217, 5194, 13, 288, 3639, 1618, 50, 1651, 273, 5194, 18, 588, 8325, 21, 57, 27639, 5621, 3639, 1250, 1392, 31, 3639, 511, 494, 4201, 2519, 1244, 31, 3639, 3852, 12, 5254, 863, 15329, 5411, 1244, 273, 261, 48, 494, 4201, 2519, 13, 5254, 863, 18, 4479, 12, 2816, 1769, 5411, 1392, 273, 261, 1125, 480, 446, 1769, 3639, 289, 7734, 1250, 5941, 273, 629, 31, 7734, 309, 12, 7015, 15329, 5411, 5941, 273, 1045, 5621, 5411, 309, 12, 5941, 262, 288, 7734, 5194, 18, 4479, 48, 494, 4201, 2519, 12443, 48, 494, 4201, 2519, 13, 1125, 1769, 7734, 1206, 14149, 12, 1125, 1769, 5411, 289, 469, 288, 368, 1378, 518, 1473, 358, 17505, 14297, 7734, 3852, 12, 5254, 863, 13, 288, 10792, 2774, 863, 18, 458, 12, 2816, 16, 1125, 1769, 7734, 289, 5411, 289, 3639, 289, 7734, 309, 12, 4842, 18, 291, 2829, 1526, 10756, 2018, 18, 4148, 2932, 7015, 30, 315, 397, 1392, 397, 3104, 5941, 30, 315, 397, 5941, 1769, 7734, 327, 261, 7015, 597, 5941, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1206, 1759, 12, 812, 4217, 5194, 13, 288, 3639, 1618, 50, 1651, 273, 5194, 18, 588, 8325, 21, 57, 27639, 5621, 3639, 1250, 1392, 31, 3639, 511, 494, 4201, 2519, 1244, 31, 3639, 3852, 12, 5254, 863, 15329, 5411, 1244, 273, 261, 48, 494, 4201, 2519, 13, 5254, 863, 18, 4479, 12, 2816, 1769, 5411, 1392, 273, 261, 1125, 480, 446, 1769, 3639, 289, 7734, 1250, 5941, 273, 629, 31, 7734, 309, 12, 7015, 15329, 5411, 5941, 273, 1045, 5621, 5411, 309, 12, 5941, 262, 288, 7734, 5194, 18, 4479, 48, 494, 4201, 2519, 12443, 48, 494, 4201, 2519, 13, 1125, 1769, 7734, 1206, 14149, 12, 1125, 1769, 5411, 289, 469, 288, 368, 1378, 518, 1473, 2 ]
return (ExpressionUtil.evalNotNull("message", attrName, attrValue, attrType, this, pageContext));
return (EvalHelper.eval("message", attrName, attrValue, attrType, this, pageContext));
private Object evalAttr(String attrName, String attrValue, Class attrType) throws JspException, NullAttributeException { return (ExpressionUtil.evalNotNull("message", attrName, attrValue, attrType, this, pageContext)); }
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/116edc2ddcbd46e4c0da5f27f1b3b1a1dc82f171/ELMessageTag.java/buggy/struts-el/src/share/org/apache/strutsel/taglib/bean/ELMessageTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 282, 5302, 3843, 12, 780, 282, 11583, 16, 17311, 514, 282, 21676, 16, 17311, 1659, 565, 1604, 559, 13, 3639, 1216, 27485, 16, 4112, 1499, 503, 565, 288, 3639, 327, 261, 2300, 1304, 18, 8622, 5962, 2932, 2150, 3113, 11583, 16, 21676, 16, 4766, 6647, 1604, 559, 16, 333, 16, 21442, 10019, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 282, 5302, 3843, 12, 780, 282, 11583, 16, 17311, 514, 282, 21676, 16, 17311, 1659, 565, 1604, 559, 13, 3639, 1216, 27485, 16, 4112, 1499, 503, 565, 288, 3639, 327, 261, 2300, 1304, 18, 8622, 5962, 2932, 2150, 3113, 11583, 16, 21676, 16, 4766, 6647, 1604, 559, 16, 333, 16, 21442, 10019, 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 ]
DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); setResult(DepParameters); break; }
TypeNode DataType = (TypeNode) getRhsSym(2); setResult(DataType); break; }
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 99: MethodDeclaration ::= MethodHeader MethodBody // case 99: { //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodHeader = (MethodDecl) getRhsSym(1); //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block MethodBody = (Block) getRhsSym(2); //#line 669 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" JPGPosition old_pos = (JPGPosition) MethodHeader.position(); setResult(MethodHeader.body(MethodBody) .position(pos(old_pos.getLeftIToken().getTokenIndex(), getRightSpan()))); break; } // // Rule 101: ResultType ::= void // case 101: { //#line 680 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 102: FormalParameterList ::= LastFormalParameter // case 102: { //#line 700 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 702 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 103: FormalParameterList ::= FormalParameters , LastFormalParameter // case 103: { //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 709 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 104: FormalParameters ::= FormalParameter // case 104: { //#line 714 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 716 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 105: FormalParameters ::= FormalParameters , FormalParameter // case 105: { //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 723 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 106: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 106: { //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 108: VariableModifiers ::= VariableModifiers VariableModifier // case 108: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 109: VariableModifier ::= final // case 109: { //#line 746 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 110: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 110: { //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 754 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 112: MethodModifiers ::= MethodModifiers MethodModifier // case 112: { //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 113: MethodModifier ::= public // case 113: { //#line 776 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 114: MethodModifier ::= protected // case 114: { //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 115: MethodModifier ::= private // case 115: { //#line 786 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 116: MethodModifier ::= abstract // case 116: { //#line 791 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 117: MethodModifier ::= static // case 117: { //#line 796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 118: MethodModifier ::= final // case 118: { //#line 801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 119: MethodModifier ::= native // case 119: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 120: MethodModifier ::= strictfp // case 120: { //#line 816 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 121: Throws ::= throws ExceptionTypeList // case 121: { //#line 820 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 822 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 122: ExceptionTypeList ::= ExceptionType // case 122: { //#line 826 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 828 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 123: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 123: { //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 126: MethodBody ::= ; // case 126: setResult(null); break; // // Rule 128: StaticInitializer ::= static Block // case 128: { //#line 855 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 857 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 129: SimpleTypeName ::= identifier // case 129: { //#line 872 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 131: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 131: { //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 881 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 132: ConstructorModifier ::= public // case 132: { //#line 889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 133: ConstructorModifier ::= protected // case 133: { //#line 894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 134: ConstructorModifier ::= private // case 134: { //#line 899 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 135: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 135: { //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; if (ExplicitConstructorInvocationopt == null) l = BlockStatementsopt; else { l = new TypedList(new LinkedList(), Stmt.class, false); l.add(ExplicitConstructorInvocationopt); l.addAll(BlockStatementsopt); } setResult(nf.Block(pos(), l)); break; } // // Rule 136: Arguments ::= ( ArgumentListopt ) // case 136: { //#line 936 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 938 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 139: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 139: { //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 140: InterfaceModifier ::= public // case 140: { //#line 964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 141: InterfaceModifier ::= protected // case 141: { //#line 969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 142: InterfaceModifier ::= private // case 142: { //#line 974 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 143: InterfaceModifier ::= abstract // case 143: { //#line 979 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 144: InterfaceModifier ::= static // case 144: { //#line 984 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 145: InterfaceModifier ::= strictfp // case 145: { //#line 989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 146: ExtendsInterfaces ::= extends InterfaceType // case 146: { //#line 993 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 995 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 147: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 147: { //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 148: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 148: { //#line 1012 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1014 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 150: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 150: { //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 152: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= ClassDeclaration // case 153: { //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1036 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 154: { //#line 1041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 155: InterfaceMemberDeclaration ::= ; // case 155: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 156: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 156: { //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1056 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 158: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 158: { //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1076 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 159: ConstantModifier ::= public // case 159: { //#line 1084 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 160: ConstantModifier ::= static // case 160: { //#line 1089 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 161: ConstantModifier ::= final // case 161: { //#line 1094 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 163: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 163: { //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1103 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 164: AbstractMethodModifier ::= public // case 164: { //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 165: AbstractMethodModifier ::= abstract // case 165: { //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 166: SimpleName ::= identifier // case 166: { //#line 1172 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 167: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 167: { //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1203 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 168: VariableInitializers ::= VariableInitializer // case 168: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 169: VariableInitializers ::= VariableInitializers , VariableInitializer // case 169: { //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 170: Block ::= { BlockStatementsopt } // case 170: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 171: BlockStatements ::= BlockStatement // case 171: { //#line 1243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1245 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 172: BlockStatements ::= BlockStatements BlockStatement // case 172: { //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1252 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 174: BlockStatement ::= ClassDeclaration // case 174: { //#line 1258 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 175: BlockStatement ::= Statement // case 175: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 177: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 177: { //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 201: IfThenStatement ::= if ( Expression ) Statement // case 201: { //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 202: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 202: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1346 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 203: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 203: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 204: EmptyStatement ::= ; // case 204: { //#line 1358 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 205: LabeledStatement ::= identifier : Statement // case 205: { //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1364 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 206: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 206: { //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 207: ExpressionStatement ::= StatementExpression ; // case 207: { //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1375 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 215: AssertStatement ::= assert Expression ; // case 215: { //#line 1396 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1398 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 216: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 216: { //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 217: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 217: { //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1409 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 218: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 218: { //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 220: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 220: { //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 221: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 221: { //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1430 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabel // case 222: { //#line 1437 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 223: SwitchLabels ::= SwitchLabels SwitchLabel // case 223: { //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1446 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 224: SwitchLabel ::= case ConstantExpression : // case 224: { //#line 1451 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1453 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 225: SwitchLabel ::= default : // case 225: { //#line 1460 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 226: WhileStatement ::= while ( Expression ) Statement // case 226: { //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1469 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 227: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 227: { //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1475 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 228: DoStatement ::= do Statement while ( Expression ) ; // case 228: { //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1481 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 231: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 231: { //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 232: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 232: { //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1496 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 234: ForInit ::= LocalVariableDeclaration // case 234: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1503 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpression // case 236: { //#line 1511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 237: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 237: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 238: BreakStatement ::= break identifieropt ; // case 238: { //#line 1528 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1530 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 239: ContinueStatement ::= continue identifieropt ; // case 239: { //#line 1536 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1538 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 240: ReturnStatement ::= return Expressionopt ; // case 240: { //#line 1544 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1546 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 241: ThrowStatement ::= throw Expression ; // case 241: { //#line 1550 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1552 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 242: TryStatement ::= try Block Catches // case 242: { //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1564 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 243: TryStatement ::= try Block Catchesopt Finally // case 243: { //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1569 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 244: Catches ::= CatchClause // case 244: { //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1575 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 245: Catches ::= Catches CatchClause // case 245: { //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1582 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 246: CatchClause ::= catch ( FormalParameter ) Block // case 246: { //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1589 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 247: Finally ::= finally Block // case 247: { //#line 1593 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 251: PrimaryNoNewArray ::= Type . class // case 251: { //#line 1613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 252: PrimaryNoNewArray ::= void . class // case 252: { //#line 1634 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 253: PrimaryNoNewArray ::= this // case 253: { //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 254: PrimaryNoNewArray ::= ClassName . this // case 254: { //#line 1643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1645 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 255: PrimaryNoNewArray ::= ( Expression ) // case 255: { //#line 1648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1650 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 260: Literal ::= IntegerLiteral$IntegerLiteral // case 260: { //#line 1658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1660 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 261: Literal ::= LongLiteral$LongLiteral // case 261: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 262: Literal ::= FloatingPointLiteral$FloatLiteral // case 262: { //#line 1670 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1672 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 263: Literal ::= DoubleLiteral$DoubleLiteral // case 263: { //#line 1676 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1678 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 264: Literal ::= BooleanLiteral // case 264: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 265: Literal ::= CharacterLiteral$CharacterLiteral // case 265: { //#line 1687 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1689 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 266: Literal ::= StringLiteral$str // case 266: { //#line 1693 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1695 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 267: Literal ::= null // case 267: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 268: BooleanLiteral ::= true$trueLiteral // case 268: { //#line 1705 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: BooleanLiteral ::= false$falseLiteral // case 269: { //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1712 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 270: ArgumentList ::= Expression // case 270: { //#line 1725 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1727 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 271: ArgumentList ::= ArgumentList , Expression // case 271: { //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 272: DimExprs ::= DimExpr // case 272: { //#line 1768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1770 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 273: DimExprs ::= DimExprs DimExpr // case 273: { //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1777 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 274: DimExpr ::= [ Expression ] // case 274: { //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1784 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 275: Dims ::= [ ] // case 275: { //#line 1790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 276: Dims ::= Dims [ ] // case 276: { //#line 1793 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 277: FieldAccess ::= Primary . identifier // case 277: { //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= super . identifier // case 278: { //#line 1804 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1806 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 279: FieldAccess ::= ClassName . super$sup . identifier // case 279: { //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 280: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 280: { //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1817 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 282: PostfixExpression ::= ExpressionName // case 282: { //#line 1840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 285: PostIncrementExpression ::= PostfixExpression ++ // case 285: { //#line 1848 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 286: PostDecrementExpression ::= PostfixExpression -- // case 286: { //#line 1854 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 289: UnaryExpression ::= + UnaryExpression // case 289: { //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1864 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 290: UnaryExpression ::= - UnaryExpression // case 290: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 292: PreIncrementExpression ::= ++ UnaryExpression // case 292: { //#line 1874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1876 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 293: PreDecrementExpression ::= -- UnaryExpression // case 293: { //#line 1880 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 295: { //#line 1887 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 296: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 296: { //#line 1892 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 299: { //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1908 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 300: { //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 301: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 301: { //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1918 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 303: { //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1925 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 304: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 304: { //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1930 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 306: { //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1937 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 307: { //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1942 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 308: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 308: { //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1948 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression < ShiftExpression // case 310: { //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression > ShiftExpression // case 311: { //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1961 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 312: { //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1966 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 313: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 313: { //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1971 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression == RelationalExpression // case 315: { //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1987 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 316: EqualityExpression ::= EqualityExpression != RelationalExpression // case 316: { //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1992 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 318: AndExpression ::= AndExpression & EqualityExpression // case 318: { //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1999 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 320: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 320: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2006 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 322: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 322: { //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2013 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 324: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 324: { //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2020 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 326: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 326: { //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 328: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 328: { //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 331: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 331: { //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 332: LeftHandSide ::= ExpressionName // case 332: { //#line 2047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2049 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 335: AssignmentOperator ::= = // case 335: { //#line 2057 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 336: AssignmentOperator ::= *= // case 336: { //#line 2062 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= /= // case 337: { //#line 2067 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= %= // case 338: { //#line 2072 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= += // case 339: { //#line 2077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= -= // case 340: { //#line 2082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= <<= // case 341: { //#line 2087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > = // case 342: { //#line 2092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= > > > = // case 343: { //#line 2098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= &= // case 344: { //#line 2104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= ^= // case 345: { //#line 2109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 346: AssignmentOperator ::= |= // case 346: { //#line 2114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 349: Dimsopt ::= $Empty // case 349: { //#line 2127 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 351: Catchesopt ::= $Empty // case 351: { //#line 2134 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 353: identifieropt ::= $Empty // case 353: setResult(null); break; // // Rule 354: identifieropt ::= identifier // case 354: { //#line 2141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2143 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 355: ForUpdateopt ::= $Empty // case 355: { //#line 2149 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 357: Expressionopt ::= $Empty // case 357: setResult(null); break; // // Rule 359: ForInitopt ::= $Empty // case 359: { //#line 2160 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 361: SwitchLabelsopt ::= $Empty // case 361: { //#line 2167 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 363: SwitchBlockStatementGroupsopt ::= $Empty // case 363: { //#line 2174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 365: VariableModifiersopt ::= $Empty // case 365: { //#line 2181 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 367: VariableInitializersopt ::= $Empty // case 367: setResult(null); break; // // Rule 369: AbstractMethodModifiersopt ::= $Empty // case 369: { //#line 2211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 371: ConstantModifiersopt ::= $Empty // case 371: { //#line 2218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 373: InterfaceMemberDeclarationsopt ::= $Empty // case 373: { //#line 2225 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 375: ExtendsInterfacesopt ::= $Empty // case 375: { //#line 2232 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 377: InterfaceModifiersopt ::= $Empty // case 377: { //#line 2239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 379: ClassBodyopt ::= $Empty // case 379: setResult(null); break; // // Rule 381: Argumentsopt ::= $Empty // case 381: setResult(null); break; // // Rule 382: Argumentsopt ::= Arguments // case 382: throw new Error("No action specified for rule " + 382); // // Rule 383: ,opt ::= $Empty // case 383: setResult(null); break; // // Rule 385: ArgumentListopt ::= $Empty // case 385: { //#line 2269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 387: BlockStatementsopt ::= $Empty // case 387: { //#line 2276 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 389: ExplicitConstructorInvocationopt ::= $Empty // case 389: setResult(null); break; // // Rule 391: ConstructorModifiersopt ::= $Empty // case 391: { //#line 2287 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 393: ...opt ::= $Empty // case 393: setResult(null); break; // // Rule 395: FormalParameterListopt ::= $Empty // case 395: { //#line 2298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 397: Throwsopt ::= $Empty // case 397: { //#line 2305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 399: MethodModifiersopt ::= $Empty // case 399: { //#line 2312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 401: FieldModifiersopt ::= $Empty // case 401: { //#line 2319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 403: ClassBodyDeclarationsopt ::= $Empty // case 403: { //#line 2326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 405: Interfacesopt ::= $Empty // case 405: { //#line 2333 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 407: Superopt ::= $Empty // case 407: { //#line 2340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 409: ClassModifiersopt ::= $Empty // case 409: { //#line 2351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 411: TypeDeclarationsopt ::= $Empty // case 411: { //#line 2363 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 413: ImportDeclarationsopt ::= $Empty // case 413: { //#line 2370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 415: PackageDeclarationopt ::= $Empty // case 415: setResult(null); break; // // Rule 417: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 717 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 418: { //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 726 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 419: PackageDeclaration ::= package PackageName ; // case 419: { //#line 732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 420: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 420: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 422: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 422: { //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 423: X10ClassModifier ::= ClassModifier // case 423: { //#line 761 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 763 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 424: X10ClassModifier ::= safe // case 424: { //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 425: PropertyList ::= ( Properties WhereClauseopt ) // case 425: { //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 426: PropertyList ::= ( WhereClause ) // case 426: { //#line 779 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 427: Properties ::= Property // case 427: { //#line 788 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 428: Properties ::= Properties , Property // case 428: { //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 797 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 429: Property ::= Type identifier // case 429: { //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 805 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 430: MethodHeader ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 430: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 813 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, null)); break; } // // Rule 431: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 431: { //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 432: { //#line 840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 433: { //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 847 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 434: { //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 852 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 435: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 435: { //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 858 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 436: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 436: { //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 875 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 437: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 900 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 907 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 439: { //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 915 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 440: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 440: { //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 924 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 441: { //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 442: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 442: { //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 934 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 444: AssignPropertyCall ::= property ( ArgumentList ) // case 444: { //#line 939 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 941 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 445: Type ::= DataType // case 445: { //#line 950 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 952 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 446: Type ::= nullable < Type > DepParametersopt // case 446: { //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 957 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 447: Type ::= future < Type > // case 447: { //#line 963 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 965 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 451: PrimitiveType ::= NumericType DepParametersopt // case 451: { //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 982 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 452: PrimitiveType ::= boolean DepParametersopt // case 452: { //#line 988 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 457: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 457: { //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 458: DepParameters ::= ( DepParameterExpr ) // case 458: { //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1023 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 459: DepParameterExpr ::= ArgumentList WhereClauseopt // case 459: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 460: DepParameterExpr ::= WhereClause // case 460: { //#line 1032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 461: WhereClause ::= : ConstExpression // case 461: { //#line 1038 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1040 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 462: ConstPrimary ::= Literal // case 462: { //#line 1045 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 463: ConstPrimary ::= Type . class // case 463: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1052 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 464: ConstPrimary ::= void . class // case 464: { //#line 1071 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 465: ConstPrimary ::= this // case 465: { //#line 1077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 466: ConstPrimary ::= here // case 466: { //#line 1082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 467: ConstPrimary ::= ClassName . this // case 467: { //#line 1085 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 468: ConstPrimary ::= ( ConstExpression ) // case 468: { //#line 1090 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 470: ConstPrimary ::= self // case 470: { //#line 1098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 471: ConstPostfixExpression ::= ConstPrimary // case 471: { //#line 1104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 472: ConstPostfixExpression ::= ExpressionName // case 472: { //#line 1109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 473: ConstUnaryExpression ::= ConstPostfixExpression // case 473: { //#line 1114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 474: ConstUnaryExpression ::= + ConstUnaryExpression // case 474: { //#line 1119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= - ConstUnaryExpression // case 475: { //#line 1124 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 476: ConstUnaryExpression ::= ! ConstUnaryExpression // case 476: { //#line 1129 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 477: { //#line 1135 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1137 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 478: { //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1142 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 479: { //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 480: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 480: { //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 481: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 481: { //#line 1156 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1158 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 482: { //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1163 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 483: { //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1168 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 484: ConstRelationalExpression ::= ConstAdditiveExpression // case 484: { //#line 1173 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 485: { //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 486: { //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1185 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 487: { //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1190 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 488: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 488: { //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1195 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 489: ConstEqualityExpression ::= ConstRelationalExpression // case 489: { //#line 1199 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 490: { //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1206 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 491: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 491: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 492: ConstAndExpression ::= ConstEqualityExpression // case 492: { //#line 1215 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1217 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 493: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 493: { //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1222 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstAndExpression // case 494: { //#line 1226 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1228 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 495: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 495: { //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1233 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 496: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 497: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 497: { //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1244 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression // case 498: { //#line 1248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 499: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 499: { //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1255 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 500: ConstFieldAccess ::= ConstPrimary . identifier // case 500: { //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= super . identifier // case 501: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 502: ConstFieldAccess ::= ClassName . super$sup . identifier // case 502: { //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1272 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 504: X10ArrayType ::= Type [ . ] // case 504: { //#line 1288 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1290 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 505: X10ArrayType ::= Type value [ . ] // case 505: { //#line 1293 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1295 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 506: X10ArrayType ::= Type [ DepParameterExpr ] // case 506: { //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1300 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 507: X10ArrayType ::= Type value [ DepParameterExpr ] // case 507: { //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 508: ObjectKind ::= value // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: ObjectKind ::= reference // case 509: throw new Error("No action specified for rule " + 509); // // Rule 510: MethodModifier ::= atomic // case 510: { //#line 1319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 511: MethodModifier ::= extern // case 511: { //#line 1324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 512: MethodModifier ::= safe // case 512: { //#line 1329 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 513: MethodModifier ::= sequential // case 513: { //#line 1334 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 514: MethodModifier ::= local // case 514: { //#line 1339 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 515: MethodModifier ::= nonblocking // case 515: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 518: { //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 519: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 519: { //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 520: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 520: { //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1383 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 521: ThisClause ::= this DepParameters // case 521: { //#line 1391 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1393 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 522: Super ::= extends DataType // case 522: { //#line 1397 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1399 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 523: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 523: { //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1405 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 524: MethodDeclarator ::= MethodDeclarator [ ] // case 524: { //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1417 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 525: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 525: { //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1425 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 526: { //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1461 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 527: { //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 528: { //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 529: { //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1482 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 530: { //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1487 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 531: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 531: { //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 532: Valueopt ::= $Empty // case 532: setResult(null); break; // // Rule 533: Valueopt ::= value // case 533: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 536: ArrayBaseType ::= nullable < Type > // case 536: { //#line 1508 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1510 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= future < Type > // case 537: { //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1515 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 538: ArrayBaseType ::= ( Type ) // case 538: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 539: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 539: { //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 540: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 540: { //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 557: NowStatement ::= now ( Clock ) Statement // case 557: { //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1561 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 558: ClockedClause ::= clocked ( ClockList ) // case 558: { //#line 1565 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 559: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 559: { //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 560: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 560: { //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1583 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 561: WhenStatement ::= when ( Expression ) Statement // case 561: { //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1592 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 562: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 562: { //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1597 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 563: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1604 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 564: { //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1614 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 565: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 565: { //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1624 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 566: FinishStatement ::= finish Statement // case 566: { //#line 1631 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 567: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 567: { //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 568: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 568: { //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1646 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 569: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 569: { //#line 1653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1655 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 570: { //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1661 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 571: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 571: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 572: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1673 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 573: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 574: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 574: { //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1694 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 575: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 575: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1703 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 576: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 576: { //#line 1708 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 578: NextStatement ::= next ; // case 578: { //#line 1718 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 579: AwaitStatement ::= await Expression ; // case 579: { //#line 1722 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 580: ClockList ::= Clock // case 580: { //#line 1728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 581: ClockList ::= ClockList , Clock // case 581: { //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1737 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 582: Clock ::= Expression // case 582: { //#line 1743 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1745 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 583: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 583: { //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1757 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 584: { //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1762 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 585: RelationalExpression ::= RelationalExpression instanceof Type // case 585: { //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 586: IdentifierList ::= identifier // case 586: { //#line 1780 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 587: IdentifierList ::= IdentifierList , identifier // case 587: { //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1789 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 588: Primary ::= here // case 588: { //#line 1796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 591: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 591: { //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1814 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 592: RegionExpressionList ::= RegionExpression // case 592: { //#line 1830 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1832 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 593: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 593: { //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1839 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 594: Primary ::= [ RegionExpressionList ] // case 594: { //#line 1844 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1846 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 595: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 595: { //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 596: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 596: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 597: FieldModifier ::= mutable // case 597: { //#line 1877 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 598: FieldModifier ::= const // case 598: { //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 599: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 607: throw new Error("No action specified for rule " + 607); // // Rule 608: MethodModifier ::= synchronized // case 608: { //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"synchronized\" is an invalid X10 Method Modifier"); setResult(Flags.SYNCHRONIZED); break; } // // Rule 609: FieldModifier ::= volatile // case 609: { //#line 1922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"volatile\" is an invalid X10 Field Modifier"); setResult(Flags.VOLATILE); break; } // // Rule 610: SynchronizedStatement ::= synchronized ( Expression ) Block // case 610: { //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1931 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "Synchronized Statement is invalid in X10"); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 611: ThisClauseopt ::= $Empty // case 611: setResult(null); break; // // Rule 613: PlaceTypeSpecifieropt ::= $Empty // case 613: setResult(null); break; // // Rule 615: DepParametersopt ::= $Empty // case 615: setResult(null); break; // // Rule 617: PropertyListopt ::= $Empty // case 617: setResult(null); break; // // Rule 619: WhereClauseopt ::= $Empty // case 619: setResult(null); break; // // Rule 621: ObjectKindopt ::= $Empty // case 621: setResult(null); break; // // Rule 623: ArrayInitializeropt ::= $Empty // case 623: setResult(null); break; // // Rule 625: PlaceExpressionSingleListopt ::= $Empty // case 625: setResult(null); break; // // Rule 627: ArgumentListopt ::= $Empty // case 627: setResult(null); break; // // Rule 629: X10ClassModifiersopt ::= $Empty // case 629: { //#line 1977 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 631: DepParametersopt ::= $Empty // case 631: setResult(null); break; // // Rule 633: Unsafeopt ::= $Empty // case 633: setResult(null); break; // // Rule 634: Unsafeopt ::= unsafe // case 634: { //#line 1989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 635: ParamIdopt ::= $Empty // case 635: setResult(null); break; // // Rule 636: ParamIdopt ::= identifier // case 636: { //#line 1996 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1998 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 637: ClockedClauseopt ::= $Empty // case 637: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/56cdb14fdb9589988a93eb9a76aae3872ab98272/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 10792, 21582, 12, 2704, 1770, 12, 82, 74, 16, 4766, 1377, 3742, 16, 4766, 1377, 949, 12, 588, 3910, 6952, 9334, 16609, 6952, 1435, 3631, 4766, 1377, 21036, 16, 4766, 1377, 10971, 10019, 10792, 898, 31, 5411, 289, 5397, 368, 5411, 368, 6781, 576, 30, 225, 7508, 461, 493, 33, 7508, 461, 263, 1068, 548, 5411, 368, 5411, 648, 576, 30, 288, 7734, 368, 7, 1369, 2872, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 7508, 461, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 6549, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 10792, 21582, 12, 2704, 2 ]
public org.quickfix.field.LegSecurityIDSource getLegSecurityIDSource() throws FieldNotFound { org.quickfix.field.LegSecurityIDSource value = new org.quickfix.field.LegSecurityIDSource();
public quickfix.field.LegSecurityIDSource getLegSecurityIDSource() throws FieldNotFound { quickfix.field.LegSecurityIDSource value = new quickfix.field.LegSecurityIDSource();
public org.quickfix.field.LegSecurityIDSource getLegSecurityIDSource() throws FieldNotFound { org.quickfix.field.LegSecurityIDSource value = new org.quickfix.field.LegSecurityIDSource(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReportAck.java/buggy/src/java/src/quickfix/fix44/TradeCaptureReportAck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 1830, 336, 8329, 4368, 734, 1830, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 1830, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 1830, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 1830, 336, 8329, 4368, 734, 1830, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 1830, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 1830, 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 ]
new GridBagConstraints(1, 0, 1, 1, 0, 0, GridBagConstraints.SOUTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 10), 0, 0));
new GridBagConstraints(1, 0, 1, 1, 0, 0, GridBagConstraints.SOUTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 10), 0, 0));
private WelcomeScreen() { // Create Plugins Panel myPluginsPanel = new PluginsPanel(new GridBagLayout()); myPluginsPanel.setBackground(PLUGINS_PANEL_COLOR); JLabel pluginsCaption = new JLabel("Plugins"); pluginsCaption.setFont(CAPTION_FONT); pluginsCaption.setForeground(CAPTION_COLOR); JLabel installedPluginsCaption = new JLabel("Installed Plugins"); installedPluginsCaption.setFont(LINK_FONT); installedPluginsCaption.setForeground(CAPTION_COLOR); JPanel pluginsListPanel = new JPanel(new GridBagLayout()); pluginsListPanel.setBackground(PLUGINS_PANEL_COLOR); JPanel topPluginsPanel = new JPanel(new GridBagLayout()); topPluginsPanel.setBackground(PLUGINS_PANEL_COLOR); //Create the list of installed plugins PluginDescriptor[] myInstalledPlugins = PluginManager.getPlugins(); if (myInstalledPlugins == null || myInstalledPlugins.length == 0) { addListItemToPlugins(pluginsListPanel, "<html><i>No plugins currently installed.</i></html>", null, null, null, null); } else { for (int i = 0; i < myInstalledPlugins.length; i++) { PluginDescriptor plugin = myInstalledPlugins[i]; addListItemToPlugins(pluginsListPanel, plugin.getName(), plugin.getDescription(), plugin.getVendorLogoPath(), plugin.getPluginClassLoader(), plugin.getUrl()); } } GridBagConstraints gBC = new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(17, 25, 0, 0), 0, 0); topPluginsPanel.add(pluginsCaption, gBC); JLabel emptyLabel_1 = new JLabel(); emptyLabel_1.setBackground(PLUGINS_PANEL_COLOR); gBC = new GridBagConstraints(1, 0, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0); topPluginsPanel.add(emptyLabel_1, gBC); gBC = new GridBagConstraints(2, 0, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(13, 0, 0, 10), 0, 0); MyActionButton openPluginManager = new PluginsActionButton(OPEN_PLUGINS_ICON, null) { protected void onPress(InputEvent e) { ShowSettingsUtil.getInstance().editConfigurable(myPluginsPanel, PluginManagerConfigurable.getInstance()); } public Dimension getMaximumSize() { return OPEN_PLUGIN_MANAGER_SIZE; } public Dimension getMinimumSize() { return OPEN_PLUGIN_MANAGER_SIZE; } public Dimension getPreferredSize() { return OPEN_PLUGIN_MANAGER_SIZE; } }; openPluginManager.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); topPluginsPanel.add(openPluginManager, gBC); openPluginManager.setupWithinPanel(myPluginsPanel, PLUGINS_GROUP, myPluginsButtonsCount, 0); myPluginsButtonsCount++; gBC = new GridBagConstraints(0, 1, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(15, 25, 0, 0), 0, 0); topPluginsPanel.add(installedPluginsCaption, gBC); JLabel emptyLabel_2 = new JLabel(); emptyLabel_2.setBackground(PLUGINS_PANEL_COLOR); gBC = new GridBagConstraints(1, 1, 2, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0); topPluginsPanel.add(emptyLabel_2, gBC); gBC = new GridBagConstraints(0, 0, 1, 1, 0.5, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0); myPluginsPanel.add(topPluginsPanel, gBC); gBC = new GridBagConstraints(0, 1, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 5, 0, 0), 0, 0); myPluginsPanel.add(pluginsListPanel, gBC); JPanel emptyPanel_1 = new JPanel(); emptyPanel_1.setBackground(PLUGINS_PANEL_COLOR); gBC = new GridBagConstraints(0, 2, 1, 1, 1, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0); myPluginsPanel.add(emptyPanel_1, gBC); JScrollPane myPluginsScrollPane = ScrollPaneFactory.createScrollPane(myPluginsPanel); myPluginsScrollPane.setBorder(BorderFactory.createLineBorder(GRAY_BORDER_COLOR)); myPluginsScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); myPluginsScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); // Create Main Manel for Quick Start and Documentation myMainPanel = new JPanel(new GridBagLayout()); myMainPanel.setBackground(MAIN_PANEL_COLOR); ActionGroupDescriptor quickStarts = new ActionGroupDescriptor("Quick Start", 0); MyActionButton newProject = new MyActionButton(NEW_PROJECT_ICON, null) { protected void onPress(InputEvent e) { ProjectUtil.createNewProject(null); } }; quickStarts.addButton(newProject, "Create New Project", "Start the \"New Project\" Wizard that will guide you through " + "the steps necessary for creating a new project."); // TODO[pti]: add button "Open Project" to the Quickstart list final ActionManager actionManager = ActionManager.getInstance(); MyActionButton openRecentProject = new ButtonWithExtension(REOPEN_RECENT_ICON, null) { protected void onPress(InputEvent e, final MyActionButton button) { final AnAction action = new RecentProjectsAction(); action.actionPerformed(new AnActionEvent(e, new DataContext() { public Object getData(String dataId) { if (DataConstants.PROJECT.equals(dataId)) { return null; } return button; } }, ActionPlaces.UNKNOWN, new PresentationFactory().getPresentation(action), actionManager, 0)); } }; quickStarts.addButton(openRecentProject, "Reopen Recent Project...", "You can open one of the most recent " + "projects you were working with. Click the icon " + "or link to select project from the list."); MyActionButton getFromVCS = new ButtonWithExtension(FROM_VCS_ICON, null) { protected void onPress(InputEvent e, final MyActionButton button) { final GetFromVcsAction action = new GetFromVcsAction(); action.actionPerformed(button, e); } }; quickStarts.addButton(getFromVCS, "Get Project From Version Control...", "You can check out entire project from " + "Version Control System. Click the icon or link to " + "select the VCS."); // TODO[pti]: add button "Check for Updates" to the Quickstart list // Append plug-in actions to the end of the QuickStart list quickStarts.appendActionsFromGroup((DefaultActionGroup)actionManager.getAction(IdeActions.GROUP_WELCOME_SCREEN_QUICKSTART)); ActionGroupDescriptor docsGroup = new ActionGroupDescriptor("Documentation", 1); MyActionButton readHelp = new MyActionButton(READ_HELP_ICON, null) { protected void onPress(InputEvent e) { HelpManagerImpl.getInstance().invokeHelp(""); } }; docsGroup.addButton(readHelp, "Read Help", "Open IntelliJ IDEA \"Help Topics\" in a new window."); MyActionButton defaultKeymap = new MyActionButton(KEYMAP_ICON, null) { protected void onPress(InputEvent e) { try { BrowserUtil.launchBrowser(KEYMAP_URL); } catch (IllegalThreadStateException ex) { // it's not a problem } } }; docsGroup.addButton(defaultKeymap, "Default Keymap", "Open PDF file with the default keymap reference card."); // Append plug-in actions to the end of the QuickStart list docsGroup.appendActionsFromGroup((DefaultActionGroup)actionManager.getAction(IdeActions.GROUP_WELCOME_SCREEN_DOC)); JPanel emptyPanel_2 = new JPanel(); emptyPanel_2.setBackground(MAIN_PANEL_COLOR); final JPanel quickStartPanel = quickStarts.getPanel(); quickStartPanel.add(emptyPanel_2, new GridBagConstraints(0, quickStarts.getIdx() + 2, 2, 1, 1, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); JPanel emptyPanel_3 = new JPanel(); emptyPanel_3.setBackground(MAIN_PANEL_COLOR); final JPanel docsPanel = docsGroup.getPanel(); docsPanel.add(emptyPanel_3, new GridBagConstraints(0, docsGroup.getIdx() + 2, 2, 1, 1, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); // Fill Main Panel with Quick Start and Documentation lists gBC = new GridBagConstraints(0, 0, 1, 1, 1, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 30, 0, 0), 0, 0); myMainPanel.add(quickStartPanel, gBC); gBC = new GridBagConstraints(1, 0, 1, 1, 1, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 15, 0, 0), 0, 0); myMainPanel.add(docsPanel, gBC); myMainPanel.setPreferredSize(new Dimension(650, 450)); JScrollPane myMainScrollPane = ScrollPaneFactory.createScrollPane(myMainPanel); myMainScrollPane.setBorder(null); myMainScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); myMainScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); // Create caption pane JPanel topPanel = new JPanel(new GridBagLayout()) { public void paint(Graphics g) { Icon welcome = CAPTION_IMAGE; welcome.paintIcon(null, g, 0, 0); g.setColor(CAPTION_BACKGROUND); g.fillRect(welcome.getIconWidth(), 0, this.getWidth() - welcome.getIconWidth(), welcome.getIconHeight()); super.paint(g); } }; topPanel.setOpaque(false); JPanel transparentTopPanel = new JPanel(); transparentTopPanel.setOpaque(false); topPanel.add(transparentTopPanel, new GridBagConstraints(0, 0, 1, 1, 1, 0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); topPanel.add(new JLabel(DEVELOP_SLOGAN), new GridBagConstraints(1, 0, 1, 1, 0, 0, GridBagConstraints.SOUTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 10), 0, 0)); // Create the base welcome panel myWelcomePanel = new JPanel(new GridBagLayout()); myWelcomePanel.setBackground(MAIN_PANEL_BACKGROUND); gBC = new GridBagConstraints(0, 0, 3, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(10, 5, 0, 5), 0, 0); myWelcomePanel.add(topPanel, gBC); gBC = new GridBagConstraints(0, 1, 2, 1, 1.4, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(15, 15, 15, 0), 0, 0); myWelcomePanel.add(myMainScrollPane, gBC); gBC = new GridBagConstraints(2, 1, 1, 1, 0.6, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(15, 15, 15, 15), 0, 0); myWelcomePanel.add(myPluginsScrollPane, gBC); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/73f1a3fcc4be26b59453295fbe33c7fd4be058e0/WelcomeScreen.java/clean/source/com/intellij/openapi/wm/impl/welcomeScreen/WelcomeScreen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 678, 16312, 7956, 1435, 288, 565, 368, 1788, 26849, 23641, 565, 3399, 9461, 5537, 273, 394, 26849, 5537, 12, 2704, 7145, 5013, 3744, 10663, 565, 3399, 9461, 5537, 18, 542, 8199, 12, 19415, 55, 67, 30819, 2247, 67, 10989, 1769, 565, 21403, 4799, 21158, 273, 394, 21403, 2932, 9461, 8863, 565, 4799, 21158, 18, 542, 5711, 12, 3587, 3725, 67, 25221, 1769, 565, 4799, 21158, 18, 542, 23206, 12, 3587, 3725, 67, 10989, 1769, 565, 21403, 5876, 9461, 21158, 273, 394, 21403, 2932, 16747, 26849, 8863, 565, 5876, 9461, 21158, 18, 542, 5711, 12, 10554, 67, 25221, 1769, 565, 5876, 9461, 21158, 18, 542, 23206, 12, 3587, 3725, 67, 10989, 1769, 565, 24048, 4799, 682, 5537, 273, 394, 24048, 12, 2704, 7145, 5013, 3744, 10663, 565, 4799, 682, 5537, 18, 542, 8199, 12, 19415, 55, 67, 30819, 2247, 67, 10989, 1769, 565, 24048, 1760, 9461, 5537, 273, 394, 24048, 12, 2704, 7145, 5013, 3744, 10663, 565, 1760, 9461, 5537, 18, 542, 8199, 12, 19415, 55, 67, 30819, 2247, 67, 10989, 1769, 565, 368, 1684, 326, 666, 434, 5876, 4799, 565, 6258, 3187, 8526, 3399, 16747, 9461, 273, 6258, 1318, 18, 588, 9461, 5621, 565, 309, 261, 4811, 16747, 9461, 422, 446, 747, 3399, 16747, 9461, 18, 2469, 422, 374, 13, 288, 1377, 527, 13575, 774, 9461, 12, 8057, 682, 5537, 16, 3532, 2620, 4438, 77, 34, 2279, 4799, 4551, 5876, 17347, 77, 4695, 2620, 2984, 16, 446, 16, 446, 16, 446, 16, 446, 1769, 565, 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, 678, 16312, 7956, 1435, 288, 565, 368, 1788, 26849, 23641, 565, 3399, 9461, 5537, 273, 394, 26849, 5537, 12, 2704, 7145, 5013, 3744, 10663, 565, 3399, 9461, 5537, 18, 542, 8199, 12, 19415, 55, 67, 30819, 2247, 67, 10989, 1769, 565, 21403, 4799, 21158, 273, 394, 21403, 2932, 9461, 8863, 565, 4799, 21158, 18, 542, 5711, 12, 3587, 3725, 67, 25221, 1769, 565, 4799, 21158, 18, 542, 23206, 12, 3587, 3725, 67, 10989, 1769, 565, 21403, 5876, 9461, 21158, 273, 394, 21403, 2932, 16747, 26849, 8863, 565, 5876, 9461, 21158, 18, 542, 5711, 12, 10554, 67, 25221, 1769, 565, 5876, 9461, 21158, 18, 542, 23206, 12, 3587, 3725, 67, 10989, 1769, 565, 24048, 4799, 682, 5537, 273, 2 ]
returnFont.setFirstChar(getInt(text.toString()));
returnFont.setFirstChar(getInt(content));
public void endElement(String uri, String localName, String qName) { if ("font-name".equals(localName)) { returnFont.setFontName(text.toString()); } else if ("ttc-name".equals(localName) && isCID) { multiFont.setTTCName(text.toString()); } else if ("cap-height".equals(localName)) { returnFont.setCapHeight(getInt(text.toString())); } else if ("x-height".equals(localName)) { returnFont.setXHeight(getInt(text.toString())); } else if ("ascender".equals(localName)) { returnFont.setAscender(getInt(text.toString())); } else if ("descender".equals(localName)) { returnFont.setDescender(getInt(text.toString())); } else if ("left".equals(localName)) { int[] bbox = returnFont.getFontBBox(); bbox[0] = getInt(text.toString()); returnFont.setFontBBox(bbox); } else if ("bottom".equals(localName)) { int[] bbox = returnFont.getFontBBox(); bbox[1] = getInt(text.toString()); returnFont.setFontBBox(bbox); } else if ("right".equals(localName)) { int[] bbox = returnFont.getFontBBox(); bbox[2] = getInt(text.toString()); returnFont.setFontBBox(bbox); } else if ("top".equals(localName)) { int[] bbox = returnFont.getFontBBox(); bbox[3] = getInt(text.toString()); returnFont.setFontBBox(bbox); } else if ("first-char".equals(localName)) { returnFont.setFirstChar(getInt(text.toString())); } else if ("last-char".equals(localName)) { returnFont.setLastChar(getInt(text.toString())); } else if ("flags".equals(localName)) { returnFont.setFlags(getInt(text.toString())); } else if ("stemv".equals(localName)) { returnFont.setStemV(getInt(text.toString())); } else if ("italic-angle".equals(localName)) { returnFont.setItalicAngle(getInt(text.toString())); } else if ("missing-width".equals(localName)) { returnFont.setMissingWidth(getInt(text.toString())); } else if ("cid-type".equals(localName)) { multiFont.setCIDType(CIDFontType.byName(text.toString())); } else if ("default-width".equals(localName)) { multiFont.setDefaultWidth(getInt(text.toString())); } else if ("cid-widths".equals(localName)) { int[] wds = new int[cidWidths.size()]; int j = 0; for (int count = 0; count < cidWidths.size(); count++) { Integer i = (Integer)cidWidths.get(count); wds[j++] = i.intValue(); } //multiFont.addCIDWidthEntry(cidWidthIndex, wds); multiFont.setWidthArray(wds); } else if ("bfranges".equals(localName)) { multiFont.setBFEntries((BFEntry[])bfranges.toArray(new BFEntry[0])); } text.setLength(0); //Reset text buffer (see characters()) }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/4b82b22e7724e4d0f36d331be468214111f17219/FontReader.java/buggy/src/java/org/apache/fop/fonts/FontReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 14840, 12, 780, 2003, 16, 514, 11927, 16, 514, 22914, 13, 288, 3639, 309, 7566, 5776, 17, 529, 9654, 14963, 12, 3729, 461, 3719, 288, 5411, 327, 5711, 18, 542, 5711, 461, 12, 955, 18, 10492, 10663, 3639, 289, 469, 309, 7566, 748, 71, 17, 529, 9654, 14963, 12, 3729, 461, 13, 597, 25249, 734, 13, 288, 5411, 3309, 5711, 18, 542, 1470, 39, 461, 12, 955, 18, 10492, 10663, 3639, 289, 469, 309, 7566, 5909, 17, 4210, 9654, 14963, 12, 3729, 461, 3719, 288, 5411, 327, 5711, 18, 542, 4664, 2686, 12, 588, 1702, 12, 955, 18, 10492, 1435, 10019, 3639, 289, 469, 309, 7566, 92, 17, 4210, 9654, 14963, 12, 3729, 461, 3719, 288, 5411, 327, 5711, 18, 542, 60, 2686, 12, 588, 1702, 12, 955, 18, 10492, 1435, 10019, 3639, 289, 469, 309, 7566, 3691, 2345, 9654, 14963, 12, 3729, 461, 3719, 288, 5411, 327, 5711, 18, 542, 13665, 2345, 12, 588, 1702, 12, 955, 18, 10492, 1435, 10019, 3639, 289, 469, 309, 7566, 5569, 2345, 9654, 14963, 12, 3729, 461, 3719, 288, 5411, 327, 5711, 18, 542, 4217, 2345, 12, 588, 1702, 12, 955, 18, 10492, 1435, 10019, 3639, 289, 469, 309, 7566, 4482, 9654, 14963, 12, 3729, 461, 3719, 288, 5411, 509, 8526, 8472, 273, 327, 5711, 18, 588, 5711, 30944, 5621, 5411, 8472, 63, 20, 65, 273, 8145, 12, 955, 18, 10492, 10663, 5411, 327, 5711, 18, 542, 5711, 30944, 12, 20737, 1769, 3639, 289, 469, 309, 7566, 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, 14840, 12, 780, 2003, 16, 514, 11927, 16, 514, 22914, 13, 288, 3639, 309, 7566, 5776, 17, 529, 9654, 14963, 12, 3729, 461, 3719, 288, 5411, 327, 5711, 18, 542, 5711, 461, 12, 955, 18, 10492, 10663, 3639, 289, 469, 309, 7566, 748, 71, 17, 529, 9654, 14963, 12, 3729, 461, 13, 597, 25249, 734, 13, 288, 5411, 3309, 5711, 18, 542, 1470, 39, 461, 12, 955, 18, 10492, 10663, 3639, 289, 469, 309, 7566, 5909, 17, 4210, 9654, 14963, 12, 3729, 461, 3719, 288, 5411, 327, 5711, 18, 542, 4664, 2686, 12, 588, 1702, 12, 955, 18, 10492, 1435, 10019, 3639, 289, 469, 309, 7566, 92, 17, 4210, 9654, 14963, 12, 3729, 461, 3719, 288, 2 ]
following.push(FOLLOW_predicate_in_constraints1606);
following.push(FOLLOW_predicate_in_constraints1609);
public List constraints() throws RecognitionException { List constraints; constraints = new ArrayList(); try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:641:17: ( opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:641:17: opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol { following.push(FOLLOW_opt_eol_in_constraints1580); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:642:17: ( constraint[constraints] | predicate[constraints] ) int alt45=2; int LA45_0 = input.LA(1); if ( LA45_0==EOL||LA45_0==15 ) { alt45=1; } else if ( LA45_0==ID ) { int LA45_2 = input.LA(2); if ( LA45_2==30 ) { int LA45_3 = input.LA(3); if ( LA45_3==ID ) { int LA45_8 = input.LA(4); if ( LA45_8==50 ) { alt45=2; } else if ( LA45_8==EOL||LA45_8==15||(LA45_8>=22 && LA45_8<=23)||(LA45_8>=40 && LA45_8<=47) ) { alt45=1; } else { NoViableAltException nvae = new NoViableAltException("642:17: ( constraint[constraints] | predicate[constraints] )", 45, 8, input); throw nvae; } } else if ( LA45_3==EOL||LA45_3==15 ) { alt45=1; } else { NoViableAltException nvae = new NoViableAltException("642:17: ( constraint[constraints] | predicate[constraints] )", 45, 3, input); throw nvae; } } else if ( LA45_2==EOL||LA45_2==15||(LA45_2>=22 && LA45_2<=23)||(LA45_2>=40 && LA45_2<=47) ) { alt45=1; } else { NoViableAltException nvae = new NoViableAltException("642:17: ( constraint[constraints] | predicate[constraints] )", 45, 2, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("642:17: ( constraint[constraints] | predicate[constraints] )", 45, 0, input); throw nvae; } switch (alt45) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:642:18: constraint[constraints] { following.push(FOLLOW_constraint_in_constraints1585); constraint(constraints); following.pop(); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:642:42: predicate[constraints] { following.push(FOLLOW_predicate_in_constraints1588); predicate(constraints); following.pop(); } break; } // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:643:17: ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* loop47: do { int alt47=2; alt47 = dfa47.predict(input); switch (alt47) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:643:19: opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) { following.push(FOLLOW_opt_eol_in_constraints1596); opt_eol(); following.pop(); match(input,22,FOLLOW_22_in_constraints1598); following.push(FOLLOW_opt_eol_in_constraints1600); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:643:39: ( constraint[constraints] | predicate[constraints] ) int alt46=2; int LA46_0 = input.LA(1); if ( LA46_0==EOL||LA46_0==15 ) { alt46=1; } else if ( LA46_0==ID ) { int LA46_2 = input.LA(2); if ( LA46_2==30 ) { int LA46_3 = input.LA(3); if ( LA46_3==ID ) { int LA46_8 = input.LA(4); if ( LA46_8==50 ) { alt46=2; } else if ( LA46_8==EOL||LA46_8==15||(LA46_8>=22 && LA46_8<=23)||(LA46_8>=40 && LA46_8<=47) ) { alt46=1; } else { NoViableAltException nvae = new NoViableAltException("643:39: ( constraint[constraints] | predicate[constraints] )", 46, 8, input); throw nvae; } } else if ( LA46_3==EOL||LA46_3==15 ) { alt46=1; } else { NoViableAltException nvae = new NoViableAltException("643:39: ( constraint[constraints] | predicate[constraints] )", 46, 3, input); throw nvae; } } else if ( LA46_2==EOL||LA46_2==15||(LA46_2>=22 && LA46_2<=23)||(LA46_2>=40 && LA46_2<=47) ) { alt46=1; } else { NoViableAltException nvae = new NoViableAltException("643:39: ( constraint[constraints] | predicate[constraints] )", 46, 2, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("643:39: ( constraint[constraints] | predicate[constraints] )", 46, 0, input); throw nvae; } switch (alt46) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:643:40: constraint[constraints] { following.push(FOLLOW_constraint_in_constraints1603); constraint(constraints); following.pop(); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:643:64: predicate[constraints] { following.push(FOLLOW_predicate_in_constraints1606); predicate(constraints); following.pop(); } break; } } break; default : break loop47; } } while (true); following.push(FOLLOW_opt_eol_in_constraints1614); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return constraints; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/297a1e0ef2967d8b4f7be9c022102a5a56e97489/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 6237, 1435, 1216, 9539, 288, 6647, 987, 6237, 31, 1171, 202, 202, 11967, 273, 394, 2407, 5621, 540, 202, 3639, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 1105, 21, 30, 4033, 30, 261, 2153, 67, 30951, 261, 4954, 63, 11967, 65, 571, 5641, 63, 11967, 65, 262, 261, 2153, 67, 30951, 3316, 2153, 67, 30951, 261, 4954, 63, 11967, 65, 571, 5641, 63, 11967, 65, 262, 8618, 2153, 67, 30951, 262, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 1105, 21, 30, 4033, 30, 2153, 67, 30951, 261, 4954, 63, 11967, 65, 571, 5641, 63, 11967, 65, 262, 261, 2153, 67, 30951, 3316, 2153, 67, 30951, 261, 4954, 63, 11967, 65, 571, 5641, 63, 11967, 65, 262, 8618, 2153, 67, 30951, 5411, 288, 5411, 3751, 18, 6206, 12, 29890, 67, 3838, 67, 30951, 67, 267, 67, 11967, 3600, 3672, 1769, 5411, 2153, 67, 30951, 5621, 5411, 3751, 18, 5120, 5621, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 1105, 22, 30, 4033, 30, 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, 987, 6237, 1435, 1216, 9539, 288, 6647, 987, 6237, 31, 1171, 202, 202, 11967, 273, 394, 2407, 5621, 540, 202, 3639, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 1105, 21, 30, 4033, 30, 261, 2153, 67, 30951, 261, 4954, 63, 11967, 65, 571, 5641, 63, 11967, 65, 262, 261, 2153, 67, 30951, 3316, 2153, 67, 30951, 261, 4954, 63, 11967, 65, 571, 5641, 63, 11967, 65, 262, 8618, 2153, 67, 30951, 262, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 2 ]
+ "@prefix junk: <http:
+ "@prefix null: <http:
public void testProcessClass() throws Exception { String owl = "@prefix : <" + ns + "> ." + ENDL + ENDL + "@prefix rdf: <" + OntologyUtil.RDF_NAMESPACE + "> ." + ENDL + "@prefix rdfs: <" + OntologyUtil.RDFS_NAMESPACE + "> ." + ENDL + "@prefix owl: <" + OntologyUtil.OWL_NAMESPACE + "> ." + ENDL + "@prefix junk: <http://www.flymine.org/junk#> ." + ENDL + ENDL + ":Company a owl:Class ." + ENDL + "junk:Test a owl:Class ." + ENDL; ont.read(new StringReader(owl), null, "N3"); Model model = generator.process(ont, ns); assertTrue(model.hasClassDescriptor("org.flymine.model.testmodel.Company")); assertFalse(model.hasClassDescriptor("org.flymine.model.testmodel.Test")); }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/457e472c4d85a3e17847c1d637a736cc24690e2f/Owl2InterMineTest.java/buggy/intermine/src/test/org/intermine/ontology/Owl2InterMineTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2227, 797, 1435, 1216, 1185, 288, 3639, 514, 2523, 80, 273, 8787, 3239, 294, 411, 6, 397, 3153, 397, 14402, 263, 6, 397, 7273, 48, 5411, 397, 7273, 48, 5411, 397, 8787, 3239, 9160, 30, 225, 411, 6, 397, 29683, 1304, 18, 30137, 67, 11368, 397, 14402, 263, 6, 397, 7273, 48, 5411, 397, 8787, 3239, 9160, 87, 30, 411, 6, 397, 29683, 1304, 18, 30137, 55, 67, 11368, 397, 14402, 263, 6, 397, 7273, 48, 5411, 397, 8787, 3239, 2523, 80, 30, 225, 411, 6, 397, 29683, 1304, 18, 7306, 48, 67, 11368, 397, 14402, 263, 6, 397, 7273, 48, 5411, 397, 8787, 3239, 525, 1683, 30, 411, 2505, 2207, 5591, 18, 29670, 3081, 18, 3341, 19, 78, 1683, 7, 34, 263, 6, 397, 7273, 48, 5411, 397, 7273, 48, 5411, 397, 6398, 12627, 279, 2523, 80, 30, 797, 263, 6, 397, 7273, 48, 5411, 397, 315, 78, 1683, 30, 4709, 279, 2523, 80, 30, 797, 263, 6, 397, 7273, 48, 31, 3639, 603, 88, 18, 896, 12, 2704, 26227, 12, 543, 80, 3631, 446, 16, 315, 50, 23, 8863, 3639, 3164, 938, 273, 4456, 18, 2567, 12, 1580, 16, 3153, 1769, 3639, 1815, 5510, 12, 2284, 18, 5332, 797, 3187, 2932, 3341, 18, 29670, 3081, 18, 2284, 18, 3813, 2284, 18, 12627, 7923, 1769, 3639, 1815, 8381, 12, 2284, 18, 5332, 797, 3187, 2932, 3341, 18, 29670, 3081, 18, 2284, 18, 3813, 2284, 18, 4709, 7923, 1769, 565, 289, 2, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2227, 797, 1435, 1216, 1185, 288, 3639, 514, 2523, 80, 273, 8787, 3239, 294, 411, 6, 397, 3153, 397, 14402, 263, 6, 397, 7273, 48, 5411, 397, 7273, 48, 5411, 397, 8787, 3239, 9160, 30, 225, 411, 6, 397, 29683, 1304, 18, 30137, 67, 11368, 397, 14402, 263, 6, 397, 7273, 48, 5411, 397, 8787, 3239, 9160, 87, 30, 411, 6, 397, 29683, 1304, 18, 30137, 55, 67, 11368, 397, 14402, 263, 6, 397, 7273, 48, 5411, 397, 8787, 3239, 2523, 80, 30, 225, 411, 6, 397, 29683, 1304, 18, 7306, 48, 67, 11368, 397, 14402, 263, 6, 397, 7273, 48, 5411, 397, 8787, 3239, 525, 1683, 30, 411, 2505, 2207, 5591, 18, 29670, 3081, 2 ]
AST tmp2465_AST_in = (AST)_t;
AST tmp2466_AST_in = (AST)_t;
public final void grant_rev_to(AST _t) throws RecognitionException { AST grant_rev_to_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TO: { AST __t2316 = _t; AST tmp2464_AST_in = (AST)_t; match(_t,TO); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PUBLIC: { AST tmp2465_AST_in = (AST)_t; match(_t,PUBLIC); _t = _t.getNextSibling(); break; } case FILENAME: { AST tmp2466_AST_in = (AST)_t; match(_t,FILENAME); _t = _t.getNextSibling(); { _loop2319: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2467_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); AST tmp2468_AST_in = (AST)_t; match(_t,FILENAME); _t = _t.getNextSibling(); } else { break _loop2319; } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } _t = __t2316; _t = _t.getNextSibling(); break; } case FROM: { AST __t2320 = _t; AST tmp2469_AST_in = (AST)_t; match(_t,FROM); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PUBLIC: { AST tmp2470_AST_in = (AST)_t; match(_t,PUBLIC); _t = _t.getNextSibling(); break; } case FILENAME: { AST tmp2471_AST_in = (AST)_t; match(_t,FILENAME); _t = _t.getNextSibling(); { _loop2323: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2472_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); AST tmp2473_AST_in = (AST)_t; match(_t,FILENAME); _t = _t.getNextSibling(); } else { break _loop2323; } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } _t = __t2320; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser03.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 7936, 67, 9083, 67, 869, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 7936, 67, 9083, 67, 869, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 8493, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 4366, 2313, 273, 389, 88, 31, 1082, 202, 9053, 1853, 3247, 1105, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 4296, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 1082, 202, 95, 1082, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 1082, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 1082, 202, 3593, 17187, 30, 1082, 202, 95, 9506, 202, 9053, 1853, 3247, 9222, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 14939, 1769, 9506, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 3593, 7527, 1985, 30, 1082, 202, 95, 9506, 202, 9053, 1853, 3247, 6028, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 16080, 1769, 9506, 202, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 7936, 67, 9083, 67, 869, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 7936, 67, 9083, 67, 869, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 8493, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 4366, 2313, 273, 389, 88, 31, 1082, 202, 9053, 1853, 3247, 1105, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 4296, 1769, 1082, 202, 2 ]
public LispObject execute(LispObject arg) throws ConditionThrowable
public LispObject execute(LispObject first, LispObject second) throws ConditionThrowable
public LispObject execute(LispObject arg) throws ConditionThrowable { return sqrt(arg); }
8279 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8279/1c5458ff27fae2a1bd243562beff3741c5d8ddeb/Primitives.java/clean/j/src/org/armedbear/lisp/Primitives.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 511, 23831, 921, 1836, 12, 48, 23831, 921, 1122, 16, 511, 23831, 921, 2205, 13, 1216, 7949, 15155, 3639, 288, 5411, 327, 5700, 12, 3175, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 540, 1071, 511, 23831, 921, 1836, 12, 48, 23831, 921, 1122, 16, 511, 23831, 921, 2205, 13, 1216, 7949, 15155, 3639, 288, 5411, 327, 5700, 12, 3175, 1769, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return WorkbenchPlugin.getDefault().getSharedImages(); }
return WorkbenchPlugin.getDefault().getSharedImages(); }
public ISharedImages getSharedImages() { return WorkbenchPlugin.getDefault().getSharedImages(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/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, 7887, 8946, 23427, 8946, 1435, 288, 3639, 327, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 7887, 8946, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 467, 7887, 8946, 23427, 8946, 1435, 288, 3639, 327, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 7887, 8946, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return this == other;
if(other == this){ return true; } IWrappedResource w = (IWrappedResource) other; return this.actualObject.equals(w.getActualObject());
public boolean equals(Object other) { if(other instanceof IWrappedResource){ return this == other; } return actualObject.equals(other); }
1319 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1319/bbc088606851f44ebeb0bb3bb41ee10779c44732/WrappedResource.java/clean/org.python.pydev/src/org/python/pydev/navigator/WrappedResource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 1308, 13, 288, 3639, 309, 12, 3011, 1276, 467, 17665, 1420, 15329, 5411, 309, 12, 3011, 422, 333, 15329, 327, 638, 31, 289, 467, 17665, 1420, 341, 273, 261, 45, 17665, 1420, 13, 1308, 31, 327, 333, 18, 18672, 921, 18, 14963, 12, 91, 18, 588, 11266, 921, 10663, 3639, 289, 3639, 327, 3214, 921, 18, 14963, 12, 3011, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 1308, 13, 288, 3639, 309, 12, 3011, 1276, 467, 17665, 1420, 15329, 5411, 309, 12, 3011, 422, 333, 15329, 327, 638, 31, 289, 467, 17665, 1420, 341, 273, 261, 45, 17665, 1420, 13, 1308, 31, 327, 333, 18, 18672, 921, 18, 14963, 12, 91, 18, 588, 11266, 921, 10663, 3639, 289, 3639, 327, 3214, 921, 18, 14963, 12, 3011, 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 ]
tref.setSiid(scope.getScopeInstanceId().toString()); tref.setStatus(__psc.cvtScopeStatus(scope.getState())); tref.setName(scope.getName()); tref.setModelId("" + scope.getModelId()); }
tref.setSiid(scope.getScopeInstanceId().toString()); tref.setStatus(__psc.cvtScopeStatus(scope.getState())); tref.setName(scope.getName()); tref.setModelId("" + scope.getModelId()); }
private void fillScopeRef(TScopeRef tref, ScopeDAO scope) { tref.setSiid(scope.getScopeInstanceId().toString()); tref.setStatus(__psc.cvtScopeStatus(scope.getState())); tref.setName(scope.getName()); tref.setModelId("" + scope.getModelId()); }
47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/40604da2488c0e0e9de3a307e5a05bd456b9a02a/ProcessAndInstanceManagementImpl.java/clean/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3636, 3876, 1957, 12, 56, 3876, 1957, 268, 1734, 16, 5468, 18485, 2146, 13, 288, 565, 268, 1734, 18, 542, 55, 77, 350, 12, 4887, 18, 588, 3876, 15327, 7675, 10492, 10663, 565, 268, 1734, 18, 542, 1482, 12, 972, 84, 1017, 18, 71, 11734, 3876, 1482, 12, 4887, 18, 588, 1119, 1435, 10019, 565, 268, 1734, 18, 542, 461, 12, 4887, 18, 17994, 10663, 565, 268, 1734, 18, 542, 1488, 548, 2932, 6, 397, 2146, 18, 588, 1488, 548, 10663, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3636, 3876, 1957, 12, 56, 3876, 1957, 268, 1734, 16, 5468, 18485, 2146, 13, 288, 565, 268, 1734, 18, 542, 55, 77, 350, 12, 4887, 18, 588, 3876, 15327, 7675, 10492, 10663, 565, 268, 1734, 18, 542, 1482, 12, 972, 84, 1017, 18, 71, 11734, 3876, 1482, 12, 4887, 18, 588, 1119, 1435, 10019, 565, 268, 1734, 18, 542, 461, 12, 4887, 18, 17994, 10663, 565, 268, 1734, 18, 542, 1488, 548, 2932, 6, 397, 2146, 18, 588, 1488, 548, 10663, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
entry.setData(value);
entry.setInternalData(value);
public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkReadable(); // ((RubyIO)value).fileno = 0; entry.setData(value); } }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/4e4bb40b2eb2d38881d15ca8ef7cda4c34323793/RubyGlobal.java/buggy/org/jruby/RubyGlobal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 444, 12, 54, 10340, 921, 460, 16, 514, 612, 16, 19817, 921, 501, 16, 19817, 5160, 1622, 1241, 13, 288, 5411, 309, 261, 1132, 422, 501, 13, 288, 7734, 327, 31, 5411, 289, 469, 309, 16051, 12, 1132, 1276, 19817, 4294, 3719, 288, 7734, 1241, 18, 542, 3061, 751, 12, 1132, 1769, 7734, 327, 31, 5411, 289, 469, 288, 7734, 14015, 54, 10340, 4294, 13, 460, 2934, 1893, 14151, 5621, 7734, 368, 14015, 54, 10340, 4294, 13, 1132, 2934, 7540, 5764, 273, 374, 31, 7734, 1241, 18, 542, 3061, 751, 12, 1132, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 444, 12, 54, 10340, 921, 460, 16, 514, 612, 16, 19817, 921, 501, 16, 19817, 5160, 1622, 1241, 13, 288, 5411, 309, 261, 1132, 422, 501, 13, 288, 7734, 327, 31, 5411, 289, 469, 309, 16051, 12, 1132, 1276, 19817, 4294, 3719, 288, 7734, 1241, 18, 542, 3061, 751, 12, 1132, 1769, 7734, 327, 31, 5411, 289, 469, 288, 7734, 14015, 54, 10340, 4294, 13, 460, 2934, 1893, 14151, 5621, 7734, 368, 14015, 54, 10340, 4294, 13, 1132, 2934, 7540, 5764, 273, 374, 31, 7734, 1241, 18, 542, 3061, 751, 12, 1132, 1769, 5411, 289, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
imageData.setPixel(xx, yy, newPixel); } } } } return; }
updatePixel(xx, yy, pixel, alpha); } } } } return; }
final protected void drawImage(ImageData src, int ox, int oy) { RGB[] out = imageData.getRGBs(); PaletteData palette = src.palette; if (palette.isDirect) { ImageData mask = src.getTransparencyMask(); for (int y = 0; y < src.height; y++) { for (int x = 0; x < src.width; x++) { if (mask.getPixel(x, y) != 0) { int xx = x + ox; int yy = y + oy; if (xx >= 0 && xx < imageData.width && yy >= 0 && yy < imageData.height) { int pixel = src.getPixel(x, y); int r = pixel & palette.redMask; /* JM: Changed operators from >> to >>> to shift sign bit right */ r = (palette.redShift < 0) ? r >>> -palette.redShift : r << palette.redShift; int g = pixel & palette.greenMask; g = (palette.greenShift < 0) ? g >>> -palette.greenShift : g << palette.greenShift; int b = pixel & palette.blueMask; b = (palette.blueShift < 0) ? b >>> -palette.blueShift : b << palette.blueShift; pixel = alloc(out, r, g, b); imageData.setPixel(xx, yy, pixel); } } } } return; } // map maps src pixel values to dest pixel values int map[] = new int[256]; for (int i = 0; i < map.length; i++) { map[i] = -1; } /* JM: added code to test if the image is an icon */ if (src.getTransparencyType() == SWT.TRANSPARENCY_MASK) { ImageData mask = src.getTransparencyMask(); for (int y = 0; y < src.height; y++) { for (int x = 0; x < src.width; x++) { if (mask.getPixel(x, y) != 0) { int xx = x + ox; int yy = y + oy; if (xx >= 0 && xx < imageData.width && yy >= 0 && yy < imageData.height) { int pixel = src.getPixel(x, y); int newPixel = map[pixel]; if (newPixel < 0) { RGB c = palette.getRGB(pixel); map[pixel] = newPixel = alloc(out, c.red, c.green, c.blue); } imageData.setPixel(xx, yy, newPixel); } } } } return; } int maskPixel = src.transparentPixel; for (int y = 0; y < src.height; y++) { for (int x = 0; x < src.width; x++) { int pixel = src.getPixel(x, y); if (maskPixel < 0 || pixel != maskPixel) { int xx = x + ox; int yy = y + oy; if (xx >= 0 && xx < imageData.width && yy >= 0 && yy < imageData.height) { int newPixel = map[pixel]; if (newPixel < 0) { RGB c = palette.getRGB(pixel); map[pixel] = newPixel = alloc(out, c.red, c.green, c.blue); } imageData.setPixel(xx, yy, newPixel); } } } } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e3dd797feef0e8d8e6d4e9d98c04b37c34c84ac0/CompositeImageDescriptor.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/CompositeImageDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 4750, 918, 25783, 12, 2040, 751, 1705, 16, 509, 6965, 16, 509, 27563, 13, 288, 3639, 11510, 8526, 596, 273, 26229, 18, 588, 11343, 87, 5621, 3639, 453, 8786, 751, 12127, 273, 1705, 18, 26474, 31, 3639, 309, 261, 26474, 18, 291, 5368, 13, 288, 5411, 3421, 751, 3066, 273, 1705, 18, 588, 1429, 18258, 5796, 5621, 5411, 364, 261, 474, 677, 273, 374, 31, 677, 411, 1705, 18, 4210, 31, 677, 27245, 288, 7734, 364, 261, 474, 619, 273, 374, 31, 619, 411, 1705, 18, 2819, 31, 619, 27245, 288, 10792, 309, 261, 4455, 18, 588, 9037, 12, 92, 16, 677, 13, 480, 374, 13, 288, 13491, 509, 12223, 273, 619, 397, 6965, 31, 13491, 509, 9016, 273, 677, 397, 27563, 31, 13491, 309, 261, 5279, 1545, 374, 597, 12223, 411, 26229, 18, 2819, 597, 9016, 1545, 374, 27573, 597, 9016, 411, 26229, 18, 4210, 13, 288, 18701, 509, 4957, 273, 1705, 18, 588, 9037, 12, 92, 16, 677, 1769, 18701, 509, 436, 273, 4957, 473, 12127, 18, 1118, 5796, 31, 18701, 1748, 804, 49, 30, 27707, 12213, 628, 1671, 358, 4080, 358, 4654, 1573, 2831, 2145, 1195, 18701, 436, 273, 261, 26474, 18, 1118, 10544, 411, 374, 13, 692, 436, 4080, 300, 26474, 18, 1118, 10544, 4766, 565, 294, 436, 2296, 12127, 18, 1118, 10544, 31, 18701, 509, 314, 273, 4957, 473, 12127, 18, 11571, 5796, 31, 18701, 314, 273, 261, 26474, 18, 11571, 10544, 411, 374, 13, 692, 314, 4080, 300, 26474, 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, 727, 4750, 918, 25783, 12, 2040, 751, 1705, 16, 509, 6965, 16, 509, 27563, 13, 288, 3639, 11510, 8526, 596, 273, 26229, 18, 588, 11343, 87, 5621, 3639, 453, 8786, 751, 12127, 273, 1705, 18, 26474, 31, 3639, 309, 261, 26474, 18, 291, 5368, 13, 288, 5411, 3421, 751, 3066, 273, 1705, 18, 588, 1429, 18258, 5796, 5621, 5411, 364, 261, 474, 677, 273, 374, 31, 677, 411, 1705, 18, 4210, 31, 677, 27245, 288, 7734, 364, 261, 474, 619, 273, 374, 31, 619, 411, 1705, 18, 2819, 31, 619, 27245, 288, 10792, 309, 261, 4455, 18, 588, 9037, 12, 92, 16, 677, 13, 480, 374, 13, 288, 13491, 509, 12223, 273, 619, 397, 6965, 31, 13491, 509, 2 ]
reportsList = pluginManager.getReports( reportPlugin, reportSet, project, session, localRepository );
reportsList = pluginManager.getReports( reportPlugin, reportSet, project, session );
private List getReports() throws MojoExecutionException { // TODO: not the best solution. Perhaps a mojo tag that causes the plugin manager to populate project reports instead? List reportPlugins = project.getReportPlugins(); if ( project.getModel().getReports() != null ) { getLog().error( "DEPRECATED: Plugin contains a <reports/> section: this is IGNORED - please use <reporting/> instead." ); } List reports = new ArrayList(); if ( reportPlugins != null ) { for ( Iterator it = reportPlugins.iterator(); it.hasNext(); ) { ReportPlugin reportPlugin = (ReportPlugin) it.next(); try { List reportSets = reportPlugin.getReportSets(); List reportsList = new ArrayList(); if ( reportSets == null || reportSets.isEmpty() ) { reportsList = pluginManager.getReports( reportPlugin, null, project, session, localRepository ); } else { for ( Iterator j = reportSets.iterator(); j.hasNext(); ) { ReportSet reportSet = (ReportSet) j.next(); reportsList = pluginManager.getReports( reportPlugin, reportSet, project, session, localRepository ); } } reports.addAll( reportsList ); } catch ( PluginManagerException e ) { throw new MojoExecutionException( "Error getting reports", e ); } catch ( PluginVersionResolutionException e ) { throw new MojoExecutionException( "Error getting reports", e ); } catch ( PluginConfigurationException e ) { throw new MojoExecutionException( "Error getting reports", e ); } catch ( ArtifactResolutionException e ) { throw new MojoExecutionException( "Cannot find report plugin", e ); } } } return reports; }
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/aafd123f8633f0f77f1ed98e02eb3f506ba2c93d/DoxiaMojo.java/buggy/maven-site-plugin/src/main/java/org/apache/maven/doxia/DoxiaMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 987, 5561, 4363, 1435, 3639, 1216, 18780, 565, 288, 3639, 368, 2660, 30, 486, 326, 3796, 6959, 18, 5722, 19312, 279, 312, 10007, 1047, 716, 14119, 326, 1909, 3301, 358, 6490, 1984, 10557, 3560, 35, 3639, 987, 2605, 9461, 273, 1984, 18, 588, 4820, 9461, 5621, 3639, 309, 261, 1984, 18, 588, 1488, 7675, 588, 18631, 1435, 480, 446, 262, 3639, 288, 5411, 9189, 7675, 1636, 12, 7734, 315, 17575, 30, 6258, 1914, 279, 411, 20195, 21259, 2442, 30, 333, 353, 13102, 3417, 5879, 300, 9582, 999, 411, 20904, 21259, 3560, 1199, 11272, 3639, 289, 3639, 987, 10557, 273, 394, 2407, 5621, 3639, 309, 261, 2605, 9461, 480, 446, 262, 3639, 288, 5411, 364, 261, 4498, 518, 273, 2605, 9461, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 262, 5411, 288, 7734, 8706, 3773, 2605, 3773, 273, 261, 4820, 3773, 13, 518, 18, 4285, 5621, 7734, 775, 7734, 288, 10792, 987, 2605, 2785, 273, 2605, 3773, 18, 588, 4820, 2785, 5621, 10792, 987, 10557, 682, 273, 394, 2407, 5621, 10792, 309, 261, 2605, 2785, 422, 446, 747, 2605, 2785, 18, 291, 1921, 1435, 262, 10792, 288, 13491, 10557, 682, 273, 1909, 1318, 18, 588, 18631, 12, 2605, 3773, 16, 446, 16, 1984, 16, 1339, 16, 1191, 3305, 11272, 10792, 289, 10792, 469, 10792, 288, 13491, 364, 261, 4498, 525, 273, 2605, 2785, 18, 9838, 5621, 525, 18, 5332, 2134, 5621, 262, 13491, 288, 18701, 8706, 694, 2605, 694, 273, 261, 4820, 694, 13, 525, 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, 987, 5561, 4363, 1435, 3639, 1216, 18780, 565, 288, 3639, 368, 2660, 30, 486, 326, 3796, 6959, 18, 5722, 19312, 279, 312, 10007, 1047, 716, 14119, 326, 1909, 3301, 358, 6490, 1984, 10557, 3560, 35, 3639, 987, 2605, 9461, 273, 1984, 18, 588, 4820, 9461, 5621, 3639, 309, 261, 1984, 18, 588, 1488, 7675, 588, 18631, 1435, 480, 446, 262, 3639, 288, 5411, 9189, 7675, 1636, 12, 7734, 315, 17575, 30, 6258, 1914, 279, 411, 20195, 21259, 2442, 30, 333, 353, 13102, 3417, 5879, 300, 9582, 999, 411, 20904, 21259, 3560, 1199, 11272, 3639, 289, 3639, 987, 10557, 273, 394, 2407, 5621, 3639, 309, 261, 2605, 9461, 480, 446, 262, 3639, 288, 5411, 364, 261, 4498, 518, 2 ]
while(it.hasNext()) { Map.Entry en = (Map.Entry)it.next(); String name = (String)en.getKey(); String value = (String)en.getValue(); name = safeEnvVarName(name); envPut(env, name, value);
while (it.hasNext()) { Map.Entry en = (Map.Entry) it.next(); String name = (String) en.getKey(); String value = conf.get(name); name = safeEnvVarName(name); envPut(env, name, value);
void addJobConfToEnvironment(JobConf conf, Properties env) { logprintln("addJobConfToEnvironment: begin"); Iterator it = conf.entries(); while(it.hasNext()) { Map.Entry en = (Map.Entry)it.next(); String name = (String)en.getKey(); String value = (String)en.getValue(); name = safeEnvVarName(name); envPut(env, name, value); } logprintln("addJobConfToEnvironment: end"); }
53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/e10b40e8014547113799b2653164e8c990d41209/PipeMapRed.java/clean/src/contrib/streaming/src/java/org/apache/hadoop/streaming/PipeMapRed.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 527, 2278, 3976, 774, 5494, 12, 2278, 3976, 2195, 16, 6183, 1550, 13, 225, 288, 565, 613, 8222, 2932, 1289, 2278, 3976, 774, 5494, 30, 2376, 8863, 565, 4498, 518, 273, 2195, 18, 8219, 5621, 565, 1323, 12, 305, 18, 5332, 2134, 10756, 288, 3639, 1635, 18, 1622, 570, 273, 261, 863, 18, 1622, 13, 305, 18, 4285, 5621, 3639, 514, 508, 273, 261, 780, 13, 275, 18, 588, 653, 5621, 3639, 514, 460, 273, 261, 780, 13, 275, 18, 24805, 5621, 3639, 508, 273, 4183, 3491, 18129, 12, 529, 1769, 3639, 1550, 6426, 12, 3074, 16, 508, 16, 460, 1769, 565, 289, 565, 613, 8222, 2932, 1289, 2278, 3976, 774, 5494, 30, 679, 8863, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 527, 2278, 3976, 774, 5494, 12, 2278, 3976, 2195, 16, 6183, 1550, 13, 225, 288, 565, 613, 8222, 2932, 1289, 2278, 3976, 774, 5494, 30, 2376, 8863, 565, 4498, 518, 273, 2195, 18, 8219, 5621, 565, 1323, 12, 305, 18, 5332, 2134, 10756, 288, 3639, 1635, 18, 1622, 570, 273, 261, 863, 18, 1622, 13, 305, 18, 4285, 5621, 3639, 514, 508, 273, 261, 780, 13, 275, 18, 588, 653, 5621, 3639, 514, 460, 273, 261, 780, 13, 275, 18, 24805, 5621, 3639, 508, 273, 4183, 3491, 18129, 12, 529, 1769, 3639, 1550, 6426, 12, 3074, 16, 508, 16, 460, 1769, 565, 289, 565, 613, 8222, 2932, 1289, 2278, 3976, 774, 5494, 30, 679, 8863, 225, 289, 2 ]
--writeHolds_; if (writeHolds_ > 0) return null; else { activeWriter_ = null; if (waitingReaders_ > 0 && allowReader()) return readerLock_; else if (waitingWriters_ > 0) return writerLock_; else return null;
--writeHolds_; if (writeHolds_ > 0) return null; else { activeWriter_ = null; if (waitingReaders_ > 0 && allowReader()) return readerLock_; else if (waitingWriters_ > 0) return writerLock_; else return null; }
protected synchronized Signaller endWrite() { --writeHolds_; if (writeHolds_ > 0) // still being held return null; else { activeWriter_ = null; if (waitingReaders_ > 0 && allowReader()) return readerLock_; else if (waitingWriters_ > 0) return writerLock_; else return null; } }
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/a6a25004fd5e24a1bc5f053aa539d01dc2553fbf/ReentrantWriterPreferenceReadWriteLock.java/clean/src/java/org/logicalcobwebs/concurrent/ReentrantWriterPreferenceReadWriteLock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 3852, 4383, 454, 264, 679, 3067, 1435, 288, 565, 1493, 2626, 20586, 87, 67, 31, 565, 309, 261, 2626, 20586, 87, 67, 405, 374, 13, 282, 368, 4859, 3832, 15770, 1377, 327, 446, 31, 565, 469, 288, 1377, 2695, 2289, 67, 273, 446, 31, 1377, 309, 261, 20241, 30301, 67, 405, 374, 597, 1699, 2514, 10756, 3639, 327, 2949, 2531, 67, 31, 1377, 469, 309, 261, 20241, 27508, 67, 405, 374, 13, 3639, 327, 2633, 2531, 67, 31, 1377, 469, 3639, 327, 446, 31, 565, 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, 0, 0, 0, 0, 0, 0, 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, 282, 4750, 3852, 4383, 454, 264, 679, 3067, 1435, 288, 565, 1493, 2626, 20586, 87, 67, 31, 565, 309, 261, 2626, 20586, 87, 67, 405, 374, 13, 282, 368, 4859, 3832, 15770, 1377, 327, 446, 31, 565, 469, 288, 1377, 2695, 2289, 67, 273, 446, 31, 1377, 309, 261, 20241, 30301, 67, 405, 374, 597, 1699, 2514, 10756, 3639, 327, 2949, 2531, 67, 31, 1377, 469, 309, 261, 20241, 27508, 67, 405, 374, 13, 3639, 327, 2633, 2531, 67, 31, 1377, 469, 3639, 327, 446, 31, 565, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public int getMaxlength() {
public String getMaxlength() {
public int getMaxlength() { return (this.maxlength); }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/1ddd30eadabbdd1696b53c1713d20f4d68a2d2e2/BaseInputTag.java/clean/src/share/org/apache/struts/taglib/BaseInputTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 7288, 2469, 1435, 288, 202, 2463, 261, 2211, 18, 27875, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7288, 2469, 1435, 288, 202, 2463, 261, 2211, 18, 27875, 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, -100 ]
NameNode namenode = new NameNode();
NameNode namenode = new NameNode(new NutchConf());
public static void main(String argv[]) throws IOException, InterruptedException { NameNode namenode = new NameNode(); namenode.join(); }
1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/329ff64e9d7295aff108f85e9a8103f5e5f8f398/NameNode.java/buggy/src/java/org/apache/nutch/ndfs/NameNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 5261, 63, 5717, 1216, 1860, 16, 7558, 288, 3639, 1770, 907, 15135, 20680, 273, 394, 1770, 907, 12, 2704, 423, 322, 343, 3976, 10663, 3639, 15135, 20680, 18, 5701, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 5261, 63, 5717, 1216, 1860, 16, 7558, 288, 3639, 1770, 907, 15135, 20680, 273, 394, 1770, 907, 12, 2704, 423, 322, 343, 3976, 10663, 3639, 15135, 20680, 18, 5701, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
myRelativeCell = cell;
public void setLocationRelative(EditorCell cell) { myRelativeCell = cell; Component component = cell.getEditorContext().getNodeEditorComponent(); if (component.isShowing()) { Point anchor = component.getLocationOnScreen(); getPopupWindow().setRelativeCell(cell); getPopupWindow().relayout(); myPatternEditorLocation = new Point(anchor.x + cell.getX(), anchor.y + +cell.getY()); myPatternEditorSize = new Dimension(cell.getWidth() + 1, cell.getHeight()); } }
14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/46a1e4b0b21c9df4c06714043552dcc6729c967a/NodeSubstituteChooser.java/buggy/source/jetbrains/mps/nodeEditor/NodeSubstituteChooser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 21751, 8574, 12, 6946, 4020, 2484, 13, 288, 4202, 5435, 1794, 273, 2484, 18, 588, 6946, 1042, 7675, 588, 907, 6946, 1841, 5621, 565, 309, 261, 4652, 18, 291, 5706, 310, 10756, 288, 1377, 4686, 6984, 273, 1794, 18, 588, 2735, 1398, 7956, 5621, 1377, 1689, 556, 416, 3829, 7675, 542, 8574, 4020, 12, 3855, 1769, 1377, 1689, 556, 416, 3829, 7675, 2878, 2012, 5621, 1377, 3399, 3234, 6946, 2735, 273, 394, 4686, 12, 16215, 18, 92, 397, 2484, 18, 588, 60, 9334, 6984, 18, 93, 397, 397, 3855, 18, 588, 61, 10663, 1377, 3399, 3234, 6946, 1225, 273, 394, 13037, 12, 3855, 18, 588, 2384, 1435, 397, 404, 16, 2484, 18, 588, 2686, 10663, 565, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 918, 21751, 8574, 12, 6946, 4020, 2484, 13, 288, 4202, 5435, 1794, 273, 2484, 18, 588, 6946, 1042, 7675, 588, 907, 6946, 1841, 5621, 565, 309, 261, 4652, 18, 291, 5706, 310, 10756, 288, 1377, 4686, 6984, 273, 1794, 18, 588, 2735, 1398, 7956, 5621, 1377, 1689, 556, 416, 3829, 7675, 542, 8574, 4020, 12, 3855, 1769, 1377, 1689, 556, 416, 3829, 7675, 2878, 2012, 5621, 1377, 3399, 3234, 6946, 2735, 273, 394, 4686, 12, 16215, 18, 92, 397, 2484, 18, 588, 60, 9334, 6984, 18, 93, 397, 397, 3855, 18, 588, 61, 10663, 1377, 3399, 3234, 6946, 1225, 273, 394, 13037, 12, 3855, 18, 588, 2384, 1435, 397, 404, 16, 2484, 18, 588, 2686, 10663, 565, 2 ]
System.err.println(message + " - " + ioe.getMessage());
private static void saveItem(ZipFile zipFile, String rootDirName, ZipEntry entry) throws ZipException, IOException { InputStream is = null; BufferedInputStream inStream = null; FileOutputStream outStream = null; BufferedOutputStream bufferedOutStream = null; try { File file = new File(rootDirName, entry.getName()); if (entry.isDirectory()) { file.mkdirs(); } else { is = zipFile.getInputStream(entry); inStream = new BufferedInputStream(is); File dir = new File(file.getParent()); dir.mkdirs(); outStream = new FileOutputStream(file); bufferedOutStream = new BufferedOutputStream(outStream); int c; while ((c = inStream.read()) != -1) { bufferedOutStream.write((byte) c); } } } catch (ZipException ze) { String message = "Zip error unzipping entry: " + entry.getName(); LOG.error(message, ze); System.err.println(message + " - " + ze.getMessage()); throw new RuntimeException(message, ze); } catch (IOException ioe) { String message = "I/O error unzipping entry: " + entry.getName(); LOG.error(message, ioe); System.err.println(message + " - " + ioe.getMessage()); throw new RuntimeException(message, ioe); } finally { if (bufferedOutStream != null) { bufferedOutStream.close(); } if (inStream != null) { inStream.close(); } } }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/2c85e0021203d96ece16c5bbfb40ebb70caeeb07/ZipUtil.java/clean/contrib/distributed/src/net/sourceforge/cruisecontrol/distributed/util/ZipUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1923, 1180, 12, 29394, 19450, 16, 514, 15393, 461, 16, 23652, 1241, 13, 1216, 8603, 503, 16, 1860, 288, 3639, 5037, 353, 273, 446, 31, 3639, 24742, 28987, 273, 446, 31, 3639, 12942, 28997, 273, 446, 31, 3639, 28649, 11445, 1182, 1228, 273, 446, 31, 3639, 775, 288, 5411, 1387, 585, 273, 394, 1387, 12, 3085, 28780, 16, 1241, 18, 17994, 10663, 5411, 309, 261, 4099, 18, 291, 2853, 10756, 288, 7734, 585, 18, 24816, 8291, 5621, 5411, 289, 469, 288, 7734, 353, 273, 19450, 18, 588, 4348, 12, 4099, 1769, 7734, 28987, 273, 394, 24742, 12, 291, 1769, 7734, 1387, 1577, 273, 394, 1387, 12, 768, 18, 588, 3054, 10663, 7734, 1577, 18, 24816, 8291, 5621, 7734, 28997, 273, 394, 12942, 12, 768, 1769, 7734, 11445, 1182, 1228, 273, 394, 28649, 12, 659, 1228, 1769, 7734, 509, 276, 31, 7734, 1323, 14015, 71, 273, 28987, 18, 896, 10756, 480, 300, 21, 13, 288, 10792, 11445, 1182, 1228, 18, 2626, 12443, 7229, 13, 276, 1769, 7734, 289, 5411, 289, 3639, 289, 1044, 261, 9141, 503, 26637, 13, 288, 5411, 514, 883, 273, 315, 9141, 555, 20259, 1382, 1241, 30, 315, 397, 1241, 18, 17994, 5621, 5411, 2018, 18, 1636, 12, 2150, 16, 26637, 1769, 5411, 2332, 18, 370, 18, 8222, 12, 2150, 397, 315, 300, 315, 397, 26637, 18, 24906, 10663, 5411, 604, 394, 3235, 12, 2150, 16, 26637, 1769, 3639, 289, 1044, 261, 14106, 10847, 13, 288, 5411, 514, 883, 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, 760, 918, 1923, 1180, 12, 29394, 19450, 16, 514, 15393, 461, 16, 23652, 1241, 13, 1216, 8603, 503, 16, 1860, 288, 3639, 5037, 353, 273, 446, 31, 3639, 24742, 28987, 273, 446, 31, 3639, 12942, 28997, 273, 446, 31, 3639, 28649, 11445, 1182, 1228, 273, 446, 31, 3639, 775, 288, 5411, 1387, 585, 273, 394, 1387, 12, 3085, 28780, 16, 1241, 18, 17994, 10663, 5411, 309, 261, 4099, 18, 291, 2853, 10756, 288, 7734, 585, 18, 24816, 8291, 5621, 5411, 289, 469, 288, 7734, 353, 273, 19450, 18, 588, 4348, 12, 4099, 1769, 7734, 28987, 273, 394, 24742, 12, 291, 1769, 7734, 1387, 1577, 273, 394, 1387, 12, 768, 18, 588, 3054, 10663, 7734, 1577, 18, 24816, 2 ]
} else
} else {
public void dragStart(DragSourceEvent event) { if (DEBUG) System.out.println("CommonDragAdapter.dragStart (begin): " + event); //$NON-NLS-1$ try { // Workaround for 1GEUS9V DragSource dragSource = (DragSource) event.widget; Control control = dragSource.getControl(); if (control == control.getDisplay().getFocusControl()) { ISelection selection = provider.getSelection(); if (!selection.isEmpty()) { LocalSelectionTransfer.getTransfer() .setSelection(selection); event.doit = true; } else event.doit = false; } else event.doit = false; } catch (RuntimeException e) { NavigatorPlugin.logError(0, e.getMessage(), e); } if (DEBUG) System.out .println("CommonDragAdapter.dragStart (end): doit=" + event.doit); //$NON-NLS-1$ }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/CommonDragAdapter.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/CommonDragAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 8823, 1685, 12, 11728, 1830, 1133, 871, 13, 288, 202, 202, 430, 261, 9394, 13, 1082, 202, 3163, 18, 659, 18, 8222, 2932, 6517, 11728, 4216, 18, 15997, 1685, 261, 10086, 4672, 315, 397, 871, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 698, 288, 1082, 202, 759, 4147, 12716, 364, 404, 7113, 3378, 29, 58, 1082, 202, 11728, 1830, 8823, 1830, 273, 261, 11728, 1830, 13, 871, 18, 6587, 31, 1082, 202, 3367, 3325, 273, 8823, 1830, 18, 588, 3367, 5621, 1082, 202, 430, 261, 7098, 422, 3325, 18, 588, 4236, 7675, 588, 9233, 3367, 10756, 288, 9506, 202, 45, 6233, 4421, 273, 2893, 18, 588, 6233, 5621, 9506, 202, 430, 16051, 10705, 18, 291, 1921, 10756, 288, 6862, 202, 2042, 6233, 5912, 18, 588, 5912, 1435, 6862, 1082, 202, 18, 542, 6233, 12, 10705, 1769, 6862, 202, 2575, 18, 2896, 305, 273, 638, 31, 9506, 202, 97, 469, 6862, 202, 2575, 18, 2896, 305, 273, 629, 31, 1082, 202, 97, 469, 9506, 202, 2575, 18, 2896, 305, 273, 629, 31, 202, 202, 97, 1044, 261, 11949, 425, 13, 288, 1082, 202, 22817, 3773, 18, 1330, 668, 12, 20, 16, 425, 18, 24906, 9334, 425, 1769, 202, 202, 97, 202, 202, 430, 261, 9394, 13, 1082, 202, 3163, 18, 659, 6862, 202, 18, 8222, 2932, 6517, 11728, 4216, 18, 15997, 1685, 261, 409, 4672, 741, 305, 1546, 397, 871, 18, 2896, 305, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 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, 8823, 1685, 12, 11728, 1830, 1133, 871, 13, 288, 202, 202, 430, 261, 9394, 13, 1082, 202, 3163, 18, 659, 18, 8222, 2932, 6517, 11728, 4216, 18, 15997, 1685, 261, 10086, 4672, 315, 397, 871, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 698, 288, 1082, 202, 759, 4147, 12716, 364, 404, 7113, 3378, 29, 58, 1082, 202, 11728, 1830, 8823, 1830, 273, 261, 11728, 1830, 13, 871, 18, 6587, 31, 1082, 202, 3367, 3325, 273, 8823, 1830, 18, 588, 3367, 5621, 1082, 202, 430, 261, 7098, 422, 3325, 18, 588, 4236, 7675, 588, 9233, 3367, 10756, 288, 9506, 202, 45, 6233, 4421, 273, 2893, 18, 588, 6233, 5621, 9506, 202, 430, 16051, 2 ]
String pref = _context.getProperty(PROP_ALWAYS_PREFER_UDP);
String pref = _context.getProperty(PROP_ALWAYS_PREFER_UDP, DEFAULT_ALWAYS_PREFER_UDP);
private boolean alwaysPreferUDP() { String pref = _context.getProperty(PROP_ALWAYS_PREFER_UDP); return (pref != null) && "true".equals(pref); }
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/a8a866b5f60e9319f293bda8dd9c6b52ae5b4db2/UDPTransport.java/buggy/router/java/src/net/i2p/router/transport/udp/UDPTransport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 3712, 1386, 586, 20352, 1435, 288, 3639, 514, 11307, 273, 389, 2472, 18, 588, 1396, 12, 15811, 67, 1013, 29295, 67, 3670, 6553, 67, 20352, 16, 3331, 67, 1013, 29295, 67, 3670, 6553, 67, 20352, 1769, 3639, 327, 261, 25724, 480, 446, 13, 597, 315, 3767, 9654, 14963, 12, 25724, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 3238, 1250, 3712, 1386, 586, 20352, 1435, 288, 3639, 514, 11307, 273, 389, 2472, 18, 588, 1396, 12, 15811, 67, 1013, 29295, 67, 3670, 6553, 67, 20352, 16, 3331, 67, 1013, 29295, 67, 3670, 6553, 67, 20352, 1769, 3639, 327, 261, 25724, 480, 446, 13, 597, 315, 3767, 9654, 14963, 12, 25724, 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 ]
return new Status(IStatus.OK, ServerPlugin.PLUGIN_ID, 0, "A-OK", null);
return new Status(IStatus.OK, JBossServerCorePlugin.PLUGIN_ID, 0, "A-OK", null);
public IStatus launch(IServer server, Object launchable, String launchMode, ILaunch launch) { // Do nothing ASDebug.p("Here, I do nothing", this); return new Status(IStatus.OK, ServerPlugin.PLUGIN_ID, 0, "A-OK", null); }
56633 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56633/45cb231c6f5e0fedbe2d6cbf9f171fcc45696eeb/DoNothingClient.java/buggy/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/client/DoNothingClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1482, 8037, 12, 45, 2081, 1438, 16, 1033, 8037, 429, 16, 514, 8037, 2309, 16, 1082, 202, 2627, 4760, 8037, 13, 288, 9506, 202, 759, 2256, 5083, 202, 202, 3033, 2829, 18, 84, 2932, 26715, 16, 467, 741, 5083, 3113, 333, 1769, 202, 202, 2463, 394, 2685, 12, 45, 1482, 18, 3141, 16, 3224, 3773, 18, 19415, 67, 734, 16, 374, 16, 315, 37, 17, 3141, 3113, 446, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1482, 8037, 12, 45, 2081, 1438, 16, 1033, 8037, 429, 16, 514, 8037, 2309, 16, 1082, 202, 2627, 4760, 8037, 13, 288, 9506, 202, 759, 2256, 5083, 202, 202, 3033, 2829, 18, 84, 2932, 26715, 16, 467, 741, 5083, 3113, 333, 1769, 202, 202, 2463, 394, 2685, 12, 45, 1482, 18, 3141, 16, 3224, 3773, 18, 19415, 67, 734, 16, 374, 16, 315, 37, 17, 3141, 3113, 446, 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 ]
void processOutgoing(byte[] buf, int offset, int length, PeerContext peer) throws NotConnectedException;
void processOutgoing(byte[] buf, int offset, int length, PeerContext peer) throws NotConnectedException, LowLevelFilterException;
void processOutgoing(byte[] buf, int offset, int length, PeerContext peer) throws NotConnectedException;
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/b65da6d7400224aceca597e3463b9ed8ec21e4b9/LowLevelFilter.java/buggy/src/freenet/io/comm/LowLevelFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1207, 24866, 12, 7229, 8526, 1681, 16, 509, 1384, 16, 509, 769, 16, 10669, 1042, 4261, 13, 1216, 31541, 503, 31, 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, 918, 1207, 24866, 12, 7229, 8526, 1681, 16, 509, 1384, 16, 509, 769, 16, 10669, 1042, 4261, 13, 1216, 31541, 503, 31, 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 ]
int idStart = urlIndex + PREFIX_URL.length();
int idStart = urlIndex + LABEL_URL.length();
public static String getUrlFromComment(String comment) { int urlIndex = comment.indexOf(PREFIX_URL); if (urlIndex != -1) { int idStart = urlIndex + PREFIX_URL.length(); int idEnd = comment.indexOf(' ', idStart); if (idEnd == -1) { return comment.substring(idStart); } else if (idEnd != -1 && idStart < idEnd) { return comment.substring(idStart, idEnd); } } return null; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/0b22622df4c8dcd592484e1fc56158bf42dab593/TaskContextChangeSet.java/buggy/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/java/TaskContextChangeSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 8928, 1265, 4469, 12, 780, 2879, 13, 288, 377, 202, 474, 880, 1016, 273, 2879, 18, 31806, 12, 6307, 67, 1785, 1769, 377, 202, 430, 261, 718, 1016, 480, 300, 21, 13, 288, 377, 202, 202, 474, 612, 1685, 273, 880, 1016, 397, 18210, 67, 1785, 18, 2469, 5621, 377, 202, 202, 474, 612, 1638, 273, 2879, 18, 31806, 2668, 2265, 612, 1685, 1769, 377, 202, 202, 430, 261, 350, 1638, 422, 300, 21, 13, 288, 377, 1082, 202, 2463, 2879, 18, 28023, 12, 350, 1685, 1769, 377, 202, 202, 97, 469, 309, 261, 350, 1638, 480, 300, 21, 597, 612, 1685, 411, 612, 1638, 13, 288, 377, 1082, 202, 2463, 2879, 18, 28023, 12, 350, 1685, 16, 612, 1638, 1769, 377, 202, 202, 97, 377, 202, 97, 377, 202, 2463, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 8928, 1265, 4469, 12, 780, 2879, 13, 288, 377, 202, 474, 880, 1016, 273, 2879, 18, 31806, 12, 6307, 67, 1785, 1769, 377, 202, 430, 261, 718, 1016, 480, 300, 21, 13, 288, 377, 202, 202, 474, 612, 1685, 273, 880, 1016, 397, 18210, 67, 1785, 18, 2469, 5621, 377, 202, 202, 474, 612, 1638, 273, 2879, 18, 31806, 2668, 2265, 612, 1685, 1769, 377, 202, 202, 430, 261, 350, 1638, 422, 300, 21, 13, 288, 377, 1082, 202, 2463, 2879, 18, 28023, 12, 350, 1685, 1769, 377, 202, 202, 97, 469, 309, 261, 350, 1638, 480, 300, 21, 597, 612, 1685, 411, 612, 1638, 13, 288, 377, 1082, 202, 2463, 2879, 18, 28023, 12, 2 ]
int anchor = reverseSearch ? offset - 1 : offset;
int anchor = reverseSearch ? length - 1 : offset;
public int match(char[] text, int offset, int length) { // position variable for pattern start int anchor = reverseSearch ? offset - 1 : offset; // position variable for pattern test position int pos; // last possible start position of a match with this pattern; // this is negative if the pattern is longer than the text // causing the search loop below to immediately fail int last_anchor = reverseSearch ? pattern.length - 1 : length - pattern.length; // each time the pattern is checked, we start this many // characters ahead of 'anchor' int pattern_end = pattern.length - 1; char ch = 0; int bad_char; int good_suffix; // the search works by starting the anchor (first character // of the pattern) at the initial offset. as long as the // anchor is far enough from the enough of the text for the // pattern to match, and until the pattern matches, we // compare the pattern to the text from the last character // to the first character in reverse order. where a character // in the pattern mismatches, we use the two heuristics // based on the mismatch character and its position in the // pattern to determine the furthest we can move the anchor // without missing any potential pattern matches.SEARCH: while (reverseSearch ? anchor >= last_anchor : anchor <= last_anchor) { for (pos = pattern_end; pos >= 0; --pos) { int idx = reverseSearch ? anchor - pos : anchor + pos; ch = ignoreCase ? Character.toUpperCase(text[idx]) : text[idx]; // pattern test if (ch != pattern[pos]) { // character mismatch, determine how many characters to skip // heuristic #1 bad_char = pos - skip[getSkipIndex(ch)]; // heuristic #2 good_suffix = suffix[pos]; // skip the greater of the two distances provided by the // heuristics int skip = (bad_char > good_suffix) ? bad_char : good_suffix; anchor += reverseSearch ? -skip : skip; // go back to the while loop continue SEARCH; } } // MATCH: return the position of its first character return reverseSearch ? anchor - (pattern.length - 1) : anchor; } // MISMATCH: return -1 as defined by API return -1; }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/79411f7b1fd98146e9321493557fa132421e93b4/BoyerMooreSearchMatcher.java/clean/org/gjt/sp/jedit/search/BoyerMooreSearchMatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 845, 12, 3001, 8526, 977, 16, 509, 1384, 16, 509, 769, 13, 202, 95, 202, 202, 759, 1754, 2190, 364, 1936, 787, 202, 202, 474, 6984, 273, 4219, 2979, 692, 1384, 300, 404, 294, 1384, 31, 202, 202, 759, 1754, 2190, 364, 1936, 1842, 1754, 202, 202, 474, 949, 31, 202, 202, 759, 1142, 3323, 787, 1754, 434, 279, 845, 598, 333, 1936, 31, 202, 202, 759, 333, 353, 6092, 309, 326, 1936, 353, 7144, 2353, 326, 977, 202, 202, 759, 25416, 326, 1623, 2798, 5712, 358, 7636, 2321, 202, 202, 474, 1142, 67, 16215, 273, 4219, 2979, 1082, 202, 35, 1936, 18, 2469, 300, 404, 1082, 202, 30, 769, 300, 1936, 18, 2469, 31, 202, 202, 759, 1517, 813, 326, 1936, 353, 5950, 16, 732, 787, 333, 4906, 202, 202, 759, 3949, 17510, 434, 296, 16215, 11, 202, 202, 474, 1936, 67, 409, 273, 1936, 18, 2469, 300, 404, 31, 202, 202, 3001, 462, 273, 374, 31, 202, 202, 474, 5570, 67, 3001, 31, 202, 202, 474, 7494, 67, 8477, 31, 202, 202, 759, 326, 1623, 6330, 635, 5023, 326, 6984, 261, 3645, 3351, 202, 202, 759, 434, 326, 1936, 13, 622, 326, 2172, 1384, 18, 487, 1525, 487, 326, 202, 202, 759, 6984, 353, 10247, 7304, 628, 326, 7304, 434, 326, 977, 364, 326, 202, 202, 759, 1936, 358, 845, 16, 471, 3180, 326, 1936, 1885, 16, 732, 202, 202, 759, 3400, 326, 1936, 358, 326, 977, 628, 326, 1142, 3351, 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, 509, 845, 12, 3001, 8526, 977, 16, 509, 1384, 16, 509, 769, 13, 202, 95, 202, 202, 759, 1754, 2190, 364, 1936, 787, 202, 202, 474, 6984, 273, 4219, 2979, 692, 1384, 300, 404, 294, 1384, 31, 202, 202, 759, 1754, 2190, 364, 1936, 1842, 1754, 202, 202, 474, 949, 31, 202, 202, 759, 1142, 3323, 787, 1754, 434, 279, 845, 598, 333, 1936, 31, 202, 202, 759, 333, 353, 6092, 309, 326, 1936, 353, 7144, 2353, 326, 977, 202, 202, 759, 25416, 326, 1623, 2798, 5712, 358, 7636, 2321, 202, 202, 474, 1142, 67, 16215, 273, 4219, 2979, 1082, 202, 35, 1936, 18, 2469, 300, 404, 1082, 202, 30, 769, 300, 1936, 18, 2469, 31, 2 ]
if (manager != null) updateManager(manager);
if (manager != null) { updateManager(manager); }
private void updateWindowBars( final WorkbenchWindow window) { IContributionManager manager = window .getMenuBarManager(); if (manager != null) updateManager(manager); manager = window .getCoolBarManager2(); if (manager != null) updateManager(manager); manager = window .getToolBarManager2(); if (manager != null) updateManager(manager); manager = window .getStatusLineManager(); if (manager != null) updateManager(manager); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbenchActivitySupport.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/activities/ws/WorkbenchActivitySupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 29159, 3238, 918, 1089, 3829, 5190, 87, 12, 4766, 7734, 727, 4147, 22144, 3829, 2742, 13, 288, 4766, 5411, 467, 442, 4027, 1318, 3301, 273, 2742, 4766, 10792, 263, 588, 4599, 5190, 1318, 5621, 4766, 5411, 309, 261, 4181, 480, 446, 13, 4766, 7734, 1089, 1318, 12, 4181, 1769, 4766, 5411, 3301, 273, 2742, 4766, 10792, 263, 588, 39, 1371, 5190, 1318, 22, 5621, 4766, 5411, 309, 261, 4181, 480, 446, 13, 4766, 7734, 1089, 1318, 12, 4181, 1769, 4766, 5411, 3301, 273, 2742, 4766, 10792, 263, 588, 6364, 5190, 1318, 22, 5621, 4766, 5411, 309, 261, 4181, 480, 446, 13, 4766, 7734, 1089, 1318, 12, 4181, 1769, 4766, 5411, 3301, 273, 2742, 4766, 10792, 263, 588, 1482, 1670, 1318, 5621, 4766, 5411, 309, 261, 4181, 480, 446, 13, 4766, 7734, 1089, 1318, 12, 4181, 1769, 4766, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 29159, 3238, 918, 1089, 3829, 5190, 87, 12, 4766, 7734, 727, 4147, 22144, 3829, 2742, 13, 288, 4766, 5411, 467, 442, 4027, 1318, 3301, 273, 2742, 4766, 10792, 263, 588, 4599, 5190, 1318, 5621, 4766, 5411, 309, 261, 4181, 480, 446, 13, 4766, 7734, 1089, 1318, 12, 4181, 1769, 4766, 5411, 3301, 273, 2742, 4766, 10792, 263, 588, 39, 1371, 5190, 1318, 22, 5621, 4766, 5411, 309, 261, 4181, 480, 446, 13, 4766, 7734, 1089, 1318, 12, 4181, 1769, 4766, 5411, 3301, 273, 2742, 4766, 10792, 263, 588, 6364, 5190, 1318, 22, 5621, 4766, 5411, 309, 261, 4181, 480, 446, 13, 4766, 7734, 1089, 1318, 12, 4181, 1769, 4766, 5411, 3301, 273, 2742, 4766, 10792, 263, 588, 1482, 1670, 2 ]
namespaceSupport.declarePrefix(prefix, uri); super.startPrefixMapping(prefix, uri);
try { if (mustPushContext) { namespaceSupport.pushContext(); mustPushContext = false; } namespaceSupport.declarePrefix(prefix, uri); super.startPrefixMapping(prefix, uri); } catch (Exception e) { throw new ValidationException(e, new LocationData(locator)); }
public void startPrefixMapping(String prefix, String uri) throws SAXException { // Update global NamespaceSupport namespaceSupport.declarePrefix(prefix, uri); super.startPrefixMapping(prefix, uri); }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/967e0250deb0a048a5e360c810ce72c3a3e888fd/ElementHandlerController.java/buggy/src/java/org/orbeon/oxf/xml/ElementHandlerController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 2244, 3233, 12, 780, 1633, 16, 514, 2003, 13, 1216, 14366, 288, 3639, 368, 2315, 2552, 6005, 6289, 3639, 1981, 6289, 18, 29554, 2244, 12, 3239, 16, 2003, 1769, 3639, 2240, 18, 1937, 2244, 3233, 12, 3239, 16, 2003, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 2244, 3233, 12, 780, 1633, 16, 514, 2003, 13, 1216, 14366, 288, 3639, 368, 2315, 2552, 6005, 6289, 3639, 1981, 6289, 18, 29554, 2244, 12, 3239, 16, 2003, 1769, 3639, 2240, 18, 1937, 2244, 3233, 12, 3239, 16, 2003, 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 ]
eq.enqueue(ErrorInfo.LEXICAL_ERROR, "Illegal character literal \'" + s + "\'", pos(i)); return null;
assert(s.length() == 3); x = s.charAt(1);
private polyglot.lex.CharacterLiteral char_lit(int i) { String s = prsStream.getName(i); if (s.length() == 1) { char x = s.charAt(0); return new CharacterLiteral(pos(i), x, X10Parsersym.TK_CharacterLiteral); } else { eq.enqueue(ErrorInfo.LEXICAL_ERROR, "Illegal character literal \'" + s + "\'", pos(i)); return null; } }
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/af3f97f921355862c552fa98c4a60e77625996f2/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2952, 4338, 23372, 18, 4149, 18, 7069, 6177, 1149, 67, 24235, 12, 474, 277, 13, 565, 288, 3639, 514, 272, 273, 846, 87, 1228, 18, 17994, 12, 77, 1769, 3639, 309, 261, 87, 18, 2469, 1435, 422, 404, 13, 288, 5411, 1149, 619, 273, 272, 18, 3001, 861, 12, 20, 1769, 5411, 327, 394, 6577, 6177, 12, 917, 12, 77, 3631, 619, 16, 1139, 2163, 26954, 2942, 18, 56, 47, 67, 7069, 6177, 1769, 3639, 289, 3639, 469, 288, 5411, 7555, 18, 21798, 12, 668, 966, 18, 21130, 10109, 67, 3589, 16, 15604, 315, 12195, 3351, 7158, 521, 4970, 397, 272, 397, 1548, 11, 3113, 949, 12, 77, 10019, 5411, 327, 446, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2952, 4338, 23372, 18, 4149, 18, 7069, 6177, 1149, 67, 24235, 12, 474, 277, 13, 565, 288, 3639, 514, 272, 273, 846, 87, 1228, 18, 17994, 12, 77, 1769, 3639, 309, 261, 87, 18, 2469, 1435, 422, 404, 13, 288, 5411, 1149, 619, 273, 272, 18, 3001, 861, 12, 20, 1769, 5411, 327, 394, 6577, 6177, 12, 917, 12, 77, 3631, 619, 16, 1139, 2163, 26954, 2942, 18, 56, 47, 67, 7069, 6177, 1769, 3639, 289, 3639, 469, 288, 5411, 7555, 18, 21798, 12, 668, 966, 18, 21130, 10109, 67, 3589, 16, 15604, 315, 12195, 3351, 7158, 521, 4970, 397, 272, 397, 1548, 11, 3113, 949, 12, 77, 10019, 5411, 327, 446, 31, 3639, 289, 565, 289, 2 ]
private static int findSecondWhitespace(String textValue, GC gc, int maxWidth) { int firstCharacter = 0; char[] chars = textValue.toCharArray(); //Find the first whitespace for (int i = 0; i < chars.length; i++) { if (Character.isWhitespace(chars[i])){ firstCharacter = i; break; } } //If we didn't find it once don't continue if(firstCharacter == 0) return 0; //Initialize to firstCharacter in case there is no more whitespace int secondCharacter = firstCharacter; //Find the second whitespace for (int i = firstCharacter; i < chars.length; i++) { if (Character.isWhitespace(chars[i])){ secondCharacter = i; break; } } //Check that we haven't gone over max width. Throw //out an index that is too high if(gc.textExtent(textValue.substring(0,secondCharacter)).x > maxWidth){ if(gc.textExtent(textValue.substring(0,firstCharacter)).x > maxWidth) return 0; else return firstCharacter; } return secondCharacter; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d0485e82d5ab333aec3468c11cda5ec0f9b8db4c/ProgressManagerUtil.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManagerUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 11365, 270, 395, 2126, 474, 4720, 8211, 9431, 12, 780, 955, 620, 16, 15396, 13241, 16, 474, 1896, 2384, 15329, 202, 202, 474, 3645, 7069, 33, 20, 31, 9506, 202, 3001, 8526, 7549, 33, 955, 620, 18, 869, 15936, 5621, 9506, 202, 759, 3125, 5787, 3645, 18777, 202, 202, 1884, 12, 474, 77, 33, 20, 31, 77, 32, 7549, 18, 2469, 31, 77, 27245, 95, 1082, 202, 430, 12, 7069, 18, 291, 9431, 12, 7549, 63, 77, 22643, 95, 9506, 202, 3645, 7069, 33, 77, 31, 9506, 202, 8820, 31, 1082, 202, 97, 202, 202, 97, 9506, 202, 759, 2047, 91, 329, 350, 82, 1404, 4720, 26949, 3263, 265, 1404, 17143, 202, 202, 430, 12, 3645, 7069, 631, 20, 13, 1082, 202, 2463, 20, 31, 9506, 202, 759, 4435, 452, 278, 792, 920, 7069, 267, 6349, 546, 822, 291, 12306, 479, 18777, 202, 202, 474, 8538, 7069, 33, 3645, 7069, 31, 202, 202, 759, 3125, 7915, 557, 1434, 18777, 202, 202, 1884, 12, 474, 77, 33, 3645, 7069, 31, 77, 32, 7549, 18, 2469, 31, 77, 27245, 95, 1082, 202, 430, 12, 7069, 18, 291, 9431, 12, 7549, 63, 77, 22643, 95, 9506, 202, 8538, 7069, 33, 77, 31, 9506, 202, 8820, 31, 1082, 202, 97, 202, 202, 97, 9506, 202, 759, 1564, 19056, 1814, 76, 7638, 1404, 75, 476, 1643, 1896, 2819, 18, 8282, 202, 202, 759, 659, 304, 1615, 19056, 376, 5161, 8766, 202, 202, 430, 12, 13241, 18, 955, 17639, 12, 955, 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, 11365, 270, 395, 2126, 474, 4720, 8211, 9431, 12, 780, 955, 620, 16, 15396, 13241, 16, 474, 1896, 2384, 15329, 202, 202, 474, 3645, 7069, 33, 20, 31, 9506, 202, 3001, 8526, 7549, 33, 955, 620, 18, 869, 15936, 5621, 9506, 202, 759, 3125, 5787, 3645, 18777, 202, 202, 1884, 12, 474, 77, 33, 20, 31, 77, 32, 7549, 18, 2469, 31, 77, 27245, 95, 1082, 202, 430, 12, 7069, 18, 291, 9431, 12, 7549, 63, 77, 22643, 95, 9506, 202, 3645, 7069, 33, 77, 31, 9506, 202, 8820, 31, 1082, 202, 97, 202, 202, 97, 9506, 202, 759, 2047, 91, 329, 350, 82, 1404, 4720, 26949, 3263, 265, 1404, 17143, 202, 202, 430, 12, 3645, 7069, 2 ]
Asserts.notNull(name); Asserts.notNull(accessor); Asserts.isTrue(name.startsWith("$"));
assert name != null; assert accessor != null; assert name.startsWith("$");
public void define(String name, IAccessor accessor) { Asserts.notNull(name); Asserts.notNull(accessor); Asserts.isTrue(name.startsWith("$")); globalVariables.put(name, new GlobalVariable(accessor)); }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/GlobalVariables.java/buggy/src/org/jruby/internal/runtime/GlobalVariables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4426, 12, 780, 508, 16, 467, 8235, 9789, 13, 288, 3639, 5452, 87, 18, 902, 2041, 12, 529, 1769, 3639, 5452, 87, 18, 902, 2041, 12, 3860, 280, 1769, 3639, 5452, 87, 18, 291, 5510, 12, 529, 18, 17514, 1190, 2932, 8, 7923, 1769, 3639, 2552, 6158, 18, 458, 12, 529, 16, 394, 8510, 3092, 12, 3860, 280, 10019, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4426, 12, 780, 508, 16, 467, 8235, 9789, 13, 288, 3639, 5452, 87, 18, 902, 2041, 12, 529, 1769, 3639, 5452, 87, 18, 902, 2041, 12, 3860, 280, 1769, 3639, 5452, 87, 18, 291, 5510, 12, 529, 18, 17514, 1190, 2932, 8, 7923, 1769, 3639, 2552, 6158, 18, 458, 12, 529, 16, 394, 8510, 3092, 12, 3860, 280, 10019, 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 ]
for(int j=0; j < component.getProvideServices().length; j++) { ProvidedServiceDescription ps = component.getProvideServices()[j]; String spec = ""; for(int k = 0; k < ps.getServiceSpecification().length; k++) { spec = spec + " " + ps.getServiceSpecification()[k]; } out.println("\t Provides : " + spec + " - " + State.printProvidedServiceState(ps.getState())); Enumeration e = ps.getProperties().propertyNames(); while(e.hasMoreElements()) { Object key = e.nextElement(); out.println("\t\t Service Property : " + key.toString() + " = " + ps.getProperties().getProperty(key.toString())); } } out.println("\tCreated Instances : ");
out.println("Created Instances of the POJO : ");
public void execute(String line, PrintStream out, PrintStream err) { synchronized(this) { for(int i=0; i < archiService.length; i++) { ComponentDescription component = archiService[i].getComponentDescription(); out.println("Component : " + component.getClassName() + " - " + State.printComponentState(component.getState())); for(int j = 0; j < component.getDependencies().length; j++) { DependencyDescription dd = component.getDependencies()[j]; out.println("\t Dependency : " + dd.getInterface() + " - " + State.printDependencyState(dd.getState()) + " - Optional : " + dd.isOptional() + " - Multiple : " + dd.isMultiple()); // getUsedServices : HashMap hm = dd.getUsedServices(); Iterator it = hm.keySet().iterator(); while(it.hasNext()) { String key = (String) it.next(); out.println("\t\t Used Service : " + key + " - " + hm.get(key)); } } for(int j=0; j < component.getProvideServices().length; j++) { ProvidedServiceDescription ps = component.getProvideServices()[j]; String spec = ""; for(int k = 0; k < ps.getServiceSpecification().length; k++) { spec = spec + " " + ps.getServiceSpecification()[k]; } out.println("\t Provides : " + spec + " - " + State.printProvidedServiceState(ps.getState())); Enumeration e = ps.getProperties().propertyNames(); while(e.hasMoreElements()) { Object key = e.nextElement(); out.println("\t\t Service Property : " + key.toString() + " = " + ps.getProperties().getProperty(key.toString())); } } out.println("\tCreated Instances : "); for(int j=0; j < component.getInstances().length; j++) { out.println("\t\t" + component.getInstances()[j]); } out.print("\n"); } } }
45948 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45948/662342c0319f7a5924215a5d2f3cc33ccc3b7e1a/ArchCommandImpl.java/buggy/ipojo.arch/src/main/java/org/apache/felix/ipojo/arch/ArchCommandImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 12, 780, 980, 16, 21677, 596, 16, 21677, 393, 13, 288, 3639, 3852, 12, 2211, 13, 288, 1850, 202, 1884, 12, 474, 277, 33, 20, 31, 277, 411, 6637, 77, 1179, 18, 2469, 31, 277, 27245, 288, 540, 202, 202, 1841, 3291, 1794, 273, 6637, 77, 1179, 63, 77, 8009, 588, 1841, 3291, 5621, 7734, 202, 202, 659, 18, 8222, 2932, 1841, 294, 315, 397, 1794, 18, 588, 3834, 1435, 397, 315, 300, 315, 397, 3287, 18, 1188, 1841, 1119, 12, 4652, 18, 588, 1119, 1435, 10019, 540, 202, 202, 1884, 12, 474, 525, 273, 374, 31, 525, 411, 1794, 18, 588, 8053, 7675, 2469, 31, 525, 27245, 288, 540, 1082, 202, 7787, 3291, 6957, 273, 1794, 18, 588, 8053, 1435, 63, 78, 15533, 540, 1082, 202, 659, 18, 8222, 31458, 88, 11993, 294, 315, 397, 6957, 18, 588, 1358, 1435, 397, 315, 300, 315, 397, 3287, 18, 1188, 7787, 1119, 12, 449, 18, 588, 1119, 10756, 397, 315, 300, 4055, 294, 315, 397, 6957, 18, 291, 6542, 1435, 397, 315, 300, 13531, 294, 315, 397, 6957, 18, 291, 8438, 10663, 540, 1082, 202, 759, 336, 6668, 5676, 294, 540, 1082, 202, 8658, 16349, 273, 6957, 18, 588, 6668, 5676, 5621, 540, 1082, 202, 3198, 518, 273, 16349, 18, 856, 694, 7675, 9838, 5621, 540, 1082, 202, 17523, 12, 305, 18, 5332, 2134, 10756, 288, 540, 9506, 202, 780, 498, 273, 261, 780, 13, 518, 18, 4285, 5621, 540, 9506, 202, 659, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 12, 780, 980, 16, 21677, 596, 16, 21677, 393, 13, 288, 3639, 3852, 12, 2211, 13, 288, 1850, 202, 1884, 12, 474, 277, 33, 20, 31, 277, 411, 6637, 77, 1179, 18, 2469, 31, 277, 27245, 288, 540, 202, 202, 1841, 3291, 1794, 273, 6637, 77, 1179, 63, 77, 8009, 588, 1841, 3291, 5621, 7734, 202, 202, 659, 18, 8222, 2932, 1841, 294, 315, 397, 1794, 18, 588, 3834, 1435, 397, 315, 300, 315, 397, 3287, 18, 1188, 1841, 1119, 12, 4652, 18, 588, 1119, 1435, 10019, 540, 202, 202, 1884, 12, 474, 525, 273, 374, 31, 525, 411, 1794, 18, 588, 8053, 7675, 2469, 31, 525, 27245, 288, 540, 1082, 202, 7787, 3291, 6957, 2 ]
.equals(codeAnalyzer.getParamInfo(0))) && !codeAnalyzer.getMethod().isStatic());
.equals(codeAnalyzer.getParamInfo(0))));
public void dumpExpression(TabbedPrintWriter writer, Expression[] operands) throws java.io.IOException { boolean opIsThis = (!staticFlag && operands[0] instanceof LocalLoadOperator && (((LocalLoadOperator) operands[0]).getLocalInfo() .equals(codeAnalyzer.getParamInfo(0))) && !codeAnalyzer.getMethod().isStatic()); int arg = 1; if (specialFlag) { if (opIsThis) { if (isThis()) { /* XXX check if this is a private or final method. */ } else { /* XXX check that this is the first defined * super method. */ writer.print("super"); opIsThis = false; } } else { /* XXX check if this is a private or final method. */ if (!isThis()) { writer.print("(NON VIRTUAL "); writer.printType(clazz); writer.print(")"); } operands[0].dumpExpression(writer, 950); } } else if (staticFlag) { arg = 0; if (!isThis()) writer.printType(clazz); } else { if (!opIsThis) { int minPriority = 950; /* field access */ if (operands[0].getType() instanceof NullType) { writer.print("("); writer.printType(clazz); writer.print(") "); minPriority = 700; } operands[0].dumpExpression(writer, minPriority); } } if (isConstructor()) { if (opIsThis) writer.print("this"); } else { if (!opIsThis) writer.print("."); writer.print(methodName); } writer.print("("); for (int i=0; i < methodType.getParameterTypes().length; i++) { if (i>0) writer.print(", "); operands[arg++].dumpExpression(writer, 0); } writer.print(")"); }
5628 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5628/542ba65cd286b19d6adb0f695c66a9cd08028b40/InvokeOperator.java/clean/jode/jode/expr/InvokeOperator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4657, 2300, 12, 5661, 2992, 5108, 2289, 2633, 16, 4697, 4202, 5371, 8526, 14883, 13, 225, 202, 15069, 2252, 18, 1594, 18, 14106, 288, 202, 6494, 1061, 2520, 2503, 273, 3196, 565, 16051, 3845, 4678, 202, 377, 597, 14883, 63, 20, 65, 1276, 3566, 2563, 5592, 202, 377, 597, 261, 12443, 2042, 2563, 5592, 13, 14883, 63, 20, 65, 2934, 588, 2042, 966, 1435, 1082, 263, 14963, 12, 710, 12803, 18, 588, 786, 966, 12, 20, 20349, 202, 377, 597, 401, 710, 12803, 18, 588, 1305, 7675, 291, 5788, 10663, 3639, 509, 1501, 273, 404, 31, 202, 430, 261, 9371, 4678, 13, 288, 202, 565, 309, 261, 556, 2520, 2503, 13, 288, 202, 202, 430, 261, 291, 2503, 10756, 288, 1082, 565, 1748, 11329, 866, 309, 333, 353, 279, 3238, 578, 727, 707, 18, 1195, 202, 202, 97, 469, 288, 1082, 565, 1748, 11329, 866, 716, 333, 353, 326, 1122, 2553, 1082, 377, 380, 2240, 707, 18, 1195, 1082, 565, 2633, 18, 1188, 2932, 9565, 8863, 1082, 565, 1061, 2520, 2503, 273, 629, 31, 202, 202, 97, 202, 565, 289, 469, 288, 202, 202, 20308, 11329, 866, 309, 333, 353, 279, 3238, 578, 727, 707, 18, 1195, 202, 202, 430, 16051, 291, 2503, 10756, 288, 1082, 565, 2633, 18, 1188, 2932, 12, 3993, 776, 7937, 56, 14235, 315, 1769, 1082, 565, 2633, 18, 1188, 559, 12, 830, 3638, 1769, 1082, 565, 2633, 18, 1188, 2932, 2225, 1769, 202, 202, 97, 202, 202, 4063, 5708, 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, 4657, 2300, 12, 5661, 2992, 5108, 2289, 2633, 16, 4697, 4202, 5371, 8526, 14883, 13, 225, 202, 15069, 2252, 18, 1594, 18, 14106, 288, 202, 6494, 1061, 2520, 2503, 273, 3196, 565, 16051, 3845, 4678, 202, 377, 597, 14883, 63, 20, 65, 1276, 3566, 2563, 5592, 202, 377, 597, 261, 12443, 2042, 2563, 5592, 13, 14883, 63, 20, 65, 2934, 588, 2042, 966, 1435, 1082, 263, 14963, 12, 710, 12803, 18, 588, 786, 966, 12, 20, 20349, 202, 377, 597, 401, 710, 12803, 18, 588, 1305, 7675, 291, 5788, 10663, 3639, 509, 1501, 273, 404, 31, 202, 430, 261, 9371, 4678, 13, 288, 202, 565, 309, 261, 556, 2520, 2503, 13, 288, 202, 202, 430, 261, 2 ]
}
}
public void mouseReleased(MouseEvent event) { }
45951 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45951/50df1d979f88c47f6fab2ffb5574f58d891cbc9b/ConfigureGUI.java/buggy/tools/configure/src/java/org/apache/lenya/config/impl/ConfigureGUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 7644, 26363, 12, 9186, 1133, 871, 13, 288, 1082, 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, 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, 1875, 202, 482, 918, 7644, 26363, 12, 9186, 1133, 871, 13, 288, 1082, 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, -100, -100, -100, -100 ]
WindowsTimeZoneInformation tzwin = WindowsTZUtils.ICalToWindows(tz);
private static void encodeTimeZoneMap(Element parent, TimeZoneMap tzmap) { assert(tzmap != null); for (Iterator iter = tzmap.tzIterator(); iter.hasNext(); ) { ICalTimeZone tz = (ICalTimeZone) iter.next(); WindowsTimeZoneInformation tzwin = WindowsTZUtils.ICalToWindows(tz); Element e = parent.addElement(MailService.E_APPT_TZ); e.addAttribute(MailService.A_ID, tzwin.getName()); e.addAttribute(MailService.A_APPT_TZ_STDOFFSET, tzwin.getStandardOffset() / 60 / 1000); if (tz.useDaylightTime()) { e.addAttribute(MailService.A_APPT_TZ_DAYOFFSET, tzwin.getDaylightOffset() / 60 / 1000); int week; WindowsSystemTime stddate = tzwin.getStandardDate(); assert(stddate != null); Element std = e.addElement(MailService.E_APPT_TZ_STANDARD); week = stddate.getDay(); if (week == 5) week = -1; std.addAttribute(MailService.A_APPT_TZ_WEEK, week); std.addAttribute(MailService.A_APPT_TZ_DAYOFWEEK, stddate.getDayOfWeek()); std.addAttribute(MailService.A_APPT_TZ_MONTH, stddate.getMonth()); std.addAttribute(MailService.A_APPT_TZ_HOUR, stddate.getHour()); std.addAttribute(MailService.A_APPT_TZ_MINUTE, stddate.getMinute()); std.addAttribute(MailService.A_APPT_TZ_SECOND, stddate.getSecond()); WindowsSystemTime daydate = tzwin.getDaylightDate(); assert(daydate != null); Element day = e.addElement(MailService.E_APPT_TZ_DAYLIGHT); week = daydate.getDay(); if (week == 5) week = -1; day.addAttribute(MailService.A_APPT_TZ_WEEK, week); day.addAttribute(MailService.A_APPT_TZ_DAYOFWEEK, daydate.getDayOfWeek()); day.addAttribute(MailService.A_APPT_TZ_MONTH, daydate.getMonth()); day.addAttribute(MailService.A_APPT_TZ_HOUR, daydate.getHour()); day.addAttribute(MailService.A_APPT_TZ_MINUTE, daydate.getMinute()); day.addAttribute(MailService.A_APPT_TZ_SECOND, daydate.getSecond()); } } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/844887a0c60949905d58cb7029f32af020c4f7cc/ToXML.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/mail/ToXML.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 2017, 16760, 863, 12, 1046, 982, 16, 16491, 863, 6016, 1458, 13, 288, 3639, 1815, 12, 12994, 1458, 480, 446, 1769, 3639, 364, 261, 3198, 1400, 273, 6016, 1458, 18, 12994, 3198, 5621, 1400, 18, 5332, 2134, 5621, 262, 288, 5411, 467, 3005, 16760, 6016, 273, 261, 2871, 287, 16760, 13, 1400, 18, 4285, 5621, 15604, 3010, 425, 273, 982, 18, 1289, 1046, 12, 6759, 1179, 18, 41, 67, 2203, 1856, 67, 21647, 1769, 5411, 425, 18, 1289, 1499, 12, 6759, 1179, 18, 37, 67, 734, 16, 6016, 8082, 18, 17994, 10663, 5411, 425, 18, 1289, 1499, 12, 6759, 1179, 18, 37, 67, 2203, 1856, 67, 21647, 67, 882, 3191, 2246, 4043, 16, 6016, 8082, 18, 588, 8336, 2335, 1435, 342, 4752, 342, 4336, 1769, 5411, 309, 261, 12994, 18, 1202, 4245, 5099, 950, 10756, 288, 7734, 425, 18, 1289, 1499, 12, 6759, 1179, 18, 37, 67, 2203, 1856, 67, 21647, 67, 10339, 11271, 16, 6016, 8082, 18, 588, 4245, 5099, 2335, 1435, 342, 4752, 342, 4336, 1769, 7734, 509, 4860, 31, 7734, 8202, 3163, 950, 384, 449, 340, 273, 6016, 8082, 18, 588, 8336, 1626, 5621, 7734, 1815, 12, 334, 449, 340, 480, 446, 1769, 7734, 3010, 2044, 273, 425, 18, 1289, 1046, 12, 6759, 1179, 18, 41, 67, 2203, 1856, 67, 21647, 67, 882, 18264, 1769, 7734, 4860, 273, 384, 449, 340, 18, 588, 4245, 5621, 7734, 309, 261, 10741, 422, 1381, 13, 4860, 273, 300, 21, 31, 7734, 2044, 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, 760, 918, 2017, 16760, 863, 12, 1046, 982, 16, 16491, 863, 6016, 1458, 13, 288, 3639, 1815, 12, 12994, 1458, 480, 446, 1769, 3639, 364, 261, 3198, 1400, 273, 6016, 1458, 18, 12994, 3198, 5621, 1400, 18, 5332, 2134, 5621, 262, 288, 5411, 467, 3005, 16760, 6016, 273, 261, 2871, 287, 16760, 13, 1400, 18, 4285, 5621, 15604, 3010, 425, 273, 982, 18, 1289, 1046, 12, 6759, 1179, 18, 41, 67, 2203, 1856, 67, 21647, 1769, 5411, 425, 18, 1289, 1499, 12, 6759, 1179, 18, 37, 67, 734, 16, 6016, 8082, 18, 17994, 10663, 5411, 425, 18, 1289, 1499, 12, 6759, 1179, 18, 37, 67, 2203, 1856, 67, 21647, 67, 882, 3191, 2246, 4043, 16, 6016, 8082, 2 ]
void attachTo(ContextFactory factory) {
public void attachTo(ContextFactory factory) { detach();
void attachTo(ContextFactory factory) { this.contextFactory = factory; factory.addListener(new DimIProxy(this, IPROXY_LISTEN)); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/2d4fc75b74d717c754829dde488ff0a7456682cc/Dim.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 3306, 774, 12, 29871, 3272, 13, 565, 288, 3639, 333, 18, 2472, 1733, 273, 3272, 31, 3639, 3272, 18, 1289, 2223, 12, 2704, 463, 381, 45, 3886, 12, 2211, 16, 2971, 1457, 8546, 67, 7085, 1157, 10019, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 3306, 774, 12, 29871, 3272, 13, 565, 288, 3639, 333, 18, 2472, 1733, 273, 3272, 31, 3639, 3272, 18, 1289, 2223, 12, 2704, 463, 381, 45, 3886, 12, 2211, 16, 2971, 1457, 8546, 67, 7085, 1157, 10019, 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 ]