rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
CompilationUnitDeclaration compilationUnitDeclaration =CodeSnippetParsingUtil.parseCompilationUnit(source.toCharArray(), this.options);
CompilationUnitDeclaration compilationUnitDeclaration = this.codeSnippetParsingUtil.parseCompilationUnit(source.toCharArray(), this.options, true);
private TextEdit formatCompilationUnit(String source, int indentationLevel, String lineSeparator, int offset, int length) { CompilationUnitDeclaration compilationUnitDeclaration =CodeSnippetParsingUtil.parseCompilationUnit(source.toCharArray(), this.options); if (lineSeparator != null) { this.preferences.line_separator = lineSeparator; } else { this.preferences.line_separator = System.getProperty("line.separator"); //$NON-NLS-1$ } this.preferences.initial_indentation_level = indentationLevel; this.newCodeFormatter = new CodeFormatterVisitor(this.preferences, options, offset, length); return this.newCodeFormatter.format(source, compilationUnitDeclaration); }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/55eb63b50ad4a934502bfb435a017ff21ebaf8d8/DefaultCodeFormatter.java/buggy/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3867, 4666, 740, 19184, 2802, 12, 780, 1084, 16, 509, 12018, 2355, 16, 514, 31053, 16, 509, 1384, 16, 509, 769, 13, 288, 202, 202, 19184, 2802, 6094, 8916, 2802, 6094, 273, 1085, 19614, 13963, 1304, 18, 2670, 19184, 2802, 12, 3168, 18, 869, 15936, 9334, 333, 18, 2116, 1769, 9506, 202, 430, 261, 1369, 6581, 480, 446, 13, 288, 1082, 202, 2211, 18, 23219, 18, 1369, 67, 11287, 273, 31053, 31, 202, 202, 97, 469, 288, 1082, 202, 2211, 18, 23219, 18, 1369, 67, 11287, 273, 2332, 18, 588, 1396, 2932, 1369, 18, 11287, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 202, 202, 2211, 18, 23219, 18, 6769, 67, 9355, 367, 67, 2815, 273, 12018, 2355, 31, 202, 202, 2211, 18, 2704, 1085, 5074, 273, 394, 3356, 5074, 7413, 12, 2211, 18, 23219, 16, 702, 16, 1384, 16, 769, 1769, 9506, 202, 2463, 333, 18, 2704, 1085, 5074, 18, 2139, 12, 3168, 16, 8916, 2802, 6094, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3867, 4666, 740, 19184, 2802, 12, 780, 1084, 16, 509, 12018, 2355, 16, 514, 31053, 16, 509, 1384, 16, 509, 769, 13, 288, 202, 202, 19184, 2802, 6094, 8916, 2802, 6094, 273, 1085, 19614, 13963, 1304, 18, 2670, 19184, 2802, 12, 3168, 18, 869, 15936, 9334, 333, 18, 2116, 1769, 9506, 202, 430, 261, 1369, 6581, 480, 446, 13, 288, 1082, 202, 2211, 18, 23219, 18, 1369, 67, 11287, 273, 31053, 31, 202, 202, 97, 469, 288, 1082, 202, 2211, 18, 23219, 18, 1369, 67, 11287, 273, 2332, 18, 588, 1396, 2932, 1369, 18, 11287, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 202, 202, 2211, 18, 23219, 18, 6769, 67, 9355, 367, 2 ]
return getField(column).getTypeName();
return getField(column).getPGType();
public String getColumnTypeName(int column) throws SQLException { return getField(column).getTypeName(); }
46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/76a6da8a1b01e23091da65f5e167d67f5274d740/ResultSetMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSetMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 6716, 7947, 12, 474, 1057, 13, 1216, 6483, 225, 288, 565, 327, 5031, 12, 2827, 2934, 588, 18679, 559, 5621, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 282, 1071, 514, 6716, 7947, 12, 474, 1057, 13, 1216, 6483, 225, 288, 565, 327, 5031, 12, 2827, 2934, 588, 18679, 559, 5621, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Collection propertyNames = registry.getRegisteredProperties();
Collection<String> propertyNames = registry.getRegisteredProperties();
private void dumpComponentAsGDL(PrintStream out, String name) { out.println("node: {title: \"" + name + "\" color: " + getColor(name) + "}"); Symbol symbol = symbolTable.get(name); Registry registry = symbol.getRegistry(); Collection propertyNames = registry.getRegisteredProperties(); PropertySheet properties = symbol.getPropertySheet(); for (Iterator i = propertyNames.iterator(); i.hasNext();) { String propName = (String) i.next(); PropertyType type = registry.lookup(propName); try { Object val = properties.getRaw(propName); if (val != null) { if (type == PropertyType.COMPONENT) { out.println("edge: {source: \"" + name + "\" target: \"" + val + "\"}"); } else if (type == PropertyType.COMPONENT_LIST) { List list = (List) val; for (Iterator j = list.iterator(); j.hasNext();) { Object dest = j.next(); out.println("edge: {source: \"" + name + "\" target: \"" + dest + "\"}"); } } } } catch (PropertyException e) { // nothing to do , its up to you } } }
8350 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8350/b7df0fb908231f812bb7c5876ed27d105ced7c2b/ConfigurationManager.java/buggy/src/sphinx4/edu/cmu/sphinx/util/props/ConfigurationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4657, 1841, 1463, 43, 8914, 12, 5108, 1228, 596, 16, 514, 508, 13, 288, 3639, 596, 18, 8222, 2932, 2159, 30, 288, 2649, 30, 11843, 397, 508, 397, 7023, 2036, 30, 315, 397, 15672, 12, 529, 13, 7734, 397, 11883, 1769, 3639, 8565, 3273, 273, 26086, 18, 588, 12, 529, 1769, 3639, 5438, 4023, 273, 3273, 18, 588, 4243, 5621, 3639, 2200, 32, 780, 34, 26570, 273, 4023, 18, 588, 10868, 2297, 5621, 3639, 4276, 8229, 1790, 273, 3273, 18, 588, 1396, 8229, 5621, 3639, 364, 261, 3198, 277, 273, 26570, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 5411, 514, 9994, 273, 261, 780, 13, 277, 18, 4285, 5621, 5411, 22983, 618, 273, 4023, 18, 8664, 12, 5986, 461, 1769, 5411, 775, 288, 7734, 1033, 1244, 273, 1790, 18, 588, 4809, 12, 5986, 461, 1769, 7734, 309, 261, 1125, 480, 446, 13, 288, 10792, 309, 261, 723, 422, 22983, 18, 22922, 13, 288, 13491, 596, 18, 8222, 2932, 7126, 30, 288, 3168, 30, 11843, 397, 508, 27573, 397, 7023, 1018, 30, 11843, 397, 1244, 397, 7023, 1532, 1769, 10792, 289, 469, 309, 261, 723, 422, 22983, 18, 22922, 67, 7085, 13, 288, 13491, 987, 666, 273, 261, 682, 13, 1244, 31, 13491, 364, 261, 3198, 525, 273, 666, 18, 9838, 5621, 525, 18, 5332, 2134, 5621, 13, 288, 18701, 1033, 1570, 273, 525, 18, 4285, 5621, 18701, 596, 18, 8222, 2932, 7126, 30, 288, 3168, 30, 11843, 397, 508, 4766, 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, 377, 3238, 918, 4657, 1841, 1463, 43, 8914, 12, 5108, 1228, 596, 16, 514, 508, 13, 288, 3639, 596, 18, 8222, 2932, 2159, 30, 288, 2649, 30, 11843, 397, 508, 397, 7023, 2036, 30, 315, 397, 15672, 12, 529, 13, 7734, 397, 11883, 1769, 3639, 8565, 3273, 273, 26086, 18, 588, 12, 529, 1769, 3639, 5438, 4023, 273, 3273, 18, 588, 4243, 5621, 3639, 2200, 32, 780, 34, 26570, 273, 4023, 18, 588, 10868, 2297, 5621, 3639, 4276, 8229, 1790, 273, 3273, 18, 588, 1396, 8229, 5621, 3639, 364, 261, 3198, 277, 273, 26570, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 5411, 514, 9994, 273, 261, 780, 13, 277, 18, 4285, 5621, 5411, 22983, 618, 273, 2 ]
if (jj_scan_token(EXTENDS)) return true; if (jj_3R_172()) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_316()) { jj_scanpos = xsp; break; } }
if (jj_3R_195()) return true;
final private boolean jj_3R_157() { if (jj_scan_token(EXTENDS)) return true; if (jj_3R_172()) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_316()) { jj_scanpos = xsp; break; } } return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/a180e9b19197c7613f1e73c6ec8a574a17011e5e/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, 27985, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 4142, 1157, 3948, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 28406, 10756, 327, 638, 31, 565, 3155, 619, 1752, 31, 565, 1323, 261, 3767, 13, 288, 1377, 619, 1752, 273, 10684, 67, 9871, 917, 31, 1377, 309, 261, 78, 78, 67, 23, 54, 67, 23, 2313, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 898, 31, 289, 565, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 27985, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 4142, 1157, 3948, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 28406, 10756, 327, 638, 31, 565, 3155, 619, 1752, 31, 565, 1323, 261, 3767, 13, 288, 1377, 619, 1752, 273, 10684, 67, 9871, 917, 31, 1377, 309, 261, 78, 78, 67, 23, 54, 67, 23, 2313, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 898, 31, 289, 565, 289, 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 ]
desc.setDemux(myDispatcher);
desc.setContainer(this);
private void initDF() { System.out.print("Starting Default DF... "); defaultDF = new df(); // Subscribe as a listener for the AMS agent defaultDF.addCommListener(this); // Insert DF into local agents table localAgents.put("df", defaultDF); AgentDescriptor desc = new AgentDescriptor(); desc.setDemux(myDispatcher); platformAgents.put("df", desc); System.out.println("DF OK"); }
5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/b3c47bde84f6882585b3d94c8b02ad8aec7de8cb/AgentPlatformImpl.java/clean/src/jade/core/AgentPlatformImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 4577, 1435, 288, 565, 2332, 18, 659, 18, 1188, 2932, 11715, 2989, 463, 42, 2777, 315, 1769, 565, 805, 4577, 273, 394, 3013, 5621, 565, 368, 18014, 487, 279, 2991, 364, 326, 432, 3537, 4040, 565, 805, 4577, 18, 1289, 12136, 2223, 12, 2211, 1769, 565, 368, 8040, 463, 42, 1368, 1191, 16423, 1014, 565, 1191, 23400, 18, 458, 2932, 2180, 3113, 805, 4577, 1769, 565, 8669, 3187, 3044, 273, 394, 8669, 3187, 5621, 565, 3044, 18, 542, 2170, 12, 2211, 1769, 565, 4072, 23400, 18, 458, 2932, 2180, 3113, 3044, 1769, 565, 2332, 18, 659, 18, 8222, 2932, 4577, 7791, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1208, 4577, 1435, 288, 565, 2332, 18, 659, 18, 1188, 2932, 11715, 2989, 463, 42, 2777, 315, 1769, 565, 805, 4577, 273, 394, 3013, 5621, 565, 368, 18014, 487, 279, 2991, 364, 326, 432, 3537, 4040, 565, 805, 4577, 18, 1289, 12136, 2223, 12, 2211, 1769, 565, 368, 8040, 463, 42, 1368, 1191, 16423, 1014, 565, 1191, 23400, 18, 458, 2932, 2180, 3113, 805, 4577, 1769, 565, 8669, 3187, 3044, 273, 394, 8669, 3187, 5621, 565, 3044, 18, 542, 2170, 12, 2211, 1769, 565, 4072, 23400, 18, 458, 2932, 2180, 3113, 3044, 1769, 565, 2332, 18, 659, 18, 8222, 2932, 4577, 7791, 8863, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (score > bestScore) { bestTree = tree; bestScore = score; } } if (counter > 0 && counter % stepSize == 0) { System.out.print("*"); System.out.flush(); } counter ++; } } catch (Importer.ImportException e) { System.err.println("Error Parsing Input Tree: " + e.getMessage()); return null; } System.out.println(); System.out.println(); System.out.println("Best Sum Clade Support: " + bestScore);
if (score > bestScore) { bestTree = tree; bestScore = score; } } if (counter > 0 && counter % stepSize == 0) { System.out.print("*"); System.out.flush(); } counter ++; } } catch (Importer.ImportException e) { System.err.println("Error Parsing Input Tree: " + e.getMessage()); return null; } System.out.println(); System.out.println(); System.out.println("Best Sum Clade Support: " + bestScore);
private Tree summarizeTrees(int burnin, CladeSystem cladeSystem, String inputFileName) throws IOException { Tree bestTree = null; double bestScore = 0.0; System.out.println("Analyzing " + totalTreesUsed + " trees..."); System.out.println("0 25 50 75 100"); System.out.println("|--------------|--------------|--------------|--------------|"); int stepSize = totalTrees / 60; int counter = 0; TreeImporter importer = new NexusImporter(new FileReader(inputFileName)); try { while (importer.hasTree()) { Tree tree = importer.importNextTree(); if (counter >= burnin) { double score = scoreTree(tree, cladeSystem);// System.out.println(score); if (score > bestScore) { bestTree = tree; bestScore = score; } } if (counter > 0 && counter % stepSize == 0) { System.out.print("*"); System.out.flush(); } counter ++; } } catch (Importer.ImportException e) { System.err.println("Error Parsing Input Tree: " + e.getMessage()); return null; } System.out.println(); System.out.println(); System.out.println("Best Sum Clade Support: " + bestScore); return bestTree; }
49053 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49053/77b1ece5c4a9000c1b01251fdcf1239b7c2eb443/TreeAnnotator.java/buggy/trunk/src/dr/app/tools/TreeAnnotator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4902, 28712, 26590, 12, 474, 18305, 267, 16, 3905, 2486, 3163, 927, 2486, 3163, 16, 514, 810, 4771, 13, 1216, 1860, 288, 3639, 4902, 3796, 2471, 273, 446, 31, 3639, 1645, 3796, 7295, 273, 374, 18, 20, 31, 3639, 2332, 18, 659, 18, 8222, 2932, 979, 4647, 310, 315, 397, 2078, 26590, 6668, 397, 315, 11491, 7070, 1769, 3639, 2332, 18, 659, 18, 8222, 2932, 20, 2868, 6969, 2398, 6437, 2398, 18821, 5411, 2130, 8863, 3639, 2332, 18, 659, 18, 8222, 2932, 96, 17908, 96, 17908, 96, 17908, 96, 17908, 96, 8863, 3639, 509, 2235, 1225, 273, 2078, 26590, 342, 4752, 31, 3639, 509, 3895, 273, 374, 31, 3639, 4902, 21927, 15198, 273, 394, 423, 21029, 21927, 12, 2704, 23010, 12, 2630, 4771, 10019, 3639, 775, 288, 5411, 1323, 261, 381, 7988, 18, 5332, 2471, 10756, 288, 7734, 4902, 2151, 273, 15198, 18, 5666, 2134, 2471, 5621, 7734, 309, 261, 7476, 1545, 18305, 267, 13, 288, 10792, 1645, 4462, 273, 4462, 2471, 12, 3413, 16, 927, 2486, 3163, 1769, 759, 10792, 2332, 18, 659, 18, 8222, 12, 6355, 1769, 10792, 309, 261, 6355, 405, 3796, 7295, 13, 288, 13491, 3796, 2471, 273, 2151, 31, 13491, 3796, 7295, 273, 4462, 31, 10792, 289, 7734, 289, 7734, 309, 261, 7476, 405, 374, 597, 3895, 738, 2235, 1225, 422, 374, 13, 288, 10792, 2332, 18, 659, 18, 1188, 2932, 7388, 1769, 10792, 2332, 18, 659, 18, 11330, 5621, 7734, 289, 7734, 3895, 965, 31, 5411, 289, 3639, 289, 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, 4902, 28712, 26590, 12, 474, 18305, 267, 16, 3905, 2486, 3163, 927, 2486, 3163, 16, 514, 810, 4771, 13, 1216, 1860, 288, 3639, 4902, 3796, 2471, 273, 446, 31, 3639, 1645, 3796, 7295, 273, 374, 18, 20, 31, 3639, 2332, 18, 659, 18, 8222, 2932, 979, 4647, 310, 315, 397, 2078, 26590, 6668, 397, 315, 11491, 7070, 1769, 3639, 2332, 18, 659, 18, 8222, 2932, 20, 2868, 6969, 2398, 6437, 2398, 18821, 5411, 2130, 8863, 3639, 2332, 18, 659, 18, 8222, 2932, 96, 17908, 96, 17908, 96, 17908, 96, 17908, 96, 8863, 3639, 509, 2235, 1225, 273, 2078, 26590, 342, 4752, 31, 3639, 509, 3895, 273, 374, 31, 3639, 4902, 21927, 15198, 273, 394, 423, 21029, 21927, 2 ]
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 100: ResultType ::= void // case 100: { //#line 675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 101: FormalParameterList ::= LastFormalParameter // case 101: { //#line 695 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 102: FormalParameterList ::= FormalParameters , LastFormalParameter // case 102: { //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 103: FormalParameters ::= FormalParameter // case 103: { //#line 709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 711 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 104: FormalParameters ::= FormalParameters , FormalParameter // case 104: { //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 105: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 105: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 107: VariableModifiers ::= VariableModifiers VariableModifier // case 107: { //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 735 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 108: VariableModifier ::= final // case 108: { //#line 741 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 109: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 109: { //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 749 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 111: MethodModifiers ::= MethodModifiers MethodModifier // case 111: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 112: MethodModifier ::= public // case 112: { //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 113: MethodModifier ::= protected // case 113: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 114: MethodModifier ::= private // case 114: { //#line 781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 115: MethodModifier ::= abstract // case 115: { //#line 786 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 116: MethodModifier ::= static // case 116: { //#line 791 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 117: MethodModifier ::= final // case 117: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 118: MethodModifier ::= native // case 118: { //#line 806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 119: MethodModifier ::= strictfp // case 119: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 120: Throws ::= throws ExceptionTypeList // case 120: { //#line 815 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 817 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 121: ExceptionTypeList ::= ExceptionType // case 121: { //#line 821 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 823 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 122: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 122: { //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 830 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 125: MethodBody ::= ; // case 125: setResult(null); break; // // Rule 127: StaticInitializer ::= static Block // case 127: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 128: SimpleTypeName ::= identifier // case 128: { //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 869 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 130: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 130: { //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 876 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 131: ConstructorModifier ::= public // case 131: { //#line 884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 132: ConstructorModifier ::= protected // case 132: { //#line 889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 133: ConstructorModifier ::= private // case 133: { //#line 894 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 134: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 134: { //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 900 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; l = new TypedList(new LinkedList(), Stmt.class, false); if (ExplicitConstructorInvocationopt == null) { l.add(nf.SuperCall(pos(), Collections.EMPTY_LIST)); } else { l.add(ExplicitConstructorInvocationopt); } l.addAll(BlockStatementsopt); setResult(nf.Block(pos(), l)); break; } // // Rule 135: Arguments ::= ( ArgumentListopt ) // case 135: { //#line 933 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 935 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 138: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 138: { //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 139: InterfaceModifier ::= public // case 139: { //#line 961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 140: InterfaceModifier ::= protected // case 140: { //#line 966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 141: InterfaceModifier ::= private // case 141: { //#line 971 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 142: InterfaceModifier ::= abstract // case 142: { //#line 976 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 143: InterfaceModifier ::= static // case 143: { //#line 981 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 144: InterfaceModifier ::= strictfp // case 144: { //#line 986 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 145: ExtendsInterfaces ::= extends InterfaceType // case 145: { //#line 990 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 146: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 146: { //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 999 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 147: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 147: { //#line 1009 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 149: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 149: { //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1018 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 151: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 151: { //#line 1024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1026 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= ClassDeclaration // case 152: { //#line 1031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1033 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 153: { //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= ; // case 154: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 155: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 155: { //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 157: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 157: { //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1073 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 158: ConstantModifier ::= public // case 158: { //#line 1081 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 159: ConstantModifier ::= static // case 159: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 160: ConstantModifier ::= final // case 160: { //#line 1091 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 162: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 162: { //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 163: AbstractMethodModifier ::= public // case 163: { //#line 1108 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 164: AbstractMethodModifier ::= abstract // case 164: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 165: SimpleName ::= identifier // case 165: { //#line 1169 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 166: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 166: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 167: VariableInitializers ::= VariableInitializer // case 167: { //#line 1206 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 168: VariableInitializers ::= VariableInitializers , VariableInitializer // case 168: { //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 169: Block ::= { BlockStatementsopt } // case 169: { //#line 1234 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 170: BlockStatements ::= BlockStatement // case 170: { //#line 1240 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1242 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 171: BlockStatements ::= BlockStatements BlockStatement // case 171: { //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1249 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 173: BlockStatement ::= ClassDeclaration // case 173: { //#line 1255 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 174: BlockStatement ::= Statement // case 174: { //#line 1262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 176: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 176: { //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1274 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 200: IfThenStatement ::= if ( Expression ) Statement // case 200: { //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 201: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 201: { //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1343 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 202: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 202: { //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 203: EmptyStatement ::= ; // case 203: { //#line 1355 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 204: LabeledStatement ::= identifier : Statement // case 204: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1361 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 205: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 205: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 206: ExpressionStatement ::= StatementExpression ; // case 206: { //#line 1370 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1372 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 214: AssertStatement ::= assert Expression ; // case 214: { //#line 1393 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1395 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 215: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 215: { //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1400 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 216: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 216: { //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 217: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 217: { //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 219: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 219: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 220: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 220: { //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1427 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 221: SwitchLabels ::= SwitchLabel // case 221: { //#line 1434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1436 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabels SwitchLabel // case 222: { //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1443 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 223: SwitchLabel ::= case ConstantExpression : // case 223: { //#line 1448 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1450 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 224: SwitchLabel ::= default : // case 224: { //#line 1457 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 225: WhileStatement ::= while ( Expression ) Statement // case 225: { //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 226: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 226: { //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1472 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 227: DoStatement ::= do Statement while ( Expression ) ; // case 227: { //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1478 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 230: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 230: { //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1487 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 231: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 231: { //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1493 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 233: ForInit ::= LocalVariableDeclaration // case 233: { //#line 1498 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 235: StatementExpressionList ::= StatementExpression // case 235: { //#line 1508 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1510 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 236: { //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 237: BreakStatement ::= break identifieropt ; // case 237: { //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1527 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 238: ContinueStatement ::= continue identifieropt ; // case 238: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 239: ReturnStatement ::= return Expressionopt ; // case 239: { //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1543 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 240: ThrowStatement ::= throw Expression ; // case 240: { //#line 1547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 241: TryStatement ::= try Block Catches // case 241: { //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1561 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 242: TryStatement ::= try Block Catchesopt Finally // case 242: { //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1566 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 243: Catches ::= CatchClause // case 243: { //#line 1570 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1572 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 244: Catches ::= Catches CatchClause // case 244: { //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1579 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 245: CatchClause ::= catch ( FormalParameter ) Block // case 245: { //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 246: Finally ::= finally Block // case 246: { //#line 1590 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1592 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 250: PrimaryNoNewArray ::= Type . class // case 250: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 251: PrimaryNoNewArray ::= void . class // case 251: { //#line 1631 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 252: PrimaryNoNewArray ::= this // case 252: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 253: PrimaryNoNewArray ::= ClassName . this // case 253: { //#line 1640 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1642 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 254: PrimaryNoNewArray ::= ( Expression ) // case 254: { //#line 1645 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1647 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 259: Literal ::= IntegerLiteral$IntegerLiteral // case 259: { //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1657 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 260: Literal ::= LongLiteral$LongLiteral // case 260: { //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1663 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 261: Literal ::= FloatingPointLiteral$FloatLiteral // case 261: { //#line 1667 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1669 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 262: Literal ::= DoubleLiteral$DoubleLiteral // case 262: { //#line 1673 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 263: Literal ::= BooleanLiteral // case 263: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 264: Literal ::= CharacterLiteral$CharacterLiteral // case 264: { //#line 1684 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 265: Literal ::= StringLiteral$str // case 265: { //#line 1690 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1692 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 266: Literal ::= null // case 266: { //#line 1698 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 267: BooleanLiteral ::= true$trueLiteral // case 267: { //#line 1702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 268: BooleanLiteral ::= false$falseLiteral // case 268: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: ArgumentList ::= Expression // case 269: { //#line 1722 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1724 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 270: ArgumentList ::= ArgumentList , Expression // case 270: { //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1731 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 271: DimExprs ::= DimExpr // case 271: { //#line 1765 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1767 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 272: DimExprs ::= DimExprs DimExpr // case 272: { //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1774 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 273: DimExpr ::= [ Expression ] // case 273: { //#line 1779 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 274: Dims ::= [ ] // case 274: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 275: Dims ::= Dims [ ] // case 275: { //#line 1790 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1792 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 276: FieldAccess ::= Primary . identifier // case 276: { //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 277: FieldAccess ::= super . identifier // case 277: { //#line 1801 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= ClassName . super$sup . identifier // case 278: { //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1808 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 279: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 279: { //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1814 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 281: PostfixExpression ::= ExpressionName // case 281: { //#line 1837 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1839 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 284: PostIncrementExpression ::= PostfixExpression ++ // case 284: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 285: PostDecrementExpression ::= PostfixExpression -- // case 285: { //#line 1851 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1853 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 288: UnaryExpression ::= + UnaryExpression // case 288: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 289: UnaryExpression ::= - UnaryExpression // case 289: { //#line 1864 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1866 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 291: PreIncrementExpression ::= ++ UnaryExpression // case 291: { //#line 1871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 292: PreDecrementExpression ::= -- UnaryExpression // case 292: { //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1879 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 294: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 294: { //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1886 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 295: { //#line 1889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1891 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 298: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 298: { //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1905 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 299: { //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1910 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 300: { //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 302: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 302: { //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 303: { //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1927 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 305: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 305: { //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1934 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 306: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 307: { //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1945 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 309: RelationalExpression ::= RelationalExpression < ShiftExpression // case 309: { //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression > ShiftExpression // case 310: { //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1958 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 311: { //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1963 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 312: { //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1968 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 314: EqualityExpression ::= EqualityExpression == RelationalExpression // case 314: { //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1984 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression != RelationalExpression // case 315: { //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1989 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 317: AndExpression ::= AndExpression & EqualityExpression // case 317: { //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1996 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 319: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 319: { //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 321: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 321: { //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2010 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 323: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 323: { //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 325: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 325: { //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 327: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 327: { //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 330: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 330: { //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 331: LeftHandSide ::= ExpressionName // case 331: { //#line 2044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2046 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 334: AssignmentOperator ::= = // case 334: { //#line 2054 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 335: AssignmentOperator ::= *= // case 335: { //#line 2059 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 336: AssignmentOperator ::= /= // case 336: { //#line 2064 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= %= // case 337: { //#line 2069 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= += // case 338: { //#line 2074 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= -= // case 339: { //#line 2079 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= <<= // case 340: { //#line 2084 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= > > = // case 341: { //#line 2089 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > > = // case 342: { //#line 2095 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= &= // case 343: { //#line 2101 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= ^= // case 344: { //#line 2106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= |= // case 345: { //#line 2111 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 348: Dimsopt ::= $Empty // case 348: { //#line 2124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 350: Catchesopt ::= $Empty // case 350: { //#line 2131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 352: identifieropt ::= $Empty // case 352: setResult(null); break; // // Rule 353: identifieropt ::= identifier // case 353: { //#line 2138 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2140 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 354: ForUpdateopt ::= $Empty // case 354: { //#line 2146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 356: Expressionopt ::= $Empty // case 356: setResult(null); break; // // Rule 358: ForInitopt ::= $Empty // case 358: { //#line 2157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 360: SwitchLabelsopt ::= $Empty // case 360: { //#line 2164 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 362: SwitchBlockStatementGroupsopt ::= $Empty // case 362: { //#line 2171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 364: VariableModifiersopt ::= $Empty // case 364: { //#line 2178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 366: VariableInitializersopt ::= $Empty // case 366: setResult(null); break; // // Rule 368: AbstractMethodModifiersopt ::= $Empty // case 368: { //#line 2208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 370: ConstantModifiersopt ::= $Empty // case 370: { //#line 2215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 372: InterfaceMemberDeclarationsopt ::= $Empty // case 372: { //#line 2222 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 374: ExtendsInterfacesopt ::= $Empty // case 374: { //#line 2229 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 376: InterfaceModifiersopt ::= $Empty // case 376: { //#line 2236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 378: ClassBodyopt ::= $Empty // case 378: setResult(null); break; // // Rule 380: Argumentsopt ::= $Empty // case 380: setResult(null); break; // // Rule 381: Argumentsopt ::= Arguments // case 381: throw new Error("No action specified for rule " + 381); // // Rule 382: ,opt ::= $Empty // case 382: setResult(null); break; // // Rule 384: ArgumentListopt ::= $Empty // case 384: { //#line 2266 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 386: BlockStatementsopt ::= $Empty // case 386: { //#line 2273 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 388: ExplicitConstructorInvocationopt ::= $Empty // case 388: setResult(null); break; // // Rule 390: ConstructorModifiersopt ::= $Empty // case 390: { //#line 2284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 392: ...opt ::= $Empty // case 392: setResult(null); break; // // Rule 394: FormalParameterListopt ::= $Empty // case 394: { //#line 2295 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 396: Throwsopt ::= $Empty // case 396: { //#line 2302 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 398: MethodModifiersopt ::= $Empty // case 398: { //#line 2309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 400: FieldModifiersopt ::= $Empty // case 400: { //#line 2316 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 402: ClassBodyDeclarationsopt ::= $Empty // case 402: { //#line 2323 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 404: Interfacesopt ::= $Empty // case 404: { //#line 2330 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 406: Superopt ::= $Empty // case 406: { //#line 2337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 408: ClassModifiersopt ::= $Empty // case 408: { //#line 2348 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 410: TypeDeclarationsopt ::= $Empty // case 410: { //#line 2360 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 412: ImportDeclarationsopt ::= $Empty // case 412: { //#line 2367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 414: PackageDeclarationopt ::= $Empty // case 414: setResult(null); break; // // Rule 416: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 416: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 417: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 734 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: PackageDeclaration ::= package PackageName ; // case 418: { //#line 740 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 742 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 419: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 419: { //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 748 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 421: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 421: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 422: X10ClassModifier ::= ClassModifier // case 422: { //#line 769 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 423: X10ClassModifier ::= safe // case 423: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 424: PropertyList ::= ( Properties WhereClauseopt ) // case 424: { //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 782 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 425: PropertyList ::= ( WhereClause ) // case 425: { //#line 787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 426: Properties ::= Property // case 426: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 427: Properties ::= Properties , Property // case 427: { //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 805 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 428: Property ::= Type identifier // case 428: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 813 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 429: MethodDeclaration ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt MethodBody // case 429: { //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(6); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, MethodBody)); break; } // // Rule 430: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 430: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 431: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 431: { //#line 855 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 857 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 432: { //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 862 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 433: { //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 434: { //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 435: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 435: { //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 890 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 436: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 436: { //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 437: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 930 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 439: { //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 440: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 440: { //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 441: { //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 949 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 443: AssignPropertyCall ::= property ( ArgumentList ) // case 443: { //#line 954 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 444: Type ::= DataType // case 444: { //#line 965 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 967 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 445: Type ::= nullable < Type > DepParametersopt // case 445: { //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 972 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 446: Type ::= future < Type > // case 446: { //#line 978 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 980 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 450: PrimitiveType ::= NumericType DepParametersopt // case 450: { //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 451: PrimitiveType ::= boolean DepParametersopt // case 451: { //#line 1003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1005 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 456: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 456: { //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 457: DepParameters ::= ( DepParameterExpr ) // case 457: { //#line 1036 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 458: DepParameterExpr ::= ArgumentList WhereClauseopt // case 458: { //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 459: DepParameterExpr ::= WhereClause // case 459: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1049 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 460: WhereClause ::= : ConstExpression // case 460: { //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1055 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 461: ConstPrimary ::= Literal // case 461: { //#line 1060 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1062 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 462: ConstPrimary ::= Type . class // case 462: { //#line 1065 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1067 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 463: ConstPrimary ::= void . class // case 463: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 464: ConstPrimary ::= this // case 464: { //#line 1092 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 465: ConstPrimary ::= here // case 465: { //#line 1097 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 466: ConstPrimary ::= ClassName . this // case 466: { //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1102 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 467: ConstPrimary ::= ( ConstExpression ) // case 467: { //#line 1105 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1107 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 469: ConstPrimary ::= self // case 469: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 470: ConstPostfixExpression ::= ConstPrimary // case 470: { //#line 1119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 471: ConstPostfixExpression ::= ExpressionName // case 471: { //#line 1124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 472: ConstUnaryExpression ::= ConstPostfixExpression // case 472: { //#line 1129 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 473: ConstUnaryExpression ::= + ConstUnaryExpression // case 473: { //#line 1134 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 474: ConstUnaryExpression ::= - ConstUnaryExpression // case 474: { //#line 1139 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= ! ConstUnaryExpression // case 475: { //#line 1144 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 476: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 476: { //#line 1150 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 477: { //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 478: { //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1162 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 479: { //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1167 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 480: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 480: { //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1173 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 481: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 481: { //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 482: { //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1183 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstRelationalExpression ::= ConstAdditiveExpression // case 483: { //#line 1188 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1190 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 484: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 484: { //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1195 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 485: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 486: { //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1205 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 487: { //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1210 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 488: ConstEqualityExpression ::= ConstRelationalExpression // case 488: { //#line 1214 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1216 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 489: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 489: { //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1221 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 490: { //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1226 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 491: ConstAndExpression ::= ConstEqualityExpression // case 491: { //#line 1230 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1232 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 492: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 492: { //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1237 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 493: ConstExclusiveOrExpression ::= ConstAndExpression // case 493: { //#line 1241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 494: { //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 495: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 495: { //#line 1252 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1254 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 496: { //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1259 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 497: ConstExpression ::= ConstInclusiveOrExpression // case 497: { //#line 1263 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1265 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 498: { //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1270 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 499: ConstFieldAccess ::= ConstPrimary . identifier // case 499: { //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 500: ConstFieldAccess ::= super . identifier // case 500: { //#line 1280 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= ClassName . super$sup . identifier // case 501: { //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1287 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 503: X10ArrayType ::= Type [ . ] // case 503: { //#line 1303 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1305 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 504: X10ArrayType ::= Type value [ . ] // case 504: { //#line 1308 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1310 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 505: X10ArrayType ::= Type [ DepParameterExpr ] // case 505: { //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1315 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 506: X10ArrayType ::= Type value [ DepParameterExpr ] // case 506: { //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1320 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 507: ObjectKind ::= value // case 507: throw new Error("No action specified for rule " + 507); // // Rule 508: ObjectKind ::= reference // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: MethodModifier ::= atomic // case 509: { //#line 1334 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 510: MethodModifier ::= extern // case 510: { //#line 1339 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 511: MethodModifier ::= safe // case 511: { //#line 1344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 512: MethodModifier ::= sequential // case 512: { //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 513: MethodModifier ::= local // case 513: { //#line 1354 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 514: MethodModifier ::= nonblocking // case 514: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 516: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 516: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1377 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 518: { //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 519: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 519: { //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 520: ThisClause ::= this DepParameters // case 520: { //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1408 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 521: Super ::= extends DataType // case 521: { //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 522: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 522: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 523: MethodDeclarator ::= MethodDeclarator [ ] // case 523: { //#line 1430 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1432 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 524: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 524: { //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1440 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 525: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 525: { //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 526: { //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1482 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 527: { //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1488 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 528: { //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1497 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 529: { //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 530: { //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1507 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 531: Valueopt ::= $Empty // case 531: setResult(null); break; // // Rule 532: Valueopt ::= value // case 532: { //#line 1516 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 535: ArrayBaseType ::= nullable < Type > // case 535: { //#line 1523 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 536: ArrayBaseType ::= future < Type > // case 536: { //#line 1528 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1530 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= ( Type ) // case 537: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 538: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 538: { //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 539: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 539: { //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1548 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 556: NowStatement ::= now ( Clock ) Statement // case 556: { //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1576 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 557: ClockedClause ::= clocked ( ClockList ) // case 557: { //#line 1580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1582 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 558: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 558: { //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 559: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 559: { //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1598 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 560: WhenStatement ::= when ( Expression ) Statement // case 560: { //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1607 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 561: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 561: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 562: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 562: { //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1619 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 563: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1629 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 564: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1639 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 565: FinishStatement ::= finish Statement // case 565: { //#line 1646 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 566: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 566: { //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 567: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 567: { //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 568: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 568: { //#line 1668 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1670 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 569: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 569: { //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1676 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 570: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 571: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 571: { //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1688 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 572: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1699 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 573: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 574: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 574: { //#line 1716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 575: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 575: { //#line 1723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 577: NextStatement ::= next ; // case 577: { //#line 1733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 578: AwaitStatement ::= await Expression ; // case 578: { //#line 1737 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1739 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 579: ClockList ::= Clock // case 579: { //#line 1743 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1745 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 580: ClockList ::= ClockList , Clock // case 580: { //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1752 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 581: Clock ::= Expression // case 581: { //#line 1758 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1760 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 582: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 582: { //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 583: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 583: { //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1777 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: RelationalExpression ::= RelationalExpression instanceof Type // case 584: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 585: IdentifierList ::= identifier // case 585: { //#line 1795 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1797 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 586: IdentifierList ::= IdentifierList , identifier // case 586: { //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1804 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 587: Primary ::= here // case 587: { //#line 1811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 590: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 590: { //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1829 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 591: RegionExpressionList ::= RegionExpression // case 591: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 592: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 592: { //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1854 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 593: Primary ::= [ RegionExpressionList ] // case 593: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 594: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 594: { //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 595: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 595: { //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 596: FieldModifier ::= mutable // case 596: { //#line 1892 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 597: FieldModifier ::= const // case 597: { //#line 1897 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 598: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 598: throw new Error("No action specified for rule " + 598); // // Rule 599: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: MethodModifier ::= synchronized // case 607: { //#line 1928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"synchronized\" is an invalid X10 Method Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.SYNCHRONIZED); break; } // // Rule 608: FieldModifier ::= volatile // case 608: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"volatile\" is an invalid X10 Field Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.VOLATILE); break; } // // Rule 609: SynchronizedStatement ::= synchronized ( Expression ) Block // case 609: { //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1946 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "Synchronized Statement is invalid in X10", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 610: ThisClauseopt ::= $Empty // case 610: setResult(null); break; // // Rule 612: PlaceTypeSpecifieropt ::= $Empty // case 612: setResult(null); break; // // Rule 614: DepParametersopt ::= $Empty // case 614: setResult(null); break; // // Rule 616: PropertyListopt ::= $Empty // case 616: setResult(null); break; // // Rule 618: WhereClauseopt ::= $Empty // case 618: setResult(null); break; // // Rule 620: ObjectKindopt ::= $Empty // case 620: setResult(null); break; // // Rule 622: ArrayInitializeropt ::= $Empty // case 622: setResult(null); break; // // Rule 624: PlaceExpressionSingleListopt ::= $Empty // case 624: setResult(null); break; // // Rule 626: ArgumentListopt ::= $Empty // case 626: setResult(null); break; // // Rule 628: X10ClassModifiersopt ::= $Empty // case 628: { //#line 1992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 630: DepParametersopt ::= $Empty // case 630: setResult(null); break; // // Rule 632: Unsafeopt ::= $Empty // case 632: setResult(null); break; // // Rule 633: Unsafeopt ::= unsafe // case 633: { //#line 2004 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 634: ParamIdopt ::= $Empty // case 634: setResult(null); break; // // Rule 635: ParamIdopt ::= identifier // case 635: { //#line 2011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2013 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 636: ClockedClauseopt ::= $Empty // case 636: { //#line 2019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/f8e1720cd66996a6339b992bf154aa0d019240a3/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 10792, 21582, 12, 2704, 1770, 12, 82, 74, 16, 4766, 1377, 3742, 16, 4766, 1377, 949, 12, 588, 3910, 6952, 9334, 16609, 6952, 1435, 3631, 4766, 1377, 21036, 16, 4766, 1377, 10971, 10019, 10792, 898, 31, 5411, 289, 5397, 368, 5411, 368, 6781, 576, 30, 225, 7508, 461, 493, 33, 7508, 461, 263, 1068, 548, 5411, 368, 5411, 648, 576, 30, 288, 7734, 368, 7, 1369, 2872, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 2 ]
throw new MojoExecutionException( Messages.getString( "EclipsePlugin.notadir", outputDir ) );
throw new MojoExecutionException( Messages.getString( "EclipsePlugin.notadir", outputDir ) );
public void execute() throws MojoExecutionException { if ( executedProject == null ) { // backwards compat with alpha-2 only executedProject = project; } assertNotEmpty( executedProject.getGroupId(), "groupId" ); //$NON-NLS-1$ assertNotEmpty( executedProject.getArtifactId(), "artifactId" ); //$NON-NLS-1$ // defaults // @todo how set List values in @default-value?? if ( projectnatures == null ) { projectnatures = new ArrayList(); projectnatures.add( "org.eclipse.jdt.core.javanature" ); } if ( buildcommands == null ) { buildcommands = new ArrayList(); buildcommands.add( "org.eclipse.jdt.core.javabuilder" ); } if ( classpathContainers == null ) { classpathContainers = new ArrayList(); } // end defaults if ( executedProject.getFile() == null || !executedProject.getFile().exists() ) { throw new MojoExecutionException( Messages.getString( "EclipsePlugin.missingpom" ) ); //$NON-NLS-1$ } if ( "pom".equals( executedProject.getPackaging() ) && outputDir == null ) //$NON-NLS-1$ { getLog().info( Messages.getString( "EclipsePlugin.pompackaging" ) ); //$NON-NLS-1$ return; } if ( outputDir == null ) { outputDir = executedProject.getFile().getParentFile(); } else if ( !outputDir.equals( executedProject.getFile().getParentFile() ) ) { if ( !outputDir.isDirectory() ) { throw new MojoExecutionException( Messages.getString( "EclipsePlugin.notadir", outputDir ) ); //$NON-NLS-1$ } outputDir = new File( outputDir, executedProject.getArtifactId() ); if ( !outputDir.isDirectory() && !outputDir.mkdir() ) { throw new MojoExecutionException( Messages.getString( "EclipsePlugin.cantcreatedir", outputDir ) ); //$NON-NLS-1$ } } // ready to start write(); }
1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/e3899c9cbcad8544a3c599e5c393373e7ee8694f/EclipsePlugin.java/buggy/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 7120, 4109, 422, 446, 262, 3639, 288, 5411, 368, 12727, 4796, 598, 4190, 17, 22, 1338, 5411, 7120, 4109, 273, 1984, 31, 3639, 289, 377, 202, 3639, 1815, 18431, 12, 7120, 4109, 18, 588, 8722, 9334, 315, 27547, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1815, 18431, 12, 7120, 4109, 18, 588, 7581, 548, 9334, 315, 17706, 548, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 368, 3467, 3639, 368, 632, 9012, 3661, 444, 987, 924, 316, 632, 1886, 17, 1132, 14646, 3639, 309, 261, 1984, 82, 2790, 422, 446, 262, 3639, 288, 5411, 1984, 82, 2790, 273, 394, 2407, 5621, 5411, 1984, 82, 2790, 18, 1289, 12, 315, 3341, 18, 20416, 18, 78, 7510, 18, 3644, 18, 19207, 304, 1231, 6, 11272, 3639, 289, 3639, 309, 261, 1361, 7847, 422, 446, 262, 3639, 288, 5411, 1361, 7847, 273, 394, 2407, 5621, 5411, 1361, 7847, 18, 1289, 12, 315, 3341, 18, 20416, 18, 78, 7510, 18, 3644, 18, 19207, 378, 953, 6, 11272, 3639, 289, 3639, 309, 261, 10006, 11177, 422, 446, 262, 3639, 288, 5411, 10006, 11177, 273, 394, 2407, 5621, 3639, 289, 3639, 368, 679, 3467, 3639, 309, 261, 7120, 4109, 18, 29925, 1435, 422, 446, 747, 401, 4177, 4817, 4109, 18, 29925, 7675, 1808, 1435, 262, 3639, 288, 5411, 604, 394, 18780, 12, 4838, 18, 588, 780, 12, 315, 23057, 10472, 3773, 18, 7337, 84, 362, 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, 1435, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 7120, 4109, 422, 446, 262, 3639, 288, 5411, 368, 12727, 4796, 598, 4190, 17, 22, 1338, 5411, 7120, 4109, 273, 1984, 31, 3639, 289, 377, 202, 3639, 1815, 18431, 12, 7120, 4109, 18, 588, 8722, 9334, 315, 27547, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1815, 18431, 12, 7120, 4109, 18, 588, 7581, 548, 9334, 315, 17706, 548, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 368, 3467, 3639, 368, 632, 9012, 3661, 444, 987, 924, 316, 632, 1886, 17, 1132, 14646, 3639, 309, 261, 1984, 82, 2790, 422, 446, 262, 3639, 288, 5411, 1984, 82, 2790, 273, 394, 2407, 5621, 2 ]
super(why);
super();
public FifoQueueClosedException(String why) { super(why); }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/b3612967cb053036bdb295ee74cb2e369c6ca18d/FifoQueueClosedException.java/buggy/src/core/org/opennms/core/queue/FifoQueueClosedException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 478, 20299, 3183, 7395, 503, 12, 780, 11598, 13, 202, 95, 202, 202, 9565, 12, 3350, 93, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 202, 482, 478, 20299, 3183, 7395, 503, 12, 780, 11598, 13, 202, 95, 202, 202, 9565, 12, 3350, 93, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
IMylarStructureBridge bridge = MylarPlugin.getDefault().getStructureBridge(element.getContentType());
IMylarStructureBridge bridge = ContextCorePlugin.getDefault().getStructureBridge(element.getContentType());
public void interestChanged(List<IMylarElement> elements) { for (IMylarElement element : elements) { IMylarStructureBridge bridge = MylarPlugin.getDefault().getStructureBridge(element.getContentType()); try { if (bridge.isDocument(element.getHandleIdentifier())) { IResource resource = MylarIdePlugin.getDefault().getResourceForElement(element, false); if (resource != null && resource.exists()) { for (MylarActiveChangeSet activeContextChangeSet : getActiveChangeSets()) { if (!activeContextChangeSet.contains(resource)) { if (element.getInterest().isInteresting()) { activeContextChangeSet.add(new IResource[] { resource }); } } } if (shouldRemove(element)) { for (ActiveChangeSetManager collector : collectors) { ChangeSet[] sets = collector.getSets(); for (int i = 0; i < sets.length; i++) { if (sets[i] instanceof MylarActiveChangeSet) { sets[i].remove(resource); } } } }// if (shouldRemove(element)) {// ChangeSet[] sets = collector.getSets();// for (int i = 0; i < sets.length; i++) {// if (sets[i] instanceof MylarActiveChangeSet) {// sets[i].remove(resource);// }// }// } } } } catch (Exception e) { MylarStatusHandler.fail(e, "could not manipulate change set resources", false); } } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b23efbfef800ff6f85224f036d6a11e9fab7acba/MylarChangeSetManager.java/clean/org.eclipse.mylyn.ide.ui/src/org/eclipse/mylyn/internal/ide/team/MylarChangeSetManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 16513, 5033, 12, 682, 32, 3445, 93, 7901, 1046, 34, 2186, 13, 288, 202, 202, 1884, 261, 3445, 93, 7901, 1046, 930, 294, 2186, 13, 288, 1082, 202, 3445, 93, 7901, 6999, 13691, 10105, 273, 8005, 7901, 3773, 18, 588, 1868, 7675, 588, 6999, 13691, 12, 2956, 18, 588, 8046, 10663, 1082, 202, 698, 288, 9506, 202, 430, 261, 18337, 18, 291, 2519, 12, 2956, 18, 588, 3259, 3004, 1435, 3719, 288, 6862, 202, 45, 1420, 1058, 273, 8005, 7901, 45, 323, 3773, 18, 588, 1868, 7675, 588, 1420, 1290, 1046, 12, 2956, 16, 629, 1769, 6862, 202, 430, 261, 3146, 480, 446, 597, 1058, 18, 1808, 10756, 288, 25083, 202, 1884, 261, 12062, 7901, 3896, 21565, 2695, 1042, 21565, 294, 11960, 3043, 2785, 10756, 288, 6862, 1082, 202, 430, 16051, 3535, 1042, 21565, 18, 12298, 12, 3146, 3719, 288, 6862, 9506, 202, 430, 261, 2956, 18, 588, 29281, 7675, 291, 2465, 10100, 10756, 288, 6862, 6862, 202, 3535, 1042, 21565, 18, 1289, 12, 2704, 467, 1420, 8526, 288, 1058, 15549, 6862, 9506, 202, 97, 6862, 1082, 202, 97, 25083, 202, 97, 25083, 202, 430, 261, 13139, 3288, 12, 2956, 3719, 288, 6862, 1082, 202, 1884, 261, 3896, 21565, 1318, 8543, 294, 3274, 1383, 13, 288, 6862, 9506, 202, 21565, 8526, 1678, 273, 8543, 18, 588, 2785, 5621, 6862, 9506, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1678, 18, 2469, 31, 277, 27245, 288, 6862, 6862, 202, 430, 261, 4424, 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, 16513, 5033, 12, 682, 32, 3445, 93, 7901, 1046, 34, 2186, 13, 288, 202, 202, 1884, 261, 3445, 93, 7901, 1046, 930, 294, 2186, 13, 288, 1082, 202, 3445, 93, 7901, 6999, 13691, 10105, 273, 8005, 7901, 3773, 18, 588, 1868, 7675, 588, 6999, 13691, 12, 2956, 18, 588, 8046, 10663, 1082, 202, 698, 288, 9506, 202, 430, 261, 18337, 18, 291, 2519, 12, 2956, 18, 588, 3259, 3004, 1435, 3719, 288, 6862, 202, 45, 1420, 1058, 273, 8005, 7901, 45, 323, 3773, 18, 588, 1868, 7675, 588, 1420, 1290, 1046, 12, 2956, 16, 629, 1769, 6862, 202, 430, 261, 3146, 480, 446, 597, 1058, 18, 1808, 10756, 288, 25083, 202, 1884, 261, 12062, 7901, 2 ]
sb.append(hours).append("h");
sb.append(hours).append('h');
public static String formatTime(long timeInterval, int maxTerms, boolean withSecondFractions) { StringBuffer sb = new StringBuffer(64); long l = timeInterval; int termCount = 0; // int weeks = (int)(l / ((long)7*24*60*60*1000)); if (weeks > 0) { sb.append(weeks).append("w"); termCount++; l = l - ((long)weeks * ((long)7*24*60*60*1000)); } // int days = (int)(l / ((long)24*60*60*1000)); if (days > 0) { sb.append(days).append("d"); termCount++; l = l - ((long)days * ((long)24*60*60*1000)); } if(termCount >= maxTerms) { return sb.toString(); } // int hours = (int)(l / ((long)60*60*1000)); if (hours > 0) { sb.append(hours).append("h"); termCount++; l = l - ((long)hours * ((long)60*60*1000)); } if(termCount >= maxTerms) { return sb.toString(); } // int minutes = (int)(l / ((long)60*1000)); if (minutes > 0) { sb.append(minutes).append("m"); termCount++; l = l - ((long)minutes * ((long)60*1000)); } if(termCount >= maxTerms) { return sb.toString(); } if(withSecondFractions && ((maxTerms - termCount) >= 2)) { if (l > 0) { double fractionalSeconds = ((double) l) / ((double) 1000.0); DecimalFormat fix3 = new DecimalFormat("0.000"); sb.append(fix3.format(fractionalSeconds)).append("s"); termCount++; l = l - ((long)fractionalSeconds * (long)1000); } } else { int seconds = (int)(l / (long)1000); if (seconds > 0) { sb.append(seconds).append("s"); termCount++; l = l - ((long)seconds * (long)1000); } } // return sb.toString(); }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/62fd59041864b4ed1f43adc676de6bfb5ea977f3/TimeUtil.java/buggy/src/freenet/support/TimeUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 740, 950, 12, 5748, 813, 4006, 16, 509, 943, 11673, 16, 1250, 598, 8211, 13724, 87, 13, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 1105, 1769, 202, 202, 5748, 328, 273, 813, 4006, 31, 202, 202, 474, 2481, 1380, 273, 374, 31, 202, 202, 759, 202, 202, 474, 17314, 273, 261, 474, 21433, 80, 342, 14015, 5748, 13, 27, 14, 3247, 14, 4848, 14, 4848, 14, 18088, 10019, 202, 202, 430, 261, 10741, 87, 405, 374, 13, 288, 5411, 2393, 18, 6923, 12, 10741, 87, 2934, 6923, 2932, 91, 8863, 1082, 225, 2481, 1380, 9904, 31, 1082, 225, 328, 273, 328, 300, 14015, 5748, 13, 10741, 87, 380, 14015, 5748, 13, 27, 14, 3247, 14, 4848, 14, 4848, 14, 18088, 10019, 202, 202, 97, 202, 202, 759, 202, 202, 474, 4681, 273, 261, 474, 21433, 80, 342, 14015, 5748, 13, 3247, 14, 4848, 14, 4848, 14, 18088, 10019, 202, 202, 430, 261, 9810, 405, 374, 13, 288, 5411, 2393, 18, 6923, 12, 9810, 2934, 6923, 2932, 72, 8863, 1082, 225, 2481, 1380, 9904, 31, 1082, 225, 328, 273, 328, 300, 14015, 5748, 13, 9810, 380, 14015, 5748, 13, 3247, 14, 4848, 14, 4848, 14, 18088, 10019, 202, 202, 97, 202, 202, 430, 12, 6408, 1380, 1545, 943, 11673, 13, 288, 1082, 225, 327, 2393, 18, 10492, 5621, 202, 202, 97, 202, 202, 759, 202, 202, 474, 7507, 273, 261, 474, 21433, 80, 342, 14015, 5748, 13, 4848, 14, 4848, 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, 514, 740, 950, 12, 5748, 813, 4006, 16, 509, 943, 11673, 16, 1250, 598, 8211, 13724, 87, 13, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 1105, 1769, 202, 202, 5748, 328, 273, 813, 4006, 31, 202, 202, 474, 2481, 1380, 273, 374, 31, 202, 202, 759, 202, 202, 474, 17314, 273, 261, 474, 21433, 80, 342, 14015, 5748, 13, 27, 14, 3247, 14, 4848, 14, 4848, 14, 18088, 10019, 202, 202, 430, 261, 10741, 87, 405, 374, 13, 288, 5411, 2393, 18, 6923, 12, 10741, 87, 2934, 6923, 2932, 91, 8863, 1082, 225, 2481, 1380, 9904, 31, 1082, 225, 328, 273, 328, 300, 14015, 5748, 13, 10741, 87, 380, 14015, 5748, 13, 2 ]
protected SearchScope createTextSearchScope(int degreeOfSeparation){ List<IMylarContextNode> landmarks = MylarPlugin.getContextManager().getActiveLandmarks(); switch(degreeOfSeparation){ case 1: // create a search scope for the projects of landmarks List<IResource> l = new ArrayList<IResource>(); for (IMylarContextNode landmark : landmarks) { if (landmark.getContentType().equals(PdeStructureBridge.CONTENT_TYPE) || landmark.getContentType().equals(AntStructureBridge.CONTENT_TYPE)) { String handle = landmark.getElementHandle(); IResource element = null; int first = handle.indexOf(";"); String filename = handle; if(first != -1) filename = handle.substring(0, first); try{ // change the file into a document IPath path = new Path(filename); element = ((Workspace)ResourcesPlugin.getWorkspace()).newResource(path, IResource.FILE); }catch(Exception e){ MylarPlugin.log(e, "scope creation failed"); } l.add(element); } } IResource[] res = new IResource[l.size()]; res = l.toArray(res); SearchScope doiScope = SearchScope.newSearchScope("landmark pde and ant xml files", res); // doiScope.addFileNamePattern("*.xml"); return l.isEmpty()?null:doiScope; case 2: // create a search scope for the projects of landmarks List<IProject> proj = new ArrayList<IProject>(); for (IMylarContextNode landmark : landmarks) { IMylarStructureBridge sbridge = MylarPlugin.getDefault().getStructureBridge(landmark.getContentType()); if(sbridge != null){ Object o = sbridge.getObjectForHandle(landmark.getElementHandle()); IProject project = sbridge.getProjectForObject(o); if(project != null){ proj.add(project); } } } res = new IProject[proj.size()]; res = proj.toArray(res); SearchScope projScope = SearchScope.newSearchScope("Projects of landmarks", res); addFilenamePatterns(projScope); return proj.isEmpty()?null:projScope; case 3: // create a search scope for the workspace SearchScope workspaceScope = SearchScope.newWorkspaceScope(); // add the xml extension to the search scope addFilenamePatterns(workspaceScope); return workspaceScope; case 4: // create a search scope for the workspace SearchScope workspaceScope2 = SearchScope.newWorkspaceScope(); // add the xml extension to the search scope addFilenamePatterns(workspaceScope2); return workspaceScope2; default: return null; } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/4f15e90a39d412daf34b484a2a14c91818197a16/XmlReferencesProvider.java/buggy/org.eclipse.mylyn.resources.ui/src/org/eclipse/mylyn/xml/XmlReferencesProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 2979, 1541, 83, 705, 602, 1528, 2979, 3876, 12, 474, 21361, 951, 5097, 4302, 15329, 682, 32, 3445, 93, 7901, 1042, 907, 34, 15733, 17439, 33, 12062, 7901, 3773, 18, 29120, 1318, 7675, 588, 3896, 29398, 17439, 5621, 9610, 12, 21361, 951, 5097, 4302, 15329, 3593, 21, 2207, 2640, 448, 991, 4887, 1884, 5787, 13582, 792, 15733, 17439, 682, 32, 45, 1420, 34, 80, 33, 2704, 19558, 32, 45, 1420, 34, 5621, 1884, 12, 3445, 93, 7901, 1042, 50, 1009, 464, 3355, 30, 15733, 17439, 15329, 430, 12, 15733, 3355, 18, 588, 8046, 7675, 14963, 12, 52, 323, 6999, 13691, 18, 9689, 67, 2399, 14047, 96, 15733, 3355, 18, 588, 8046, 7675, 14963, 12, 14925, 6999, 13691, 18, 9689, 67, 2399, 3719, 95, 780, 4110, 33, 15733, 3355, 18, 21336, 3259, 5621, 45, 1420, 2956, 33, 2011, 31, 474, 3645, 33, 4110, 18, 31806, 2932, 4868, 1769, 780, 3459, 33, 4110, 31, 430, 12, 3645, 5, 29711, 21, 13, 202, 3459, 33, 4110, 18, 28023, 12, 20, 16, 3645, 1769, 698, 95, 759, 24083, 546, 73, 768, 18591, 4539, 650, 45, 743, 803, 33, 2704, 743, 12, 3459, 1769, 2956, 33, 12443, 8241, 13, 3805, 3773, 18, 588, 8241, 1435, 2934, 2704, 1420, 12, 803, 16, 45, 1420, 18, 3776, 1769, 97, 14683, 12, 503, 73, 15329, 202, 12062, 7901, 3773, 18, 1330, 12, 73, 10837, 1017, 83, 705, 266, 367, 7307, 8863, 97, 80, 18, 1289, 12, 2956, 1769, 9090, 45, 1420, 8526, 455, 33, 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, 2979, 1541, 83, 705, 602, 1528, 2979, 3876, 12, 474, 21361, 951, 5097, 4302, 15329, 682, 32, 3445, 93, 7901, 1042, 907, 34, 15733, 17439, 33, 12062, 7901, 3773, 18, 29120, 1318, 7675, 588, 3896, 29398, 17439, 5621, 9610, 12, 21361, 951, 5097, 4302, 15329, 3593, 21, 2207, 2640, 448, 991, 4887, 1884, 5787, 13582, 792, 15733, 17439, 682, 32, 45, 1420, 34, 80, 33, 2704, 19558, 32, 45, 1420, 34, 5621, 1884, 12, 3445, 93, 7901, 1042, 50, 1009, 464, 3355, 30, 15733, 17439, 15329, 430, 12, 15733, 3355, 18, 588, 8046, 7675, 14963, 12, 52, 323, 6999, 13691, 18, 9689, 67, 2399, 14047, 96, 15733, 3355, 18, 588, 8046, 7675, 14963, 12, 14925, 6999, 13691, 18, 2 ]
ZipFileObject parent;
ZipFileObject parent = null;
public ZipFileSystem( final DefaultFileName rootName, final FileObject parentLayer ) throws FileSystemException { super( rootName, parentLayer ); // Make a local copy of the file final File file = parentLayer.replicateFile( FileConstants.SELECT_SELF ); this.file = file; // Open the Zip file if ( !file.exists() ) { // Don't need to do anything zipFile = null; return; } try { zipFile = new ZipFile( this.file ); } catch ( IOException ioe ) { final String message = REZ.getString( "open-zip-file.error", this.file ); throw new FileSystemException( message, ioe ); } // Build the index Enumeration entries = zipFile.entries(); while ( entries.hasMoreElements() ) { ZipEntry entry = (ZipEntry)entries.nextElement(); FileName name = rootName.resolveName( entry.getName() ); // Create the file ZipFileObject fileObj; if ( entry.isDirectory() ) { if ( getFile( name ) != null ) { // Already created implicitly continue; } fileObj = new ZipFileObject( name, true, this ); } else { fileObj = new ZipFileObject( name, entry, zipFile, this ); } putFile( fileObj ); // Make sure all ancestors exist // TODO - create these on demand ZipFileObject parent; for ( FileName parentName = name.getParent(); parentName != null; fileObj = parent, parentName = parentName.getParent() ) { // Locate the parent parent = (ZipFileObject)getFile( parentName ); if ( parent == null ) { parent = new ZipFileObject( parentName, true, this ); putFile( parent ); } // Attach child to parent parent.attachChild( fileObj.getName() ); } } }
50122 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50122/dbe103a9007df1d7e13db06cc5e18dcb5aac8851/ZipFileSystem.java/buggy/src/java/org/apache/commons/vfs/provider/zip/ZipFileSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8603, 11785, 12, 727, 2989, 4771, 1365, 461, 16, 12900, 727, 1387, 921, 982, 4576, 262, 3639, 1216, 10931, 503, 565, 288, 3639, 2240, 12, 1365, 461, 16, 982, 4576, 11272, 3639, 368, 4344, 279, 1191, 1610, 434, 326, 585, 3639, 727, 1387, 585, 273, 982, 4576, 18, 266, 1780, 340, 812, 12, 1387, 2918, 18, 4803, 67, 26280, 11272, 3639, 333, 18, 768, 273, 585, 31, 3639, 368, 3502, 326, 8603, 585, 3639, 309, 261, 401, 768, 18, 1808, 1435, 262, 3639, 288, 5411, 368, 7615, 1404, 1608, 358, 741, 6967, 5411, 19450, 273, 446, 31, 5411, 327, 31, 3639, 289, 3639, 775, 3639, 288, 5411, 19450, 273, 394, 18364, 12, 333, 18, 768, 11272, 3639, 289, 3639, 1044, 261, 1860, 10847, 262, 3639, 288, 5411, 727, 514, 883, 273, 2438, 62, 18, 588, 780, 12, 315, 3190, 17, 4450, 17, 768, 18, 1636, 3113, 333, 18, 768, 11272, 5411, 604, 394, 10931, 503, 12, 883, 16, 10847, 11272, 3639, 289, 3639, 368, 3998, 326, 770, 3639, 13864, 3222, 273, 19450, 18, 8219, 5621, 3639, 1323, 261, 3222, 18, 5332, 7417, 3471, 1435, 262, 3639, 288, 5411, 23652, 1241, 273, 261, 9141, 1622, 13, 8219, 18, 4285, 1046, 5621, 5411, 25075, 508, 273, 1365, 461, 18, 10828, 461, 12, 1241, 18, 17994, 1435, 11272, 5411, 368, 1788, 326, 585, 5411, 18364, 921, 585, 2675, 31, 5411, 309, 261, 1241, 18, 291, 2853, 1435, 262, 5411, 288, 7734, 309, 261, 6034, 12, 508, 262, 480, 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, 8603, 11785, 12, 727, 2989, 4771, 1365, 461, 16, 12900, 727, 1387, 921, 982, 4576, 262, 3639, 1216, 10931, 503, 565, 288, 3639, 2240, 12, 1365, 461, 16, 982, 4576, 11272, 3639, 368, 4344, 279, 1191, 1610, 434, 326, 585, 3639, 727, 1387, 585, 273, 982, 4576, 18, 266, 1780, 340, 812, 12, 1387, 2918, 18, 4803, 67, 26280, 11272, 3639, 333, 18, 768, 273, 585, 31, 3639, 368, 3502, 326, 8603, 585, 3639, 309, 261, 401, 768, 18, 1808, 1435, 262, 3639, 288, 5411, 368, 7615, 1404, 1608, 358, 741, 6967, 5411, 19450, 273, 446, 31, 5411, 327, 31, 3639, 289, 3639, 775, 3639, 288, 5411, 19450, 273, 394, 18364, 12, 333, 18, 768, 11272, 3639, 2 ]
logger.debug("probe found, named " + pd.getName());
public void end(String namespace, String name) throws Exception { ProbeDesc pd = (ProbeDesc) digester.peek(); ProbeFactory.addDesc(pd); logger.debug("probe found, named " + pd.getName()); }
31637 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31637/0d053a81c7d43158dc7a1a4cc141af689c2ac600/DescFactory.java/buggy/src/jrds/DescFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 679, 12, 780, 1981, 16, 514, 508, 13, 1216, 1185, 288, 9506, 202, 21042, 4217, 4863, 273, 261, 21042, 4217, 13, 23821, 18, 347, 3839, 5621, 9506, 202, 21042, 1733, 18, 1289, 4217, 12, 22353, 1769, 9506, 202, 4901, 18, 4148, 2932, 27230, 1392, 16, 4141, 315, 397, 4863, 18, 17994, 10663, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1875, 202, 482, 918, 679, 12, 780, 1981, 16, 514, 508, 13, 1216, 1185, 288, 9506, 202, 21042, 4217, 4863, 273, 261, 21042, 4217, 13, 23821, 18, 347, 3839, 5621, 9506, 202, 21042, 1733, 18, 1289, 4217, 12, 22353, 1769, 9506, 202, 4901, 18, 4148, 2932, 27230, 1392, 16, 4141, 315, 397, 4863, 18, 17994, 10663, 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 ]
if (node.isFilter())
if (node.isFilter()) {
public void visitNode(FlatNode node) { if (node.isFilter()) RenameAll.renameFilterContents((SIRFilter)node.contents); }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/0b681c11586be2aa488c64530b717abece6fcc20/GenerateCCode.java/clean/streams/src/at/dms/kjc/rstream/GenerateCCode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3757, 907, 12, 16384, 907, 756, 13, 3196, 202, 95, 1082, 565, 309, 261, 2159, 18, 291, 1586, 10756, 1082, 202, 16019, 1595, 18, 18539, 1586, 6323, 12443, 2320, 54, 1586, 13, 2159, 18, 3980, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3757, 907, 12, 16384, 907, 756, 13, 3196, 202, 95, 1082, 565, 309, 261, 2159, 18, 291, 1586, 10756, 1082, 202, 16019, 1595, 18, 18539, 1586, 6323, 12443, 2320, 54, 1586, 13, 2159, 18, 3980, 1769, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
}
public void reset() { // reset this instance for future re-use count = 0L; for (int i = 0; i < blockSize;) { buffer[i++] = 0; } resetContext(); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2b9abb5a0b9bbcfe80809713d541a098ef473321/BaseHash.java/buggy/core/src/classpath/gnu/gnu/java/security/hash/BaseHash.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2715, 1435, 225, 288, 368, 2715, 333, 791, 364, 3563, 283, 17, 1202, 565, 1056, 273, 374, 48, 31, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 13766, 30943, 1377, 288, 3639, 1613, 63, 77, 9904, 65, 273, 374, 31, 540, 2715, 1042, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2715, 1435, 225, 288, 368, 2715, 333, 791, 364, 3563, 283, 17, 1202, 565, 1056, 273, 374, 48, 31, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 13766, 30943, 1377, 288, 3639, 1613, 63, 77, 9904, 65, 273, 374, 31, 540, 2715, 1042, 5621, 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 ]
setSpacing(PageLayout.parsePageValue(spacingStr));
setSpacing(spacingStr); /* use <spacing> element instead .... spacingStr = attrs.getValue("spacingWidth"); if (spacingStr!=null) spacing.width = PageLayout.parsePageValue(spacingStr); spacingStr = attrs.getValue("spacingHeight"); if (spacingStr!=null) spacing.height = PageLayout.parsePageValue(spacingStr); */
public void setXmlAttributes(Attributes attrs) { String marginStr = attrs.getValue("margin"); if (marginStr!=null) setMargin(PageLayout.parsePageValue(marginStr)); String spacingStr = attrs.getValue("spacing"); if (spacingStr!=null) setSpacing(PageLayout.parsePageValue(spacingStr)); }
47266 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47266/48e36b51d5ad604b9d04612ea22e0d257235cce9/AreaLayout.java/buggy/src/net/jimmc/mimprint/AreaLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 4432, 2498, 12, 2498, 3422, 13, 288, 3639, 514, 7333, 1585, 273, 3422, 18, 24805, 2932, 10107, 8863, 3639, 309, 261, 10107, 1585, 5, 33, 2011, 13, 5411, 444, 9524, 12, 1964, 3744, 18, 2670, 1964, 620, 12, 10107, 1585, 10019, 3639, 514, 13259, 1585, 273, 3422, 18, 24805, 2932, 14080, 8863, 3639, 309, 261, 14080, 1585, 5, 33, 2011, 13, 5411, 444, 18006, 12, 14080, 1585, 1769, 225, 1748, 999, 411, 14080, 34, 930, 3560, 1372, 18, 13259, 1585, 273, 3422, 18, 24805, 2932, 14080, 2384, 8863, 309, 261, 14080, 1585, 5, 33, 2011, 13, 13259, 18, 2819, 273, 3460, 3744, 18, 2670, 1964, 620, 12, 14080, 1585, 1769, 13259, 1585, 273, 3422, 18, 24805, 2932, 14080, 2686, 8863, 309, 261, 14080, 1585, 5, 33, 2011, 13, 13259, 18, 4210, 273, 3460, 3744, 18, 2670, 1964, 620, 12, 14080, 1585, 1769, 1195, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 4432, 2498, 12, 2498, 3422, 13, 288, 3639, 514, 7333, 1585, 273, 3422, 18, 24805, 2932, 10107, 8863, 3639, 309, 261, 10107, 1585, 5, 33, 2011, 13, 5411, 444, 9524, 12, 1964, 3744, 18, 2670, 1964, 620, 12, 10107, 1585, 10019, 3639, 514, 13259, 1585, 273, 3422, 18, 24805, 2932, 14080, 8863, 3639, 309, 261, 14080, 1585, 5, 33, 2011, 13, 5411, 444, 18006, 12, 14080, 1585, 1769, 225, 1748, 999, 411, 14080, 34, 930, 3560, 1372, 18, 13259, 1585, 273, 3422, 18, 24805, 2932, 14080, 2384, 8863, 309, 261, 14080, 1585, 5, 33, 2011, 13, 13259, 18, 2819, 273, 3460, 3744, 18, 2670, 1964, 620, 12, 14080, 1585, 1769, 13259, 1585, 273, 3422, 18, 2 ]
public final Set getModifierKeys() { return Collections.unmodifiableSet(modifierKeys); }
public final int getModifierKeys() { return modifierKeys; }
public final Set getModifierKeys() { return Collections.unmodifiableSet(modifierKeys); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/092230ba080f34842abb8d636b3b6894254f8cc5/KeyStroke.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/bindings/keys/KeyStroke.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1000, 336, 9829, 2396, 1435, 288, 3639, 327, 5737, 18, 318, 13388, 694, 12, 20597, 2396, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1000, 336, 9829, 2396, 1435, 288, 3639, 327, 5737, 18, 318, 13388, 694, 12, 20597, 2396, 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 ]
( ( DecimalFormat ) format ).applyPattern( formatStr );
( ( DecimalFormat ) format ).applyPattern( formatString );
protected String formatValue(Object valueToFormat) throws JspException { Format format = null; Object value = valueToFormat; Locale locale = RequestUtils.retrieveUserLocale( pageContext, this.localeKey ); boolean formatStrFromResources = false; // Return String object as is. if ( value instanceof java.lang.String ) { return (String)value; } else { // Try to retrieve format string from resources by the key from formatKey. if( ( formatStr==null ) && ( formatKey!=null ) ) { formatStr = retrieveFormatString( this.formatKey ); if( formatStr!=null ) formatStrFromResources = true; } // Prepare format object for numeric values. if ( value instanceof Number ) { if( formatStr==null ) { if( ( value instanceof Byte ) || ( value instanceof Short ) || ( value instanceof Integer ) || ( value instanceof Long ) || ( value instanceof BigInteger ) ) formatStr = retrieveFormatString( INT_FORMAT_KEY ); else if( ( value instanceof Float ) || ( value instanceof Double ) || ( value instanceof BigDecimal ) ) formatStr = retrieveFormatString( FLOAT_FORMAT_KEY ); if( formatStr!=null ) formatStrFromResources = true; } if( formatStr!=null ) { try { format = NumberFormat.getNumberInstance( locale ); if( formatStrFromResources ) ( ( DecimalFormat ) format ).applyLocalizedPattern( formatStr ); else ( ( DecimalFormat ) format ).applyPattern( formatStr ); } catch( IllegalArgumentException _e ) { JspException e = new JspException(messages.getMessage("write.format", formatStr)); RequestUtils.saveException(pageContext, e); throw e; } } } else if ( value instanceof java.util.Date ) { if( formatStr==null ) { if ( value instanceof java.sql.Timestamp ) { formatStr = retrieveFormatString( SQL_TIMESTAMP_FORMAT_KEY ); } else if ( value instanceof java.sql.Date ) { formatStr = retrieveFormatString( SQL_DATE_FORMAT_KEY ); } else if ( value instanceof java.sql.Time ) { formatStr = retrieveFormatString( SQL_TIME_FORMAT_KEY ); } else if ( value instanceof java.util.Date ) { formatStr = retrieveFormatString( DATE_FORMAT_KEY ); } if( formatStr!=null ) formatStrFromResources = true; } if( formatStr!=null ) { if( formatStrFromResources ) { format = new SimpleDateFormat( formatStr, locale ); } else { format = new SimpleDateFormat( formatStr ); } } } } if( format!=null ) return format.format( value ); else return value.toString(); }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/3e8a3390ee316c95946a40052deb5ca74ebd250b/WriteTag.java/clean/src/share/org/apache/struts/taglib/bean/WriteTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 740, 620, 12, 921, 30605, 1630, 13, 1216, 27485, 288, 3639, 4077, 740, 273, 446, 31, 3639, 1033, 460, 273, 30605, 1630, 31, 3639, 6458, 2573, 273, 1567, 1989, 18, 17466, 1299, 3916, 12, 21442, 16, 333, 18, 6339, 653, 11272, 3639, 1250, 740, 1585, 1265, 3805, 273, 629, 31, 3639, 368, 2000, 514, 733, 487, 353, 18, 3639, 309, 261, 460, 1276, 2252, 18, 4936, 18, 780, 262, 288, 7734, 327, 261, 780, 13, 1132, 31, 3639, 289, 469, 288, 5411, 368, 6161, 358, 4614, 740, 533, 628, 2703, 635, 326, 498, 628, 740, 653, 18, 5411, 309, 12, 261, 740, 1585, 631, 2011, 262, 597, 261, 740, 653, 5, 33, 2011, 262, 262, 288, 10792, 740, 1585, 273, 4614, 1630, 780, 12, 333, 18, 2139, 653, 11272, 10792, 309, 12, 740, 1585, 5, 33, 2011, 262, 18701, 740, 1585, 1265, 3805, 273, 638, 31, 5411, 289, 5411, 368, 7730, 740, 733, 364, 6389, 924, 18, 5411, 309, 261, 460, 1276, 3588, 262, 288, 7734, 309, 12, 740, 1585, 631, 2011, 262, 288, 13491, 309, 12, 261, 460, 1276, 3506, 262, 565, 747, 18701, 261, 460, 1276, 7925, 262, 282, 747, 18701, 261, 460, 1276, 2144, 262, 747, 18701, 261, 460, 1276, 3407, 262, 565, 747, 18701, 261, 460, 1276, 10246, 262, 262, 27573, 740, 1585, 273, 4614, 1630, 780, 12, 6137, 67, 7254, 67, 3297, 11272, 13491, 469, 309, 12, 261, 460, 1276, 5450, 262, 747, 4766, 261, 460, 1276, 3698, 262, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 740, 620, 12, 921, 30605, 1630, 13, 1216, 27485, 288, 3639, 4077, 740, 273, 446, 31, 3639, 1033, 460, 273, 30605, 1630, 31, 3639, 6458, 2573, 273, 1567, 1989, 18, 17466, 1299, 3916, 12, 21442, 16, 333, 18, 6339, 653, 11272, 3639, 1250, 740, 1585, 1265, 3805, 273, 629, 31, 3639, 368, 2000, 514, 733, 487, 353, 18, 3639, 309, 261, 460, 1276, 2252, 18, 4936, 18, 780, 262, 288, 7734, 327, 261, 780, 13, 1132, 31, 3639, 289, 469, 288, 5411, 368, 6161, 358, 4614, 740, 533, 628, 2703, 635, 326, 498, 628, 740, 653, 18, 5411, 309, 12, 261, 740, 1585, 631, 2011, 262, 597, 261, 740, 653, 5, 33, 2011, 262, 262, 288, 2 ]
_log.debug("received " + messageId + " with " + payload.getValid());
_log.debug("received " + messageId + " with " + (payload != null ? payload.getValid()+"" : "no payload"));
public boolean messageReceived(long messageId, ByteArray payload) { synchronized (_dataLock) { if (_log.shouldLog(Log.DEBUG)) _log.debug("received " + messageId + " with " + payload.getValid()); if (messageId <= _highestReadyBlockId) { if (_log.shouldLog(Log.DEBUG)) _log.debug("ignoring dup message " + messageId); _dataLock.notifyAll(); return false; // already received } if (messageId > _highestBlockId) _highestBlockId = messageId; if (_highestReadyBlockId + 1 == messageId) { if (!_locallyClosed && payload.getValid() > 0) { if (_log.shouldLog(Log.DEBUG)) _log.debug("accepting bytes as ready: " + payload.getValid()); _readyDataBlocks.add(payload); } _highestReadyBlockId = messageId; long cur = _highestReadyBlockId + 1; // now pull in any previously pending blocks while (_notYetReadyBlocks.containsKey(new Long(cur))) { ByteArray ba = (ByteArray)_notYetReadyBlocks.remove(new Long(cur)); if ( (ba != null) && (ba.getData() != null) && (ba.getValid() > 0) ) { _readyDataBlocks.add(ba); } if (_log.shouldLog(Log.DEBUG)) _log.debug("making ready the block " + cur); cur++; _highestReadyBlockId++; } _dataLock.notifyAll(); } else { if (_log.shouldLog(Log.DEBUG)) _log.debug("message is out of order: " + messageId); if (_locallyClosed) // dont need the payload, just the msgId in order _notYetReadyBlocks.put(new Long(messageId), new ByteArray(null)); else _notYetReadyBlocks.put(new Long(messageId), payload); _dataLock.notifyAll(); } } return true; }
27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/6a19501214b3f1c26f1f015332a7e4a13106599f/MessageInputStream.java/clean/apps/streaming/java/src/net/i2p/client/streaming/MessageInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 883, 8872, 12, 5748, 19090, 16, 7964, 2385, 13, 288, 3639, 3852, 261, 67, 892, 2531, 13, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 7734, 389, 1330, 18, 4148, 2932, 15213, 315, 397, 19090, 397, 315, 598, 315, 397, 261, 7648, 480, 446, 692, 2385, 18, 588, 1556, 1435, 15, 3660, 294, 315, 2135, 2385, 7923, 1769, 5411, 309, 261, 2150, 548, 1648, 389, 8766, 395, 8367, 1768, 548, 13, 288, 7734, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 10792, 389, 1330, 18, 4148, 2932, 724, 6053, 9417, 883, 315, 397, 19090, 1769, 7734, 389, 892, 2531, 18, 12336, 1595, 5621, 7734, 327, 629, 31, 368, 1818, 5079, 5411, 289, 5411, 309, 261, 2150, 548, 405, 389, 8766, 395, 1768, 548, 13, 7734, 389, 8766, 395, 1768, 548, 273, 19090, 31, 13491, 309, 261, 67, 8766, 395, 8367, 1768, 548, 397, 404, 422, 19090, 13, 288, 7734, 309, 16051, 67, 1829, 1230, 7395, 597, 2385, 18, 588, 1556, 1435, 405, 374, 13, 288, 10792, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 13491, 389, 1330, 18, 4148, 2932, 9436, 310, 1731, 487, 5695, 30, 315, 397, 2385, 18, 588, 1556, 10663, 10792, 389, 1672, 751, 6450, 18, 1289, 12, 7648, 1769, 7734, 289, 7734, 389, 8766, 395, 8367, 1768, 548, 273, 19090, 31, 7734, 1525, 662, 273, 389, 8766, 395, 8367, 1768, 548, 397, 404, 31, 7734, 368, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 883, 8872, 12, 5748, 19090, 16, 7964, 2385, 13, 288, 3639, 3852, 261, 67, 892, 2531, 13, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 7734, 389, 1330, 18, 4148, 2932, 15213, 315, 397, 19090, 397, 315, 598, 315, 397, 261, 7648, 480, 446, 692, 2385, 18, 588, 1556, 1435, 15, 3660, 294, 315, 2135, 2385, 7923, 1769, 5411, 309, 261, 2150, 548, 1648, 389, 8766, 395, 8367, 1768, 548, 13, 288, 7734, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 10792, 389, 1330, 18, 4148, 2932, 724, 6053, 9417, 883, 315, 397, 19090, 1769, 7734, 389, 892, 2531, 18, 12336, 1595, 5621, 7734, 327, 629, 2 ]
public org.quickfix.field.TransactTime getTransactTime() throws FieldNotFound { org.quickfix.field.TransactTime value = new org.quickfix.field.TransactTime();
public quickfix.field.TransactTime getTransactTime() throws FieldNotFound { quickfix.field.TransactTime value = new quickfix.field.TransactTime();
public org.quickfix.field.TransactTime getTransactTime() throws FieldNotFound { org.quickfix.field.TransactTime value = new org.quickfix.field.TransactTime(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Advertisement.java/buggy/src/java/src/quickfix/fix42/Advertisement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1429, 621, 950, 336, 1429, 621, 950, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1429, 621, 950, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 1429, 621, 950, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1429, 621, 950, 336, 1429, 621, 950, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1429, 621, 950, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 1429, 621, 950, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
boolean unprotectedAddFile(UTF8 name, Block blocks[]) { synchronized (rootDir) { if (blocks != null) { for (int i = 0; i < blocks.length; i++) { activeBlocks.add(blocks[i]); } } return (rootDir.addNode(name.toString(), blocks) != null); }
boolean unprotectedAddFile(UTF8 path, INode newNode) { synchronized (rootDir) { int nrBlocks = (newNode.blocks == null) ? 0 : newNode.blocks.length; for (int i = 0; i < nrBlocks; i++) activeBlocks.put(newNode.blocks[i], newNode); return (rootDir.addNode(path.toString(), newNode) != null); }
boolean unprotectedAddFile(UTF8 name, Block blocks[]) { synchronized (rootDir) { if (blocks != null) { // Add file->block mapping for (int i = 0; i < blocks.length; i++) { activeBlocks.add(blocks[i]); } } return (rootDir.addNode(name.toString(), blocks) != null); } }
49248 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49248/ba0ca973d8fbf49c1b7c2d29e7763226576364e8/FSDirectory.java/buggy/src/java/org/apache/hadoop/dfs/FSDirectory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1250, 640, 1117, 986, 812, 12, 5159, 28, 508, 16, 3914, 4398, 63, 5717, 288, 3639, 3852, 261, 3085, 1621, 13, 288, 5411, 309, 261, 7996, 480, 446, 13, 288, 7734, 368, 1436, 585, 2122, 2629, 2874, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4398, 18, 2469, 31, 277, 27245, 288, 10792, 2695, 6450, 18, 1289, 12, 7996, 63, 77, 19226, 7734, 289, 5411, 289, 5411, 327, 261, 3085, 1621, 18, 1289, 907, 12, 529, 18, 10492, 9334, 4398, 13, 480, 446, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 640, 1117, 986, 812, 12, 5159, 28, 508, 16, 3914, 4398, 63, 5717, 288, 3639, 3852, 261, 3085, 1621, 13, 288, 5411, 309, 261, 7996, 480, 446, 13, 288, 7734, 368, 1436, 585, 2122, 2629, 2874, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4398, 18, 2469, 31, 277, 27245, 288, 10792, 2695, 6450, 18, 1289, 12, 7996, 63, 77, 19226, 7734, 289, 5411, 289, 5411, 327, 261, 3085, 1621, 18, 1289, 907, 12, 529, 18, 10492, 9334, 4398, 13, 480, 446, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (DEBUG)
if (DEBUG) {
public IStatus handleDrop(CommonDropAdapter aDropAdapter, DropTargetEvent aDropTargetEvent, Object aTarget) { if (DEBUG) System.out .println("ResourceDropAdapterAssistant.handleDrop (begin)"); //$NON-NLS-1$ // alwaysOverwrite = false; if (aDropAdapter.getCurrentTarget() == null || aDropTargetEvent.data == null) { return Status.CANCEL_STATUS; } IStatus status = null; IResource[] resources = null; TransferData currentTransfer = aDropAdapter.getCurrentTransfer(); if (LocalSelectionTransfer.getTransfer().isSupportedType( currentTransfer)) { resources = getSelectedResources(); } else if (ResourceTransfer.getInstance().isSupportedType( currentTransfer)) { resources = (IResource[]) aDropTargetEvent.data; } if (FileTransfer.getInstance().isSupportedType(currentTransfer)) { status = performFileDrop(aDropAdapter, aDropTargetEvent.data); } else if (resources != null && resources.length > 0) { if (aDropAdapter.getCurrentOperation() == DND.DROP_COPY) { if (DEBUG) System.out .println("ResourceDropAdapterAssistant.handleDrop executing COPY."); //$NON-NLS-1$ status = performResourceCopy(aDropAdapter, getShell(), resources); } else { if (DEBUG) System.out .println("ResourceDropAdapterAssistant.handleDrop executing MOVE."); //$NON-NLS-1$ status = performResourceMove(aDropAdapter, resources); } } openError(status); IContainer target = getActualTarget((IResource) aDropAdapter .getCurrentTarget()); if (target != null && target.isAccessible()) try { target.refreshLocal(IResource.DEPTH_ONE, null); } catch (CoreException e) { } return status; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/3a23c3b9bac4db696a0452560047155775a707b7/ResourceDropAdapterAssistant.java/clean/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/navigator/resources/ResourceDropAdapterAssistant.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1482, 1640, 7544, 12, 6517, 7544, 4216, 279, 7544, 4216, 16, 1082, 202, 7544, 2326, 1133, 279, 7544, 2326, 1133, 16, 1033, 279, 2326, 13, 288, 202, 202, 430, 261, 9394, 13, 1082, 202, 3163, 18, 659, 6862, 202, 18, 8222, 2932, 1420, 7544, 4216, 2610, 17175, 18, 4110, 7544, 261, 10086, 2225, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 759, 3712, 20832, 273, 629, 31, 202, 202, 430, 261, 69, 7544, 4216, 18, 588, 3935, 2326, 1435, 422, 446, 9506, 202, 20081, 279, 7544, 2326, 1133, 18, 892, 422, 446, 13, 288, 1082, 202, 2463, 2685, 18, 25268, 67, 8608, 31, 202, 202, 97, 202, 202, 45, 1482, 1267, 273, 446, 31, 202, 202, 45, 1420, 8526, 2703, 273, 446, 31, 202, 202, 5912, 751, 783, 5912, 273, 279, 7544, 4216, 18, 588, 3935, 5912, 5621, 202, 202, 430, 261, 2042, 6233, 5912, 18, 588, 5912, 7675, 291, 7223, 559, 12, 9506, 202, 2972, 5912, 3719, 288, 1082, 202, 4683, 273, 16625, 3805, 5621, 202, 202, 97, 469, 309, 261, 1420, 5912, 18, 588, 1442, 7675, 291, 7223, 559, 12, 9506, 202, 2972, 5912, 3719, 288, 1082, 202, 4683, 273, 261, 45, 1420, 63, 5717, 279, 7544, 2326, 1133, 18, 892, 31, 202, 202, 97, 202, 202, 430, 261, 812, 5912, 18, 588, 1442, 7675, 291, 7223, 559, 12, 2972, 5912, 3719, 288, 1082, 202, 2327, 273, 3073, 812, 7544, 12, 69, 7544, 4216, 16, 279, 7544, 2326, 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, 225, 202, 482, 467, 1482, 1640, 7544, 12, 6517, 7544, 4216, 279, 7544, 4216, 16, 1082, 202, 7544, 2326, 1133, 279, 7544, 2326, 1133, 16, 1033, 279, 2326, 13, 288, 202, 202, 430, 261, 9394, 13, 1082, 202, 3163, 18, 659, 6862, 202, 18, 8222, 2932, 1420, 7544, 4216, 2610, 17175, 18, 4110, 7544, 261, 10086, 2225, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 759, 3712, 20832, 273, 629, 31, 202, 202, 430, 261, 69, 7544, 4216, 18, 588, 3935, 2326, 1435, 422, 446, 9506, 202, 20081, 279, 7544, 2326, 1133, 18, 892, 422, 446, 13, 288, 1082, 202, 2463, 2685, 18, 25268, 67, 8608, 31, 202, 202, 97, 202, 202, 45, 1482, 1267, 273, 446, 2 ]
} catch(Exception e) { _callback.error(e);
} catch(Throwable t) { _callback.error(t);
public void run() { try { loadSettingsBlocking(notifyOnClearFinal); } catch(Exception e) { _callback.error(e); } }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/e4b24ef58cc77022f26819a07ebcb80a084e285e/FileManager.java/buggy/components/gnutella-core/src/main/java/com/limegroup/gnutella/FileManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 1086, 1435, 288, 6862, 202, 698, 288, 25083, 202, 945, 2628, 8728, 12, 12336, 1398, 9094, 7951, 1769, 6862, 202, 97, 1044, 12, 503, 425, 13, 288, 25083, 202, 67, 3394, 18, 1636, 12, 73, 1769, 6862, 202, 97, 7734, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 1086, 1435, 288, 6862, 202, 698, 288, 25083, 202, 945, 2628, 8728, 12, 12336, 1398, 9094, 7951, 1769, 6862, 202, 97, 1044, 12, 503, 425, 13, 288, 25083, 202, 67, 3394, 18, 1636, 12, 73, 1769, 6862, 202, 97, 7734, 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 ]
public void widgetSelected(SelectionEvent e) { if (!bEnableEvents) { return; } if (e.getSource().equals(cmbDataType)) { if (cmbDataType.getText().equals("Number")) { slStandardDetails.topControl = cmpStandardNumberDetails; slAdvancedDetails.topControl = cmpAdvancedNumberDetails; updateUIState(); } else { slStandardDetails.topControl = cmpStandardDateDetails; slAdvancedDetails.topControl = cmpAdvancedDateDetails; updateUIState(); } cmpStandardDetails.layout(); cmpAdvancedDetails.layout(); } else if (e.getSource() instanceof Button) { updateUIState(); } }
public void widgetSelected( SelectionEvent e ) { if ( !bEnableEvents ) { return; } if ( e.getSource( ).equals( cmbDataType ) ) { if ( cmbDataType.getText( ).equals( "Number" ) ) { slStandardDetails.topControl = cmpStandardNumberDetails; slAdvancedDetails.topControl = cmpAdvancedNumberDetails; updateUIState( ); } else { slStandardDetails.topControl = cmpStandardDateDetails; slAdvancedDetails.topControl = cmpAdvancedDateDetails; updateUIState( ); } cmpStandardDetails.layout( ); cmpAdvancedDetails.layout( ); } else if ( e.getSource( ) instanceof Button ) { updateUIState( ); } }
public void widgetSelected(SelectionEvent e) { if (!bEnableEvents) { return; } if (e.getSource().equals(cmbDataType)) { if (cmbDataType.getText().equals("Number")) //$NON-NLS-1$ { slStandardDetails.topControl = cmpStandardNumberDetails; slAdvancedDetails.topControl = cmpAdvancedNumberDetails; updateUIState(); } else { slStandardDetails.topControl = cmpStandardDateDetails; slAdvancedDetails.topControl = cmpAdvancedDateDetails; updateUIState(); } cmpStandardDetails.layout(); cmpAdvancedDetails.layout(); } else if (e.getSource() instanceof Button) { updateUIState(); } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/c2635683b569bc35b628d25cbf49853caae225fa/FormatSpecifierComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FormatSpecifierComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 565, 288, 3639, 309, 16051, 70, 8317, 3783, 13, 3639, 288, 5411, 327, 31, 3639, 289, 3639, 309, 261, 73, 18, 588, 1830, 7675, 14963, 12, 71, 1627, 6273, 3719, 3639, 288, 5411, 309, 261, 71, 1627, 6273, 18, 588, 1528, 7675, 14963, 2932, 1854, 6, 3719, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 288, 7734, 2020, 8336, 3790, 18, 3669, 3367, 273, 9411, 8336, 1854, 3790, 31, 7734, 2020, 23618, 3790, 18, 3669, 3367, 273, 9411, 23618, 1854, 3790, 31, 7734, 1089, 5370, 1119, 5621, 5411, 289, 5411, 469, 5411, 288, 7734, 2020, 8336, 3790, 18, 3669, 3367, 273, 9411, 8336, 1626, 3790, 31, 7734, 2020, 23618, 3790, 18, 3669, 3367, 273, 9411, 23618, 1626, 3790, 31, 7734, 1089, 5370, 1119, 5621, 5411, 289, 5411, 9411, 8336, 3790, 18, 6741, 5621, 5411, 9411, 23618, 3790, 18, 6741, 5621, 3639, 289, 3639, 469, 309, 261, 73, 18, 588, 1830, 1435, 1276, 12569, 13, 3639, 288, 5411, 1089, 5370, 1119, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 565, 288, 3639, 309, 16051, 70, 8317, 3783, 13, 3639, 288, 5411, 327, 31, 3639, 289, 3639, 309, 261, 73, 18, 588, 1830, 7675, 14963, 12, 71, 1627, 6273, 3719, 3639, 288, 5411, 309, 261, 71, 1627, 6273, 18, 588, 1528, 7675, 14963, 2932, 1854, 6, 3719, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 288, 7734, 2020, 8336, 3790, 18, 3669, 3367, 273, 9411, 8336, 1854, 3790, 31, 7734, 2020, 23618, 3790, 18, 3669, 3367, 273, 9411, 23618, 1854, 3790, 31, 7734, 1089, 5370, 1119, 5621, 5411, 289, 5411, 469, 5411, 288, 7734, 2020, 8336, 3790, 18, 3669, 3367, 273, 9411, 8336, 1626, 3790, 31, 7734, 2020, 23618, 2 ]
this.getPids().getAPids().remove(audioPid); for (int i=0; i<this.getPids().getAPids().size(); i++) { BOPid pid = (BOPid)this.getPids().getAPids().get(i); execString = execString+",0x"+pid.getNumber();
if (execString.indexOf("$aPid")>-1) { execString = SerFormatter.replace(execString, "$aPid", "0x"+audioPid.getNumber()); this.getPids().getAPids().remove(audioPid); for (int i=0; i<this.getPids().getAPids().size(); i++) { BOPid pid = (BOPid)this.getPids().getAPids().get(i); execString = execString+",0x"+pid.getNumber(); }
private String getPlaybackRequestString(BOPlaybackOption option, BOPid audioPid){ String execString = option.getPlaybackOption(); String vPid = "0x" + this.getPids().getVPid().getNumber(); String ip = ControlMain.getBoxIpOfActiveBox(); String pmt = "0x"+this.getPids().getPmtPid().getNumber(); execString = SerFormatter.replace(execString, "$pmt", pmt); execString = SerFormatter.replace(execString, "$ip", ip); execString = SerFormatter.replace(execString, "$vPid", vPid); execString = SerFormatter.replace(execString, "$aPid", "0x"+audioPid.getNumber()); this.getPids().getAPids().remove(audioPid); for (int i=0; i<this.getPids().getAPids().size(); i++) { BOPid pid = (BOPid)this.getPids().getAPids().get(i); execString = execString+",0x"+pid.getNumber(); } return execString; }
13062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13062/6231871adb7866e3e06044f37d6da4d4ef786617/ControlProgramTab.java/buggy/jtg/control/ControlProgramTab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 1689, 5544, 823, 691, 780, 12, 5315, 30569, 1895, 1456, 16, 605, 3665, 350, 7447, 12478, 15329, 202, 202, 780, 1196, 780, 273, 1456, 18, 588, 30569, 1895, 5621, 3639, 514, 331, 12478, 273, 315, 20, 92, 6, 397, 333, 18, 588, 52, 2232, 7675, 588, 58, 12478, 7675, 588, 1854, 5621, 3639, 514, 2359, 273, 8888, 6376, 18, 588, 3514, 5273, 951, 3896, 3514, 5621, 3639, 514, 293, 1010, 273, 315, 20, 92, 6, 15, 2211, 18, 588, 52, 2232, 7675, 588, 52, 1010, 12478, 7675, 588, 1854, 5621, 3639, 1196, 780, 273, 1275, 5074, 18, 2079, 12, 4177, 780, 16, 4662, 84, 1010, 3113, 293, 1010, 1769, 3639, 1196, 780, 273, 1275, 5074, 18, 2079, 12, 4177, 780, 16, 4662, 625, 3113, 2359, 1769, 3639, 1196, 780, 273, 1275, 5074, 18, 2079, 12, 4177, 780, 16, 4662, 90, 12478, 3113, 331, 12478, 1769, 3639, 1196, 780, 273, 1275, 5074, 18, 2079, 12, 4177, 780, 16, 4662, 69, 12478, 3113, 315, 20, 92, 6, 15, 11509, 12478, 18, 588, 1854, 10663, 3639, 333, 18, 588, 52, 2232, 7675, 588, 2203, 2232, 7675, 4479, 12, 11509, 12478, 1769, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 2211, 18, 588, 52, 2232, 7675, 588, 2203, 2232, 7675, 1467, 5621, 277, 27245, 288, 5411, 605, 3665, 350, 4231, 273, 261, 38, 3665, 350, 13, 2211, 18, 588, 52, 2232, 7675, 588, 2203, 2232, 7675, 588, 12, 77, 1769, 5411, 1196, 780, 273, 1196, 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, 514, 1689, 5544, 823, 691, 780, 12, 5315, 30569, 1895, 1456, 16, 605, 3665, 350, 7447, 12478, 15329, 202, 202, 780, 1196, 780, 273, 1456, 18, 588, 30569, 1895, 5621, 3639, 514, 331, 12478, 273, 315, 20, 92, 6, 397, 333, 18, 588, 52, 2232, 7675, 588, 58, 12478, 7675, 588, 1854, 5621, 3639, 514, 2359, 273, 8888, 6376, 18, 588, 3514, 5273, 951, 3896, 3514, 5621, 3639, 514, 293, 1010, 273, 315, 20, 92, 6, 15, 2211, 18, 588, 52, 2232, 7675, 588, 52, 1010, 12478, 7675, 588, 1854, 5621, 3639, 1196, 780, 273, 1275, 5074, 18, 2079, 12, 4177, 780, 16, 4662, 84, 1010, 3113, 293, 1010, 1769, 3639, 1196, 780, 273, 1275, 5074, 2 ]
public String[] getCommandLine() throws Exception;
String[] getCommandLine() throws Exception;
public String[] getCommandLine() throws Exception;
7982 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7982/c9813fecc3f4dbe103f9099ceda72b9362dc08b1/NodeServesClient.java/buggy/server/src/org/cougaar/tools/server/NodeServesClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 8526, 12856, 1670, 1435, 1216, 1185, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 514, 8526, 12856, 1670, 1435, 1216, 1185, 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, -100, -100, -100, -100, -100, -100, -100 ]
System.out.println("ARON: Checking dir: " + dir_name);
private void initRepository() { mRepos = new ConfigDefinitionRepository(); // Get a list of the definition files to load List def_file_list = new ArrayList(); List def_path = getDefinitionPath(); for (Iterator itr = def_path.iterator(); itr.hasNext(); ) { // Check if this part of the path is a valid directory we can read String dir_name = (String)itr.next(); System.out.println("ARON: Checking dir: " + dir_name); File dir = new File(dir_name); if (dir.exists() && dir.isDirectory() && dir.canRead()) { // Get a list of all the config definition files in the directory File[] def_files = dir.listFiles(new FilenameFilter() { public boolean accept(File dir, String file) { System.out.println("ARON: Filter " + file); // Only accept files with a .jdef extension if (file.endsWith(".jdef")) { System.out.println("ARON: Found " + file); File def_file = new File(dir, file); if (def_file.canRead()) { return true; } } return false; } }); // Add the files to the list of files to load for (int i=0; i<def_files.length; ++i) { def_file_list.add(def_files[i]); } } } // Load in the definitions for each file and place them in the repository for (Iterator itr = def_file_list.iterator(); itr.hasNext(); ) { try { // Attempt to load in the definitions in the file File def_file = (File)itr.next(); System.out.println("Attempting to read jdef file: " + def_file.getName()); ConfigDefinitionReader reader = new ConfigDefinitionReader(def_file); List defs = reader.readDefinition(); System.out.println("Successfully read jdef file: " + def_file.getName()); for (Iterator def_itr = defs.iterator(); def_itr.hasNext(); ) { ConfigDefinition def = (ConfigDefinition)def_itr.next(); System.out.println("Loading Definition: " + def.getName()); mRepos.add(def); } } catch (ParseException pe) { pe.printStackTrace(); } catch (IOException ioe) { ioe.printStackTrace(); } } }
7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/9376e2ffac359e0a509f6194e7bcb0d4e5e64221/ConfigBrokerImpl.java/buggy/modules/jackal/config/org/vrjuggler/jccl/config/ConfigBrokerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1208, 3305, 1435, 282, 288, 1377, 312, 28453, 273, 394, 1903, 1852, 3305, 5621, 1377, 368, 968, 279, 666, 434, 326, 2379, 1390, 358, 1262, 1377, 987, 1652, 67, 768, 67, 1098, 273, 394, 2407, 5621, 1377, 987, 1652, 67, 803, 273, 12762, 743, 5621, 1377, 364, 261, 3198, 11176, 273, 1652, 67, 803, 18, 9838, 5621, 11176, 18, 5332, 2134, 5621, 262, 1377, 288, 540, 368, 2073, 309, 333, 1087, 434, 326, 589, 353, 279, 923, 1867, 732, 848, 855, 540, 514, 1577, 67, 529, 273, 261, 780, 13, 305, 86, 18, 4285, 5621, 1171, 1387, 1577, 273, 394, 1387, 12, 1214, 67, 529, 1769, 540, 309, 261, 1214, 18, 1808, 1435, 597, 1577, 18, 291, 2853, 1435, 597, 1577, 18, 4169, 1994, 10756, 540, 288, 5411, 368, 968, 279, 666, 434, 777, 326, 642, 2379, 1390, 316, 326, 1867, 5411, 1387, 8526, 1652, 67, 2354, 273, 1577, 18, 1098, 2697, 12, 2704, 16671, 1586, 1435, 5411, 288, 9079, 1071, 1250, 2791, 12, 812, 1577, 16, 514, 585, 13, 9079, 288, 5375, 2332, 18, 659, 18, 8222, 2932, 985, 673, 30, 4008, 315, 397, 585, 1769, 5375, 368, 5098, 2791, 1390, 598, 279, 263, 78, 536, 2710, 5375, 309, 261, 768, 18, 5839, 1190, 2932, 18, 78, 536, 6, 3719, 5375, 288, 5397, 2332, 18, 659, 18, 8222, 2932, 985, 673, 30, 10750, 315, 397, 585, 1769, 5397, 1387, 1652, 67, 768, 273, 394, 1387, 12, 1214, 16, 585, 1769, 5397, 309, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1208, 3305, 1435, 282, 288, 1377, 312, 28453, 273, 394, 1903, 1852, 3305, 5621, 1377, 368, 968, 279, 666, 434, 326, 2379, 1390, 358, 1262, 1377, 987, 1652, 67, 768, 67, 1098, 273, 394, 2407, 5621, 1377, 987, 1652, 67, 803, 273, 12762, 743, 5621, 1377, 364, 261, 3198, 11176, 273, 1652, 67, 803, 18, 9838, 5621, 11176, 18, 5332, 2134, 5621, 262, 1377, 288, 540, 368, 2073, 309, 333, 1087, 434, 326, 589, 353, 279, 923, 1867, 732, 848, 855, 540, 514, 1577, 67, 529, 273, 261, 780, 13, 305, 86, 18, 4285, 5621, 1171, 1387, 1577, 273, 394, 1387, 12, 1214, 67, 529, 1769, 540, 309, 261, 1214, 18, 1808, 1435, 597, 1577, 18, 2 ]
catch ( IOException e) { } catch (URISyntaxException e) { }
private void getDriverHomeDir() { assert driverHomeDir == null; try { OdaDriverConfiguration driverConfig = ConfigManager.getInstance().getDriverConfig( DRIVER_NAME ); if ( driverConfig != null ) { URL url = driverConfig.getDriverLocation(); URI uri = new URI(url.toString()); driverHomeDir = new File( uri.getPath(), DRIVER_DIRECTORY ); } } catch ( OdaException e) { // TODO: log exception } catch ( IOException e) { // TODO: log exception } catch (URISyntaxException e) { // TODO log exception } if ( driverHomeDir == null ) { //if cannot find driver directory in plugin path, try to find it in // current path driverHomeDir = new File(DRIVER_DIRECTORY); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/556bf9482d3b241b882054d5cafaeb1c380421e9/JDBCDriverManager.java/buggy/data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/JDBCDriverManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 918, 15885, 8684, 1621, 1435, 21114, 202, 95, 1082, 202, 11231, 3419, 8684, 1621, 422, 446, 31, 1082, 202, 698, 1875, 202, 95, 9506, 202, 51, 2414, 4668, 1750, 3419, 809, 273, 4405, 202, 809, 1318, 18, 588, 1442, 7675, 588, 4668, 809, 12, 463, 20078, 67, 1985, 11272, 9506, 202, 430, 261, 3419, 809, 480, 446, 262, 9506, 202, 95, 6862, 565, 1976, 880, 273, 3419, 809, 18, 588, 4668, 2735, 5621, 6862, 565, 3699, 2003, 273, 394, 3699, 12, 718, 18, 10492, 10663, 6862, 202, 7407, 8684, 1621, 273, 394, 1387, 12, 2003, 18, 588, 743, 9334, 15106, 202, 27720, 67, 17229, 11272, 9506, 202, 97, 1082, 202, 97, 1082, 202, 14683, 261, 531, 2414, 503, 425, 13, 1875, 202, 95, 9506, 202, 759, 2660, 30, 613, 1520, 1082, 202, 97, 1082, 202, 14683, 261, 1860, 425, 13, 1875, 202, 95, 9506, 202, 759, 2660, 30, 613, 1520, 1082, 202, 97, 1044, 261, 3098, 14714, 425, 13, 288, 7734, 368, 2660, 613, 1520, 5411, 289, 6862, 1082, 202, 430, 261, 3419, 8684, 1621, 422, 446, 262, 1082, 202, 95, 9506, 202, 759, 430, 2780, 1104, 3419, 1867, 316, 1909, 589, 16, 775, 358, 1104, 518, 316, 9506, 202, 759, 783, 589, 9506, 202, 7407, 8684, 1621, 273, 394, 1387, 12, 27720, 67, 17229, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3196, 202, 1152, 918, 15885, 8684, 1621, 1435, 21114, 202, 95, 1082, 202, 11231, 3419, 8684, 1621, 422, 446, 31, 1082, 202, 698, 1875, 202, 95, 9506, 202, 51, 2414, 4668, 1750, 3419, 809, 273, 4405, 202, 809, 1318, 18, 588, 1442, 7675, 588, 4668, 809, 12, 463, 20078, 67, 1985, 11272, 9506, 202, 430, 261, 3419, 809, 480, 446, 262, 9506, 202, 95, 6862, 565, 1976, 880, 273, 3419, 809, 18, 588, 4668, 2735, 5621, 6862, 565, 3699, 2003, 273, 394, 3699, 12, 718, 18, 10492, 10663, 6862, 202, 7407, 8684, 1621, 273, 394, 1387, 12, 2003, 18, 588, 743, 9334, 15106, 202, 27720, 67, 17229, 11272, 9506, 202, 97, 1082, 202, 97, 1082, 202, 14683, 261, 531, 2 ]
System.out.println("Running XML Test '" + tr.getTest().getName() + "' in Parallel"); runTest(tr); } catch(Exception ex) { ex.printStackTrace();
Utils.log("[SuiteWorker]", 4, "Running XML Test '" + m_testRunner.getTest().getName() + "' in Parallel"); runTest(m_testRunner); } catch(Exception ex) { ex.printStackTrace();
public void run() { try { System.out.println("Running XML Test '" + tr.getTest().getName() + "' in Parallel"); runTest(tr); } catch(Exception ex) { ex.printStackTrace(); } }
46166 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46166/1942e422ba883fe38f1ee641e6b0e4ac97bab5f6/SuiteRunner.java/buggy/src/main/org/testng/SuiteRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 775, 288, 7734, 2332, 18, 659, 18, 8222, 2932, 7051, 3167, 7766, 2119, 397, 7682, 433, 18, 588, 4709, 7675, 17994, 1435, 397, 2491, 316, 20203, 8863, 7734, 1086, 4709, 12, 313, 1769, 5411, 289, 1044, 12, 503, 431, 13, 288, 7734, 431, 18, 1188, 6332, 5621, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 775, 288, 7734, 2332, 18, 659, 18, 8222, 2932, 7051, 3167, 7766, 2119, 397, 7682, 433, 18, 588, 4709, 7675, 17994, 1435, 397, 2491, 316, 20203, 8863, 7734, 1086, 4709, 12, 313, 1769, 5411, 289, 1044, 12, 503, 431, 13, 288, 7734, 431, 18, 1188, 6332, 5621, 5411, 289, 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 ]
if (n instanceof ChainBox) checkExit((ChainBox) n,e);
if (n instanceof ChainBox) { if (!checkEventInNodeInterior(n,e)) super.mouseExited(e); }
public void mouseExited(PInputEvent e) { PNode n = e.getPickedNode(); if (n instanceof ChainBox) checkExit((ChainBox) n,e); else super.mouseExited(e); e.setHandled(true); }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/6a77f59baeb1319a898414f2998d48c334a1c678/ChainPaletteEventHandler.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainPaletteEventHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7644, 6767, 329, 12, 52, 1210, 1133, 425, 13, 288, 202, 202, 52, 907, 290, 273, 425, 18, 588, 17968, 329, 907, 5621, 202, 202, 430, 261, 82, 1276, 7824, 3514, 13, 1082, 202, 1893, 6767, 12443, 3893, 3514, 13, 290, 16, 73, 1769, 202, 202, 12107, 1875, 202, 9565, 18, 11697, 6767, 329, 12, 73, 1769, 202, 202, 73, 18, 542, 23186, 12, 3767, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7644, 6767, 329, 12, 52, 1210, 1133, 425, 13, 288, 202, 202, 52, 907, 290, 273, 425, 18, 588, 17968, 329, 907, 5621, 202, 202, 430, 261, 82, 1276, 7824, 3514, 13, 1082, 202, 1893, 6767, 12443, 3893, 3514, 13, 290, 16, 73, 1769, 202, 202, 12107, 1875, 202, 9565, 18, 11697, 6767, 329, 12, 73, 1769, 202, 202, 73, 18, 542, 23186, 12, 3767, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public DefaultPropertyConfigurer( Class type, Method createMethod, Method addMethod )
public DefaultPropertyConfigurer( final int propIndex, final Class type, final Method createMethod, final Method addMethod, final int maxCount )
public DefaultPropertyConfigurer( Class type, Method createMethod, Method addMethod ) { if ( type.isPrimitive() ) { type = getComplexTypeFor(type); } m_type = type; m_createMethod = createMethod; m_addMethod = addMethod; }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/6ef2f5cbd5939352124cb195c31b0a01ad610893/DefaultPropertyConfigurer.java/buggy/proposal/myrmidon/src/java/org/apache/myrmidon/components/configurer/DefaultPropertyConfigurer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2989, 1396, 809, 11278, 12, 1659, 618, 16, 4766, 1377, 2985, 752, 1305, 16, 4766, 1377, 2985, 18223, 262, 565, 288, 3639, 309, 261, 618, 18, 291, 9840, 1435, 262, 3639, 288, 5411, 618, 273, 336, 12795, 559, 1290, 12, 723, 1769, 3639, 289, 3639, 312, 67, 723, 273, 618, 31, 3639, 312, 67, 2640, 1305, 273, 752, 1305, 31, 3639, 312, 67, 1289, 1305, 273, 18223, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2989, 1396, 809, 11278, 12, 1659, 618, 16, 4766, 1377, 2985, 752, 1305, 16, 4766, 1377, 2985, 18223, 262, 565, 288, 3639, 309, 261, 618, 18, 291, 9840, 1435, 262, 3639, 288, 5411, 618, 273, 336, 12795, 559, 1290, 12, 723, 1769, 3639, 289, 3639, 312, 67, 723, 273, 618, 31, 3639, 312, 67, 2640, 1305, 273, 752, 1305, 31, 3639, 312, 67, 1289, 1305, 273, 18223, 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 ]
private static void loglog4testng(String pmessage) { if (debug) { out.println("[log4testng] [debug] " + pmessage); }
private static void loglog4testng(String pmessage) { if(debug) { out.println("[log4testng] [debug] " + pmessage); }
private static void loglog4testng(String pmessage) { if (debug) { out.println("[log4testng] [debug] " + pmessage); } }
47060 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47060/96769faec3ab62f18300a49b416f1c5e2f108496/Logger.java/clean/src/main/org/testng/log4testng/Logger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 613, 1330, 24, 3813, 3368, 12, 780, 293, 2150, 13, 225, 288, 1377, 309, 261, 4148, 13, 1377, 288, 1850, 596, 18, 8222, 2932, 63, 1330, 24, 3813, 3368, 65, 306, 4148, 65, 315, 397, 293, 2150, 1769, 1377, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 613, 1330, 24, 3813, 3368, 12, 780, 293, 2150, 13, 225, 288, 1377, 309, 261, 4148, 13, 1377, 288, 1850, 596, 18, 8222, 2932, 63, 1330, 24, 3813, 3368, 65, 306, 4148, 65, 315, 397, 293, 2150, 1769, 1377, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
try {
} try {
private void validateDTDattribute(QName element, int attValue, XMLAttributeDecl attributeDecl) throws Exception{ AttributeValidator av = null; switch (attributeDecl.type) { case XMLAttributeDecl.TYPE_ENTITY: { boolean isAlistAttribute = attributeDecl.list;//Caveat - Save this information because invalidStandaloneAttDef String unTrimValue = fStringPool.toString(attValue); String value = unTrimValue.trim(); //System.out.println("value = " + value ); //changes fTempAttDef if (fValidationEnabled) { if (value != unTrimValue) { if (invalidStandaloneAttDef(element, attributeDecl.name)) { reportRecoverableXMLError(XMLMessages.MSG_ATTVALUE_CHANGED_DURING_NORMALIZATION_WHEN_STANDALONE, XMLMessages.VC_STANDALONE_DOCUMENT_DECLARATION, fStringPool.toString(attributeDecl.name.rawname), unTrimValue, value); } } } try { if ( isAlistAttribute ) { fValENTITIES.validate( value, null ); } else { fValENTITY.validate( value, null ); } } catch ( InvalidDatatypeValueException ex ) { if ( ex.getMajorCode() != 1 && ex.getMinorCode() != -1 ) { reportRecoverableXMLError(ex.getMajorCode(), ex.getMinorCode(), fStringPool.toString( attributeDecl.name.rawname), value ); } else { System.err.println("Error: " + ex.getLocalizedMessage() );//Should not happen } } /*if (attributeDecl.list) { av = fAttValidatorENTITIES; } else { av = fAttValidatorENTITY; }*/ } break; case XMLAttributeDecl.TYPE_ENUMERATION: av = fAttValidatorENUMERATION; break; case XMLAttributeDecl.TYPE_ID: { String unTrimValue = fStringPool.toString(attValue); String value = unTrimValue.trim(); if (fValidationEnabled) { if (value != unTrimValue) { if (invalidStandaloneAttDef(element, attributeDecl.name)) { reportRecoverableXMLError(XMLMessages.MSG_ATTVALUE_CHANGED_DURING_NORMALIZATION_WHEN_STANDALONE, XMLMessages.VC_STANDALONE_DOCUMENT_DECLARATION, fStringPool.toString(attributeDecl.name.rawname), unTrimValue, value); } } } try { //this.fIdDefs = (Hashtable) fValID.validate( value, null ); //System.out.println("this.fIdDefs = " + this.fIdDefs ); this.fStoreIDRef.setDatatypeObject( fValID.validate( value, null ) ); fValIDRef.validate( value, this.fStoreIDRef ); //just in case we called id after IDREF } catch ( InvalidDatatypeValueException ex ) { reportRecoverableXMLError(ex.getMajorCode(), ex.getMinorCode(), fStringPool.toString( attributeDecl.name.rawname), value ); } } break; case XMLAttributeDecl.TYPE_IDREF: { String unTrimValue = fStringPool.toString(attValue); String value = unTrimValue.trim(); boolean isAlistAttribute = attributeDecl.list;//Caveat - Save this information because invalidStandaloneAttDef //changes fTempAttDef if (fValidationEnabled) { if (value != unTrimValue) { if (invalidStandaloneAttDef(element, attributeDecl.name)) { reportRecoverableXMLError(XMLMessages.MSG_ATTVALUE_CHANGED_DURING_NORMALIZATION_WHEN_STANDALONE, XMLMessages.VC_STANDALONE_DOCUMENT_DECLARATION, fStringPool.toString(attributeDecl.name.rawname), unTrimValue, value); } } } try { if ( isAlistAttribute ) { fValIDRefs.validate( value, this.fStoreIDRef ); } else { fValIDRef.validate( value, this.fStoreIDRef ); } } catch ( InvalidDatatypeValueException ex ) { if ( ex.getMajorCode() != 1 && ex.getMinorCode() != -1 ) { reportRecoverableXMLError(ex.getMajorCode(), ex.getMinorCode(), fStringPool.toString( attributeDecl.name.rawname), value ); } else { System.err.println("Error: " + ex.getLocalizedMessage() );//Should not happen } } } break; case XMLAttributeDecl.TYPE_NOTATION: { /* WIP String unTrimValue = fStringPool.toString(attValue); String value = unTrimValue.trim(); if (fValidationEnabled) { if (value != unTrimValue) { if (invalidStandaloneAttDef(element, attributeDecl.name)) { reportRecoverableXMLError(XMLMessages.MSG_ATTVALUE_CHANGED_DURING_NORMALIZATION_WHEN_STANDALONE, XMLMessages.VC_STANDALONE_DOCUMENT_DECLARATION, fStringPool.toString(attributeDecl.name.rawname), unTrimValue, value); } } } try { //this.fIdDefs = (Hashtable) fValID.validate( value, null ); //System.out.println("this.fIdDefs = " + this.fIdDefs ); this.fStoreIDRef.setDatatypeObject( fValID.validate( value, null ) ); } catch ( InvalidDatatypeValueException ex ) { reportRecoverableXMLError(ex.getMajorCode(), ex.getMinorCode(), fStringPool.toString( attributeDecl.name.rawname), value ); } } */ av = fAttValidatorNOTATION; } break; case XMLAttributeDecl.TYPE_NMTOKEN: { String unTrimValue = fStringPool.toString(attValue); String value = unTrimValue.trim(); boolean isAlistAttribute = attributeDecl.list;//Caveat - Save this information because invalidStandaloneAttDef //changes fTempAttDef if (fValidationEnabled) { if (value != unTrimValue) { if (invalidStandaloneAttDef(element, attributeDecl.name)) { reportRecoverableXMLError(XMLMessages.MSG_ATTVALUE_CHANGED_DURING_NORMALIZATION_WHEN_STANDALONE, XMLMessages.VC_STANDALONE_DOCUMENT_DECLARATION, fStringPool.toString(attributeDecl.name.rawname), unTrimValue, value); } } } try { if ( isAlistAttribute ) { fValNMTOKENS.validate( value, null ); } else { fValNMTOKEN.validate( value, null ); } } catch ( InvalidDatatypeValueException ex ) { reportRecoverableXMLError(XMLMessages.MSG_NMTOKEN_INVALID, XMLMessages.VC_NAME_TOKEN, fStringPool.toString(attributeDecl.name.rawname), value);//TODO NMTOKENS messge } } break; } if ( av != null ) av.normalize(element, attributeDecl.name, attValue, attributeDecl.type, attributeDecl.enumeration); }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/b36768aae85d6d13bc8c8289ca78efb212c8fb8f/XMLValidator.java/buggy/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1954, 25728, 4589, 12, 13688, 930, 16, 509, 2403, 620, 16, 4766, 4202, 3167, 1499, 3456, 1566, 3456, 13, 1216, 1185, 95, 3639, 3601, 5126, 1712, 273, 446, 31, 3639, 1620, 261, 4589, 3456, 18, 723, 13, 288, 3639, 648, 3167, 1499, 3456, 18, 2399, 67, 11101, 30, 5411, 288, 7734, 1250, 353, 1067, 376, 1499, 273, 1566, 3456, 18, 1098, 31, 759, 39, 836, 270, 300, 7074, 333, 1779, 2724, 2057, 20612, 12451, 3075, 3262, 7734, 514, 225, 640, 14795, 620, 1377, 273, 284, 780, 2864, 18, 10492, 12, 4558, 620, 1769, 7734, 514, 225, 460, 5411, 273, 640, 14795, 620, 18, 5290, 5621, 7734, 368, 3163, 18, 659, 18, 8222, 2932, 1132, 273, 315, 397, 460, 11272, 4766, 1171, 9079, 368, 6329, 284, 7185, 3075, 3262, 7734, 309, 261, 74, 4354, 1526, 13, 288, 10792, 309, 261, 1132, 480, 640, 14795, 620, 13, 288, 13491, 309, 261, 5387, 20612, 12451, 3075, 3262, 12, 2956, 16, 1566, 3456, 18, 529, 3719, 288, 18701, 2605, 426, 17399, 4201, 668, 12, 4201, 5058, 18, 11210, 67, 789, 56, 4051, 67, 24435, 67, 40, 1099, 1360, 67, 15480, 25084, 67, 12557, 1157, 67, 882, 4307, 1013, 5998, 16, 4766, 8227, 3167, 5058, 18, 13464, 67, 882, 4307, 1013, 5998, 67, 18450, 67, 23956, 985, 2689, 16, 4766, 8227, 284, 780, 2864, 18, 10492, 12, 4589, 3456, 18, 529, 18, 1899, 529, 3631, 640, 14795, 620, 16, 460, 1769, 13491, 289, 10792, 289, 7734, 289, 7734, 289, 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, 1954, 25728, 4589, 12, 13688, 930, 16, 509, 2403, 620, 16, 4766, 4202, 3167, 1499, 3456, 1566, 3456, 13, 1216, 1185, 95, 3639, 3601, 5126, 1712, 273, 446, 31, 3639, 1620, 261, 4589, 3456, 18, 723, 13, 288, 3639, 648, 3167, 1499, 3456, 18, 2399, 67, 11101, 30, 5411, 288, 7734, 1250, 353, 1067, 376, 1499, 273, 1566, 3456, 18, 1098, 31, 759, 39, 836, 270, 300, 7074, 333, 1779, 2724, 2057, 20612, 12451, 3075, 3262, 7734, 514, 225, 640, 14795, 620, 1377, 273, 284, 780, 2864, 18, 10492, 12, 4558, 620, 1769, 7734, 514, 225, 460, 5411, 273, 640, 14795, 620, 18, 5290, 5621, 7734, 368, 3163, 18, 659, 18, 8222, 2932, 1132, 273, 315, 2 ]
public Object doInHibernate( Session session ) throws HibernateException { ExpressionExperiment toDeletePers = ( ExpressionExperiment ) session.merge( toDelete ); Set<BioAssayDimension> dims = new HashSet<BioAssayDimension>(); Collection<DesignElementDataVector> designElementDataVectors = toDeletePers .getDesignElementDataVectors(); int count = 0; AuditTrail at; // reused a couple times to delete the audit trails for ( DesignElementDataVector dv : designElementDataVectors ) { BioAssayDimension dim = dv.getBioAssayDimension(); dims.add( dim ); session.delete( dv ); if ( ++count % 1000 == 0 ) { log.info( count + " design Element data vectors deleted" ); } } for ( BioAssayDimension dim : dims ) { session.delete( dim ); } // Delete BioMaterials for ( BioAssay ba : toDeletePers.getBioAssays() ) { // fixme this needs to be here for lazy loading issues. Even though the AD isn't getting removed. // Not happy about this at all. but what to do? ba.getArrayDesignUsed().getCompositeSequences().size(); for ( BioMaterial bm : ba.getSamplesUsed() ) { session.delete( bm ); } // delete references to files on disk for ( LocalFile lf : ba.getDerivedDataFiles() ) { for ( LocalFile sf : lf.getSourceFiles() ) session.delete( sf ); session.delete( lf ); } // Delete raw data files if ( ba.getRawDataFile() != null ) session.delete( ba.getRawDataFile() ); // remove the bioassay audit trail at = ba.getAuditTrail(); if ( at != null ) { for ( AuditEvent event : at.getEvents() ) session.delete( event ); session.delete( at ); } log.info( "Removed BioAssay " + ba.getName() + " and its assciations." ); } // Remove audit information for ee from the db. We might want to keep this but...... at = toDeletePers.getAuditTrail(); if ( at != null ) { for ( AuditEvent event : at.getEvents() ) session.delete( event ); session.delete( at ); } session.delete( toDeletePers ); session.flush(); session.clear(); return null; }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/7afbf9af91060a013bf8035debf4e0fc0e53005f/ExpressionExperimentDaoImpl.java/buggy/gemma-mda/src/main/java/ubic/gemma/model/expression/experiment/ExpressionExperimentDaoImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 741, 382, 44, 24360, 12, 3877, 1339, 262, 1216, 670, 24360, 503, 288, 7734, 5371, 22338, 358, 2613, 14781, 273, 261, 5371, 22338, 262, 1339, 18, 2702, 12, 358, 2613, 11272, 7734, 1000, 32, 38, 1594, 2610, 528, 8611, 34, 9914, 273, 394, 6847, 32, 38, 1594, 2610, 528, 8611, 34, 5621, 7734, 2200, 32, 15478, 1046, 751, 5018, 34, 8281, 1046, 751, 21680, 273, 358, 2613, 14781, 13491, 263, 588, 15478, 1046, 751, 21680, 5621, 7734, 509, 1056, 273, 374, 31, 7734, 12975, 18107, 622, 31, 368, 23312, 279, 1825, 2268, 4124, 358, 1430, 326, 8215, 1284, 14573, 7734, 364, 261, 29703, 1046, 751, 5018, 12494, 294, 8281, 1046, 751, 21680, 262, 288, 10792, 21209, 2610, 528, 8611, 2464, 273, 12494, 18, 588, 38, 1594, 2610, 528, 8611, 5621, 10792, 9914, 18, 1289, 12, 2464, 11272, 10792, 1339, 18, 3733, 12, 12494, 11272, 10792, 309, 261, 965, 1883, 738, 4336, 422, 374, 262, 288, 13491, 613, 18, 1376, 12, 1056, 397, 315, 8281, 3010, 501, 10046, 4282, 6, 11272, 10792, 289, 7734, 289, 7734, 364, 261, 21209, 2610, 528, 8611, 2464, 294, 9914, 262, 288, 10792, 1339, 18, 3733, 12, 2464, 11272, 7734, 289, 7734, 368, 2504, 21209, 11790, 87, 7734, 364, 261, 21209, 2610, 528, 9846, 294, 358, 2613, 14781, 18, 588, 38, 1594, 2610, 8271, 1435, 262, 288, 10792, 368, 2917, 3501, 333, 4260, 358, 506, 2674, 364, 7962, 7153, 8296, 18, 25067, 11376, 326, 11738, 5177, 1404, 8742, 3723, 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, 2398, 1071, 1033, 741, 382, 44, 24360, 12, 3877, 1339, 262, 1216, 670, 24360, 503, 288, 7734, 5371, 22338, 358, 2613, 14781, 273, 261, 5371, 22338, 262, 1339, 18, 2702, 12, 358, 2613, 11272, 7734, 1000, 32, 38, 1594, 2610, 528, 8611, 34, 9914, 273, 394, 6847, 32, 38, 1594, 2610, 528, 8611, 34, 5621, 7734, 2200, 32, 15478, 1046, 751, 5018, 34, 8281, 1046, 751, 21680, 273, 358, 2613, 14781, 13491, 263, 588, 15478, 1046, 751, 21680, 5621, 7734, 509, 1056, 273, 374, 31, 7734, 12975, 18107, 622, 31, 368, 23312, 279, 1825, 2268, 4124, 358, 1430, 326, 8215, 1284, 14573, 7734, 364, 261, 29703, 1046, 751, 5018, 12494, 294, 8281, 1046, 751, 21680, 262, 288, 10792, 21209, 2 ]
Category cat = new Category(label);
TaskCategory cat = new TaskCategory(label);
public void run() { String label = getLabelNameFromUser("Category"); if(label == null) return; Category cat = new Category(label); MylarTasksPlugin.getTaskListManager().getTaskList().addCategory(cat); viewer.refresh(); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/273d665c03a440d803466633f77834fcb5484dc6/TaskListView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 514, 1433, 273, 11237, 461, 1265, 1299, 2932, 4457, 8863, 5411, 309, 12, 1925, 422, 446, 13, 327, 31, 5411, 3837, 4457, 6573, 273, 394, 3837, 4457, 12, 1925, 1769, 5411, 8005, 7901, 6685, 3773, 18, 588, 2174, 682, 1318, 7675, 588, 2174, 682, 7675, 1289, 4457, 12, 2574, 1769, 5411, 14157, 18, 9144, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 540, 1071, 918, 1086, 1435, 288, 5411, 514, 1433, 273, 11237, 461, 1265, 1299, 2932, 4457, 8863, 5411, 309, 12, 1925, 422, 446, 13, 327, 31, 5411, 3837, 4457, 6573, 273, 394, 3837, 4457, 12, 1925, 1769, 5411, 8005, 7901, 6685, 3773, 18, 588, 2174, 682, 1318, 7675, 588, 2174, 682, 7675, 1289, 4457, 12, 2574, 1769, 5411, 14157, 18, 9144, 5621, 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 ]
public org.quickfix.field.UnderlyingCFICode getUnderlyingCFICode() throws FieldNotFound { org.quickfix.field.UnderlyingCFICode value = new org.quickfix.field.UnderlyingCFICode();
public quickfix.field.UnderlyingCFICode getUnderlyingCFICode() throws FieldNotFound { quickfix.field.UnderlyingCFICode value = new quickfix.field.UnderlyingCFICode();
public org.quickfix.field.UnderlyingCFICode getUnderlyingCFICode() throws FieldNotFound { org.quickfix.field.UnderlyingCFICode value = new org.quickfix.field.UnderlyingCFICode(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MassQuote.java/clean/src/java/src/quickfix/fix44/MassQuote.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 39, 1653, 1085, 10833, 765, 6291, 39, 1653, 1085, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 39, 1653, 1085, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 39, 1653, 1085, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 39, 1653, 1085, 10833, 765, 6291, 39, 1653, 1085, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 39, 1653, 1085, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 39, 1653, 1085, 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 ]
return "LOCALROOT";
return AntStringUtils.replace(root, WOPropertiesHandler.LOCAL_ROOT, "LOCALROOT");
public String getRootPrefix() throws BuildException { if (isWORoot()) { return "WOROOT"; } else if (isHomeRoot()) { return "HOMEROOT"; } else if (isLocalRoot()) { return "LOCALROOT"; } else if (isAbsoluteRoot()) { return getRoot(); } else { throw new BuildException("Unrecognized or indefined root: " + root); } }
46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/1dd59c24b0c6f468a4d83c050331cad4e6672d51/FrameworkSet.java/clean/src/java/org/objectstyle/woproject/ant/FrameworkSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 7656, 2244, 1435, 1216, 18463, 288, 202, 202, 430, 261, 291, 5613, 1632, 10756, 288, 1082, 202, 2463, 315, 5613, 51, 1974, 14432, 202, 202, 97, 469, 309, 261, 291, 8684, 2375, 10756, 288, 1082, 202, 2463, 315, 44, 1872, 13309, 1974, 14432, 202, 202, 97, 469, 309, 261, 291, 2042, 2375, 10756, 288, 1082, 202, 2463, 315, 14922, 9185, 14432, 202, 202, 97, 469, 309, 261, 291, 10368, 2375, 10756, 288, 1082, 202, 2463, 7656, 5621, 202, 202, 97, 469, 288, 1082, 202, 12849, 394, 18463, 2932, 19648, 578, 316, 2178, 1365, 30, 315, 397, 1365, 1769, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 514, 7656, 2244, 1435, 1216, 18463, 288, 202, 202, 430, 261, 291, 5613, 1632, 10756, 288, 1082, 202, 2463, 315, 5613, 51, 1974, 14432, 202, 202, 97, 469, 309, 261, 291, 8684, 2375, 10756, 288, 1082, 202, 2463, 315, 44, 1872, 13309, 1974, 14432, 202, 202, 97, 469, 309, 261, 291, 2042, 2375, 10756, 288, 1082, 202, 2463, 315, 14922, 9185, 14432, 202, 202, 97, 469, 309, 261, 291, 10368, 2375, 10756, 288, 1082, 202, 2463, 7656, 5621, 202, 202, 97, 469, 288, 1082, 202, 12849, 394, 18463, 2932, 19648, 578, 316, 2178, 1365, 30, 315, 397, 1365, 1769, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (stringStart >= 0 || stringSoFar != null) { hadCFSinceStringStart = true;
if (offset != 0) { char tmp = buffer[offset]; buffer[offset] = buffer[offset - 1]; buffer[offset - 1] = tmp;
private void skipFormatChar() { if (checkSelf && !formatChar(buffer[offset])) Context.codeBug(); if (stringStart >= 0 || stringSoFar != null) { hadCFSinceStringStart = true; } else { // swap prev character with format one so possible call to // startString can assume that previous non-format char is at // offset - 1. Note it causes getLine to return not exactly the // source LineBuffer read, but it is used only in error reporting // and should not be a problem. if (offset != 0) { char tmp = buffer[offset]; buffer[offset] = buffer[offset - 1]; buffer[offset - 1] = tmp; } else if (otherEnd != 0) { char tmp = buffer[offset]; buffer[offset] = otherBuffer[otherEnd - 1]; otherBuffer[otherEnd - 1] = tmp; } } ++offset; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/7a4f64b04bdcf411e9d60e0c1ffdfcdaee61117d/LineBuffer.java/clean/src/org/mozilla/javascript/LineBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2488, 1630, 2156, 1435, 288, 3639, 309, 261, 1893, 10084, 597, 401, 2139, 2156, 12, 4106, 63, 3348, 22643, 1772, 18, 710, 19865, 5621, 3639, 309, 261, 1080, 1685, 1545, 374, 747, 533, 26619, 480, 446, 13, 288, 5411, 9323, 39, 4931, 2410, 780, 1685, 273, 638, 31, 3639, 289, 3639, 469, 288, 5411, 368, 7720, 2807, 3351, 598, 740, 1245, 1427, 3323, 745, 358, 5411, 368, 787, 780, 848, 6750, 716, 2416, 1661, 17, 2139, 1149, 353, 622, 5411, 368, 1384, 300, 404, 18, 3609, 518, 14119, 9851, 358, 327, 486, 8950, 326, 5411, 368, 1084, 5377, 1892, 855, 16, 1496, 518, 353, 1399, 1338, 316, 555, 16096, 5411, 368, 471, 1410, 486, 506, 279, 6199, 18, 5411, 309, 261, 3348, 480, 374, 13, 288, 7734, 1149, 1853, 273, 1613, 63, 3348, 15533, 7734, 1613, 63, 3348, 65, 273, 1613, 63, 3348, 300, 404, 15533, 7734, 1613, 63, 3348, 300, 404, 65, 273, 1853, 31, 5411, 289, 5411, 469, 309, 261, 3011, 1638, 480, 374, 13, 288, 7734, 1149, 1853, 273, 1613, 63, 3348, 15533, 7734, 1613, 63, 3348, 65, 273, 1308, 1892, 63, 3011, 1638, 300, 404, 15533, 7734, 1308, 1892, 63, 3011, 1638, 300, 404, 65, 273, 1853, 31, 5411, 289, 3639, 289, 3639, 965, 3348, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2488, 1630, 2156, 1435, 288, 3639, 309, 261, 1893, 10084, 597, 401, 2139, 2156, 12, 4106, 63, 3348, 22643, 1772, 18, 710, 19865, 5621, 3639, 309, 261, 1080, 1685, 1545, 374, 747, 533, 26619, 480, 446, 13, 288, 5411, 9323, 39, 4931, 2410, 780, 1685, 273, 638, 31, 3639, 289, 3639, 469, 288, 5411, 368, 7720, 2807, 3351, 598, 740, 1245, 1427, 3323, 745, 358, 5411, 368, 787, 780, 848, 6750, 716, 2416, 1661, 17, 2139, 1149, 353, 622, 5411, 368, 1384, 300, 404, 18, 3609, 518, 14119, 9851, 358, 327, 486, 8950, 326, 5411, 368, 1084, 5377, 1892, 855, 16, 1496, 518, 353, 1399, 1338, 316, 555, 16096, 5411, 368, 471, 1410, 486, 506, 279, 2 ]
if(lproj != null && lproj.getFileExtension().equals("lproj")) {
if(lproj != null && "lprog".equals(lproj.getFileExtension())) {
public Object[] getElements(Object parent) { IWOLipsResource wolipsResource = null; // MS: If we add the dependency it is a circular dependency, so that // sucks ... We'll just do it Reflection-Style. if (parent != null && parent.getClass().getName().equals("org.objectstyle.wolips.components.input.ComponentEditorFileEditorInput")) { try { parent = parent.getClass().getMethod("getFile", null).invoke(parent, null); } catch (Exception e) { e.printStackTrace(); } // System.out.println("ViewContentProvider.getElements: " + // parent); } else if (parent != null && parent.getClass().getName().startsWith("org.eclipse.wst")) { // MS: Total hack ... HTML editor returns its element as a // TextImpl. I'm not how to get back to the IResource from // that. It just so happens that there's always a previous // selection that is something we CAN use parent = lastParent; // try { // Object structuredDocRegion = // parent.getClass().getMethod("getFirstStructuredDocumentRegion", // null).invoke(parent, null); // Object structuredDoc = // structuredDocRegion.getClass().getMethod("getParentDocument", // null).invoke(structuredDocRegion, null); // System.out.println("ViewContentProvider.getElements: " + // structuredDoc); // } // catch (Exception e) { // e.printStackTrace(); // } } if (parent instanceof IFileEditorInput) { IFileEditorInput input = (IFileEditorInput) parent; try { // HACK AK: we should use sth more generic here if ("java".equals(input.getFile().getFileExtension())) { parent = JavaCore.createCompilationUnitFrom(input.getFile()); } } catch (Exception ex) { UIPlugin.getDefault().log(ex); } } if (parent instanceof IMember) { parent = ((IMember) parent).getCompilationUnit(); } if (parent instanceof IResource) { wolipsResource = WOLipsCore.getWOLipsModel().getWOLipsResource((IResource) parent); // getViewer().setInput(wolipsResource); } else if (parent instanceof ICompilationUnit) { wolipsResource = WOLipsCore.getWOLipsModel().getWOLipsCompilationUnit((ICompilationUnit) parent); } List result = new LinkedList(); if (wolipsResource != null) { try { List list = (wolipsResource).getRelatedResources(); result.addAll(list); } catch (Exception e) { UIPlugin.getDefault().log(e); } } else if(parent != null && parent instanceof IResource) { try { final IResource resource = (IResource)parent; final List list = new ArrayList(); IContainer lproj = resource.getParent(); if(lproj != null && lproj.getFileExtension().equals("lproj")) { IContainer p = lproj.getParent(); p.accept(new IResourceProxyVisitor() { public boolean visit(IResourceProxy proxy) throws CoreException { if(proxy.getName().endsWith(".lproj")) { IContainer f = (IContainer) proxy.requestResource(); IResource m = f.findMember(resource.getName()); if(m != null) { list.add(m); } } return true; } }, IContainer.DEPTH_ONE); result.addAll(list); } } catch (Exception e) { UIPlugin.getDefault().log(e); } } lastParent = parent; Object[] resultList = result.toArray(); // labelProvider needs the element list to check for duplicate // filenames labelProvider.setResultList(resultList); return resultList; }
2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/2fef6cda40b47b8200c52e73c5a2d295a223e42f/RelatedView.java/clean/wolips/core/plugins/org.objectstyle.wolips.ui/java/org/objectstyle/wolips/ui/view/RelatedView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1033, 8526, 8886, 12, 921, 982, 13, 288, 1082, 202, 45, 59, 1741, 7146, 1420, 341, 355, 7146, 1420, 273, 446, 31, 1082, 202, 759, 9238, 30, 971, 732, 527, 326, 4904, 518, 353, 279, 15302, 4904, 16, 1427, 716, 1082, 202, 759, 1597, 363, 87, 1372, 1660, 5614, 2537, 741, 518, 5685, 17, 2885, 18, 1082, 202, 430, 261, 2938, 480, 446, 597, 982, 18, 588, 797, 7675, 17994, 7675, 14963, 2932, 3341, 18, 1612, 4060, 18, 91, 355, 7146, 18, 8119, 18, 2630, 18, 1841, 6946, 812, 6946, 1210, 6, 3719, 288, 9506, 202, 698, 288, 6862, 202, 2938, 273, 982, 18, 588, 797, 7675, 588, 1305, 2932, 29925, 3113, 446, 2934, 14407, 12, 2938, 16, 446, 1769, 9506, 202, 97, 1044, 261, 503, 425, 13, 288, 6862, 202, 73, 18, 1188, 6332, 5621, 9506, 202, 97, 9506, 202, 759, 2332, 18, 659, 18, 8222, 2932, 1767, 1350, 2249, 18, 588, 3471, 30, 315, 397, 9506, 202, 759, 982, 1769, 1082, 202, 97, 469, 309, 261, 2938, 480, 446, 597, 982, 18, 588, 797, 7675, 17994, 7675, 17514, 1190, 2932, 3341, 18, 20416, 18, 91, 334, 6, 3719, 288, 9506, 202, 759, 9238, 30, 10710, 11769, 1372, 3982, 4858, 1135, 2097, 930, 487, 279, 9506, 202, 759, 3867, 2828, 18, 467, 17784, 486, 3661, 358, 336, 1473, 358, 326, 467, 1420, 628, 9506, 202, 759, 716, 18, 2597, 2537, 1427, 10555, 716, 1915, 1807, 3712, 279, 2416, 9506, 202, 759, 4421, 716, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1033, 8526, 8886, 12, 921, 982, 13, 288, 1082, 202, 45, 59, 1741, 7146, 1420, 341, 355, 7146, 1420, 273, 446, 31, 1082, 202, 759, 9238, 30, 971, 732, 527, 326, 4904, 518, 353, 279, 15302, 4904, 16, 1427, 716, 1082, 202, 759, 1597, 363, 87, 1372, 1660, 5614, 2537, 741, 518, 5685, 17, 2885, 18, 1082, 202, 430, 261, 2938, 480, 446, 597, 982, 18, 588, 797, 7675, 17994, 7675, 14963, 2932, 3341, 18, 1612, 4060, 18, 91, 355, 7146, 18, 8119, 18, 2630, 18, 1841, 6946, 812, 6946, 1210, 6, 3719, 288, 9506, 202, 698, 288, 6862, 202, 2938, 273, 982, 18, 588, 797, 7675, 588, 1305, 2932, 29925, 3113, 446, 2934, 14407, 12, 2 ]
gl.glBindTexture(GL.GL_TEXTURE_2D, light_image); gl.glEnable(GL.GL_TEXTURE_2D);
light_image.bind(); light_image.enable();
private void render_scene_from_camera_view(GL gl, GLAutoDrawable drawable, CameraParameters params) { // place light gl.glPushMatrix(); gl.glLoadIdentity(); applyTransform(gl, cameraInverseTransform); applyTransform(gl, spotlightTransform); gl.glLightfv(GL.GL_LIGHT0, GL.GL_POSITION, light_pos, 0); gl.glPopMatrix(); // spot image gl.glActiveTexture(GL.GL_TEXTURE1); gl.glPushMatrix(); applyTransform(gl, cameraInverseTransform); eye_linear_texgen(gl); texgen(gl, true); gl.glPopMatrix(); gl.glMatrixMode(GL.GL_TEXTURE); gl.glLoadIdentity(); gl.glTranslatef(.5f, .5f, .5f); gl.glScalef(.5f, .5f, .5f); glu.gluPerspective(lightshaper_fovy, 1, lightshaper_zNear, lightshaper_zFar); applyTransform(gl, spotlightInverseTransform); gl.glMatrixMode(GL.GL_MODELVIEW); gl.glBindTexture(GL.GL_TEXTURE_2D, light_image); gl.glEnable(GL.GL_TEXTURE_2D); gl.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_MODE, GL.GL_MODULATE); gl.glActiveTexture(GL.GL_TEXTURE0); gl.glMatrixMode(GL.GL_PROJECTION); gl.glLoadIdentity(); gl.glViewport(viewportX, viewportY, drawable.getWidth(), drawable.getHeight()); applyTransform(gl, cameraPerspective); gl.glMatrixMode(GL.GL_MODELVIEW); render_scene(gl, cameraTransform, drawable, params); gl.glActiveTexture(GL.GL_TEXTURE1); gl.glDisable(GL.GL_TEXTURE_2D); gl.glActiveTexture(GL.GL_TEXTURE0); render_manipulators(gl, cameraTransform, drawable, params); render_light_frustum(gl); }
49209 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49209/2e32df6eb0181d50f002e0dfe055572b60088428/HWShadowmapsSimple.java/clean/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1743, 67, 23694, 67, 2080, 67, 26426, 67, 1945, 12, 11261, 5118, 16, 611, 2534, 3003, 16149, 19021, 16, 30355, 2402, 859, 13, 288, 565, 368, 3166, 9052, 565, 5118, 18, 7043, 7621, 4635, 5621, 565, 5118, 18, 7043, 2563, 4334, 5621, 565, 2230, 4059, 12, 7043, 16, 10836, 16376, 4059, 1769, 565, 2230, 4059, 12, 7043, 16, 16463, 5099, 4059, 1769, 565, 5118, 18, 7043, 12128, 17679, 12, 11261, 18, 11261, 67, 23516, 20, 16, 10252, 18, 11261, 67, 15258, 16, 9052, 67, 917, 16, 374, 1769, 565, 5118, 18, 7043, 7049, 4635, 5621, 565, 368, 16463, 1316, 565, 5118, 18, 7043, 3896, 10967, 12, 11261, 18, 11261, 67, 24652, 21, 1769, 565, 5118, 18, 7043, 7621, 4635, 5621, 565, 2230, 4059, 12, 7043, 16, 10836, 16376, 4059, 1769, 565, 16098, 67, 12379, 67, 21763, 4507, 12, 7043, 1769, 3639, 16573, 4507, 12, 7043, 16, 638, 1769, 565, 5118, 18, 7043, 7049, 4635, 5621, 565, 5118, 18, 7043, 4635, 2309, 12, 11261, 18, 11261, 67, 24652, 1769, 565, 5118, 18, 7043, 2563, 4334, 5621, 565, 5118, 18, 7043, 12818, 74, 10604, 25, 74, 16, 263, 25, 74, 16, 263, 25, 74, 1769, 565, 5118, 18, 7043, 5587, 74, 10604, 25, 74, 16, 263, 25, 74, 16, 263, 25, 74, 1769, 565, 5118, 89, 18, 7043, 89, 14781, 16772, 12, 5099, 674, 7294, 67, 617, 29139, 16, 404, 16, 9052, 674, 7294, 67, 94, 24686, 16, 9052, 674, 7294, 67, 94, 17393, 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, 918, 1743, 67, 23694, 67, 2080, 67, 26426, 67, 1945, 12, 11261, 5118, 16, 611, 2534, 3003, 16149, 19021, 16, 30355, 2402, 859, 13, 288, 565, 368, 3166, 9052, 565, 5118, 18, 7043, 7621, 4635, 5621, 565, 5118, 18, 7043, 2563, 4334, 5621, 565, 2230, 4059, 12, 7043, 16, 10836, 16376, 4059, 1769, 565, 2230, 4059, 12, 7043, 16, 16463, 5099, 4059, 1769, 565, 5118, 18, 7043, 12128, 17679, 12, 11261, 18, 11261, 67, 23516, 20, 16, 10252, 18, 11261, 67, 15258, 16, 9052, 67, 917, 16, 374, 1769, 565, 5118, 18, 7043, 7049, 4635, 5621, 565, 368, 16463, 1316, 565, 5118, 18, 7043, 3896, 10967, 12, 11261, 18, 11261, 67, 24652, 21, 1769, 565, 5118, 18, 2 ]
c = c.add(eqModCost.multiply(new BigDecimal(Integer.toString(getBaseQty() * iCount))));
if (aEqMod.isType("BaseMaterial")) { eqModCost = eqModCost.multiply(new BigDecimal(getBaseQty())); } c = c.add(eqModCost);
public BigDecimal getCost(final PlayerCharacter aPC) { BigDecimal c = BigDecimalHelper.ZERO; // // Do pre-sizing cost increment. // eg. in the case of adamantine armor, want to add // the cost of the metal before the armor gets resized. // for (Iterator e = eqModifierList.iterator(); e.hasNext();) { final EquipmentModifier aEqMod = (EquipmentModifier) e.next(); int iCount = aEqMod.getAssociatedCount(); if (iCount < 1) { iCount = 1; } final BigDecimal eqModCost = new BigDecimal(getVariableValue(aEqMod.getPreCost(), "", true, aPC).toString()); c = c.add(eqModCost.multiply(new BigDecimal(Integer.toString(getBaseQty() * iCount)))); c = c.add(aEqMod.addItemCosts(aPC, "ITEMCOST", getBaseQty() * iCount, this)); } for (Iterator e = altEqModifierList.iterator(); e.hasNext();) { final EquipmentModifier aEqMod = (EquipmentModifier) e.next(); int iCount = aEqMod.getAssociatedCount(); if (iCount < 1) { iCount = 1; } final BigDecimal eqModCost = new BigDecimal(getVariableValue(aEqMod.getPreCost(), "", false, aPC).toString()); c = c.add(eqModCost.multiply(new BigDecimal(Integer.toString(getBaseQty() * iCount)))); c = c.add(aEqMod.addItemCosts(aPC, "ITEMCOST", iCount, this)); } // // c has cost of the item's modifications at the item's original size // double mult = 1.0; final SizeAdjustment newSA = SettingsHandler.getGame().getSizeAdjustmentNamed(getSize()); final SizeAdjustment currSA = SettingsHandler.getGame().getSizeAdjustmentNamed(getBaseSize()); if ((newSA != null) && (currSA != null)) { mult = newSA.getBonusTo(aPC, "ITEMCOST", typeList(), 1.0) / currSA.getBonusTo(aPC, "ITEMCOST", typeList(), 1.0); } c = c.multiply(new BigDecimal(mult)); BigDecimal itemCost = cost.add(c); final List modifierCosts = new ArrayList(); BigDecimal nonDoubleCost = BigDecimalHelper.ZERO; c = BigDecimalHelper.ZERO; int iPlus = 0; int altPlus = 0; calculatingCost = true; weightAlreadyUsed = false; for (Iterator e = eqModifierList.iterator(); e.hasNext();) { final EquipmentModifier aEqMod = (EquipmentModifier) e.next(); int iCount = aEqMod.getAssociatedCount(); if (iCount < 1) { iCount = 1; } BigDecimal eqModCost; String costFormula = aEqMod.getCost(); if ((aEqMod.getAssociatedCount() > 0) && !costFormula.equals(aEqMod.getCost(0))) { eqModCost = BigDecimalHelper.ZERO; for (int idx = 0; idx < aEqMod.getAssociatedCount(); ++idx) { costFormula = aEqMod.getCost(idx); final BigDecimal thisModCost = new BigDecimal(getVariableValue(costFormula, "", true, aPC).toString()); eqModCost = eqModCost.add(thisModCost); if (!aEqMod.getCostDouble()) { nonDoubleCost = nonDoubleCost.add(thisModCost); } else { modifierCosts.add(thisModCost); } } iCount = 1; } else { eqModCost = new BigDecimal(getVariableValue(costFormula, "", true, aPC).toString()); if (!aEqMod.getCostDouble()) { nonDoubleCost = nonDoubleCost.add(eqModCost); } else { modifierCosts.add(eqModCost); } } c = c.add(eqModCost.multiply(new BigDecimal(Integer.toString(getBaseQty() * iCount)))); iPlus += (aEqMod.getPlus() * iCount); } // // Get costs from lowest to highest // if (modifierCosts.size() > 1) { Collections.sort(modifierCosts); } for (Iterator e = altEqModifierList.iterator(); e.hasNext();) { final EquipmentModifier aEqMod = (EquipmentModifier) e.next(); int iCount = aEqMod.getAssociatedCount(); if (iCount < 1) { iCount = 1; } final String costFormula = aEqMod.getCost(); final BigDecimal eqModCost = new BigDecimal(getVariableValue(costFormula, "", false, aPC).toString()); c = c.add(eqModCost.multiply(new BigDecimal(Integer.toString(getBaseQty() * iCount)))); altPlus += (aEqMod.getPlus() * iCount); } calculatingCost = false; c = c.add(getCostFromPluses(iPlus, altPlus)); // // Items with values less than 1 gp have their prices rounded up to 1 gp per item // eg. 20 Arrows cost 1 gp, or 5 cp each. 1 MW Arrow costs 7 gp. // // Masterwork and Magical ammo is made in batches of 50, so the MW cost per item // should be 6 gp. This would give a cost of 6.05 gp per arrow, 6.1 gp per bolt and 6.01 gp // per bullet. // if (c.compareTo(BigDecimalHelper.ZERO) != 0) { // // Convert to double and use math.ceil as ROUND_CEILING doesn't appear to work // on BigDecimal.divide final int baseQ = getBaseQty(); itemCost = new BigDecimal(Math.ceil(itemCost.doubleValue() / baseQ) * baseQ); } if (!isAmmunition() && !isArmor() && !isShield() && !isWeapon()) { // // If item doesn't occupy a fixed location, then double the cost of the modifications // DMG p.243 // if (!isMagicLimitedType()) { // // TODO: Multiple similar abilities. 100% of costliest, 75% of next, and 50% of rest // if (!ignoresCostDouble()) { c = c.subtract(nonDoubleCost).multiply(new BigDecimal("2")); c = c.add(nonDoubleCost); //c = c.multiply(new BigDecimal("2")); } } else { // // Add in the cost of 2nd, 3rd, etc. modifiers again (gives times 2) // for (int i = modifierCosts.size() - 2; i >= 0; --i) { c = c.add((BigDecimal) modifierCosts.get(i)); } } } return c.add(itemCost).add(costMod); }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/2d3c416a1505b82dc3f5b94cb51a0b485beac511/Equipment.java/clean/code/src/java/pcgen/core/Equipment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8150, 1927, 669, 12, 6385, 19185, 7069, 279, 3513, 13, 202, 95, 202, 202, 29436, 276, 273, 8150, 2276, 18, 24968, 31, 202, 202, 759, 202, 202, 759, 2256, 675, 17, 87, 6894, 6991, 5504, 18, 202, 202, 759, 9130, 18, 316, 326, 648, 434, 1261, 301, 970, 558, 23563, 280, 16, 2545, 358, 527, 202, 202, 759, 326, 6991, 434, 326, 5100, 287, 1865, 326, 23563, 280, 5571, 21615, 18, 202, 202, 759, 202, 202, 1884, 261, 3198, 425, 273, 7555, 9829, 682, 18, 9838, 5621, 425, 18, 5332, 2134, 5621, 13, 202, 202, 95, 1082, 202, 6385, 19008, 11568, 9829, 279, 19508, 1739, 273, 261, 13142, 11568, 9829, 13, 425, 18, 4285, 5621, 1082, 202, 474, 277, 1380, 273, 279, 19508, 1739, 18, 588, 19233, 1380, 5621, 1082, 202, 430, 261, 77, 1380, 411, 404, 13, 1082, 202, 95, 9506, 202, 77, 1380, 273, 404, 31, 1082, 202, 97, 1082, 202, 6385, 8150, 7555, 1739, 8018, 273, 394, 8150, 12, 588, 3092, 620, 12, 69, 19508, 1739, 18, 588, 1386, 8018, 9334, 23453, 638, 16, 279, 3513, 2934, 10492, 10663, 1082, 202, 71, 273, 276, 18, 1289, 12, 11253, 1739, 8018, 18, 7027, 1283, 12, 2704, 8150, 12, 4522, 18, 10492, 12, 588, 2171, 53, 4098, 1435, 380, 277, 1380, 3719, 10019, 1082, 202, 71, 273, 276, 18, 1289, 12, 69, 19508, 1739, 18, 1289, 1180, 21420, 12, 69, 3513, 16, 315, 12674, 28343, 3113, 8297, 53, 4098, 1435, 380, 277, 1380, 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, 8150, 1927, 669, 12, 6385, 19185, 7069, 279, 3513, 13, 202, 95, 202, 202, 29436, 276, 273, 8150, 2276, 18, 24968, 31, 202, 202, 759, 202, 202, 759, 2256, 675, 17, 87, 6894, 6991, 5504, 18, 202, 202, 759, 9130, 18, 316, 326, 648, 434, 1261, 301, 970, 558, 23563, 280, 16, 2545, 358, 527, 202, 202, 759, 326, 6991, 434, 326, 5100, 287, 1865, 326, 23563, 280, 5571, 21615, 18, 202, 202, 759, 202, 202, 1884, 261, 3198, 425, 273, 7555, 9829, 682, 18, 9838, 5621, 425, 18, 5332, 2134, 5621, 13, 202, 202, 95, 1082, 202, 6385, 19008, 11568, 9829, 279, 19508, 1739, 273, 261, 13142, 11568, 9829, 13, 425, 18, 4285, 5621, 1082, 2 ]
TextMessage m2 = (TextMessage)cons.receive(3000);
TextMessage m2 = (TextMessage)cons.receive(1000);
public void test2PCReceiveCommit() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn2 = cf.createConnection(); conn2.start(); Session sessProducer = conn2.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sessProducer.createProducer(queue); Message m = sessProducer.createTextMessage("XATest2"); prod.send(m); conn = cf.createXAConnection(); conn.start(); tm.begin(); XASession sess = conn.createXASession(); XAResource res = sess.getXAResource(); //We also create and enroll another xa resource so the tx mgr uses //2pc protocol XAResource res2 = new DummyXAResource(); Transaction tx = tm.getTransaction(); tx.enlistResource(res); tx.enlistResource(res2); MessageConsumer cons = sess.createConsumer(queue); TextMessage m2 = (TextMessage)cons.receive(3000); assertNotNull(m2); assertEquals("XATest2", m2.getText()); tx.commit(); //New tx tm.begin(); tx = tm.getTransaction(); tx.enlistResource(res); tx.enlistResource(res2); Message m3 = cons.receive(3000); assertNull(m3); tm.commit(); } finally { if (conn != null) { conn.close(); } if (conn2 != null) { conn2.close(); } } }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/90e4b161b21b8aef910dbc6f515ceceadf11bf49/XATest.java/buggy/tests/src/org/jboss/test/messaging/jms/XATest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 22, 3513, 11323, 5580, 1435, 1216, 1185, 282, 288, 1377, 309, 261, 2081, 10998, 18, 291, 5169, 10756, 327, 31, 5411, 12410, 1952, 1487, 273, 446, 31, 1377, 4050, 1487, 22, 273, 446, 31, 5411, 775, 1377, 288, 540, 1487, 22, 273, 6080, 18, 2640, 1952, 5621, 540, 1487, 22, 18, 1937, 5621, 540, 3877, 8451, 12140, 273, 1487, 22, 18, 2640, 2157, 12, 5743, 16, 3877, 18, 18909, 67, 3649, 27091, 6687, 7113, 1769, 540, 2350, 12140, 10791, 225, 273, 8451, 12140, 18, 2640, 12140, 12, 4000, 1769, 540, 2350, 312, 273, 8451, 12140, 18, 2640, 1528, 1079, 2932, 60, 789, 395, 22, 8863, 540, 10791, 18, 4661, 12, 81, 1769, 5375, 1487, 273, 6080, 18, 2640, 17269, 1952, 5621, 540, 1487, 18, 1937, 5621, 5375, 6118, 18, 10086, 5621, 5375, 12410, 2157, 8451, 273, 1487, 18, 2640, 17269, 2157, 5621, 540, 12410, 1420, 400, 273, 8451, 18, 588, 17269, 1420, 5621, 5375, 368, 3218, 2546, 752, 471, 570, 2693, 4042, 14139, 1058, 1427, 326, 2229, 13333, 4692, 1850, 368, 22, 2436, 1771, 540, 12410, 1420, 400, 22, 273, 394, 28622, 17269, 1420, 5621, 5375, 5947, 2229, 273, 6118, 18, 588, 3342, 5621, 540, 2229, 18, 275, 1098, 1420, 12, 455, 1769, 540, 2229, 18, 275, 1098, 1420, 12, 455, 22, 1769, 5375, 2350, 5869, 1959, 273, 8451, 18, 2640, 5869, 12, 4000, 1769, 5375, 3867, 1079, 312, 22, 273, 261, 1528, 1079, 13, 8559, 18, 18149, 12, 18088, 1769, 5375, 25395, 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, 22, 3513, 11323, 5580, 1435, 1216, 1185, 282, 288, 1377, 309, 261, 2081, 10998, 18, 291, 5169, 10756, 327, 31, 5411, 12410, 1952, 1487, 273, 446, 31, 1377, 4050, 1487, 22, 273, 446, 31, 5411, 775, 1377, 288, 540, 1487, 22, 273, 6080, 18, 2640, 1952, 5621, 540, 1487, 22, 18, 1937, 5621, 540, 3877, 8451, 12140, 273, 1487, 22, 18, 2640, 2157, 12, 5743, 16, 3877, 18, 18909, 67, 3649, 27091, 6687, 7113, 1769, 540, 2350, 12140, 10791, 225, 273, 8451, 12140, 18, 2640, 12140, 12, 4000, 1769, 540, 2350, 312, 273, 8451, 12140, 18, 2640, 1528, 1079, 2932, 60, 789, 395, 22, 8863, 540, 10791, 18, 4661, 12, 81, 1769, 5375, 1487, 273, 2 ]
case 20:
case 20: /* reduce AAvalueqvalorsid1ValOrSid */
public Start parse() throws ParserException, LexerException, IOException { push(0, null); List ign = null; while(true) { while(index(lexer.peek()) == -1) { if(ign == null) { ign = new TypedLinkedList(NodeCast.instance); } ign.add(lexer.next()); } if(ign != null) { ignoredTokens.setIn(lexer.peek(), ign); ign = null; } last_pos = lexer.peek().getPos(); last_line = lexer.peek().getLine(); last_token = lexer.peek(); int index = index(lexer.peek()); action[0] = actionTable[state()][0][1]; action[1] = actionTable[state()][0][2]; int low = 1; int high = actionTable[state()].length - 1; while(low <= high) { int middle = (low + high) / 2; if(index < actionTable[state()][middle][0]) { high = middle - 1; } else if(index > actionTable[state()][middle][0]) { low = middle + 1; } else { action[0] = actionTable[state()][middle][1]; action[1] = actionTable[state()][middle][2]; break; } } switch(action[0]) { case SHIFT: { ArrayList list = new ArrayList(); list.add(lexer.next()); push(action[1], list); last_shift = action[1]; } break; case REDUCE: switch(action[1]) { case 0: { ArrayList list = new0(); push(goTo(0), list); } break; case 1: { ArrayList list = new1(); push(goTo(0), list); } break; case 2: { ArrayList list = new2(); push(goTo(0), list); } break; case 3: { ArrayList list = new3(); push(goTo(0), list); } break; case 4: { ArrayList list = new4(); push(goTo(1), list); } break; case 5: { ArrayList list = new5(); push(goTo(1), list); } break; case 6: { ArrayList list = new6(); push(goTo(1), list); } break; case 7: { ArrayList list = new7(); push(goTo(1), list); } break; case 8: { ArrayList list = new8(); push(goTo(1), list); } break; case 9: { ArrayList list = new9(); push(goTo(1), list); } break; case 10: { ArrayList list = new10(); push(goTo(1), list); } break; case 11: { ArrayList list = new11(); push(goTo(1), list); } break; case 12: { ArrayList list = new12(); push(goTo(2), list); } break; case 13: { ArrayList list = new13(); push(goTo(2), list); } break; case 14: { ArrayList list = new14(); push(goTo(2), list); } break; case 15: { ArrayList list = new15(); push(goTo(2), list); } break; case 16: { ArrayList list = new16(); push(goTo(3), list); } break; case 17: { ArrayList list = new17(); push(goTo(4), list); } break; case 18: { ArrayList list = new18(); push(goTo(4), list); } break; case 19: { ArrayList list = new19(); push(goTo(5), list); } break; case 20: { ArrayList list = new20(); push(goTo(5), list); } break; case 21: { ArrayList list = new21(); push(goTo(5), list); } break; case 22: { ArrayList list = new22(); push(goTo(5), list); } break; case 23: { ArrayList list = new23(); push(goTo(5), list); } break; case 24: { ArrayList list = new24(); push(goTo(5), list); } break; case 25: { ArrayList list = new25(); push(goTo(6), list); } break; case 26: { ArrayList list = new26(); push(goTo(7), list); } break; case 27: { ArrayList list = new27(); push(goTo(7), list); } break; case 28: { ArrayList list = new28(); push(goTo(8), list); } break; case 29: { ArrayList list = new29(); push(goTo(8), list); } break; case 30: { ArrayList list = new30(); push(goTo(9), list); } break; case 31: { ArrayList list = new31(); push(goTo(9), list); } break; case 32: { ArrayList list = new32(); push(goTo(10), list); } break; case 33: { ArrayList list = new33(); push(goTo(10), list); } break; } break; case ACCEPT: { EOF node2 = (EOF) lexer.next(); PBibtex node1 = (PBibtex) ((ArrayList)pop()).get(0); Start node = new Start(node1, node2); return node; } case ERROR: throw new ParserException(last_token, "[" + last_line + "," + last_pos + "] " + errorMessages[errors[action[1]]]); } } }
50059 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50059/a343b73e05abe516d42c4d6672f63a8325be4a98/Parser.java/buggy/sub/source/net/sourceforge/texlipse/bibparser/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3603, 1109, 1435, 1216, 27990, 16, 14234, 503, 16, 1860, 565, 288, 3639, 1817, 12, 20, 16, 446, 1769, 3639, 987, 9750, 273, 446, 31, 3639, 1323, 12, 3767, 13, 3639, 288, 5411, 1323, 12, 1615, 12, 31731, 18, 347, 3839, 10756, 422, 300, 21, 13, 5411, 288, 7734, 309, 12, 724, 422, 446, 13, 7734, 288, 10792, 9750, 273, 394, 13833, 13174, 682, 12, 907, 9735, 18, 1336, 1769, 7734, 289, 7734, 9750, 18, 1289, 12, 31731, 18, 4285, 10663, 5411, 289, 5411, 309, 12, 724, 480, 446, 13, 5411, 288, 7734, 5455, 5157, 18, 542, 382, 12, 31731, 18, 347, 3839, 9334, 9750, 1769, 7734, 9750, 273, 446, 31, 5411, 289, 5411, 1142, 67, 917, 273, 8512, 18, 347, 3839, 7675, 588, 1616, 5621, 5411, 1142, 67, 1369, 273, 8512, 18, 347, 3839, 7675, 588, 1670, 5621, 5411, 1142, 67, 2316, 273, 8512, 18, 347, 3839, 5621, 5411, 509, 770, 273, 770, 12, 31731, 18, 347, 3839, 10663, 5411, 1301, 63, 20, 65, 273, 1301, 1388, 63, 2019, 1435, 6362, 20, 6362, 21, 15533, 5411, 1301, 63, 21, 65, 273, 1301, 1388, 63, 2019, 1435, 6362, 20, 6362, 22, 15533, 5411, 509, 4587, 273, 404, 31, 5411, 509, 3551, 273, 1301, 1388, 63, 2019, 1435, 8009, 2469, 300, 404, 31, 5411, 1323, 12, 821, 1648, 3551, 13, 5411, 288, 7734, 509, 7689, 273, 261, 821, 397, 3551, 13, 342, 576, 31, 7734, 309, 12, 1615, 411, 1301, 1388, 63, 2019, 1435, 6362, 18661, 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, 3603, 1109, 1435, 1216, 27990, 16, 14234, 503, 16, 1860, 565, 288, 3639, 1817, 12, 20, 16, 446, 1769, 3639, 987, 9750, 273, 446, 31, 3639, 1323, 12, 3767, 13, 3639, 288, 5411, 1323, 12, 1615, 12, 31731, 18, 347, 3839, 10756, 422, 300, 21, 13, 5411, 288, 7734, 309, 12, 724, 422, 446, 13, 7734, 288, 10792, 9750, 273, 394, 13833, 13174, 682, 12, 907, 9735, 18, 1336, 1769, 7734, 289, 7734, 9750, 18, 1289, 12, 31731, 18, 4285, 10663, 5411, 289, 5411, 309, 12, 724, 480, 446, 13, 5411, 288, 7734, 5455, 5157, 18, 542, 382, 12, 31731, 18, 347, 3839, 9334, 9750, 1769, 7734, 9750, 273, 446, 31, 5411, 289, 5411, 1142, 67, 917, 2 ]
ErrorDialog dlg = new ErrorDialog( Messages.getString( "WizardBase.error.ErrorsEncountered" ),
ErrorDialog dlg = new ErrorDialog( shellParent, Messages.getString( "WizardBase.error.ErrorsEncountered" ),
public void displayError( String[] sErrors, String[] sFixes, String[] sTaskIDs, IWizardContext currentContext, Object[] hints ) { if ( sErrors != null && sErrors.length > 0 ) { this.errorHints = hints; ErrorDialog dlg = new ErrorDialog( Messages.getString( "WizardBase.error.ErrorsEncountered" ), //$NON-NLS-1$ Messages.getString( "WizardBase.error.FollowingErrorEncountered" ), //$NON-NLS-1$ sErrors, sFixes/* , currentContext, errorHints */); if ( dlg.getOption( ) == ErrorDialog.OPTION_ACCEPT ) { // TODO: FIX THE PROBLEM } else { // TODO: PROCEED WITHOUT FIXING THE PROBLEM } } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/f4298611861d413e6f895c73f8dde535a9a1d9d2/WizardBase.java/clean/core/org.eclipse.birt.core.ui/src/org/eclipse/birt/core/ui/frameworks/taskwizard/WizardBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2562, 668, 12, 514, 8526, 272, 4229, 16, 514, 8526, 272, 8585, 281, 16, 1082, 202, 780, 8526, 272, 2174, 5103, 16, 467, 27130, 1042, 31184, 16, 1033, 8526, 13442, 262, 202, 95, 202, 202, 430, 261, 272, 4229, 480, 446, 597, 272, 4229, 18, 2469, 405, 374, 262, 202, 202, 95, 1082, 202, 2211, 18, 1636, 13368, 273, 13442, 31, 1082, 202, 668, 6353, 25840, 273, 394, 1068, 6353, 12, 5972, 3054, 16, 4838, 18, 588, 780, 12, 315, 27130, 2171, 18, 1636, 18, 4229, 4280, 29625, 6, 262, 16, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 5058, 18, 588, 780, 12, 315, 27130, 2171, 18, 1636, 18, 8328, 310, 668, 4280, 29625, 6, 262, 16, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 87, 4229, 16, 6862, 202, 87, 8585, 281, 20308, 269, 31184, 16, 555, 13368, 1195, 1769, 1082, 202, 430, 261, 25840, 18, 588, 1895, 12, 262, 422, 1068, 6353, 18, 7425, 67, 21417, 262, 1082, 202, 95, 9506, 202, 759, 2660, 30, 8563, 12786, 4629, 38, 26817, 1082, 202, 97, 1082, 202, 12107, 1082, 202, 95, 9506, 202, 759, 2660, 30, 4629, 1441, 2056, 13601, 5069, 8563, 1360, 12786, 4629, 38, 26817, 1082, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2562, 668, 12, 514, 8526, 272, 4229, 16, 514, 8526, 272, 8585, 281, 16, 1082, 202, 780, 8526, 272, 2174, 5103, 16, 467, 27130, 1042, 31184, 16, 1033, 8526, 13442, 262, 202, 95, 202, 202, 430, 261, 272, 4229, 480, 446, 597, 272, 4229, 18, 2469, 405, 374, 262, 202, 202, 95, 1082, 202, 2211, 18, 1636, 13368, 273, 13442, 31, 1082, 202, 668, 6353, 25840, 273, 394, 1068, 6353, 12, 5972, 3054, 16, 4838, 18, 588, 780, 12, 315, 27130, 2171, 18, 1636, 18, 4229, 4280, 29625, 6, 262, 16, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 5058, 18, 588, 780, 12, 315, 27130, 2171, 18, 1636, 18, 8328, 310, 668, 4280, 2 ]
String token = "";
String token = Util.EMPTY_STRING;
public static String[] tokenize(String commandLine) { int count = 0; String[] arguments = new String[10]; StringTokenizer tokenizer = new StringTokenizer(commandLine, " \"", true); //$NON-NLS-1$ String token = ""; //$NON-NLS-1$ boolean insideQuotes = false; boolean startNewToken = true; // take care to quotes on the command line // 'xxx "aaa bbb";ccc yyy' ---> {"xxx", "aaa bbb;ccc", "yyy" } // 'xxx "aaa bbb;ccc" yyy' ---> {"xxx", "aaa bbb;ccc", "yyy" } // 'xxx "aaa bbb";"ccc" yyy' ---> {"xxx", "aaa bbb;ccc", "yyy" } // 'xxx/"aaa bbb";"ccc" yyy' ---> {"xxx/aaa bbb;ccc", "yyy" } while (tokenizer.hasMoreTokens()) { token = tokenizer.nextToken(); if (token.equals(" ")) { //$NON-NLS-1$ if (insideQuotes) { arguments[count - 1] += token; startNewToken = false; } else { startNewToken = true; } } else if (token.equals("\"")) { //$NON-NLS-1$ if (!insideQuotes && startNewToken) { if (count == arguments.length) System.arraycopy(arguments, 0, (arguments = new String[count * 2]), 0, count); arguments[count++] = ""; //$NON-NLS-1$ } insideQuotes = !insideQuotes; startNewToken = false; } else { if (insideQuotes) { arguments[count - 1] += token; } else { if (token.length() > 0 && !startNewToken) { arguments[count - 1] += token; } else { if (count == arguments.length) System.arraycopy(arguments, 0, (arguments = new String[count * 2]), 0, count); String trimmedToken = token.trim(); if (trimmedToken.length() != 0) { arguments[count++] = trimmedToken; } } } startNewToken = false; } } System.arraycopy(arguments, 0, arguments = new String[count], 0, count); return arguments; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/473e73e956d6ff2c0ecfedc365eaef22bfab27ea/Main.java/clean/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 8526, 13672, 12, 780, 20894, 13, 288, 1082, 202, 474, 1056, 273, 374, 31, 202, 202, 780, 8526, 1775, 273, 394, 514, 63, 2163, 15533, 202, 202, 780, 10524, 10123, 273, 394, 16370, 12, 3076, 1670, 16, 315, 1239, 3113, 638, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 780, 1147, 273, 3564, 18, 13625, 67, 5804, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 6494, 4832, 14292, 273, 629, 31, 202, 202, 6494, 787, 1908, 1345, 273, 638, 31, 1082, 202, 759, 4862, 7671, 358, 10681, 603, 326, 1296, 980, 202, 202, 759, 296, 18310, 315, 26676, 7129, 70, 14432, 952, 71, 21834, 11, 9948, 34, 225, 12528, 18310, 3113, 315, 26676, 7129, 70, 31, 952, 71, 3113, 315, 6795, 93, 6, 289, 202, 202, 759, 296, 18310, 315, 26676, 7129, 70, 31, 952, 71, 6, 21834, 11, 9948, 34, 225, 12528, 18310, 3113, 315, 26676, 7129, 70, 31, 952, 71, 3113, 315, 6795, 93, 6, 289, 202, 202, 759, 296, 18310, 315, 26676, 7129, 70, 6, 4868, 952, 71, 6, 21834, 11, 9948, 34, 225, 12528, 18310, 3113, 315, 26676, 7129, 70, 31, 952, 71, 3113, 315, 6795, 93, 6, 289, 202, 202, 759, 296, 18310, 4898, 26676, 7129, 70, 6, 4868, 952, 71, 6, 21834, 11, 9948, 34, 225, 12528, 18310, 19, 26676, 7129, 70, 31, 952, 71, 3113, 315, 6795, 93, 6, 289, 202, 202, 17523, 261, 2316, 1824, 18, 5332, 7417, 5157, 10756, 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, 514, 8526, 13672, 12, 780, 20894, 13, 288, 1082, 202, 474, 1056, 273, 374, 31, 202, 202, 780, 8526, 1775, 273, 394, 514, 63, 2163, 15533, 202, 202, 780, 10524, 10123, 273, 394, 16370, 12, 3076, 1670, 16, 315, 1239, 3113, 638, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 780, 1147, 273, 3564, 18, 13625, 67, 5804, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 6494, 4832, 14292, 273, 629, 31, 202, 202, 6494, 787, 1908, 1345, 273, 638, 31, 1082, 202, 759, 4862, 7671, 358, 10681, 603, 326, 1296, 980, 202, 202, 759, 296, 18310, 315, 26676, 7129, 70, 14432, 952, 71, 21834, 11, 9948, 34, 225, 12528, 18310, 2 ]
message = messageString;
message = messageString == null ? "" : messageString;
private void setMessage(String messageString) { message = messageString; if (messageLabel == null || messageLabel.isDisposed()) return; messageLabel.setText(message);}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/a5be2dc9b1f487b3b2f754d2a87a2ce0afbc5955/ProgressMonitorDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ProgressMonitorDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 15227, 12, 780, 883, 780, 13, 288, 202, 2150, 273, 883, 780, 31, 202, 430, 261, 2150, 2224, 422, 446, 747, 883, 2224, 18, 291, 1669, 7423, 10756, 202, 202, 2463, 31, 202, 2150, 2224, 18, 542, 1528, 12, 2150, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 15227, 12, 780, 883, 780, 13, 288, 202, 2150, 273, 883, 780, 31, 202, 430, 261, 2150, 2224, 422, 446, 747, 883, 2224, 18, 291, 1669, 7423, 10756, 202, 202, 2463, 31, 202, 2150, 2224, 18, 542, 1528, 12, 2150, 1769, 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 ]
il.append(InstructionConstants.DUP);
private Method createProxyMethod(final ConstantPoolGen cp, final ClassGen cg, final String originalMethodName, final MethodGen originalMethod, final InstructionFactory factory, final int methodId, final int methodSequence, final int accessFlags, final String uuid, final String controllerClassName) { final InstructionList il = new InstructionList(); final Type[] parameterTypes = Type.getArgumentTypes(originalMethod.getSignature()); final String[] parameterNames = originalMethod.getArgumentNames(); final Type returnType = Type.getReturnType(originalMethod.getSignature()); final String joinPoint = getJoinPointName(originalMethod.getMethod(), methodSequence); final MethodGen method = new MethodGen( accessFlags, returnType, parameterTypes, parameterNames, originalMethodName, cg.getClassName(), il, cp ); String[] exceptions = originalMethod.getExceptions(); for (int i = 0; i < exceptions.length; i++) { method.addException(exceptions[i]); } int idxParam = 0; int idxStack = 0; int indexJoinPoint = parameterTypes.length * 2 + 1; BranchInstruction biIfNotNull = null; InstructionHandle ihIfNotNull = null; // Object joinPoint = ___jp.get(); il.append(factory.createFieldAccess( cg.getClassName(), joinPoint, new ObjectType(TransformationUtil.THREAD_LOCAL_CLASS), Constants.GETSTATIC )); il.append(factory.createInvoke( TransformationUtil.THREAD_LOCAL_CLASS, "get", Type.OBJECT, Type.NO_ARGS, Constants.INVOKEVIRTUAL )); il.append(factory.createStore(Type.OBJECT, indexJoinPoint)); // if (joinPoint == null) { il.append(factory.createLoad(Type.OBJECT, indexJoinPoint)); biIfNotNull = factory.createBranchInstruction(Constants.IFNONNULL, null); il.append(biIfNotNull); // joinPoint = new StaticMethodJoinPoint(uuid, this, 10); il.append(factory.createNew(TransformationUtil.STATIC_METHOD_JOIN_POINT_CLASS)); // loads the parameters (uuid, the class, the method id) il.append(InstructionConstants.DUP); il.append(new PUSH(cp, uuid)); il.append(factory.createFieldAccess( cg.getClassName(), TransformationUtil.STATIC_CLASS_FIELD, new ObjectType("java.lang.Class"), Constants.GETSTATIC )); il.append(new PUSH(cp, methodId)); il.append(new PUSH(cp, controllerClassName)); // invokes the constructor il.append(factory.createInvoke( TransformationUtil.STATIC_METHOD_JOIN_POINT_CLASS, "<init>", Type.VOID, new Type[]{Type.STRING, new ObjectType("java.lang.Class"), Type.INT, Type.STRING}, Constants.INVOKESPECIAL )); il.append(factory.createStore(Type.OBJECT, indexJoinPoint)); // ___jp.set(joinPoint); il.append(factory.createFieldAccess( cg.getClassName(), joinPoint.toString(), new ObjectType(TransformationUtil.THREAD_LOCAL_CLASS), Constants.GETSTATIC )); il.append(factory.createLoad(Type.OBJECT, indexJoinPoint)); il.append(factory.createInvoke( TransformationUtil.THREAD_LOCAL_CLASS, "set", Type.VOID, new Type[]{Type.OBJECT}, Constants.INVOKEVIRTUAL )); ihIfNotNull = il.append(factory.createLoad(Type.OBJECT, indexJoinPoint)); il.append(factory.createCheckCast( TransformationUtil.STATIC_METHOD_JOIN_POINT_TYPE)); indexJoinPoint += 2; il.append(factory.createStore(Type.OBJECT, indexJoinPoint)); biIfNotNull.setTarget(ihIfNotNull); // if we have parameters, wrap them up if (parameterTypes.length != 0) { // create and allocate the parameters array il.append(new PUSH(cp, parameterTypes.length)); il.append(factory.createNewArray(Type.OBJECT, (short)1)); // put it on the stack il.append(InstructionConstants.DUP); il.append(new PUSH(cp, idxStack)); idxStack++; // add all the parameters, wrap the primitive types in their // object counterparts for (int count = 0; count < parameterTypes.length; count++) { String wrapperClass = null; BasicType type = null; boolean hasLongOrDouble = false; if (parameterTypes[count] instanceof ObjectType || parameterTypes[count] instanceof ArrayType) { // we have an object or an array il.append(factory.createLoad(Type.OBJECT, idxParam)); il.append(InstructionConstants.AASTORE); idxParam++; } else if (parameterTypes[count] instanceof BasicType) { // we have a primitive type hasLongOrDouble = false; if ((parameterTypes[count]).equals(Type.LONG)) { wrapperClass = "java.lang.Long"; type = Type.LONG; hasLongOrDouble = true; } else if ((parameterTypes[count]).equals(Type.INT)) { wrapperClass = "java.lang.Integer"; type = Type.INT; } else if ((parameterTypes[count]).equals(Type.SHORT)) { wrapperClass = "java.lang.Short"; type = Type.SHORT; } else if ((parameterTypes[count]).equals(Type.DOUBLE)) { wrapperClass = "java.lang.Double"; type = Type.DOUBLE; hasLongOrDouble = true; } else if ((parameterTypes[count]).equals(Type.FLOAT)) { wrapperClass = "java.lang.Float"; type = Type.FLOAT; } else if ((parameterTypes[count]).equals(Type.CHAR)) { wrapperClass = "java.lang.Character"; type = Type.CHAR; } else if ((parameterTypes[count]).equals(Type.BYTE)) { wrapperClass = "java.lang.Byte"; type = Type.BYTE; } else if ((parameterTypes[count]).equals(Type.BOOLEAN)) { wrapperClass = "java.lang.Boolean"; type = Type.BOOLEAN; } else { throw new RuntimeException("unknown parameter type: " + parameterTypes[count]); } il.append(factory.createNew(wrapperClass)); il.append(InstructionConstants.DUP); il.append(factory.createLoad(type, idxParam)); il.append(factory.createInvoke( wrapperClass, "<init>", Type.VOID, new Type[]{type}, Constants.INVOKESPECIAL )); il.append(InstructionConstants.AASTORE); idxParam++; } // end handle basic or object type if (count != parameterTypes.length - 1) { // if we don't have the last parameter, // create the parameter on the stack il.append(InstructionConstants.DUP); il.append(new PUSH(cp, idxStack)); idxStack++; // long's and double's needs two registers to fit if (hasLongOrDouble) { idxParam++; } } } // create the object array il.append(factory.createStore(Type.OBJECT, idxParam)); // if threadsafe grab the newly retrieved local join point field from the stack il.append(factory.createLoad(Type.OBJECT, indexJoinPoint)); // invoke joinPoint.setParameter(..) il.append(factory.createLoad(Type.OBJECT, idxParam)); il.append(factory.createInvoke( TransformationUtil.STATIC_METHOD_JOIN_POINT_CLASS, "setParameters", Type.VOID, new Type[]{new ArrayType(Type.OBJECT, 1)}, Constants.INVOKEVIRTUAL )); idxParam++; } // end - if parameters.length != 0 // if threadsafe grab the newly retrieved local join point field from the stack il.append(factory.createLoad(Type.OBJECT, indexJoinPoint)); il.append(factory.createInvoke( TransformationUtil.STATIC_METHOD_JOIN_POINT_CLASS, "proceed", Type.OBJECT, Type.NO_ARGS, Constants.INVOKEVIRTUAL )); if (!returnType.equals(Type.VOID)) { // create the result from the invocation il.append(factory.createStore(Type.OBJECT, idxParam)); il.append(factory.createLoad(Type.OBJECT, idxParam)); // cast the result and return it, if the return type is a // primitive type, retrieve it from the wrapped object first if (returnType instanceof BasicType) { if (returnType.equals(Type.LONG)) { il.append(factory.createCheckCast( new ObjectType("java.lang.Long") )); il.append(factory.createInvoke( "java.lang.Long", "longValue", Type.LONG, Type.NO_ARGS, Constants.INVOKEVIRTUAL )); } else if (returnType.equals(Type.INT)) { il.append(factory.createCheckCast( new ObjectType("java.lang.Integer") )); il.append(factory.createInvoke( "java.lang.Integer", "intValue", Type.INT, Type.NO_ARGS, Constants.INVOKEVIRTUAL )); } else if (returnType.equals(Type.SHORT)) { il.append(factory.createCheckCast( new ObjectType("java.lang.Short") )); il.append(factory.createInvoke( "java.lang.Short", "shortValue", Type.SHORT, Type.NO_ARGS, Constants.INVOKEVIRTUAL )); } else if (returnType.equals(Type.DOUBLE)) { il.append(factory.createCheckCast( new ObjectType("java.lang.Double") )); il.append(factory.createInvoke( "java.lang.Double", "doubleValue", Type.DOUBLE, Type.NO_ARGS, Constants.INVOKEVIRTUAL )); } else if (returnType.equals(Type.FLOAT)) { il.append(factory.createCheckCast( new ObjectType("java.lang.Float") )); il.append(factory.createInvoke( "java.lang.Float", "floatValue", Type.FLOAT, Type.NO_ARGS, Constants.INVOKEVIRTUAL )); } else if (returnType.equals(Type.CHAR)) { il.append(factory.createCheckCast( new ObjectType("java.lang.Character") )); il.append(factory.createInvoke( "java.lang.Character", "charValue", Type.CHAR, Type.NO_ARGS, Constants.INVOKEVIRTUAL )); } else if (returnType.equals(Type.BYTE)) { il.append(factory.createCheckCast( new ObjectType("java.lang.Byte") )); il.append(factory.createInvoke( "java.lang.Byte", "byteValue", Type.BYTE, Type.NO_ARGS, Constants.INVOKEVIRTUAL )); } else if (returnType.equals(Type.BOOLEAN)) { il.append(factory.createCheckCast( new ObjectType("java.lang.Boolean") )); il.append(factory.createInvoke( "java.lang.Boolean", "booleanValue", Type.BOOLEAN, Type.NO_ARGS, Constants.INVOKEVIRTUAL )); } else if (returnType.equals(Type.VOID)) { ;// skip } else { throw new RuntimeException("unknown return type: " + returnType); } } else { // cast the result to the right type il.append(factory.createCast(Type.OBJECT, returnType)); } } il.append(factory.createReturn(returnType)); method.setMaxStack(); method.setMaxLocals(); return method.getMethod(); }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/0f38685465e9ec04c2eb3ed5b097b7340f71886a/AdviseStaticMethodTransformer.java/clean/aspectwerkz/src/main/org/codehaus/aspectwerkz/transform/AdviseStaticMethodTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2985, 752, 3886, 1305, 12, 6385, 10551, 2864, 7642, 3283, 16, 19694, 727, 1659, 7642, 14947, 16, 19694, 727, 514, 2282, 11666, 16, 19694, 727, 2985, 7642, 2282, 1305, 16, 19694, 727, 24605, 1733, 3272, 16, 19694, 727, 509, 707, 548, 16, 19694, 727, 509, 707, 4021, 16, 19694, 727, 509, 2006, 5094, 16, 19694, 727, 514, 3822, 16, 19694, 727, 514, 2596, 3834, 13, 288, 3639, 727, 24605, 682, 14254, 273, 394, 24605, 682, 5621, 3639, 727, 1412, 8526, 20173, 273, 1412, 18, 588, 1379, 2016, 12, 8830, 1305, 18, 588, 5374, 10663, 3639, 727, 514, 8526, 1569, 1557, 273, 2282, 1305, 18, 588, 1379, 1557, 5621, 3639, 727, 1412, 9424, 273, 1412, 18, 588, 9102, 12, 8830, 1305, 18, 588, 5374, 10663, 3639, 727, 514, 1233, 2148, 273, 25762, 2148, 461, 12, 8830, 1305, 18, 588, 1305, 9334, 707, 4021, 1769, 3639, 727, 2985, 7642, 707, 273, 394, 2985, 7642, 12, 7734, 2006, 5094, 16, 7734, 9424, 16, 7734, 20173, 16, 7734, 1569, 1557, 16, 7734, 2282, 11666, 16, 7734, 14947, 18, 588, 3834, 9334, 7734, 14254, 16, 3283, 3639, 11272, 3639, 514, 8526, 4798, 273, 2282, 1305, 18, 588, 11416, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4798, 18, 2469, 31, 277, 27245, 288, 5411, 707, 18, 1289, 503, 12, 11855, 63, 77, 19226, 3639, 289, 3639, 509, 2067, 786, 273, 374, 31, 3639, 509, 2067, 2624, 273, 374, 31, 3639, 509, 770, 4572, 2148, 273, 20173, 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, 2985, 752, 3886, 1305, 12, 6385, 10551, 2864, 7642, 3283, 16, 19694, 727, 1659, 7642, 14947, 16, 19694, 727, 514, 2282, 11666, 16, 19694, 727, 2985, 7642, 2282, 1305, 16, 19694, 727, 24605, 1733, 3272, 16, 19694, 727, 509, 707, 548, 16, 19694, 727, 509, 707, 4021, 16, 19694, 727, 509, 2006, 5094, 16, 19694, 727, 514, 3822, 16, 19694, 727, 514, 2596, 3834, 13, 288, 3639, 727, 24605, 682, 14254, 273, 394, 24605, 682, 5621, 3639, 727, 1412, 8526, 20173, 273, 1412, 18, 588, 1379, 2016, 12, 8830, 1305, 18, 588, 5374, 10663, 3639, 727, 514, 8526, 1569, 1557, 273, 2282, 1305, 18, 588, 1379, 1557, 5621, 3639, 727, 1412, 9424, 273, 1412, 18, 588, 9102, 2 ]
}
}
private void checkMethodsCallSuperclassMethod(Iterator heirarchyClasses) { while(heirarchyClasses.hasNext()) { Class descendant= (Class) heirarchyClasses.next(); if(!ASTNode.class.equals(descendant)) TestHierarchicalASTVisitor.checkMethodCallsSuperclassMethod(descendant, isLeaf(descendant)); } }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/15c31ecfbe948eeec0bcd3d51a25196c48b1616f/HierarchicalASTVisitorTest.java/clean/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/HierarchicalASTVisitorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 4712, 1477, 28471, 1305, 12, 3198, 3904, 481, 991, 93, 4818, 13, 288, 202, 202, 17523, 12, 580, 481, 991, 93, 4818, 18, 5332, 2134, 10756, 288, 1082, 202, 797, 17465, 33, 261, 797, 13, 3904, 481, 991, 93, 4818, 18, 4285, 5621, 1082, 202, 430, 12, 5, 9053, 907, 18, 1106, 18, 14963, 12, 26236, 970, 3719, 9506, 202, 4709, 44, 14529, 9053, 7413, 18, 1893, 1305, 10125, 28471, 1305, 12, 26236, 970, 16, 31356, 12, 26236, 970, 10019, 202, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 1152, 918, 866, 4712, 1477, 28471, 1305, 12, 3198, 3904, 481, 991, 93, 4818, 13, 288, 202, 202, 17523, 12, 580, 481, 991, 93, 4818, 18, 5332, 2134, 10756, 288, 1082, 202, 797, 17465, 33, 261, 797, 13, 3904, 481, 991, 93, 4818, 18, 4285, 5621, 1082, 202, 430, 12, 5, 9053, 907, 18, 1106, 18, 14963, 12, 26236, 970, 3719, 9506, 202, 4709, 44, 14529, 9053, 7413, 18, 1893, 1305, 10125, 28471, 1305, 12, 26236, 970, 16, 31356, 12, 26236, 970, 10019, 202, 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 ]
log.debug("updateSnmpInfo: SNMP interface index " + ifIndex + " not in database, creating new interface object."); } dbSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex);
log.debug("updateSnmpInfo: SNMP interface index " + ifIndex + " not in database, creating new interface " + "object."); } dbSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex);
private void updateSnmpInfo(Connection dbc, DbNodeEntry node, DbIpInterfaceEntry dbIpIfEntry, IfSnmpCollector snmpc) throws SQLException { Category log = ThreadCategory.getInstance(getClass()); InetAddress ifaddr = dbIpIfEntry.getIfAddress(); /* * If SNMP info is available update the snmpInterface table entry with * anything that has changed. */ int ifIndex = dbIpIfEntry.getIfIndex(); if (snmpc != null && !snmpc.failed() && ifIndex != -1) { if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: updating snmp interface for nodeId/ifIndex=" + +node.getNodeId() + "/" + ifIndex); } // Create and load SNMP Interface entry from the database boolean newSnmpIfTableEntry = false; DbSnmpInterfaceEntry dbSnmpIfEntry = DbSnmpInterfaceEntry.get(dbc, node.getNodeId(), ifIndex); if (dbSnmpIfEntry == null) { /* * SNMP Interface not found with this nodeId, create new * interface */ if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: SNMP interface index " + ifIndex + " not in database, creating new interface object."); } dbSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); newSnmpIfTableEntry = true; } /* * Create SNMP interface entry representing latest information * retrieved for the interface via the collector */ DbSnmpInterfaceEntry currSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); // Find the ifTable entry for this interface IfTable ift = snmpc.getIfTable(); Iterator ifiter = ift.getEntries().iterator(); IfTableEntry ifte = null; while (ifiter.hasNext()) { ifte = (IfTableEntry) ifiter.next(); // index Integer sint = ifte.getIfIndex(); if (sint != null) { if (ifIndex == sint.intValue()) { break; } else { ifte = null; } } } // Make sure we have a valid IfTableEntry object if (ifte == null && ifIndex == CapsdConfigFactory.LAME_SNMP_HOST_IFINDEX) { currSnmpIfEntry.setIfAddress(snmpc.getCollectorTargetAddress()); if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: interface " + snmpc.getCollectorTargetAddress().getHostAddress() + " appears to be a lame SNMP host. Setting ipaddr only."); } } else if (ifte != null) { /* * IP address and netmask * * WARNING: IfSnmpCollector.getIfAddressAndMask() ONLY returns * the FIRST IP address and mask for a given interface as * specified in the ipAddrTable. */ InetAddress[] aaddrs = snmpc.getIfAddressAndMask(ifIndex); // Address array should NEVER be null but just in case.. if (aaddrs == null) { log.warn("updateSnmpInfo: unable to retrieve address and netmask for nodeId/ifIndex: " + node.getNodeId() + "/" + ifIndex); aaddrs = new InetAddress[2]; // Set interface address to current interface aaddrs[0] = ifaddr; // Set netmask to NULL aaddrs[1] = null; } // IP address currSnmpIfEntry.setIfAddress(aaddrs[0]); // netmask if (aaddrs[1] != null) { if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: interface " + aaddrs[0].getHostAddress() + " has netmask: " + aaddrs[1].getHostAddress()); } currSnmpIfEntry.setNetmask(aaddrs[1]); } // type Integer sint = ifte.getIfType(); currSnmpIfEntry.setType(sint.intValue()); // description String str = ifte.getIfDescr(); if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: " + ifaddr + " has ifDescription: " + str); } if (str != null && str.length() > 0) { currSnmpIfEntry.setDescription(str); } String physAddr = ifte.getPhysAddr(); if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: " + ifaddr + " has phys address: -" + physAddr + "-"); } if (physAddr != null && physAddr.length() == 12) { currSnmpIfEntry.setPhysicalAddress(physAddr); } // speed Long uint = ifte.getIfSpeed(); //set the default speed to 10MB if not retrievable. currSnmpIfEntry.setSpeed((uint == null ? 10000000L : uint.longValue())); // admin status sint = ifte.getIfAdminStatus(); currSnmpIfEntry.setAdminStatus(sint.intValue()); // oper status sint = ifte.getIfOperStatus(); currSnmpIfEntry.setOperationalStatus(sint.intValue()); // name (from interface extensions table) String ifName = snmpc.getIfName(ifIndex); if (ifName != null && ifName.length() > 0) { currSnmpIfEntry.setName(ifName); } // alias (from interface extensions table) String ifAlias = snmpc.getIfAlias(ifIndex); if (ifAlias != null) { currSnmpIfEntry.setAlias(ifAlias); } else { currSnmpIfEntry.setAlias(""); } } // end if valid ifTable entry // Update any fields which have changed // dbSnmpIfEntry.updateIfIndex(currSnmpIfEntry.getIfIndex()); dbSnmpIfEntry.updateIfAddress(currSnmpIfEntry.getIfAddress()); dbSnmpIfEntry.updateNetmask(currSnmpIfEntry.getNetmask()); dbSnmpIfEntry.updatePhysicalAddress(currSnmpIfEntry.getPhysicalAddress()); dbSnmpIfEntry.updateDescription(currSnmpIfEntry.getDescription()); dbSnmpIfEntry.updateName(currSnmpIfEntry.getName()); dbSnmpIfEntry.updateType(currSnmpIfEntry.getType()); dbSnmpIfEntry.updateSpeed(currSnmpIfEntry.getSpeed()); dbSnmpIfEntry.updateAdminStatus(currSnmpIfEntry.getAdminStatus()); dbSnmpIfEntry.updateOperationalStatus(currSnmpIfEntry.getOperationalStatus()); dbSnmpIfEntry.updateAlias(currSnmpIfEntry.getAlias()); /* * If this is a new interface or if any of the following * key fields have changed set the m_snmpIfTableChangedFlag * variable to TRUE. This will potentially trigger an event * which will cause the poller to reinitialize the primary * SNMP interface for the node. */ // dbSnmpIfEntry.hasIfIndexChanged() || if (!m_snmpIfTableChangedFlag && newSnmpIfTableEntry || dbSnmpIfEntry.hasIfAddressChanged() || dbSnmpIfEntry.hasTypeChanged() || dbSnmpIfEntry.hasNameChanged() || dbSnmpIfEntry.hasDescriptionChanged() || dbSnmpIfEntry.hasPhysicalAddressChanged() || dbSnmpIfEntry.hasAliasChanged()) { m_snmpIfTableChangedFlag = true; } // Update the database dbSnmpIfEntry.store(dbc); // end if complete snmp info available } else if (snmpc != null && snmpc.hasIpAddrTable() && ifIndex != -1) { if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: updating snmp interface for nodeId/ifIndex/ipAddr=" + +node.getNodeId() + "/" + ifIndex + "/" + ifaddr + " based on ipAddrTable only - No ifTable available"); } // Create and load SNMP Interface entry from the database boolean newSnmpIfTableEntry = false; DbSnmpInterfaceEntry dbSnmpIfEntry = DbSnmpInterfaceEntry.get(dbc, node.getNodeId(), ifIndex); if (dbSnmpIfEntry == null) { /* * SNMP Interface not found with this nodeId, create new * interface */ if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: SNMP interface index " + ifIndex + " not in database, creating new interface object."); } dbSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); newSnmpIfTableEntry = true; } /* * Create SNMP interface entry representing latest information * retrieved for the interface via the collector */ DbSnmpInterfaceEntry currSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); // IP address currSnmpIfEntry.setIfAddress(ifaddr); // Update any fields which have changed dbSnmpIfEntry.updateIfAddress(currSnmpIfEntry.getIfAddress()); // Update the database dbSnmpIfEntry.store(dbc); // end if partial snmp info available } else if (snmpc != null) { // allow for lame snmp hosts with no ipAddrTable ifIndex = CapsdConfigFactory.LAME_SNMP_HOST_IFINDEX; if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: updating snmp interface for nodeId/ipAddr=" + +node.getNodeId() + "/" + ifaddr + " based on ip address only - No ipAddrTable available"); } // Create and load SNMP Interface entry from the database boolean newSnmpIfTableEntry = false; DbSnmpInterfaceEntry dbSnmpIfEntry = DbSnmpInterfaceEntry.get(dbc, node.getNodeId(), ifIndex); if (dbSnmpIfEntry == null) { /* * SNMP Interface not found with this nodeId, create new * interface */ if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: SNMP interface index " + ifIndex + " not in database, creating new interface object."); } dbSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); newSnmpIfTableEntry = true; } /* * Create SNMP interface entry representing latest information * retrieved for the interface via the collector */ DbSnmpInterfaceEntry currSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); // IP address currSnmpIfEntry.setIfAddress(ifaddr); // Update any fields which have changed dbSnmpIfEntry.updateIfAddress(currSnmpIfEntry.getIfAddress()); // Update the database dbSnmpIfEntry.store(dbc); } }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/8a6576d66e6ad3849723ebfbdc7af8419591da4a/RescanProcessor.java/clean/opennms-services/src/main/java/org/opennms/netmgt/capsd/RescanProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 10461, 1291, 966, 12, 1952, 9881, 16, 8408, 907, 1622, 756, 16, 8408, 5273, 1358, 1622, 1319, 5273, 2047, 1622, 16, 971, 10461, 1291, 7134, 15366, 71, 13, 1216, 6483, 288, 3639, 9856, 613, 273, 4884, 4457, 18, 588, 1442, 12, 588, 797, 10663, 3639, 14218, 309, 4793, 273, 1319, 5273, 2047, 1622, 18, 588, 2047, 1887, 5621, 3639, 1748, 540, 380, 971, 14204, 4566, 1123, 353, 2319, 1089, 326, 15366, 1358, 1014, 1241, 598, 540, 380, 6967, 716, 711, 3550, 18, 540, 1195, 1082, 3639, 509, 309, 1016, 273, 1319, 5273, 2047, 1622, 18, 588, 2047, 1016, 5621, 3639, 309, 261, 26527, 71, 480, 446, 597, 401, 26527, 71, 18, 7307, 1435, 597, 309, 1016, 480, 300, 21, 13, 288, 5411, 309, 261, 1330, 18, 291, 2829, 1526, 10756, 288, 7734, 613, 18, 4148, 2932, 2725, 10461, 1291, 966, 30, 9702, 15366, 1560, 364, 11507, 19, 430, 1016, 1546, 397, 397, 2159, 18, 588, 15883, 1435, 397, 4016, 397, 309, 1016, 1769, 5411, 289, 5411, 368, 1788, 471, 1262, 14204, 4566, 6682, 1241, 628, 326, 2063, 5411, 1250, 394, 10461, 1291, 2047, 1388, 1622, 273, 629, 31, 5411, 8408, 10461, 1291, 1358, 1622, 1319, 10461, 1291, 2047, 1622, 273, 8408, 10461, 1291, 1358, 1622, 18, 588, 12, 9137, 16, 756, 18, 588, 15883, 9334, 309, 1016, 1769, 5411, 309, 261, 1966, 10461, 1291, 2047, 1622, 422, 446, 13, 288, 7734, 1748, 1171, 380, 14204, 4566, 6682, 486, 1392, 598, 333, 11507, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 10461, 1291, 966, 12, 1952, 9881, 16, 8408, 907, 1622, 756, 16, 8408, 5273, 1358, 1622, 1319, 5273, 2047, 1622, 16, 971, 10461, 1291, 7134, 15366, 71, 13, 1216, 6483, 288, 3639, 9856, 613, 273, 4884, 4457, 18, 588, 1442, 12, 588, 797, 10663, 3639, 14218, 309, 4793, 273, 1319, 5273, 2047, 1622, 18, 588, 2047, 1887, 5621, 3639, 1748, 540, 380, 971, 14204, 4566, 1123, 353, 2319, 1089, 326, 15366, 1358, 1014, 1241, 598, 540, 380, 6967, 716, 711, 3550, 18, 540, 1195, 1082, 3639, 509, 309, 1016, 273, 1319, 5273, 2047, 1622, 18, 588, 2047, 1016, 5621, 3639, 309, 261, 26527, 71, 480, 446, 597, 401, 26527, 71, 18, 7307, 1435, 597, 309, 2 ]
public void checkClassify(ClassifierLearner learner, Dataset trainData, Dataset testData, double[] referenceStats)
public void checkClassify(edu.cmu.minorthird.text.learn.SpanFeatureExtractor fe, ClassifierLearner learner, double[] referenceStats)
public void checkClassify(ClassifierLearner learner, Dataset trainData, Dataset testData, double[] referenceStats) { Evaluation v = Tester.evaluate(learner, trainData, testData); double[] stats = v.summaryStatistics(); checkStats(stats, referenceStats); }
51753 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51753/4ec4001c2723d865707971ecfbe7d28d2032c21e/ClassifyTest.java/buggy/test/edu/cmu/minorthird/text/learn/ClassifyTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 866, 797, 1164, 12, 28049, 18, 7670, 89, 18, 1154, 7825, 6909, 18, 955, 18, 21346, 18, 6952, 4595, 10958, 1656, 16, 1659, 1251, 1682, 24834, 884, 24834, 16, 1645, 8526, 2114, 4195, 13, 225, 288, 565, 17340, 331, 273, 399, 7654, 18, 21024, 12, 298, 24834, 16, 4691, 751, 16, 1842, 751, 1769, 565, 1645, 8526, 3177, 273, 331, 18, 7687, 8569, 5621, 565, 866, 4195, 12, 5296, 16, 2114, 4195, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 866, 797, 1164, 12, 28049, 18, 7670, 89, 18, 1154, 7825, 6909, 18, 955, 18, 21346, 18, 6952, 4595, 10958, 1656, 16, 1659, 1251, 1682, 24834, 884, 24834, 16, 1645, 8526, 2114, 4195, 13, 225, 288, 565, 17340, 331, 273, 399, 7654, 18, 21024, 12, 298, 24834, 16, 4691, 751, 16, 1842, 751, 1769, 565, 1645, 8526, 3177, 273, 331, 18, 7687, 8569, 5621, 565, 866, 4195, 12, 5296, 16, 2114, 4195, 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 ]
if (this == other) { return true; } if (!(other instanceof GroupInfo)) { return false; } return delimeterField == ((GroupInfo) other).delimeterField && dataDictionary.equals(((GroupInfo) other).dataDictionary); }
if (this == other) { return true; } if (!(other instanceof GroupInfo)) { return false; } return delimeterField == ((GroupInfo) other).delimeterField && dataDictionary .equals(((GroupInfo) other).dataDictionary); }
public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof GroupInfo)) { return false; } return delimeterField == ((GroupInfo) other).delimeterField && dataDictionary.equals(((GroupInfo) other).dataDictionary); }
6257 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6257/47d1964ddafa7f6ee47d33846c3320c71d9e789f/DataDictionary.java/clean/src/quickfix/DataDictionary.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 1606, 12, 921, 1308, 13, 288, 5411, 309, 261, 2211, 422, 1308, 13, 288, 7734, 327, 638, 31, 5411, 289, 5411, 309, 16051, 12, 3011, 1276, 3756, 966, 3719, 288, 7734, 327, 629, 31, 5411, 289, 5411, 327, 10508, 847, 974, 422, 14015, 1114, 966, 13, 1308, 2934, 23822, 847, 974, 10792, 597, 501, 10905, 18, 14963, 12443, 12, 1114, 966, 13, 1308, 2934, 892, 10905, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 1606, 12, 921, 1308, 13, 288, 5411, 309, 261, 2211, 422, 1308, 13, 288, 7734, 327, 638, 31, 5411, 289, 5411, 309, 16051, 12, 3011, 1276, 3756, 966, 3719, 288, 7734, 327, 629, 31, 5411, 289, 5411, 327, 10508, 847, 974, 422, 14015, 1114, 966, 13, 1308, 2934, 23822, 847, 974, 10792, 597, 501, 10905, 18, 14963, 12443, 12, 1114, 966, 13, 1308, 2934, 892, 10905, 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 ]
case java.math.BigDecimal.ROUND_HALF_DOWN:
case BigDecimal.ROUND_HALF_DOWN:
private static double round(double number, double roundingInc, double roundingIncReciprocal, int mode, boolean isNegative) { double div = roundingIncReciprocal == 0.0 ? number / roundingInc : number * roundingIncReciprocal; // do the absolute cases first switch (mode) { case java.math.BigDecimal.ROUND_CEILING: div = (isNegative ? Math.floor(div + epsilon) : Math.ceil(div - epsilon)); break; case java.math.BigDecimal.ROUND_FLOOR: div = (isNegative ? Math.ceil(div - epsilon) : Math.floor(div + epsilon)); break; case java.math.BigDecimal.ROUND_DOWN: div = (Math.floor(div + epsilon)); break; case java.math.BigDecimal.ROUND_UP: div = (Math.ceil(div - epsilon)); break; case java.math.BigDecimal.ROUND_UNNECESSARY: if (div != Math.floor(div)) { throw new ArithmeticException("Rounding necessary"); } return number; default: // Handle complex cases, where the choice depends on the closer value. // We figure out the distances to the two possible values, ceiling and floor. // We then go for the diff that is smaller. // Only if they are equal does the mode matter. double ceil = Math.ceil(div); double ceildiff = ceil - div; // (ceil * roundingInc) - number; double floor = Math.floor(div); double floordiff = div - floor; // number - (floor * roundingInc); // Note that the diff values were those mapped back to the "normal" space // by using the roundingInc. I don't have access to the original author of the code // but suspect that that was to produce better result in edge cases because of machine // precision, rather than simply using the difference between, say, ceil and div. // However, it didn't work in all cases. Am trying instead using an epsilon value. switch (mode) { case java.math.BigDecimal.ROUND_HALF_EVEN: // We should be able to just return Math.rint(a), but this // doesn't work in some VMs. // if one is smaller than the other, take the corresponding side if (floordiff + epsilon < ceildiff) { div = floor; } else if (ceildiff + epsilon < floordiff) { div = ceil; } else { // they are equal, so we want to round to whichever is even double testFloor = floor / 2; div = (testFloor == Math.floor(testFloor)) ? floor : ceil; } break; case java.math.BigDecimal.ROUND_HALF_DOWN: div = ((floordiff <= ceildiff + epsilon) ? floor : ceil); break; case java.math.BigDecimal.ROUND_HALF_UP: div = ((ceildiff <= floordiff + epsilon) ? ceil : floor); break; default: throw new IllegalArgumentException("Invalid rounding mode: " + mode); } } number = roundingIncReciprocal == 0.0 ? div * roundingInc : div / roundingIncReciprocal; return number; }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/98070774c993f025d0e40b95a6dcb896d98929f6/DecimalFormat.java/clean/icu4j/src/com/ibm/icu/text/DecimalFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1645, 3643, 12, 9056, 1300, 16, 1645, 13885, 14559, 16, 1377, 202, 202, 9056, 13885, 14559, 426, 3449, 30101, 16, 509, 1965, 16, 1250, 29886, 13, 288, 377, 202, 377, 202, 9056, 3739, 273, 13885, 14559, 426, 3449, 30101, 422, 374, 18, 20, 1377, 202, 202, 35, 1300, 342, 13885, 14559, 377, 202, 565, 294, 1300, 380, 13885, 14559, 426, 3449, 30101, 31, 377, 202, 377, 202, 759, 741, 326, 4967, 6088, 1122, 377, 202, 377, 202, 9610, 261, 3188, 13, 288, 377, 202, 3593, 2252, 18, 15949, 18, 29436, 18, 15092, 67, 1441, 2627, 1360, 30, 377, 202, 202, 2892, 273, 261, 291, 14959, 692, 2361, 18, 74, 5807, 12, 2892, 397, 12263, 13, 294, 2361, 18, 311, 330, 12, 2892, 300, 12263, 10019, 377, 202, 202, 8820, 31, 377, 202, 3593, 2252, 18, 15949, 18, 29436, 18, 15092, 67, 42, 1502, 916, 30, 377, 202, 202, 2892, 273, 261, 291, 14959, 692, 2361, 18, 311, 330, 12, 2892, 300, 12263, 13, 294, 2361, 18, 74, 5807, 12, 2892, 397, 12263, 10019, 377, 202, 202, 8820, 31, 377, 202, 3593, 2252, 18, 15949, 18, 29436, 18, 15092, 67, 12711, 30, 377, 202, 202, 2892, 273, 261, 10477, 18, 74, 5807, 12, 2892, 397, 12263, 10019, 377, 202, 202, 8820, 31, 377, 202, 3593, 2252, 18, 15949, 18, 29436, 18, 15092, 67, 3079, 30, 377, 202, 202, 2892, 273, 261, 10477, 18, 311, 330, 12, 2892, 300, 12263, 10019, 377, 202, 202, 8820, 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, 3238, 760, 1645, 3643, 12, 9056, 1300, 16, 1645, 13885, 14559, 16, 1377, 202, 202, 9056, 13885, 14559, 426, 3449, 30101, 16, 509, 1965, 16, 1250, 29886, 13, 288, 377, 202, 377, 202, 9056, 3739, 273, 13885, 14559, 426, 3449, 30101, 422, 374, 18, 20, 1377, 202, 202, 35, 1300, 342, 13885, 14559, 377, 202, 565, 294, 1300, 380, 13885, 14559, 426, 3449, 30101, 31, 377, 202, 377, 202, 759, 741, 326, 4967, 6088, 1122, 377, 202, 377, 202, 9610, 261, 3188, 13, 288, 377, 202, 3593, 2252, 18, 15949, 18, 29436, 18, 15092, 67, 1441, 2627, 1360, 30, 377, 202, 202, 2892, 273, 261, 291, 14959, 692, 2361, 18, 74, 5807, 12, 2892, 397, 12263, 13, 294, 2 ]
return combine(yyTable1(), yyTable2()); }
return combine(yyTable1(), yyTable2()); }
public static final short[] yyTable() { return combine(yyTable1(), yyTable2()); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/d31a76ee29d5978a9bec41e3ac9134cee024bcab/YyTables.java/buggy/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 727, 3025, 8526, 9016, 1388, 1435, 288, 3639, 327, 8661, 12, 6795, 1388, 21, 9334, 9016, 1388, 22, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 727, 3025, 8526, 9016, 1388, 1435, 288, 3639, 327, 8661, 12, 6795, 1388, 21, 9334, 9016, 1388, 22, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
: ScriptRuntime.toObject(cx, scope, lhs);
: ScriptRuntime.toObject(cx, state.scope, lhs);
private static int do_getElem(Object[] stack, double[] sDbl, int stackTop, Context cx, Scriptable scope) { Object lhs = stack[stackTop - 1]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop - 1]); Object result; Object id = stack[stackTop]; if (id != DBL_MRK) { result = ScriptRuntime.getObjectElem(lhs, id, cx, scope); } else { double val = sDbl[stackTop]; if (lhs == null || lhs == Undefined.instance) { throw ScriptRuntime.undefReadError( lhs, ScriptRuntime.toString(val)); } Scriptable obj = (lhs instanceof Scriptable) ? (Scriptable)lhs : ScriptRuntime.toObject(cx, scope, lhs); int index = (int)val; if (index == val) { result = ScriptRuntime.getObjectIndex(obj, index, cx); } else { String s = ScriptRuntime.toString(val); result = ScriptRuntime.getObjectProp(obj, s, cx); } } --stackTop; stack[stackTop] = result; return stackTop; }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/0103da48e6e58ebf7674bbea96418aac1f2b34e0/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 741, 67, 588, 7498, 12, 921, 8526, 2110, 16, 1645, 8526, 272, 40, 3083, 16, 509, 2110, 3401, 16, 21394, 1772, 9494, 16, 22780, 2146, 13, 565, 288, 3639, 1033, 8499, 273, 2110, 63, 3772, 3401, 300, 404, 15533, 3639, 309, 261, 80, 4487, 422, 2383, 48, 67, 23464, 47, 13, 8499, 273, 1645, 2964, 12, 87, 40, 3083, 63, 3772, 3401, 300, 404, 19226, 3639, 1033, 563, 31, 3639, 1033, 612, 273, 2110, 63, 3772, 3401, 15533, 3639, 309, 261, 350, 480, 2383, 48, 67, 23464, 47, 13, 288, 5411, 563, 273, 7739, 5576, 18, 588, 921, 7498, 12, 80, 4487, 16, 612, 16, 9494, 16, 2146, 1769, 3639, 289, 469, 288, 5411, 1645, 1244, 273, 272, 40, 3083, 63, 3772, 3401, 15533, 5411, 309, 261, 80, 4487, 422, 446, 747, 8499, 422, 22243, 18, 1336, 13, 288, 7734, 604, 7739, 5576, 18, 318, 536, 1994, 668, 12, 12900, 8499, 16, 7739, 5576, 18, 10492, 12, 1125, 10019, 5411, 289, 5411, 22780, 1081, 273, 261, 80, 4487, 1276, 22780, 13, 11794, 692, 261, 3651, 429, 13, 80, 4487, 11794, 294, 7739, 5576, 18, 869, 921, 12, 71, 92, 16, 919, 18, 4887, 16, 8499, 1769, 5411, 509, 770, 273, 261, 474, 13, 1125, 31, 5411, 309, 261, 1615, 422, 1244, 13, 288, 7734, 563, 273, 7739, 5576, 18, 588, 921, 1016, 12, 2603, 16, 770, 16, 9494, 1769, 5411, 289, 469, 288, 7734, 514, 272, 273, 7739, 5576, 18, 10492, 12, 1125, 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, 509, 741, 67, 588, 7498, 12, 921, 8526, 2110, 16, 1645, 8526, 272, 40, 3083, 16, 509, 2110, 3401, 16, 21394, 1772, 9494, 16, 22780, 2146, 13, 565, 288, 3639, 1033, 8499, 273, 2110, 63, 3772, 3401, 300, 404, 15533, 3639, 309, 261, 80, 4487, 422, 2383, 48, 67, 23464, 47, 13, 8499, 273, 1645, 2964, 12, 87, 40, 3083, 63, 3772, 3401, 300, 404, 19226, 3639, 1033, 563, 31, 3639, 1033, 612, 273, 2110, 63, 3772, 3401, 15533, 3639, 309, 261, 350, 480, 2383, 48, 67, 23464, 47, 13, 288, 5411, 563, 273, 7739, 5576, 18, 588, 921, 7498, 12, 80, 4487, 16, 612, 16, 9494, 16, 2146, 1769, 3639, 289, 469, 288, 5411, 1645, 2 ]
sessionFactoryBean.setConfigClass(ds.getConfigurationClass());
sessionFactoryBean.addProperty("configClass",ds.getConfigurationClass());
public void refreshSessionFactory(GrailsApplication app, GrailsWebApplicationContext context) { HotSwappableTargetSource ts = (HotSwappableTargetSource)context.getBean(SESSION_FACTORY_BEAN+"TargetSource"); ConfigurableLocalSessionFactoryBean sessionFactoryBean = new ConfigurableLocalSessionFactoryBean(); sessionFactoryBean.setGrailsApplication(app); sessionFactoryBean.setClassLoader(app.getClassLoader()); GrailsDataSource ds = app.getGrailsDataSource(); if(ds != null && ds.getConfigurationClass() != null) { sessionFactoryBean.setConfigClass(ds.getConfigurationClass()); } sessionFactoryBean.setDataSource((DataSource)context.getBean(DATA_SOURCE_BEAN)); URL hibernateConfig = application.getClassLoader().getResource("hibernate.cfg.xml"); if(hibernateConfig != null) { sessionFactoryBean .setConfigLocation(new ClassPathResource("hibernate.cfg.xml")); } Properties hibProps = (Properties)context.getBean(HIBERNATE_PROPERTIES_BEAN); sessionFactoryBean.setHibernateProperties(hibProps); try { sessionFactoryBean.afterPropertiesSet(); } catch (HibernateException e) { throw new GrailsConfigurationException("Hibernate exception refreshing session factory: " + e.getMessage(),e); } catch (IllegalArgumentException e) { throw new GrailsConfigurationException("Illegal argument refreshing session factory: " + e.getMessage(),e); } catch (IOException e) { throw new GrailsConfigurationException("I/O exception refreshing session factory: " + e.getMessage(),e); } ts.swap(sessionFactoryBean.getObject()); }
28089 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28089/272088b0c44998a1f06c7fa576e635c279321692/GrailsRuntimeConfigurator.java/clean/src/commons/org/codehaus/groovy/grails/commons/spring/GrailsRuntimeConfigurator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4460, 2157, 1733, 12, 14571, 14573, 3208, 595, 16, 10812, 14573, 4079, 28278, 819, 13, 288, 202, 202, 25270, 6050, 2910, 429, 2326, 1830, 3742, 273, 261, 25270, 6050, 2910, 429, 2326, 1830, 13, 2472, 18, 588, 3381, 12, 7042, 67, 16193, 67, 23703, 9078, 2326, 1830, 8863, 202, 202, 31660, 2042, 2157, 1733, 3381, 1339, 1733, 3381, 273, 394, 29312, 2042, 2157, 1733, 3381, 5621, 9506, 202, 3184, 1733, 3381, 18, 542, 14571, 14573, 3208, 12, 2910, 1769, 202, 202, 3184, 1733, 3381, 18, 542, 7805, 12, 2910, 18, 588, 7805, 10663, 9506, 202, 14571, 14573, 8597, 3780, 273, 595, 18, 588, 14571, 14573, 8597, 5621, 202, 202, 430, 12, 2377, 480, 446, 597, 3780, 18, 588, 1750, 797, 1435, 480, 446, 13, 288, 1082, 202, 3184, 1733, 3381, 18, 542, 809, 797, 12, 2377, 18, 588, 1750, 797, 10663, 202, 202, 97, 202, 202, 3184, 1733, 3381, 18, 542, 8597, 12443, 8597, 13, 2472, 18, 588, 3381, 12, 4883, 67, 6537, 67, 23703, 10019, 202, 202, 1785, 366, 24360, 809, 273, 2521, 18, 588, 7805, 7675, 588, 1420, 2932, 15769, 22828, 18, 7066, 18, 2902, 8863, 202, 202, 430, 12, 15769, 22828, 809, 480, 446, 13, 288, 1082, 202, 3184, 1733, 3381, 9506, 202, 18, 542, 809, 2735, 12, 2704, 1659, 743, 1420, 2932, 15769, 22828, 18, 7066, 18, 2902, 7923, 1769, 202, 202, 97, 1082, 202, 2297, 366, 495, 5047, 273, 261, 2297, 13, 2472, 18, 588, 3381, 12, 29994, 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, 4460, 2157, 1733, 12, 14571, 14573, 3208, 595, 16, 10812, 14573, 4079, 28278, 819, 13, 288, 202, 202, 25270, 6050, 2910, 429, 2326, 1830, 3742, 273, 261, 25270, 6050, 2910, 429, 2326, 1830, 13, 2472, 18, 588, 3381, 12, 7042, 67, 16193, 67, 23703, 9078, 2326, 1830, 8863, 202, 202, 31660, 2042, 2157, 1733, 3381, 1339, 1733, 3381, 273, 394, 29312, 2042, 2157, 1733, 3381, 5621, 9506, 202, 3184, 1733, 3381, 18, 542, 14571, 14573, 3208, 12, 2910, 1769, 202, 202, 3184, 1733, 3381, 18, 542, 7805, 12, 2910, 18, 588, 7805, 10663, 9506, 202, 14571, 14573, 8597, 3780, 273, 595, 18, 588, 14571, 14573, 8597, 5621, 202, 202, 430, 12, 2377, 480, 446, 597, 2 ]
_log.error("Local routerInfo was invalid? "+ iae.getMessage(), iae);
_log.error("wtf, locally published leaseSet is not valid?", iae); return;
public void publish(RouterInfo localRouterInfo) { if (!_initialized) return; Hash h = localRouterInfo.getIdentity().getHash(); try { store(h, localRouterInfo); synchronized (_explicitSendKeys) { _explicitSendKeys.add(h); } writeMyInfo(localRouterInfo); } catch (IllegalArgumentException iae) { _log.error("Local routerInfo was invalid? "+ iae.getMessage(), iae); } }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/62ed6c6a58f9adaa081ae5a6cb591d18c6ad4f85/KademliaNetworkDatabaseFacade.java/buggy/router/java/src/net/i2p/router/networkdb/kademlia/KademliaNetworkDatabaseFacade.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3808, 12, 8259, 966, 1191, 8259, 966, 13, 288, 3639, 309, 16051, 67, 13227, 13, 327, 31, 3639, 2474, 366, 273, 1191, 8259, 966, 18, 588, 4334, 7675, 588, 2310, 5621, 3639, 775, 288, 5411, 1707, 12, 76, 16, 1191, 8259, 966, 1769, 5411, 3852, 261, 67, 16511, 3826, 2396, 13, 288, 7734, 389, 16511, 3826, 2396, 18, 1289, 12, 76, 1769, 5411, 289, 5411, 1045, 12062, 966, 12, 3729, 8259, 966, 1769, 3639, 289, 1044, 261, 31237, 30905, 13, 288, 5411, 389, 1330, 18, 1636, 2932, 6046, 74, 16, 13760, 9487, 11863, 694, 353, 486, 923, 35, 3113, 30905, 1769, 327, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3808, 12, 8259, 966, 1191, 8259, 966, 13, 288, 3639, 309, 16051, 67, 13227, 13, 327, 31, 3639, 2474, 366, 273, 1191, 8259, 966, 18, 588, 4334, 7675, 588, 2310, 5621, 3639, 775, 288, 5411, 1707, 12, 76, 16, 1191, 8259, 966, 1769, 5411, 3852, 261, 67, 16511, 3826, 2396, 13, 288, 7734, 389, 16511, 3826, 2396, 18, 1289, 12, 76, 1769, 5411, 289, 5411, 1045, 12062, 966, 12, 3729, 8259, 966, 1769, 3639, 289, 1044, 261, 31237, 30905, 13, 288, 5411, 389, 1330, 18, 1636, 2932, 6046, 74, 16, 13760, 9487, 11863, 694, 353, 486, 923, 35, 3113, 30905, 1769, 327, 31, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
this.line = line; }
this.line = line; }
public void setLine(int line) { this.line = line; }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/d31a76ee29d5978a9bec41e3ac9134cee024bcab/Node.java/clean/org/jruby/nodes/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26482, 12, 474, 980, 13, 288, 202, 202, 2211, 18, 1369, 273, 980, 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 ]
[ 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26482, 12, 474, 980, 13, 288, 202, 202, 2211, 18, 1369, 273, 980, 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 ]
{ if ( DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK.equals( handle.getLinkType( ) ) ) return IAction.ACTION_HYPERLINK; if ( DesignChoiceConstants.ACTION_LINK_TYPE_BOOKMARK_LINK.equals( handle.getLinkType( ) ) ) return IAction.ACTION_BOOKMARK; if ( DesignChoiceConstants.ACTION_LINK_TYPE_DRILL_THROUGH.equals( handle.getLinkType( ) ) ) return IAction.ACTION_DRILLTHROUGH; return 0; }
{ if ( DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK.equals( handle.getLinkType( ) ) ) return IAction.ACTION_HYPERLINK; if ( DesignChoiceConstants.ACTION_LINK_TYPE_BOOKMARK_LINK.equals( handle.getLinkType( ) ) ) return IAction.ACTION_BOOKMARK; if ( DesignChoiceConstants.ACTION_LINK_TYPE_DRILL_THROUGH.equals( handle.getLinkType( ) ) ) return IAction.ACTION_DRILLTHROUGH; return 0; }
public int getType( ) { if ( DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK.equals( handle.getLinkType( ) ) ) return IAction.ACTION_HYPERLINK; if ( DesignChoiceConstants.ACTION_LINK_TYPE_BOOKMARK_LINK.equals( handle.getLinkType( ) ) ) return IAction.ACTION_BOOKMARK; if ( DesignChoiceConstants.ACTION_LINK_TYPE_DRILL_THROUGH.equals( handle.getLinkType( ) ) ) return IAction.ACTION_DRILLTHROUGH; return 0; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/252f8ae4f2ea666eb53d3c7d3fc5c754435161c9/BIRTActionRenderer.java/buggy/chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/BIRTActionRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 509, 3130, 12, 262, 6862, 202, 95, 25083, 202, 430, 261, 29703, 10538, 2918, 18, 12249, 67, 10554, 67, 2399, 67, 44, 61, 3194, 10554, 18, 14963, 12, 1640, 18, 588, 2098, 559, 12, 262, 262, 262, 6862, 1082, 202, 2463, 467, 1803, 18, 12249, 67, 44, 61, 3194, 10554, 31, 25083, 202, 430, 261, 29703, 10538, 2918, 18, 12249, 67, 10554, 67, 2399, 67, 28163, 12693, 67, 10554, 18, 14963, 12, 1640, 18, 588, 2098, 559, 12, 262, 262, 262, 6862, 1082, 202, 2463, 467, 1803, 18, 12249, 67, 28163, 12693, 31, 25083, 202, 430, 261, 29703, 10538, 2918, 18, 12249, 67, 10554, 67, 2399, 67, 40, 2259, 4503, 67, 2455, 1457, 57, 16715, 18, 14963, 12, 1640, 18, 588, 2098, 559, 12, 262, 262, 262, 6862, 1082, 202, 2463, 467, 1803, 18, 12249, 67, 40, 2259, 4503, 2455, 1457, 57, 16715, 31, 25083, 202, 2463, 374, 31, 6862, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 509, 3130, 12, 262, 6862, 202, 95, 25083, 202, 430, 261, 29703, 10538, 2918, 18, 12249, 67, 10554, 67, 2399, 67, 44, 61, 3194, 10554, 18, 14963, 12, 1640, 18, 588, 2098, 559, 12, 262, 262, 262, 6862, 1082, 202, 2463, 467, 1803, 18, 12249, 67, 44, 61, 3194, 10554, 31, 25083, 202, 430, 261, 29703, 10538, 2918, 18, 12249, 67, 10554, 67, 2399, 67, 28163, 12693, 67, 10554, 18, 14963, 12, 1640, 18, 588, 2098, 559, 12, 262, 262, 262, 6862, 1082, 202, 2463, 467, 1803, 18, 12249, 67, 28163, 12693, 31, 25083, 202, 430, 261, 29703, 10538, 2918, 18, 12249, 67, 10554, 67, 2399, 67, 40, 2259, 4503, 67, 2455, 1457, 57, 16715, 18, 2 ]
object = workDequeue.pop();
object = workDeque.pop();
private final void collectWhite(VM_Address object) throws VM_PragmaInline { if (VM_Interface.VerifyAssertions) VM_Interface._assert(workDequeue.pop().isZero()); while (!object.isZero()) { if (RCBaseHeader.isWhite(object) && !RCBaseHeader.isBuffered(object)) { RCBaseHeader.makeBlack(object); ScanObject.enumeratePointers(object, collectEnum); freeBuffer.push(object); } object = workDequeue.pop(); } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/a2d31fa1bc95145b8e2016e9bdeeb119aa707383/TrialDeletion.java/clean/MMTk/src/org/mmtk/utility/TrialDeletion.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 727, 918, 3274, 13407, 12, 7397, 67, 1887, 733, 13, 565, 1216, 8251, 67, 2050, 9454, 10870, 288, 565, 309, 261, 7397, 67, 1358, 18, 8097, 8213, 1115, 13, 1377, 8251, 67, 1358, 6315, 11231, 12, 1252, 758, 4000, 18, 5120, 7675, 291, 7170, 10663, 565, 1323, 16051, 1612, 18, 291, 7170, 10756, 288, 1377, 309, 261, 11529, 2171, 1864, 18, 291, 13407, 12, 1612, 13, 597, 401, 11529, 2171, 1864, 18, 291, 17947, 12, 1612, 3719, 288, 202, 11529, 2171, 1864, 18, 6540, 13155, 12, 1612, 1769, 202, 7972, 921, 18, 7924, 12600, 27452, 12, 1612, 16, 3274, 3572, 1769, 202, 9156, 1892, 18, 6206, 12, 1612, 1769, 1377, 289, 1377, 733, 273, 1440, 30873, 18, 5120, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 3238, 727, 918, 3274, 13407, 12, 7397, 67, 1887, 733, 13, 565, 1216, 8251, 67, 2050, 9454, 10870, 288, 565, 309, 261, 7397, 67, 1358, 18, 8097, 8213, 1115, 13, 1377, 8251, 67, 1358, 6315, 11231, 12, 1252, 758, 4000, 18, 5120, 7675, 291, 7170, 10663, 565, 1323, 16051, 1612, 18, 291, 7170, 10756, 288, 1377, 309, 261, 11529, 2171, 1864, 18, 291, 13407, 12, 1612, 13, 597, 401, 11529, 2171, 1864, 18, 291, 17947, 12, 1612, 3719, 288, 202, 11529, 2171, 1864, 18, 6540, 13155, 12, 1612, 1769, 202, 7972, 921, 18, 7924, 12600, 27452, 12, 1612, 16, 3274, 3572, 1769, 202, 9156, 1892, 18, 6206, 12, 1612, 1769, 1377, 289, 1377, 733, 273, 1440, 30873, 18, 2 ]
public SQLStatement getSQLStatements(TransMeta transMeta, StepMeta stepMeta, Row prev) { SQLStatement retval = new SQLStatement(stepMeta.getName(), database, null); // default: nothing to do! int i; if (database!=null) { if (prev!=null && prev.size()>0) { if (tablename!=null && tablename.length()>0) { Database db = new Database(database); try { boolean doHash = false; String cr_table = null; db.connect(); // OK, what do we put in the new table?? Row fields = new Row(); // First, the new technical key... Value vkeyfield = new Value(technicalKeyField, Value.VALUE_TYPE_INTEGER); vkeyfield.setLength(10,0); // Then the hashcode (optional) Value vhashfield = null; if (useHash && hashField != null && hashField.length()>0) { vhashfield = new Value(hashField, Value.VALUE_TYPE_INTEGER); vhashfield.setLength(15,0); doHash = true; } if ( ! db.checkTableExists(tablename) ) { // Add technical key field. fields.addValue(vkeyfield); int cnt = prev.size(); for (i=0;i<cnt;i++) { String error_field=""; //$NON-NLS-1$ Value v = prev.getValue(i); String name = v.getName(); if ( name.equals(vkeyfield.getName()) || (doHash == true && name.equals(vhashfield.getName())) ) { error_field+=name; } if (error_field.length()>0) { retval.setError(Messages.getString("CombinationLookupMeta.ReturnValue.NameCollision", error_field)); //$NON-NLS-1$ } fields.addValue(v); } if ( doHash == true ) { fields.addValue(vhashfield); } } else { // Table already exists // Get the fields that are in the table now: Row tabFields = db.getTableFields(tablename); // Don't forget to quote these as well... database.quoteReservedWords(tabFields); if (tabFields.searchValue( vkeyfield.getName() ) == null ) { // Add technical key field if it didn't exist yet fields.addValue(vkeyfield); } // Add the already existing fields int cnt = tabFields.size(); for ( i=0;i<cnt;i++ ) { Value v = tabFields.getValue(i); fields.addValue(v); } // Find the missing fields in the real table cnt = prev.size(); for ( i=0;i<cnt;i++ ) { Value v = prev.getValue(i); if ( tabFields.searchValue( v.getName() )==null ) { fields.addValue(v); // nope --> add } } if (doHash == true && tabFields.searchValue( vhashfield.getName() ) == null ) { // Add hash field fields.addValue(vhashfield); } } cr_table = db.getDDL(tablename, fields, (CREATION_METHOD_SEQUENCE.equals(getTechKeyCreation()) && sequenceFrom!=null && sequenceFrom.length()==0)?technicalKeyField:null, CREATION_METHOD_AUTOINC.equals(getTechKeyCreation()), null, true); // // OK, now let's build the index // // What fields do we put int the index? // Only the hashcode or all fields? String cr_index = ""; //$NON-NLS-1$ String cr_uniq_index = ""; //$NON-NLS-1$ String idx_fields[] = null; if (useHash) { if (hashField!=null && hashField.length()>0) { idx_fields = new String[] { hashField }; } else { retval.setError(Messages.getString("CombinationLookupMeta.ReturnValue.NotHashFieldSpecified")); //$NON-NLS-1$ } } else // index on all key fields... { if (keyLookup!=null && keyLookup.length>0) { int nrfields = keyLookup.length; if (nrfields>32 && database.getDatabaseType()==DatabaseMeta.TYPE_DATABASE_ORACLE) { nrfields=32; // Oracle indexes are limited to 32 fields... } idx_fields = new String[nrfields]; for (i=0;i<nrfields;i++) idx_fields[i] = keyLookup[i]; } else { retval.setError(Messages.getString("CombinationLookupMeta.ReturnValue.NotFieldsSpecified")); //$NON-NLS-1$ } } // OK, now get the create index statement... if ( technicalKeyField != null ) { String techKeyArr[] = new String [] { technicalKeyField }; if (!db.checkIndexExists(tablename, techKeyArr)) { String indexname = "idx_"+tablename+"_pk"; //$NON-NLS-1$ //$NON-NLS-2$ cr_uniq_index = db.getCreateIndexStatement(tablename, indexname, techKeyArr, true, true, false, true); cr_uniq_index+=Const.CR; } } // OK, now get the create lookup index statement... if (idx_fields!=null && idx_fields.length>0 && !db.checkIndexExists(tablename, idx_fields) ) { String indexname = "idx_"+tablename+"_lookup"; //$NON-NLS-1$ //$NON-NLS-2$ cr_index = db.getCreateIndexStatement(tablename, indexname, idx_fields, false, false, false, true); cr_index+=Const.CR; } // // Don't forget the sequence (optional) // String cr_seq=""; //$NON-NLS-1$ if ((database.getDatabaseType()==DatabaseMeta.TYPE_DATABASE_ORACLE) && CREATION_METHOD_SEQUENCE.equals(getTechKeyCreation()) && sequenceFrom!=null && sequenceFrom.length()>0 ) { if (!db.checkSequenceExists(sequenceFrom)) { cr_seq+=db.getCreateSequenceStatement(sequenceFrom, 1L, 1L, -1L, true); cr_seq+=Const.CR; } } retval.setSQL(cr_table+cr_uniq_index+cr_index+cr_seq); } catch(KettleException e) { retval.setError(Messages.getString("CombinationLookupMeta.ReturnValue.ErrorOccurred")+Const.CR+e.getMessage()); //$NON-NLS-1$ } } else { retval.setError(Messages.getString("CombinationLookupMeta.ReturnValue.NotTableDefined")); //$NON-NLS-1$ } } else { retval.setError(Messages.getString("CombinationLookupMeta.ReturnValue.NotReceivingField")); //$NON-NLS-1$ } } else { retval.setError(Messages.getString("CombinationLookupMeta.ReturnValue.NotConnectionDefined")); //$NON-NLS-1$ } return retval; }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/31758b7a61625816b29ede0a1b4f554f1d8134fd/CombinationLookupMeta.java/buggy/kettle/src/be/ibridge/kettle/trans/step/combinationlookup/CombinationLookupMeta.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3063, 3406, 21708, 14663, 12, 1429, 2781, 906, 2781, 16, 8693, 2781, 2235, 2781, 16, 6556, 2807, 13, 202, 95, 202, 202, 3997, 3406, 5221, 273, 394, 3063, 3406, 12, 4119, 2781, 18, 17994, 9334, 2063, 16, 446, 1769, 368, 805, 30, 5083, 358, 741, 5, 202, 202, 474, 277, 31, 9506, 202, 430, 261, 6231, 5, 33, 2011, 13, 202, 202, 95, 1082, 202, 430, 261, 10001, 5, 33, 2011, 597, 2807, 18, 1467, 1435, 34, 20, 13, 1082, 202, 95, 9506, 202, 430, 261, 7032, 14724, 5, 33, 2011, 597, 19096, 18, 2469, 1435, 34, 20, 13, 9506, 202, 95, 6862, 202, 4254, 1319, 273, 394, 5130, 12, 6231, 1769, 6862, 202, 698, 6862, 202, 95, 25083, 202, 6494, 741, 2310, 273, 629, 31, 25083, 202, 780, 4422, 67, 2121, 273, 446, 31, 6862, 6862, 6862, 25083, 202, 1966, 18, 3612, 5621, 25083, 202, 759, 7791, 16, 4121, 741, 732, 1378, 316, 326, 394, 1014, 14646, 25083, 202, 1999, 1466, 273, 394, 6556, 5621, 25083, 202, 759, 5783, 16, 326, 394, 17734, 1706, 498, 2777, 25083, 202, 620, 331, 856, 1518, 273, 394, 1445, 12, 28012, 82, 1706, 653, 974, 16, 1445, 18, 4051, 67, 2399, 67, 14217, 1769, 25083, 202, 90, 856, 1518, 18, 542, 1782, 12, 2163, 16, 20, 1769, 6862, 6862, 9506, 202, 759, 9697, 326, 31539, 261, 10444, 13, 25083, 202, 620, 331, 2816, 1518, 273, 446, 31, 25083, 202, 430, 261, 1202, 2310, 597, 1651, 974, 480, 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, 3063, 3406, 21708, 14663, 12, 1429, 2781, 906, 2781, 16, 8693, 2781, 2235, 2781, 16, 6556, 2807, 13, 202, 95, 202, 202, 3997, 3406, 5221, 273, 394, 3063, 3406, 12, 4119, 2781, 18, 17994, 9334, 2063, 16, 446, 1769, 368, 805, 30, 5083, 358, 741, 5, 202, 202, 474, 277, 31, 9506, 202, 430, 261, 6231, 5, 33, 2011, 13, 202, 202, 95, 1082, 202, 430, 261, 10001, 5, 33, 2011, 597, 2807, 18, 1467, 1435, 34, 20, 13, 1082, 202, 95, 9506, 202, 430, 261, 7032, 14724, 5, 33, 2011, 597, 19096, 18, 2469, 1435, 34, 20, 13, 9506, 202, 95, 6862, 202, 4254, 1319, 273, 394, 5130, 12, 6231, 1769, 6862, 202, 698, 6862, 2 ]
profileHandler = new ProfileHandler(profileManager);
profileHandler = new ProfileHandler(profileManager, idUpgrader);
public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException { if (qName.equals("userprofile")) { profileHandler = new ProfileHandler(profileManager); } if (profileHandler != null) { profileHandler.startElement(uri, localName, qName, attrs); } }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/fa66ecbbf2829e4f5c09fc9d0f2bbdab1d26cb2c/ProfileManagerBinding.java/buggy/intermine/webtasks/main/src/org/intermine/web/ProfileManagerBinding.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 780, 2003, 16, 514, 11927, 16, 514, 22914, 16, 9055, 3422, 13, 3639, 1216, 14366, 288, 3639, 309, 261, 85, 461, 18, 14963, 2932, 1355, 5040, 6, 3719, 288, 5411, 3042, 1503, 273, 394, 11357, 1503, 12, 5040, 1318, 16, 612, 1211, 22486, 1769, 3639, 289, 3639, 309, 261, 5040, 1503, 480, 446, 13, 288, 5411, 3042, 1503, 18, 1937, 1046, 12, 1650, 16, 11927, 16, 22914, 16, 3422, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 780, 2003, 16, 514, 11927, 16, 514, 22914, 16, 9055, 3422, 13, 3639, 1216, 14366, 288, 3639, 309, 261, 85, 461, 18, 14963, 2932, 1355, 5040, 6, 3719, 288, 5411, 3042, 1503, 273, 394, 11357, 1503, 12, 5040, 1318, 16, 612, 1211, 22486, 1769, 3639, 289, 3639, 309, 261, 5040, 1503, 480, 446, 13, 288, 5411, 3042, 1503, 18, 1937, 1046, 12, 1650, 16, 11927, 16, 22914, 16, 3422, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
expectedValue = SVNPathUtil.append( (String) rootEntry.get(propName), SVNEncodingUtil.uriEncode(name)); } else if (SVNProperty.UUID.equals(propName) || SVNProperty.REVISION.equals(propName)) {
expectedValue = SVNPathUtil.append((String) rootEntry.get(propName), SVNEncodingUtil.uriEncode(name)); } else if (SVNProperty.UUID.equals(propName) || SVNProperty.REVISION.equals(propName)) { expectedValue = rootEntry.get(propName); } else if (SVNProperty.REPOS.equals(propName)) {
public void save(boolean close) throws SVNException { if (myData == null) { return; } Writer os = null; File tmpFile = new File(myFile.getParentFile(), "tmp/entries"); Map rootEntry = (Map) myData.get(""); try { os = new OutputStreamWriter(SVNFileUtil.openFileForWriting(tmpFile), "UTF-8"); os.write("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"); os.write("<wc-entries\n"); os.write(" xmlns=\"svn:\">\n"); for (Iterator entries = myData.keySet().iterator(); entries .hasNext();) { String name = (String) entries.next(); Map entry = (Map) myData.get(name); os.write("<entry"); for (Iterator names = entry.keySet().iterator(); names .hasNext();) { String propName = (String) names.next(); String propValue = (String) entry.get(propName); if (propValue == null) { continue; } if (BOOLEAN_PROPERTIES.contains(propName) && !Boolean.TRUE.toString().equals(propValue)) { continue; } if (!"".equals(name)) { Object expectedValue; if (SVNProperty.KIND_DIR.equals(entry .get(SVNProperty.KIND))) { if (SVNProperty.UUID.equals(propName) || SVNProperty.REVISION.equals(propName) || SVNProperty.URL.equals(propName)) { continue; } } else { if (SVNProperty.URL.equals(propName)) { expectedValue = SVNPathUtil.append( (String) rootEntry.get(propName), SVNEncodingUtil.uriEncode(name)); } else if (SVNProperty.UUID.equals(propName) || SVNProperty.REVISION.equals(propName)) { expectedValue = rootEntry.get(propName); } else { expectedValue = null; } if (propValue.equals(expectedValue)) { continue; } } } propName = propName.substring(SVNProperty.SVN_ENTRY_PREFIX .length()); propValue = SVNEncodingUtil.xmlEncodeAttr(propValue); os.write("\n "); os.write(propName); os.write("=\""); os.write(propValue); os.write("\""); } os.write("/>\n"); } os.write("</wc-entries>\n"); } catch (IOException e) { tmpFile.delete(); SVNErrorManager.error("svn: Cannot save entries file '" + myFile + "'"); } finally { SVNFileUtil.closeFile(os); } SVNFileUtil.rename(tmpFile, myFile); SVNFileUtil.setReadonly(myFile, true); if (close) { close(); } }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/5acd96c2fcc708cffe9a8eaf01d072d50c6d6457/SVNEntries.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNEntries.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1923, 12, 6494, 1746, 13, 1216, 29537, 50, 503, 288, 3639, 309, 261, 4811, 751, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 3639, 5497, 1140, 273, 446, 31, 3639, 1387, 18504, 273, 394, 1387, 12, 4811, 812, 18, 588, 3054, 812, 9334, 315, 5645, 19, 8219, 8863, 3639, 1635, 1365, 1622, 273, 261, 863, 13, 3399, 751, 18, 588, 2932, 8863, 3639, 775, 288, 5411, 1140, 273, 394, 24248, 12, 23927, 50, 812, 1304, 18, 3190, 812, 1290, 18835, 12, 5645, 812, 3631, 315, 5159, 17, 28, 8863, 5411, 1140, 18, 2626, 2932, 12880, 2902, 1177, 5189, 21, 18, 20, 2412, 2688, 5189, 3158, 17, 28, 2412, 35, 5333, 82, 8863, 5411, 1140, 18, 2626, 2932, 32, 27594, 17, 8219, 64, 82, 8863, 5411, 1140, 18, 2626, 2932, 282, 12302, 5189, 31505, 30, 28219, 82, 8863, 5411, 364, 261, 3198, 3222, 273, 3399, 751, 18, 856, 694, 7675, 9838, 5621, 3222, 10792, 263, 5332, 2134, 5621, 13, 288, 7734, 514, 508, 273, 261, 780, 13, 3222, 18, 4285, 5621, 7734, 1635, 1241, 273, 261, 863, 13, 3399, 751, 18, 588, 12, 529, 1769, 7734, 1140, 18, 2626, 2932, 32, 4099, 8863, 7734, 364, 261, 3198, 1257, 273, 1241, 18, 856, 694, 7675, 9838, 5621, 1257, 13491, 263, 5332, 2134, 5621, 13, 288, 10792, 514, 9994, 273, 261, 780, 13, 1257, 18, 4285, 5621, 10792, 514, 19432, 273, 261, 780, 13, 1241, 18, 588, 12, 5986, 461, 1769, 10792, 309, 261, 5986, 620, 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, 1923, 12, 6494, 1746, 13, 1216, 29537, 50, 503, 288, 3639, 309, 261, 4811, 751, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 3639, 5497, 1140, 273, 446, 31, 3639, 1387, 18504, 273, 394, 1387, 12, 4811, 812, 18, 588, 3054, 812, 9334, 315, 5645, 19, 8219, 8863, 3639, 1635, 1365, 1622, 273, 261, 863, 13, 3399, 751, 18, 588, 2932, 8863, 3639, 775, 288, 5411, 1140, 273, 394, 24248, 12, 23927, 50, 812, 1304, 18, 3190, 812, 1290, 18835, 12, 5645, 812, 3631, 315, 5159, 17, 28, 8863, 5411, 1140, 18, 2626, 2932, 12880, 2902, 1177, 5189, 21, 18, 20, 2412, 2688, 5189, 3158, 17, 28, 2412, 35, 5333, 82, 8863, 5411, 1140, 18, 2 ]
{ case 1001: {
{ case 1001: {
protected void ProcessSoarToolJavaCommand(SoarToolJavaCommand command) { switch (command.GetCommandID()) { // Edit Production command case 1001: // BUGBUG: JDK complains that STI_kEditProduction needs to be a constant // Seems defined as 'final' which I thought was a Java constant. //case command.STI_kEditProduction: { // Edit the production EditProductionByName(command.GetStringParam()); break; } } }
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/b614d4abef68545f39b6afc1e8521d6ccc484b8e/MainFrame.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4389, 10225, 297, 6364, 5852, 2189, 12, 10225, 297, 6364, 5852, 2189, 1296, 13, 202, 95, 202, 202, 9610, 261, 3076, 18, 967, 2189, 734, 10756, 202, 202, 95, 202, 202, 759, 15328, 10856, 349, 1296, 202, 202, 3593, 2130, 21, 30, 202, 202, 759, 10937, 43, 4827, 30, 24387, 27534, 4167, 716, 2347, 45, 67, 79, 4666, 31590, 4260, 358, 506, 279, 5381, 202, 202, 759, 3265, 7424, 2553, 487, 296, 6385, 11, 1492, 467, 286, 83, 9540, 1703, 279, 5110, 5381, 18, 202, 202, 759, 3593, 1296, 18, 882, 45, 67, 79, 4666, 31590, 30, 1082, 202, 95, 9506, 202, 759, 15328, 326, 12449, 9506, 202, 4666, 31590, 5911, 12, 3076, 18, 967, 780, 786, 10663, 9506, 202, 8820, 31, 1082, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4389, 10225, 297, 6364, 5852, 2189, 12, 10225, 297, 6364, 5852, 2189, 1296, 13, 202, 95, 202, 202, 9610, 261, 3076, 18, 967, 2189, 734, 10756, 202, 202, 95, 202, 202, 759, 15328, 10856, 349, 1296, 202, 202, 3593, 2130, 21, 30, 202, 202, 759, 10937, 43, 4827, 30, 24387, 27534, 4167, 716, 2347, 45, 67, 79, 4666, 31590, 4260, 358, 506, 279, 5381, 202, 202, 759, 3265, 7424, 2553, 487, 296, 6385, 11, 1492, 467, 286, 83, 9540, 1703, 279, 5110, 5381, 18, 202, 202, 759, 3593, 1296, 18, 882, 45, 67, 79, 4666, 31590, 30, 1082, 202, 95, 9506, 202, 759, 15328, 326, 12449, 9506, 202, 4666, 31590, 5911, 12, 3076, 18, 967, 2 ]
public org.quickfix.field.UnderlyingIssueDate getUnderlyingIssueDate() throws FieldNotFound { org.quickfix.field.UnderlyingIssueDate value = new org.quickfix.field.UnderlyingIssueDate();
public quickfix.field.UnderlyingIssueDate getUnderlyingIssueDate() throws FieldNotFound { quickfix.field.UnderlyingIssueDate value = new quickfix.field.UnderlyingIssueDate();
public org.quickfix.field.UnderlyingIssueDate getUnderlyingIssueDate() throws FieldNotFound { org.quickfix.field.UnderlyingIssueDate value = new org.quickfix.field.UnderlyingIssueDate(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/DerivativeSecurityList.java/buggy/src/java/src/quickfix/fix44/DerivativeSecurityList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 12956, 1626, 10833, 765, 6291, 12956, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 12956, 1626, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 12956, 1626, 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, 14655, 6291, 12956, 1626, 10833, 765, 6291, 12956, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 12956, 1626, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 12956, 1626, 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 ]
public NullEventProcess (Element config){
public NullEventProcess (){
public NullEventProcess (Element config){ }
45996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45996/84ddb4c75502d29217007650966db8a44aa275a6/NullEventProcess.java/buggy/src/edu/sc/seis/sod/subsetter/eventArm/NullEventProcess.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4112, 1133, 2227, 261, 1046, 642, 15329, 202, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4112, 1133, 2227, 261, 1046, 642, 15329, 202, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
" 28 getfield BX.ax Ljava/lang/Object; [44]\n" + " 31 invokevirtual java/io/PrintStream.print(Ljava/lang/Object;)V [50]\n" + " 34 getstatic java/lang/System.out Ljava/io/PrintStream; [36]\n" +
" 28 getfield BX.ax : java.lang.Object [44]\n" + " 31 invokevirtual java.io.PrintStream.print(java.lang.Object) : void [50]\n" + " 34 getstatic java.lang.System.out : java.io.PrintStream [36]\n" +
public void test502() { this.runConformTest( new String[] { "X.java", "public class X <T extends AX> {\n" + " T t;\n" + " X(T t){\n" + " this.t = t;\n" + " }\n" + " public static void main(String[] args) {\n" + " X<? extends BX> x = new X<BX<String>>(new BX<String>());\n" + " System.out.print(x.self().t.ax);\n" + " System.out.print(x.self().t.bx);\n" + " }\n" + " X<T> self() {\n" + " return this;\n" + " }\n" + "}\n" + "\n" + "class AX<P> {\n" + " P ax;\n" + "}\n" + "\n" + "class BX<Q> extends AX<Q> {\n" + " Q bx;\n" + "}\n", }, "nullnull"); String expectedOutput = " // Method descriptor #25 ([Ljava/lang/String;)V\n" + " // Stack: 4, Locals: 2\n" + " public static void main(String[] args);\n" + " 0 new X [2]\n" + " 3 dup\n" + " 4 new BX [27]\n" + " 7 dup\n" + " 8 invokespecial BX.<init>()V [28]\n" + " 11 invokespecial X.<init>(LAX;)V [30]\n" + " 14 astore_1 [x]\n" + " 15 getstatic java/lang/System.out Ljava/io/PrintStream; [36]\n" + " 18 aload_1 [x]\n" + " 19 invokevirtual X.self()LX; [40]\n" + " 22 getfield X.t LAX; [17]\n" + " 25 checkcast BX [27]\n" + " 28 getfield BX.ax Ljava/lang/Object; [44]\n" + " 31 invokevirtual java/io/PrintStream.print(Ljava/lang/Object;)V [50]\n" + " 34 getstatic java/lang/System.out Ljava/io/PrintStream; [36]\n" + " 37 aload_1 [x]\n" + " 38 invokevirtual X.self()LX; [40]\n" + " 41 getfield X.t LAX; [17]\n" + " 44 checkcast BX [27]\n" + " 47 getfield BX.bx Ljava/lang/Object; [53]\n" + " 50 invokevirtual java/io/PrintStream.print(Ljava/lang/Object;)V [50]\n" + " 53 return\n" + " Line numbers:\n" + " [pc: 0, line: 7]\n" + " [pc: 15, line: 8]\n" + " [pc: 34, line: 9]\n" + " [pc: 53, line: 10]\n" + " Local variable table:\n" + " [pc: 0, pc: 54] local: args index: 0 type: [Ljava/lang/String;\n" + " [pc: 15, pc: 54] local: x index: 1 type: LX;\n" + " Local variable type table:\n" + " [pc: 15, pc: 54] local: x index: 1 type: LX<+LBX;>;\n"; try { File f = new File(OUTPUT_DIR + File.separator + "X.class"); byte[] classFileBytes = org.eclipse.jdt.internal.compiler.util.Util.getFileByteContent(f); ClassFileBytesDisassembler disassembler = ToolFactory.createDefaultClassFileBytesDisassembler(); String result = disassembler.disassemble(classFileBytes, "\n", ClassFileBytesDisassembler.DETAILED); int index = result.indexOf(expectedOutput); if (index == -1 || expectedOutput.length() == 0) { System.out.println(Util.displayString(result, 3)); } if (index == -1) { assertEquals("Wrong contents", expectedOutput, result); } } catch (org.eclipse.jdt.core.util.ClassFormatException e) { assertTrue(false); } catch (IOException e) { assertTrue(false); } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/e9ca95978aca2a442bfecfb8ac281f372092486a/GenericTypeTest.java/clean/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 25, 3103, 1435, 288, 202, 202, 2211, 18, 2681, 442, 687, 4709, 12, 1082, 202, 2704, 514, 8526, 288, 9506, 202, 6, 60, 18, 6290, 3113, 9506, 202, 6, 482, 667, 1139, 411, 56, 3231, 29539, 34, 18890, 82, 6, 397, 4697, 202, 6, 565, 399, 268, 9747, 82, 6, 397, 4697, 202, 6, 565, 1139, 12, 56, 268, 15329, 64, 82, 6, 397, 4697, 202, 6, 3639, 333, 18, 88, 273, 268, 9747, 82, 6, 397, 4697, 202, 6, 565, 289, 64, 82, 6, 397, 4697, 202, 6, 565, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 18890, 82, 6, 397, 4697, 202, 6, 202, 202, 60, 12880, 3231, 605, 60, 34, 619, 273, 394, 1139, 32, 38, 60, 32, 780, 9778, 12, 2704, 605, 60, 32, 780, 34, 10663, 64, 82, 6, 397, 4697, 202, 6, 202, 202, 3163, 18, 659, 18, 1188, 12, 92, 18, 2890, 7675, 88, 18, 651, 20472, 82, 6, 397, 4697, 202, 6, 202, 202, 3163, 18, 659, 18, 1188, 12, 92, 18, 2890, 7675, 88, 18, 70, 92, 20472, 82, 6, 397, 4697, 202, 6, 202, 6280, 82, 6, 397, 4697, 202, 6, 202, 60, 32, 56, 34, 365, 1435, 18890, 82, 6, 397, 4697, 202, 6, 202, 202, 2463, 333, 9747, 82, 6, 397, 4697, 202, 6, 202, 6280, 82, 6, 397, 4697, 202, 6, 6280, 82, 6, 397, 4697, 202, 12691, 82, 6, 397, 4697, 202, 6, 1106, 29539, 32, 52, 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, 25, 3103, 1435, 288, 202, 202, 2211, 18, 2681, 442, 687, 4709, 12, 1082, 202, 2704, 514, 8526, 288, 9506, 202, 6, 60, 18, 6290, 3113, 9506, 202, 6, 482, 667, 1139, 411, 56, 3231, 29539, 34, 18890, 82, 6, 397, 4697, 202, 6, 565, 399, 268, 9747, 82, 6, 397, 4697, 202, 6, 565, 1139, 12, 56, 268, 15329, 64, 82, 6, 397, 4697, 202, 6, 3639, 333, 18, 88, 273, 268, 9747, 82, 6, 397, 4697, 202, 6, 565, 289, 64, 82, 6, 397, 4697, 202, 6, 565, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 18890, 82, 6, 397, 4697, 202, 6, 202, 202, 60, 12880, 3231, 605, 60, 34, 2 ]
LinkedList list = (LinkedList) serviceListeners.get(type);
List list = (List) serviceListeners.get(type);
public void removeServiceListener(String type, ServiceListener listener) { type = type.toLowerCase(); LinkedList list = (LinkedList) serviceListeners.get(type); if (list != null) { list.remove(listener); if (list.size() == 0) { serviceListeners.remove(type); } } }
51459 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51459/0163ae0c157c3a896ab369894d8c4302792969c3/JmDNS.java/buggy/jmdns/src/javax/jmdns/JmDNS.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 1179, 2223, 12, 780, 618, 16, 1956, 2223, 2991, 13, 288, 3639, 618, 273, 618, 18, 869, 5630, 5621, 3639, 987, 666, 273, 261, 682, 13, 1156, 5583, 18, 588, 12, 723, 1769, 3639, 309, 261, 1098, 480, 446, 13, 288, 5411, 666, 18, 4479, 12, 12757, 1769, 5411, 309, 261, 1098, 18, 1467, 1435, 422, 374, 13, 288, 7734, 1156, 5583, 18, 4479, 12, 723, 1769, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 1179, 2223, 12, 780, 618, 16, 1956, 2223, 2991, 13, 288, 3639, 618, 273, 618, 18, 869, 5630, 5621, 3639, 987, 666, 273, 261, 682, 13, 1156, 5583, 18, 588, 12, 723, 1769, 3639, 309, 261, 1098, 480, 446, 13, 288, 5411, 666, 18, 4479, 12, 12757, 1769, 5411, 309, 261, 1098, 18, 1467, 1435, 422, 374, 13, 288, 7734, 1156, 5583, 18, 4479, 12, 723, 1769, 5411, 289, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
node.addRequestSender(key, htl, this);
public void run() { if((key instanceof NodeSSK) && (pubKey == null)) { pubKey = ((NodeSSK)key).getPubKey(); if(pubKey == null) pubKey = node.getKey(((NodeSSK)key).getPubKeyHash()); } short origHTL = htl; node.addRequestSender(key, htl, this); HashSet nodesRoutedTo = new HashSet(); HashSet nodesNotIgnored = new HashSet(); try { while(true) { Logger.minor(this, "htl="+htl); if(htl == 0) { // RNF // Would be DNF if arrived with no HTL // But here we've already routed it and that's been rejected. finish(ROUTE_NOT_FOUND, null); return; } // Route it PeerNode next; double nextValue; next = node.peers.closerPeer(source, nodesRoutedTo, nodesNotIgnored, target, true); if(next != null) nextValue = next.getLocation().getValue(); else nextValue = -1.0; if(next == null) { // Backtrack finish(ROUTE_NOT_FOUND, null); return; } Logger.minor(this, "Routing request to "+next); nodesRoutedTo.add(next); if(PeerManager.distance(target, nextValue) > PeerManager.distance(target, nearestLoc)) { htl = node.decrementHTL(source, htl); Logger.minor(this, "Backtracking: target="+target+" next="+nextValue+" closest="+nearestLoc+" so htl="+htl); } Message req = createDataRequest(); next.send(req, this); Message msg = null; while(true) { /** * What are we waiting for? * FNPAccepted - continue * FNPRejectedLoop - go to another node * FNPRejectedOverload - fail (propagates back to source, * then reduces source transmit rate) */ MessageFilter mfAccepted = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(ACCEPTED_TIMEOUT).setType(DMT.FNPAccepted); MessageFilter mfRejectedLoop = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(ACCEPTED_TIMEOUT).setType(DMT.FNPRejectedLoop); MessageFilter mfRejectedOverload = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(ACCEPTED_TIMEOUT).setType(DMT.FNPRejectedOverload); // mfRejectedOverload must be the last thing in the or // So its or pointer remains null // Otherwise we need to recreate it below MessageFilter mf = mfAccepted.or(mfRejectedLoop.or(mfRejectedOverload)); try { msg = node.usm.waitFor(mf, this); Logger.minor(this, "first part got "+msg); } catch (DisconnectedException e) { Logger.normal(this, "Disconnected from "+next+" while waiting for Accepted on "+uid); break; } if(msg == null) { Logger.minor(this, "Timeout waiting for Accepted"); // Timeout waiting for Accepted next.localRejectedOverload("AcceptedTimeout"); forwardRejectedOverload(); // Try next node break; } if(msg.getSpec() == DMT.FNPRejectedLoop) { Logger.minor(this, "Rejected loop"); next.successNotOverload(); // Find another node to route to break; } if(msg.getSpec() == DMT.FNPRejectedOverload) { Logger.minor(this, "Rejected: overload"); // Non-fatal - probably still have time left forwardRejectedOverload(); if (msg.getBoolean(DMT.IS_LOCAL)) { Logger.minor(this, "Is local"); next.localRejectedOverload("ForwardRejectedOverload"); Logger.minor(this, "Local RejectedOverload, moving on to next peer"); // Give up on this one, try another break; } continue; } if(msg.getSpec() != DMT.FNPAccepted) { Logger.error(this, "Unrecognized message: "+msg); continue; } break; } if((msg == null) || (msg.getSpec() != DMT.FNPAccepted)) { // Try another node continue; } Logger.minor(this, "Got Accepted"); // Otherwise, must be Accepted // So wait... while(true) { MessageFilter mfDNF = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(FETCH_TIMEOUT).setType(DMT.FNPDataNotFound); MessageFilter mfDF = makeDataFoundFilter(next); MessageFilter mfRouteNotFound = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(FETCH_TIMEOUT).setType(DMT.FNPRouteNotFound); MessageFilter mfRejectedOverload = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(FETCH_TIMEOUT).setType(DMT.FNPRejectedOverload); MessageFilter mfPubKey = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(FETCH_TIMEOUT).setType(DMT.FNPSSKPubKey); MessageFilter mfRealDFCHK = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(FETCH_TIMEOUT).setType(DMT.FNPCHKDataFound); MessageFilter mfRealDFSSK = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(FETCH_TIMEOUT).setType(DMT.FNPSSKDataFound); MessageFilter mf = mfDNF.or(mfRouteNotFound.or(mfRejectedOverload.or(mfDF.or(mfPubKey.or(mfRealDFCHK.or(mfRealDFSSK)))))); try { msg = node.usm.waitFor(mf, this); } catch (DisconnectedException e) { Logger.normal(this, "Disconnected from "+next+" while waiting for data on "+uid); break; } Logger.minor(this, "second part got "+msg); if(msg == null) { // Fatal timeout next.localRejectedOverload("FatalTimeout"); forwardRejectedOverload(); finish(TIMED_OUT, next); return; } if(msg.getSpec() == DMT.FNPDataNotFound) { next.successNotOverload(); finish(DATA_NOT_FOUND, next); return; } if(msg.getSpec() == DMT.FNPRouteNotFound) { // Backtrack within available hops short newHtl = msg.getShort(DMT.HTL); if(newHtl < htl) htl = newHtl; next.successNotOverload(); break; } if(msg.getSpec() == DMT.FNPRejectedOverload) { // Non-fatal - probably still have time left forwardRejectedOverload(); if (msg.getBoolean(DMT.IS_LOCAL)) { next.localRejectedOverload("ForwardRejectedOverload2"); Logger.minor(this, "Local RejectedOverload, moving on to next peer"); // Give up on this one, try another break; } continue; // Wait for any further response } if(msg.getSpec() == DMT.FNPCHKDataFound) { if(!(key instanceof NodeCHK)) { Logger.error(this, "Got "+msg+" but expected a different key type from "+next); break; } // Found data next.successNotOverload(); // First get headers headers = ((ShortBuffer)msg.getObject(DMT.BLOCK_HEADERS)).getData(); // FIXME: Validate headers node.addTransferringSender((NodeCHK)key, this); try { prb = new PartiallyReceivedBlock(Node.PACKETS_IN_BLOCK, Node.PACKET_SIZE); synchronized(this) { notifyAll(); } BlockReceiver br = new BlockReceiver(node.usm, next, uid, prb, this); try { Logger.minor(this, "Receiving data"); byte[] data = br.receive(); Logger.minor(this, "Received data"); // Received data try { verifyAndCommit(data); } catch (KeyVerifyException e1) { Logger.normal(this, "Got data but verify failed: "+e1, e1); finish(VERIFY_FAILURE, next); return; } finish(SUCCESS, next); return; } catch (RetrievalException e) { Logger.normal(this, "Transfer failed: "+e, e); finish(TRANSFER_FAILED, next); return; } } finally { node.removeTransferringSender((NodeCHK)key, this); } } if(msg.getSpec() == DMT.FNPSSKPubKey) { Logger.minor(this, "Got pubkey on "+uid); if(!(key instanceof NodeSSK)) { Logger.error(this, "Got "+msg+" but expected a different key type from "+next); break; } byte[] pubkeyAsBytes = ((ShortBuffer)msg.getObject(DMT.PUBKEY_AS_BYTES)).getData(); try { if(pubKey == null) pubKey = new DSAPublicKey(pubkeyAsBytes); ((NodeSSK)key).setPubKey(pubKey); } catch (SSKVerifyException e) { pubKey = null; Logger.error(this, "Invalid pubkey from "+source+" on "+uid+" ("+e.getMessage()+")", e); break; // try next node } catch (IOException e) { Logger.error(this, "Invalid pubkey from "+source+" on "+uid+" ("+e+")"); break; // try next node } if(sskData != null) { finishSSK(next); return; } continue; } if(msg.getSpec() == DMT.FNPSSKDataFound) { Logger.minor(this, "Got data on "+uid); if(!(key instanceof NodeSSK)) { Logger.error(this, "Got "+msg+" but expected a different key type from "+next); break; } headers = ((ShortBuffer)msg.getObject(DMT.BLOCK_HEADERS)).getData(); sskData = ((ShortBuffer)msg.getObject(DMT.DATA)).getData(); if(pubKey != null) { finishSSK(next); return; } continue; } Logger.error(this, "Unexpected message: "+msg); } } } catch (Throwable t) { Logger.error(this, "Caught "+t, t); finish(INTERNAL_ERROR, null); } finally { Logger.minor(this, "Leaving RequestSender.run() for "+uid); node.completed(uid); node.removeRequestSender(key, origHTL, this); } }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/9ea509d6b77109eb95d09ad3d429f5c67c98b90b/RequestSender.java/buggy/src/freenet/node/RequestSender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 309, 12443, 856, 1276, 2029, 1260, 47, 13, 597, 261, 10174, 653, 422, 446, 3719, 288, 540, 202, 10174, 653, 273, 14015, 907, 1260, 47, 13, 856, 2934, 588, 17924, 5621, 540, 202, 430, 12, 10174, 653, 422, 446, 13, 540, 202, 202, 10174, 653, 273, 756, 18, 588, 653, 12443, 12, 907, 1260, 47, 13, 856, 2934, 588, 17924, 2310, 10663, 3639, 289, 7734, 3025, 1647, 5062, 48, 273, 366, 6172, 31, 9079, 6847, 2199, 4583, 329, 774, 273, 394, 6847, 5621, 3639, 6847, 2199, 1248, 15596, 273, 394, 6847, 5621, 3639, 775, 288, 3639, 1323, 12, 3767, 13, 288, 5411, 4242, 18, 17364, 12, 2211, 16, 315, 647, 80, 1546, 15, 647, 80, 1769, 5411, 309, 12, 647, 80, 422, 374, 13, 288, 7734, 368, 534, 26473, 7734, 368, 678, 1006, 506, 18001, 42, 309, 2454, 2950, 598, 1158, 25052, 7734, 368, 12484, 2674, 732, 8081, 1818, 3237, 329, 518, 471, 716, 1807, 2118, 11876, 18, 7734, 4076, 12, 30334, 67, 4400, 67, 9294, 16, 446, 1769, 7734, 327, 31, 5411, 289, 13491, 368, 5179, 518, 5411, 10669, 907, 1024, 31, 5411, 1645, 1024, 620, 31, 5411, 1024, 273, 756, 18, 30502, 18, 27736, 6813, 12, 3168, 16, 2199, 4583, 329, 774, 16, 2199, 1248, 15596, 16, 1018, 16, 638, 1769, 5411, 309, 12, 4285, 480, 446, 13, 7734, 1024, 620, 273, 1024, 18, 588, 2735, 7675, 24805, 5621, 5411, 469, 7734, 1024, 620, 273, 300, 21, 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, 1086, 1435, 288, 3639, 309, 12443, 856, 1276, 2029, 1260, 47, 13, 597, 261, 10174, 653, 422, 446, 3719, 288, 540, 202, 10174, 653, 273, 14015, 907, 1260, 47, 13, 856, 2934, 588, 17924, 5621, 540, 202, 430, 12, 10174, 653, 422, 446, 13, 540, 202, 202, 10174, 653, 273, 756, 18, 588, 653, 12443, 12, 907, 1260, 47, 13, 856, 2934, 588, 17924, 2310, 10663, 3639, 289, 7734, 3025, 1647, 5062, 48, 273, 366, 6172, 31, 9079, 6847, 2199, 4583, 329, 774, 273, 394, 6847, 5621, 3639, 6847, 2199, 1248, 15596, 273, 394, 6847, 5621, 3639, 775, 288, 3639, 1323, 12, 3767, 13, 288, 5411, 4242, 18, 17364, 12, 2211, 16, 315, 647, 80, 1546, 2 ]
output.dumpObject(RubyBignum.newBignum(runtime, value));
output.dumpObject(RubyBignum.newBignum(getRuntime(), value));
public void marshalTo(MarshalStream output) throws java.io.IOException { if (value <= MAX_MARSHAL_FIXNUM) { output.write('i'); output.dumpInt((int) value); } else { output.dumpObject(RubyBignum.newBignum(runtime, value)); } }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/clean/src/org/jruby/RubyFixnum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10893, 774, 12, 8105, 1228, 876, 13, 1216, 2252, 18, 1594, 18, 14106, 288, 3639, 309, 261, 1132, 1648, 4552, 67, 19772, 2664, 1013, 67, 4563, 6069, 13, 288, 5411, 876, 18, 2626, 2668, 77, 8284, 5411, 876, 18, 8481, 1702, 12443, 474, 13, 460, 1769, 3639, 289, 469, 288, 5411, 876, 18, 8481, 921, 12, 54, 10340, 38, 724, 379, 18, 2704, 38, 724, 379, 12, 588, 5576, 9334, 460, 10019, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10893, 774, 12, 8105, 1228, 876, 13, 1216, 2252, 18, 1594, 18, 14106, 288, 3639, 309, 261, 1132, 1648, 4552, 67, 19772, 2664, 1013, 67, 4563, 6069, 13, 288, 5411, 876, 18, 2626, 2668, 77, 8284, 5411, 876, 18, 8481, 1702, 12443, 474, 13, 460, 1769, 3639, 289, 469, 288, 5411, 876, 18, 8481, 921, 12, 54, 10340, 38, 724, 379, 18, 2704, 38, 724, 379, 12, 588, 5576, 9334, 460, 10019, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
BodyPeriodTotal = 0; BodyTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod); ShadowPeriodTotal = 0; ShadowTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].avgPeriod);
public TA_RetCode CDLLONGLINE(int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[]) { double BodyPeriodTotal, ShadowPeriodTotal; int i, outIdx, BodyTrailingIdx, ShadowTrailingIdx, lookbackTotal; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDLLONGLINE_Lookback(); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } BodyPeriodTotal = 0; BodyTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod); ShadowPeriodTotal = 0; ShadowTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].avgPeriod); i = BodyTrailingIdx; while (i < startIdx) { BodyPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))); i++; } i = ShadowTrailingIdx; while (i < startIdx) { ShadowPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))); i++; } outIdx = 0; do { if ((Math.abs(inClose[i] - inOpen[i])) > ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) != 0.0 ? BodyPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].avgPeriod) != 0.0 ? ShadowPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].avgPeriod) != 0.0 ? ShadowPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0))) outInteger[outIdx++] = (inClose[i] >= inOpen[i] ? 1 : -1) * 100; else outInteger[outIdx++] = 0; BodyPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[BodyTrailingIdx] - inOpen[BodyTrailingIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[BodyTrailingIdx] - inLow[BodyTrailingIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[BodyTrailingIdx] - (inClose[BodyTrailingIdx] >= inOpen[BodyTrailingIdx] ? inClose[BodyTrailingIdx] : inOpen[BodyTrailingIdx])) + ((inClose[BodyTrailingIdx] >= inOpen[BodyTrailingIdx] ? inOpen[BodyTrailingIdx] : inClose[BodyTrailingIdx]) - inLow[BodyTrailingIdx]) : 0))); ShadowPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[ShadowTrailingIdx] - inOpen[ShadowTrailingIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[ShadowTrailingIdx] - inLow[ShadowTrailingIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[ShadowTrailingIdx] - (inClose[ShadowTrailingIdx] >= inOpen[ShadowTrailingIdx] ? inClose[ShadowTrailingIdx] : inOpen[ShadowTrailingIdx])) + ((inClose[ShadowTrailingIdx] >= inOpen[ShadowTrailingIdx] ? inOpen[ShadowTrailingIdx] : inClose[ShadowTrailingIdx]) - inLow[ShadowTrailingIdx]) : 0))); i++; BodyTrailingIdx++; ShadowTrailingIdx++; } while (i <= endIdx); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode.TA_SUCCESS; }
2365 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2365/8c26ea7a2c59f9148f3db0db7ab39ed48689e601/Core.java/buggy/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 21508, 4503, 7390, 5997, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 3678, 63, 6487, 1082, 202, 9056, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 1082, 202, 49, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, 1046, 16, 509, 596, 4522, 63, 5717, 288, 202, 202, 9056, 5652, 5027, 5269, 16, 24915, 5027, 5269, 31, 202, 202, 474, 277, 16, 596, 4223, 16, 5652, 16808, 4223, 16, 24915, 16808, 4223, 16, 2324, 823, 5269, 31, 202, 202, 430, 261, 1937, 4223, 411, 374, 13, 1082, 202, 2463, 399, 37, 67, 7055, 1085, 18, 9833, 67, 5069, 67, 3932, 67, 15928, 67, 7570, 67, 9199, 31, 202, 202, 430, 14015, 409, 4223, 411, 374, 13, 747, 261, 409, 4223, 411, 27108, 3719, 1082, 202, 2463, 399, 37, 67, 7055, 1085, 18, 9833, 67, 5069, 67, 3932, 67, 15928, 67, 4415, 67, 9199, 31, 202, 202, 7330, 823, 5269, 273, 21508, 4503, 7390, 5997, 67, 9794, 823, 5621, 202, 202, 430, 261, 1937, 4223, 411, 2324, 823, 5269, 13, 1082, 202, 1937, 4223, 273, 2324, 823, 5269, 31, 202, 202, 430, 261, 1937, 4223, 405, 679, 4223, 13, 288, 1082, 202, 659, 24059, 4223, 18, 1132, 273, 374, 31, 1082, 202, 659, 22816, 1046, 18, 1132, 273, 374, 31, 1082, 202, 2463, 399, 37, 67, 7055, 1085, 18, 9833, 67, 12778, 31, 202, 202, 97, 202, 202, 2250, 5027, 5269, 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, 225, 202, 482, 399, 37, 67, 7055, 1085, 21508, 4503, 7390, 5997, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 3678, 63, 6487, 1082, 202, 9056, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 1082, 202, 49, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, 1046, 16, 509, 596, 4522, 63, 5717, 288, 202, 202, 9056, 5652, 5027, 5269, 16, 24915, 5027, 5269, 31, 202, 202, 474, 277, 16, 596, 4223, 16, 5652, 16808, 4223, 16, 24915, 16808, 4223, 16, 2324, 823, 5269, 31, 202, 202, 430, 261, 1937, 4223, 411, 374, 13, 1082, 202, 2463, 399, 37, 67, 7055, 1085, 18, 9833, 67, 5069, 67, 3932, 67, 15928, 67, 2 ]
case 129: case 130:
case 135: case 136:
public final Expression expr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST expr_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST castAST = null; org.exist.xquery.parser.XQueryAST t = null; org.exist.xquery.parser.XQueryAST someVarName = null; org.exist.xquery.parser.XQueryAST everyVarName = null; org.exist.xquery.parser.XQueryAST varName = null; org.exist.xquery.parser.XQueryAST posVar = null; org.exist.xquery.parser.XQueryAST letVarName = null; step= null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_cast: { AST __t286 = _t; castAST = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_cast); _t = _t.getFirstChild(); PathExpr expr= new PathExpr(context); int cardinality= Cardinality.EXACTLY_ONE; step=expr(_t,expr); _t = _retTree; t = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ATOMIC_TYPE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QUESTION: { org.exist.xquery.parser.XQueryAST tmp3_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QUESTION); _t = _t.getNextSibling(); cardinality= Cardinality.ZERO_OR_ONE; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } QName qn= QName.parse(context, t.getText()); int code= Type.getType(qn); CastExpression castExpr= new CastExpression(context, expr, code, cardinality); castExpr.setASTNode(castAST); path.add(castExpr); step = castExpr; _t = __t286; _t = _t.getNextSibling(); break; } case COMMA: { AST __t288 = _t; org.exist.xquery.parser.XQueryAST tmp4_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,COMMA); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; SequenceConstructor sc= new SequenceConstructor(context); sc.addExpression(left); sc.addExpression(right); path.add(sc); step = sc; _t = __t288; _t = _t.getNextSibling(); break; } case LITERAL_if: { AST __t289 = _t; org.exist.xquery.parser.XQueryAST tmp5_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_if); _t = _t.getFirstChild(); PathExpr testExpr= new PathExpr(context); PathExpr thenExpr= new PathExpr(context); PathExpr elseExpr= new PathExpr(context); step=expr(_t,testExpr); _t = _retTree; step=expr(_t,thenExpr); _t = _retTree; step=expr(_t,elseExpr); _t = _retTree; ConditionalExpression cond= new ConditionalExpression(context, testExpr, thenExpr, elseExpr); path.add(cond); step = cond; _t = __t289; _t = _t.getNextSibling(); break; } case LITERAL_some: { AST __t290 = _t; org.exist.xquery.parser.XQueryAST tmp6_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_some); _t = _t.getFirstChild(); List clauses= new ArrayList(); PathExpr satisfiesExpr = new PathExpr(context); { _loop295: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t292 = _t; someVarName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence = new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t294 = _t; org.exist.xquery.parser.XQueryAST tmp7_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t294; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case NCNAME: case EQ: case STRING_LITERAL: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 124: case 125: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 129: case 130: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= someVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t292; _t = _t.getNextSibling(); } else { break _loop295; } } while (true); } step=expr(_t,satisfiesExpr); _t = _retTree; Expression action = satisfiesExpr; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr = new QuantifiedExpression(context, QuantifiedExpression.SOME); expr.setVariable(clause.varName); expr.setSequenceType(clause.sequenceType); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); satisfiesExpr= null; action= expr; } path.add(action); step = action; _t = __t290; _t = _t.getNextSibling(); break; } case LITERAL_every: { AST __t296 = _t; org.exist.xquery.parser.XQueryAST tmp8_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_every); _t = _t.getFirstChild(); List clauses= new ArrayList(); PathExpr satisfiesExpr = new PathExpr(context); { _loop301: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t298 = _t; everyVarName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence = new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t300 = _t; org.exist.xquery.parser.XQueryAST tmp9_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t300; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case NCNAME: case EQ: case STRING_LITERAL: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 124: case 125: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 129: case 130: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= everyVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t298; _t = _t.getNextSibling(); } else { break _loop301; } } while (true); } step=expr(_t,satisfiesExpr); _t = _retTree; Expression action = satisfiesExpr; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr = new QuantifiedExpression(context, QuantifiedExpression.EVERY); expr.setVariable(clause.varName); expr.setSequenceType(clause.sequenceType); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); satisfiesExpr= null; action= expr; } path.add(action); step = action; _t = __t296; _t = _t.getNextSibling(); break; } case LITERAL_return: { AST __t302 = _t; org.exist.xquery.parser.XQueryAST tmp10_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_return); _t = _t.getFirstChild(); List clauses= new ArrayList(); Expression action= new PathExpr(context); PathExpr whereExpr= null; List orderBy= null; { int _cnt317=0; _loop317: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_for: { AST __t304 = _t; org.exist.xquery.parser.XQueryAST tmp11_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_for); _t = _t.getFirstChild(); { int _cnt310=0; _loop310: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t306 = _t; varName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence= new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t308 = _t; org.exist.xquery.parser.XQueryAST tmp12_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); clause.sequenceType= new SequenceType(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t308; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case POSITIONAL_VAR: case BEFORE: case AFTER: case NCNAME: case EQ: case STRING_LITERAL: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 124: case 125: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 129: case 130: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case POSITIONAL_VAR: { posVar = (org.exist.xquery.parser.XQueryAST)_t; match(_t,POSITIONAL_VAR); _t = _t.getNextSibling(); clause.posVar= posVar.getText(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case NCNAME: case EQ: case STRING_LITERAL: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 124: case 125: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 129: case 130: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= varName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t306; _t = _t.getNextSibling(); } else { if ( _cnt310>=1 ) { break _loop310; } else {throw new NoViableAltException(_t);} } _cnt310++; } while (true); } _t = __t304; _t = _t.getNextSibling(); break; } case LITERAL_let: { AST __t311 = _t; org.exist.xquery.parser.XQueryAST tmp13_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_let); _t = _t.getFirstChild(); { int _cnt316=0; _loop316: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t313 = _t; letVarName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); clause.isForClause= false; PathExpr inputSequence= new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t315 = _t; org.exist.xquery.parser.XQueryAST tmp14_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); clause.sequenceType= new SequenceType(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t315; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case NCNAME: case EQ: case STRING_LITERAL: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 124: case 125: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 129: case 130: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= letVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t313; _t = _t.getNextSibling(); } else { if ( _cnt316>=1 ) { break _loop316; } else {throw new NoViableAltException(_t);} } _cnt316++; } while (true); } _t = __t311; _t = _t.getNextSibling(); break; } default: { if ( _cnt317>=1 ) { break _loop317; } else {throw new NoViableAltException(_t);} } } _cnt317++; } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_where: { org.exist.xquery.parser.XQueryAST tmp15_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_where); _t = _t.getNextSibling(); whereExpr= new PathExpr(context); step=expr(_t,whereExpr); _t = _retTree; break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case ORDER_BY: case BEFORE: case AFTER: case NCNAME: case EQ: case STRING_LITERAL: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 124: case 125: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 129: case 130: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ORDER_BY: { AST __t320 = _t; org.exist.xquery.parser.XQueryAST tmp16_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ORDER_BY); _t = _t.getFirstChild(); orderBy= new ArrayList(3); { int _cnt326=0; _loop326: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_0.member(_t.getType()))) { PathExpr orderSpecExpr= new PathExpr(context); step=expr(_t,orderSpecExpr); _t = _retTree; OrderSpec orderSpec= new OrderSpec(orderSpecExpr); int modifiers= 0; orderBy.add(orderSpec); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_ascending: case LITERAL_descending: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_ascending: { org.exist.xquery.parser.XQueryAST tmp17_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_ascending); _t = _t.getNextSibling(); break; } case LITERAL_descending: { org.exist.xquery.parser.XQueryAST tmp18_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_descending); _t = _t.getNextSibling(); modifiers= OrderSpec.DESCENDING_ORDER; orderSpec.setModifiers(modifiers); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case NCNAME: case EQ: case STRING_LITERAL: case LCURLY: case COMMA: case LITERAL_empty: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 124: case 125: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 129: case 130: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_empty: { org.exist.xquery.parser.XQueryAST tmp19_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_empty); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_greatest: { org.exist.xquery.parser.XQueryAST tmp20_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_greatest); _t = _t.getNextSibling(); break; } case LITERAL_least: { org.exist.xquery.parser.XQueryAST tmp21_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_least); _t = _t.getNextSibling(); modifiers |= OrderSpec.EMPTY_LEAST; orderSpec.setModifiers(modifiers); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case NCNAME: case EQ: case STRING_LITERAL: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 124: case 125: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 129: case 130: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } } else { if ( _cnt326>=1 ) { break _loop326; } else {throw new NoViableAltException(_t);} } _cnt326++; } while (true); } _t = __t320; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case NCNAME: case EQ: case STRING_LITERAL: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 124: case 125: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 129: case 130: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,(PathExpr) action); _t = _retTree; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr; if (clause.isForClause) expr= new ForExpr(context); else expr= new LetExpr(context); expr.setVariable(clause.varName); expr.setSequenceType(clause.sequenceType); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); if (clause.isForClause) ((ForExpr) expr).setPositionalVariable(clause.posVar); if (whereExpr != null) { expr.setWhereExpression(whereExpr); whereExpr= null; } action= expr; } if (orderBy != null) { OrderSpec orderSpecs[]= new OrderSpec[orderBy.size()]; int k= 0; for (Iterator j= orderBy.iterator(); j.hasNext(); k++) { OrderSpec orderSpec= (OrderSpec) j.next(); orderSpecs[k]= orderSpec; } ((BindingExpression)action).setOrderSpecs(orderSpecs); } path.add(action); step = action; _t = __t302; _t = _t.getNextSibling(); break; } case LITERAL_or: { AST __t327 = _t; org.exist.xquery.parser.XQueryAST tmp22_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_or); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t327; _t = _t.getNextSibling(); OpOr or= new OpOr(context); or.addPath(left); or.addPath(right); path.addPath(or); step = or; break; } case LITERAL_and: { AST __t328 = _t; org.exist.xquery.parser.XQueryAST tmp23_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_and); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t328; _t = _t.getNextSibling(); OpAnd and= new OpAnd(context); and.addPath(left); and.addPath(right); path.addPath(and); step = and; break; } case UNION: { AST __t329 = _t; org.exist.xquery.parser.XQueryAST tmp24_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,UNION); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t329; _t = _t.getNextSibling(); Union union= new Union(context, left, right); path.add(union); step = union; break; } case LITERAL_intersect: { AST __t330 = _t; org.exist.xquery.parser.XQueryAST tmp25_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_intersect); _t = _t.getFirstChild(); PathExpr left = new PathExpr(context); PathExpr right = new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t330; _t = _t.getNextSibling(); Intersection intersect = new Intersection(context, left, right); path.add(intersect); step = intersect; break; } case LITERAL_except: { AST __t331 = _t; org.exist.xquery.parser.XQueryAST tmp26_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_except); _t = _t.getFirstChild(); PathExpr left = new PathExpr(context); PathExpr right = new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t331; _t = _t.getNextSibling(); Except intersect = new Except(context, left, right); path.add(intersect); step = intersect; break; } case ABSOLUTE_SLASH: { AST __t332 = _t; org.exist.xquery.parser.XQueryAST tmp27_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ABSOLUTE_SLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case NCNAME: case EQ: case STRING_LITERAL: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 124: case 125: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 129: case 130: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: { step=expr(_t,path); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t332; _t = _t.getNextSibling(); break; } case ABSOLUTE_DSLASH: { AST __t334 = _t; org.exist.xquery.parser.XQueryAST tmp28_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ABSOLUTE_DSLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case NCNAME: case EQ: case STRING_LITERAL: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 124: case 125: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 129: case 130: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: { step=expr(_t,path); _t = _retTree; if (step instanceof LocationStep) { LocationStep s= (LocationStep) step; if (s.getAxis() == Constants.ATTRIBUTE_AXIS) // combines descendant-or-self::node()/attribute:* s.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else s.setAxis(Constants.DESCENDANT_SELF_AXIS); } else step.setPrimaryAxis(Constants.DESCENDANT_SELF_AXIS); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t334; _t = _t.getNextSibling(); break; } case LITERAL_to: { AST __t336 = _t; org.exist.xquery.parser.XQueryAST tmp29_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_to); _t = _t.getFirstChild(); PathExpr start= new PathExpr(context); PathExpr end= new PathExpr(context); List args= new ArrayList(2); args.add(start); args.add(end); step=expr(_t,start); _t = _retTree; step=expr(_t,end); _t = _retTree; RangeExpression range= new RangeExpression(context); range.setArguments(args); path.addPath(range); step = range; _t = __t336; _t = _t.getNextSibling(); break; } case EQ: case LT: case GT: case NEQ: case GTEQ: case LTEQ: { step=generalComp(_t,path); _t = _retTree; break; } case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: { step=valueComp(_t,path); _t = _retTree; break; } case BEFORE: case AFTER: case LITERAL_is: case LITERAL_isnot: { step=nodeComp(_t,path); _t = _retTree; break; } case ANDEQ: case OREQ: { step=fulltextComp(_t,path); _t = _retTree; break; } case PARENTHESIZED: case FUNCTION: case VARIABLE_REF: case ELEMENT: case TEXT: case STRING_LITERAL: case LCURLY: case XML_COMMENT: case XML_PI: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=primaryExpr(_t,path); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case NCNAME: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 124: case 125: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 129: case 130: case LITERAL_preceding: { step=pathExpr(_t,path); _t = _retTree; break; } case UNARY_MINUS: case UNARY_PLUS: case STAR: case PLUS: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: { step=numericExpr(_t,path); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ddc6ab496ae303f007a96cb80352f3352974cbcf/XQueryTreeParser.java/clean/src/org/exist/xquery/parser/XQueryTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2235, 31, 9506, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 3065, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 67, 88, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 4812, 9053, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 268, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 2690, 18129, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 3614, 18129, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13722, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 949, 1537, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 2231, 18129, 273, 446, 31, 6862, 202, 4119, 33, 446, 31, 25083, 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, 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, 5371, 225, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2235, 31, 9506, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 3065, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 67, 88, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 4812, 9053, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 268, 273, 2 ]
public static synchronized WebAppContext instance(ServletContext servletContext) {
public static WebAppContext instance() {
public static synchronized WebAppContext instance(ServletContext servletContext) { if (instance == null) instance = new WebAppContext(servletContext); return instance; }
52783 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52783/5beed956a1a93d586f69d0d3aa2308faa56f70ad/WebAppContext.java/buggy/src/java/org/orbeon/oxf/webapp/WebAppContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 22162, 1042, 791, 1435, 288, 3639, 309, 261, 1336, 422, 446, 13, 5411, 791, 273, 394, 22162, 1042, 12, 23231, 1042, 1769, 3639, 327, 791, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 22162, 1042, 791, 1435, 288, 3639, 309, 261, 1336, 422, 446, 13, 5411, 791, 273, 394, 22162, 1042, 12, 23231, 1042, 1769, 3639, 327, 791, 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 ]
String property;
public Object convertValue(Map context, Object o, Member member, String s, Object value, Class aClass) { if (value == null) { return null; } Class clazz = null; try { OgnlContext ognlContext = (OgnlContext) context; Evaluation eval = ognlContext.getCurrentEvaluation(); String property; if (eval == null) { eval = ognlContext.getLastEvaluation(); clazz = eval.getResult().getClass(); property = (String) eval.getLastChild().getResult(); } else { clazz = eval.getLastChild().getSource().getClass(); property = (String) eval.getFirstChild().getResult(); } if (!noMapping.contains(clazz)) { Map mapping = (Map) mappings.get(clazz); if (mapping == null) { mapping = new HashMap(); mappings.put(clazz, mapping); String className = clazz.getName(); String resource = className.replace('.', '/') + "-conversion.properties"; InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(resource); Properties props = new Properties(); props.load(is); mapping.putAll(props); for (Iterator iterator = mapping.entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); entry.setValue(createTypeConverter((String) entry.getValue())); } } TypeConverter converter = (TypeConverter) mapping.get(property); if (converter != null) { return converter.convertValue(context, o, member, s, value, aClass); } } } catch (Throwable t) { if (clazz != null) { noMapping.add(clazz); } } if (defaultMappings.containsKey(aClass.getName())) { try { TypeConverter tc = (TypeConverter) defaultMappings.get(aClass.getName()); return tc.convertValue(context, o, member, s, value, aClass); } catch (Exception e) { e.printStackTrace(); } } return super.convertValue(context, o, member, s, value, aClass); }
16468 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/16468/a864a10e0ae74db12a683fe9ded33b591590ad5b/XWorkConverter.java/buggy/src/java/com/opensymphony/xwork/util/XWorkConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1765, 620, 12, 863, 819, 16, 1033, 320, 16, 8596, 3140, 16, 514, 272, 16, 1033, 460, 16, 1659, 20148, 13, 288, 3639, 309, 261, 1132, 422, 446, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 1659, 4003, 273, 446, 31, 3639, 775, 288, 5411, 531, 1600, 80, 1042, 320, 1600, 80, 1042, 273, 261, 51, 1600, 80, 1042, 13, 819, 31, 5411, 17340, 5302, 273, 320, 1600, 80, 1042, 18, 588, 3935, 13468, 5621, 15604, 309, 261, 8622, 422, 446, 13, 288, 7734, 5302, 273, 320, 1600, 80, 1042, 18, 588, 3024, 13468, 5621, 7734, 4003, 273, 5302, 18, 588, 1253, 7675, 588, 797, 5621, 7734, 1272, 273, 261, 780, 13, 5302, 18, 588, 3024, 1763, 7675, 588, 1253, 5621, 5411, 289, 469, 288, 7734, 4003, 273, 5302, 18, 588, 3024, 1763, 7675, 588, 1830, 7675, 588, 797, 5621, 7734, 1272, 273, 261, 780, 13, 5302, 18, 588, 3759, 1763, 7675, 588, 1253, 5621, 5411, 289, 5411, 309, 16051, 2135, 3233, 18, 12298, 12, 830, 3638, 3719, 288, 7734, 1635, 2874, 273, 261, 863, 13, 7990, 18, 588, 12, 830, 3638, 1769, 7734, 309, 261, 6770, 422, 446, 13, 288, 10792, 2874, 273, 394, 4317, 5621, 10792, 7990, 18, 458, 12, 830, 3638, 16, 2874, 1769, 10792, 514, 2658, 273, 4003, 18, 17994, 5621, 10792, 514, 1058, 273, 2658, 18, 2079, 2668, 1093, 16, 2023, 13, 397, 3701, 20990, 18, 4738, 14432, 10792, 5037, 353, 273, 4884, 18, 2972, 3830, 7675, 29120, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1765, 620, 12, 863, 819, 16, 1033, 320, 16, 8596, 3140, 16, 514, 272, 16, 1033, 460, 16, 1659, 20148, 13, 288, 3639, 309, 261, 1132, 422, 446, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 1659, 4003, 273, 446, 31, 3639, 775, 288, 5411, 531, 1600, 80, 1042, 320, 1600, 80, 1042, 273, 261, 51, 1600, 80, 1042, 13, 819, 31, 5411, 17340, 5302, 273, 320, 1600, 80, 1042, 18, 588, 3935, 13468, 5621, 15604, 309, 261, 8622, 422, 446, 13, 288, 7734, 5302, 273, 320, 1600, 80, 1042, 18, 588, 3024, 13468, 5621, 7734, 4003, 273, 5302, 18, 588, 1253, 7675, 588, 797, 5621, 7734, 1272, 273, 261, 780, 13, 5302, 18, 588, 2 ]
Member member = getMemberArg(evaluator, args, 0, true); return member.getUniqueName();
Level level = getLevelArg(evaluator, args, 0, true); return level.getUniqueName();
public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getUniqueName(); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/c9e00c64943ce43962e024696d2be989490b4a44/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 7734, 8596, 3140, 273, 18925, 4117, 12, 14168, 639, 16, 833, 16, 374, 16, 638, 1769, 7734, 327, 3140, 18, 588, 6303, 461, 5621, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2398, 1071, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 7734, 8596, 3140, 273, 18925, 4117, 12, 14168, 639, 16, 833, 16, 374, 16, 638, 1769, 7734, 327, 3140, 18, 588, 6303, 461, 5621, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public Event searchNCBI( RequestContext context ) throws Exception { String pubMedId = ( String ) context.getSourceEvent().getParameter( "pubMedId" ); if ( pubMedId == null ) return error(); // first see if we already have it in the system. BibliographicReference bibRefFound = bibliographicReferenceService.findByExternalId( pubMedId ); if ( bibRefFound != null ) { context.getRequestScope().setAttribute( "existsInSystem", Boolean.TRUE ); context.getFlowScope().setAttribute( "bibliographicReference", bibRefFound ); context.getRequestScope().setAttribute( "bibliographicReference", bibRefFound ); addMessage( context, "bibliographicReference.alreadyInSystem", new Object[] { pubMedId } ); } else { context.getRequestScope().setAttribute( "existsInSystem", Boolean.FALSE ); BibliographicReference bibRef = this.pubMedXmlFetcher.retrieveByHTTP( Integer.parseInt( pubMedId ) ); context.getRequestScope().setAttribute( "pubMedId", pubMedId ); context.getFlowScope().setAttribute( "pubMedId", pubMedId ); context.getRequestScope().setAttribute( "bibliographicReference", bibRef ); context.getFlowScope().setAttribute( "bibliographicReference", bibRef ); } return success(); }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/12b117373cdda82111d7643b903a5737e0c4ac46/PubMedExecuteQueryAction.java/buggy/src/web/edu/columbia/gemma/web/flow/bibref/PubMedExecuteQueryAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2587, 1623, 50, 8876, 45, 12, 20479, 819, 262, 1216, 1185, 288, 3639, 514, 5634, 13265, 548, 273, 261, 514, 262, 819, 18, 588, 1830, 1133, 7675, 588, 1662, 12, 315, 10174, 13265, 548, 6, 11272, 3639, 309, 261, 5634, 13265, 548, 422, 446, 262, 327, 555, 5621, 3639, 368, 1122, 2621, 309, 732, 1818, 1240, 518, 316, 326, 2619, 18, 3639, 605, 495, 549, 16983, 2404, 25581, 1957, 2043, 273, 25581, 549, 16983, 2404, 1179, 18, 4720, 858, 6841, 548, 12, 5634, 13265, 548, 11272, 3639, 309, 261, 25581, 1957, 2043, 480, 446, 262, 288, 5411, 819, 18, 588, 691, 3876, 7675, 542, 1499, 12, 315, 1808, 382, 3163, 3113, 3411, 18, 18724, 11272, 5411, 819, 18, 588, 5249, 3876, 7675, 542, 1499, 12, 315, 70, 495, 549, 16983, 2404, 3113, 25581, 1957, 2043, 11272, 5411, 819, 18, 588, 691, 3876, 7675, 542, 1499, 12, 315, 70, 495, 549, 16983, 2404, 3113, 25581, 1957, 2043, 11272, 5411, 16487, 12, 819, 16, 315, 70, 495, 549, 16983, 2404, 18, 17583, 382, 3163, 3113, 394, 1033, 8526, 288, 5634, 13265, 548, 289, 11272, 3639, 289, 469, 288, 5411, 819, 18, 588, 691, 3876, 7675, 542, 1499, 12, 315, 1808, 382, 3163, 3113, 3411, 18, 21053, 11272, 5411, 605, 495, 549, 16983, 2404, 25581, 1957, 273, 333, 18, 10174, 13265, 4432, 16855, 18, 17466, 858, 3693, 12, 2144, 18, 2670, 1702, 12, 5634, 13265, 548, 262, 11272, 5411, 819, 18, 588, 691, 3876, 7675, 542, 1499, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2587, 1623, 50, 8876, 45, 12, 20479, 819, 262, 1216, 1185, 288, 3639, 514, 5634, 13265, 548, 273, 261, 514, 262, 819, 18, 588, 1830, 1133, 7675, 588, 1662, 12, 315, 10174, 13265, 548, 6, 11272, 3639, 309, 261, 5634, 13265, 548, 422, 446, 262, 327, 555, 5621, 3639, 368, 1122, 2621, 309, 732, 1818, 1240, 518, 316, 326, 2619, 18, 3639, 605, 495, 549, 16983, 2404, 25581, 1957, 2043, 273, 25581, 549, 16983, 2404, 1179, 18, 4720, 858, 6841, 548, 12, 5634, 13265, 548, 11272, 3639, 309, 261, 25581, 1957, 2043, 480, 446, 262, 288, 5411, 819, 18, 588, 691, 3876, 7675, 542, 1499, 12, 315, 1808, 382, 3163, 3113, 3411, 18, 18724, 11272, 5411, 819, 2 ]
{ if (null != m_nodeSet) { int current = this.getCurrentNode(); next = m_nodeSet.nextNode(); } else next = DTM.NULL; } return next;
return DTM.NULL;
public int getNextNode() { int next; if (DTM.NULL != m_peek) { next = m_peek; m_peek = DTM.NULL; } else { if (null != m_nodeSet) { int current = this.getCurrentNode(); next = m_nodeSet.nextNode(); } else next = DTM.NULL; } // int current = setCurrentIfNotNull(next); // System.out.println("Returning: "+this); return next; }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/ba13bea236d621791ffcf3449822f5eee1d7a764/FilterExprWalker.java/buggy/src/org/apache/xpath/axes/FilterExprWalker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 6927, 907, 1435, 225, 288, 565, 509, 1024, 31, 565, 309, 261, 9081, 49, 18, 8560, 480, 312, 67, 347, 3839, 13, 565, 288, 1377, 1024, 273, 312, 67, 347, 3839, 31, 1377, 312, 67, 347, 3839, 273, 19854, 18, 8560, 31, 565, 289, 565, 469, 565, 288, 1377, 309, 261, 2011, 480, 312, 67, 2159, 694, 13, 1377, 288, 3639, 509, 783, 273, 333, 18, 588, 3935, 907, 5621, 3639, 1024, 273, 312, 67, 2159, 694, 18, 4285, 907, 5621, 1377, 289, 1377, 469, 3639, 1024, 273, 19854, 18, 8560, 31, 565, 289, 565, 368, 509, 783, 273, 12589, 2047, 5962, 12, 4285, 1769, 565, 368, 2332, 18, 659, 18, 8222, 2932, 28365, 30, 13773, 2211, 1769, 565, 327, 1024, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 6927, 907, 1435, 225, 288, 565, 509, 1024, 31, 565, 309, 261, 9081, 49, 18, 8560, 480, 312, 67, 347, 3839, 13, 565, 288, 1377, 1024, 273, 312, 67, 347, 3839, 31, 1377, 312, 67, 347, 3839, 273, 19854, 18, 8560, 31, 565, 289, 565, 469, 565, 288, 1377, 309, 261, 2011, 480, 312, 67, 2159, 694, 13, 1377, 288, 3639, 509, 783, 273, 333, 18, 588, 3935, 907, 5621, 3639, 1024, 273, 312, 67, 2159, 694, 18, 4285, 907, 5621, 1377, 289, 1377, 469, 3639, 1024, 273, 19854, 18, 8560, 31, 565, 289, 565, 368, 509, 783, 273, 12589, 2047, 5962, 12, 4285, 1769, 565, 368, 2332, 18, 659, 18, 8222, 2932, 28365, 30, 13773, 2 ]
myResult = createNonLFSpace(1, true);
myResult = createNonLFSpace(1, true, null);
public void visitIfStatement(PsiIfStatement statement) { if (myRole2 == ChildRole.ELSE_KEYWORD) { if (myChild1.getElementType() != ElementType.BLOCK_STATEMENT) { myResult = Formatter.getInstance().createSpaceProperty(0, 0, 1, mySettings.KEEP_LINE_BREAKS, mySettings.KEEP_BLANK_LINES_IN_CODE); } else { if (mySettings.ELSE_ON_NEW_LINE) { myResult = Formatter.getInstance().createSpaceProperty(0, 0, 1, mySettings.KEEP_LINE_BREAKS, mySettings.KEEP_BLANK_LINES_IN_CODE); } else { myResult = createNonLFSpace(1, false); } } } else if (myRole1 == ChildRole.ELSE_KEYWORD) { if (myChild2.getElementType() == ElementType.IF_STATEMENT) { if (mySettings.SPECIAL_ELSE_IF_TREATMENT) { myResult = createNonLFSpace(1, true); } else { myResult = Formatter.getInstance().createSpaceProperty(0, 0, 1, mySettings.KEEP_LINE_BREAKS, mySettings.KEEP_BLANK_LINES_IN_CODE); } } else { if (myChild2.getElementType() == ElementType.BLOCK_STATEMENT) { myResult = getSpaceBeforeLBrace(mySettings.SPACE_BEFORE_ELSE_LBRACE, mySettings.BRACE_STYLE); } else { createSpaceInCode(mySettings.SPACE_BEFORE_ELSE_LBRACE); } } } else if (myChild2.getElementType() == ElementType.BLOCK_STATEMENT) { boolean space = myRole2 == ChildRole.ELSE_BRANCH ? mySettings.SPACE_BEFORE_ELSE_LBRACE: mySettings.SPACE_BEFORE_IF_LBRACE; myResult = getSpaceBeforeLBrace(space, mySettings.BRACE_STYLE); } else if (myRole2 == ChildRole.LPARENTH) { createSpaceInCode(mySettings.SPACE_BEFORE_IF_PARENTHESES); } else if (myRole1 == ChildRole.LPARENTH) { createSpaceInCode(mySettings.SPACE_WITHIN_IF_PARENTHESES); } else if (myRole2 == ChildRole.RPARENTH) { createSpaceInCode(mySettings.SPACE_WITHIN_IF_PARENTHESES); } else if (myRole2 == ChildRole.THEN_BRANCH) { createSpaceInCode(true); } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/789412ab36db73e21c69cd7d197557454be0fd15/JavaSpacePropertyProcessor.java/clean/source/com/intellij/psi/formatter/java/JavaSpacePropertyProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3757, 2047, 3406, 12, 52, 7722, 2047, 3406, 3021, 13, 288, 565, 309, 261, 4811, 2996, 22, 422, 7451, 2996, 18, 2247, 1090, 67, 28813, 13, 288, 1377, 309, 261, 4811, 1763, 21, 18, 588, 17481, 1435, 480, 3010, 559, 18, 11403, 67, 28411, 13, 288, 3639, 3399, 1253, 273, 14924, 18, 588, 1442, 7675, 2640, 3819, 1396, 12, 20, 16, 374, 16, 404, 16, 3399, 2628, 18, 6859, 10541, 67, 5997, 67, 27960, 55, 16, 3399, 2628, 18, 6859, 10541, 67, 38, 24307, 67, 5997, 55, 67, 706, 67, 5572, 1769, 1377, 289, 469, 288, 3639, 309, 261, 4811, 2628, 18, 2247, 1090, 67, 673, 67, 12917, 67, 5997, 13, 288, 1850, 3399, 1253, 273, 14924, 18, 588, 1442, 7675, 2640, 3819, 1396, 12, 20, 16, 374, 16, 404, 16, 3399, 2628, 18, 6859, 10541, 67, 5997, 67, 27960, 55, 16, 3399, 2628, 18, 6859, 10541, 67, 38, 24307, 67, 5997, 55, 67, 706, 67, 5572, 1769, 3639, 289, 469, 288, 1850, 3399, 1253, 273, 752, 3989, 9105, 3819, 12, 21, 16, 629, 1769, 3639, 289, 1377, 289, 565, 289, 469, 309, 261, 4811, 2996, 21, 422, 7451, 2996, 18, 2247, 1090, 67, 28813, 13, 288, 1377, 309, 261, 4811, 1763, 22, 18, 588, 17481, 1435, 422, 3010, 559, 18, 5501, 67, 28411, 13, 288, 3639, 309, 261, 4811, 2628, 18, 13847, 6365, 67, 2247, 1090, 67, 5501, 67, 56, 862, 789, 3212, 13, 288, 1850, 3399, 1253, 273, 752, 3989, 9105, 3819, 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, 3757, 2047, 3406, 12, 52, 7722, 2047, 3406, 3021, 13, 288, 565, 309, 261, 4811, 2996, 22, 422, 7451, 2996, 18, 2247, 1090, 67, 28813, 13, 288, 1377, 309, 261, 4811, 1763, 21, 18, 588, 17481, 1435, 480, 3010, 559, 18, 11403, 67, 28411, 13, 288, 3639, 3399, 1253, 273, 14924, 18, 588, 1442, 7675, 2640, 3819, 1396, 12, 20, 16, 374, 16, 404, 16, 3399, 2628, 18, 6859, 10541, 67, 5997, 67, 27960, 55, 16, 3399, 2628, 18, 6859, 10541, 67, 38, 24307, 67, 5997, 55, 67, 706, 67, 5572, 1769, 1377, 289, 469, 288, 3639, 309, 261, 4811, 2628, 18, 2247, 1090, 67, 673, 67, 12917, 67, 5997, 13, 288, 1850, 3399, 1253, 273, 2 ]
((Combo)radioOptions[i]).select(0); ((Combo)radioOptions[i]).addSelectionListener(new RadioButtonListener()); } else if(o.isInput()){
((Combo) radioOptions[i]).select(0); ((Combo) radioOptions[i]).addSelectionListener(new RadioButtonListener()); } else if (o.isInput()) {
protected void addRadioButtons(Composite buttonComposite) { int i = 0; Button selected = null; radios = new Button[bug.getOperations().size()]; radioOptions = new Control[bug.getOperations().size()]; for (Iterator<Operation> it = bug.getOperations().iterator(); it.hasNext(); ) { Operation o = it.next(); radios[i] = new Button(buttonComposite, SWT.RADIO); radios[i].setFont(TEXT_FONT); GridData radioData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); if (!o.hasOptions() && !o.isInput()) radioData.horizontalSpan = 4; else radioData.horizontalSpan = 3; radioData.heightHint = 20; String opName = o.getOperationName(); opName = opName.replaceAll("</.*>", ""); opName = opName.replaceAll("<.*>", ""); radios[i].setText(opName); radios[i].setLayoutData(radioData); radios[i].setBackground(background); radios[i].addSelectionListener(new RadioButtonListener()); radios[i].addListener(SWT.FocusIn, new GenericListener()); if (o.hasOptions()) { radioData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); radioData.horizontalSpan = 1; radioData.heightHint = 20; radioData.widthHint = AbstractBugEditor.WRAP_LENGTH; radioOptions[i] = new Combo( buttonComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); radioOptions[i].setFont(TEXT_FONT); radioOptions[i].setLayoutData(radioData); radioOptions[i].setBackground(background); Object [] a = o.getOptionNames().toArray(); Arrays.sort(a); for (int j = 0; j < a.length; j++) { ((Combo)radioOptions[i]).add((String) a[j]); } ((Combo)radioOptions[i]).select(0); ((Combo)radioOptions[i]).addSelectionListener(new RadioButtonListener()); } else if(o.isInput()){ radioData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); radioData.horizontalSpan = 1; radioData.widthHint = 120; radioOptions[i] = new Text( buttonComposite, SWT.BORDER | SWT.SINGLE); radioOptions[i].setFont(TEXT_FONT); radioOptions[i].setLayoutData(radioData); radioOptions[i].setBackground(background); ((Text)radioOptions[i]).setText(o.getInputValue()); ((Text)radioOptions[i]).addModifyListener(new RadioButtonListener()); } if (i == 0 || o.isChecked()) { if(selected != null) selected.setSelection(false); selected = radios[i]; radios[i].setSelection(true); if(o.hasOptions() && o.getOptionSelection() != null){ int j = 0; for(String s: ((Combo)radioOptions[i]).getItems()){ if(s.compareTo(o.getOptionSelection()) == 0){ ((Combo)radioOptions[i]).select(j); } j++; } } bug.setSelectedOperation(o); } i++; } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/175b3471b8f3ebe4611aa1721b1c96ed45badae8/ExistingBugEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/ExistingBugEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 19984, 14388, 12, 9400, 3568, 9400, 13, 288, 202, 202, 474, 277, 273, 374, 31, 202, 202, 3616, 3170, 273, 446, 31, 202, 202, 22799, 538, 273, 394, 12569, 63, 925, 18, 588, 9343, 7675, 1467, 1435, 15533, 202, 202, 17006, 1320, 273, 394, 8888, 63, 925, 18, 588, 9343, 7675, 1467, 1435, 15533, 202, 202, 1884, 261, 3198, 32, 2988, 34, 518, 273, 7934, 18, 588, 9343, 7675, 9838, 5621, 518, 18, 5332, 2134, 5621, 262, 288, 1082, 202, 2988, 320, 273, 518, 18, 4285, 5621, 1082, 202, 22799, 538, 63, 77, 65, 273, 394, 12569, 12, 5391, 9400, 16, 348, 8588, 18, 28829, 4294, 1769, 1082, 202, 22799, 538, 63, 77, 8009, 542, 5711, 12, 5151, 67, 25221, 1769, 1082, 202, 6313, 751, 13512, 751, 273, 394, 7145, 751, 12, 6313, 751, 18, 44, 20344, 67, 26439, 67, 16061, 15870, 1769, 1082, 202, 430, 16051, 83, 18, 5332, 1320, 1435, 597, 401, 83, 18, 291, 1210, 10756, 9506, 202, 17006, 751, 18, 18396, 6952, 273, 1059, 31, 1082, 202, 12107, 9506, 202, 17006, 751, 18, 18396, 6952, 273, 890, 31, 1082, 202, 17006, 751, 18, 4210, 7002, 273, 4200, 31, 1082, 202, 780, 1061, 461, 273, 320, 18, 588, 2988, 461, 5621, 1082, 202, 556, 461, 273, 1061, 461, 18, 2079, 1595, 2932, 1757, 4509, 2984, 16, 1408, 1769, 1082, 202, 556, 461, 273, 1061, 461, 18, 2079, 1595, 2932, 32, 4509, 2984, 16, 1408, 1769, 1082, 202, 22799, 538, 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, 527, 19984, 14388, 12, 9400, 3568, 9400, 13, 288, 202, 202, 474, 277, 273, 374, 31, 202, 202, 3616, 3170, 273, 446, 31, 202, 202, 22799, 538, 273, 394, 12569, 63, 925, 18, 588, 9343, 7675, 1467, 1435, 15533, 202, 202, 17006, 1320, 273, 394, 8888, 63, 925, 18, 588, 9343, 7675, 1467, 1435, 15533, 202, 202, 1884, 261, 3198, 32, 2988, 34, 518, 273, 7934, 18, 588, 9343, 7675, 9838, 5621, 518, 18, 5332, 2134, 5621, 262, 288, 1082, 202, 2988, 320, 273, 518, 18, 4285, 5621, 1082, 202, 22799, 538, 63, 77, 65, 273, 394, 12569, 12, 5391, 9400, 16, 348, 8588, 18, 28829, 4294, 1769, 1082, 202, 22799, 538, 63, 77, 8009, 2 ]
public void setExportPackage( String exportPackage )
public void setExportPackage(String exportPackage)
public void setExportPackage( String exportPackage ) { this.exportPackage = exportPackage; }
45948 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45948/c763a84a11498e205c5e5e28f32c0954fcffc2e9/OsgiManifest.java/buggy/tools/maven2/maven-osgi-plugin/src/main/java/org/apache/felix/tools/maven/plugin/OsgiManifest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 6144, 2261, 12, 780, 3359, 2261, 13, 565, 288, 3639, 333, 18, 6530, 2261, 273, 3359, 2261, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 444, 6144, 2261, 12, 780, 3359, 2261, 13, 565, 288, 3639, 333, 18, 6530, 2261, 273, 3359, 2261, 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 ]
((IFile) resource).setCharset(encoding, monitor);
((IFile) resource).setCharset(finalEncoding, monitor);
protected IStatus run(IProgressMonitor monitor) { try { if (resource instanceof IContainer) ((IContainer) resource).setDefaultCharset(encoding, monitor); else ((IFile) resource).setCharset(encoding, monitor); return Status.OK_STATUS; } catch (CoreException e) {//If there is an error return the default WorkbenchPlugin.log(IDEWorkbenchMessages.getString("ResourceEncodingFieldEditor.ErrorStoringMessage"), e.getStatus()); //$NON-NLS-1$ return e.getStatus(); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/293347d0cfa5214b398a6ef52efacc4bfb2b5b72/ResourceEncodingFieldEditor.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ResourceEncodingFieldEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 1117, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 9506, 202, 698, 288, 6862, 202, 430, 261, 3146, 1276, 467, 2170, 13, 25083, 202, 12443, 45, 2170, 13, 1058, 2934, 542, 1868, 9652, 12, 5999, 16, 6438, 1769, 6862, 202, 12107, 25083, 202, 12443, 45, 812, 13, 1058, 2934, 542, 9652, 12, 5999, 16, 6438, 1769, 6862, 202, 2463, 2685, 18, 3141, 67, 8608, 31, 9506, 202, 97, 1044, 261, 25341, 425, 13, 288, 759, 2047, 1915, 353, 392, 555, 327, 326, 805, 6862, 202, 2421, 22144, 3773, 18, 1330, 12, 10385, 2421, 22144, 5058, 18, 588, 780, 2932, 1420, 4705, 974, 6946, 18, 668, 510, 6053, 1079, 6, 3631, 425, 18, 588, 1482, 10663, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 2463, 425, 18, 588, 1482, 5621, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1117, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 9506, 202, 698, 288, 6862, 202, 430, 261, 3146, 1276, 467, 2170, 13, 25083, 202, 12443, 45, 2170, 13, 1058, 2934, 542, 1868, 9652, 12, 5999, 16, 6438, 1769, 6862, 202, 12107, 25083, 202, 12443, 45, 812, 13, 1058, 2934, 542, 9652, 12, 5999, 16, 6438, 1769, 6862, 202, 2463, 2685, 18, 3141, 67, 8608, 31, 9506, 202, 97, 1044, 261, 25341, 425, 13, 288, 759, 2047, 1915, 353, 392, 555, 327, 326, 805, 6862, 202, 2421, 22144, 3773, 18, 1330, 12, 10385, 2421, 22144, 5058, 18, 588, 780, 2932, 1420, 4705, 974, 6946, 18, 668, 510, 6053, 1079, 6, 3631, 425, 18, 588, 1482, 10663, 2 ]
_helpFrame.setVisible(true);
_quickStartFrame.setVisible(true);
public void actionPerformed(ActionEvent ae) { // Create frame if we haven't yet if (_helpFrame == null) { _helpFrame = new HelpFrame(); } _helpFrame.setVisible(true); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/db91dcc7aa4674cfe5508cd82ff717a758a32bca/MainFrame.java/clean/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 14221, 13, 288, 1377, 368, 1788, 2623, 309, 732, 15032, 1404, 4671, 1377, 309, 261, 67, 5201, 3219, 422, 446, 13, 288, 3639, 389, 5201, 3219, 273, 394, 11288, 3219, 5621, 1377, 289, 1377, 389, 19525, 1685, 3219, 18, 542, 6207, 12, 3767, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 14221, 13, 288, 1377, 368, 1788, 2623, 309, 732, 15032, 1404, 4671, 1377, 309, 261, 67, 5201, 3219, 422, 446, 13, 288, 3639, 389, 5201, 3219, 273, 394, 11288, 3219, 5621, 1377, 289, 1377, 389, 19525, 1685, 3219, 18, 542, 6207, 12, 3767, 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 ]
SingleResultQuerier querier = new SingleResultQuerier(this, "select alarmid from alarms where reductionKey = ?");
SingleResultQuerier querier = new SingleResultQuerier(this, "select alarmid from alarms where reductionKey = ?;");
public Integer getAlarmId(String reductionKey) { SingleResultQuerier querier = new SingleResultQuerier(this, "select alarmid from alarms where reductionKey = ?"); querier.execute(reductionKey); return (Integer)querier.getResult(); }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/7fc2867031a646336a69eb6ad11ecd8b103f983e/MockDatabase.java/buggy/src/services/org/opennms/netmgt/mock/MockDatabase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2144, 336, 16779, 548, 12, 780, 20176, 653, 13, 288, 3639, 10326, 1253, 928, 264, 2453, 21287, 2453, 273, 394, 10326, 1253, 928, 264, 2453, 12, 2211, 16, 315, 4025, 13721, 350, 628, 524, 20452, 1625, 20176, 653, 273, 692, 4868, 1769, 3639, 21287, 2453, 18, 8837, 12, 1118, 4062, 653, 1769, 3639, 327, 261, 4522, 13, 25734, 2453, 18, 588, 1253, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2144, 336, 16779, 548, 12, 780, 20176, 653, 13, 288, 3639, 10326, 1253, 928, 264, 2453, 21287, 2453, 273, 394, 10326, 1253, 928, 264, 2453, 12, 2211, 16, 315, 4025, 13721, 350, 628, 524, 20452, 1625, 20176, 653, 273, 692, 4868, 1769, 3639, 21287, 2453, 18, 8837, 12, 1118, 4062, 653, 1769, 3639, 327, 261, 4522, 13, 25734, 2453, 18, 588, 1253, 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 ]
if (node != null) return node;
if (node != null) { return node; }
public LayoutTreeNode findSash(LayoutPartSash sash) { if (this.getSash() == sash) return this; LayoutTreeNode node = children[0].findSash(sash); if (node != null) return node; node = children[1].findSash(sash); if (node != null) return node; return null; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/LayoutTreeNode.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/LayoutTreeNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9995, 12513, 1104, 55, 961, 12, 3744, 1988, 55, 961, 272, 961, 13, 288, 3639, 309, 261, 2211, 18, 588, 55, 961, 1435, 422, 272, 961, 13, 5411, 327, 333, 31, 3639, 9995, 12513, 756, 273, 2325, 63, 20, 8009, 4720, 55, 961, 12, 87, 961, 1769, 3639, 309, 261, 2159, 480, 446, 13, 5411, 327, 756, 31, 3639, 756, 273, 2325, 63, 21, 8009, 4720, 55, 961, 12, 87, 961, 1769, 3639, 309, 261, 2159, 480, 446, 13, 5411, 327, 756, 31, 3639, 327, 446, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1071, 9995, 12513, 1104, 55, 961, 12, 3744, 1988, 55, 961, 272, 961, 13, 288, 3639, 309, 261, 2211, 18, 588, 55, 961, 1435, 422, 272, 961, 13, 5411, 327, 333, 31, 3639, 9995, 12513, 756, 273, 2325, 63, 20, 8009, 4720, 55, 961, 12, 87, 961, 1769, 3639, 309, 261, 2159, 480, 446, 13, 5411, 327, 756, 31, 3639, 756, 273, 2325, 63, 21, 8009, 4720, 55, 961, 12, 87, 961, 1769, 3639, 309, 261, 2159, 480, 446, 13, 5411, 327, 756, 31, 3639, 327, 446, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (segType != iter.SEG_MOVETO) {
if (segType != ExtendedPathIterator.SEG_MOVETO) {
protected ProxyGraphicsNode buildEndMarkerProxy() { ExtendedPathIterator iter = getExtShape().getExtendedPathIterator(); int nPoints = 0; // Get first point, in case the last segment on the // path is a close if (iter.isDone()) { return null; } double coords[] = new double[7]; double moveTo[] = new double[2]; int segType = 0; segType = iter.currentSegment(coords); if (segType != iter.SEG_MOVETO) { return null; } nPoints++; moveTo[0] = coords[0]; moveTo[1] = coords[1]; iter.next(); // Now, get the last two points on the path double[] lastButOne = new double[7]; double[] last = {coords[0], coords[1], coords[2], coords[3], coords[4], coords[5], coords[6] }; double[] tmp = null; int lastSegType = segType; int lastButOneSegType = 0; while (!iter.isDone()) { tmp = lastButOne; lastButOne = last; last = tmp; lastButOneSegType = lastSegType; lastSegType = iter.currentSegment(last); if (lastSegType == PathIterator.SEG_MOVETO) { moveTo[0] = last[0]; moveTo[1] = last[1]; } else if (lastSegType == PathIterator.SEG_CLOSE) { lastSegType = PathIterator.SEG_LINETO; last[0] = moveTo[0]; last[1] = moveTo[1]; } iter.next(); nPoints++; } if (nPoints < 2) { return null; } // Turn the last segment into a position Point2D markerPosition = getSegmentTerminatingPoint(last, lastSegType); // If the marker's orient property is NaN, // the slope needs to be computed double rotation = endMarker.getOrient(); if (Double.isNaN(rotation)) { rotation = computeRotation(lastButOne, lastButOneSegType, last, lastSegType, null, 0); } // Now, compute the marker's proxy transform AffineTransform markerTxf = computeMarkerTransform(endMarker, markerPosition, rotation); ProxyGraphicsNode gn = new ProxyGraphicsNode(); gn.setSource(endMarker.getMarkerNode()); gn.setTransform(markerTxf); return gn; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/37794489f7dedd0c74c1b7ae67e92cf8d877b256/MarkerShapePainter.java/buggy/sources/org/apache/batik/gvt/MarkerShapePainter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 7659, 17558, 907, 1361, 1638, 7078, 3886, 1435, 288, 3639, 14094, 743, 3198, 1400, 273, 336, 2482, 8500, 7675, 588, 11456, 743, 3198, 5621, 3639, 509, 290, 5636, 273, 374, 31, 3639, 368, 968, 1122, 1634, 16, 316, 648, 326, 1142, 3267, 603, 326, 3639, 368, 589, 353, 279, 1746, 3639, 309, 261, 2165, 18, 291, 7387, 10756, 288, 5411, 327, 446, 31, 3639, 289, 202, 3639, 1645, 6074, 8526, 273, 394, 1645, 63, 27, 15533, 3639, 1645, 13863, 8526, 273, 394, 1645, 63, 22, 15533, 3639, 509, 2291, 559, 273, 374, 31, 3639, 2291, 559, 273, 1400, 18, 2972, 4131, 12, 9076, 1769, 3639, 309, 261, 5680, 559, 480, 14094, 743, 3198, 18, 1090, 43, 67, 5980, 58, 1584, 51, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 290, 5636, 9904, 31, 3639, 13863, 63, 20, 65, 273, 6074, 63, 20, 15533, 3639, 13863, 63, 21, 65, 273, 6074, 63, 21, 15533, 3639, 1400, 18, 4285, 5621, 7734, 368, 4494, 16, 336, 326, 1142, 2795, 3143, 603, 326, 589, 3639, 1645, 8526, 1142, 31167, 3335, 273, 394, 1645, 63, 27, 15533, 3639, 1645, 8526, 1142, 273, 288, 9076, 63, 20, 6487, 6074, 63, 21, 6487, 6074, 63, 22, 6487, 7682, 6074, 63, 23, 6487, 6074, 63, 24, 6487, 6074, 63, 25, 6487, 6074, 63, 26, 65, 289, 31, 3639, 1645, 8526, 1853, 273, 446, 31, 3639, 509, 1142, 3289, 559, 273, 2291, 559, 31, 3639, 509, 1142, 31167, 3335, 3289, 559, 273, 374, 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, 7659, 17558, 907, 1361, 1638, 7078, 3886, 1435, 288, 3639, 14094, 743, 3198, 1400, 273, 336, 2482, 8500, 7675, 588, 11456, 743, 3198, 5621, 3639, 509, 290, 5636, 273, 374, 31, 3639, 368, 968, 1122, 1634, 16, 316, 648, 326, 1142, 3267, 603, 326, 3639, 368, 589, 353, 279, 1746, 3639, 309, 261, 2165, 18, 291, 7387, 10756, 288, 5411, 327, 446, 31, 3639, 289, 202, 3639, 1645, 6074, 8526, 273, 394, 1645, 63, 27, 15533, 3639, 1645, 13863, 8526, 273, 394, 1645, 63, 22, 15533, 3639, 509, 2291, 559, 273, 374, 31, 3639, 2291, 559, 273, 1400, 18, 2972, 4131, 12, 9076, 1769, 3639, 309, 261, 5680, 559, 480, 14094, 743, 3198, 18, 1090, 43, 67, 2 ]
return packedData; }
return packedData; }
static byte[] discardNonBase64(byte[] data) { byte groomedData[] = new byte[data.length]; int bytesCopied = 0; for (int i = 0; i < data.length; i++) { if( isBase64(data[i]) ) { groomedData[bytesCopied++] = data[i]; } } byte packedData[] = new byte[bytesCopied]; System.arraycopy(groomedData, 0, packedData, 0, bytesCopied); return packedData; }
7890 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7890/7748f47dcab2b77d0aeceef6af87b13851c3e7f3/Base64.java/buggy/src/java/org/apache/commons/codec/binary/Base64.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 1160, 8526, 10388, 3989, 2171, 1105, 12, 7229, 8526, 501, 13, 288, 202, 202, 7229, 314, 13924, 329, 751, 8526, 273, 394, 1160, 63, 892, 18, 2469, 15533, 202, 202, 474, 1731, 28127, 273, 374, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 501, 18, 2469, 31, 277, 27245, 288, 1082, 202, 430, 12, 353, 2171, 1105, 12, 892, 63, 77, 5717, 262, 288, 9506, 225, 314, 13924, 329, 751, 63, 3890, 28127, 9904, 65, 273, 501, 63, 77, 15533, 1082, 202, 97, 202, 202, 97, 202, 202, 7229, 12456, 751, 8526, 273, 394, 1160, 63, 3890, 28127, 15533, 202, 202, 3163, 18, 1126, 3530, 12, 75, 13924, 329, 751, 16, 374, 16, 12456, 751, 16, 374, 16, 1731, 28127, 1769, 202, 202, 2463, 12456, 751, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 1160, 8526, 10388, 3989, 2171, 1105, 12, 7229, 8526, 501, 13, 288, 202, 202, 7229, 314, 13924, 329, 751, 8526, 273, 394, 1160, 63, 892, 18, 2469, 15533, 202, 202, 474, 1731, 28127, 273, 374, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 501, 18, 2469, 31, 277, 27245, 288, 1082, 202, 430, 12, 353, 2171, 1105, 12, 892, 63, 77, 5717, 262, 288, 9506, 225, 314, 13924, 329, 751, 63, 3890, 28127, 9904, 65, 273, 501, 63, 77, 15533, 1082, 202, 97, 202, 202, 97, 202, 202, 7229, 12456, 751, 8526, 273, 394, 1160, 63, 3890, 28127, 15533, 202, 202, 3163, 18, 1126, 3530, 12, 75, 13924, 329, 751, 16, 374, 2 ]
if(prb != null) return false;
if((!prbWasNonNull) && prb != null) { prbWasNonNull = true; return false; }
public synchronized boolean waitUntilStatusChange() { while(true) { if((!hadROLastTimeWaited) && hasForwardedRejectedOverload) { hadROLastTimeWaited = true; return true; } if(prb != null) return false; if(status != NOT_FINISHED) return false; try { wait(10000); } catch (InterruptedException e) { // Ignore } } }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/a4bbebc6a92685d6297858e2d3ff36c80939b966/RequestSender.java/clean/src/freenet/node/RequestSender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 1250, 2529, 9716, 1482, 3043, 1435, 288, 3639, 1323, 12, 3767, 13, 288, 540, 202, 430, 12443, 5, 76, 361, 1457, 3024, 950, 5480, 329, 13, 597, 711, 22915, 19902, 4851, 945, 13, 288, 540, 202, 202, 76, 361, 1457, 3024, 950, 5480, 329, 273, 638, 31, 540, 202, 202, 2463, 638, 31, 540, 202, 97, 5411, 309, 12443, 5, 683, 70, 14992, 8921, 13, 597, 846, 70, 480, 446, 13, 288, 846, 70, 14992, 8921, 273, 638, 31, 327, 629, 31, 289, 5411, 309, 12, 2327, 480, 4269, 67, 23259, 2056, 13, 327, 629, 31, 5411, 775, 288, 7734, 2529, 12, 23899, 1769, 5411, 289, 1044, 261, 24485, 503, 425, 13, 288, 7734, 368, 8049, 5411, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1071, 3852, 1250, 2529, 9716, 1482, 3043, 1435, 288, 3639, 1323, 12, 3767, 13, 288, 540, 202, 430, 12443, 5, 76, 361, 1457, 3024, 950, 5480, 329, 13, 597, 711, 22915, 19902, 4851, 945, 13, 288, 540, 202, 202, 76, 361, 1457, 3024, 950, 5480, 329, 273, 638, 31, 540, 202, 202, 2463, 638, 31, 540, 202, 97, 5411, 309, 12443, 5, 683, 70, 14992, 8921, 13, 597, 846, 70, 480, 446, 13, 288, 846, 70, 14992, 8921, 273, 638, 31, 327, 629, 31, 289, 5411, 309, 12, 2327, 480, 4269, 67, 23259, 2056, 13, 327, 629, 31, 5411, 775, 288, 7734, 2529, 12, 23899, 1769, 5411, 289, 1044, 261, 24485, 503, 425, 13, 288, 7734, 368, 8049, 2 ]
private static int processAnnotation(Annotation annot, Position pos, int invocationLocation, int bestOffset, boolean goToClosest, ArrayList resultingAnnotations) {
private static int processAnnotation(Annotation annot, Position pos, int invocationLocation, int bestOffset) {
private static int processAnnotation(Annotation annot, Position pos, int invocationLocation, int bestOffset, boolean goToClosest, ArrayList resultingAnnotations) { int posBegin= pos.offset; int posEnd= posBegin + pos.length; if (isInside(invocationLocation, posBegin, posEnd)) { // covers invocation location? if (bestOffset != invocationLocation) { resultingAnnotations.clear(); bestOffset= invocationLocation; } resultingAnnotations.add(annot); // don't do the 'hasCorrections' test } else if (goToClosest && bestOffset != invocationLocation) { int newClosestPosition= computeBestOffset(posBegin, invocationLocation, bestOffset); if (newClosestPosition != -1) { if (newClosestPosition != bestOffset) { // new best if (JavaCorrectionProcessor.hasCorrections(annot)) { // only jump to it if there are proposals resultingAnnotations.clear(); bestOffset= newClosestPosition; resultingAnnotations.add(annot); } } else { // as good as previous, don't do the 'hasCorrections' test resultingAnnotations.add(annot); } } } return bestOffset; }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/ecf7039c3942c8b09b2321672c82bc5d1314ec58/JavaCorrectionAssistant.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/JavaCorrectionAssistant.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 509, 1207, 3257, 12, 3257, 6545, 16, 11010, 949, 16, 509, 9495, 2735, 16, 509, 3796, 2335, 16, 1250, 1960, 774, 4082, 7781, 16, 2407, 8156, 5655, 13, 288, 202, 202, 474, 949, 8149, 33, 949, 18, 3348, 31, 202, 202, 474, 949, 1638, 33, 949, 8149, 397, 949, 18, 2469, 31, 202, 202, 430, 261, 291, 18619, 12, 5768, 4431, 2735, 16, 949, 8149, 16, 949, 1638, 3719, 288, 368, 25559, 9495, 2117, 35, 1082, 202, 430, 261, 12729, 2335, 480, 9495, 2735, 13, 288, 9506, 202, 2088, 310, 5655, 18, 8507, 5621, 9506, 202, 12729, 2335, 33, 9495, 2735, 31, 1082, 202, 97, 1082, 202, 2088, 310, 5655, 18, 1289, 12, 18338, 1769, 368, 2727, 1404, 741, 326, 296, 5332, 20884, 87, 11, 1842, 202, 202, 97, 469, 309, 261, 3240, 774, 4082, 7781, 597, 3796, 2335, 480, 9495, 2735, 13, 288, 1082, 202, 474, 394, 4082, 7781, 2555, 33, 3671, 14173, 2335, 12, 917, 8149, 16, 9495, 2735, 16, 3796, 2335, 1769, 1082, 202, 430, 261, 2704, 4082, 7781, 2555, 480, 300, 21, 13, 288, 4697, 202, 430, 261, 2704, 4082, 7781, 2555, 480, 3796, 2335, 13, 288, 368, 394, 3796, 6862, 202, 430, 261, 5852, 20884, 5164, 18, 5332, 20884, 87, 12, 18338, 3719, 288, 368, 1338, 11833, 358, 518, 309, 1915, 854, 450, 22536, 25083, 202, 2088, 310, 5655, 18, 8507, 5621, 25083, 202, 12729, 2335, 33, 394, 4082, 7781, 2555, 31, 25083, 202, 2088, 310, 5655, 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, 1152, 760, 509, 1207, 3257, 12, 3257, 6545, 16, 11010, 949, 16, 509, 9495, 2735, 16, 509, 3796, 2335, 16, 1250, 1960, 774, 4082, 7781, 16, 2407, 8156, 5655, 13, 288, 202, 202, 474, 949, 8149, 33, 949, 18, 3348, 31, 202, 202, 474, 949, 1638, 33, 949, 8149, 397, 949, 18, 2469, 31, 202, 202, 430, 261, 291, 18619, 12, 5768, 4431, 2735, 16, 949, 8149, 16, 949, 1638, 3719, 288, 368, 25559, 9495, 2117, 35, 1082, 202, 430, 261, 12729, 2335, 480, 9495, 2735, 13, 288, 9506, 202, 2088, 310, 5655, 18, 8507, 5621, 9506, 202, 12729, 2335, 33, 9495, 2735, 31, 1082, 202, 97, 1082, 202, 2088, 310, 5655, 18, 1289, 12, 18338, 1769, 2 ]
private void writeBody( FileWriter writer, String id, MojoDescriptor mojoDescriptor )
private void writeBody( FileWriter writer, MojoDescriptor mojoDescriptor )
private void writeBody( FileWriter writer, String id, MojoDescriptor mojoDescriptor ) { XMLWriter w = new PrettyPrintXMLWriter( writer ); w.startElement( "document" ); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "properties" ); w.startElement( "title" ); // TODO: need a friendly name for a plugin w.writeText( mojoDescriptor.getPluginDescriptor().getArtifactId() + " - " + mojoDescriptor.getFullGoalName() ); w.endElement(); w.endElement(); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "section" ); w.addAttribute( "name", mojoDescriptor.getFullGoalName() ); w.startElement( "p" ); if ( mojoDescriptor.getDescription() != null ) { w.writeMarkup( mojoDescriptor.getDescription() ); } else { w.writeText( "No description." ); } w.endElement(); w.startElement( "p" ); w.writeText( "Parameters for the goal: " ); w.endElement(); writeGoalParameterTable( mojoDescriptor, w ); w.endElement(); w.endElement(); }
47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/0ff8c16056a68a10f88e003b4cdfbcbcdec8d9e3/PluginXdocGenerator.java/buggy/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 2250, 12, 24639, 2633, 16, 15931, 3187, 312, 10007, 3187, 262, 565, 288, 3639, 3167, 2289, 341, 273, 394, 22328, 5108, 4201, 2289, 12, 2633, 11272, 3639, 341, 18, 1937, 1046, 12, 315, 5457, 6, 11272, 3639, 368, 8879, 13465, 3639, 368, 3639, 368, 8879, 13465, 3639, 341, 18, 1937, 1046, 12, 315, 4738, 6, 11272, 3639, 341, 18, 1937, 1046, 12, 315, 2649, 6, 11272, 3639, 368, 2660, 30, 1608, 279, 13118, 508, 364, 279, 1909, 3639, 341, 18, 2626, 1528, 12, 312, 10007, 3187, 18, 588, 3773, 3187, 7675, 588, 7581, 548, 1435, 397, 315, 300, 315, 397, 312, 10007, 3187, 18, 588, 5080, 27716, 461, 1435, 11272, 3639, 341, 18, 409, 1046, 5621, 3639, 341, 18, 409, 1046, 5621, 3639, 368, 8879, 13465, 3639, 368, 3639, 368, 8879, 13465, 3639, 341, 18, 1937, 1046, 12, 315, 3464, 6, 11272, 3639, 341, 18, 1289, 1499, 12, 315, 529, 3113, 312, 10007, 3187, 18, 588, 5080, 27716, 461, 1435, 11272, 3639, 341, 18, 1937, 1046, 12, 315, 84, 6, 11272, 3639, 309, 261, 312, 10007, 3187, 18, 588, 3291, 1435, 480, 446, 262, 3639, 288, 5411, 341, 18, 2626, 13111, 12, 312, 10007, 3187, 18, 588, 3291, 1435, 11272, 3639, 289, 3639, 469, 3639, 288, 5411, 341, 18, 2626, 1528, 12, 315, 2279, 2477, 1199, 11272, 3639, 289, 3639, 341, 18, 409, 1046, 5621, 3639, 341, 18, 1937, 1046, 12, 315, 84, 6, 11272, 3639, 341, 18, 2626, 1528, 12, 315, 2402, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 2250, 12, 24639, 2633, 16, 15931, 3187, 312, 10007, 3187, 262, 565, 288, 3639, 3167, 2289, 341, 273, 394, 22328, 5108, 4201, 2289, 12, 2633, 11272, 3639, 341, 18, 1937, 1046, 12, 315, 5457, 6, 11272, 3639, 368, 8879, 13465, 3639, 368, 3639, 368, 8879, 13465, 3639, 341, 18, 1937, 1046, 12, 315, 4738, 6, 11272, 3639, 341, 18, 1937, 1046, 12, 315, 2649, 6, 11272, 3639, 368, 2660, 30, 1608, 279, 13118, 508, 364, 279, 1909, 3639, 341, 18, 2626, 1528, 12, 312, 10007, 3187, 18, 588, 3773, 3187, 7675, 588, 7581, 548, 1435, 397, 315, 300, 315, 397, 312, 10007, 3187, 18, 588, 5080, 27716, 461, 1435, 11272, 3639, 341, 18, 409, 1046, 2 ]
public void setTcpNoDelay(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected");
public void setTcpNoDelay(boolean on) throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
public void setTcpNoDelay(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); impl.setOption(SocketOptions.TCP_NODELAY, new Boolean(on)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/Socket.java/buggy/core/src/classpath/java/java/net/Socket.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 27591, 2279, 6763, 12, 6494, 603, 13, 1216, 8758, 503, 288, 202, 202, 430, 261, 11299, 422, 446, 13, 1082, 202, 12849, 394, 8758, 503, 2932, 1248, 5840, 8863, 202, 202, 11299, 18, 542, 1895, 12, 4534, 1320, 18, 13891, 67, 50, 1212, 2247, 5255, 16, 394, 3411, 12, 265, 10019, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 27591, 2279, 6763, 12, 6494, 603, 13, 1216, 8758, 503, 288, 202, 202, 430, 261, 11299, 422, 446, 13, 1082, 202, 12849, 394, 8758, 503, 2932, 1248, 5840, 8863, 202, 202, 11299, 18, 542, 1895, 12, 4534, 1320, 18, 13891, 67, 50, 1212, 2247, 5255, 16, 394, 3411, 12, 265, 10019, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.EncodedHeadlineLen getEncodedHeadlineLen() throws FieldNotFound { org.quickfix.field.EncodedHeadlineLen value = new org.quickfix.field.EncodedHeadlineLen();
public quickfix.field.EncodedHeadlineLen getEncodedHeadlineLen() throws FieldNotFound { quickfix.field.EncodedHeadlineLen value = new quickfix.field.EncodedHeadlineLen();
public org.quickfix.field.EncodedHeadlineLen getEncodedHeadlineLen() throws FieldNotFound { org.quickfix.field.EncodedHeadlineLen value = new org.quickfix.field.EncodedHeadlineLen(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/News.java/buggy/src/java/src/quickfix/fix42/News.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1414, 1369, 2891, 28799, 1414, 1369, 2891, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1414, 1369, 2891, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1414, 1369, 2891, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1414, 1369, 2891, 28799, 1414, 1369, 2891, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1414, 1369, 2891, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1414, 1369, 2891, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
}
protected void load(InputStream in, char[] password) throws IOException { if (in.read() != USAGE) { throw new MalformedKeyringException("incompatible keyring usage"); } if (in.read() != PasswordAuthenticatedEntry.TYPE) { throw new MalformedKeyringException( "expecting password-authenticated entry tag"); } keyring = PasswordAuthenticatedEntry.decode(new DataInputStream(in), password); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/abad947539d38da7392ff914207d1bb7d5538320/GnuPrivateKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/keyring/GnuPrivateKeyring.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1262, 12, 4348, 316, 16, 1149, 8526, 2201, 13, 1216, 1860, 225, 288, 565, 309, 261, 267, 18, 896, 1435, 480, 11836, 2833, 13, 1377, 288, 3639, 604, 394, 13311, 653, 8022, 503, 2932, 267, 10943, 20923, 4084, 8863, 1850, 309, 261, 267, 18, 896, 1435, 480, 9234, 15606, 1622, 18, 2399, 13, 1377, 288, 3639, 604, 394, 13311, 653, 8022, 503, 12, 4766, 5411, 315, 12339, 310, 2201, 17, 14454, 1241, 1047, 8863, 1850, 20923, 273, 9234, 15606, 1622, 18, 3922, 12, 2704, 29382, 12, 267, 3631, 4766, 7734, 2201, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1262, 12, 4348, 316, 16, 1149, 8526, 2201, 13, 1216, 1860, 225, 288, 565, 309, 261, 267, 18, 896, 1435, 480, 11836, 2833, 13, 1377, 288, 3639, 604, 394, 13311, 653, 8022, 503, 2932, 267, 10943, 20923, 4084, 8863, 1850, 309, 261, 267, 18, 896, 1435, 480, 9234, 15606, 1622, 18, 2399, 13, 1377, 288, 3639, 604, 394, 13311, 653, 8022, 503, 12, 4766, 5411, 315, 12339, 310, 2201, 17, 14454, 1241, 1047, 8863, 1850, 20923, 273, 9234, 15606, 1622, 18, 3922, 12, 2704, 29382, 12, 267, 3631, 4766, 7734, 2201, 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 ]
throw new PSQLException("postgresql.res.badbyte", s);
throw new PSQLException("postgresql.res.badbyte", PSQLState.NUMERIC_VALUE_OUT_OF_RANGE, s);
public byte getByte(int columnIndex) throws SQLException { String s = getString(columnIndex); if (s != null) { try { switch(fields[columnIndex-1].getSQLType()) { case Types.NUMERIC: case Types.REAL: case Types.DOUBLE: case Types.FLOAT: case Types.DECIMAL: s = (s.indexOf(".")==-1) ? s : s.substring(0,s.indexOf(".")); break; case Types.CHAR: s = s.trim(); break; } return Byte.parseByte(s); } catch (NumberFormatException e) { throw new PSQLException("postgresql.res.badbyte", s); } } return 0; // SQL NULL }
47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/509a9cd3f922c38c19d35e81bb1427d663ba4aba/AbstractJdbc1ResultSet.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1160, 20999, 12, 474, 14882, 13, 1216, 6483, 202, 95, 202, 202, 780, 272, 273, 4997, 12, 2827, 1016, 1769, 202, 202, 430, 261, 87, 480, 446, 13, 202, 202, 95, 1082, 202, 698, 1082, 202, 95, 9506, 202, 9610, 12, 2821, 63, 2827, 1016, 17, 21, 8009, 588, 3997, 559, 10756, 9506, 202, 95, 6862, 202, 3593, 7658, 18, 22998, 30, 6862, 202, 3593, 7658, 18, 31052, 30, 6862, 202, 3593, 7658, 18, 17088, 30, 6862, 202, 3593, 7658, 18, 15640, 30, 6862, 202, 3593, 7658, 18, 23816, 30, 25083, 202, 87, 273, 261, 87, 18, 31806, 2932, 1199, 13, 631, 17, 21, 13, 692, 272, 294, 272, 18, 28023, 12, 20, 16, 87, 18, 31806, 2932, 1199, 10019, 25083, 202, 8820, 31, 6862, 202, 3593, 7658, 18, 7305, 30, 25083, 202, 87, 273, 272, 18, 5290, 5621, 25083, 202, 8820, 31, 9506, 202, 97, 9506, 202, 2463, 3506, 18, 2670, 3216, 12, 87, 1769, 1082, 202, 97, 1082, 202, 14683, 261, 1854, 9291, 425, 13, 1082, 202, 95, 9506, 202, 12849, 394, 453, 23116, 2932, 2767, 24330, 18, 455, 18, 8759, 7229, 3113, 272, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 374, 31, 368, 3063, 3206, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1160, 20999, 12, 474, 14882, 13, 1216, 6483, 202, 95, 202, 202, 780, 272, 273, 4997, 12, 2827, 1016, 1769, 202, 202, 430, 261, 87, 480, 446, 13, 202, 202, 95, 1082, 202, 698, 1082, 202, 95, 9506, 202, 9610, 12, 2821, 63, 2827, 1016, 17, 21, 8009, 588, 3997, 559, 10756, 9506, 202, 95, 6862, 202, 3593, 7658, 18, 22998, 30, 6862, 202, 3593, 7658, 18, 31052, 30, 6862, 202, 3593, 7658, 18, 17088, 30, 6862, 202, 3593, 7658, 18, 15640, 30, 6862, 202, 3593, 7658, 18, 23816, 30, 25083, 202, 87, 273, 261, 87, 18, 31806, 2932, 1199, 13, 631, 17, 21, 13, 692, 272, 294, 272, 18, 28023, 12, 20, 16, 87, 18, 2 ]
Class[] args =
String[] args =
private Method buildConstructor(Class clazz, Element constructorElement) throws ClassNotFoundException { Class[] args = this.getArgumentClasses( constructorElement.getFirstChild().getChildNodes()); Constructor m = new Constructor(clazz, args); log.debug("Constructor builded: " + m); return m; }
10293 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10293/a5e434e769b7467432c6134c2cdd36630e3ee5ae/XMLMethodInspector.java/clean/src/java/net/java/dev/jminimizer/util/XMLMethodInspector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2985, 1361, 6293, 12, 797, 4003, 16, 3010, 3885, 1046, 13, 202, 202, 15069, 10403, 288, 202, 202, 797, 8526, 833, 273, 1082, 202, 2211, 18, 588, 1379, 4818, 12, 9506, 202, 12316, 1046, 18, 588, 3759, 1763, 7675, 588, 22460, 10663, 202, 202, 6293, 312, 273, 394, 11417, 12, 830, 3638, 16, 833, 1769, 202, 202, 1330, 18, 4148, 2932, 6293, 25666, 330, 785, 30, 315, 397, 312, 1769, 202, 202, 2463, 312, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2985, 1361, 6293, 12, 797, 4003, 16, 3010, 3885, 1046, 13, 202, 202, 15069, 10403, 288, 202, 202, 797, 8526, 833, 273, 1082, 202, 2211, 18, 588, 1379, 4818, 12, 9506, 202, 12316, 1046, 18, 588, 3759, 1763, 7675, 588, 22460, 10663, 202, 202, 6293, 312, 273, 394, 11417, 12, 830, 3638, 16, 833, 1769, 202, 202, 1330, 18, 4148, 2932, 6293, 25666, 330, 785, 30, 315, 397, 312, 1769, 202, 202, 2463, 312, 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 ]
else if ("ARROW DOWN".equals(t))
else if ("ARROW DOWN".equals(t) || "ARROW_DOWN".equals(t))
private static int parseShortcut(String text) { int accelerator= 0; int pos= text.indexOf('\t'); if (pos >= 0) { text= text.substring(pos+1); /* * This parsing code is wrong because it works only for the english version of eclipse */ StringTokenizer st= new StringTokenizer(text, "+"); while (st.hasMoreTokens()) { String t= st.nextToken().toUpperCase(); if ("SHIFT".equals(t)) accelerator |= SWT.SHIFT; else if ("CTRL".equals(t)) accelerator |= SWT.CONTROL; else if ("ALT".equals(t)) accelerator |= SWT.ALT; else if ("F1".equals(t)) accelerator |= SWT.F1; else if ("F2".equals(t)) accelerator |= SWT.F2; else if ("F3".equals(t)) accelerator |= SWT.F3; else if ("F4".equals(t)) accelerator |= SWT.F4; else if ("F5".equals(t)) accelerator |= SWT.F5; else if ("F6".equals(t)) accelerator |= SWT.F6; else if ("F7".equals(t)) accelerator |= SWT.F7; else if ("F8".equals(t)) accelerator |= SWT.F8; else if ("F9".equals(t)) accelerator |= SWT.F9; else if ("F10".equals(t)) accelerator |= SWT.F10; else if ("F11".equals(t)) accelerator |= SWT.F11; else if ("F12".equals(t)) accelerator |= SWT.F12; else if ("DELETE".equals(t)) accelerator |= SWT.DEL; else if ("ENTER".equals(t)) accelerator |= SWT.CR; else if ("ARROW UP".equals(t)) accelerator |= SWT.ARROW_UP; else if ("ARROW DOWN".equals(t)) accelerator |= SWT.ARROW_DOWN; else if ("ARROW LEFT".equals(t)) accelerator |= SWT.ARROW_LEFT; else if ("ARROW RIGHT".equals(t)) accelerator |= SWT.ARROW_RIGHT; else if ("SPACE".equals(t)) accelerator |= ' '; else if ("TAB".equals(t)) accelerator |= '\t'; else { if (t.length() > 1) System.out.println("unknown: <" + t + ">"); else { accelerator |= t.charAt(0); break; // must be last } } } } return accelerator;}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/12a6ba901b90450a65ac4d6d4e521d9b24054cb9/MenuItem.java/clean/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/MenuItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 760, 509, 1109, 15576, 12, 780, 977, 13, 288, 202, 474, 15153, 7385, 33, 374, 31, 202, 202, 474, 949, 33, 977, 18, 31806, 2668, 64, 88, 8284, 202, 430, 261, 917, 1545, 374, 13, 288, 202, 202, 955, 33, 977, 18, 28023, 12, 917, 15, 21, 1769, 9506, 202, 20308, 1082, 380, 1220, 5811, 981, 353, 7194, 2724, 518, 6330, 1338, 364, 326, 26858, 1177, 434, 6557, 10472, 1082, 1195, 202, 202, 780, 10524, 384, 33, 394, 16370, 12, 955, 16, 13773, 8863, 202, 202, 17523, 261, 334, 18, 5332, 7417, 5157, 10756, 288, 1082, 202, 780, 268, 33, 384, 18, 4285, 1345, 7675, 869, 8915, 5621, 1082, 202, 430, 7566, 23191, 9654, 14963, 12, 88, 3719, 9506, 202, 30737, 7385, 5626, 348, 8588, 18, 23191, 31, 1082, 202, 12107, 309, 7566, 23876, 48, 9654, 14963, 12, 88, 3719, 9506, 202, 30737, 7385, 5626, 348, 8588, 18, 18248, 31, 1082, 202, 12107, 309, 7566, 18255, 9654, 14963, 12, 88, 3719, 9506, 202, 30737, 7385, 5626, 348, 8588, 18, 18255, 31, 1082, 202, 12107, 309, 7566, 42, 21, 9654, 14963, 12, 88, 3719, 9506, 202, 30737, 7385, 5626, 348, 8588, 18, 42, 21, 31, 1082, 202, 12107, 309, 7566, 42, 22, 9654, 14963, 12, 88, 3719, 9506, 202, 30737, 7385, 5626, 348, 8588, 18, 42, 22, 31, 1082, 202, 12107, 309, 7566, 42, 23, 9654, 14963, 12, 88, 3719, 9506, 202, 30737, 7385, 5626, 348, 8588, 18, 42, 23, 31, 1082, 202, 12107, 309, 7566, 42, 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, 3238, 760, 509, 1109, 15576, 12, 780, 977, 13, 288, 202, 474, 15153, 7385, 33, 374, 31, 202, 202, 474, 949, 33, 977, 18, 31806, 2668, 64, 88, 8284, 202, 430, 261, 917, 1545, 374, 13, 288, 202, 202, 955, 33, 977, 18, 28023, 12, 917, 15, 21, 1769, 9506, 202, 20308, 1082, 380, 1220, 5811, 981, 353, 7194, 2724, 518, 6330, 1338, 364, 326, 26858, 1177, 434, 6557, 10472, 1082, 1195, 202, 202, 780, 10524, 384, 33, 394, 16370, 12, 955, 16, 13773, 8863, 202, 202, 17523, 261, 334, 18, 5332, 7417, 5157, 10756, 288, 1082, 202, 780, 268, 33, 384, 18, 4285, 1345, 7675, 869, 8915, 5621, 1082, 202, 430, 7566, 23191, 9654, 14963, 12, 88, 3719, 2 ]
public ASTEQNode(Parser p, int id)
public ASTEQNode(int id)
public ASTEQNode(Parser p, int id) { super(p, id); }
54229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54229/7ab27ed84f24e262ba0c6f6beea3b797f7ffa8c4/ASTEQNode.java/buggy/src/java/org/apache/commons/jexl/parser/ASTEQNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9183, 27247, 907, 12, 474, 612, 13, 565, 288, 3639, 2240, 12, 84, 16, 612, 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 ]
[ 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9183, 27247, 907, 12, 474, 612, 13, 565, 288, 3639, 2240, 12, 84, 16, 612, 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 ]
temp.start();
public void start() throws UMOException { if (!initialised.get()) { initialise(); } if (!started.get()) { fireNotification(new ModelNotification(this, ModelNotification.MODEL_STARTING)); for (Iterator i = components.values().iterator(); i.hasNext();) { UMOComponent temp = (UMOComponent) i.next(); if(temp.getDescriptor().getInitialState().equals(ImmutableMuleDescriptor.INITIAL_STATE_STARTED)) { registerListeners(temp); temp.start(); logger.info("Component " + temp + " has been started successfully"); } else if(temp.getDescriptor().getInitialState().equals(ImmutableMuleDescriptor.INITIAL_STATE_PAUSED)) { registerListeners(temp); temp.start(); temp.pause(); logger.info("Component " + temp + " has an initial state of 'paused'"); } else { logger.info("Component " + temp + " has an initial state of 'stopped'"); } } started.set(true); fireNotification(new ModelNotification(this, ModelNotification.MODEL_STARTED)); } else { logger.debug("Model already started"); } }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/246a6be6f4fd4f5b908dcf62e8d161e15274c78f/AbstractModel.java/clean/mule/src/java/org/mule/impl/model/AbstractModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 1435, 1216, 587, 5980, 503, 565, 288, 3639, 309, 16051, 6769, 5918, 18, 588, 10756, 288, 5411, 21301, 5621, 3639, 289, 3639, 309, 16051, 14561, 18, 588, 10756, 288, 5411, 4452, 4386, 12, 2704, 3164, 4386, 12, 2211, 16, 3164, 4386, 18, 17391, 67, 7570, 1360, 10019, 5411, 364, 261, 3198, 277, 273, 4085, 18, 2372, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 7734, 587, 5980, 1841, 1906, 273, 261, 2799, 51, 1841, 13, 277, 18, 4285, 5621, 7734, 309, 12, 5814, 18, 588, 3187, 7675, 588, 4435, 1119, 7675, 14963, 12, 16014, 49, 725, 3187, 18, 28497, 67, 7998, 67, 20943, 6404, 3719, 288, 10792, 1744, 5583, 12, 5814, 1769, 4766, 4202, 1194, 18, 1376, 2932, 1841, 315, 397, 1906, 397, 315, 711, 2118, 5746, 4985, 8863, 7734, 289, 469, 309, 12, 5814, 18, 588, 3187, 7675, 588, 4435, 1119, 7675, 14963, 12, 16014, 49, 725, 3187, 18, 28497, 67, 7998, 67, 4066, 20093, 3719, 288, 10792, 1744, 5583, 12, 5814, 1769, 4766, 4202, 1906, 18, 19476, 5621, 10792, 1194, 18, 1376, 2932, 1841, 315, 397, 1906, 397, 315, 711, 392, 2172, 919, 434, 296, 8774, 3668, 4970, 1769, 7734, 289, 469, 288, 10792, 1194, 18, 1376, 2932, 1841, 315, 397, 1906, 397, 315, 711, 392, 2172, 919, 434, 296, 24228, 4970, 1769, 7734, 289, 5411, 289, 5411, 5746, 18, 542, 12, 3767, 1769, 5411, 4452, 4386, 12, 2704, 3164, 4386, 12, 2211, 16, 3164, 4386, 18, 17391, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 1435, 1216, 587, 5980, 503, 565, 288, 3639, 309, 16051, 6769, 5918, 18, 588, 10756, 288, 5411, 21301, 5621, 3639, 289, 3639, 309, 16051, 14561, 18, 588, 10756, 288, 5411, 4452, 4386, 12, 2704, 3164, 4386, 12, 2211, 16, 3164, 4386, 18, 17391, 67, 7570, 1360, 10019, 5411, 364, 261, 3198, 277, 273, 4085, 18, 2372, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 7734, 587, 5980, 1841, 1906, 273, 261, 2799, 51, 1841, 13, 277, 18, 4285, 5621, 7734, 309, 12, 5814, 18, 588, 3187, 7675, 588, 4435, 1119, 7675, 14963, 12, 16014, 49, 725, 3187, 18, 28497, 67, 7998, 67, 20943, 6404, 3719, 288, 10792, 1744, 5583, 12, 5814, 1769, 4766, 2 ]
metadataManagerView.setVisible(true);
detailView.setVisible(true);
public void run() { metadataManagerView.setVisible(true); }
57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/abc9578bcfdca31e80420b2aaa8f8aba4dd53fa6/AppCoreCtrl.java/buggy/trunk/src/net/sf/plantlore/client/AppCoreCtrl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4766, 2398, 1071, 918, 1086, 1435, 288, 4766, 7734, 7664, 1767, 18, 542, 6207, 12, 3767, 1769, 4766, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4766, 2398, 1071, 918, 1086, 1435, 288, 4766, 7734, 7664, 1767, 18, 542, 6207, 12, 3767, 1769, 4766, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (gs >= nMTF)
if (gs >= nMTF) {
private void sendMTFValues() throws IOException { char len[][] = new char[N_GROUPS][MAX_ALPHA_SIZE]; int v, t, i, j, gs, ge, totc, bt, bc, iter; int nSelectors = 0, alphaSize, minLen, maxLen, selCtr; int nGroups, nBytes; alphaSize = nInUse + 2; for (t = 0; t < N_GROUPS; t++) for (v = 0; v < alphaSize; v++) len[t][v] = (char)GREATER_ICOST; /* Decide how many coding tables to use */ if (nMTF <= 0) panic(); if (nMTF < 200) nGroups = 2; else if (nMTF < 600) nGroups = 3; else if (nMTF < 1200) nGroups = 4; else if (nMTF < 2400) nGroups = 5; else nGroups = 6; /* Generate an initial set of coding tables */ { int nPart, remF, tFreq, aFreq; nPart = nGroups; remF = nMTF; gs = 0; while (nPart > 0) { tFreq = remF / nPart; ge = gs-1; aFreq = 0; while (aFreq < tFreq && ge < alphaSize-1) { ge++; aFreq += mtfFreq[ge]; } if (ge > gs && nPart != nGroups && nPart != 1 && ((nGroups-nPart) % 2 == 1)) { aFreq -= mtfFreq[ge]; ge--; } for (v = 0; v < alphaSize; v++) if (v >= gs && v <= ge) len[nPart-1][v] = (char)LESSER_ICOST; else len[nPart-1][v] = (char)GREATER_ICOST; nPart--; gs = ge+1; remF -= aFreq; } } int rfreq[][] = new int[N_GROUPS][MAX_ALPHA_SIZE]; int fave[] = new int[N_GROUPS]; short cost[] = new short[N_GROUPS]; /* Iterate up to N_ITERS times to improve the tables. */ for (iter = 0; iter < N_ITERS; iter++) { for (t = 0; t < nGroups; t++) fave[t] = 0; for (t = 0; t < nGroups; t++) for (v = 0; v < alphaSize; v++) rfreq[t][v] = 0; nSelectors = 0; totc = 0; gs = 0; while (true) { /* Set group start & end marks. */ if (gs >= nMTF) break; ge = gs + G_SIZE - 1; if (ge >= nMTF) ge = nMTF-1; /* Calculate the cost of this group as coded by each of the coding tables. */ for (t = 0; t < nGroups; t++) cost[t] = 0; if (nGroups == 6) { short cost0, cost1, cost2, cost3, cost4, cost5; cost0 = cost1 = cost2 = cost3 = cost4 = cost5 = 0; for (i = gs; i <= ge; i++) { short icv = szptr[i]; cost0 += len[0][icv]; cost1 += len[1][icv]; cost2 += len[2][icv]; cost3 += len[3][icv]; cost4 += len[4][icv]; cost5 += len[5][icv]; } cost[0] = cost0; cost[1] = cost1; cost[2] = cost2; cost[3] = cost3; cost[4] = cost4; cost[5] = cost5; } else { for (i = gs; i <= ge; i++) { short icv = szptr[i]; for (t = 0; t < nGroups; t++) cost[t] += len[t][icv]; } } /* Find the coding table which is best for this group, and record its identity in the selector table. */ bc = 999999999; bt = -1; for (t = 0; t < nGroups; t++) if (cost[t] < bc) { bc = cost[t]; bt = t; }; totc += bc; fave[bt]++; selector[nSelectors] = (char)bt; nSelectors++; /* Increment the symbol frequencies for the selected table. */ for (i = gs; i <= ge; i++) rfreq[bt][szptr[i]]++; gs = ge+1; } /* Recompute the tables based on the accumulated frequencies. */ for (t = 0; t < nGroups; t++) hbMakeCodeLengths(len[t], rfreq[t], alphaSize, 20); } rfreq = null; fave = null; cost = null; if (!(nGroups < 8)) panic(); if (!(nSelectors < 32768 && nSelectors <= (2 + (900000 / G_SIZE)))) panic(); /* Compute MTF values for the selectors. */ { char pos[] = new char[N_GROUPS]; char ll_i, tmp2, tmp; for (i = 0; i < nGroups; i++) pos[i] = (char)i; for (i = 0; i < nSelectors; i++) { ll_i = selector[i]; j = 0; tmp = pos[j]; while ( ll_i != tmp ) { j++; tmp2 = tmp; tmp = pos[j]; pos[j] = tmp2; } pos[0] = tmp; selectorMtf[i] = (char)j; } } int code[][] = new int[N_GROUPS][MAX_ALPHA_SIZE]; /* Assign actual codes for the tables. */ for (t = 0; t < nGroups; t++) { minLen = 32; maxLen = 0; for (i = 0; i < alphaSize; i++) { if (len[t][i] > maxLen) maxLen = len[t][i]; if (len[t][i] < minLen) minLen = len[t][i]; } if (maxLen > 20) panic(); if (minLen < 1) panic(); hbAssignCodes(code[t], len[t], minLen, maxLen, alphaSize); } /* Transmit the mapping table. */ { boolean inUse16[] = new boolean[16]; for (i = 0; i < 16; i++) { inUse16[i] = false; for (j = 0; j < 16; j++) if (inUse[i * 16 + j]) inUse16[i] = true; } nBytes = bytesOut; for (i = 0; i < 16; i++) if (inUse16[i]) bsW(1,1); else bsW(1,0); for (i = 0; i < 16; i++) if (inUse16[i]) for (j = 0; j < 16; j++) if (inUse[i * 16 + j]) bsW(1,1); else bsW(1,0); } /* Now the selectors. */ nBytes = bytesOut; bsW ( 3, nGroups ); bsW ( 15, nSelectors ); for (i = 0; i < nSelectors; i++) { for (j = 0; j < selectorMtf[i]; j++) bsW(1,1); bsW(1,0); } /* Now the coding tables. */ nBytes = bytesOut; for (t = 0; t < nGroups; t++) { int curr = len[t][0]; bsW(5, curr); for (i = 0; i < alphaSize; i++) { while (curr < len[t][i]) { bsW(2,2); curr++; /* 10 */ } while (curr > len[t][i]) { bsW(2,3); curr--; /* 11 */ } bsW ( 1, 0 ); } } /* And finally, the block data proper */ nBytes = bytesOut; selCtr = 0; gs = 0; while (true) { if (gs >= nMTF) break; ge = gs + G_SIZE - 1; if (ge >= nMTF) ge = nMTF-1; for (i = gs; i <= ge; i++) { bsW(len [selector[selCtr]] [szptr[i]], code [selector[selCtr]] [szptr[i]] ); } gs = ge+1; selCtr++; } if (!(selCtr == nSelectors)) panic(); }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/7a4e9ca2278d5e22a3492abb964312150d0286b9/CBZip2OutputStream.java/clean/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1366, 6152, 42, 1972, 1435, 1216, 1860, 288, 3639, 1149, 562, 63, 6362, 65, 273, 394, 1149, 63, 50, 67, 28977, 6362, 6694, 67, 26313, 67, 4574, 15533, 3639, 509, 331, 16, 268, 16, 277, 16, 525, 16, 10763, 16, 8244, 16, 9997, 71, 16, 10921, 16, 6533, 16, 1400, 31, 3639, 509, 290, 19277, 273, 374, 16, 4190, 1225, 16, 1131, 2891, 16, 29618, 16, 357, 39, 313, 31, 3639, 509, 290, 3621, 16, 290, 2160, 31, 3639, 4190, 1225, 273, 290, 15435, 397, 576, 31, 3639, 364, 261, 88, 273, 374, 31, 268, 411, 423, 67, 28977, 31, 268, 27245, 5411, 364, 261, 90, 273, 374, 31, 331, 411, 4190, 1225, 31, 331, 27245, 7734, 562, 63, 88, 6362, 90, 65, 273, 261, 3001, 13, 43, 18857, 67, 2871, 4005, 31, 3639, 1748, 3416, 831, 3661, 4906, 14848, 4606, 358, 999, 1195, 3639, 309, 261, 82, 6152, 42, 1648, 374, 13, 5411, 3933, 5621, 3639, 309, 261, 82, 6152, 42, 411, 4044, 13, 5411, 290, 3621, 273, 576, 31, 3639, 469, 309, 261, 82, 6152, 42, 411, 14707, 13, 5411, 290, 3621, 273, 890, 31, 3639, 469, 309, 261, 82, 6152, 42, 411, 2593, 713, 13, 5411, 290, 3621, 273, 1059, 31, 3639, 469, 309, 261, 82, 6152, 42, 411, 4248, 713, 13, 5411, 290, 3621, 273, 1381, 31, 3639, 469, 5411, 290, 3621, 273, 1666, 31, 3639, 1748, 6654, 392, 2172, 444, 434, 14848, 4606, 1195, 288, 5411, 509, 290, 1988, 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, 1366, 6152, 42, 1972, 1435, 1216, 1860, 288, 3639, 1149, 562, 63, 6362, 65, 273, 394, 1149, 63, 50, 67, 28977, 6362, 6694, 67, 26313, 67, 4574, 15533, 3639, 509, 331, 16, 268, 16, 277, 16, 525, 16, 10763, 16, 8244, 16, 9997, 71, 16, 10921, 16, 6533, 16, 1400, 31, 3639, 509, 290, 19277, 273, 374, 16, 4190, 1225, 16, 1131, 2891, 16, 29618, 16, 357, 39, 313, 31, 3639, 509, 290, 3621, 16, 290, 2160, 31, 3639, 4190, 1225, 273, 290, 15435, 397, 576, 31, 3639, 364, 261, 88, 273, 374, 31, 268, 411, 423, 67, 28977, 31, 268, 27245, 5411, 364, 261, 90, 273, 374, 31, 331, 411, 4190, 1225, 31, 331, 27245, 2 ]
{
{
public void logic() { Log4J.startMethod(logger, "logic"); if(aiProfiles.containsKey("heal")) { String[] healing=aiProfiles.get("heal").split(","); int amount=Integer.parseInt(healing[0]); int frequency=Integer.parseInt(healing[1]); if(rp.getTurn()%frequency==0 && getHP()!=getBaseHP()) { if(getHP()+amount<getBaseHP()) { setHP(getHP()+amount); } else { setHP(getBaseHP()); } } } if (getNearestPlayer(30) == null) // if there is no player near and none will see us... { // sleep so we don't waste cpu resources stopAttack(); stop(); if (Debug.CREATURES_DEBUG_SERVER) put("debug","sleep"); aiState = AiState.SLEEP; world.modify(this); return; } // this will keep track of the logic so the client can display it StringBuilder debug = new StringBuilder(100); // are we attacked and we don't attack ourself? if(isAttacked() && target == null) { // Yep, we're attacked clearPath(); // hit the attacker, but prefer players target = getNearestPlayer(8); if (target == null) { target = this.getAttackSource(0); } if (Debug.CREATURES_DEBUG_SERVER) debug.append("attacked;").append(target.getID().getObjectID()).append('|'); logger.debug("Creature("+get("type")+") has been attacked by "+target.get("type")); } else if(target==null || (!target.get("zoneid").equals(get("zoneid")) && world.has(target.getID())) || !world.has(target.getID())) { // no target or current target left the zone (or is dead) if(isAttacking()) { // stop the attack... if (Debug.CREATURES_DEBUG_SERVER) debug.append("cancelattack|"); target=null; clearPath(); stopAttack(); waitRounds = 0; } // ...and find another target target = getNearestPlayer(8); if(target!=null) { logger.debug("Creature("+get("type")+") gets a new target."); if (Debug.CREATURES_DEBUG_SERVER) debug.append("newtarget;").append(target.getID().getObjectID()).append('|'); } } // now we check our current target if (target == null) { // No target, so patrol along if (aiState != AiState.PATROL || !hasPath()) { // Create a patrolpath logger.debug("Creating Path for this entity"); List<Path.Node> nodes = new LinkedList<Path.Node>(); int size = patrolPath.size(); long time = System.nanoTime(); for(int i=0; i<size;i++) { Path.Node actual=patrolPath.get(i); Path.Node next=patrolPath.get((i+1)%size); nodes.addAll(Path.searchPath(this,actual.x+getx(),actual.y+gety(),new Rectangle2D.Double(next.x+getx(),next.y+gety(),1.0,1.0))); } long time2 = System.nanoTime()-time; setPath(nodes,true); if (Debug.CREATURES_DEBUG_SERVER) debug.append("generatepatrolpath;").append(time2).append("|"); } logger.debug("Following path"); if(hasPath()) Path.followPath(this,getSpeed()); aiState = AiState.PATROL; if (Debug.CREATURES_DEBUG_SERVER) debug.append("patrol;").append(pathToString()).append('|'); } else if(distance(target)>18*18) { // target out of reach logger.debug("Attacker is too far. Creature stops attack"); target=null; clearPath(); stopAttack(); stop(); if (Debug.CREATURES_DEBUG_SERVER) debug.append("outofreachstopped|"); } else if(!nextto(target,0.25) && !target.stopped()) { // target not near but in reach and is moving logger.debug("Moving to target. Searching new path"); clearPath(); setMovement(target,0,0, 20.0); moveto(getSpeed()); waitRounds = 0; // clear waitrounds aiState = AiState.APPROACHING_MOVING_TARGET; // update ai state if (Debug.CREATURES_DEBUG_SERVER) { List path = getPath(); if (path != null) { debug.append("targetmoved;").append(pathToString()).append("|"); } } } else if(nextto(target,0.25)) { if (Debug.CREATURES_DEBUG_SERVER) debug.append("attacking|"); // target is near logger.debug("Next to target. Creature stops and attacks"); stop(); attack(target); faceto(target); aiState = AiState.ATTACKING; } else { // target in reach and not moving logger.debug("Moving to target. Creature attacks"); if (Debug.CREATURES_DEBUG_SERVER) debug.append("movetotarget"); // our current Path is blocked...mostly by the target or another attacker if(collided()) { if (Debug.CREATURES_DEBUG_SERVER) debug.append(";blocked"); // invalidate the path and stop clearPath(); stop(); // wait some rounds so the path can be cleared by other creatures // (either they move away or die) waitRounds = WAIT_ROUNDS_BECAUSE_TARGET_IS_BLOCKED; } aiState = AiState.APPROACHING_STOPPED_TARGET; attack(target); faceto(target); // be sure to let the blocking creatures pass before trying to find a // new path if (waitRounds > 0) { if (Debug.CREATURES_DEBUG_SERVER) debug.append(";waiting"); waitRounds--; // HACK: remove collision flag (we're not moving after all) collides(false); clearPath(); } else { // Are we still patrol'ing? if (isPathLoop() || aiState == AiState.PATROL) { // yep, so clear the patrol path clearPath(); } setMovement(target,0,0, 20.0); moveto(getSpeed()); if (Debug.CREATURES_DEBUG_SERVER) debug.append(";newpath"); if (getPath() == null || getPath().size() == 0) // If creature is blocked choose a new target { if (Debug.CREATURES_DEBUG_SERVER) debug.append(";blocked"); logger.debug("Blocked. Choosing a new target."); target=null; clearPath(); stopAttack(); stop(); waitRounds = WAIT_ROUNDS_BECAUSE_TARGET_IS_BLOCKED; } else { if (Debug.CREATURES_DEBUG_SERVER) debug.append(';').append(getPath()); } } if (Debug.CREATURES_DEBUG_SERVER) debug.append(";dummy|"); } if(!stopped()) { StendhalRPAction.move(this); } if(rp.getTurn()%5==attackTurn && isAttacking()) { StendhalRPAction.attack(this,getAttackTarget()); if( getAttackTarget()!=null && nextto(getAttackTarget(),0.25)) { if(aiProfiles.containsKey("poisonous")) { int roll=Rand.roll1D100(); String[] poison=aiProfiles.get("poisonous").split(","); int prob= Integer.parseInt(poison[0]); String poisonType=poison[1]; if(roll<=prob) { ConsumableItem item=(ConsumableItem)world.getRuleManager().getEntityManager().getItem(poisonType); if(item==null) { logger.error("Creature unable to poisoning with "+poisonType); } else { RPEntity entity=getAttackTarget(); if(entity instanceof Player) { Player player=(Player)entity; if(!player.isPoisoned() && player.poison(item)) { rp.addGameEvent(getName(),"poison",player.getName()); player.setPrivateText("You have been poisoned by a "+getName()); rp.removePlayerText(player); } } } } } } } if(Rand.roll1D100()==1 && noises.size()>0) { // Random sound noises. int pos=Rand.rand(noises.size()); say(noises.get(pos)); } if (Debug.CREATURES_DEBUG_SERVER) put("debug",debug.toString()); world.modify(this); Log4J.finishMethod(logger, "logic"); }
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/2fde1e280a947dddab3f2a402a2927ea6b087d81/Creature.java/buggy/src/games/stendhal/server/entity/creature/Creature.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4058, 1435, 377, 288, 377, 1827, 24, 46, 18, 1937, 1305, 12, 4901, 16, 315, 28339, 8863, 565, 309, 12, 10658, 12450, 18, 12298, 653, 2932, 580, 287, 6, 3719, 4202, 288, 4202, 514, 8526, 3904, 287, 310, 33, 10658, 12450, 18, 588, 2932, 580, 287, 20387, 4939, 2932, 16, 8863, 1377, 509, 3844, 33, 4522, 18, 2670, 1702, 12, 580, 287, 310, 63, 20, 19226, 1377, 509, 8670, 33, 4522, 18, 2670, 1702, 12, 580, 287, 310, 63, 21, 19226, 5411, 309, 12, 13832, 18, 588, 15858, 1435, 9, 14092, 631, 20, 597, 336, 2500, 1435, 5, 33, 588, 2171, 2500, 10756, 540, 288, 540, 309, 12, 588, 2500, 1435, 15, 8949, 32, 588, 2171, 2500, 10756, 6647, 288, 6647, 444, 2500, 12, 588, 2500, 1435, 15, 8949, 1769, 10792, 289, 3639, 469, 6647, 288, 6647, 444, 2500, 12, 588, 2171, 2500, 10663, 1850, 289, 3639, 289, 1377, 289, 565, 309, 261, 588, 28031, 12148, 12, 5082, 13, 422, 446, 13, 368, 309, 1915, 353, 1158, 7291, 13378, 471, 6555, 903, 2621, 584, 2777, 3639, 288, 4202, 368, 5329, 1427, 732, 2727, 1404, 341, 14725, 8326, 2703, 1377, 2132, 3075, 484, 5621, 1377, 2132, 5621, 1377, 309, 261, 2829, 18, 5458, 10511, 55, 67, 9394, 67, 4370, 13, 3639, 1378, 2932, 4148, 15937, 19607, 8863, 1377, 14679, 1119, 273, 432, 77, 1119, 18, 55, 900, 10541, 31, 1377, 9117, 18, 17042, 12, 2211, 1769, 1377, 327, 31, 1377, 289, 565, 368, 333, 903, 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, 4058, 1435, 377, 288, 377, 1827, 24, 46, 18, 1937, 1305, 12, 4901, 16, 315, 28339, 8863, 565, 309, 12, 10658, 12450, 18, 12298, 653, 2932, 580, 287, 6, 3719, 4202, 288, 4202, 514, 8526, 3904, 287, 310, 33, 10658, 12450, 18, 588, 2932, 580, 287, 20387, 4939, 2932, 16, 8863, 1377, 509, 3844, 33, 4522, 18, 2670, 1702, 12, 580, 287, 310, 63, 20, 19226, 1377, 509, 8670, 33, 4522, 18, 2670, 1702, 12, 580, 287, 310, 63, 21, 19226, 5411, 309, 12, 13832, 18, 588, 15858, 1435, 9, 14092, 631, 20, 597, 336, 2500, 1435, 5, 33, 588, 2171, 2500, 10756, 540, 288, 540, 309, 12, 588, 2500, 1435, 15, 8949, 32, 588, 2171, 2 ]