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
.discoverService(serviceName, props, 1);
.discoverService(serviceName, props, 2);
String discoverService(IpServiceDiscovery discoveryIf, String serviceName) throws TpCommonExceptions, P_UNKNOWN_SERVICE_TYPE, P_ILLEGAL_SERVICE_TYPE, P_INVALID_PROPERTY, P_ACCESS_DENIED { // Create a list of service properties that indicates what kind of // service we are looking for. In our case the service is identified // only by its name.// TpServiceProperty prop = new TpServiceProperty("Service Name",// new String[] { serviceName }); TpServiceProperty[] props = new TpServiceProperty[0]; // Obtain a service ID of the service /*********************************************************************** * Do the OSA invocation: discoverService() **********************************************************************/ TpService[] svcList = discoveryIf .discoverService(serviceName, props, 1); // Return the service ID of the service return svcList[0].ServiceID; }
9163 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9163/36f1c1bd58950f5780ad08cd52db56cf3c131ebc/ApplicationFramework.java/clean/gccs/src/group5/client/ApplicationFramework.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 780, 10372, 1179, 12, 5273, 1179, 11918, 11030, 2047, 16, 514, 6773, 13, 1082, 202, 15069, 28738, 6517, 11416, 16, 453, 67, 14737, 67, 12426, 67, 2399, 16, 1082, 202, 52, 67, 2627, 19384, 1013, 67, 12426, 67, 2399, 16, 453, 67, 9347, 67, 9900, 16, 453, 67, 13204, 67, 13296, 29229, 288, 202, 202, 759, 1788, 279, 666, 434, 1156, 1790, 716, 8527, 4121, 3846, 434, 202, 202, 759, 1156, 732, 854, 7849, 364, 18, 657, 3134, 648, 326, 1156, 353, 9283, 202, 202, 759, 1338, 635, 2097, 508, 18, 759, 202, 202, 56, 84, 1179, 1396, 2270, 273, 394, 28738, 1179, 1396, 2932, 1179, 1770, 3113, 759, 9506, 202, 2704, 514, 8526, 288, 6773, 15549, 202, 202, 56, 84, 1179, 1396, 8526, 3458, 273, 394, 28738, 1179, 1396, 63, 20, 15533, 202, 202, 759, 24850, 279, 1156, 1599, 434, 326, 1156, 202, 202, 19, 11125, 27243, 1082, 380, 2256, 326, 531, 5233, 9495, 30, 10372, 1179, 1435, 1082, 19756, 1007, 5549, 202, 202, 56, 84, 1179, 8526, 7538, 682, 273, 11030, 2047, 9506, 202, 18, 2251, 3165, 1179, 12, 15423, 16, 3458, 16, 404, 1769, 202, 202, 759, 2000, 326, 1156, 1599, 434, 326, 1156, 202, 202, 2463, 7538, 682, 63, 20, 8009, 1179, 734, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 780, 10372, 1179, 12, 5273, 1179, 11918, 11030, 2047, 16, 514, 6773, 13, 1082, 202, 15069, 28738, 6517, 11416, 16, 453, 67, 14737, 67, 12426, 67, 2399, 16, 1082, 202, 52, 67, 2627, 19384, 1013, 67, 12426, 67, 2399, 16, 453, 67, 9347, 67, 9900, 16, 453, 67, 13204, 67, 13296, 29229, 288, 202, 202, 759, 1788, 279, 666, 434, 1156, 1790, 716, 8527, 4121, 3846, 434, 202, 202, 759, 1156, 732, 854, 7849, 364, 18, 657, 3134, 648, 326, 1156, 353, 9283, 202, 202, 759, 1338, 635, 2097, 508, 18, 759, 202, 202, 56, 84, 1179, 1396, 2270, 273, 394, 28738, 1179, 1396, 2932, 1179, 1770, 3113, 759, 9506, 202, 2704, 514, 8526, 288, 6773, 15549, 2 ]
case Id_toLocaleString: return realThis(thisObj, f). jsFunction_toLocaleString(toBase(args, 0));
case Id_toFixed: return realThis(thisObj, f). jsFunction_toFixed(cx, args);
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case Id_constructor: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f). jsFunction_toString(toBase(args, 0)); case Id_valueOf: return wrap_double(realThis(thisObj, f). jsFunction_valueOf()); case Id_toLocaleString: return realThis(thisObj, f). jsFunction_toLocaleString(toBase(args, 0)); case Id_toFixed: return realThis(thisObj, f).jsFunction_toFixed(cx, args); case Id_toExponential: return realThis(thisObj, f).jsFunction_toExponential(cx, args); case Id_toPrecision: return realThis(thisObj, f).jsFunction_toPrecision(cx, args); } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/35caf7c2bb93872680ae16e34746d94fe1e533e3/NativeNumber.java/clean/js/rhino/src/org/mozilla/javascript/NativeNumber.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 1620, 261, 2039, 548, 13, 288, 3639, 648, 3124, 67, 12316, 30, 5411, 327, 3828, 6293, 12, 1968, 16, 15261, 422, 446, 1769, 3639, 648, 3124, 67, 10492, 30, 327, 2863, 2503, 12, 2211, 2675, 16, 284, 2934, 5411, 3828, 2083, 67, 10492, 12, 869, 2171, 12, 1968, 16, 374, 10019, 3639, 648, 3124, 67, 1132, 951, 30, 327, 2193, 67, 9056, 12, 7688, 2503, 12, 2211, 2675, 16, 284, 2934, 5411, 3828, 2083, 67, 1132, 951, 10663, 3639, 648, 3124, 67, 869, 3916, 780, 30, 327, 2863, 2503, 12, 2211, 2675, 16, 284, 2934, 5411, 3828, 2083, 67, 869, 3916, 780, 12, 869, 2171, 12, 1968, 16, 374, 10019, 3639, 648, 3124, 67, 869, 7505, 30, 5411, 327, 2863, 2503, 12, 2211, 2675, 16, 284, 2934, 2924, 2083, 67, 869, 7505, 12, 71, 92, 16, 833, 1769, 3639, 648, 3124, 67, 869, 17972, 649, 30, 5411, 327, 2863, 2503, 12, 2211, 2675, 16, 284, 2934, 2924, 2083, 67, 869, 17972, 649, 12, 71, 92, 16, 833, 1769, 3639, 648, 3124, 67, 869, 15410, 30, 5411, 327, 2863, 2503, 12, 2211, 2675, 16, 284, 2934, 2924, 2083, 67, 869, 15410, 12, 71, 92, 16, 833, 1769, 3639, 289, 3639, 327, 2240, 18, 4177, 1305, 12, 2039, 548, 16, 284, 16, 9494, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 1620, 261, 2039, 548, 13, 288, 3639, 648, 3124, 67, 12316, 30, 5411, 327, 3828, 6293, 12, 1968, 16, 15261, 422, 446, 1769, 3639, 648, 3124, 67, 10492, 30, 327, 2863, 2503, 12, 2211, 2675, 16, 284, 2934, 5411, 3828, 2083, 67, 10492, 12, 869, 2171, 12, 1968, 16, 374, 10019, 3639, 648, 3124, 67, 1132, 951, 30, 327, 2193, 67, 9056, 12, 7688, 2503, 12, 2211, 2675, 16, 284, 2934, 5411, 3828, 2083, 67, 1132, 951, 10663, 3639, 648, 3124, 67, 869, 2 ]
case 156:
public final void caseClause() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST caseClause_AST = null; String varName; org.exist.xquery.parser.XQueryAST tmp150_AST = null; tmp150_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp150_AST); match(LITERAL_case); { switch ( LA(1)) { case DOLLAR: { caseVar(); astFactory.addASTChild(currentAST, returnAST); break; } case NCNAME: case LITERAL_xquery: case LITERAL_version: case LITERAL_module: case LITERAL_namespace: case LITERAL_import: case LITERAL_declare: case LITERAL_default: case LITERAL_xmlspace: case LITERAL_ordering: case LITERAL_construction: case LITERAL_function: case LITERAL_variable: case LITERAL_encoding: case LITERAL_collation: case LITERAL_element: case LITERAL_preserve: case LITERAL_strip: case LITERAL_ordered: case LITERAL_unordered: case LITERAL_at: case LITERAL_as: case LITERAL_empty: case LITERAL_item: case LITERAL_for: case LITERAL_let: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_order: case LITERAL_by: case LITERAL_typeswitch: case LITERAL_then: case LITERAL_else: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_of: case LITERAL_cast: case LITERAL_is: case LITERAL_isnot: case LITERAL_to: case LITERAL_div: case LITERAL_mod: case LITERAL_union: case LITERAL_intersect: case LITERAL_except: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 138: case 139: case LITERAL_document: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 151: case 152: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 156: case 157: case LITERAL_collection: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } sequenceType(); astFactory.addASTChild(currentAST, returnAST); match(LITERAL_return); exprSingle(); astFactory.addASTChild(currentAST, returnAST); caseClause_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = caseClause_AST; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/b1f955b7f1cec4172ad3be7bd2855bd3cca3e6f2/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 648, 7044, 1435, 1216, 9539, 16, 3155, 1228, 503, 16, 10172, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 648, 7044, 67, 9053, 273, 446, 31, 202, 202, 780, 13722, 31, 9506, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1853, 23014, 67, 9053, 273, 446, 31, 202, 202, 5645, 23014, 67, 9053, 273, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 689, 1733, 18, 2640, 12, 12050, 12, 21, 10019, 202, 202, 689, 1733, 18, 6540, 9053, 2375, 12, 2972, 9053, 16, 1853, 23014, 67, 9053, 1769, 202, 202, 1916, 12, 23225, 67, 3593, 1769, 202, 202, 95, 202, 202, 9610, 261, 2928, 12, 21, 3719, 288, 202, 202, 3593, 463, 30922, 985, 30, 202, 202, 95, 1082, 202, 3593, 1537, 5621, 1082, 202, 689, 1733, 18, 1289, 9053, 1763, 12, 2972, 9053, 16, 327, 9053, 1769, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 423, 39, 1985, 30, 202, 202, 3593, 511, 18454, 67, 92, 2271, 30, 202, 202, 3593, 511, 18454, 67, 1589, 30, 202, 202, 3593, 511, 18454, 67, 2978, 30, 202, 202, 3593, 511, 18454, 67, 4937, 30, 202, 202, 3593, 511, 18454, 67, 5666, 30, 202, 202, 3593, 511, 18454, 67, 29554, 30, 202, 202, 3593, 511, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 648, 7044, 1435, 1216, 9539, 16, 3155, 1228, 503, 16, 10172, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 648, 7044, 67, 9053, 273, 446, 31, 202, 202, 780, 13722, 31, 9506, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1853, 23014, 67, 9053, 273, 446, 31, 202, 202, 5645, 23014, 67, 9053, 273, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 689, 1733, 18, 2640, 12, 12050, 12, 21, 10019, 202, 202, 689, 1733, 18, 6540, 2 ]
public org.quickfix.field.UnderlyingMaturityDate getUnderlyingMaturityDate() throws FieldNotFound { org.quickfix.field.UnderlyingMaturityDate value = new org.quickfix.field.UnderlyingMaturityDate();
public quickfix.field.UnderlyingMaturityDate getUnderlyingMaturityDate() throws FieldNotFound { quickfix.field.UnderlyingMaturityDate value = new quickfix.field.UnderlyingMaturityDate();
public org.quickfix.field.UnderlyingMaturityDate getUnderlyingMaturityDate() throws FieldNotFound { org.quickfix.field.UnderlyingMaturityDate value = new org.quickfix.field.UnderlyingMaturityDate(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataSnapshotFullRefresh.java/buggy/src/java/src/quickfix/fix44/MarketDataSnapshotFullRefresh.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 15947, 2336, 1626, 10833, 765, 6291, 15947, 2336, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 15947, 2336, 1626, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 15947, 2336, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15947, 2336, 1626, 10833, 765, 6291, 15947, 2336, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 15947, 2336, 1626, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 15947, 2336, 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 ]
t.select(Utilities.getRowStart(t, newDot), Utilities.getRowEnd(t, newDot));
{ setDot(Utilities.getRowStart(t, newDot)); moveDot( Utilities.getRowEnd(t, newDot)); }
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, newDot), Utilities.getRowEnd(t, newDot)); else { int nextWord = Utilities.getNextWord(t, newDot); // When the mouse points at the offset of the first character // in a word Utilities().getPreviousWord will not return that // word but we want to select that. We have to use // Utilities.nextWord() to get it. if (newDot == nextWord) t.select(nextWord, Utilities.getNextWord(t, nextWord)); else { int previousWord = Utilities.getPreviousWord(t, newDot); int previousWordEnd = Utilities.getWordEnd(t, previousWord); // If the user clicked in the space between two words, // then select the space. if (newDot >= previousWordEnd && newDot <= nextWord) t.select(previousWordEnd, nextWord); // Otherwise select the word under the mouse pointer. else t.select(previousWord, previousWordEnd); } } } catch(BadLocationException ble) { // TODO: Swallowing ok here? } dot = newDot; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 7644, 27633, 12, 9186, 1133, 871, 13, 225, 288, 565, 509, 1056, 273, 871, 18, 588, 6563, 1380, 5621, 3639, 309, 261, 1883, 1545, 576, 13, 1377, 288, 3639, 509, 394, 10412, 273, 10322, 7675, 1945, 774, 1488, 12, 2575, 18, 588, 2148, 10663, 3639, 804, 1528, 1841, 268, 273, 10322, 5621, 3639, 775, 1850, 288, 5411, 309, 261, 1883, 422, 890, 13, 2868, 288, 444, 10412, 12, 11864, 18, 588, 1999, 1685, 12, 88, 16, 394, 10412, 10019, 3635, 10412, 12, 26703, 18, 588, 1999, 1638, 12, 88, 16, 394, 10412, 10019, 289, 5411, 469, 2868, 288, 7734, 509, 1024, 3944, 273, 26703, 18, 588, 2134, 3944, 12, 88, 16, 394, 10412, 1769, 27573, 368, 5203, 326, 7644, 3143, 622, 326, 1384, 434, 326, 1122, 3351, 7734, 368, 316, 279, 2076, 26703, 7675, 588, 8351, 3944, 903, 486, 327, 716, 7734, 368, 2076, 1496, 732, 2545, 358, 2027, 716, 18, 1660, 1240, 358, 999, 7734, 368, 26703, 18, 4285, 3944, 1435, 358, 336, 518, 18, 7734, 309, 261, 2704, 10412, 422, 1024, 3944, 13, 5375, 268, 18, 4025, 12, 4285, 3944, 16, 26703, 18, 588, 2134, 3944, 12, 88, 16, 1024, 3944, 10019, 7734, 469, 5375, 288, 10792, 509, 2416, 3944, 273, 26703, 18, 588, 8351, 3944, 12, 88, 16, 394, 10412, 1769, 10792, 509, 2416, 3944, 1638, 273, 26703, 18, 588, 3944, 1638, 12, 88, 16, 2416, 3944, 1769, 4766, 3639, 368, 971, 326, 729, 17688, 316, 326, 3476, 3086, 2795, 4511, 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, 7644, 27633, 12, 9186, 1133, 871, 13, 225, 288, 565, 509, 1056, 273, 871, 18, 588, 6563, 1380, 5621, 3639, 309, 261, 1883, 1545, 576, 13, 1377, 288, 3639, 509, 394, 10412, 273, 10322, 7675, 1945, 774, 1488, 12, 2575, 18, 588, 2148, 10663, 3639, 804, 1528, 1841, 268, 273, 10322, 5621, 3639, 775, 1850, 288, 5411, 309, 261, 1883, 422, 890, 13, 2868, 288, 444, 10412, 12, 11864, 18, 588, 1999, 1685, 12, 88, 16, 394, 10412, 10019, 3635, 10412, 12, 26703, 18, 588, 1999, 1638, 12, 88, 16, 394, 10412, 10019, 289, 5411, 469, 2868, 288, 7734, 509, 1024, 3944, 273, 26703, 18, 588, 2134, 3944, 12, 88, 16, 394, 10412, 1769, 27573, 368, 2 ]
public static void unzipFiles(File zippedfile, String destPath) throws FileNotFoundException, IOException {
public static List<File> unzipFiles(File zippedfile, String destPath) throws FileNotFoundException, IOException { ZipFile zipFile = new ZipFile(zippedfile);
public static void unzipFiles(File zippedfile, String destPath) throws FileNotFoundException, IOException { ZipFile zipFile = new ZipFile(zippedfile); Enumeration entries = zipFile.entries(); while (entries.hasMoreElements()) { ZipEntry entry = (ZipEntry) entries.nextElement(); if (entry.isDirectory()) continue; InputStream inputStream = zipFile.getInputStream(entry); FileOutputStream outStream = new FileOutputStream(destPath + File.separator + entry.getName()); copyByteStream(inputStream, outStream); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/fe8bf309190b9417e5cfeb9e4a0be7351019f841/ZipFileUtil.java/buggy/org.eclipse.mylyn.context.core/src/org/eclipse/mylyn/internal/context/core/util/ZipFileUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 20259, 2697, 12, 812, 3144, 1845, 768, 16, 514, 22459, 13, 1216, 13707, 16, 1860, 288, 1082, 202, 29394, 19450, 273, 394, 18364, 12, 4450, 1845, 768, 1769, 1082, 202, 21847, 3222, 273, 19450, 18, 8219, 5621, 1082, 202, 17523, 261, 8219, 18, 5332, 7417, 3471, 10756, 288, 9506, 202, 9141, 1622, 1241, 273, 261, 9141, 1622, 13, 3222, 18, 4285, 1046, 5621, 9506, 202, 430, 261, 4099, 18, 291, 2853, 10756, 6862, 202, 17143, 31, 9506, 202, 4348, 10010, 273, 19450, 18, 588, 4348, 12, 4099, 1769, 9506, 202, 812, 4632, 28997, 273, 394, 12942, 12, 10488, 743, 397, 1387, 18, 11287, 397, 1241, 18, 17994, 10663, 9506, 202, 3530, 3216, 1228, 12, 2630, 1228, 16, 28997, 1769, 1082, 202, 97, 9506, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 20259, 2697, 12, 812, 3144, 1845, 768, 16, 514, 22459, 13, 1216, 13707, 16, 1860, 288, 1082, 202, 29394, 19450, 273, 394, 18364, 12, 4450, 1845, 768, 1769, 1082, 202, 21847, 3222, 273, 19450, 18, 8219, 5621, 1082, 202, 17523, 261, 8219, 18, 5332, 7417, 3471, 10756, 288, 9506, 202, 9141, 1622, 1241, 273, 261, 9141, 1622, 13, 3222, 18, 4285, 1046, 5621, 9506, 202, 430, 261, 4099, 18, 291, 2853, 10756, 6862, 202, 17143, 31, 9506, 202, 4348, 10010, 273, 19450, 18, 588, 4348, 12, 4099, 1769, 9506, 202, 812, 4632, 28997, 273, 394, 12942, 12, 10488, 743, 397, 1387, 18, 11287, 397, 1241, 18, 17994, 10663, 9506, 202, 3530, 3216, 1228, 12, 2 ]
stringBuffer.append(TEXT_12);
stringBuffer.append(TEXT_13);
public String generate(Object argument) { StringBuffer stringBuffer = new StringBuffer(); GenDiagram genDiagram = (GenDiagram) argument; stringBuffer.append(TEXT_1); stringBuffer.append(genDiagram.getEditorPackageName()); stringBuffer.append(TEXT_2); ImportUtil importManager = new ImportUtil(genDiagram.getEditorPackageName()); stringBuffer.append(TEXT_3); importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_4); stringBuffer.append(genDiagram.getElementChooserClassName()); stringBuffer.append(TEXT_5); stringBuffer.append(genDiagram.getElementChooserClassName()); stringBuffer.append(TEXT_6); for (Iterator it = genDiagram.getContainsShortcutsTo().iterator(); it.hasNext();) { String nextFileExtension = (String) it.next(); stringBuffer.append(TEXT_7); stringBuffer.append(nextFileExtension); stringBuffer.append(TEXT_8); stringBuffer.append(it.hasNext() ? "||" : ";"); } stringBuffer.append(TEXT_9); stringBuffer.append(importManager.getImportedName(genDiagram.getPluginQualifiedClassName())); stringBuffer.append(TEXT_10); stringBuffer.append(importManager.getImportedName(genDiagram.getPluginQualifiedClassName())); stringBuffer.append(TEXT_11); importManager.emitSortedImports(); stringBuffer.append(TEXT_12); return stringBuffer.toString(); }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/0bf1a833628aff43b1383f77062929555c4d1879/ElementChooserGenerator.java/buggy/plugins/org.eclipse.gmf.codegen/src-templates/org/eclipse/gmf/codegen/templates/editor/ElementChooserGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 10938, 14058, 1940, 3157, 14058, 1940, 273, 261, 7642, 14058, 1940, 13, 1237, 31, 565, 533, 1892, 18, 6923, 12, 5151, 67, 21, 1769, 565, 533, 1892, 18, 6923, 12, 4507, 14058, 1940, 18, 588, 6946, 18308, 10663, 565, 533, 1892, 18, 6923, 12, 5151, 67, 22, 1769, 565, 6164, 1304, 1930, 1318, 273, 394, 6164, 1304, 12, 4507, 14058, 1940, 18, 588, 6946, 18308, 10663, 565, 533, 1892, 18, 6923, 12, 5151, 67, 23, 1769, 565, 1930, 1318, 18, 3355, 5010, 2735, 12, 1080, 1892, 1769, 565, 533, 1892, 18, 6923, 12, 5151, 67, 24, 1769, 565, 533, 1892, 18, 6923, 12, 4507, 14058, 1940, 18, 21336, 17324, 3834, 10663, 565, 533, 1892, 18, 6923, 12, 5151, 67, 25, 1769, 565, 533, 1892, 18, 6923, 12, 4507, 14058, 1940, 18, 21336, 17324, 3834, 10663, 565, 533, 1892, 18, 6923, 12, 5151, 67, 26, 1769, 565, 364, 261, 3198, 518, 273, 3157, 14058, 1940, 18, 588, 10846, 15576, 11634, 7675, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 202, 780, 1024, 812, 3625, 273, 261, 780, 13, 518, 18, 4285, 5621, 565, 533, 1892, 18, 6923, 12, 5151, 67, 27, 1769, 565, 533, 1892, 18, 6923, 12, 4285, 812, 3625, 1769, 565, 533, 1892, 18, 6923, 12, 5151, 67, 28, 1769, 565, 533, 1892, 18, 6923, 12, 305, 18, 5332, 2134, 1435, 692, 11747, 22317, 294, 11430, 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, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 10938, 14058, 1940, 3157, 14058, 1940, 273, 261, 7642, 14058, 1940, 13, 1237, 31, 565, 533, 1892, 18, 6923, 12, 5151, 67, 21, 1769, 565, 533, 1892, 18, 6923, 12, 4507, 14058, 1940, 18, 588, 6946, 18308, 10663, 565, 533, 1892, 18, 6923, 12, 5151, 67, 22, 1769, 565, 6164, 1304, 1930, 1318, 273, 394, 6164, 1304, 12, 4507, 14058, 1940, 18, 588, 6946, 18308, 10663, 565, 533, 1892, 18, 6923, 12, 5151, 67, 23, 1769, 565, 1930, 1318, 18, 3355, 5010, 2735, 12, 1080, 1892, 1769, 565, 533, 1892, 18, 6923, 12, 5151, 67, 24, 1769, 565, 533, 1892, 2 ]
if (arect.intersects(srect) == false) return null; Rectangle2D.intersect(srect, arect, srect);
RenderedImage ri = null; if (arect.intersects(srect) == true) { Rectangle2D.intersect(srect, arect, srect); RenderContext srcRC = new RenderContext(usr2dev, srect, rh); ri = src.createRendering(srcRC);
public RenderedImage createRendering(RenderContext rc) { RenderingHints rh = rc.getRenderingHints(); if (rh == null) rh = new RenderingHints(null); Filter src = getSource(); Shape aoi = rc.getAreaOfInterest(); if(aoi == null){ aoi = getBounds2D(); } // We only depend on our source for stuff that is inside // our bounds and his bounds (remember our bounds may be // tighter than his in one or both directions). Rectangle2D srect = src.getBounds2D(); Rectangle2D rect = getBounds2D(); Rectangle2D arect = aoi.getBounds2D(); // System.out.println("Rects Src:" + srect + // "My: " + rect + // "AOI: " + arect); if (arect.intersects(rect) == false) return null; Rectangle2D.intersect(arect, rect, arect); if (arect.intersects(srect) == false) return null; Rectangle2D.intersect(srect, arect, srect); if((srect.getWidth() <= 0) || (srect.getHeight() <= 0)) return null; AffineTransform at = rc.getTransform(); RenderContext srcRC = new RenderContext(at, srect, rh); RenderedImage ri = src.createRendering(srcRC); if(ri == null) return null; CachableRed cr = RenderedImageCachableRed.wrap(ri); arect = at.createTransformedShape(arect).getBounds2D(); // System.out.println("Pad rect : " + arect); // Use arect (my bounds intersect area of interest) cr = new PadRed(cr, arect.getBounds(), padMode, rh); return cr; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/8309088af3a51d18cd5ca8ee80fca8997e73ca54/PadRable8Bit.java/buggy/sources/org/apache/batik/ext/awt/image/renderable/PadRable8Bit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6987, 329, 2040, 752, 14261, 12, 3420, 1042, 4519, 13, 288, 3639, 22391, 6259, 273, 4519, 18, 588, 14261, 13368, 5621, 3639, 309, 261, 30138, 422, 446, 13, 6259, 273, 394, 22391, 12, 2011, 1769, 3639, 4008, 1705, 273, 7889, 5621, 3639, 12383, 279, 11359, 273, 4519, 18, 588, 5484, 951, 29281, 5621, 3639, 309, 12, 6033, 77, 422, 446, 15329, 5411, 279, 11359, 273, 22107, 22, 40, 5621, 3639, 289, 3639, 368, 1660, 1338, 2447, 603, 3134, 1084, 364, 10769, 716, 353, 4832, 3639, 368, 3134, 4972, 471, 18423, 4972, 261, 28155, 3134, 4972, 2026, 506, 3639, 368, 268, 18117, 2353, 18423, 316, 1245, 578, 3937, 18558, 2934, 3639, 13264, 22, 40, 272, 2607, 273, 1705, 18, 588, 5694, 22, 40, 5621, 3639, 13264, 22, 40, 4917, 225, 273, 22107, 22, 40, 5621, 3639, 13264, 22, 40, 854, 299, 273, 279, 11359, 18, 588, 5694, 22, 40, 5621, 7734, 368, 2332, 18, 659, 18, 8222, 2932, 6120, 87, 26632, 2773, 397, 272, 2607, 397, 3639, 368, 10792, 315, 12062, 30, 315, 397, 4917, 397, 3639, 368, 10792, 315, 20463, 45, 30, 315, 397, 854, 299, 1769, 3639, 309, 261, 834, 299, 18, 12288, 87, 12, 2607, 13, 422, 629, 13, 5411, 327, 446, 31, 3639, 13264, 22, 40, 18, 12288, 12, 834, 299, 16, 4917, 16, 854, 299, 1769, 3639, 309, 261, 834, 299, 18, 12288, 87, 12, 87, 2607, 13, 422, 629, 13, 5411, 327, 446, 31, 3639, 13264, 22, 40, 18, 12288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6987, 329, 2040, 752, 14261, 12, 3420, 1042, 4519, 13, 288, 3639, 22391, 6259, 273, 4519, 18, 588, 14261, 13368, 5621, 3639, 309, 261, 30138, 422, 446, 13, 6259, 273, 394, 22391, 12, 2011, 1769, 3639, 4008, 1705, 273, 7889, 5621, 3639, 12383, 279, 11359, 273, 4519, 18, 588, 5484, 951, 29281, 5621, 3639, 309, 12, 6033, 77, 422, 446, 15329, 5411, 279, 11359, 273, 22107, 22, 40, 5621, 3639, 289, 3639, 368, 1660, 1338, 2447, 603, 3134, 1084, 364, 10769, 716, 353, 4832, 3639, 368, 3134, 4972, 471, 18423, 4972, 261, 28155, 3134, 4972, 2026, 506, 3639, 368, 268, 18117, 2353, 18423, 316, 1245, 578, 3937, 18558, 2934, 3639, 13264, 22, 40, 272, 2607, 273, 1705, 2 ]
ip = new ShortProcessor(w, h, s, null); if (stackS == null) stackS = new ImageStack(w, h); stackS.addSlice(fileName + ":" + (i + 1), ip); } else if (tt == DataBuffer.TYPE_FLOAT) { float[] f = ImageTools.getFloats(img)[0]; if (f.length > w*h) { float[] tmp = f; f = new float[w*h]; System.arraycopy(tmp, 0, f, 0, f.length);
else if (tt == DataBuffer.TYPE_FLOAT) { float[] f = ImageTools.getFloats(img)[0]; if (f.length > w*h) { float[] tmp = f; f = new float[w*h]; System.arraycopy(tmp, 0, f, 0, f.length); } ip = new FloatProcessor(w, h, f, null); if (stackF == null) stackF = new ImageStack(w, h); stackF.addSlice(fileName + ":" + (j + 1), ip);
public synchronized void run(String arg) { success = false; boolean quiet = !"".equals(arg); String id = null; ImageReader reader = new ImageReader(); String mergeString = "Merge channels"; String splitString = "Open each channel in its own window"; String metadataString = "Display associated metadata"; String stitchString = "Stitch files with similar names"; if ((new File(arg)).exists()) { id = arg; // we still want to prompt for channel merge/split GenericDialog gd = new GenericDialog("LOCI Bio-Formats Import Options"); gd.addCheckbox(mergeString, mergeChannels); gd.addCheckbox(splitString, splitWindows); gd.addCheckbox(metadataString, showMetadata); gd.addCheckbox(stitchString, stitchFiles); gd.showDialog(); mergeChannels = gd.getNextBoolean(); splitWindows = gd.getNextBoolean(); showMetadata = gd.getNextBoolean(); stitchFiles = gd.getNextBoolean(); } else { JFileChooser chooser = reader.getFileChooser(); String dir = OpenDialog.getDefaultDirectory(); if (dir != null) chooser.setCurrentDirectory(new File(dir)); // add some additional options to the file chooser JPanel panel = new JPanel(); panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS)); merge = new JCheckBox(mergeString, mergeChannels); newWindows = new JCheckBox(splitString, splitWindows); showMeta = new JCheckBox(metadataString, showMetadata); stitching = new JCheckBox(stitchString, stitchFiles); merge.addItemListener(this); newWindows.addItemListener(this); showMeta.addItemListener(this); stitching.addItemListener(this); panel.add(merge); panel.add(newWindows); panel.add(showMeta); panel.add(stitching); chooser.setAccessory(panel); int rval = chooser.showOpenDialog(null); if (rval == JFileChooser.APPROVE_OPTION) { final File file = chooser.getSelectedFile(); if (file != null) { id = file.getAbsolutePath(); OpenDialog.setDefaultDirectory( chooser.getCurrentDirectory().getPath()); } } } if (id == null) return; String fileName = id.substring(id.lastIndexOf(File.separator) + 1); IJ.showStatus("Opening " + fileName); try { FormatReader r = (FormatReader) reader.getReader(id); FileStitcher fs = new FileStitcher(r); ChannelMerger cm = new ChannelMerger(stitchFiles ? fs : r); cm.setSeparated(!mergeChannels); try { OMEXMLMetadataStore store = new OMEXMLMetadataStore(); store.createRoot(); cm.setMetadataStore(store); } catch (Throwable t) { } int num = cm.getImageCount(id); if (showMetadata) { Hashtable meta = cm.getMetadata(id); MetadataPane mp = new MetadataPane(meta); JFrame frame = new JFrame(id + " Metadata"); frame.setContentPane(mp); frame.pack(); frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); } ImageStack stackB = null, stackS = null, stackF = null, stackO = null; long start = System.currentTimeMillis(); long time = start; int channels = cm.getSizeC(id); FileInfo fi = new FileInfo(); try { fi.description = ((OMEXMLMetadataStore) cm.getMetadataStore(id)).dumpXML(); } catch (Throwable t) { } for (int i=0; i<num; i++) { // limit message update rate long clock = System.currentTimeMillis(); if (clock - time >= 50) { IJ.showStatus("Reading plane " + (i + 1) + "/" + num); time = clock; } IJ.showProgress((double) i / num); BufferedImage img = cm.openImage(id, i); img = ImageTools.padImage(img, cm.getSizeX(id), cm.getSizeY(id)); ImageProcessor ip = null; WritableRaster raster = img.getRaster(); int c = raster.getNumBands(); int tt = raster.getTransferType(); int w = img.getWidth(), h = img.getHeight(); if (c == 1) { if (tt == DataBuffer.TYPE_BYTE) { byte[] b = ImageTools.getBytes(img)[0]; if (b.length > w*h) { byte[] tmp = b; b = new byte[w*h]; System.arraycopy(tmp, 0, b, 0, b.length); } ip = new ByteProcessor(w, h, b, null); if (stackB == null) stackB = new ImageStack(w, h); stackB.addSlice(fileName + ":" + (i + 1), ip); } else if (tt == DataBuffer.TYPE_USHORT) { short[] s = ImageTools.getShorts(img)[0]; if (s.length > w*h) { short[] tmp = s; s = new short[w*h]; System.arraycopy(tmp, 0, s, 0, s.length); } ip = new ShortProcessor(w, h, s, null); if (stackS == null) stackS = new ImageStack(w, h); stackS.addSlice(fileName + ":" + (i + 1), ip); } else if (tt == DataBuffer.TYPE_FLOAT) { float[] f = ImageTools.getFloats(img)[0]; if (f.length > w*h) { float[] tmp = f; f = new float[w*h]; System.arraycopy(tmp, 0, f, 0, f.length); } ip = new FloatProcessor(w, h, f, null); if (stackF == null) stackF = new ImageStack(w, h); stackF.addSlice(fileName + ":" + (i + 1), ip); } } if (ip == null) { ip = new ImagePlus(null, img).getProcessor(); // slow if (stackO == null) stackO = new ImageStack(w, h); stackO.addSlice(fileName + ":" + (i + 1), ip); } } IJ.showStatus("Creating image"); IJ.showProgress(1); ImagePlus ip = null; if (stackB != null) { if (!mergeChannels && splitWindows) { slice(stackB, fileName, channels, fi); } else ip = new ImagePlus(fileName, stackB); } if (stackS != null) { if (!mergeChannels && splitWindows) { slice(stackS, fileName, channels, fi); } else ip = new ImagePlus(fileName, stackS); } if (stackF != null) { if (!mergeChannels && splitWindows) { slice(stackF, fileName, channels, fi); } else ip = new ImagePlus(fileName, stackF); } if (stackO != null) { if (!mergeChannels && splitWindows) { slice(stackO, fileName, channels, fi); } else ip = new ImagePlus(fileName, stackO); } if (ip != null) ip.setFileInfo(fi); if (ip != null) ip.show(); long end = System.currentTimeMillis(); double elapsed = (end - start) / 1000.0; if (num == 1) IJ.showStatus(elapsed + " seconds"); else { long average = (end - start) / num; IJ.showStatus("LOCI Bio-Formats : " + elapsed + " seconds (" + average + " ms per plane)"); } success = true; mergeChannels = true; splitWindows = false; } catch (Exception exc) { exc.printStackTrace(); IJ.showStatus(""); if (!quiet) { String msg = exc.getMessage(); IJ.showMessage("LOCI Bio-Formats", "Sorry, there was a problem " + "reading the data" + (msg == null ? "." : (": " + msg))); } } }
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/f10429bbdbd92f11ec6dd4620ea838d1dd11457f/LociImporter.java/clean/loci/plugins/LociImporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 918, 1086, 12, 780, 1501, 13, 288, 565, 2216, 273, 629, 31, 565, 1250, 10902, 273, 401, 3660, 18, 14963, 12, 3175, 1769, 565, 514, 612, 273, 446, 31, 565, 3421, 2514, 2949, 273, 394, 3421, 2514, 5621, 565, 514, 2691, 780, 273, 315, 6786, 5750, 14432, 565, 514, 1416, 780, 273, 315, 3678, 1517, 1904, 316, 2097, 4953, 2742, 14432, 565, 514, 1982, 780, 273, 315, 4236, 3627, 1982, 14432, 565, 514, 384, 1437, 780, 273, 315, 510, 1437, 1390, 598, 7281, 1257, 14432, 565, 309, 14015, 2704, 1387, 12, 3175, 13, 2934, 1808, 10756, 288, 1377, 612, 273, 1501, 31, 1377, 368, 732, 4859, 2545, 358, 6866, 364, 1904, 2691, 19, 4939, 1377, 7928, 6353, 15551, 273, 394, 7928, 6353, 2932, 1502, 7266, 21209, 17, 8976, 6164, 5087, 8863, 1377, 15551, 18, 1289, 21272, 12, 2702, 780, 16, 2691, 10585, 1769, 1377, 15551, 18, 1289, 21272, 12, 4939, 780, 16, 1416, 10399, 1769, 1377, 15551, 18, 1289, 21272, 12, 4165, 780, 16, 2405, 2277, 1769, 1377, 15551, 18, 1289, 21272, 12, 334, 1437, 780, 16, 384, 1437, 2697, 1769, 1377, 15551, 18, 4500, 6353, 5621, 1377, 2691, 10585, 273, 15551, 18, 588, 2134, 5507, 5621, 1377, 1416, 10399, 273, 15551, 18, 588, 2134, 5507, 5621, 1377, 2405, 2277, 273, 15551, 18, 588, 2134, 5507, 5621, 1377, 384, 1437, 2697, 273, 15551, 18, 588, 2134, 5507, 5621, 565, 289, 565, 469, 288, 1377, 804, 812, 17324, 5011, 13164, 273, 2949, 18, 29925, 17324, 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, 3852, 918, 1086, 12, 780, 1501, 13, 288, 565, 2216, 273, 629, 31, 565, 1250, 10902, 273, 401, 3660, 18, 14963, 12, 3175, 1769, 565, 514, 612, 273, 446, 31, 565, 3421, 2514, 2949, 273, 394, 3421, 2514, 5621, 565, 514, 2691, 780, 273, 315, 6786, 5750, 14432, 565, 514, 1416, 780, 273, 315, 3678, 1517, 1904, 316, 2097, 4953, 2742, 14432, 565, 514, 1982, 780, 273, 315, 4236, 3627, 1982, 14432, 565, 514, 384, 1437, 780, 273, 315, 510, 1437, 1390, 598, 7281, 1257, 14432, 565, 309, 14015, 2704, 1387, 12, 3175, 13, 2934, 1808, 10756, 288, 1377, 612, 273, 1501, 31, 1377, 368, 732, 4859, 2545, 358, 6866, 364, 1904, 2691, 19, 4939, 1377, 7928, 2 ]
IActionFilter filter = null; if (object instanceof IActionFilter) filter = (IActionFilter) object; else if (object instanceof IAdaptable) filter = (IActionFilter) ((IAdaptable) object) .getAdapter(IActionFilter.class); return filter; }
IActionFilter filter = null; if (object instanceof IActionFilter) filter = (IActionFilter) object; else if (object instanceof IAdaptable) filter = (IActionFilter) ((IAdaptable) object) .getAdapter(IActionFilter.class); return filter; }
private IActionFilter getActionFilter(Object object) { IActionFilter filter = null; if (object instanceof IActionFilter) filter = (IActionFilter) object; else if (object instanceof IAdaptable) filter = (IActionFilter) ((IAdaptable) object) .getAdapter(IActionFilter.class); return filter; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5cfb5f88a049bbc9efcf0fade7d5687d0ec50ed3/ActionExpression.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ActionExpression.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 467, 1803, 1586, 12473, 1586, 12, 921, 733, 13, 288, 5411, 467, 1803, 1586, 1034, 273, 446, 31, 5411, 309, 261, 1612, 1276, 467, 1803, 1586, 13, 7734, 1034, 273, 261, 45, 1803, 1586, 13, 733, 31, 5411, 469, 309, 261, 1612, 1276, 467, 13716, 429, 13, 7734, 1034, 273, 261, 45, 1803, 1586, 13, 14015, 45, 13716, 429, 13, 733, 13, 13491, 263, 588, 4216, 12, 45, 1803, 1586, 18, 1106, 1769, 5411, 327, 1034, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 467, 1803, 1586, 12473, 1586, 12, 921, 733, 13, 288, 5411, 467, 1803, 1586, 1034, 273, 446, 31, 5411, 309, 261, 1612, 1276, 467, 1803, 1586, 13, 7734, 1034, 273, 261, 45, 1803, 1586, 13, 733, 31, 5411, 469, 309, 261, 1612, 1276, 467, 13716, 429, 13, 7734, 1034, 273, 261, 45, 1803, 1586, 13, 14015, 45, 13716, 429, 13, 733, 13, 13491, 263, 588, 4216, 12, 45, 1803, 1586, 18, 1106, 1769, 5411, 327, 1034, 31, 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 ]
public void testSimpleOutputStream() throws Exception { XmlSerializer ser = factory.newSerializer(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); ser.setOutput(baos, "UTF-8"); ser.startDocument("UTF-8", null); ser.startTag("", "foo"); final String text = "\"test<&>&amp;"; ser.text(text); ser.endTag("", "foo"); ser.endDocument(); //check taking input form input stream //byte[] binput = "<foo>test</foo>".getBytes("UTF8"); byte[] binput = baos.toByteArray(); xpp.setInput(new ByteArrayInputStream( binput ), "UTF-8" ); assertEquals("UTF-8", xpp.getInputEncoding()); //xpp.setInput(new StringReader( "<foo/>" ) ); checkSimpleWriterResult(text); }
3949 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3949/667d531516f3ff0957c7b5ab81ff2a9dc2ffe4e6/TestSerializeWithNs.java/clean/src/java/tests/org/xmlpull/v1/tests/TestSerializeWithNs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5784, 4632, 1435, 1216, 1185, 288, 3639, 5714, 6306, 703, 273, 3272, 18, 2704, 6306, 5621, 3639, 11559, 17548, 273, 394, 11559, 5621, 3639, 703, 18, 542, 1447, 12, 12124, 538, 16, 315, 5159, 17, 28, 8863, 3639, 703, 18, 1937, 2519, 2932, 5159, 17, 28, 3113, 446, 1769, 3639, 703, 18, 1937, 1805, 2932, 3113, 315, 11351, 8863, 3639, 727, 514, 977, 273, 7023, 3813, 32, 10, 22393, 931, 4868, 31, 3639, 703, 18, 955, 12, 955, 1769, 3639, 703, 18, 409, 1805, 2932, 3113, 315, 11351, 8863, 3639, 703, 18, 409, 2519, 5621, 3639, 368, 1893, 13763, 810, 646, 810, 1407, 3639, 368, 7229, 8526, 324, 2630, 273, 3532, 11351, 34, 3813, 1757, 11351, 2984, 18, 588, 2160, 2932, 5159, 28, 8863, 3639, 1160, 8526, 324, 2630, 273, 17548, 18, 869, 8826, 5621, 3639, 619, 11858, 18, 542, 1210, 12, 2704, 16180, 12, 324, 2630, 262, 16, 315, 5159, 17, 28, 6, 11272, 3639, 1815, 8867, 2932, 5159, 17, 28, 3113, 619, 11858, 18, 588, 1210, 4705, 10663, 3639, 368, 92, 11858, 18, 542, 1210, 12, 2704, 26227, 12, 3532, 11351, 26293, 262, 11272, 3639, 866, 5784, 2289, 1253, 12, 955, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5784, 4632, 1435, 1216, 1185, 288, 3639, 5714, 6306, 703, 273, 3272, 18, 2704, 6306, 5621, 3639, 11559, 17548, 273, 394, 11559, 5621, 3639, 703, 18, 542, 1447, 12, 12124, 538, 16, 315, 5159, 17, 28, 8863, 3639, 703, 18, 1937, 2519, 2932, 5159, 17, 28, 3113, 446, 1769, 3639, 703, 18, 1937, 1805, 2932, 3113, 315, 11351, 8863, 3639, 727, 514, 977, 273, 7023, 3813, 32, 10, 22393, 931, 4868, 31, 3639, 703, 18, 955, 12, 955, 1769, 3639, 703, 18, 409, 1805, 2932, 3113, 315, 11351, 8863, 3639, 703, 18, 409, 2519, 5621, 3639, 368, 1893, 13763, 810, 646, 810, 1407, 3639, 368, 7229, 8526, 324, 2630, 273, 3532, 11351, 34, 3813, 1757, 2 ]
if(!"java.lang.String".equals(typeText)) {
if(!"java.lang.String".equals(typeText)){
public void visitMethodCallExpression(@NotNull PsiMethodCallExpression expression){ super.visitMethodCallExpression(expression); final PsiReferenceExpression methodExpression = expression.getMethodExpression(); if(methodExpression == null) { return; } final String methodName = methodExpression.getReferenceName(); if(!s_execMethodNames.contains(methodName)) { return; } final PsiMethod method = expression.resolveMethod(); if(method == null) { return; } final PsiClass aClass = method.getContainingClass(); if(!ClassUtils.isSubclass(aClass, "java.sql.Connection")) { return; } final PsiExpressionList argumentList = expression.getArgumentList(); if(argumentList == null) { return; } final PsiExpression[] args = argumentList.getExpressions(); if(args == null || args.length == 0) { return; } final PsiExpression arg = args[0]; final PsiType type = arg.getType(); if(type == null) { return; } final String typeText = type.getCanonicalText(); if(!"java.lang.String".equals(typeText)) { return; } final String stringValue = (String) ConstantExpressionUtil.computeCastTo(arg, type); if(stringValue != null) { return; } registerMethodCallError(expression); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/bd57f07c33c419f20715b114b71a7e93425b34c9/JDBCPrepareStatementWithNonConstantStringInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/security/JDBCPrepareStatementWithNonConstantStringInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 12592, 2300, 26964, 5962, 453, 7722, 12592, 2300, 2652, 15329, 5411, 2240, 18, 11658, 12592, 2300, 12, 8692, 1769, 5411, 727, 453, 7722, 2404, 2300, 707, 2300, 273, 2652, 18, 588, 1305, 2300, 5621, 5411, 309, 12, 2039, 2300, 422, 446, 13, 288, 7734, 327, 31, 5411, 289, 5411, 727, 514, 4918, 273, 707, 2300, 18, 588, 2404, 461, 5621, 5411, 309, 12, 5, 87, 67, 4177, 1305, 1557, 18, 12298, 12, 2039, 461, 3719, 288, 7734, 327, 31, 5411, 289, 5411, 727, 453, 7722, 1305, 707, 273, 2652, 18, 10828, 1305, 5621, 5411, 309, 12, 2039, 422, 446, 13, 288, 7734, 327, 31, 5411, 289, 5411, 727, 453, 7722, 797, 20148, 273, 707, 18, 588, 24344, 797, 5621, 5411, 309, 12, 5, 797, 1989, 18, 291, 1676, 1106, 12, 69, 797, 16, 315, 6290, 18, 4669, 18, 1952, 6, 3719, 288, 7734, 327, 31, 5411, 289, 5411, 727, 453, 7722, 2300, 682, 1237, 682, 273, 2652, 18, 588, 1379, 682, 5621, 5411, 309, 12, 3446, 682, 422, 446, 13, 288, 7734, 327, 31, 5411, 289, 5411, 727, 453, 7722, 2300, 8526, 833, 273, 1237, 682, 18, 588, 8927, 5621, 5411, 309, 12, 1968, 422, 446, 747, 833, 18, 2469, 422, 374, 13, 288, 7734, 327, 31, 5411, 289, 5411, 727, 453, 7722, 2300, 1501, 273, 833, 63, 20, 15533, 5411, 727, 453, 7722, 559, 618, 273, 1501, 18, 588, 559, 5621, 5411, 309, 12, 723, 422, 446, 13, 288, 7734, 327, 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, 540, 1071, 918, 3757, 12592, 2300, 26964, 5962, 453, 7722, 12592, 2300, 2652, 15329, 5411, 2240, 18, 11658, 12592, 2300, 12, 8692, 1769, 5411, 727, 453, 7722, 2404, 2300, 707, 2300, 273, 2652, 18, 588, 1305, 2300, 5621, 5411, 309, 12, 2039, 2300, 422, 446, 13, 288, 7734, 327, 31, 5411, 289, 5411, 727, 514, 4918, 273, 707, 2300, 18, 588, 2404, 461, 5621, 5411, 309, 12, 5, 87, 67, 4177, 1305, 1557, 18, 12298, 12, 2039, 461, 3719, 288, 7734, 327, 31, 5411, 289, 5411, 727, 453, 7722, 1305, 707, 273, 2652, 18, 10828, 1305, 5621, 5411, 309, 12, 2039, 422, 446, 13, 288, 7734, 327, 31, 5411, 289, 5411, 727, 453, 7722, 797, 20148, 273, 707, 18, 2 ]
public void elaboratedTypeSpecifierName(Object container) {
public Object elaboratedTypeSpecifierName(Object container) { return null;
public void elaboratedTypeSpecifierName(Object container) { }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/44aad85270fb48dbc04906626c769076958182ca/ExpressionEvaluator.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionEvaluator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 415, 378, 280, 690, 559, 21416, 461, 12, 921, 1478, 13, 288, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 415, 378, 280, 690, 559, 21416, 461, 12, 921, 1478, 13, 288, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private final int readLeShort() throws IOException {
private final int readLeShort() throws IOException {
private final int readLeShort() throws IOException { return readLeByte() | (readLeByte() << 8); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ZipInputStream.java/buggy/core/src/classpath/java/java/util/zip/ZipInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 509, 855, 1682, 4897, 1435, 1216, 1860, 288, 202, 202, 2463, 855, 1682, 3216, 1435, 571, 261, 896, 1682, 3216, 1435, 2296, 1725, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 509, 855, 1682, 4897, 1435, 1216, 1860, 288, 202, 202, 2463, 855, 1682, 3216, 1435, 571, 261, 896, 1682, 3216, 1435, 2296, 1725, 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 ]
text.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { validatePage(); } });
text.addModifyListener(listener);
private Text createText(Composite parent) { Text text = new Text(parent, SWT.BORDER | SWT.SINGLE); text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); text.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { validatePage(); } }); return text; }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/8d27aa46e8b907fa6061d8651d021a3ca7d1b2a2/ContentPage.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/plugin/ContentPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3867, 752, 1528, 12, 9400, 982, 13, 288, 202, 202, 1528, 977, 273, 394, 3867, 12, 2938, 16, 348, 8588, 18, 38, 7954, 571, 348, 8588, 18, 20184, 1769, 202, 202, 955, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 44, 20344, 10019, 202, 202, 955, 18, 1289, 11047, 2223, 12, 2704, 9518, 2223, 1435, 288, 1082, 202, 482, 918, 5612, 1528, 12, 11047, 1133, 425, 13, 288, 9506, 202, 5662, 1964, 5621, 1082, 202, 97, 202, 202, 22938, 202, 202, 2463, 977, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 1152, 3867, 752, 1528, 12, 9400, 982, 13, 288, 202, 202, 1528, 977, 273, 394, 3867, 12, 2938, 16, 348, 8588, 18, 38, 7954, 571, 348, 8588, 18, 20184, 1769, 202, 202, 955, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 44, 20344, 10019, 202, 202, 955, 18, 1289, 11047, 2223, 12, 2704, 9518, 2223, 1435, 288, 1082, 202, 482, 918, 5612, 1528, 12, 11047, 1133, 425, 13, 288, 9506, 202, 5662, 1964, 5621, 1082, 202, 97, 202, 202, 22938, 202, 202, 2463, 977, 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 ]
ByteArrayOutputStream baos = new ByteArrayOutputStream(); int b; try { BufferedInputStream bis = new BufferedInputStream(jarFile .getInputStream(entry)); while ((b = bis.read()) != -1) { baos.write(b); } } catch (IOException ioe) { throw new GroovyRuntimeException( "Could not read the jar bytes for " + entry.getName()); } return baos.toByteArray(); }
ByteArrayOutputStream baos = new ByteArrayOutputStream(); int b; try { BufferedInputStream bis = new BufferedInputStream(jarFile.getInputStream(entry)); while ((b = bis.read()) != -1) { baos.write(b); } } catch (IOException ioe) { throw new GroovyRuntimeException("Could not read the jar bytes for " + entry.getName()); } return baos.toByteArray(); }
private byte[] extractBytes(JarFile jarFile, JarEntry entry) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); int b; try { BufferedInputStream bis = new BufferedInputStream(jarFile .getInputStream(entry)); while ((b = bis.read()) != -1) { baos.write(b); } } catch (IOException ioe) { throw new GroovyRuntimeException( "Could not read the jar bytes for " + entry.getName()); } return baos.toByteArray(); }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/1c62d56c316f75ad7c6816339d5d0cd58818992f/GroovyClassLoader.java/clean/src/main/groovy/lang/GroovyClassLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1160, 8526, 2608, 2160, 12, 10813, 812, 22588, 16, 15644, 1622, 1241, 13, 288, 202, 202, 8826, 4632, 17548, 273, 394, 11559, 5621, 202, 202, 474, 324, 31, 202, 202, 698, 288, 1082, 202, 17947, 4348, 17771, 273, 394, 24742, 12, 11930, 812, 6862, 202, 18, 588, 4348, 12, 4099, 10019, 1082, 202, 17523, 14015, 70, 273, 17771, 18, 896, 10756, 480, 300, 21, 13, 288, 9506, 202, 12124, 538, 18, 2626, 12, 70, 1769, 1082, 202, 97, 202, 202, 97, 1044, 261, 14106, 10847, 13, 288, 1082, 202, 12849, 394, 20841, 11949, 12, 6862, 202, 6, 4445, 486, 855, 326, 7334, 1731, 364, 315, 397, 1241, 18, 17994, 10663, 202, 202, 97, 202, 202, 2463, 17548, 18, 869, 8826, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1160, 8526, 2608, 2160, 12, 10813, 812, 22588, 16, 15644, 1622, 1241, 13, 288, 202, 202, 8826, 4632, 17548, 273, 394, 11559, 5621, 202, 202, 474, 324, 31, 202, 202, 698, 288, 1082, 202, 17947, 4348, 17771, 273, 394, 24742, 12, 11930, 812, 6862, 202, 18, 588, 4348, 12, 4099, 10019, 1082, 202, 17523, 14015, 70, 273, 17771, 18, 896, 10756, 480, 300, 21, 13, 288, 9506, 202, 12124, 538, 18, 2626, 12, 70, 1769, 1082, 202, 97, 202, 202, 97, 1044, 261, 14106, 10847, 13, 288, 1082, 202, 12849, 394, 20841, 11949, 12, 6862, 202, 6, 4445, 486, 855, 326, 7334, 1731, 364, 315, 397, 1241, 18, 17994, 10663, 202, 202, 97, 202, 202, 2463, 2 ]
else
} else {
public static String psiToString(final PsiElement file, final boolean skipWhitespaces) { final StringBuffer stringBuffer = new StringBuffer(file.getTextLength() * 5); if(file.getNode() == null) psiToBuffer(stringBuffer, file, 0, skipWhitespaces, false, false); else treeToBuffer(stringBuffer, file.getNode(), 0, skipWhitespaces, false, false); return stringBuffer.toString(); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/2a3208407c614babd5d15b7cd5ecebc8c75f6453/DebugUtil.java/clean/source/com/intellij/psi/impl/DebugUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 23921, 5808, 12, 6385, 453, 7722, 1046, 585, 16, 727, 1250, 2488, 2888, 21693, 13, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 12, 768, 18, 588, 1528, 1782, 1435, 380, 1381, 1769, 565, 309, 12, 768, 18, 588, 907, 1435, 422, 446, 13, 1377, 23921, 774, 1892, 12, 1080, 1892, 16, 585, 16, 374, 16, 2488, 2888, 21693, 16, 629, 16, 629, 1769, 565, 289, 469, 288, 1377, 2151, 774, 1892, 12, 1080, 1892, 16, 585, 18, 588, 907, 9334, 374, 16, 2488, 2888, 21693, 16, 629, 16, 629, 1769, 565, 327, 533, 1892, 18, 10492, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 23921, 5808, 12, 6385, 453, 7722, 1046, 585, 16, 727, 1250, 2488, 2888, 21693, 13, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 12, 768, 18, 588, 1528, 1782, 1435, 380, 1381, 1769, 565, 309, 12, 768, 18, 588, 907, 1435, 422, 446, 13, 1377, 23921, 774, 1892, 12, 1080, 1892, 16, 585, 16, 374, 16, 2488, 2888, 21693, 16, 629, 16, 629, 1769, 565, 289, 469, 288, 1377, 2151, 774, 1892, 12, 1080, 1892, 16, 585, 18, 588, 907, 9334, 374, 16, 2488, 2888, 21693, 16, 629, 16, 629, 1769, 565, 327, 533, 1892, 18, 10492, 5621, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
installationService.shutDown(); deploymentService.shutDown(); adminCommandsService.shutDown(); clientFactory.shutDown();
public void shutDown() throws JBIException { if (containerInitialized.compareAndSet(true, false)) { autoDeployService.shutDown(); registry.shutDown(); broker.shutDown(); environmentContext.shutDown(); installationService.shutDown(); deploymentService.shutDown(); adminCommandsService.shutDown(); clientFactory.shutDown(); // shutdown the management context last, because it will close the mbean server super.shutDown(); managementContext.unregisterMBean(this); managementContext.shutDown(); if (isWorkManagerCreated && workManager instanceof GeronimoWorkManager) { try { ((GeronimoWorkManager) workManager).doStop(); } catch (Exception e) { throw new JBIException("Could not stop workManager", e); } } } }
6264 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6264/3ae14c158656a900d08917a6b5ab90d53a18e209/JBIContainer.java/clean/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9171, 4164, 1435, 1216, 804, 31558, 503, 288, 3639, 309, 261, 3782, 11459, 18, 9877, 13152, 12, 3767, 16, 629, 3719, 288, 5411, 3656, 10015, 1179, 18, 674, 322, 4164, 5621, 5411, 4023, 18, 674, 322, 4164, 5621, 5411, 8625, 18, 674, 322, 4164, 5621, 5411, 3330, 1042, 18, 674, 322, 4164, 5621, 5411, 13193, 1179, 18, 674, 322, 4164, 5621, 5411, 6314, 1179, 18, 674, 322, 4164, 5621, 5411, 3981, 9127, 1179, 18, 674, 322, 4164, 5621, 5411, 1004, 1733, 18, 674, 322, 4164, 5621, 5411, 368, 5731, 326, 11803, 819, 1142, 16, 2724, 518, 903, 1746, 326, 29114, 1438, 5411, 2240, 18, 674, 322, 4164, 5621, 5411, 11803, 1042, 18, 318, 4861, 18089, 12, 2211, 1769, 5411, 11803, 1042, 18, 674, 322, 4164, 5621, 5411, 309, 261, 291, 2421, 1318, 6119, 597, 1440, 1318, 1276, 611, 264, 265, 381, 83, 2421, 1318, 13, 288, 7734, 775, 288, 10792, 14015, 43, 264, 265, 381, 83, 2421, 1318, 13, 1440, 1318, 2934, 2896, 4947, 5621, 7734, 289, 1044, 261, 503, 425, 13, 288, 10792, 604, 394, 804, 31558, 503, 2932, 4445, 486, 2132, 1440, 1318, 3113, 425, 1769, 7734, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9171, 4164, 1435, 1216, 804, 31558, 503, 288, 3639, 309, 261, 3782, 11459, 18, 9877, 13152, 12, 3767, 16, 629, 3719, 288, 5411, 3656, 10015, 1179, 18, 674, 322, 4164, 5621, 5411, 4023, 18, 674, 322, 4164, 5621, 5411, 8625, 18, 674, 322, 4164, 5621, 5411, 3330, 1042, 18, 674, 322, 4164, 5621, 5411, 13193, 1179, 18, 674, 322, 4164, 5621, 5411, 6314, 1179, 18, 674, 322, 4164, 5621, 5411, 3981, 9127, 1179, 18, 674, 322, 4164, 5621, 5411, 1004, 1733, 18, 674, 322, 4164, 5621, 5411, 368, 5731, 326, 11803, 819, 1142, 16, 2724, 518, 903, 1746, 326, 29114, 1438, 5411, 2240, 18, 674, 322, 4164, 5621, 5411, 11803, 1042, 18, 318, 4861, 18089, 12, 2 ]
final Element lastElement = (Element) collectionToBeUpdated.get(collectionToBeUpdated.size() - 1); clonedElement = (Element) lastElement.createCopy(); XFormsUtils.setInitialDecoration(clonedElement);
if (originAttribute == null) { final Element lastElement = (Element) collectionToBeUpdated.get(collectionToBeUpdated.size() - 1); clonedElement = (Element) lastElement.createCopy(); XFormsUtils.setInitialDecoration(clonedElement); } else { xformsControls.pushBinding(pipelineContext, null, originAttribute, null, null, null, Dom4jUtils.getNamespaceContextNoDefault(actionElement)); final Element templateElement = (Element) xformsControls.getCurrentSingleNode(); clonedElement = templateElement.createCopy(); XFormsUtils.setInitialDecoration(clonedElement); xformsControls.popBinding(); }
public void runAction(final PipelineContext pipelineContext, String targetId, XFormsEventHandlerContainer eventHandlerContainer, Element actionElement, ActionContext actionContext) { // Check that we understand the action element final String actionNamespaceURI = actionElement.getNamespaceURI(); if (!XFormsConstants.XFORMS_NAMESPACE_URI.equals(actionNamespaceURI)) { throw new OXFException("Invalid action namespace: " + actionNamespaceURI); } // Set binding context setBindingContext(pipelineContext, containingDocument, eventHandlerContainer.getId(), actionElement); final String actionEventName = actionElement.getName(); if (XFormsServer.logger.isDebugEnabled()) XFormsServer.logger.debug("XForms - executing action: " + actionEventName); if (XFormsActions.XFORMS_SETVALUE_ACTION.equals(actionEventName)) { // 10.1.9 The setvalue Element // xforms:setvalue final String value = actionElement.attributeValue("value"); final String content = actionElement.getStringValue(); final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final String valueToSet; if (value != null) { // Value to set is computed with an XPath expression Map namespaceContext = Dom4jUtils.getNamespaceContextNoDefault(actionElement); valueToSet = currentInstance.evaluateXPathAsString(pipelineContext, xformsControls.getCurrentNodeset(), xformsControls.getCurrentPosition(), value, namespaceContext, null, xformsControls.getFunctionLibrary(), null); } else { // Value to set is static content valueToSet = content; } // Set value on current node final Node currentNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentNode, valueToSet, null); if (actionContext != null) { // "XForms Actions that change only the value of an instance node results in setting // the flags for recalculate, revalidate, and refresh to true and making no change to // the flag for rebuild". actionContext.recalculate = true; actionContext.revalidate = true; actionContext.refresh = true; } else { // Send events directly final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); } } else if (XFormsActions.XFORMS_RESET_ACTION.equals(actionEventName)) { // 10.1.11 The reset Element final String modelId = actionElement.attributeValue("model"); final Object modelObject = containingDocument.getObjectById(pipelineContext, modelId); if (modelObject instanceof XFormsModel) { final XFormsModel model = (XFormsModel) modelObject; containingDocument.dispatchEvent(pipelineContext, new XFormsResetEvent(model)); } else { throw new OXFException("xforms:reset model attribute must point to an xforms:model element."); } // "the reset action takes effect immediately and clears all of the flags." if (actionContext != null) actionContext.setAll(false); } else if (XFormsActions.XFORMS_ACTION_ACTION.equals(actionEventName)) { // 10.1.1 The action Element final ActionContext newActionContext = (actionContext == null) ? new ActionContext() : null; for (Iterator i = actionElement.elementIterator(); i.hasNext();) { final Element embeddedActionElement = (Element) i.next(); runAction(pipelineContext, targetId, eventHandlerContainer, embeddedActionElement, (newActionContext == null) ? actionContext : newActionContext ); } if (newActionContext != null) { // Binding context has to be reset as it may have been modified by sub-actions setBindingContext(pipelineContext, containingDocument, eventHandlerContainer.getId(), actionElement); final XFormsModel model = xformsControls.getCurrentModel(); // Process deferred behavior if (newActionContext.rebuild) containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(model)); if (newActionContext.recalculate) containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); if (newActionContext.revalidate) containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); if (newActionContext.refresh) containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); } } else if (XFormsActions.XFORMS_REBUILD_ACTION.equals(actionEventName)) { // 10.1.3 The rebuild Element final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(model)); // "Actions that directly invoke rebuild, recalculate, revalidate, or refresh always // have an immediate effect, and clear the corresponding flag." if (actionContext != null) actionContext.rebuild = false; } else if (XFormsActions.XFORMS_RECALCULATE_ACTION.equals(actionEventName)) { // 10.1.4 The recalculate Element final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); // "Actions that directly invoke rebuild, recalculate, revalidate, or refresh always // have an immediate effect, and clear the corresponding flag." if (actionContext != null) actionContext.recalculate = false; } else if (XFormsActions.XFORMS_REVALIDATE_ACTION.equals(actionEventName)) { // 10.1.5 The revalidate Element final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); // "Actions that directly invoke rebuild, recalculate, revalidate, or refresh always // have an immediate effect, and clear the corresponding flag." if (actionContext != null) actionContext.revalidate = false; } else if (XFormsActions.XFORMS_REFRESH_ACTION.equals(actionEventName)) { // 10.1.6 The refresh Element final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); // "Actions that directly invoke rebuild, recalculate, revalidate, or refresh always // have an immediate effect, and clear the corresponding flag." if (actionContext != null) actionContext.refresh = false; } else if (XFormsActions.XFORMS_TOGGLE_ACTION.equals(actionEventName)) { // 9.2.3 The toggle Element // TODO: Handle repeat controls, AKA "switch within repeat" final String caseId = actionElement.attributeValue("case"); // Update xforms:switch info and dispatch events xformsControls.updateSwitchInfo(pipelineContext, caseId); } else if (XFormsActions.XFORMS_INSERT_ACTION.equals(actionEventName)) { // 9.3.5 The insert Element final String atAttribute = actionElement.attributeValue("at"); final String positionAttribute = actionElement.attributeValue("position"); // Set current binding in order to evaluate the current nodeset // "1. The homogeneous collection to be updated is determined by evaluating the Node Set Binding." final List collectionToBeUpdated = xformsControls.getCurrentNodeset(); if (collectionToBeUpdated.size() > 0) { // "If the collection is empty, the insert action has no effect." // "2. The node-set binding identifies a homogeneous collection in the instance // data. The final member of this collection is cloned to produce the node that will // be inserted." final Element clonedElement; { final Element lastElement = (Element) collectionToBeUpdated.get(collectionToBeUpdated.size() - 1); clonedElement = (Element) lastElement.createCopy(); XFormsUtils.setInitialDecoration(clonedElement); } // "Finally, this newly created node is inserted into the instance data at the location // specified by attributes position and at." final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final String insertionIndexString = currentInstance.evaluateXPathAsString(pipelineContext, xformsControls.getCurrentNodeset(), xformsControls.getCurrentPosition(), "round(" + atAttribute + ")", Dom4jUtils.getNamespaceContextNoDefault(actionElement), null, xformsControls.getFunctionLibrary(), null); // Don't think we will get NaN with XPath 2.0... int insertionIndex = "NaN".equals(insertionIndexString) ? collectionToBeUpdated.size() : Integer.parseInt(insertionIndexString) ; // Adjust index to be in range if (insertionIndex > collectionToBeUpdated.size()) insertionIndex = collectionToBeUpdated.size(); if (insertionIndex < 1) insertionIndex = 1; // Find actual insertion point and insert final Element indexElement = (Element) collectionToBeUpdated.get(insertionIndex - 1); final Element parentElement = indexElement.getParent(); final List siblingElements = parentElement.elements(); final int actualIndex = siblingElements.indexOf(indexElement); // Prepare insertion of new element final int actualInsertionIndex; if ("after".equals(positionAttribute) || "NaN".equals(insertionIndexString)) { actualInsertionIndex = actualIndex + 1; } else if ("before".equals(positionAttribute)) { actualInsertionIndex = actualIndex; } else { throw new OXFException("Invalid 'position' attribute: " + positionAttribute + ". Must be either 'before' or 'after'."); } // "3. The index for any repeating sequence that is bound to the homogeneous // collection where the node was added is updated to point to the newly added node. // The indexes for inner nested repeat collections are re-initialized to // startindex." // Perform the insertion siblingElements.add(actualInsertionIndex, clonedElement); // Rebuild ControlsState xformsControls.rebuildCurrentControlsState(pipelineContext); final XFormsControls.ControlsState currentControlsState = xformsControls.getCurrentControlsState(); // Update repeat indexes // NOTE: The code below assumes that there are no nested repeats bound to node-sets that intersect currentControlsState.visitControlInfoFollowRepeats(pipelineContext, xformsControls, new XFormsControls.ControlInfoVisitorListener() { private XFormsControls.ControlInfo foundControl; public void startVisitControl(XFormsControls.ControlInfo controlInfo) { if (controlInfo instanceof XFormsControls.RepeatControlInfo) { // Found an xforms:repeat final XFormsControls.RepeatControlInfo repeatControlInfo = (XFormsControls.RepeatControlInfo) controlInfo; final String repeatId = repeatControlInfo.getOriginalId(); final List repeatNodeSet = xformsControls.getCurrentNodeset(); if (foundControl == null) { // We are not yet inside a matching xforms:repeat if (repeatNodeSet != null && repeatNodeSet.size() > 0) { // Find whether one node of the repeat node-set contains the inserted node int index = 1; for (Iterator i = repeatNodeSet.iterator(); i.hasNext(); index++) { final Element currentNode = (Element) i.next(); if (currentNode == clonedElement) { // Found xforms:repeat affected by the change // "The index for any repeating sequence that is bound // to the homogeneous collection where the node was // added is updated to point to the newly added node." currentControlsState.updateRepeatIndex(repeatId, index); // First step: set all children indexes to 0 final List nestedRepeatIds = currentControlsState.getNestedRepeatIds(xformsControls, repeatId); if (nestedRepeatIds != null) { for (Iterator j = nestedRepeatIds.iterator(); j.hasNext();) { final String nestedRepeatId = (String) j.next(); currentControlsState.updateRepeatIndex(nestedRepeatId, 0); } } foundControl = controlInfo; break; } } if (foundControl == null) { // Still not found a control. Make sure the bounds of this // xforms:repeat are correct for the rest of the visit. final int adjustedNewIndex; { final int newIndex = ((Integer) xformsControls.getCurrentControlsState().getRepeatIdToIndex().get(repeatId)).intValue(); // Adjust bounds if necessary if (newIndex < 1) adjustedNewIndex = 1; else if (newIndex > repeatNodeSet.size()) adjustedNewIndex = repeatNodeSet.size(); else adjustedNewIndex = newIndex; } // Set index xformsControls.getCurrentControlsState().updateRepeatIndex(repeatId, adjustedNewIndex); } } else { // Make sure the index is set to zero when the node-set is empty currentControlsState.updateRepeatIndex(repeatId, 0); } } else { // This is a child xforms:repeat of a matching xforms:repeat // Second step: update non-empty repeat indexes to the appropriate value // "The indexes for inner nested repeat collections are re-initialized to startindex." // NOTE: We do this, but we also adjust the index: // "The index for this repeating structure is initialized to the // value of startindex. If the initial startindex is less than 1 it // defaults to 1. If the index is greater than the initial node-set // then it defaults to the size of the node-set." if (repeatNodeSet != null && repeatNodeSet.size() > 0) { int newIndex = repeatControlInfo.getStartIndex(); if (newIndex < 1) newIndex = 1; if (newIndex > repeatNodeSet.size()) newIndex = repeatNodeSet.size(); currentControlsState.updateRepeatIndex(repeatId, newIndex); } else { // Make sure the index is set to zero when the node-set is empty // (although this should already have been done above by the // enclosing xforms:repeat) currentControlsState.updateRepeatIndex(repeatId, 0); } } } } public void endVisitControl(XFormsControls.ControlInfo controlInfo) { if (controlInfo instanceof XFormsControls.RepeatControlInfo) { if (foundControl == controlInfo) foundControl = null; } } }); // "4. If the insert is successful, the event xforms-insert is dispatched." containingDocument.dispatchEvent(pipelineContext, new XFormsInsertEvent(currentInstance, atAttribute)); if (actionContext != null) { // "XForms Actions that change the tree structure of instance data result in setting all four flags to true" actionContext.setAll(true); } else { // Binding context has to be reset as the controls have been updated setBindingContext(pipelineContext, containingDocument, eventHandlerContainer.getId(), actionElement); final XFormsModel model = xformsControls.getCurrentModel(); // Send events directly containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(model)); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); } } } else if (XFormsActions.XFORMS_DELETE_ACTION.equals(actionEventName)) { // 9.3.6 The delete Element final String atAttribute = actionElement.attributeValue("at"); // Set current binding in order to evaluate the current nodeset // "1. The homogeneous collection to be updated is determined by evaluating the Node Set Binding." final List collectionToUpdate = xformsControls.getCurrentNodeset(); if (collectionToUpdate.size() > 0) { // "If the collection is empty, the delete action has no effect." final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final Element elementToRemove; final List siblingElements; final int actualIndexInCollection; { final String deletionIndexString = currentInstance.evaluateXPathAsString(pipelineContext, xformsControls.getCurrentNodeset(), xformsControls.getCurrentPosition(), "round(" + atAttribute + ")", Dom4jUtils.getNamespaceContextNoDefault(actionElement), null, xformsControls.getFunctionLibrary(), null); // We will not get NaN with XPath 2.0... int tempDeletionIndex = "NaN".equals(deletionIndexString) ? collectionToUpdate.size() : Integer.parseInt(deletionIndexString) ; // Adjust index to be in range if (tempDeletionIndex > collectionToUpdate.size()) tempDeletionIndex = collectionToUpdate.size(); if (tempDeletionIndex < 1) tempDeletionIndex = 1; // Find actual deletion point elementToRemove = (Element) collectionToUpdate.get(tempDeletionIndex - 1); final Element parentElement = elementToRemove.getParent(); siblingElements = parentElement.elements(); actualIndexInCollection = siblingElements.indexOf(elementToRemove); } // Get current repeat indexes final Map previousRepeatIdToIndex = xformsControls.getCurrentControlsState().getRepeatIdToIndex(); // Rebuild ControlsState xformsControls.rebuildCurrentControlsState(pipelineContext); // Find updates to repeat indexes final Map repeatIndexUpdates = new HashMap(); final Map nestedRepeatIndexUpdates = new HashMap(); // NOTE: The code below assumes that there are no nested repeats bound to node-sets that intersect xformsControls.getCurrentControlsState().visitControlInfoFollowRepeats(pipelineContext, xformsControls, new XFormsControls.ControlInfoVisitorListener() { private XFormsControls.ControlInfo foundControl; private boolean reinitializeInner; public void startVisitControl(XFormsControls.ControlInfo controlInfo) { if (controlInfo instanceof XFormsControls.RepeatControlInfo) { // Found an xforms:repeat final XFormsControls.RepeatControlInfo repeatControlInfo = (XFormsControls.RepeatControlInfo) controlInfo; final String repeatId = repeatControlInfo.getOriginalId(); final List repeatNodeSet = xformsControls.getCurrentNodeset(); if (foundControl == null) { // We are not yet inside a matching xforms:repeat if (repeatNodeSet != null && repeatNodeSet.size() > 0) { // Find whether one node of the repeat node-set contains the inserted node for (Iterator i = repeatNodeSet.iterator(); i.hasNext();) { final Element currentNode = (Element) i.next(); if (currentNode == elementToRemove) { // Found xforms:repeat affected by the change final int newIndex; if (repeatNodeSet.size() == 1) { // Delete the last element of the collection: the index must be set to 0 newIndex = 0; reinitializeInner = false; } else { // Current index for this repeat final int currentIndex = ((Integer) previousRepeatIdToIndex.get(repeatId)).intValue(); // Index of deleted element for this repeat final int deletionIndexInRepeat = repeatNodeSet.indexOf(elementToRemove) + 1; if (currentIndex == deletionIndexInRepeat) { if (deletionIndexInRepeat == repeatNodeSet.size()) { // o "When the last remaining item in the collection is removed, // the index position becomes 0." // o "When the index was pointing to the deleted node, which was // the last item in the collection, the index will point to the new // last node of the collection and the index of inner repeats is // reinitialized." newIndex = currentIndex - 1; reinitializeInner = true; } else { // o "When the index was pointing to the deleted node, which was // not the last item in the collection, the index position is not // changed and the index of inner repeats is re-initialized." newIndex = currentIndex; reinitializeInner = true; } } else { // "The index should point to the same node // after a delete as it did before the delete" if (currentIndex < deletionIndexInRepeat) { newIndex = currentIndex; } else { newIndex = currentIndex - 1; } reinitializeInner = false; } } repeatIndexUpdates.put(repeatId, new Integer(newIndex)); // Handle children if (reinitializeInner) { // First step: set all children indexes to 0 final List nestedRepeatIds = xformsControls.getCurrentControlsState().getNestedRepeatIds(xformsControls, repeatId); if (nestedRepeatIds != null) { for (Iterator j = nestedRepeatIds.iterator(); j.hasNext();) { final String nestedRepeatId = (String) j.next(); repeatIndexUpdates.put(nestedRepeatId, new Integer(0)); nestedRepeatIndexUpdates.put(nestedRepeatId, ""); } } } foundControl = controlInfo; break; } } } } } } public void endVisitControl(XFormsControls.ControlInfo controlInfo) { if (controlInfo instanceof XFormsControls.RepeatControlInfo) { if (foundControl == controlInfo) foundControl = null; } } }); // Then only perform the deletion siblingElements.remove(actualIndexInCollection); // Update affected repeat index information if (repeatIndexUpdates.size() > 0) { for (Iterator i = repeatIndexUpdates.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); xformsControls.getCurrentControlsState().updateRepeatIndex((String) currentEntry.getKey(), ((Integer) currentEntry.getValue()).intValue()); } } // Adjust controls ids that could have gone out of bounds adjustRepeatIndexes(pipelineContext, xformsControls, nestedRepeatIndexUpdates); // "4. If the delete is successful, the event xforms-delete is dispatched." containingDocument.dispatchEvent(pipelineContext, new XFormsDeleteEvent(currentInstance, atAttribute)); if (actionContext != null) { // "XForms Actions that change the tree structure of instance data result in setting all four flags to true" actionContext.setAll(true); } else { // Binding context has to be reset as the controls have been updated setBindingContext(pipelineContext, containingDocument, eventHandlerContainer.getId(), actionElement); final XFormsModel model = xformsControls.getCurrentModel(); // Send events directly containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(model)); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); } } } else if (XFormsActions.XFORMS_SETINDEX_ACTION.equals(actionEventName)) { // 9.3.7 The setindex Element final String repeatId = actionElement.attributeValue("repeat"); final String indexXPath = actionElement.attributeValue("index"); final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final String indexString = currentInstance.evaluateXPathAsString(pipelineContext, xformsControls.getCurrentNodeset(), xformsControls.getCurrentPosition(), "string(number(" + indexXPath + "))", Dom4jUtils.getNamespaceContextNoDefault(actionElement), null, xformsControls.getFunctionLibrary(), null); executeSetindexAction(pipelineContext, containingDocument, repeatId, indexString); } else if (XFormsActions.XFORMS_SEND_ACTION.equals(actionEventName)) { // 10.1.10 The send Element // Find submission object final String submissionId = actionElement.attributeValue("submission"); if (submissionId == null) throw new OXFException("Missing mandatory submission attribute on xforms:send element."); final Object submission = containingDocument.getObjectById(pipelineContext, submissionId); if (submission == null || !(submission instanceof XFormsModelSubmission)) throw new OXFException("submission attribute on xforms:send element does not refer to existing xforms:submission element."); // Dispatch event to submission object containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitEvent((XFormsEventTarget) submission)); } else if (XFormsActions.XFORMS_DISPATCH_ACTION.equals(actionEventName)) { // 10.1.2 The dispatch Element // Mandatory attributes final String newEventName = actionElement.attributeValue("name"); if (newEventName == null) throw new OXFException("Missing mandatory name attribute on xforms:dispatch element."); final String newEventTargetId = actionElement.attributeValue("target"); if (newEventTargetId == null) throw new OXFException("Missing mandatory target attribute on xforms:dispatch element."); // Optional attributes final boolean newEventBubbles; { final String newEventBubblesString = actionElement.attributeValue("bubbles"); // "The default value depends on the definition of a custom event. For predefined events, this attribute has no effect." // The event factory makes sure that those values are ignored for predefined events newEventBubbles = Boolean.valueOf((newEventBubblesString == null) ? "true" : newEventBubblesString).booleanValue(); } final boolean newEventCancelable; { // "The default value depends on the definition of a custom event. For predefined events, this attribute has no effect." // The event factory makes sure that those values are ignored for predefined events final String newEventCancelableString = actionElement.attributeValue("cancelable"); newEventCancelable = Boolean.valueOf((newEventCancelableString == null) ? "true" : newEventCancelableString).booleanValue(); } // Find actual target final Object xformsEventTarget; { final Object tempXFormsEventTarget = (XFormsEventTarget) containingDocument.getObjectById(pipelineContext, newEventTargetId); if (tempXFormsEventTarget != null) { // Object with this id exists xformsEventTarget = tempXFormsEventTarget; } else { // Otherwise, try effective id final String newEventTargetEffectiveId = xformsControls.getCurrentControlsState().findEffectiveControlId(newEventTargetId); xformsEventTarget = (XFormsEventTarget) containingDocument.getObjectById(pipelineContext, newEventTargetEffectiveId); } } if (xformsEventTarget == null) throw new OXFException("Could not find actual event target on xforms:dispatch element for id: " + newEventTargetId); if (xformsEventTarget instanceof XFormsEventTarget) { // This can be anything containingDocument.dispatchEvent(pipelineContext, XFormsEventFactory.createEvent(newEventName, (XFormsEventTarget) xformsEventTarget, newEventBubbles, newEventCancelable)); } else { throw new OXFException("Invalid event target for id: " + newEventTargetId); } } else if (XFormsActions.XFORMS_MESSAGE_ACTION.equals(actionEventName)) { // 10.1.12 The message Element final String level; { final String levelAttribute = actionElement.attributeValue("level");; if (levelAttribute == null) throw new OXFException("xforms:message element is missing mandatory 'level' attribute."); final QName levelQName = Dom4jUtils.extractAttributeValueQName(actionElement, "level"); if (levelQName.getNamespacePrefix().equals("")) { if (!("ephemeral".equals(levelAttribute) || "modeless".equals(levelAttribute) || "modal".equals(levelAttribute))) { throw new OXFException("xforms:message element's 'level' attribute must have value: 'ephemeral'|'modeless'|'modal'|QName-but-not-NCName."); } level = levelAttribute; } else { level = "{" + levelQName.getNamespaceURI() + "}" + levelQName.getName(); } } final String src = actionElement.attributeValue("src"); final String ref = actionElement.attributeValue("ref"); String message = null; // Try to get message from single-node binding if any if (ref != null) { final Node currentNode = xformsControls.getCurrentSingleNode(); if (currentNode != null) message = XFormsInstance.getValueForNode(currentNode); } // Try to get message from linking attribute boolean linkException = false; if (message == null && src != null) { try { message = XFormsUtils.retrieveSrcValue(src); } catch (IOException e) { containingDocument.dispatchEvent(pipelineContext, new XFormsLinkErrorEvent(xformsControls.getCurrentModel(), src, null, e)); linkException = true; } } if (!linkException) { // Try to get inline message if (message == null) { message = actionElement.getStringValue(); } if (message != null) { // Store message for sending to client containingDocument.addClientMessage(message, level); // NOTE: In the future, we *may* want to save and resume the event state before and // after displaying a message, in order to possibly provide a behavior which is more // consistent with what users may expect regarding actions executed after // xforms:message. } } } else if (XFormsActions.XFORMS_SETFOCUS_ACTION.equals(actionEventName)) { // 10.1.7 The setfocus Element final String controlId = actionElement.attributeValue("control"); if (controlId == null) throw new OXFException("Missing mandatory 'control' attribute on xforms:control element."); final String effectiveControlId = xformsControls.getCurrentControlsState().findEffectiveControlId(controlId); if (effectiveControlId == null) throw new OXFException("Could not find actual control on xforms:setfocus element for control: " + controlId); final Object controlObject = containingDocument.getObjectById(pipelineContext, effectiveControlId); if (!(controlObject instanceof XFormsControls.ControlInfo)) throw new OXFException("xforms:setfocus attribute 'control' must refer to a control: " + controlId); containingDocument.dispatchEvent(pipelineContext, new XFormsFocusEvent((XFormsEventTarget) controlObject)); } else if (XFormsActions.XFORMS_LOAD_ACTION.equals(actionEventName)) { // 10.1.8 The load Element final String ref = actionElement.attributeValue("ref"); final String resource = actionElement.attributeValue("resource"); final String showAttribute; { final String rawShowAttribute = actionElement.attributeValue("show"); showAttribute = (rawShowAttribute == null) ? "replace" : rawShowAttribute; if (!("replace".equals(showAttribute) || "new".equals(showAttribute))) throw new OXFException("Invalid value for 'show' attribute on xforms:load element: " + showAttribute); } final boolean doReplace = "replace".equals(showAttribute); final String target = actionElement.attributeValue(XFormsConstants.XXFORMS_TARGET_QNAME); final String urlType = actionElement.attributeValue(new QName("url-type", new Namespace("f", XMLConstants.OPS_FORMATTING_URI))); if (ref != null && resource != null) { // "If both are present, the action has no effect." // NOP } else if (ref != null) { // Use single-node binding final Node currentNode = xformsControls.getCurrentSingleNode(); if (currentNode != null) { final String value = XFormsInstance.getValueForNode(currentNode); resolveLoadValue(containingDocument, pipelineContext, actionElement, doReplace, value, target, urlType); } else { // Should we do this here? containingDocument.dispatchEvent(pipelineContext, new XFormsLinkErrorEvent(xformsControls.getCurrentModel(), "", null, null)); } // NOTE: We are supposed to throw an xforms-link-error in case of failure. Can we do it? } else if (resource != null) { // Use linking attribute resolveLoadValue(containingDocument, pipelineContext, actionElement, doReplace, resource, target, urlType); // NOTE: We are supposed to throw an xforms-link-error in case of failure. Can we do it? } else { // "Either the single node binding attributes, pointing to a URI in the instance // data, or the linking attributes are required." throw new OXFException("Missing 'resource' or 'ref' attribute on xforms:load element."); } } else { throw new OXFException("Invalid action requested: " + actionEventName); } }
52783 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52783/66acaed95d3b3b6086c41954e56da6575fb0d832/XFormsActionInterpreter.java/buggy/src/java/org/orbeon/oxf/xforms/action/XFormsActionInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1803, 12, 6385, 13671, 1042, 5873, 1042, 16, 514, 27729, 16, 1139, 18529, 16402, 2170, 30441, 2170, 16, 3010, 1301, 1046, 16, 4382, 1042, 1301, 1042, 13, 288, 3639, 368, 2073, 716, 732, 22413, 326, 1301, 930, 3639, 727, 514, 1301, 3402, 3098, 273, 1301, 1046, 18, 588, 3402, 3098, 5621, 3639, 309, 16051, 60, 18529, 2918, 18, 60, 4983, 55, 67, 11368, 67, 3098, 18, 14963, 12, 1128, 3402, 3098, 3719, 288, 5411, 604, 394, 531, 60, 42, 503, 2932, 1941, 1301, 1981, 30, 315, 397, 1301, 3402, 3098, 1769, 3639, 289, 3639, 368, 1000, 5085, 819, 3639, 444, 5250, 1042, 12, 14511, 1042, 16, 4191, 2519, 16, 30441, 2170, 18, 26321, 9334, 1301, 1046, 1769, 3639, 727, 514, 1301, 24320, 273, 1301, 1046, 18, 17994, 5621, 3639, 309, 261, 60, 18529, 2081, 18, 4901, 18, 291, 2829, 1526, 10756, 5411, 1139, 18529, 2081, 18, 4901, 18, 4148, 2932, 60, 18529, 300, 11274, 1301, 30, 315, 397, 1301, 24320, 1769, 3639, 309, 261, 60, 18529, 6100, 18, 60, 4983, 55, 67, 4043, 4051, 67, 12249, 18, 14963, 12, 1128, 24320, 3719, 288, 5411, 368, 1728, 18, 21, 18, 29, 1021, 444, 1132, 3010, 5411, 368, 619, 9741, 30, 542, 1132, 5411, 727, 514, 460, 273, 1301, 1046, 18, 4589, 620, 2932, 1132, 8863, 5411, 727, 514, 913, 273, 1301, 1046, 18, 588, 19733, 5621, 5411, 727, 1139, 18529, 1442, 783, 1442, 273, 619, 9741, 16795, 18, 588, 3935, 1442, 5621, 5411, 727, 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, 1803, 12, 6385, 13671, 1042, 5873, 1042, 16, 514, 27729, 16, 1139, 18529, 16402, 2170, 30441, 2170, 16, 3010, 1301, 1046, 16, 4382, 1042, 1301, 1042, 13, 288, 3639, 368, 2073, 716, 732, 22413, 326, 1301, 930, 3639, 727, 514, 1301, 3402, 3098, 273, 1301, 1046, 18, 588, 3402, 3098, 5621, 3639, 309, 16051, 60, 18529, 2918, 18, 60, 4983, 55, 67, 11368, 67, 3098, 18, 14963, 12, 1128, 3402, 3098, 3719, 288, 5411, 604, 394, 531, 60, 42, 503, 2932, 1941, 1301, 1981, 30, 315, 397, 1301, 3402, 3098, 1769, 3639, 289, 3639, 368, 1000, 5085, 819, 3639, 444, 5250, 1042, 12, 14511, 1042, 16, 4191, 2519, 16, 30441, 2170, 18, 26321, 9334, 1301, 2 ]
int offset = fpOffset - value; long lbits = VM_Magic.getLongAtOffset(stack, offset);
long lbits = VM_Magic.getLongAtOffset(stack, fpOffset.sub(value));
private static double getDoubleFrom(int vtype, int value, byte[] stack, int fpOffset, OSR_TempRegisters registers) { if (vtype == PHYREG) { return registers.fprs[value - FIRST_DOUBLE]; } else if (vtype == SPILL) { int offset = fpOffset - value; long lbits = VM_Magic.getLongAtOffset(stack, offset); return VM_Magic.longBitsAsDouble(lbits); //KV:TODO: why not use getDoubleAtOffset ??? } else { if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); return -1.0; } }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/3a9aeeb7f964774e6adc285d6526603ac1570e14/OSR_OptExecStateExtractor.java/clean/rvm/src/vm/arch/intel/executionState/OSR_OptExecStateExtractor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1645, 16097, 1265, 12, 474, 26504, 16, 4766, 1377, 509, 460, 16, 4766, 1377, 1160, 8526, 2110, 16, 4766, 1377, 509, 4253, 2335, 16, 4766, 1377, 5932, 54, 67, 7185, 10277, 10285, 13, 288, 565, 309, 261, 90, 723, 422, 15490, 61, 5937, 13, 288, 1377, 327, 10285, 18, 74, 683, 87, 63, 1132, 300, 21786, 67, 17088, 15533, 565, 289, 469, 309, 261, 90, 723, 422, 20955, 4503, 13, 288, 1377, 509, 1384, 273, 4253, 2335, 300, 460, 31, 1377, 1525, 328, 6789, 273, 8251, 67, 19289, 18, 588, 3708, 861, 2335, 12, 3772, 16, 1384, 1769, 1377, 327, 8251, 67, 19289, 18, 5748, 6495, 1463, 5265, 12, 80, 6789, 1769, 1377, 368, 16945, 30, 6241, 30, 11598, 486, 999, 16097, 861, 2335, 5317, 35, 565, 289, 469, 288, 1377, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 8251, 6315, 11231, 12, 7397, 18, 4400, 67, 29416, 15023, 1769, 1377, 327, 300, 21, 18, 20, 31, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1645, 16097, 1265, 12, 474, 26504, 16, 4766, 1377, 509, 460, 16, 4766, 1377, 1160, 8526, 2110, 16, 4766, 1377, 509, 4253, 2335, 16, 4766, 1377, 5932, 54, 67, 7185, 10277, 10285, 13, 288, 565, 309, 261, 90, 723, 422, 15490, 61, 5937, 13, 288, 1377, 327, 10285, 18, 74, 683, 87, 63, 1132, 300, 21786, 67, 17088, 15533, 565, 289, 469, 309, 261, 90, 723, 422, 20955, 4503, 13, 288, 1377, 509, 1384, 273, 4253, 2335, 300, 460, 31, 1377, 1525, 328, 6789, 273, 8251, 67, 19289, 18, 588, 3708, 861, 2335, 12, 3772, 16, 1384, 1769, 1377, 327, 8251, 67, 19289, 18, 5748, 6495, 1463, 5265, 12, 80, 6789, 1769, 1377, 368, 16945, 30, 2 ]
if (!init) return;
if (!init) { return; }
static public void shutdown() { if (!init) return; disposeWorkbenchColors(); Iterator iter = colorMap.values().iterator(); while (iter.hasNext()) { Color clr = (Color) iter.next(); if (clr != null) { clr.dispose(); } } colorMap.clear(); systemColorMap.clear(); init = false; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/3a23c3b9bac4db696a0452560047155775a707b7/R21Colors.java/buggy/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/r21/R21Colors.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 918, 5731, 1435, 288, 3639, 309, 16051, 2738, 13, 5411, 327, 31, 3639, 15825, 2421, 22144, 12570, 5621, 3639, 4498, 1400, 273, 2036, 863, 18, 2372, 7675, 9838, 5621, 3639, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 5411, 5563, 927, 86, 273, 261, 2957, 13, 1400, 18, 4285, 5621, 5411, 309, 261, 830, 86, 480, 446, 13, 288, 7734, 927, 86, 18, 2251, 4150, 5621, 5411, 289, 3639, 289, 3639, 2036, 863, 18, 8507, 5621, 3639, 2619, 2957, 863, 18, 8507, 5621, 3639, 1208, 273, 629, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 918, 5731, 1435, 288, 3639, 309, 16051, 2738, 13, 5411, 327, 31, 3639, 15825, 2421, 22144, 12570, 5621, 3639, 4498, 1400, 273, 2036, 863, 18, 2372, 7675, 9838, 5621, 3639, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 5411, 5563, 927, 86, 273, 261, 2957, 13, 1400, 18, 4285, 5621, 5411, 309, 261, 830, 86, 480, 446, 13, 288, 7734, 927, 86, 18, 2251, 4150, 5621, 5411, 289, 3639, 289, 3639, 2036, 863, 18, 8507, 5621, 3639, 2619, 2957, 863, 18, 8507, 5621, 3639, 1208, 273, 629, 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 ]
sehendeBiene.gibInformation().klonen());
returnInfo);
public synchronized EinfacheKarte ausschnittErstellen(long aktCode) { if (bienenNachAC.containsKey(new Long(aktCode))) { Biene sehendeBiene = bieneSuchen(aktCode); Hashtable alleSichtbarenFelder = new Hashtable(); Hashtable einfacheSichtbareFelder = new Hashtable(); Feld aktuellesFeld = feldSuchen(sehendeBiene.gibPosition()); //Sichtweite berechnen int sichtweite; if (sehendeBiene.gibAmBoden()) { sichtweite = aktuellesFeld.gibSichtweiteAmBoden(); } else { sichtweite = aktuellesFeld.gibSichtweiteInDerLuft(); } //Alle sichtbaren Felder in alleFelder eintragen rekursivNachbarfelderEintragen( sichtweite, aktuellesFeld, alleSichtbarenFelder); //Felder konvertieren Enumeration aSiFelder = alleSichtbarenFelder.elements(); while (aSiFelder.hasMoreElements()) { Feld feldTmp = (Feld) aSiFelder.nextElement(); if (feldTmp instanceof Blume) { einfacheSichtbareFelder.put( feldTmp.gibPosition(), konvertiereBlume((Blume) feldTmp)); } else if (feldTmp instanceof Bienenstock) { einfacheSichtbareFelder.put( feldTmp.gibPosition(), konvertiereBienenstock((Bienenstock) feldTmp)); } else { einfacheSichtbareFelder.put( feldTmp.gibPosition(), konvertierePlatz((Platz) feldTmp)); } } //Nachbarfelder setzen Enumeration eSiFelder = einfacheSichtbareFelder.elements(); //System.out.println("NEUE WHILE"); //ber alle sichtbaren Felder gehen while (eSiFelder.hasMoreElements()) { //System.out.println("am anfang der while"); EinfachesFeld eFeldTmp = (EinfachesFeld) eSiFelder.nextElement(); Iterator nachbarn = ((HashSet) feldSuchen( eFeldTmp.gibPosition()).gibNachbarfelder()).iterator(); //die Hashtable, die eingetragen wird HashMap nachbarfelder = new HashMap(); //System.out.println("vor der inneren while"); //ber alle Nachbarfelder gehen while (nachbarn.hasNext()) { Feld feldTmp = (Feld) nachbarn.next(); //System.out.println("neues feldtmp gesetzt"); Koordinate koordTmp = null; if (feldTmp == null) { System.out.println("feldTmp == null"); } else { koordTmp = feldTmp.gibPosition(); } if (einfacheSichtbareFelder.size() == 0) { System.out.println("einfSichtbFelder.size == 0"); } nachbarfelder.put( koordTmp, einfacheSichtbareFelder.get(koordTmp)); //System.out.println("zu nachbarn hinzugefuegt"); } //System.out.println("nach der inneren while"); //Nachbarfelder eintragen eFeldTmp.setzeNachbarfelder(nachbarfelder); //System.out.println("nachbarfelder gesetzt"); } EinfacheBiene einfachSelbst; /*if (sehendeBiene == null) { System.out.println("sehendeBiene == null"); }*/ if (sehendeBiene.gibListenKennung() == Konstanten.ZUSCHAUEND) { //System.out.println("biene zuschauend"); einfachSelbst = new EinfacheBiene( spielmeister.gibRundennummer(), konvertiereZustand(sehendeBiene.gibListenKennung()), sehendeBiene.gibBienenID(), sehendeBiene.gibBienenvolkID(), new Koordinate( sehendeBiene.gibPosition().gibXPosition(), sehendeBiene.gibPosition().gibYPosition()), sehendeBiene.gibAktionsCode(), sehendeBiene.gibGeladeneHonigmenge(), sehendeBiene.gibGeladeneNektarmenge(), sehendeBiene.gibInformation().klonen()); } else { //System.out.println("nicht zuschauend"); einfachSelbst = new EinfacheBiene( spielmeister.gibRundennummer(), konvertiereZustand(sehendeBiene.gibListenKennung()), sehendeBiene.gibBienenID(), sehendeBiene.gibBienenvolkID(), new Koordinate( sehendeBiene.gibPosition().gibXPosition(), sehendeBiene.gibPosition().gibYPosition()), sehendeBiene.gibAktionsCode(), sehendeBiene.gibGeladeneHonigmenge(), sehendeBiene.gibGeladeneNektarmenge()); } //System.out.println("vor dem zurueckgeben"); //einface Karte instanziieren und zurckgeben return new EinfacheKarte( einfachSelbst, einfacheSichtbareFelder ); } else { System.out.println("ungueltiger aktCode: " + aktCode); return null;} }
12198 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12198/65767443b3b38c2bacb742c0be2b6fe63abd73a7/Karte.java/buggy/branches/eugen/source/scenarios/bienenstock/umgebung/Karte.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 512, 10625, 807, 47, 485, 73, 279, 5567, 343, 82, 305, 88, 41, 16114, 1165, 275, 12, 5748, 22371, 1085, 13, 288, 7734, 309, 261, 13266, 275, 275, 50, 497, 2226, 18, 12298, 653, 12, 2704, 3407, 12, 581, 88, 1085, 20349, 288, 13491, 16682, 4009, 695, 76, 275, 323, 18808, 4009, 273, 10054, 4009, 5464, 275, 12, 581, 88, 1085, 1769, 5411, 18559, 524, 298, 55, 335, 647, 70, 7892, 42, 488, 264, 273, 394, 18559, 5621, 5411, 18559, 425, 10625, 807, 55, 335, 647, 70, 834, 42, 488, 264, 273, 394, 18559, 5621, 13491, 478, 488, 22371, 20317, 1040, 42, 488, 273, 284, 488, 5464, 275, 12, 307, 76, 275, 323, 18808, 4009, 18, 75, 495, 2555, 10663, 13491, 368, 55, 335, 647, 1814, 1137, 324, 822, 343, 82, 275, 5411, 509, 272, 335, 647, 1814, 1137, 31, 5411, 309, 261, 307, 76, 275, 323, 18808, 4009, 18, 75, 495, 9864, 38, 369, 275, 10756, 288, 7734, 272, 335, 647, 1814, 1137, 273, 22371, 20317, 1040, 42, 488, 18, 75, 495, 55, 335, 647, 1814, 1137, 9864, 38, 369, 275, 5621, 5411, 289, 469, 288, 7734, 272, 335, 647, 1814, 1137, 273, 22371, 20317, 1040, 42, 488, 18, 75, 495, 55, 335, 647, 1814, 1137, 382, 12041, 48, 696, 88, 5621, 5411, 289, 13491, 368, 1067, 298, 272, 335, 647, 70, 7892, 478, 488, 264, 316, 524, 298, 42, 488, 264, 16315, 313, 346, 275, 5411, 283, 79, 25152, 427, 50, 497, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 512, 10625, 807, 47, 485, 73, 279, 5567, 343, 82, 305, 88, 41, 16114, 1165, 275, 12, 5748, 22371, 1085, 13, 288, 7734, 309, 261, 13266, 275, 275, 50, 497, 2226, 18, 12298, 653, 12, 2704, 3407, 12, 581, 88, 1085, 20349, 288, 13491, 16682, 4009, 695, 76, 275, 323, 18808, 4009, 273, 10054, 4009, 5464, 275, 12, 581, 88, 1085, 1769, 5411, 18559, 524, 298, 55, 335, 647, 70, 7892, 42, 488, 264, 273, 394, 18559, 5621, 5411, 18559, 425, 10625, 807, 55, 335, 647, 70, 834, 42, 488, 264, 273, 394, 18559, 5621, 13491, 478, 488, 22371, 20317, 1040, 42, 488, 273, 284, 488, 5464, 275, 12, 307, 76, 275, 323, 18808, 4009, 18, 2 ]
System.out.println( "Exit Rss Channel Action" );
if(debug) System.out.println( "Exit Rss Channel Action" );
public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { System.out.println( "Enter Rss Channel Action" ); // Try to retrieve tile context ComponentContext context = ComponentContext.getContext( request ); if( context == null ) { throw new ServletException( "This action must be called by a Tile, not directly" ); } ActionErrors errors = new ActionErrors(); org.apache.commons.digester.rss.Channel channel = null; // -- Retrieve parameters -- // Urls can come from a list, or from a single attribute. List channels = (List)context.getAttribute( CHANNEL_URLS_KEY ); if( channels == null ) { Object url = context.getAttribute( CHANNEL_URL_KEY ); channels = new ArrayList(1); channels.add(url); } //channels.add("http://www.newsforge.com/newsforge.rss"); //channels.add("http://xmlhack.com/rss.php"); //channels.add("http://lwn.net/headlines/rss"); // channels.trimToSize(); System.out.println( "urls count" + channels.size() ) ; // -- Loop through channels -- ArrayList channelBeans = new ArrayList(channels.size()); try { for (int i=0; i<channels.size(); i++) { RSSDigester digester = new RSSDigester(); Channel obj = (Channel)digester.parse((String)channels.get(i)); System.out.println( "Channel:" + obj) ; //System.out.println( "Channel.items:" + obj.getI) ; channelBeans.add(obj); } } catch (Throwable t) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("rss.access.error")); servlet.log(t.toString()); } // -- Handle Errors --- if (!errors.empty()) { saveErrors(request, errors); if (mapping.getInput()!=null) return (new ActionForward(mapping.getInput())); // If no input page, use error forwarding System.out.println( "Exit Rss Channel Action : error" ); return (mapping.findForward("error")); } // -- Save Bean, and Continue --- System.out.println( "Exit Rss Channel Action" ); //request.setAttribute(CHANNELS_KEY,channelBeans); // Use Tile context to pass channels context.putAttribute( CHANNELS_KEY,channelBeans); return (mapping.findForward("continue")); } // ---- End perform ----
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/ba15093f03daea16ccea6b3eaf48e2b03f603ab7/Channels.java/clean/tiles/src/tutorial/org/apache/struts/example/tiles/rssChannel/Channels.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 3073, 12, 1803, 3233, 2874, 16, 4766, 4382, 1204, 646, 16, 4766, 9984, 590, 16, 4766, 12446, 766, 13, 3639, 1216, 1860, 16, 16517, 288, 565, 2332, 18, 659, 18, 8222, 12, 315, 10237, 534, 1049, 5307, 4382, 6, 11272, 1850, 368, 6161, 358, 4614, 4769, 819, 565, 5435, 1042, 819, 273, 5435, 1042, 18, 29120, 12, 590, 11272, 565, 309, 12, 819, 422, 446, 262, 1377, 288, 1377, 604, 394, 16517, 12, 315, 2503, 1301, 1297, 506, 2566, 635, 279, 13791, 16, 486, 5122, 6, 11272, 1377, 289, 3639, 4382, 4229, 1334, 273, 394, 4382, 4229, 5621, 3639, 2358, 18, 19211, 18, 6054, 87, 18, 5606, 7654, 18, 25151, 18, 2909, 1904, 273, 446, 31, 3639, 368, 1493, 10708, 1472, 1493, 3639, 368, 6816, 87, 848, 12404, 628, 279, 666, 16, 578, 628, 279, 2202, 1566, 18, 3639, 987, 5750, 273, 261, 682, 13, 2472, 18, 588, 1499, 12, 27417, 67, 1785, 55, 67, 3297, 11272, 3639, 309, 12, 5750, 422, 446, 262, 1850, 288, 1850, 1033, 880, 273, 819, 18, 588, 1499, 12, 27417, 67, 1785, 67, 3297, 11272, 1850, 5750, 273, 394, 2407, 12, 21, 1769, 1850, 5750, 18, 1289, 12, 718, 1769, 1850, 289, 5411, 368, 9114, 18, 1289, 2932, 2505, 2207, 5591, 18, 18443, 1884, 908, 18, 832, 19, 18443, 1884, 908, 18, 25151, 8863, 5411, 368, 9114, 18, 1289, 2932, 2505, 2207, 2902, 76, 484, 18, 832, 19, 25151, 18, 2684, 8863, 5411, 368, 9114, 18, 1289, 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, 4382, 8514, 3073, 12, 1803, 3233, 2874, 16, 4766, 4382, 1204, 646, 16, 4766, 9984, 590, 16, 4766, 12446, 766, 13, 3639, 1216, 1860, 16, 16517, 288, 565, 2332, 18, 659, 18, 8222, 12, 315, 10237, 534, 1049, 5307, 4382, 6, 11272, 1850, 368, 6161, 358, 4614, 4769, 819, 565, 5435, 1042, 819, 273, 5435, 1042, 18, 29120, 12, 590, 11272, 565, 309, 12, 819, 422, 446, 262, 1377, 288, 1377, 604, 394, 16517, 12, 315, 2503, 1301, 1297, 506, 2566, 635, 279, 13791, 16, 486, 5122, 6, 11272, 1377, 289, 3639, 4382, 4229, 1334, 273, 394, 4382, 4229, 5621, 3639, 2358, 18, 19211, 18, 6054, 87, 18, 5606, 7654, 18, 25151, 18, 2909, 1904, 273, 446, 2 ]
{ return true; }
{ return true; }
public boolean nullsAreSortedAtEnd() throws SQLException { return true; }
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/6a061da272f04e1463864065f87f1f3fd61d6162/DatabaseMetaData.java/clean/src/interfaces/jdbc/postgresql/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 27778, 4704, 11739, 861, 1638, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 638, 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 ]
[ 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 27778, 4704, 11739, 861, 1638, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 638, 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 ]
Reader reader = new WhiteSpaceFilter(new StringReader("Test test")); assertEquals("Test test", StringUtil.fromReader(reader));
assertFilterString("Test frob", "Test frob"); assertFilterString(" Test frob ", " Test frob ");
public void testDoesntCollapseSingleSpace() throws IOException { Reader reader = new WhiteSpaceFilter(new StringReader("Test test")); assertEquals("Test test", StringUtil.fromReader(reader)); }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/0418a89b51dc6662e200d5915cd31ca83affc74f/TestWhiteSpaceFilter.java/clean/test/src/org/lockss/filter/TestWhiteSpaceFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 10154, 496, 31715, 5281, 3819, 1435, 1216, 1860, 288, 565, 5393, 2949, 273, 394, 30233, 3819, 1586, 12, 2704, 26227, 2932, 4709, 1842, 7923, 1769, 565, 1815, 8867, 2932, 4709, 1842, 3113, 14205, 18, 2080, 2514, 12, 10530, 10019, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 10154, 496, 31715, 5281, 3819, 1435, 1216, 1860, 288, 565, 5393, 2949, 273, 394, 30233, 3819, 1586, 12, 2704, 26227, 2932, 4709, 1842, 7923, 1769, 565, 1815, 8867, 2932, 4709, 1842, 3113, 14205, 18, 2080, 2514, 12, 10530, 10019, 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 ]
-1, -1, -1, -1, 356,
-1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356,
private static final short[] yyCheck4() { return new short[] { -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, 33, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, 33, -1, 339, 340, 341, 342, -1, 344, 41, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, 33, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 336, -1, -1, 339, 340, 341, 342, -1, 10, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, 58, 59, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, 60, -1, 62, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, 346, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, 40, -1, 42, 43, -1, 45, 344, 47, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, 124, 47, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 257, 258, 259, 260, 261, 262, 263, 264, -1, 344, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, -1, -1, 42, 43, -1, 45, 344, 47, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, 60, -1, 62, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, -1, -1, 42, 43, -1, 45, 344, 47, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, -1, -1, 42, 43, -1, 45, 344, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, 257, 258, 259, -1, 261, -1, -1, 344, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 333, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, }; }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 6647, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 225, 9131, 23, 16, 225, 576, 5193, 16, 225, 576, 7140, 16, 225, 576, 5292, 16, 225, 9131, 27, 16, 225, 576, 5482, 16, 225, 576, 6675, 16, 5411, 300, 21, 16, 282, 300, 21, 16, 225, 576, 9975, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 225, 576, 10689, 16, 225, 31360, 16, 6647, 11631, 16, 225, 26403, 16, 225, 22072, 16, 225, 890, 4630, 16, 225, 27499, 16, 225, 5196, 25, 16, 225, 5196, 26, 16, 225, 5196, 27, 16, 225, 5196, 28, 16, 225, 5196, 29, 16, 6647, 890, 2163, 16, 225, 890, 2499, 16, 282, 300, 21, 16, 225, 890, 3437, 16, 225, 890, 3461, 16, 282, 300, 21, 16, 225, 890, 2313, 16, 225, 890, 4033, 16, 282, 300, 21, 16, 282, 300, 21, 16, 5411, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 225, 28245, 16, 5411, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 225, 890, 5718, 16, 282, 13159, 16, 282, 300, 21, 16, 225, 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, 760, 727, 3025, 8526, 9016, 1564, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 6647, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 225, 9131, 23, 16, 225, 576, 5193, 16, 225, 576, 7140, 16, 225, 576, 5292, 16, 225, 9131, 27, 16, 225, 576, 5482, 16, 225, 576, 6675, 16, 5411, 300, 21, 16, 282, 300, 21, 16, 225, 576, 9975, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 225, 576, 10689, 16, 225, 31360, 16, 6647, 11631, 16, 225, 26403, 16, 225, 22072, 16, 225, 890, 4630, 16, 225, 27499, 16, 225, 5196, 25, 16, 225, 5196, 26, 2 ]
for (int j = 0; j < testMethods.length; j++) { PsiMethod psiMethod = testMethods[j];
for (PsiMethod psiMethod : testMethods) {
private void addTestcaseEntries(PsiClass testClass) { RefClass refClass = (RefClass)getRefManager().getReference(testClass); getEntryPointsManager().addEntryPoint(refClass, false); PsiMethod[] testMethods = testClass.getMethods(); for (int j = 0; j < testMethods.length; j++) { PsiMethod psiMethod = testMethods[j]; if (psiMethod.hasModifierProperty(PsiModifier.PUBLIC) && !psiMethod.hasModifierProperty(PsiModifier.ABSTRACT) && psiMethod.getName().startsWith("test") || "suite".equals(psiMethod.getName())) { RefMethod refMethod = (RefMethod)getRefManager().getReference(psiMethod); getEntryPointsManager().addEntryPoint(refMethod, false); } } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/44b1444ef611a7223c4ad1fa4fc69f6017017008/DeadCodeInspection.java/clean/source/com/intellij/codeInspection/deadCode/DeadCodeInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 527, 4709, 3593, 5400, 12, 52, 7722, 797, 1842, 797, 13, 288, 565, 3941, 797, 1278, 797, 273, 261, 1957, 797, 13, 588, 1957, 1318, 7675, 588, 2404, 12, 3813, 797, 1769, 565, 15428, 5636, 1318, 7675, 1289, 1622, 2148, 12, 1734, 797, 16, 629, 1769, 565, 453, 7722, 1305, 8526, 1842, 4712, 273, 1842, 797, 18, 588, 4712, 5621, 565, 364, 261, 474, 525, 273, 374, 31, 525, 411, 1842, 4712, 18, 2469, 31, 525, 27245, 288, 1377, 453, 7722, 1305, 23921, 1305, 273, 1842, 4712, 63, 78, 15533, 1377, 309, 261, 24275, 1305, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 14939, 13, 597, 1850, 401, 24275, 1305, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 26756, 13, 597, 1850, 23921, 1305, 18, 17994, 7675, 17514, 1190, 2932, 3813, 7923, 747, 315, 30676, 9654, 14963, 12, 24275, 1305, 18, 17994, 1435, 3719, 288, 3639, 3941, 1305, 1278, 1305, 273, 261, 1957, 1305, 13, 588, 1957, 1318, 7675, 588, 2404, 12, 24275, 1305, 1769, 3639, 15428, 5636, 1318, 7675, 1289, 1622, 2148, 12, 1734, 1305, 16, 629, 1769, 1377, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 527, 4709, 3593, 5400, 12, 52, 7722, 797, 1842, 797, 13, 288, 565, 3941, 797, 1278, 797, 273, 261, 1957, 797, 13, 588, 1957, 1318, 7675, 588, 2404, 12, 3813, 797, 1769, 565, 15428, 5636, 1318, 7675, 1289, 1622, 2148, 12, 1734, 797, 16, 629, 1769, 565, 453, 7722, 1305, 8526, 1842, 4712, 273, 1842, 797, 18, 588, 4712, 5621, 565, 364, 261, 474, 525, 273, 374, 31, 525, 411, 1842, 4712, 18, 2469, 31, 525, 27245, 288, 1377, 453, 7722, 1305, 23921, 1305, 273, 1842, 4712, 63, 78, 15533, 1377, 309, 261, 24275, 1305, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 14939, 13, 597, 1850, 401, 24275, 1305, 18, 5332, 9829, 1396, 12, 2 ]
boolean defaultSession = true; session = "default";
boolean restore = true;
public static void main(String[] args) { // for developers: run 'jedit 0' to get extensive logging int level = Log.WARNING; if(args.length >= 1) { String levelStr = args[0]; if(levelStr.length() == 1 && Character.isDigit( levelStr.charAt(0))) { level = Integer.parseInt(levelStr); args[0] = null; } } // Parse command line boolean endOpts = false; boolean newView = false; settingsDirectory = MiscUtilities.constructPath( System.getProperty("user.home"),".jedit"); String portFile = "server"; boolean defaultSession = true; session = "default"; boolean showSplash = true; boolean showGUI = true; for(int i = 0; i < args.length; i++) { String arg = args[i]; if(arg == null) continue; else if(arg.length() == 0) args[i] = null; else if(arg.startsWith("-") && !endOpts) { if(arg.equals("--")) endOpts = true; else if(arg.equals("-usage")) { version(); System.err.println(); usage(); System.exit(1); } else if(arg.equals("-version")) { version(); System.exit(1); } else if(arg.equals("-nosettings")) settingsDirectory = null; else if(arg.startsWith("-settings=")) settingsDirectory = arg.substring(10); else if(arg.startsWith("-noserver")) portFile = null; else if(arg.startsWith("-server=")) portFile = arg.substring(8); else if(arg.startsWith("-background")) background = true; else if(arg.startsWith("-nogui")) showGUI = false; else if(arg.equals("-nosession")) session = null; else if(arg.startsWith("-session=")) { session = arg.substring(9); defaultSession = false; } else if(arg.equals("-nosplash")) showSplash = false; else if(arg.equals("-newview")) newView = true; else { System.err.println("Unknown option: " + arg); usage(); System.exit(1); } args[i] = null; } } if(settingsDirectory != null && portFile != null) portFile = MiscUtilities.constructPath(settingsDirectory,portFile); else portFile = null; if(session != null) session = Sessions.createSessionFileName(session); // Try connecting to another running jEdit instance String userDir = System.getProperty("user.dir"); if(portFile != null && new File(portFile).exists()) { int port, key; try { BufferedReader in = new BufferedReader(new FileReader(portFile)); port = Integer.parseInt(in.readLine()); key = Integer.parseInt(in.readLine()); in.close(); Socket socket = new Socket(InetAddress.getLocalHost(),port); Writer out = new OutputStreamWriter(socket.getOutputStream()); out.write(String.valueOf(key)); out.write('\n'); if(!defaultSession) { if(session != null) out.write("session=" + session + "\n"); else out.write("nosession\n"); } if(newView) out.write("newview\n"); out.write("parent=" + userDir + "\n"); out.write("--\n"); for(int i = 0; i < args.length; i++) { if(args[i] != null) { out.write(args[i]); out.write('\n'); } } out.close(); System.exit(0); } catch(Exception e) { // ok, this one seems to confuse newbies // endlessly, so log it as NOTICE, not // ERROR Log.log(Log.NOTICE,jEdit.class,"An error occurred" + " while connecting to the jEdit server instance."); Log.log(Log.NOTICE,jEdit.class,"This probably means that" + " jEdit crashed and/or exited abnormally"); Log.log(Log.NOTICE,jEdit.class,"the last time it was run."); Log.log(Log.NOTICE,jEdit.class,"If you don't" + " know what this means, don't worry."); Log.log(Log.NOTICE,jEdit.class,e); } } // Show the kool splash screen if(showSplash) GUIUtilities.showSplashScreen(); // Initialize activity log and settings directory Writer stream; if(settingsDirectory != null) { File _settingsDirectory = new File(settingsDirectory); if(!_settingsDirectory.exists()) _settingsDirectory.mkdirs(); File _macrosDirectory = new File(settingsDirectory,"macros"); if(!_macrosDirectory.exists()) _macrosDirectory.mkdir(); File _sessionsDirectory = new File(settingsDirectory,"sessions"); if(!_sessionsDirectory.exists()) _sessionsDirectory.mkdir(); String logPath = MiscUtilities.constructPath( settingsDirectory,"activity.log"); try { stream = new BufferedWriter(new FileWriter(logPath)); } catch(Exception e) { e.printStackTrace(); stream = null; } } else { stream = null; } Log.init(true,level,stream); Log.log(Log.NOTICE,jEdit.class,"jEdit version " + getVersion()); Log.log(Log.MESSAGE,jEdit.class,"Settings directory is " + settingsDirectory); // Initialize server if(portFile != null) { server = new EditServer(portFile); if(!server.isOK()) server = null; } else { if(background) { background = false; System.err.println("You cannot specify both the" + " -background and -noserver switches"); } } // Get things rolling initMisc(); initSystemProperties(); BeanShell.init(); GUIUtilities.advanceSplashProgress(); initSiteProperties(); initUserProperties(); initActions(); initPlugins(); if(settingsDirectory != null) { File history = new File(MiscUtilities.constructPath( settingsDirectory,"history")); if(history.exists()) historyModTime = history.lastModified(); HistoryModel.loadHistory(history); File recent = new File(MiscUtilities.constructPath( settingsDirectory,"recent")); if(recent.exists()) recentModTime = recent.lastModified(); BufferHistory.load(recent); } Abbrevs.load(); GUIUtilities.advanceSplashProgress(); // Buffer sort sortBuffers = getBooleanProperty("sortBuffers"); sortByName = getBooleanProperty("sortByName"); initPLAF(); initModes(); GUIUtilities.advanceSplashProgress(); // Start plugins for(int i = 0; i < jars.size(); i++) { ((EditPlugin.JAR)jars.elementAt(i)).getClassLoader() .loadAllPlugins(); } GUIUtilities.advanceSplashProgress(); SearchAndReplace.load(); FavoritesVFS.loadFavorites(); Macros.loadMacros(); propertiesChanged(); GUIUtilities.advanceSplashProgress(); Buffer buffer = openFiles(userDir,args); if(bufferCount == 0 && settingsDirectory != null) { // don't load default session when in background mode if(defaultSession) { if(!background && session != null && getBooleanProperty("saveDesktop")) buffer = Sessions.loadSession(session,true); } else buffer = Sessions.loadSession(session,true); } // Create the view and hide the splash screen. final boolean _showGUI = showGUI; final Buffer _buffer = buffer; GUIUtilities.advanceSplashProgress(); SwingUtilities.invokeLater(new Runnable() { public void run() { EditBus.send(new EditorStarted(null)); // If no files to open were specified in // background mode, don't create a view. if(background && !_showGUI) { if(bufferCount != 0) newView(null,_buffer); } else { if(bufferCount == 0) newFile(null); newView(null,_buffer); } // execute startup macro Macros.Macro macro = Macros.getMacro("Startup"); if(macro != null) { Log.log(Log.NOTICE,jEdit.class,"Running startup macro"); BeanShell.runScript(viewsFirst,macro.path,false,false); } GUIUtilities.hideSplashScreen(); Log.log(Log.MESSAGE,jEdit.class,"Startup " + "complete"); // Start I/O threads VFSManager.start(); // Start edit server if(server != null) server.start(); } }); }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/26ef24caa9981c6f1bf20e6d8597b938641738a2/jEdit.java/clean/org/gjt/sp/jedit/jEdit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 202, 95, 202, 202, 759, 364, 21701, 30, 1086, 296, 78, 4619, 374, 11, 358, 336, 1110, 14315, 2907, 202, 202, 474, 1801, 273, 1827, 18, 9511, 31, 202, 202, 430, 12, 1968, 18, 2469, 1545, 404, 13, 202, 202, 95, 1082, 202, 780, 1801, 1585, 273, 833, 63, 20, 15533, 1082, 202, 430, 12, 2815, 1585, 18, 2469, 1435, 422, 404, 597, 6577, 18, 291, 10907, 12, 9506, 202, 2815, 1585, 18, 3001, 861, 12, 20, 20349, 1082, 202, 95, 9506, 202, 2815, 273, 2144, 18, 2670, 1702, 12, 2815, 1585, 1769, 9506, 202, 1968, 63, 20, 65, 273, 446, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 759, 2884, 1296, 980, 202, 202, 6494, 679, 5476, 273, 629, 31, 202, 202, 6494, 394, 1767, 273, 629, 31, 202, 202, 4272, 2853, 273, 16584, 71, 11864, 18, 10062, 743, 12, 1082, 202, 3163, 18, 588, 1396, 2932, 1355, 18, 8712, 6, 3631, 9654, 78, 4619, 8863, 202, 202, 780, 1756, 812, 273, 315, 3567, 14432, 202, 202, 6494, 805, 2157, 273, 638, 31, 202, 202, 3184, 273, 315, 1886, 14432, 202, 202, 6494, 2405, 16881, 961, 273, 638, 31, 202, 202, 6494, 2405, 43, 5370, 273, 638, 31, 202, 202, 1884, 12, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 202, 202, 95, 1082, 202, 780, 1501, 273, 833, 63, 77, 15533, 1082, 202, 430, 12, 3175, 422, 446, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 202, 95, 202, 202, 759, 364, 21701, 30, 1086, 296, 78, 4619, 374, 11, 358, 336, 1110, 14315, 2907, 202, 202, 474, 1801, 273, 1827, 18, 9511, 31, 202, 202, 430, 12, 1968, 18, 2469, 1545, 404, 13, 202, 202, 95, 1082, 202, 780, 1801, 1585, 273, 833, 63, 20, 15533, 1082, 202, 430, 12, 2815, 1585, 18, 2469, 1435, 422, 404, 597, 6577, 18, 291, 10907, 12, 9506, 202, 2815, 1585, 18, 3001, 861, 12, 20, 20349, 1082, 202, 95, 9506, 202, 2815, 273, 2144, 18, 2670, 1702, 12, 2815, 1585, 1769, 9506, 202, 1968, 63, 20, 65, 273, 446, 31, 1082, 202, 97, 202, 202, 97, 2 ]
postfix = relativePath.substring(sepPos == -1 ? 0 : sepPos + File.separator.length(), relativePath.length());
postfix = postfix.substring(sepPos == -1 ? 0 : sepPos + File.separator.length(), postfix.length());
public static String resolveDirectory(String rootPath, String relativePath) { if(relativePath.indexOf('#') != -1){ //ignore the part after '#' relativePath = relativePath.substring(0,relativePath.indexOf('#')); } relativePath = relativePath.replace('\\', File.separatorChar); relativePath = relativePath.replace('/', File.separatorChar); if (rootPath == null) { return relativePath; } String prefix = null; if (rootPath.charAt(rootPath.length() - 1) == File.separatorChar) { prefix = rootPath.substring(0, rootPath.length() - 1); } else { prefix = rootPath; } String postfix = relativePath; if (relativePath.startsWith("..")) { int sepPos = relativePath.indexOf(File.separatorChar); int lastPos = prefix.lastIndexOf(File.separatorChar); postfix = relativePath.substring(sepPos == -1 ? 0 : sepPos + File.separator.length(), relativePath.length()); if(lastPos == -1){ return postfix; } prefix = prefix.substring(0, lastPos); } return prefix + File.separatorChar + postfix; }
49570 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49570/7edf3f39410ba7147982e0261fe3cacd53e46980/StringUtils.java/clean/src/org/dita/dost/util/StringUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 2245, 2853, 12, 780, 13959, 16, 514, 12820, 13, 288, 377, 202, 430, 12, 11626, 743, 18, 31806, 2668, 7, 6134, 480, 300, 21, 15329, 377, 202, 202, 759, 6185, 326, 1087, 1839, 6501, 377, 202, 202, 11626, 743, 273, 12820, 18, 28023, 12, 20, 16, 11626, 743, 18, 31806, 2668, 7, 6134, 1769, 377, 202, 97, 3639, 12820, 273, 12820, 18, 2079, 2668, 1695, 2187, 1387, 18, 11287, 2156, 1769, 3639, 12820, 273, 12820, 18, 2079, 2668, 19, 2187, 1387, 18, 11287, 2156, 1769, 3639, 309, 261, 3085, 743, 422, 446, 13, 288, 5411, 327, 12820, 31, 3639, 289, 3639, 514, 1633, 273, 446, 31, 3639, 309, 261, 3085, 743, 18, 3001, 861, 12, 3085, 743, 18, 2469, 1435, 300, 404, 13, 422, 1387, 18, 11287, 2156, 13, 288, 5411, 1633, 273, 13959, 18, 28023, 12, 20, 16, 13959, 18, 2469, 1435, 300, 404, 1769, 3639, 289, 469, 288, 5411, 1633, 273, 13959, 31, 3639, 289, 3639, 514, 18923, 273, 12820, 31, 3639, 309, 261, 11626, 743, 18, 17514, 1190, 2932, 18460, 3719, 288, 5411, 509, 5478, 1616, 273, 12820, 18, 31806, 12, 812, 18, 11287, 2156, 1769, 5411, 509, 1142, 1616, 273, 1633, 18, 2722, 31985, 12, 812, 18, 11287, 2156, 1769, 5411, 18923, 273, 12820, 18, 28023, 12, 10814, 1616, 422, 300, 21, 692, 374, 294, 5478, 1616, 10792, 397, 1387, 18, 11287, 18, 2469, 9334, 12820, 18, 2469, 10663, 5411, 309, 12, 2722, 1616, 422, 300, 21, 15329, 7734, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 2245, 2853, 12, 780, 13959, 16, 514, 12820, 13, 288, 377, 202, 430, 12, 11626, 743, 18, 31806, 2668, 7, 6134, 480, 300, 21, 15329, 377, 202, 202, 759, 6185, 326, 1087, 1839, 6501, 377, 202, 202, 11626, 743, 273, 12820, 18, 28023, 12, 20, 16, 11626, 743, 18, 31806, 2668, 7, 6134, 1769, 377, 202, 97, 3639, 12820, 273, 12820, 18, 2079, 2668, 1695, 2187, 1387, 18, 11287, 2156, 1769, 3639, 12820, 273, 12820, 18, 2079, 2668, 19, 2187, 1387, 18, 11287, 2156, 1769, 3639, 309, 261, 3085, 743, 422, 446, 13, 288, 5411, 327, 12820, 31, 3639, 289, 3639, 514, 1633, 273, 446, 31, 3639, 309, 261, 3085, 743, 18, 3001, 861, 12, 2 ]
AST __t740 = _t; AST tmp640_AST_in = (AST)_t;
AST __t744 = _t; AST tmp639_AST_in = (AST)_t;
public final void colorstate(AST _t) throws RecognitionException { AST colorstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t733 = _t; AST tmp636_AST_in = (AST)_t; match(_t,COLOR); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DISPLAY: case PROMPT: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DISPLAY: { AST __t736 = _t; AST tmp637_AST_in = (AST)_t; match(_t,DISPLAY); _t = _t.getFirstChild(); anyorvalue(_t); _t = _retTree; _t = __t736; _t = _t.getNextSibling(); break; } case PROMPT: { AST __t737 = _t; AST tmp638_AST_in = (AST)_t; match(_t,PROMPT); _t = _t.getFirstChild(); anyorvalue(_t); _t = _retTree; _t = __t737; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DISPLAY: { AST __t739 = _t; AST tmp639_AST_in = (AST)_t; match(_t,DISPLAY); _t = _t.getFirstChild(); anyorvalue(_t); _t = _retTree; _t = __t739; _t = _t.getNextSibling(); break; } case PROMPT: { AST __t740 = _t; AST tmp640_AST_in = (AST)_t; match(_t,PROMPT); _t = _t.getFirstChild(); anyorvalue(_t); _t = _retTree; _t = __t740; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case WITH: case Form_item: { break; } default: { throw new NoViableAltException(_t); } } } break; } case EOF: case PERIOD: case WITH: case Form_item: { break; } default: { throw new NoViableAltException(_t); } } } { _loop744: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { AST __t742 = _t; AST tmp641_AST_in = (AST)_t; match(_t,Form_item); _t = _t.getFirstChild(); field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Format_phrase: { formatphrase(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t742; _t = _t.getNextSibling(); } else { break _loop744; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WITH: { framephrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t733; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2036, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2036, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 27, 3707, 273, 389, 88, 31, 202, 202, 9053, 1853, 4449, 26, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 10989, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 25214, 30, 202, 202, 3593, 453, 3942, 1856, 30, 202, 202, 95, 1082, 202, 95, 1082, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 1082, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 1082, 202, 3593, 25214, 30, 1082, 202, 95, 9506, 202, 9053, 1001, 88, 27, 5718, 273, 389, 88, 31, 9506, 202, 9053, 1853, 4449, 27, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 17463, 1769, 9506, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 9506, 202, 2273, 280, 1132, 24899, 88, 1769, 9506, 202, 67, 88, 273, 389, 1349, 2471, 31, 9506, 202, 67, 88, 273, 1001, 88, 27, 5718, 31, 9506, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2036, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2036, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 27, 3707, 273, 389, 88, 31, 202, 202, 9053, 1853, 4449, 26, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 10989, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 2 ]
new ImageIcon(getClass().getResource("images/biffNew.gif"));
new ImageIcon("ui/images/biffNew.gif");
public BiffIcon() { if (fIconUnknown == null) { fIconUnknown = new ImageIcon(getClass().getResource("images/biffUnknown.gif")); fIconNew = new ImageIcon(getClass().getResource("images/biffNew.gif")); fIconNone = new ImageIcon(getClass().getResource("images/biffNone.gif")); } setText(null); // Necessary for icon size to be used for preferred size setBiffState(MailDrop.UNKNOWN); fThread = BiffThread.Get(); fThread.addChangeListener(this); setBiffState(fThread.getBiffState()); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/BiffIcon.java/clean/grendel/sources/grendel/ui/BiffIcon.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 605, 3048, 5554, 1435, 288, 565, 309, 261, 74, 5554, 4874, 422, 446, 13, 288, 1377, 284, 5554, 4874, 273, 3639, 394, 3421, 5554, 12, 588, 797, 7675, 588, 1420, 2932, 7369, 19, 70, 3048, 4874, 18, 13905, 7923, 1769, 1377, 284, 5554, 1908, 273, 3639, 394, 3421, 5554, 2932, 4881, 19, 7369, 19, 70, 3048, 1908, 18, 13905, 8863, 1377, 284, 5554, 7036, 273, 3639, 394, 3421, 5554, 12, 588, 797, 7675, 588, 1420, 2932, 7369, 19, 70, 3048, 7036, 18, 13905, 7923, 1769, 565, 289, 565, 7883, 12, 2011, 1769, 368, 423, 4128, 364, 4126, 963, 358, 506, 1399, 364, 9119, 963, 565, 15268, 3048, 1119, 12, 6759, 7544, 18, 14737, 1769, 565, 284, 3830, 273, 605, 3048, 3830, 18, 967, 5621, 565, 284, 3830, 18, 1289, 15744, 12, 2211, 1769, 565, 15268, 3048, 1119, 12, 74, 3830, 18, 588, 38, 3048, 1119, 10663, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 605, 3048, 5554, 1435, 288, 565, 309, 261, 74, 5554, 4874, 422, 446, 13, 288, 1377, 284, 5554, 4874, 273, 3639, 394, 3421, 5554, 12, 588, 797, 7675, 588, 1420, 2932, 7369, 19, 70, 3048, 4874, 18, 13905, 7923, 1769, 1377, 284, 5554, 1908, 273, 3639, 394, 3421, 5554, 2932, 4881, 19, 7369, 19, 70, 3048, 1908, 18, 13905, 8863, 1377, 284, 5554, 7036, 273, 3639, 394, 3421, 5554, 12, 588, 797, 7675, 588, 1420, 2932, 7369, 19, 70, 3048, 7036, 18, 13905, 7923, 1769, 565, 289, 565, 7883, 12, 2011, 1769, 368, 423, 4128, 364, 4126, 963, 358, 506, 1399, 364, 9119, 963, 565, 15268, 3048, 1119, 12, 6759, 7544, 18, 14737, 1769, 565, 284, 3830, 2 ]
return version.toString(); } else return null;
if (version != null) return version.toString(); } return null;
public String getVersion() { String driver = getAdapter(); if (driver != null) { WindowsFileVersion version = nGetVersion(driver + ".dll"); return version.toString(); } else return null; }
5076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5076/145f00031a69b620b3e31450b1abbd0ef62b3fb5/WindowsDisplay.java/buggy/src/java/org/lwjgl/opengl/WindowsDisplay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8343, 1435, 288, 202, 202, 780, 3419, 273, 16679, 5621, 202, 202, 430, 261, 7407, 480, 446, 13, 288, 1082, 202, 10399, 812, 1444, 1177, 273, 290, 967, 1444, 12, 7407, 397, 3552, 27670, 8863, 1082, 202, 2463, 1177, 18, 10492, 5621, 202, 202, 97, 469, 1082, 202, 2463, 446, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8343, 1435, 288, 202, 202, 780, 3419, 273, 16679, 5621, 202, 202, 430, 261, 7407, 480, 446, 13, 288, 1082, 202, 10399, 812, 1444, 1177, 273, 290, 967, 1444, 12, 7407, 397, 3552, 27670, 8863, 1082, 202, 2463, 1177, 18, 10492, 5621, 202, 202, 97, 469, 1082, 202, 2463, 446, 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 ]
lexicalRoot.meta_defineField(AGSymbol.alloc("unit"), OBJUnit._INSTANCE_);
lexicalRoot.meta_defineField(AGSymbol.jAlloc("unit"), OBJUnit._INSTANCE_);
protected void setUp() throws Exception { lexicalRoot = new NATObject(OBJLexicalRoot._INSTANCE_); lexicalRoot.meta_defineField(AGSymbol.alloc("success"), success); lexicalRoot.meta_defineField(AGSymbol.alloc("fail"), fail); lexicalRoot.meta_defineField(AGSymbol.alloc("echo:"), echo_); lexicalRoot.meta_defineField(AGSymbol.alloc("symbol"), symbol); lexicalRoot.meta_defineField(AGSymbol.alloc("true"), True); lexicalRoot.meta_defineField(AGSymbol.alloc("false"), False); lexicalRoot.meta_defineField(AGSymbol.alloc("closures"), closures); lexicalRoot.meta_defineField(AGSymbol.alloc("symIfTrue"), AGSymbol.alloc("ifTrue:")); ATObject mirrors = new NATObject(lexicalRoot); mirrors.meta_defineField(AGSymbol.alloc("Factory"), NATMirrorFactory._INSTANCE_); ATObject natives = new NATObject(lexicalRoot); natives.meta_defineField(AGSymbol.alloc("Context"), NATMirrorFactory._INSTANCE_); ATObject at = new NATObject(lexicalRoot); at.meta_defineField(AGSymbol.alloc("mirrors"), mirrors); at.meta_defineField(AGSymbol.alloc("natives"), natives); lexicalRoot.meta_defineField(AGSymbol.alloc("at"), at); lexicalRoot.meta_defineField(AGSymbol.alloc("root"), lexicalRoot); lexicalRoot.meta_defineField(AGSymbol.alloc("unittest:"), unittest_); lexicalRoot.meta_defineField(AGSymbol.alloc("unit"), OBJUnit._INSTANCE_); }
57139 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57139/48c9291154adf80addbe964a51750f5d02bb8019/ReflectiveAccessTest.java/buggy/test/edu/vub/at/objects/mirrors/ReflectiveAccessTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24292, 1435, 1216, 1185, 288, 202, 202, 4149, 1706, 2375, 273, 394, 31395, 921, 12, 24547, 14756, 1706, 2375, 6315, 13341, 67, 1769, 202, 202, 4149, 1706, 2375, 18, 3901, 67, 11255, 974, 12, 1781, 5335, 18, 9853, 2932, 4768, 6, 3631, 2216, 1769, 202, 202, 4149, 1706, 2375, 18, 3901, 67, 11255, 974, 12, 1781, 5335, 18, 9853, 2932, 6870, 6, 3631, 2321, 1769, 202, 202, 4149, 1706, 2375, 18, 3901, 67, 11255, 974, 12, 1781, 5335, 18, 9853, 2932, 12946, 2773, 3631, 3376, 67, 1769, 202, 202, 4149, 1706, 2375, 18, 3901, 67, 11255, 974, 12, 1781, 5335, 18, 9853, 2932, 7175, 6, 3631, 3273, 1769, 202, 202, 4149, 1706, 2375, 18, 3901, 67, 11255, 974, 12, 1781, 5335, 18, 9853, 2932, 3767, 6, 3631, 1053, 1769, 202, 202, 4149, 1706, 2375, 18, 3901, 67, 11255, 974, 12, 1781, 5335, 18, 9853, 2932, 5743, 6, 3631, 1083, 1769, 202, 202, 4149, 1706, 2375, 18, 3901, 67, 11255, 974, 12, 1781, 5335, 18, 9853, 2932, 7550, 8421, 6, 3631, 1219, 8421, 1769, 9506, 202, 4149, 1706, 2375, 18, 3901, 67, 11255, 974, 12, 1781, 5335, 18, 9853, 2932, 8117, 2047, 5510, 6, 3631, 432, 43, 5335, 18, 9853, 2932, 430, 5510, 2773, 10019, 9506, 202, 789, 921, 312, 27026, 273, 394, 31395, 921, 12, 4149, 1706, 2375, 1769, 202, 202, 81, 27026, 18, 3901, 67, 11255, 974, 12, 1781, 5335, 18, 9853, 2932, 1733, 6, 3631, 31395, 13035, 1733, 6315, 13341, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24292, 1435, 1216, 1185, 288, 202, 202, 4149, 1706, 2375, 273, 394, 31395, 921, 12, 24547, 14756, 1706, 2375, 6315, 13341, 67, 1769, 202, 202, 4149, 1706, 2375, 18, 3901, 67, 11255, 974, 12, 1781, 5335, 18, 9853, 2932, 4768, 6, 3631, 2216, 1769, 202, 202, 4149, 1706, 2375, 18, 3901, 67, 11255, 974, 12, 1781, 5335, 18, 9853, 2932, 6870, 6, 3631, 2321, 1769, 202, 202, 4149, 1706, 2375, 18, 3901, 67, 11255, 974, 12, 1781, 5335, 18, 9853, 2932, 12946, 2773, 3631, 3376, 67, 1769, 202, 202, 4149, 1706, 2375, 18, 3901, 67, 11255, 974, 12, 1781, 5335, 18, 9853, 2932, 7175, 6, 3631, 3273, 1769, 202, 202, 4149, 1706, 2375, 18, 3901, 2 ]
"{[EmployeesClosure].FirstChild} on rows" + nl + "from [HR]", "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Measures].[Count]}" + nl + "{[Measures].[Org Salary]}" + nl + "{[Measures].[Number of Employees]}" + nl + "{[Measures].[Avg Salary]}" + nl + "Axis #2:" + nl + "{[EmployeesClosure].[All Employees].[1]}" + nl + "Row #0: 7,392" + nl + "Row #0: $39,431.67" + nl + "Row #0: 616" + nl + "Row #0: $64.01" + nl); }
"{[EmployeesClosure].FirstChild} on rows" + nl + "from [HR]", "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Measures].[Count]}" + nl + "{[Measures].[Org Salary]}" + nl + "{[Measures].[Number of Employees]}" + nl + "{[Measures].[Avg Salary]}" + nl + "Axis #2:" + nl + "{[EmployeesClosure].[All Employees].[1]}" + nl + "Row #0: 7,392" + nl + "Row #0: $39,431.67" + nl + "Row #0: 616" + nl + "Row #0: $64.01" + nl); }
public void _testDistinctChildrenOfAllExplicitClosure() { // the children of the closed relation are all the descendants, so limit results runQueryCheckResult( "select {[Measures].[Count], [Measures].[Org Salary], " + nl + "[Measures].[Number Of Employees], [Measures].[Avg Salary]} on columns," + nl + "{[EmployeesClosure].FirstChild} on rows" + nl + "from [HR]", "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Measures].[Count]}" + nl + "{[Measures].[Org Salary]}" + nl + "{[Measures].[Number of Employees]}" + nl + "{[Measures].[Avg Salary]}" + nl + "Axis #2:" + nl + "{[EmployeesClosure].[All Employees].[1]}" + nl + "Row #0: 7,392" + nl + "Row #0: $39,431.67" + nl + "Row #0: 616" + nl + "Row #0: $64.01" + nl); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/ParentChildHierarchyTest.java/buggy/testsrc/main/mondrian/test/ParentChildHierarchyTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 389, 3813, 23402, 4212, 951, 1595, 17186, 10573, 1435, 288, 3639, 368, 326, 2325, 434, 326, 4375, 2533, 854, 777, 326, 18039, 16, 1427, 1800, 1686, 202, 202, 2681, 1138, 1564, 1253, 12, 9506, 202, 6, 4025, 288, 63, 23177, 1823, 8009, 63, 1380, 6487, 306, 23177, 1823, 8009, 63, 6001, 348, 287, 814, 6487, 315, 397, 7741, 397, 7734, 5158, 23177, 1823, 8009, 63, 1854, 8031, 512, 23377, 25521, 6487, 306, 23177, 1823, 8009, 63, 22823, 348, 287, 814, 18322, 603, 2168, 10837, 397, 7741, 397, 9506, 202, 18767, 63, 41, 23377, 25521, 10573, 8009, 3759, 1763, 97, 603, 2595, 6, 397, 7741, 397, 9506, 202, 6, 2080, 306, 15024, 65, 3113, 9506, 202, 6, 6558, 468, 20, 2773, 397, 7741, 397, 9506, 202, 6, 9338, 397, 7741, 397, 9506, 202, 6, 6558, 468, 21, 2773, 397, 7741, 397, 9506, 202, 18767, 63, 23177, 1823, 8009, 63, 1380, 20817, 397, 7741, 397, 9506, 202, 18767, 63, 23177, 1823, 8009, 63, 6001, 348, 287, 814, 20817, 397, 7741, 397, 9506, 202, 18767, 63, 23177, 1823, 8009, 63, 1854, 434, 512, 23377, 25521, 20817, 397, 7741, 397, 9506, 202, 18767, 63, 23177, 1823, 8009, 63, 22823, 348, 287, 814, 20817, 397, 7741, 397, 9506, 202, 6, 6558, 468, 22, 2773, 397, 7741, 397, 9506, 202, 18767, 63, 41, 23377, 25521, 10573, 8009, 63, 1595, 512, 23377, 25521, 8009, 63, 21, 20817, 397, 7741, 397, 9506, 202, 6, 1999, 468, 20, 30, 2371, 16, 5520, 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, 389, 3813, 23402, 4212, 951, 1595, 17186, 10573, 1435, 288, 3639, 368, 326, 2325, 434, 326, 4375, 2533, 854, 777, 326, 18039, 16, 1427, 1800, 1686, 202, 202, 2681, 1138, 1564, 1253, 12, 9506, 202, 6, 4025, 288, 63, 23177, 1823, 8009, 63, 1380, 6487, 306, 23177, 1823, 8009, 63, 6001, 348, 287, 814, 6487, 315, 397, 7741, 397, 7734, 5158, 23177, 1823, 8009, 63, 1854, 8031, 512, 23377, 25521, 6487, 306, 23177, 1823, 8009, 63, 22823, 348, 287, 814, 18322, 603, 2168, 10837, 397, 7741, 397, 9506, 202, 18767, 63, 41, 23377, 25521, 10573, 8009, 3759, 1763, 97, 603, 2595, 6, 397, 7741, 397, 9506, 202, 6, 2080, 306, 15024, 65, 3113, 9506, 202, 2 ]
if ( !doc.validate(validateOptions) )
if (!doc.validate(validateOptions))
public void test2ListsSkip() throws Throwable { String input = "<foo:UriListSkip " + " xmlns:foo=\"http://xbean/scomp/derivation/AttributeWCExtension\"" + " testAttr=\"val1\"/>"; UriListSkipDocument doc = UriListSkipDocument.Factory.parse(input); if ( !doc.validate(validateOptions) ) showErrors(); assertTrue(doc.validate(validateOptions)); }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/6fb2092dc42215a3e86cd61e15efb4d667b2282e/AttributeWCExtension.java/buggy/v2/test/src/scomp/derivation/extension/detailed/AttributeWCExtension.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 22, 7432, 6368, 1435, 1216, 4206, 288, 3639, 514, 810, 273, 3532, 11351, 30, 3006, 682, 6368, 315, 397, 7734, 315, 12302, 30, 11351, 5189, 2505, 2207, 92, 14496, 19, 87, 2919, 19, 765, 8482, 19, 1499, 59, 39, 3625, 8530, 397, 7734, 315, 1842, 3843, 5189, 1125, 21, 2412, 26293, 31, 3639, 10693, 682, 6368, 2519, 997, 273, 10693, 682, 6368, 2519, 18, 1733, 18, 2670, 12, 2630, 1769, 1850, 309, 16051, 2434, 18, 5662, 12, 5662, 1320, 3719, 5411, 2405, 4229, 5621, 3639, 1815, 5510, 12, 2434, 18, 5662, 12, 5662, 1320, 10019, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 22, 7432, 6368, 1435, 1216, 4206, 288, 3639, 514, 810, 273, 3532, 11351, 30, 3006, 682, 6368, 315, 397, 7734, 315, 12302, 30, 11351, 5189, 2505, 2207, 92, 14496, 19, 87, 2919, 19, 765, 8482, 19, 1499, 59, 39, 3625, 8530, 397, 7734, 315, 1842, 3843, 5189, 1125, 21, 2412, 26293, 31, 3639, 10693, 682, 6368, 2519, 997, 273, 10693, 682, 6368, 2519, 18, 1733, 18, 2670, 12, 2630, 1769, 1850, 309, 16051, 2434, 18, 5662, 12, 5662, 1320, 3719, 5411, 2405, 4229, 5621, 3639, 1815, 5510, 12, 2434, 18, 5662, 12, 5662, 1320, 10019, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
synPredMatched1210 = false;
synPredMatched586 = false;
public final void mMODULE_NAME(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = MODULE_NAME; int _saveIndex; boolean synPredMatched1198 = false; if (((LA(1)=='A') && (LA(2)=='R') && (LA(3)=='R'))) { int _m1198 = mark(); synPredMatched1198 = true; inputState.guessing++; try { { match("ARRAY"); } } catch (RecognitionException pe) { synPredMatched1198 = false; } rewind(_m1198); inputState.guessing--; } if ( synPredMatched1198 ) { match("ARRAY"); if ( inputState.guessing==0 ) { _ttype = ARRAY_REF; } } else { boolean synPredMatched1200 = false; if (((LA(1)=='S') && (LA(2)=='C') && (LA(3)=='A'))) { int _m1200 = mark(); synPredMatched1200 = true; inputState.guessing++; try { { match("SCALAR"); } } catch (RecognitionException pe) { synPredMatched1200 = false; } rewind(_m1200); inputState.guessing--; } if ( synPredMatched1200 ) { match("SCALAR"); if ( inputState.guessing==0 ) { _ttype = SCALAR_REF; } } else { boolean synPredMatched1202 = false; if (((LA(1)=='H') && (LA(2)=='A') && (LA(3)=='S'))) { int _m1202 = mark(); synPredMatched1202 = true; inputState.guessing++; try { { match("HASH"); } } catch (RecognitionException pe) { synPredMatched1202 = false; } rewind(_m1202); inputState.guessing--; } if ( synPredMatched1202 ) { match("HASH"); if ( inputState.guessing==0 ) { _ttype = HASH_REF; } } else { boolean synPredMatched1204 = false; if (((LA(1)=='C') && (LA(2)=='O') && (LA(3)=='D'))) { int _m1204 = mark(); synPredMatched1204 = true; inputState.guessing++; try { { match("CODE"); } } catch (RecognitionException pe) { synPredMatched1204 = false; } rewind(_m1204); inputState.guessing--; } if ( synPredMatched1204 ) { match("CODE"); if ( inputState.guessing==0 ) { _ttype = CODE_REF; } } else { boolean synPredMatched1206 = false; if (((LA(1)=='R') && (LA(2)=='E') && (LA(3)=='F'))) { int _m1206 = mark(); synPredMatched1206 = true; inputState.guessing++; try { { match("REF"); } } catch (RecognitionException pe) { synPredMatched1206 = false; } rewind(_m1206); inputState.guessing--; } if ( synPredMatched1206 ) { match("REF"); if ( inputState.guessing==0 ) { _ttype = REF; } } else { boolean synPredMatched1208 = false; if (((LA(1)=='F') && (LA(2)=='i') && (LA(3)=='l'))) { int _m1208 = mark(); synPredMatched1208 = true; inputState.guessing++; try { { match("FileHandle"); } } catch (RecognitionException pe) { synPredMatched1208 = false; } rewind(_m1208); inputState.guessing--; } if ( synPredMatched1208 ) { match("FileHandle"); if ( inputState.guessing==0 ) { _ttype = FILE_HANDLE; } } else { boolean synPredMatched1210 = false; if (((LA(1)=='f') && (LA(2)=='i') && (LA(3)=='l'))) { int _m1210 = mark(); synPredMatched1210 = true; inputState.guessing++; try { { match("fileno("); } } catch (RecognitionException pe) { synPredMatched1210 = false; } rewind(_m1210); inputState.guessing--; } if ( synPredMatched1210 ) { { match("fileno("); } { int _cnt1213=0; _loop1213: do { if (((LA(1) >= '0' && LA(1) <= '9'))) { matchRange('0','9'); } else { if ( _cnt1213>=1 ) { break _loop1213; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} } _cnt1213++; } while (true); } match(')'); if ( inputState.guessing==0 ) { _ttype = FILE_NO; } } else if ((_tokenSet_0.member(LA(1))) && (true) && (true)) { mPURE_NAME(false); if ( inputState.guessing==0 ) { _ttype = PURE_NAME; } } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } }}}}}} if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/72375d88949c7cd568747d5147388993cafd19ac/PerlBaseLexer.java/buggy/org.epic.debug/src/org/epic/debug/varparser/PerlBaseLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 312, 12194, 67, 1985, 12, 6494, 389, 2640, 1345, 13, 1216, 9539, 16, 3703, 1228, 503, 16, 3155, 1228, 503, 288, 202, 202, 474, 389, 88, 723, 31, 3155, 389, 2316, 33, 2011, 31, 509, 389, 10086, 33, 955, 18, 2469, 5621, 202, 202, 67, 88, 723, 273, 14057, 67, 1985, 31, 202, 202, 474, 389, 5688, 1016, 31, 9506, 202, 6494, 6194, 10391, 15400, 2499, 10689, 273, 629, 31, 202, 202, 430, 261, 12443, 2534, 12, 21, 13, 18920, 37, 6134, 597, 261, 2534, 12, 22, 13, 18920, 54, 6134, 597, 261, 2534, 12, 23, 13, 18920, 54, 11, 20349, 288, 1082, 202, 474, 389, 81, 2499, 10689, 273, 2267, 5621, 1082, 202, 11982, 10391, 15400, 2499, 10689, 273, 638, 31, 1082, 202, 2630, 1119, 18, 20885, 310, 9904, 31, 1082, 202, 698, 288, 9506, 202, 95, 9506, 202, 1916, 2932, 8552, 8863, 9506, 202, 97, 1082, 202, 97, 1082, 202, 14683, 261, 5650, 7909, 503, 2804, 13, 288, 9506, 202, 11982, 10391, 15400, 2499, 10689, 273, 629, 31, 1082, 202, 97, 1082, 202, 266, 10094, 24899, 81, 2499, 10689, 1769, 1082, 202, 2630, 1119, 18, 20885, 310, 413, 31, 202, 202, 97, 202, 202, 430, 261, 6194, 10391, 15400, 2499, 10689, 262, 288, 1082, 202, 1916, 2932, 8552, 8863, 1082, 202, 430, 261, 810, 1119, 18, 20885, 310, 631, 20, 262, 288, 9506, 202, 67, 88, 723, 273, 14884, 67, 10771, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 312, 12194, 67, 1985, 12, 6494, 389, 2640, 1345, 13, 1216, 9539, 16, 3703, 1228, 503, 16, 3155, 1228, 503, 288, 202, 202, 474, 389, 88, 723, 31, 3155, 389, 2316, 33, 2011, 31, 509, 389, 10086, 33, 955, 18, 2469, 5621, 202, 202, 67, 88, 723, 273, 14057, 67, 1985, 31, 202, 202, 474, 389, 5688, 1016, 31, 9506, 202, 6494, 6194, 10391, 15400, 2499, 10689, 273, 629, 31, 202, 202, 430, 261, 12443, 2534, 12, 21, 13, 18920, 37, 6134, 597, 261, 2534, 12, 22, 13, 18920, 54, 6134, 597, 261, 2534, 12, 23, 13, 18920, 54, 11, 20349, 288, 1082, 202, 474, 389, 81, 2499, 10689, 273, 2267, 5621, 1082, 202, 2 ]
File item = new File(store, event.getEndpoint().getEndpointURI().getAddress() + "/" + event.getId() + ".e");
File item = new File(store, name + "/" + event.getId() + ".e");
public void store(UMOEvent event) throws PersistentQueueException { synchronized (lock) { File item = new File(store, event.getEndpoint().getEndpointURI().getAddress() + "/" + event.getId() + ".e");// if(item.exists()) {// throw new PersistentQueueException("Event: " + event.getId() + " has already been stored at: " + item.getAbsolutePath());// } try { EventHolder eventHolder = new EventHolder(event); ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(item)); oos.writeObject(eventHolder); oos.close(); } catch (IOException e) { throw new PersistentQueueException(new Message(Messages.FAILED_TO_PERSIST_EVENT_X, event.getId()), e); } } }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/bd53fd903f2899bc22acf8dd764077c489fbd0bb/SerialisationPersistence.java/buggy/src/java/org/mule/util/queue/SerialisationPersistence.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1707, 12, 2799, 51, 1133, 871, 13, 1216, 11049, 3183, 503, 565, 288, 3639, 3852, 261, 739, 13, 3639, 288, 5411, 1387, 761, 273, 394, 1387, 12, 2233, 16, 871, 18, 588, 3293, 7675, 588, 3293, 3098, 7675, 588, 1887, 1435, 397, 4016, 397, 871, 18, 26321, 1435, 397, 3552, 73, 8863, 759, 3639, 309, 12, 1726, 18, 1808, 10756, 288, 759, 5411, 604, 394, 11049, 3183, 503, 2932, 1133, 30, 315, 397, 871, 18, 26321, 1435, 397, 315, 711, 1818, 2118, 4041, 622, 30, 315, 397, 761, 18, 588, 10368, 743, 10663, 759, 3639, 289, 5411, 775, 5411, 288, 7734, 2587, 6064, 871, 6064, 273, 394, 2587, 6064, 12, 2575, 1769, 7734, 23438, 24956, 273, 394, 23438, 12, 2704, 12942, 12, 1726, 10019, 7734, 24956, 18, 2626, 921, 12, 2575, 6064, 1769, 7734, 24956, 18, 4412, 5621, 5411, 289, 1044, 261, 14106, 425, 13, 5411, 288, 7734, 604, 394, 11049, 3183, 503, 12, 2704, 2350, 12, 5058, 18, 11965, 67, 4296, 67, 3194, 18732, 67, 10454, 67, 60, 16, 871, 18, 26321, 1435, 3631, 425, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1707, 12, 2799, 51, 1133, 871, 13, 1216, 11049, 3183, 503, 565, 288, 3639, 3852, 261, 739, 13, 3639, 288, 5411, 1387, 761, 273, 394, 1387, 12, 2233, 16, 871, 18, 588, 3293, 7675, 588, 3293, 3098, 7675, 588, 1887, 1435, 397, 4016, 397, 871, 18, 26321, 1435, 397, 3552, 73, 8863, 759, 3639, 309, 12, 1726, 18, 1808, 10756, 288, 759, 5411, 604, 394, 11049, 3183, 503, 2932, 1133, 30, 315, 397, 871, 18, 26321, 1435, 397, 315, 711, 1818, 2118, 4041, 622, 30, 315, 397, 761, 18, 588, 10368, 743, 10663, 759, 3639, 289, 5411, 775, 5411, 288, 7734, 2587, 6064, 871, 6064, 273, 394, 2587, 6064, 12, 2575, 1769, 7734, 23438, 24956, 273, 2 ]
"Row #0: 21,081\n"
"Row #0: 21,081", ""
public void testCurrentDateMemberRealExact2() { // omit formatting characters from the format so the current date // is hard-coded to actual value in the database so we can test the // exact logic assertQueryReturns( "SELECT { CurrentDateMember([Time], " + "\"[Ti\\me]\\.[1997]\\.[Q2]\\.[5]\")} " + "ON COLUMNS FROM [Sales]", fold(new String[] { "Axis #0:", "{}", "Axis #1:", "{[Time].[1997].[Q2].[5]}", "Row #0: 21,081\n" })); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/a04ea212daee9e72a5b267d1bd2ab38d948c4a64/UdfTest.java/buggy/testsrc/main/mondrian/test/UdfTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3935, 1626, 4419, 6955, 14332, 22, 1435, 565, 288, 3639, 368, 14088, 10407, 3949, 628, 326, 740, 1427, 326, 783, 1509, 3639, 368, 353, 7877, 17, 24808, 358, 3214, 460, 316, 326, 2063, 1427, 732, 848, 1842, 326, 3639, 368, 5565, 4058, 3639, 1815, 1138, 1356, 12, 5411, 315, 4803, 288, 6562, 1626, 4419, 3816, 950, 6487, 315, 397, 5411, 7023, 63, 56, 77, 1695, 3501, 65, 19978, 63, 19818, 27, 65, 19978, 63, 53, 22, 65, 19978, 63, 25, 65, 2412, 16869, 315, 397, 5411, 315, 673, 5597, 19639, 4571, 306, 23729, 65, 3113, 5411, 11590, 12, 2704, 514, 8526, 288, 7734, 315, 6558, 468, 20, 2773, 16, 7734, 13034, 16, 7734, 315, 6558, 468, 21, 2773, 16, 7734, 4144, 63, 950, 8009, 63, 19818, 27, 8009, 63, 53, 22, 8009, 63, 25, 20817, 16, 7734, 315, 1999, 468, 20, 30, 9035, 16, 6840, 21, 3113, 1408, 5411, 289, 10019, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3935, 1626, 4419, 6955, 14332, 22, 1435, 565, 288, 3639, 368, 14088, 10407, 3949, 628, 326, 740, 1427, 326, 783, 1509, 3639, 368, 353, 7877, 17, 24808, 358, 3214, 460, 316, 326, 2063, 1427, 732, 848, 1842, 326, 3639, 368, 5565, 4058, 3639, 1815, 1138, 1356, 12, 5411, 315, 4803, 288, 6562, 1626, 4419, 3816, 950, 6487, 315, 397, 5411, 7023, 63, 56, 77, 1695, 3501, 65, 19978, 63, 19818, 27, 65, 19978, 63, 53, 22, 65, 19978, 63, 25, 65, 2412, 16869, 315, 397, 5411, 315, 673, 5597, 19639, 4571, 306, 23729, 65, 3113, 5411, 11590, 12, 2704, 514, 8526, 288, 7734, 315, 6558, 468, 20, 2773, 16, 7734, 13034, 16, 7734, 315, 6558, 2 ]
int bucket = -1; boolean unloadable;
int bucket = -1;
protected Cacheable removeOne(Cacheable item) { Collection old; Lock lock; double rd = 0, minRd = -1; int bucket = -1; boolean unloadable; for (int i = 0; i < items.length; i++) { old = (Collection)items[i]; if (old == null) { bucket = i; break; } else { lock = old.getLock(); // calculate the reference density rd = old.getReferenceCount() / (double)(totalReferences - old.getTimestamp()); // attempt to acquire a read lock on the collection. // the collection is not considered for removal if the lock // cannot be acquired immediately. if(lock.attempt(Lock.READ_LOCK)) { if ((minRd < 0 || rd < minRd) && old.allowUnload()) { minRd = rd; bucket = i; } lock.release(); } } } old = (Collection)items[bucket]; if (old != null) { pool.getConfigurationManager().invalidate(old.getName()); map.remove(old.getKey()); names.remove(old.getName()); old.sync(true); } items[bucket] = item; map.put(item.getKey(), item); accounting.replacedPage(item); if (cacheManager != null && accounting.resizeNeeded()) { cacheManager.requestMem(this); accounting.stats(); } return old; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/e11cd588273eca2a8d1f16cc16b31e39c667c1ff/CollectionCache.java/buggy/src/org/exist/collections/CollectionCache.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4379, 429, 1206, 3335, 12, 1649, 429, 761, 13, 288, 202, 202, 2532, 1592, 31, 202, 202, 2531, 2176, 31, 202, 202, 9056, 9437, 273, 374, 16, 1131, 54, 72, 273, 300, 21, 31, 202, 202, 474, 2783, 273, 300, 21, 31, 202, 202, 6494, 27060, 429, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1516, 18, 2469, 31, 277, 27245, 288, 1082, 202, 1673, 273, 261, 2532, 13, 3319, 63, 77, 15533, 1082, 202, 430, 261, 1673, 422, 446, 13, 288, 9506, 202, 7242, 273, 277, 31, 9506, 202, 8820, 31, 1082, 202, 97, 469, 288, 9506, 202, 739, 273, 1592, 18, 588, 2531, 5621, 4405, 202, 759, 4604, 326, 2114, 12142, 6862, 202, 13623, 273, 25083, 202, 1673, 18, 588, 2404, 1380, 1435, 6862, 1082, 202, 19, 261, 9056, 21433, 4963, 8221, 300, 1592, 18, 588, 4921, 10663, 6862, 202, 759, 4395, 358, 10533, 279, 855, 2176, 603, 326, 1849, 18, 6862, 202, 759, 326, 1849, 353, 486, 7399, 364, 14817, 309, 326, 2176, 4405, 202, 759, 2780, 506, 20598, 7636, 18, 6862, 202, 430, 12, 739, 18, 11764, 12, 2531, 18, 6949, 67, 6589, 3719, 288, 25083, 202, 430, 14015, 1154, 54, 72, 411, 374, 747, 9437, 411, 1131, 54, 72, 13, 597, 1592, 18, 5965, 984, 945, 10756, 288, 6862, 1082, 202, 1154, 54, 72, 273, 9437, 31, 6862, 1082, 202, 7242, 273, 277, 31, 25083, 202, 97, 25083, 202, 739, 18, 9340, 5621, 6862, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4379, 429, 1206, 3335, 12, 1649, 429, 761, 13, 288, 202, 202, 2532, 1592, 31, 202, 202, 2531, 2176, 31, 202, 202, 9056, 9437, 273, 374, 16, 1131, 54, 72, 273, 300, 21, 31, 202, 202, 474, 2783, 273, 300, 21, 31, 202, 202, 6494, 27060, 429, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1516, 18, 2469, 31, 277, 27245, 288, 1082, 202, 1673, 273, 261, 2532, 13, 3319, 63, 77, 15533, 1082, 202, 430, 261, 1673, 422, 446, 13, 288, 9506, 202, 7242, 273, 277, 31, 9506, 202, 8820, 31, 1082, 202, 97, 469, 288, 9506, 202, 739, 273, 1592, 18, 588, 2531, 5621, 4405, 202, 759, 4604, 326, 2114, 2 ]
protected void openConnection(String host, int port, Properties info, String database, String url, Driver d) throws SQLException { // Throw an exception if the user or password properties are missing // This occasionally occurs when the client uses the properties version // of getConnection(), and is a common question on the email lists if(info.getProperty("user")==null) throw new PSQLException("postgresql.con.user"); if(info.getProperty("password")==null) throw new PSQLException("postgresql.con.pass"); this_driver = d; this_url = url; PG_DATABASE = database; PG_PASSWORD = info.getProperty("password"); PG_USER = info.getProperty("user"); PG_PORT = port; PG_HOST = host; PG_STATUS = CONNECTION_BAD; // Now make the initial connection try { pg_stream = new PG_Stream(host, port); } catch (ConnectException cex) { // Added by Peter Mount <peter@retep.org.uk> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed",e); } // Now we need to construct and send a startup packet try { // Ver 6.3 code pg_stream.SendInteger(4+4+SM_DATABASE+SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY,4); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MAJOR,2); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MINOR,2); pg_stream.Send(database.getBytes(),SM_DATABASE); // This last send includes the unused fields pg_stream.Send(PG_USER.getBytes(),SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY); // now flush the startup packets to the backend pg_stream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new SQLException(pg_stream.ReceiveString (receive_sbuf, 4096, getEncoding())); case 'R': // Get the type of request areq = pg_stream.ReceiveIntegerR(4); // Get the password salt if there is one if(areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pg_stream.ReceiveChar(); rst[1] = (byte)pg_stream.ReceiveChar(); salt = new String(rst,0,2); DriverManager.println("Salt="+salt); } // now send the auth packet switch(areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: DriverManager.println("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: DriverManager.println("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: DriverManager.println("postgresql: PASSWORD"); pg_stream.SendInteger(5+PG_PASSWORD.length(),4); pg_stream.Send(PG_PASSWORD.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; case AUTH_REQ_CRYPT: DriverManager.println("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt,PG_PASSWORD); pg_stream.SendInteger(5+crypted.length(),4); pg_stream.Send(crypted.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; default: throw new PSQLException("postgresql.con.auth",new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while(areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed",e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'K': pid = pg_stream.ReceiveInteger(4); ckey = pg_stream.ReceiveInteger(4); break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString (receive_sbuf, 4096, getEncoding())); default: throw new PSQLException("postgresql.con.setup"); } // Expect ReadyForQuery packet beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'Z': break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(receive_sbuf, 4096, getEncoding())); default: throw new PSQLException("postgresql.con.setup"); } // Originally we issued a SHOW DATESTYLE statement to find the databases default // datestyle. However, this caused some problems with timestamps, so in 6.5, we // went the way of ODBC, and set the connection to ISO. // // This may cause some clients to break when they assume anything other than ISO, // but then - they should be using the proper methods ;-) // // We also ask the DB for certain properties (i.e. DatabaseEncoding at this time) // firstWarning = null; java.sql.ResultSet initrset = ExecSQL("set datestyle to 'ISO'; select getdatabaseencoding()"); String dbEncoding = null; //retrieve DB properties if(initrset.next()) { //handle DatabaseEncoding dbEncoding = initrset.getString(1); //convert from the PostgreSQL name to the Java name if (dbEncoding.equals("SQL_ASCII")) { dbEncoding = "ASCII"; } else if (dbEncoding.equals("UNICODE")) { dbEncoding = "UTF8"; } else if (dbEncoding.equals("LATIN1")) { dbEncoding = "ISO8859_1"; } else if (dbEncoding.equals("LATIN2")) { dbEncoding = "ISO8859_2"; } else if (dbEncoding.equals("LATIN3")) { dbEncoding = "ISO8859_3"; } else if (dbEncoding.equals("LATIN4")) { dbEncoding = "ISO8859_4"; } else if (dbEncoding.equals("LATIN5")) { dbEncoding = "ISO8859_5"; } else if (dbEncoding.equals("LATIN6")) { dbEncoding = "ISO8859_6"; } else if (dbEncoding.equals("LATIN7")) { dbEncoding = "ISO8859_7"; } else if (dbEncoding.equals("LATIN8")) { dbEncoding = "ISO8859_8"; } else if (dbEncoding.equals("LATIN9")) { dbEncoding = "ISO8859_9"; } else if (dbEncoding.equals("EUC_JP")) { dbEncoding = "EUC_JP"; } else if (dbEncoding.equals("EUC_CN")) { dbEncoding = "EUC_CN"; } else if (dbEncoding.equals("EUC_KR")) { dbEncoding = "EUC_KR"; } else if (dbEncoding.equals("EUC_TW")) { dbEncoding = "EUC_TW"; } else if (dbEncoding.equals("KOI8")) { dbEncoding = "KOI8_R"; } else if (dbEncoding.equals("WIN")) { dbEncoding = "Cp1252"; } else { dbEncoding = null; } } //Set the encoding for this connection //Since the encoding could be specified or obtained from the DB we use the //following order: // 1. passed as a property // 2. value from DB if supported by current JVM // 3. default for JVM (leave encoding null) String passedEncoding = info.getProperty("charSet"); // could be null if (passedEncoding != null) { encoding = passedEncoding; } else { if (dbEncoding != null) { //test DB encoding try { "TEST".getBytes(dbEncoding); //no error the encoding is supported by the current JVM encoding = dbEncoding; } catch (UnsupportedEncodingException uee) { //dbEncoding is not supported by the current JVM encoding = null; } } else { encoding = null; } } // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup firstWarning = null; PG_STATUS = CONNECTION_OK; }
46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/45b5d792afa60ae24d57cdceaaec0e03cf6abb2a/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24982, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 9396, 302, 13, 1216, 6483, 565, 288, 565, 368, 3743, 392, 1520, 309, 326, 729, 578, 2201, 1790, 854, 3315, 565, 368, 1220, 9145, 345, 285, 1230, 9938, 1347, 326, 1004, 4692, 326, 1790, 1177, 565, 368, 434, 6742, 9334, 471, 353, 279, 2975, 5073, 603, 326, 2699, 6035, 565, 309, 12, 1376, 18, 588, 1396, 2932, 1355, 7923, 631, 2011, 13, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 1355, 8863, 565, 309, 12, 1376, 18, 588, 1396, 2932, 3664, 7923, 631, 2011, 13, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 5466, 8863, 3639, 333, 67, 7407, 273, 302, 31, 565, 333, 67, 718, 273, 880, 31, 565, 22116, 67, 22366, 273, 2063, 31, 565, 22116, 67, 13784, 273, 1123, 18, 588, 1396, 2932, 3664, 8863, 565, 22116, 67, 4714, 273, 1123, 18, 588, 1396, 2932, 1355, 8863, 565, 22116, 67, 6354, 273, 1756, 31, 565, 22116, 67, 8908, 273, 1479, 31, 565, 22116, 67, 8608, 273, 20695, 67, 16234, 31, 565, 368, 4494, 1221, 326, 2172, 1459, 565, 775, 1377, 288, 202, 8365, 67, 3256, 273, 394, 22116, 67, 1228, 12, 2564, 16, 1756, 1769, 1377, 289, 1044, 261, 5215, 503, 276, 338, 13, 288, 202, 759, 25808, 635, 453, 847, 13076, 411, 84, 847, 36, 266, 736, 84, 18, 3341, 18, 19445, 34, 202, 759, 8289, 503, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24982, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 9396, 302, 13, 1216, 6483, 565, 288, 565, 368, 3743, 392, 1520, 309, 326, 729, 578, 2201, 1790, 854, 3315, 565, 368, 1220, 9145, 345, 285, 1230, 9938, 1347, 326, 1004, 4692, 326, 1790, 1177, 565, 368, 434, 6742, 9334, 471, 353, 279, 2975, 5073, 603, 326, 2699, 6035, 565, 309, 12, 1376, 18, 588, 1396, 2932, 1355, 7923, 631, 2011, 13, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 1355, 8863, 565, 309, 12, 1376, 18, 588, 1396, 2932, 3664, 7923, 631, 2011, 13, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 2 ]
while ((count = in.read(buf, count, amountToRead)) > 0){
while ((count = in.read(buf, amountRead, buf.length-amountRead)) > 0){
public static byte [] readToEnd(InputStream in) throws IOException{ byte [] buf = new byte[2048]; int amountToRead = buf.length; int amountRead = 0; int count = 0; while ((count = in.read(buf, count, amountToRead)) > 0){ amountRead += count; amountToRead -= count; if (amountRead == buf.length){ byte [] oldBuf = buf; buf = new byte[oldBuf.length*2]; System.arraycopy(oldBuf, 0, buf, 0, amountRead); } } byte [] arr = new byte[amountRead]; System.arraycopy(buf, 0, arr, 0, amountRead); return arr; }
1161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1161/0b79846b0f1e95070f6a6cd01ca9bf49b48f0eaf/IOUtilities.java/buggy/src/free/util/IOUtilities.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1160, 5378, 855, 774, 1638, 12, 4348, 316, 13, 1216, 1860, 95, 565, 1160, 5378, 1681, 273, 394, 1160, 63, 21573, 28, 15533, 565, 509, 3844, 23321, 273, 1681, 18, 2469, 31, 565, 509, 3844, 1994, 273, 374, 31, 565, 509, 1056, 273, 374, 31, 565, 1323, 14015, 1883, 273, 316, 18, 896, 12, 4385, 16, 3844, 1994, 16, 1681, 18, 2469, 17, 8949, 1994, 3719, 405, 374, 15329, 1377, 3844, 1994, 1011, 1056, 31, 1377, 3844, 23321, 3947, 1056, 31, 1377, 309, 261, 8949, 1994, 422, 1681, 18, 2469, 15329, 3639, 1160, 5378, 1592, 5503, 273, 1681, 31, 3639, 1681, 273, 394, 1160, 63, 1673, 5503, 18, 2469, 14, 22, 15533, 3639, 2332, 18, 1126, 3530, 12, 1673, 5503, 16, 374, 16, 1681, 16, 374, 16, 3844, 1994, 1769, 1377, 289, 565, 289, 565, 1160, 5378, 2454, 273, 394, 1160, 63, 8949, 1994, 15533, 565, 2332, 18, 1126, 3530, 12, 4385, 16, 374, 16, 2454, 16, 374, 16, 3844, 1994, 1769, 565, 327, 2454, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1160, 5378, 855, 774, 1638, 12, 4348, 316, 13, 1216, 1860, 95, 565, 1160, 5378, 1681, 273, 394, 1160, 63, 21573, 28, 15533, 565, 509, 3844, 23321, 273, 1681, 18, 2469, 31, 565, 509, 3844, 1994, 273, 374, 31, 565, 509, 1056, 273, 374, 31, 565, 1323, 14015, 1883, 273, 316, 18, 896, 12, 4385, 16, 3844, 1994, 16, 1681, 18, 2469, 17, 8949, 1994, 3719, 405, 374, 15329, 1377, 3844, 1994, 1011, 1056, 31, 1377, 3844, 23321, 3947, 1056, 31, 1377, 309, 261, 8949, 1994, 422, 1681, 18, 2469, 15329, 3639, 1160, 5378, 1592, 5503, 273, 1681, 31, 3639, 1681, 273, 394, 1160, 63, 1673, 5503, 18, 2469, 14, 22, 15533, 3639, 2332, 18, 1126, 2 ]
IndexSearcher searcher = new IndexSearcher( ConfigurationManager.getProperty("search.dir"));
Searcher searcher = getSearcher( ConfigurationManager.getProperty("search.dir") );
public static synchronized HashMap doQuery(Context c, String querystring) throws IOException { querystring = checkEmptyQuery( querystring ); querystring = workAroundLuceneBug( querystring ); querystring = stripHandles( querystring ); ArrayList resultlist= new ArrayList(); ArrayList itemlist = new ArrayList(); ArrayList commlist = new ArrayList(); ArrayList colllist = new ArrayList(); HashMap metahash = new HashMap(); // initial results are empty metahash.put(ALL, resultlist); metahash.put(ITEM, itemlist ); metahash.put(COLLECTION,colllist ); metahash.put(COMMUNITY, commlist ); try { IndexSearcher searcher = new IndexSearcher( ConfigurationManager.getProperty("search.dir")); QueryParser qp = new QueryParser("default", new DSAnalyzer()); Query myquery = qp.parse(querystring); Hits hits = searcher.search(myquery); for (int i = 0; i < hits.length(); i++) { Document d = hits.doc(i); String handletext = d.get("handle"); String handletype = d.get("type"); resultlist.add(handletext); if (handletype.equals(ITEM)) { itemlist.add(handletext); } else if (handletype.equals(COLLECTION)) { colllist.add(handletext); } else if (handletype.equals(COMMUNITY)) { commlist.add(handletext); break; } } // close the IndexSearcher - and all its filehandles searcher.close(); // store all of the different types of hits in the hash metahash.put(ALL, resultlist); metahash.put(ITEM, itemlist ); metahash.put(COLLECTION,colllist ); metahash.put(COMMUNITY, commlist ); } catch (NumberFormatException e) { // a bad parse means that there are no results // doing nothing with the exception gets you // throw new SQLException( "Error parsing search results: " + e ); // ?? quit? } catch (ParseException e) { // a parse exception - log and return null results log.warn(LogManager.getHeader(c, "Lucene Parse Exception", "" + e)); } return metahash; }
49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/8f858d84dc2fcea79f7852722d5a8a3ed610ba7d/DSQuery.java/clean/dspace/src/org/dspace/search/DSQuery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3852, 4317, 741, 1138, 12, 1042, 276, 16, 514, 20741, 13, 3639, 1216, 1860, 565, 288, 3639, 20741, 273, 866, 1921, 1138, 12, 20741, 11272, 3639, 20741, 273, 1440, 30022, 19763, 19865, 12, 20741, 11272, 3639, 20741, 273, 2569, 8788, 12, 20741, 11272, 27573, 2407, 563, 1098, 33, 394, 2407, 5621, 3639, 2407, 761, 1098, 225, 202, 33, 394, 2407, 5621, 3639, 2407, 532, 781, 376, 225, 202, 33, 394, 2407, 5621, 3639, 2407, 4508, 1098, 225, 202, 33, 394, 2407, 5621, 3639, 4317, 282, 2191, 2816, 225, 202, 33, 394, 4317, 5621, 3639, 368, 2172, 1686, 854, 1008, 3639, 2191, 2816, 18, 458, 12, 4685, 16, 4202, 563, 1098, 1769, 3639, 2191, 2816, 18, 458, 12, 12674, 16, 1377, 761, 1098, 225, 11272, 3639, 2191, 2816, 18, 458, 12, 25964, 16, 12910, 1098, 225, 11272, 3639, 2191, 2816, 18, 458, 12, 4208, 49, 2124, 4107, 16, 532, 781, 376, 225, 11272, 3639, 775, 3639, 288, 5411, 3340, 2979, 264, 27349, 273, 394, 3340, 2979, 264, 12, 7734, 4659, 1318, 18, 588, 1396, 2932, 3072, 18, 1214, 7923, 1769, 5411, 2770, 2678, 22859, 273, 394, 2770, 2678, 2932, 1886, 3113, 394, 8678, 12803, 10663, 5411, 2770, 3399, 2271, 273, 22859, 18, 2670, 12, 2271, 1080, 1769, 5411, 670, 1282, 11076, 273, 27349, 18, 3072, 12, 4811, 2271, 1769, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 11076, 18, 2469, 5621, 277, 27245, 5411, 288, 7734, 4319, 302, 273, 11076, 18, 2434, 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, 760, 3852, 4317, 741, 1138, 12, 1042, 276, 16, 514, 20741, 13, 3639, 1216, 1860, 565, 288, 3639, 20741, 273, 866, 1921, 1138, 12, 20741, 11272, 3639, 20741, 273, 1440, 30022, 19763, 19865, 12, 20741, 11272, 3639, 20741, 273, 2569, 8788, 12, 20741, 11272, 27573, 2407, 563, 1098, 33, 394, 2407, 5621, 3639, 2407, 761, 1098, 225, 202, 33, 394, 2407, 5621, 3639, 2407, 532, 781, 376, 225, 202, 33, 394, 2407, 5621, 3639, 2407, 4508, 1098, 225, 202, 33, 394, 2407, 5621, 3639, 4317, 282, 2191, 2816, 225, 202, 33, 394, 4317, 5621, 3639, 368, 2172, 1686, 854, 1008, 3639, 2191, 2816, 18, 458, 12, 4685, 16, 4202, 563, 1098, 1769, 3639, 2191, 2816, 18, 458, 2 ]
if( sdw.getTypeSpecifier() instanceof IASTSimpleTypeSpecifier ) ((IASTSimpleTypeSpecifier)sdw.getTypeSpecifier()).releaseReferences( astFactory.getReferenceManager() ); if ( !( declaration instanceof IASTScope ) ) throwBacktrack(firstOffset, endOffset, firstLine, fn); handleFunctionBody((IASTScope)declaration ); ((IASTOffsetableElement)declaration).setEndingOffsetAndLineNumber( lastToken.getEndOffset(), lastToken.getLineNumber()); declaration.exitScope( requestor, astFactory.getReferenceManager() );
try { if( sdw.getTypeSpecifier() instanceof IASTSimpleTypeSpecifier ) ((IASTSimpleTypeSpecifier)sdw.getTypeSpecifier()).releaseReferences( astFactory.getReferenceManager() ); if ( !( declaration instanceof IASTScope ) ) throwBacktrack(firstOffset, endOffset, firstLine, fn); handleFunctionBody((IASTScope)declaration ); ((IASTOffsetableElement)declaration).setEndingOffsetAndLineNumber( lastToken.getEndOffset(), lastToken.getLineNumber()); } finally { declaration.exitScope( requestor, astFactory.getReferenceManager() ); }
protected IASTDeclaration simpleDeclaration( SimpleDeclarationStrategy strategy, IASTScope scope, IASTTemplate ownerTemplate, CompletionKind overideKind, boolean fromCatchHandler, KeywordSetKey overrideKey) throws BacktrackException, EndOfFileException { IToken firstToken = LA(1); int firstOffset = firstToken.getOffset(); int firstLine = firstToken.getLineNumber(); char [] fn = firstToken.getFilename(); if( firstToken.getType() == IToken.tLBRACE ) throwBacktrack(firstToken.getOffset(), firstToken.getEndOffset(), firstToken.getLineNumber(), firstToken.getFilename()); DeclarationWrapper sdw = new DeclarationWrapper(scope, firstToken.getOffset(), firstToken.getLineNumber(), ownerTemplate, fn); firstToken = null; // necessary for scalability CompletionKind completionKindForDeclaration = getCompletionKindForDeclaration(scope, overideKind); setCompletionValues( scope, completionKindForDeclaration, KeywordSetKey.DECL_SPECIFIER_SEQUENCE ); declSpecifierSeq(sdw, false, strategy == SimpleDeclarationStrategy.TRY_CONSTRUCTOR, completionKindForDeclaration, overrideKey ); IASTSimpleTypeSpecifier simpleTypeSpecifier = null; if (sdw.getTypeSpecifier() == null && sdw.getSimpleType() != IASTSimpleTypeSpecifier.Type.UNSPECIFIED ) try { simpleTypeSpecifier = astFactory.createSimpleTypeSpecifier( scope, sdw.getSimpleType(), sdw.getName(), sdw.isShort(), sdw.isLong(), sdw.isSigned(), sdw.isUnsigned(), sdw.isTypeNamed(), sdw.isComplex(), sdw.isImaginary(), sdw.isGloballyQualified(), sdw.getExtensionParameters()); sdw.setTypeSpecifier( simpleTypeSpecifier); sdw.setTypeName( null ); } catch (Exception e1) { int endOffset = ( lastToken != null ) ? lastToken.getEndOffset() : 0 ; logException( "simpleDeclaration:createSimpleTypeSpecifier", e1 ); //$NON-NLS-1$ if( e1 instanceof ASTSemanticException && ((ASTSemanticException)e1).getProblem() != null ) throwBacktrack(((ASTSemanticException)e1).getProblem()); else throwBacktrack(firstOffset, endOffset, firstLine, fn); } try { Declarator declarator = null; if (LT(1) != IToken.tSEMI) { declarator = initDeclarator(sdw, strategy, completionKindForDeclaration, constructInitializersInDeclarations ); while (LT(1) == IToken.tCOMMA) { consume(); initDeclarator(sdw, strategy, completionKindForDeclaration, constructInitializersInDeclarations ); } } boolean hasFunctionBody = false; boolean hasFunctionTryBlock = false; boolean consumedSemi = false; switch (LT(1)) { case IToken.tSEMI : consume(IToken.tSEMI); consumedSemi = true; break; case IToken.t_try : consume( IToken.t_try ); if( LT(1) == IToken.tCOLON ) ctorInitializer( declarator ); hasFunctionTryBlock = true; declarator.setFunctionTryBlock( true ); break; case IToken.tCOLON : ctorInitializer(declarator); break; case IToken.tLBRACE: break; case IToken.tRPAREN: if( ! fromCatchHandler ) throwBacktrack(firstOffset, LA(1).getEndOffset(), LA(1).getLineNumber(), fn); break; default: throwBacktrack(firstOffset, LA(1).getEndOffset(), LA(1).getLineNumber(), fn); } if( ! consumedSemi ) { if( LT(1) == IToken.tLBRACE ) { declarator.setHasFunctionBody(true); hasFunctionBody = true; } if( hasFunctionTryBlock && ! hasFunctionBody ) throwBacktrack(firstOffset, LA(1).getEndOffset(), LA(1).getLineNumber(), fn); } int endOffset = ( lastToken != null ) ? lastToken.getEndOffset() : 0 ; List l = null; try { l = sdw.createASTNodes(astFactory); } catch (ASTSemanticException e) { if( e.getProblem() == null ) { IProblem p = problemFactory.createProblem( IProblem.SYNTAX_ERROR, sdw.getStartingOffset(), lastToken != null ? lastToken.getEndOffset() : 0, sdw.getStartingLine(), fn, EMPTY_STRING, false, true ); throwBacktrack( p ); } else { throwBacktrack(e.getProblem()); } } catch( Exception e ) { logException( "simpleDecl", e ); //$NON-NLS-1$ throwBacktrack(firstOffset, endOffset, firstLine, fn); } if (hasFunctionBody && l.size() != 1) { throwBacktrack(firstOffset, endOffset, firstLine, fn); //TODO Should be an IProblem } if (!l.isEmpty()) // no need to do this unless we have a declarator { if (!hasFunctionBody || fromCatchHandler) { IASTDeclaration declaration = null; for( int i = 0; i < l.size(); ++i ) { declaration = (IASTDeclaration)l.get(i); ((IASTOffsetableElement)declaration).setEndingOffsetAndLineNumber( lastToken.getEndOffset(), lastToken.getLineNumber()); declaration.acceptElement( requestor, astFactory.getReferenceManager() ); if( sdw.getTypeSpecifier() instanceof IASTSimpleTypeSpecifier ) ((IASTSimpleTypeSpecifier)sdw.getTypeSpecifier()).releaseReferences( astFactory.getReferenceManager() ); } return declaration; } IASTDeclaration declaration = (IASTDeclaration)l.get(0); endDeclaration( declaration ); declaration.enterScope( requestor, astFactory.getReferenceManager() ); if( sdw.getTypeSpecifier() instanceof IASTSimpleTypeSpecifier ) ((IASTSimpleTypeSpecifier)sdw.getTypeSpecifier()).releaseReferences( astFactory.getReferenceManager() ); if ( !( declaration instanceof IASTScope ) ) throwBacktrack(firstOffset, endOffset, firstLine, fn); handleFunctionBody((IASTScope)declaration ); ((IASTOffsetableElement)declaration).setEndingOffsetAndLineNumber( lastToken.getEndOffset(), lastToken.getLineNumber()); declaration.exitScope( requestor, astFactory.getReferenceManager() ); if( hasFunctionTryBlock ) catchHandlerSequence( scope ); return declaration; } try { if( sdw.getTypeSpecifier() != null ) { IASTAbstractTypeSpecifierDeclaration declaration = astFactory.createTypeSpecDeclaration( sdw.getScope(), sdw.getTypeSpecifier(), ownerTemplate, sdw.getStartingOffset(), sdw.getStartingLine(), lastToken.getEndOffset(), lastToken.getLineNumber(), sdw.isFriend(), lastToken.getFilename()); declaration.acceptElement(requestor, astFactory.getReferenceManager()); return declaration; } } catch (Exception e1) { logException( "simpleDeclaration:createTypeSpecDeclaration", e1 ); //$NON-NLS-1$ throwBacktrack(firstOffset, endOffset, firstLine, fn); } return null; } catch( BacktrackException be ) { if( simpleTypeSpecifier != null ) simpleTypeSpecifier.releaseReferences(astFactory.getReferenceManager()); throwBacktrack(be); return null; } catch( EndOfFileException eof ) { if( simpleTypeSpecifier != null ) simpleTypeSpecifier.releaseReferences(astFactory.getReferenceManager()); throw eof; } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/903d1ac7a89ce402e80c5c3f7a46d78291b0ffd1/Parser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 467, 9053, 6094, 4143, 6094, 12, 3639, 4477, 6094, 4525, 6252, 16, 3639, 467, 9053, 3876, 2146, 16, 3639, 467, 9053, 2283, 3410, 2283, 16, 20735, 5677, 1879, 831, 5677, 16, 1250, 628, 14842, 1503, 16, 18317, 30267, 3849, 653, 13, 3639, 1216, 4297, 4101, 503, 16, 4403, 951, 812, 503, 565, 288, 377, 202, 1285, 969, 1122, 1345, 273, 2928, 12, 21, 1769, 377, 202, 474, 1122, 2335, 273, 1122, 1345, 18, 588, 2335, 5621, 377, 202, 474, 24415, 273, 1122, 1345, 18, 588, 31063, 5621, 377, 202, 3001, 5378, 2295, 273, 1122, 1345, 18, 588, 5359, 5621, 377, 202, 430, 12, 1122, 1345, 18, 588, 559, 1435, 225, 422, 467, 1345, 18, 88, 12995, 9254, 262, 604, 2711, 4101, 12, 3645, 1345, 18, 588, 2335, 9334, 1122, 1345, 18, 588, 1638, 2335, 9334, 1122, 1345, 18, 588, 31063, 9334, 1122, 1345, 18, 588, 5359, 10663, 3639, 16110, 4302, 3611, 8349, 91, 273, 5411, 394, 16110, 4302, 3611, 12, 4887, 16, 1122, 1345, 18, 588, 2335, 9334, 1122, 1345, 18, 588, 31063, 9334, 3410, 2283, 16, 2295, 1769, 3639, 1122, 1345, 273, 446, 31, 368, 4573, 364, 8292, 2967, 3639, 20735, 5677, 8364, 5677, 1290, 6094, 273, 336, 11238, 5677, 1290, 6094, 12, 4887, 16, 1879, 831, 5677, 1769, 202, 202, 542, 11238, 1972, 12, 2146, 16, 8364, 5677, 1290, 6094, 16, 18317, 30267, 18, 23956, 67, 13847, 10591, 67, 25330, 11272, 3639, 3496, 21416, 6926, 12, 6427, 91, 16, 629, 16, 6252, 422, 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, 467, 9053, 6094, 4143, 6094, 12, 3639, 4477, 6094, 4525, 6252, 16, 3639, 467, 9053, 3876, 2146, 16, 3639, 467, 9053, 2283, 3410, 2283, 16, 20735, 5677, 1879, 831, 5677, 16, 1250, 628, 14842, 1503, 16, 18317, 30267, 3849, 653, 13, 3639, 1216, 4297, 4101, 503, 16, 4403, 951, 812, 503, 565, 288, 377, 202, 1285, 969, 1122, 1345, 273, 2928, 12, 21, 1769, 377, 202, 474, 1122, 2335, 273, 1122, 1345, 18, 588, 2335, 5621, 377, 202, 474, 24415, 273, 1122, 1345, 18, 588, 31063, 5621, 377, 202, 3001, 5378, 2295, 273, 1122, 1345, 18, 588, 5359, 5621, 377, 202, 430, 12, 1122, 1345, 18, 588, 559, 1435, 225, 422, 467, 1345, 18, 88, 12995, 9254, 2 ]
retValue = fExtraDVs[DT_QNAME].validate(token, schemaDoc.fValidationContext); retValue = resolveQName(token, schemaDoc); memberType.addElement(retValue);
QName qname = (QName)fExtraDVs[DT_QNAME].validate(token, schemaDoc.fValidationContext, null); if(qname.prefix == fSchemaHandler.EMPTY_STRING && qname.uri == null && schemaDoc.fIsChameleonSchema) qname.uri = schemaDoc.fTargetNamespace; memberType.addElement(qname);
private Object validate(String attr, String ivalue, int dvIndex, XSDocumentInfo schemaDoc) throws InvalidDatatypeValueException { if (ivalue == null) return null; String value = normalize(ivalue, DatatypeValidator.COLLAPSE); Object retValue = value; Vector memberType; int choice; switch (dvIndex) { case DT_BOOLEAN: if (value.equals(SchemaSymbols.ATTVAL_FALSE) || value.equals(SchemaSymbols.ATTVAL_FALSE_0)) { retValue = Boolean.FALSE; } else if (value.equals(SchemaSymbols.ATTVAL_TRUE) || value.equals(SchemaSymbols.ATTVAL_TRUE_1)) { retValue = Boolean.TRUE; } else { throw new InvalidDatatypeValueException("the value '"+value+"' is not a valid boolean"); } break; case DT_NONNEGINT: try { retValue = fXIntPool.getXInt(Integer.parseInt(value)); } catch (NumberFormatException e) { throw new InvalidDatatypeValueException("the value '"+value+"' is not a valid nonNegativeInteger"); } if (((XInt)retValue).intValue() < 0) throw new InvalidDatatypeValueException("the value '"+value+"' is not a valid nonNegativeInteger"); break; case DT_BLOCK: // block = (#all | List of (substitution | extension | restriction | list | union)) choice = 0; if (value.equals (SchemaSymbols.ATTVAL_POUNDALL)) { choice = SchemaSymbols.SUBSTITUTION|SchemaSymbols.EXTENSION| SchemaSymbols.RESTRICTION|SchemaSymbols.LIST| SchemaSymbols.UNION; } else { StringTokenizer t = new StringTokenizer (value, " "); while (t.hasMoreTokens()) { String token = t.nextToken (); if (token.equals (SchemaSymbols.ATTVAL_SUBSTITUTION)) { choice |= SchemaSymbols.SUBSTITUTION; } else if (token.equals (SchemaSymbols.ATTVAL_EXTENSION)) { choice |= SchemaSymbols.EXTENSION; } else if (token.equals (SchemaSymbols.ATTVAL_RESTRICTION)) { choice |= SchemaSymbols.RESTRICTION; } else if (token.equals (SchemaSymbols.ATTVAL_LIST)) { choice |= SchemaSymbols.LIST; } else if (token.equals (SchemaSymbols.ATTVAL_UNION)) { choice |= SchemaSymbols.RESTRICTION; } else { throw new InvalidDatatypeValueException("the value '"+value+"' must match (#all | List of (substitution | extension | restriction | list | union))"); } } } retValue = fXIntPool.getXInt(choice); break; case DT_BLOCK1: case DT_FINAL: // block = (#all | List of (extension | restriction)) // final = (#all | List of (extension | restriction)) choice = 0; if (value.equals (SchemaSymbols.ATTVAL_POUNDALL)) { //choice = SchemaSymbols.EXTENSION|SchemaSymbols.RESTRICTION; // REVISIT: if #all, then make the result the combination of // everything: substitution/externsion/restriction/list/union. // would this be a problem? // the reason doing so is that when final/blockFinal on <schema> // is #all, it's not always the same as the conbination of those // values allowed by final/blockFinal. // for example, finalDefault="#all" is not always the same as // finalDefault="extension restriction". // if finalDefault="#all", final on any simple type would be // "extension restriction list union". choice = SchemaSymbols.SUBSTITUTION|SchemaSymbols.EXTENSION| SchemaSymbols.RESTRICTION|SchemaSymbols.LIST| SchemaSymbols.UNION; } else { StringTokenizer t = new StringTokenizer (value, " "); while (t.hasMoreTokens()) { String token = t.nextToken (); if (token.equals (SchemaSymbols.ATTVAL_EXTENSION)) { choice |= SchemaSymbols.EXTENSION; } else if (token.equals (SchemaSymbols.ATTVAL_RESTRICTION)) { choice |= SchemaSymbols.RESTRICTION; } else { throw new InvalidDatatypeValueException("the value '"+value+"' must match (#all | List of (extension | restriction))"); } } } retValue = fXIntPool.getXInt(choice); break; case DT_FINAL1: // final = (#all | (list | union | restriction)) choice = 0; if (value.equals (SchemaSymbols.ATTVAL_POUNDALL)) { //choice = SchemaSymbols.RESTRICTION|SchemaSymbols.LIST| // SchemaSymbols.UNION; // REVISIT: if #all, then make the result the combination of // everything: substitution/externsion/restriction/list/union. // would this be a problem? // same reason as above DT_BLOCK1/DT_FINAL choice = SchemaSymbols.SUBSTITUTION|SchemaSymbols.EXTENSION| SchemaSymbols.RESTRICTION|SchemaSymbols.LIST| SchemaSymbols.UNION; } else if (value.equals (SchemaSymbols.ATTVAL_LIST)) { choice = SchemaSymbols.LIST; } else if (value.equals (SchemaSymbols.ATTVAL_UNION)) { choice = SchemaSymbols.UNION; } else if (value.equals (SchemaSymbols.ATTVAL_RESTRICTION)) { choice = SchemaSymbols.RESTRICTION; } else { throw new InvalidDatatypeValueException("the value '"+value+"' must match (#all | (list | union | restriction))"); } retValue = fXIntPool.getXInt(choice); break; case DT_FORM: // form = (qualified | unqualified) if (value.equals (SchemaSymbols.ATTVAL_QUALIFIED)) retValue = INT_QUALIFIED; else if (value.equals (SchemaSymbols.ATTVAL_UNQUALIFIED)) retValue = INT_UNQUALIFIED; else throw new InvalidDatatypeValueException("the value '"+value+"' must match (qualified | unqualified)"); break; case DT_MAXOCCURS: // maxOccurs = (nonNegativeInteger | unbounded) if (value.equals(SchemaSymbols.ATTVAL_UNBOUNDED)) { retValue = INT_UNBOUNDED; } else { try { retValue = validate(attr, value, DT_NONNEGINT, schemaDoc); } catch (NumberFormatException e) { throw new InvalidDatatypeValueException("the value '"+value+"' must match (nonNegativeInteger | unbounded)"); } } break; case DT_MAXOCCURS1: // maxOccurs = 1 if (value.equals("1")) retValue = fXIntPool.getXInt(1); else throw new InvalidDatatypeValueException("the value '"+value+"' must be '1'"); break; case DT_MEMBERTYPES: // memberTypes = List of QName memberType = new Vector(); try { StringTokenizer t = new StringTokenizer (value, " "); while (t.hasMoreTokens()) { String token = t.nextToken (); retValue = fExtraDVs[DT_QNAME].validate(token, schemaDoc.fValidationContext); // REVISIT: should have the datatype validators return // the object representation of the value. retValue = resolveQName(token, schemaDoc); memberType.addElement(retValue); } retValue = memberType; } catch (InvalidDatatypeValueException ide) { throw new InvalidDatatypeValueException("the value '"+value+"' must match (List of QName)"); } break; case DT_MINOCCURS1: // minOccurs = (0 | 1) if (value.equals("0")) retValue = fXIntPool.getXInt(0); else if (value.equals("1")) retValue = fXIntPool.getXInt(1); else throw new InvalidDatatypeValueException("the value '"+value+"' must be '0' or '1'"); break; case DT_NAMESPACE: // namespace = ((##any | ##other) | List of (anyURI | (##targetNamespace | ##local)) ) XSWildcardDecl wildcard = null; if (value.equals(SchemaSymbols.ATTVAL_TWOPOUNDANY)) { // ##any wildcard = WC_ANY; } else if (value.equals(SchemaSymbols.ATTVAL_TWOPOUNDOTHER)) { // ##other wildcard = new XSWildcardDecl(); wildcard.fType = XSWildcardDecl.WILDCARD_OTHER; wildcard.fNamespaceList = new String[2]; wildcard.fNamespaceList[0] = schemaDoc.fTargetNamespace; wildcard.fNamespaceList[1] = null; } else { // list wildcard = new XSWildcardDecl(); wildcard.fType = XSWildcardDecl.WILDCARD_LIST; // tokenize StringTokenizer tokens = new StringTokenizer(value); String[] namespaceList = new String[tokens.countTokens()]; int nsNum = 0; String token; String tempNamespace; try { while (tokens.hasMoreTokens()) { token = tokens.nextToken(); if (token.equals(SchemaSymbols.ATTVAL_TWOPOUNDLOCAL)) { tempNamespace = null; } else if (token.equals(SchemaSymbols.ATTVAL_TWOPOUNDTARGETNS)) { tempNamespace = schemaDoc.fTargetNamespace; } else { // we have found namespace URI here // need to add it to the symbol table fExtraDVs[DT_ANYURI].validate(token, schemaDoc.fValidationContext); tempNamespace = fSymbolTable.addSymbol(token); } //check for duplicate namespaces in the list int j = 0; for (; j < nsNum; j++) { if (tempNamespace == namespaceList[j]) break; } if (j == nsNum) { // this means traversed whole for loop // i.e. not a duplicate namespace namespaceList[nsNum++] = tempNamespace; } } } catch (InvalidDatatypeValueException ide) { throw new InvalidDatatypeValueException("the value '"+value+"' must match ((##any | ##other) | List of (anyURI | (##targetNamespace | ##local)) )"); } // resize the array, so there is no empty entry if (nsNum == namespaceList.length) { wildcard.fNamespaceList = namespaceList; } else { wildcard.fNamespaceList = new String[nsNum]; System.arraycopy(namespaceList, 0, wildcard.fNamespaceList, 0, nsNum); } } retValue = wildcard; break; case DT_PROCESSCONTENTS: // processContents = (lax | skip | strict) if (value.equals (SchemaSymbols.ATTVAL_STRICT)) retValue = INT_ANY_STRICT; else if (value.equals (SchemaSymbols.ATTVAL_LAX)) retValue = INT_ANY_LAX; else if (value.equals (SchemaSymbols.ATTVAL_SKIP)) retValue = INT_ANY_SKIP; else throw new InvalidDatatypeValueException("the value '"+value+"' must match (lax | skip | strict)"); break; case DT_PUBLIC: // public = A public identifier, per ISO 8879 // REVISIT: how to validate "public"??? fExtraDVs[DT_TOKEN].validate(value, schemaDoc.fValidationContext); break; case DT_USE: // use = (optional | prohibited | required) if (value.equals (SchemaSymbols.ATTVAL_OPTIONAL)) retValue = INT_USE_OPTIONAL; else if (value.equals (SchemaSymbols.ATTVAL_REQUIRED)) retValue = INT_USE_REQUIRED; else if (value.equals (SchemaSymbols.ATTVAL_PROHIBITED)) retValue = INT_USE_PROHIBITED; else throw new InvalidDatatypeValueException("the value '"+value+"' must match (optional | prohibited | required)"); break; case DT_WHITESPACE: // value = preserve | replace | collapse if (value.equals (SchemaSymbols.ATTVAL_PRESERVE)) retValue = INT_WS_PRESERVE; else if (value.equals (SchemaSymbols.ATTVAL_REPLACE)) retValue = INT_WS_REPLACE; else if (value.equals (SchemaSymbols.ATTVAL_COLLAPSE)) retValue = INT_WS_COLLAPSE; else throw new InvalidDatatypeValueException("the value '"+value+"' must match (preserve | replace | collapse)"); break; } return retValue; }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/71823bb76fbbe51476f8c4f76984133133ae289e/XSAttributeChecker.java/buggy/src/org/apache/xerces/impl/xs/traversers/XSAttributeChecker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 1954, 12, 780, 1604, 16, 514, 277, 1132, 16, 509, 12494, 1016, 16, 18701, 1139, 55, 2519, 966, 1963, 1759, 13, 1216, 1962, 20228, 9738, 288, 3639, 309, 261, 427, 391, 422, 446, 13, 5411, 327, 446, 31, 3639, 514, 460, 273, 3883, 12, 427, 391, 16, 21168, 5126, 18, 4935, 48, 2203, 1090, 1769, 3639, 1033, 21236, 273, 460, 31, 3639, 5589, 3140, 559, 31, 3639, 509, 6023, 31, 3639, 1620, 261, 15679, 1016, 13, 288, 3639, 648, 10696, 67, 17900, 30, 5411, 309, 261, 1132, 18, 14963, 12, 3078, 14821, 18, 789, 56, 2669, 67, 21053, 13, 747, 7734, 460, 18, 14963, 12, 3078, 14821, 18, 789, 56, 2669, 67, 21053, 67, 20, 3719, 288, 7734, 21236, 273, 3411, 18, 21053, 31, 5411, 289, 469, 309, 261, 1132, 18, 14963, 12, 3078, 14821, 18, 789, 56, 2669, 67, 18724, 13, 747, 15604, 460, 18, 14963, 12, 3078, 14821, 18, 789, 56, 2669, 67, 18724, 67, 21, 3719, 288, 7734, 21236, 273, 3411, 18, 18724, 31, 5411, 289, 469, 288, 7734, 604, 394, 1962, 20228, 9738, 2932, 5787, 460, 2119, 15, 1132, 15, 5187, 353, 486, 279, 923, 1250, 8863, 5411, 289, 5411, 898, 31, 3639, 648, 10696, 67, 3993, 5407, 43, 3217, 30, 5411, 775, 288, 7734, 21236, 273, 284, 60, 1702, 2864, 18, 588, 60, 1702, 12, 4522, 18, 2670, 1702, 12, 1132, 10019, 5411, 289, 1044, 261, 1854, 9291, 425, 13, 288, 7734, 604, 394, 1962, 20228, 9738, 2932, 5787, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 1954, 12, 780, 1604, 16, 514, 277, 1132, 16, 509, 12494, 1016, 16, 18701, 1139, 55, 2519, 966, 1963, 1759, 13, 1216, 1962, 20228, 9738, 288, 3639, 309, 261, 427, 391, 422, 446, 13, 5411, 327, 446, 31, 3639, 514, 460, 273, 3883, 12, 427, 391, 16, 21168, 5126, 18, 4935, 48, 2203, 1090, 1769, 3639, 1033, 21236, 273, 460, 31, 3639, 5589, 3140, 559, 31, 3639, 509, 6023, 31, 3639, 1620, 261, 15679, 1016, 13, 288, 3639, 648, 10696, 67, 17900, 30, 5411, 309, 261, 1132, 18, 14963, 12, 3078, 14821, 18, 789, 56, 2669, 67, 21053, 13, 747, 7734, 460, 18, 14963, 12, 3078, 14821, 18, 789, 56, 2669, 67, 21053, 67, 20, 3719, 2 ]
public void setValues(String[] userInfo, String[] values) { int counter = 0; this.userInfoText = "User\n " + userInfo[counter++] + " (" + userInfo[counter++] + ")" + "\nDispatcher\n " + userInfo[counter++] + "\n " + userInfo[counter++]; counter = 0; localMessageField.setText(values[counter++]); messageLogArea.setText(values[counter++]); imageComponent.setPreferredSize(new Dimension(Integer.parseInt( values[counter++]), Integer.parseInt(values[counter++])));
public void setValues(String[] values) { this.localMessageField.setText(values[0]); this.messageLogArea.setText(values[1]); this.userInfoText = values[2];
public void setValues(String[] userInfo, String[] values) { int counter = 0; this.userInfoText = "User\n " + userInfo[counter++] + " (" + userInfo[counter++] + ")" + "\nDispatcher\n " + userInfo[counter++] + "\n " + userInfo[counter++]; counter = 0; localMessageField.setText(values[counter++]); messageLogArea.setText(values[counter++]); imageComponent.setPreferredSize(new Dimension(Integer.parseInt( values[counter++]), Integer.parseInt(values[counter++]))); }
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/feb205e44ad808bcfe2f33002933567d2fddf0c3/UserGUI.java/clean/src/org/objectweb/proactive/examples/c3d/gui/UserGUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 27466, 12, 780, 8526, 16753, 16, 514, 8526, 924, 13, 288, 3639, 509, 3895, 273, 374, 31, 3639, 333, 18, 1355, 966, 1528, 273, 315, 1299, 64, 82, 565, 315, 397, 16753, 63, 7476, 9904, 65, 397, 315, 7566, 397, 5411, 16753, 63, 7476, 9904, 65, 397, 7310, 397, 1548, 82, 6681, 64, 82, 565, 315, 397, 5411, 16753, 63, 7476, 9904, 65, 397, 1548, 82, 565, 315, 397, 16753, 63, 7476, 9904, 15533, 3639, 3895, 273, 374, 31, 3639, 1191, 1079, 974, 18, 542, 1528, 12, 2372, 63, 7476, 9904, 19226, 3639, 883, 1343, 5484, 18, 542, 1528, 12, 2372, 63, 7476, 9904, 19226, 3639, 1316, 1841, 18, 542, 16028, 1225, 12, 2704, 13037, 12, 4522, 18, 2670, 1702, 12, 10792, 924, 63, 7476, 9904, 65, 3631, 2144, 18, 2670, 1702, 12, 2372, 63, 7476, 9904, 22643, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 27466, 12, 780, 8526, 16753, 16, 514, 8526, 924, 13, 288, 3639, 509, 3895, 273, 374, 31, 3639, 333, 18, 1355, 966, 1528, 273, 315, 1299, 64, 82, 565, 315, 397, 16753, 63, 7476, 9904, 65, 397, 315, 7566, 397, 5411, 16753, 63, 7476, 9904, 65, 397, 7310, 397, 1548, 82, 6681, 64, 82, 565, 315, 397, 5411, 16753, 63, 7476, 9904, 65, 397, 1548, 82, 565, 315, 397, 16753, 63, 7476, 9904, 15533, 3639, 3895, 273, 374, 31, 3639, 1191, 1079, 974, 18, 542, 1528, 12, 2372, 63, 7476, 9904, 19226, 3639, 883, 1343, 5484, 18, 542, 1528, 12, 2372, 63, 7476, 9904, 19226, 3639, 1316, 1841, 18, 542, 16028, 1225, 12, 2704, 13037, 12, 2 ]
dump_finalize() { VM_Scheduler.trace(" VM_Finalizer.dump_finalize", "cnt is ", finalize_count);
final static void dump_finalize() { VM_Scheduler.trace(" VM_Finalizer.dump_finalize", "cnt is ", finalize_count); VM.sysWrite("\n"); VM_FinalizerListElement le = finalize_head; while (le != null) { VM.sysWrite(" In finalize_list: object type is "); VM_GCUtil.printclass(le.value); VM.sysWrite(" at "); VM.sysWrite(le.value);
dump_finalize() { VM_Scheduler.trace(" VM_Finalizer.dump_finalize", "cnt is ", finalize_count); VM.sysWrite("\n"); VM_FinalizerListElement le = finalize_head; while (le != null) { VM.sysWrite(" In finalize_list: object type is "); VM_GCUtil.printclass(le.value); VM.sysWrite(" at "); VM.sysWrite(le.value); VM.sysWrite("\n"); le = le.next; } }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/4dcaa02ef21feff3a95d1fa7e3d6759c55f8eac0/VM_Finalizer.java/clean/rvm/src/vm/memoryManagers/watson/common/finalization/VM_Finalizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4657, 67, 30343, 1435, 565, 288, 1377, 8251, 67, 11870, 18, 5129, 2932, 8251, 67, 7951, 1824, 18, 8481, 67, 30343, 3113, 315, 13085, 353, 3104, 12409, 67, 1883, 1769, 1377, 8251, 18, 9499, 3067, 31458, 82, 8863, 1377, 8251, 67, 7951, 1824, 682, 1046, 884, 273, 12409, 67, 1978, 31, 1377, 1323, 261, 298, 480, 446, 13, 4202, 288, 3639, 8251, 18, 9499, 3067, 2932, 657, 12409, 67, 1098, 30, 733, 618, 353, 315, 1769, 3639, 8251, 67, 15396, 1304, 18, 1188, 1106, 12, 298, 18, 1132, 1769, 3639, 8251, 18, 9499, 3067, 2932, 622, 315, 1769, 3639, 8251, 18, 9499, 3067, 12, 298, 18, 1132, 1769, 3639, 8251, 18, 9499, 3067, 31458, 82, 8863, 3639, 884, 273, 884, 18, 4285, 31, 1377, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4657, 67, 30343, 1435, 565, 288, 1377, 8251, 67, 11870, 18, 5129, 2932, 8251, 67, 7951, 1824, 18, 8481, 67, 30343, 3113, 315, 13085, 353, 3104, 12409, 67, 1883, 1769, 1377, 8251, 18, 9499, 3067, 31458, 82, 8863, 1377, 8251, 67, 7951, 1824, 682, 1046, 884, 273, 12409, 67, 1978, 31, 1377, 1323, 261, 298, 480, 446, 13, 4202, 288, 3639, 8251, 18, 9499, 3067, 2932, 657, 12409, 67, 1098, 30, 733, 618, 353, 315, 1769, 3639, 8251, 67, 15396, 1304, 18, 1188, 1106, 12, 298, 18, 1132, 1769, 3639, 8251, 18, 9499, 3067, 2932, 622, 315, 1769, 3639, 8251, 18, 9499, 3067, 12, 298, 18, 1132, 1769, 3639, 8251, 18, 9499, 3067, 31458, 82, 8863, 3639, 884, 2 ]
if ( name.equals("*") || name..equals(tagName))
if ( name.equals("*") || name.equals(tagName))
protected Node nextMatchingElementAfter(Node current) { Node next; while (current != null) { // Look down to first child. if (current.hasChildNodes()) { current = (current.getFirstChild()); } // Look right to sibling (but not from root!) else if (current != rootNode && null != (next = current.getNextSibling())) { current = next; } // Look up and right (but not past root!) else { next = null; for (; current != rootNode; // Stop when we return to starting point current = current.getParentNode()) { next = current.getNextSibling(); if (next != null) break; } current = next; } // Have we found an Element with the right tagName? // ("*" matches anything.) if (current != rootNode && current != null && current.getNodeType() == Node.ELEMENT_NODE ) { String name = ((ElementImpl) current).getAttribute( "name" ); if ( name.equals("*") || name..equals(tagName)) return current; } // Otherwise continue walking the tree } // Fell out of tree-walk; no more instances found return null; } // nextMatchingElementAfter(int):Node } // class NameNodeListImpl
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/c5c82a3d940b9648f731f7716bee811a0f244e0c/NameNodeListImpl.java/buggy/src/org/apache/html/dom/NameNodeListImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 2029, 1024, 9517, 1046, 4436, 12, 907, 783, 13, 288, 7734, 2029, 1024, 31, 3639, 1323, 261, 2972, 480, 446, 13, 288, 5411, 368, 10176, 2588, 358, 1122, 1151, 18, 5411, 309, 261, 2972, 18, 5332, 22460, 10756, 288, 7734, 783, 273, 261, 2972, 18, 588, 3759, 1763, 10663, 5411, 289, 13491, 368, 10176, 2145, 358, 10841, 261, 12885, 486, 628, 1365, 24949, 5411, 469, 309, 261, 2972, 480, 10181, 597, 446, 480, 261, 4285, 273, 783, 18, 588, 2134, 10291, 1435, 3719, 288, 7734, 783, 273, 1024, 31, 5411, 289, 13491, 368, 10176, 731, 471, 2145, 261, 12885, 486, 8854, 1365, 24949, 5411, 469, 288, 7734, 1024, 273, 446, 31, 7734, 364, 261, 31, 783, 480, 10181, 31, 368, 5131, 1347, 732, 327, 358, 5023, 1634, 5397, 783, 273, 783, 18, 588, 3054, 907, 10756, 288, 4766, 3639, 1024, 273, 783, 18, 588, 2134, 10291, 5621, 10792, 309, 261, 4285, 480, 446, 13, 13491, 898, 31, 7734, 289, 7734, 783, 273, 1024, 31, 5411, 289, 13491, 368, 21940, 732, 1392, 392, 3010, 598, 326, 2145, 7196, 35, 5411, 368, 7566, 7388, 1885, 6967, 12998, 5411, 309, 261, 2972, 480, 10181, 597, 783, 480, 446, 7734, 597, 783, 18, 588, 15101, 1435, 422, 225, 2029, 18, 10976, 67, 8744, 225, 262, 288, 7734, 514, 508, 273, 14015, 1046, 2828, 13, 783, 2934, 588, 1499, 12, 315, 529, 6, 11272, 7734, 309, 261, 508, 18, 14963, 2932, 7388, 13, 747, 508, 18, 14963, 12, 2692, 461, 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, 2029, 1024, 9517, 1046, 4436, 12, 907, 783, 13, 288, 7734, 2029, 1024, 31, 3639, 1323, 261, 2972, 480, 446, 13, 288, 5411, 368, 10176, 2588, 358, 1122, 1151, 18, 5411, 309, 261, 2972, 18, 5332, 22460, 10756, 288, 7734, 783, 273, 261, 2972, 18, 588, 3759, 1763, 10663, 5411, 289, 13491, 368, 10176, 2145, 358, 10841, 261, 12885, 486, 628, 1365, 24949, 5411, 469, 309, 261, 2972, 480, 10181, 597, 446, 480, 261, 4285, 273, 783, 18, 588, 2134, 10291, 1435, 3719, 288, 7734, 783, 273, 1024, 31, 5411, 289, 13491, 368, 10176, 731, 471, 2145, 261, 12885, 486, 8854, 1365, 24949, 5411, 469, 288, 7734, 1024, 273, 446, 31, 7734, 364, 261, 31, 783, 480, 2 ]
bufferOut.append(" .keywordStyle\r\n");
bufferOut.append(" ." + keywordStyle + "\r\n");
public String makeHTML(StringBuffer bufferIn, String sourceFileName) { int codeLineNumber = 0; boolean isNewLine = true; boolean isNewBlock = true; int identifierLength = 0; int qualifiedIdentifierLength = 0; int presentIndex = -1; int spaceLength = 0; int saveIndex = 0; char presentChar = 0; State presentState = State.TEXT; StringBuffer bufferOut = new StringBuffer(8192); if (!isCodeSnippet) { bufferOut.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"); if (isXHTML_1_1) { bufferOut.append("<!DOCTYPE html PUBLIC " + "\"-//W3C//DTD XHTML 1.1//EN\"\r\n"); bufferOut.append(" \"http://www.w3.org/TR/xhtml11/DTD/" + "xhtml11.dtd\">\r\n"); bufferOut.append("<html xmlns=\"http://www.w3.org/1999/xhtml\""+ " xml:lang=\"en\">\r\n"); } else { bufferOut.append("<!DOCTYPE html PUBLIC " + "\"-//W3C//DTD XHTML 1.0 Strict//EN\"\r\n"); bufferOut.append(" \"http://www.w3.org/TR/xhtml1/DTD/" + "xhtml1-strict.dtd\">\r\n"); bufferOut.append("<html xmlns=\"http://www.w3.org/1999/xhtml\""+ " xml:lang=\"en\" lang=\"en\">\r\n"); } bufferOut.append(" <head>\r\n"); bufferOut.append(" <title>\r\n"); bufferOut.append(" " + sourceFileName + "\r\n"); bufferOut.append(" </title>\r\n"); bufferOut.append(" <meta name=\"generator\"\r\n"); bufferOut.append(" content=\"Java2xhtml 0.9\" />\r\n"); if (hasInternalStyleSheet) { bufferOut.append(" <style type=\"text/css\">\r\n"); bufferOut.append(" <!-- /* <![CDATA[ */\r\n"); bufferOut.append(" .sourceCodeStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #000000;\r\n"); bufferOut.append(" background-color: #FFFFFF;\r\n"); if (hasAllBoldSourceCode) { bufferOut.append(" font-weight: bold;\r\n"); } bufferOut.append(" }\r\n"); bufferOut.append(" .lineNumberStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" font-weight: normal;\r\n"); bufferOut.append(" color: #000000;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); if (lineModulus > 0) { bufferOut.append(" .modulusLineNumberStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" font-weight: bold;\r\n"); bufferOut.append(" color: #000000;\r\n"); bufferOut.append(" background-color: "); bufferOut.append("transparent;\r\n"); bufferOut.append(" }\r\n"); if (hasLineModulusDrawnLines) { bufferOut.append(" .modulusLineStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" text-decoration: "); bufferOut.append("line-through;\r\n"); bufferOut.append(" color: #000000;\r\n"); bufferOut.append(" background-color: "); bufferOut.append("transparent;\r\n"); bufferOut.append(" }\r\n"); } if (hasLineModulusCodeBlocks) { bufferOut.append(" .modulusBlockPREStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" margin: 0em\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .modulusBlockStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #000000;\r\n"); bufferOut.append(" background-color: "); bufferOut.append("#CCCCCC;\r\n"); bufferOut.append(" }\r\n"); } } bufferOut.append(" .keywordStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #9900FF;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .methodStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #0000FF;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .variableStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #CC9933;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .singleLineCommentStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #CC3333;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .traditionalCommentStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #FF0000;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .javadocCommentStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #CC0033;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .javadocTagStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #0099CC;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .importNameStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #33CCCC;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .packageNameStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #339999;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .primitiveTypeStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #009900;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .nonPrimitiveTypeStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #009966;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .constructorStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #3300CC;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .constantStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #666666;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .doubleQuoteStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #996633;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" font-style: italic;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .singleQuoteStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #663333;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" font-style: oblique;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .numericalLiteralStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #333300;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .primitiveLiteralStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #006600;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); if (hasFooterIcons) { bufferOut.append(" .iconStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" border-style: none;\r\n"); bufferOut.append(" }\r\n"); } if (hasTitle) { bufferOut.append(" #title\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" text-align: center;\r\n"); bufferOut.append(" font-size: xx-large;\r\n"); bufferOut.append(" }\r\n"); } if (hasLegend) { bufferOut.append(" #legendTitle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" text-align: center;\r\n"); bufferOut.append(" font-size: x-large;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" #legend\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" font-family: monospace;\r\n"); bufferOut.append(" font-size: large;\r\n"); bufferOut.append(" }\r\n"); } if (hasFooter) { bufferOut.append(" #footer\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" font-size: xx-small;\r\n"); bufferOut.append(" }\r\n"); } bufferOut.append(" /* ]]> */ -->\r\n"); bufferOut.append(" </style>\r\n"); } if (hasExternalStyleSheet) { bufferOut.append(" <link rel=\"stylesheet\" " + "type=\"text/css\" href=\"" + externalStyleSheetName + "\" />\r\n"); } bufferOut.append(" </head>\r\n"); bufferOut.append(" <body>\r\n"); } if (hasTitle) { bufferOut.append(" <div id=\"title\">\r\n"); bufferOut.append(" " + sourceFileName + "\r\n"); bufferOut.append(" </div>\r\n"); bufferOut.append(" <hr />\r\n"); } if (hasLegend) { bufferOut.append(" <div id=\"legendTitle\">\r\n"); bufferOut.append(" Legend\r\n"); bufferOut.append(" </div>\r\n"); bufferOut.append(" <div class=\"sourceCodeStyle\">\r\n"); bufferOut.append(" <div id=\"legend\">\r\n"); bufferOut.append(" <span class=\"keywordStyle\">"); bufferOut.append("keyword</span>\r\n"); bufferOut.append(" <span class=\"methodStyle\">"); bufferOut.append("method</span>\r\n"); bufferOut.append(" <span class=\"variableStyle\">variable" + "</span>\r\n"); bufferOut.append(" <span class=\"singleLineCommentStyle\">" + "singleLineComment</span>\r\n"); bufferOut.append(" <span class=\"traditionalCommentStyle\">" + "traditionalComment</span>\r\n"); bufferOut.append(" <span class=\"javadocCommentStyle\">" + "javadocComment</span>\r\n"); bufferOut.append(" <span class=\"javadocTagStyle\">javadocTag" + "</span>\r\n"); bufferOut.append(" <span class=\"importNameStyle\">" + "importName</span>\r\n"); bufferOut.append(" <span class=\"packageNameStyle\">" + "packageName</span>\r\n"); bufferOut.append(" <span class=\"primitiveTypeStyle\">" + "primitiveType</span>\r\n"); bufferOut.append(" <span class=\"nonPrimitiveTypeStyle\">" + "nonPrimitiveType</span>\r\n"); bufferOut.append(" <span class=\"constructorStyle\">" + "constructor</span>\r\n"); bufferOut.append(" <span class=\"constantStyle\">" + "constant</span>\r\n"); bufferOut.append(" <span class=\"doubleQuoteStyle\">" + "doubleQuote</span>\r\n"); bufferOut.append(" <span class=\"singleQuoteStyle\">" + "singleQuote</span>\r\n"); bufferOut.append(" <span class=\"numericalLiteralStyle\">" + "numericalLiteral</span>\r\n"); bufferOut.append(" <span class=\"primitiveLiteralStyle\">" + "primitiveLiteral</span>\r\n"); bufferOut.append(" </div>\r\n"); bufferOut.append(" </div>\r\n"); bufferOut.append(" <hr />\r\n"); } bufferOut.append(" <div class=\"sourceCodeStyle\">\r\n"); if (hasLineModulusCodeBlocks) { bufferOut.append("<pre class=\"modulusBlockPREStyle\">\r\n"); } else { bufferOut.append("<pre>\r\n"); } // process the input Java code Stringbuffer // subtract 2 from the bufferIn.length() to get EOF marker while (presentIndex++ < (bufferIn.length() - 2)) { for (int i = 0; i < extraIndentation; i++) { bufferOut.append(" "); } if ((hasLineNumbers || hasLineModulusCodeBlocks) && isNewLine) { // add line numbers if desired // line numbers are 1 - 9999 then rotate line numbers codeLineNumber = (++codeLineNumber)%10000; if ((lineModulus > 0) && hasLineModulusCodeBlocks && (codeLineNumber%lineModulus == 1)) { if (isNewBlock) { if ((State.TRADITIONAL_COMMENT == presentState) || (State.JAVADOC == presentState)) { bufferOut.insert((bufferOut.length() - ("\r\n").length()), "</span>"); } bufferOut.append("</pre>\r\n"); bufferOut.append(" <div class="); bufferOut.append("\"modulusBlockStyle\">"); bufferOut.append("\r\n<pre class=\""); bufferOut.append("modulusBlockPREStyle\">\r\n"); if (State.TRADITIONAL_COMMENT == presentState) { bufferOut.append("<span class=" + "\"traditionalCommentStyle\">"); } if (State.JAVADOC == presentState) { bufferOut.append("<span class=" + "\"javadocCommentStyle\">"); } } isNewBlock = !isNewBlock; } // make straight columns of line numbers if (codeLineNumber < 1000) { bufferOut.append(" "); } if (codeLineNumber < 100) { bufferOut.append(" "); } if (codeLineNumber < 10) { bufferOut.append(" "); } bufferOut.append("<a name=\"line."); bufferOut.append(codeLineNumber); bufferOut.append("\"/>"); if (hasLineNumbers) { if ((lineModulus > 0) && (codeLineNumber%lineModulus == 0)) { bufferOut.append("<span class=" + "\"modulusLineNumberStyle\">"); bufferOut.append(codeLineNumber); bufferOut.append(": </span>"); if (hasLineModulusDrawnLines) { // compute spaceLength so a line can be drawn while ((presentIndex != (bufferIn.length() - 1)) && ((Character.isSpaceChar( bufferIn.charAt(presentIndex))) || (bufferIn.charAt(presentIndex) == '\t'))) { // for each tab, insert tabSize spaces if (bufferIn.charAt(presentIndex) == '\t') { for (int i = 0; i < tabSize; i++) { bufferIn.insert(presentIndex + 1, " "); } presentIndex++; continue; } if (' ' == bufferIn.charAt(presentIndex)) { // read a space so place a space bufferOut.append(" "); spaceLength += (" ").length(); } else { // a white space character was read bufferOut.append(bufferIn.charAt( presentIndex)); ++spaceLength; } presentIndex++; } // check if line is empty // (no printable characters on line) if ((presentIndex == (bufferIn.length() - 1)) || (Character.isWhitespace(bufferIn.charAt( presentIndex)))) { spaceLength = 0; } // draw the line if (spaceLength > 1) { bufferOut.insert((bufferOut.length() - spaceLength), "<span class=" + "\"modulusLineStyle\">"); bufferOut.insert((bufferOut.length() - (" ").length()), "</span>"); } spaceLength = 0; } } else { // line numbers are in lineNumberColor bufferOut.append("<span class=\"lineNumberStyle\">"); bufferOut.append(codeLineNumber); bufferOut.append(":</span> "); } } isNewLine = false; } // a state machine presentChar = bufferIn.charAt(presentIndex); if ((Character.isJavaIdentifierPart(presentChar)) || ((State.IMPORT_NAME == presentState) && (presentChar == '*'))) { // this is an identifier bufferOut.append(presentChar); identifierLength++; continue; // keep adding characters until identifier is done } if (identifierLength > 0) { // identifier qualifiedIdentifierLength = qualifiedIdentifierLength + identifierLength; if (bufferIn.charAt(presentIndex) == '.') { // qualified identifier bufferOut.append(presentChar); qualifiedIdentifierLength++; identifierLength = 0; continue; // keep adding characters to qualified identifier } String identifier = bufferOut.substring(bufferOut.length() - identifierLength); if ((State.PARAM_VARIABLE == presentState)) { // any identifier after a param in a javadoc is assumed to // be a variable bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"variableStyle\">"); bufferOut.append("</span>"); presentState = State.JAVADOC; } else if (State.JAVADOC == presentState) { // in javadoc state if ((javadocTagCollection.contains(identifier)) && (bufferIn.charAt(presentIndex - (identifierLength + 1)) == '@')) { // identifier is a javadocTag bufferOut.insert(bufferOut.length() - identifierLength, "<span class=\"javadocTagStyle\">"); bufferOut.append("</span>"); if (("param").equals(identifier)) { // any identifier after a param is assumed to // be a variable, get into a state to do this presentState = State.PARAM_VARIABLE; } } } else if (State.IMPORT_NAME == presentState) { // import identifier bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"importNameStyle\">"); bufferOut.append("</span>"); presentState = State.TEXT; } else if (State.PACKAGE_NAME == presentState) { // package identifier bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"packageNameStyle\">"); bufferOut.append("</span>"); presentState = State.TEXT; } else if (State.TEXT == presentState) { if (keywordCollection.contains(identifier)) { // identifier is a keyword bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"keywordStyle\">"); bufferOut.append("</span>"); if (("import").equals(identifier)) { // anything after an import in text mode must be // an import name, so enter state to process this presentState = State.IMPORT_NAME; } else if (("package").equals(identifier)) { // anything after an package in text mode must be // an package name, so enter state to process this presentState = State.PACKAGE_NAME; } } else if (primitiveTypeCollection.contains(identifier)) { // identifier is a primitive type bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"primitiveTypeStyle\">"); bufferOut.append("</span>"); } else if ((identifier.equals(identifier.toUpperCase())) && (!(Character.isDigit(identifier.charAt(0))))) { // identifier is a constant bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"constantStyle\">"); bufferOut.append("</span>"); } else if (Character.isUpperCase(identifier.charAt(0))) { // identifier is a constructor or non-primitive type // eat white space saveIndex = presentIndex; while (Character.isWhitespace( bufferIn.charAt(saveIndex++))) { //empty body } if (bufferIn.charAt(--saveIndex) == '(') { // identifier is a constructor bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=" + "\"constructorStyle\">"); bufferOut.append("</span>"); } else { // identifier is a non-primitive type bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=" + "\"nonPrimitiveTypeStyle\">"); bufferOut.append("</span>"); } } else if (!(Character.isDigit(identifier.charAt(0)) || primitiveLiteralCollection.contains(identifier))) { // identifier is a method or a variable // eat white space saveIndex = presentIndex; while (Character.isWhitespace( bufferIn.charAt(saveIndex++))) { // empty body } --saveIndex; // identifier is a method if (bufferIn.charAt(saveIndex) == '(') { bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"methodStyle\">"); bufferOut.append("</span>"); } else if (bufferIn.charAt(saveIndex) == ',') { // comma seperated variables bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"variableStyle\">"); bufferOut.append("</span>"); } else { // a variable // take care of cases such as array[index].variable if (bufferIn.charAt(presentIndex - (qualifiedIdentifierLength + 1)) == '.') { qualifiedIdentifierLength++; } bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"variableStyle\">"); bufferOut.append("</span>"); } } else { if (primitiveLiteralCollection.contains(identifier)) { // primitiveLiteral (boolean or null) bufferOut.insert(bufferOut.length() - identifierLength, "<span class=" + "\"primitiveLiteralStyle\">"); bufferOut.append("</span>"); } // a numerical literal else { if (((presentIndex - (qualifiedIdentifierLength + 1)) > 0) && (bufferIn.charAt(presentIndex - (qualifiedIdentifierLength + 1)) == '.')) { qualifiedIdentifierLength++; } bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=" + "\"numericalLiteralStyle\">"); bufferOut.append("</span>"); } } } qualifiedIdentifierLength = 0; identifierLength = 0; } // process characters NOT in identifiers switch (presentChar) { case '&': //ampersand bufferOut.append("&amp;"); // HTMLify character break; case '<': // less than sign bufferOut.append("&lt;"); // HTMLify character break; case '>': // greater than sign bufferOut.append("&gt;"); // HTMLify character break; case '\"': // double quote bufferOut.append("&quot;"); // HTMLify character if (State.TEXT == presentState) { presentState = State.DOUBLE_QUOTE; bufferOut.insert(bufferOut.length()-("&quot;").length(), "<span class=\"doubleQuoteStyle\">"); } else if (State.DOUBLE_QUOTE == presentState) { presentState = State.TEXT; bufferOut.append("</span>"); } break; case '\'': // single quote bufferOut.append("\'"); if (State.TEXT == presentState) { presentState = State.SINGLE_QUOTE; bufferOut.insert(bufferOut.length() - ("\'").length(), "<span class=\"singleQuoteStyle\">"); } else if (State.SINGLE_QUOTE == presentState) { presentState = State.TEXT; bufferOut.append("</span>"); } break; case '\\': // backslash bufferOut.append("\\"); if ((State.DOUBLE_QUOTE == presentState) || (State.SINGLE_QUOTE == presentState)) { // treat as a character escape sequence bufferOut.append(bufferIn.charAt(++presentIndex)); } break; case '\t': // tab // replace tabs with tabsize number of spaces for (int i = 0; i < tabSize; i++) { bufferOut.append(' '); } break; case '*': // star bufferOut.append("*"); if ((State.TEXT == presentState) && (bufferIn.charAt(presentIndex - 1) == '/')) { if (((bufferIn.length() - 1) > presentIndex) && (bufferIn.charAt(presentIndex + 1) == '*')) { presentState = State.JAVADOC; bufferOut.insert(bufferOut.length() - ("/*").length(), "<span class=" + "\"javadocCommentStyle\">"); } else { presentState = State.TRADITIONAL_COMMENT; bufferOut.insert(bufferOut.length() - ("/*").length(), "<span class=" + "\"traditionalCommentStyle\">"); } } break; case '/': // foward slash bufferOut.append("/"); if (((State.TRADITIONAL_COMMENT == presentState) || (State.JAVADOC == presentState)) && (bufferIn.charAt(presentIndex - 1) == '*')) { bufferOut.append("</span>"); presentState = State.TEXT; } if ((State.TEXT == presentState) && (presentIndex > 0) && (bufferIn.charAt(presentIndex - 1) == '/')) { bufferOut.insert(bufferOut.length() - ("//").length(), "<span class=" + "\"singleLineCommentStyle\">"); presentState = State.LINE_COMMENT; } break; case '\r': // carriage return // fall through case '\n': // line feed // all HTML lines end in \r\n if ((bufferIn.charAt(presentIndex) == '\r') && ((bufferIn.length() - 1) > presentIndex) && (bufferIn.charAt(presentIndex + 1) == '\n')) { ++presentIndex; } // end single line comments if (State.LINE_COMMENT == presentState) { bufferOut.append("</span>"); presentState = State.TEXT; } // end of block if ((lineModulus > 0) && hasLineModulusCodeBlocks && ((codeLineNumber%lineModulus == 0) && !isNewBlock)) { // end multi-line spanning states if ((State.TRADITIONAL_COMMENT == presentState) || (State.JAVADOC == presentState)) { bufferOut.append("</span>"); } bufferOut.append("\r\n"); bufferOut.append("</pre>\r\n"); bufferOut.append(" </div>\r\n"); bufferOut.append("<pre class=\""); bufferOut.append("modulusBlockPREStyle\">\r\n"); // restart multi-line spanning states if (State.TRADITIONAL_COMMENT == presentState) { bufferOut.append("<span class=" + "\"traditionalCommentStyle\">"); } if (State.JAVADOC == presentState) { bufferOut.append("<span class=" + "\"javadocCommentStyle\">"); } } else { // div automatically starts new line bufferOut.append("\r\n"); } isNewLine = true; break; case 0: // nul character if ((State.LINE_COMMENT == presentState) && (presentIndex == (bufferIn.length() - 1))) { bufferOut.append("</span>"); } break; default: // everything else bufferOut.append(presentChar); } qualifiedIdentifierLength = 0; } if (presentState == State.LINE_COMMENT) { bufferOut.append("</span>\r\n"); } bufferOut.append("</pre>\r\n"); // end block early if no more source code if ((lineModulus > 0) && hasLineModulusCodeBlocks && !isNewBlock && (codeLineNumber%lineModulus != 0)) { bufferOut.append(" </div>\r\n"); } bufferOut.append(" </div>\r\n"); // end div of sourceCodeStyle // if code snippet then don't add ending tags of xhtml page if (!isCodeSnippet) { // if footer mode then add a footer if (hasFooter) { bufferOut.append(" <hr />\r\n"); bufferOut.append(" <div id=\"footer\">\r\n"); if (hasFooterIcons) { if (hasFooterDate) { bufferOut.append(" <script type=\"text/javaScript\""); bufferOut.append(">\r\n"); bufferOut.append(" <!-- // <![CDATA[\r\n"); bufferOut.append(" document.write(\"Document last"); bufferOut.append(" modified on \""); bufferOut.append(" + document.lastModified + "); bufferOut.append("\"<br />\");\r\n"); bufferOut.append(" // ]]> -->\r\n"); bufferOut.append(" </script>\r\n"); } bufferOut.append(" <a href=\""); bufferOut.append("http://validator.w3.org/check/referer"); bufferOut.append("\">\r\n"); bufferOut.append(" <img class=\"iconStyle\" src=\""); bufferOut.append("http://www.w3.org/Icons/"); if (isXHTML_1_1) { bufferOut.append("valid-xhtml11\"\r\n"); bufferOut.append(" alt=\"Valid XHTML 1.1!\""); } else { bufferOut.append("valid-xhtml10\"\r\n"); bufferOut.append(" alt=\"Valid XHTML 1.0!\""); } bufferOut.append(" height=\"31\" "); bufferOut.append("width=\"88\" />\r\n"); bufferOut.append(" </a>\r\n"); bufferOut.append(" &#160;\r\n"); bufferOut.append(" <a href=\""); bufferOut.append("http://jigsaw.w3.org"); bufferOut.append("/css-validator/check/referer"); bufferOut.append("\">\r\n"); bufferOut.append(" <img class=\"iconStyle\" src=\""); bufferOut.append("http://jigsaw.w3.org/"); bufferOut.append("css-validator/images/vcss"); bufferOut.append("\"\r\n"); bufferOut.append(" alt=\"Valid CSS!\""); bufferOut.append(" height=\"31\" width=\"88\" />\r\n"); bufferOut.append(" </a>\r\n"); } else { bufferOut.append(" This is a valid\r\n"); bufferOut.append(" <a href=\"http://"); bufferOut.append("validator.w3.org/check/referer"); if (isXHTML_1_1) { bufferOut.append("\">XHTML 1.1</a>\r\n"); } else { bufferOut.append("\">XHTML 1.0</a>\r\n"); } bufferOut.append(" with\r\n"); bufferOut.append(" <a href=\"http://"); bufferOut.append("jigsaw.w3.org"); bufferOut.append("/css-validator/check/referer"); bufferOut.append("\">CSS</a>\r\n"); bufferOut.append(" document \r\n"); if (hasFooterDate) { bufferOut.append(" <script type=\"text/javaScript\""); bufferOut.append(">\r\n"); bufferOut.append(" <!-- // <![CDATA[\r\n"); bufferOut.append(" document.write(\"last modified"); bufferOut.append(" on \" + document.lastModified);"); bufferOut.append("\r\n"); bufferOut.append(" // ]]> -->\r\n"); bufferOut.append(" </script>\r\n"); } } bufferOut.append(" </div>\r\n"); } bufferOut.append(" </body>\r\n"); bufferOut.append("</html>\r\n"); } return bufferOut.toString(); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/8ba362c9ba53284a2fd251ad596b8e586a877afc/Java2xhtml.java/clean/tools/gjdoc/javalib/gnu/classpath/tools/java2xhtml/Java2xhtml.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1221, 4870, 12, 780, 1892, 1613, 382, 16, 514, 1084, 4771, 13, 565, 288, 3639, 509, 981, 31063, 273, 374, 31, 3639, 1250, 10783, 1670, 273, 638, 31, 3639, 1250, 10783, 1768, 273, 638, 31, 3639, 509, 2756, 1782, 273, 374, 31, 3639, 509, 9348, 3004, 1782, 273, 374, 31, 3639, 509, 3430, 1016, 273, 300, 21, 31, 3639, 509, 3476, 1782, 273, 374, 31, 3639, 509, 1923, 1016, 273, 374, 31, 3639, 1149, 3430, 2156, 273, 374, 31, 3639, 3287, 3430, 1119, 273, 3287, 18, 5151, 31, 3639, 6674, 1613, 1182, 273, 394, 6674, 12, 28, 15561, 1769, 3639, 309, 16051, 291, 1085, 19614, 13, 3639, 288, 5411, 1613, 1182, 18, 6923, 2932, 12880, 2902, 1177, 5189, 21, 18, 20, 2412, 2688, 5189, 5159, 17, 28, 2412, 35, 5333, 86, 64, 82, 8863, 2398, 309, 261, 291, 60, 4870, 67, 21, 67, 21, 13, 5411, 288, 7734, 1613, 1182, 18, 6923, 2932, 5586, 29824, 1729, 17187, 315, 397, 4766, 7023, 17, 759, 59, 23, 39, 759, 25728, 30551, 404, 18, 21, 759, 1157, 31670, 86, 64, 82, 8863, 7734, 1613, 1182, 18, 6923, 2932, 565, 1239, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 4349, 19, 26341, 2499, 19, 25728, 4898, 397, 4766, 315, 26341, 2499, 18, 31834, 28219, 86, 64, 82, 8863, 7734, 1613, 1182, 18, 6923, 2932, 32, 2620, 12302, 5189, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 21, 11984, 19, 26341, 8530, 15, 4766, 315, 2025, 30, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1221, 4870, 12, 780, 1892, 1613, 382, 16, 514, 1084, 4771, 13, 565, 288, 3639, 509, 981, 31063, 273, 374, 31, 3639, 1250, 10783, 1670, 273, 638, 31, 3639, 1250, 10783, 1768, 273, 638, 31, 3639, 509, 2756, 1782, 273, 374, 31, 3639, 509, 9348, 3004, 1782, 273, 374, 31, 3639, 509, 3430, 1016, 273, 300, 21, 31, 3639, 509, 3476, 1782, 273, 374, 31, 3639, 509, 1923, 1016, 273, 374, 31, 3639, 1149, 3430, 2156, 273, 374, 31, 3639, 3287, 3430, 1119, 273, 3287, 18, 5151, 31, 3639, 6674, 1613, 1182, 273, 394, 6674, 12, 28, 15561, 1769, 3639, 309, 16051, 291, 1085, 19614, 13, 3639, 288, 5411, 1613, 1182, 18, 6923, 2932, 12880, 2902, 2 ]
if (!(counter.getType() instanceof WeaponType)
if (!(counter.getType() instanceof WeaponType)
private WeaponResult resolveAmsFor(WeaponAttackAction waa, WeaponResult wr) { final Entity te = game.getEntity(waa.getTargetId()); // any AMS attacks by the target? Vector vCounters = waa.getCounterEquipment(); if (vCounters == null) { wr.amsShotDown = new int[0]; return wr; } // resolve AMS counter-fire wr.amsShotDown = new int[vCounters.size()]; for (int x = 0; x < vCounters.size(); x++) { wr.amsShotDown[x] = 0; Mounted counter = (Mounted)vCounters.elementAt(x); Mounted mAmmo = counter.getLinked(); if (!(counter.getType() instanceof WeaponType) || ((WeaponType)counter.getType()).getAmmoType() != AmmoType.T_AMS || !counter.isReady() || counter.isMissing()) { continue; } // roll hits int amsHits = Compute.d6(((WeaponType)counter.getType()).getDamage()); // build up some heat (assume target is ams owner) te.heatBuildup += ((WeaponType)counter.getType()).getHeat(); // decrement the ammo mAmmo.setShotsLeft(Math.max(0, mAmmo.getShotsLeft() - amsHits)); // set the ams as having fired counter.setUsedThisRound(true); wr.amsShotDown[x] = amsHits; wr.amsShotDownTotal += amsHits; } return wr; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/359f7976ea7b886c35ce9187dadb639fb01ebfca/Server.java/clean/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1660, 28629, 1253, 2245, 37, 959, 1290, 12, 3218, 28629, 3075, 484, 1803, 341, 7598, 16, 1660, 28629, 1253, 12408, 13, 288, 3639, 727, 3887, 6489, 273, 7920, 18, 588, 1943, 12, 91, 7598, 18, 588, 2326, 548, 10663, 7734, 368, 1281, 432, 3537, 28444, 635, 326, 1018, 35, 3639, 5589, 331, 18037, 273, 341, 7598, 18, 588, 4789, 13142, 11568, 5621, 3639, 309, 261, 90, 18037, 422, 446, 13, 288, 5411, 12408, 18, 301, 87, 1555, 352, 4164, 273, 394, 509, 63, 20, 15533, 5411, 327, 12408, 31, 3639, 289, 1171, 368, 2245, 432, 3537, 3895, 17, 12179, 3639, 12408, 18, 301, 87, 1555, 352, 4164, 273, 394, 509, 63, 90, 18037, 18, 1467, 1435, 15533, 3639, 364, 261, 474, 619, 273, 374, 31, 619, 411, 331, 18037, 18, 1467, 5621, 619, 27245, 288, 5411, 12408, 18, 301, 87, 1555, 352, 4164, 63, 92, 65, 273, 374, 31, 5411, 13076, 329, 3895, 273, 261, 8725, 329, 13, 90, 18037, 18, 2956, 861, 12, 92, 1769, 5411, 13076, 329, 312, 37, 7020, 83, 273, 3895, 18, 588, 13174, 5621, 5411, 309, 16051, 12, 7476, 18, 588, 559, 1435, 1276, 1660, 28629, 559, 13, 2398, 747, 14015, 3218, 28629, 559, 13, 7476, 18, 588, 559, 1435, 2934, 588, 37, 7020, 83, 559, 1435, 480, 3986, 8683, 559, 18, 56, 67, 2192, 55, 5411, 747, 401, 7476, 18, 291, 8367, 1435, 747, 3895, 18, 291, 4841, 10756, 288, 7734, 1324, 31, 5411, 289, 5411, 368, 5824, 11076, 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, 1660, 28629, 1253, 2245, 37, 959, 1290, 12, 3218, 28629, 3075, 484, 1803, 341, 7598, 16, 1660, 28629, 1253, 12408, 13, 288, 3639, 727, 3887, 6489, 273, 7920, 18, 588, 1943, 12, 91, 7598, 18, 588, 2326, 548, 10663, 7734, 368, 1281, 432, 3537, 28444, 635, 326, 1018, 35, 3639, 5589, 331, 18037, 273, 341, 7598, 18, 588, 4789, 13142, 11568, 5621, 3639, 309, 261, 90, 18037, 422, 446, 13, 288, 5411, 12408, 18, 301, 87, 1555, 352, 4164, 273, 394, 509, 63, 20, 15533, 5411, 327, 12408, 31, 3639, 289, 1171, 368, 2245, 432, 3537, 3895, 17, 12179, 3639, 12408, 18, 301, 87, 1555, 352, 4164, 273, 394, 509, 63, 90, 18037, 18, 1467, 1435, 15533, 2 ]
reportMissing(out, vmFile.getReportName(), "vm", 0);
reportMissing(out, vmFile.getReportName(), "vm", new Flags());
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> vmSpecificFiles = vmSpecificDirs .scanJavaFiles(getProject()); final TreeSet<String> allFiles = new TreeSet<String>(); final Map<String, String> packageDiffs = new TreeMap<String, String>(); allFiles.addAll(vmFiles.keySet()); allFiles.addAll(classpathFiles.keySet()); try { destDir.mkdirs(); final File outFile = new File(destDir, "classpath-compare.html"); final PrintWriter out = new PrintWriter(new FileWriter(outFile)); reportHeader(out); int missingInCp = 0; int missingInVm = 0; int needsMerge = 0; int diffVmSpecific = 0; int diffClasspathBugfix = 0; int diffNative = 0; int diffJNode = 0; int vmSpecific = 0; for (String name : allFiles) { SourceFile cpFile = classpathFiles.get(name); final SourceFile vmFile = vmFiles.get(name); final SourceFile vmSpecificFile = vmSpecificFiles .get(name); if (vmSpecificFile != null) { // File is found as vm specific source reportVmSpecific(out, vmSpecificFile.getReportName(), "vm-specific"); vmSpecific++; } else if (vmFile == null) { // file is not found as vmspecific source, nor as vm source if (!cpFile.isIgnoreMissing()) { reportMissing(out, cpFile.getReportName(), "classpath", getFlags(cpFile)); missingInCp++; } } else if (cpFile == null) { // File is not found in classpath sources reportMissing(out, vmFile.getReportName(), "vm", 0); missingInVm++; } else { // We have both the classpath version and the vm version. cpFile = cpFile.getBestFileForTarget(vmFile.getTarget()); final String diffFileName = vmFile.getReportName() + ".diff"; int rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc & ~FLAGS_MASK) { case NO_CHANGE: break; case NEEDS_MERGE: reportNeedsMerge(out, vmFile.getReportName(), vmFile .getTarget(), diffFileName, rc & FLAGS_MASK); needsMerge++; break; default: throw new RuntimeException("Invalid rc " + rc); } if ((rc & FLAG_VM_SPECIFIC) != 0) { diffVmSpecific++; } if ((rc & FLAG_CLASSPATH_BUGFIX) != 0) { diffClasspathBugfix++; } if ((rc & FLAG_NATIVE) != 0) { diffNative++; } if ((rc & FLAG_JNODE) != 0) { diffJNode++; } // Let's compare them } } // Package diffs for (Map.Entry<String, String> entry : packageDiffs.entrySet()) { final String pkg = entry.getKey(); final String diff = entry.getValue(); final String diffFileName = pkg + ".pkgdiff"; processPackageDiff(diffFileName, pkg, diff); reportPackageDiff(out, pkg, diffFileName, getFlags(diff)); } out.println("</table><p/>"); // Summary out.println("<a name='summary'/><h2>Summary</h2>"); if (missingInCp > 0) { out.println("Found " + missingInCp + " files missing in classpath</br>"); log("Found " + missingInCp + " files missing in classpath"); } if (missingInVm > 0) { out.println("Found " + missingInVm + " files missing in vm<br/>"); log("Found " + missingInVm + " files missing in vm"); } if (needsMerge > 0) { out.println("Found " + needsMerge + " files that needs merging<br/>"); log("Found " + needsMerge + " files that needs merging"); } if (diffVmSpecific > 0) { out.println("Found " + diffVmSpecific + " VM specific differences<br/>"); log("Found " + diffVmSpecific + " VM specific differences"); } if (vmSpecific > 0) { out.println("Found " + vmSpecific + " VM specific files<br/>"); log("Found " + vmSpecific + " VM specific files"); } if (diffClasspathBugfix > 0) { out.println("Found " + diffClasspathBugfix + " local classpath bugfixes<br/>"); log("Found " + diffClasspathBugfix + " local classpath bugfixes"); } if (diffNative > 0) { out.println("Found " + diffNative + " changes with native in it<br/>"); log("Found " + diffNative + " changes with native in it"); } if (diffJNode > 0) { out.println("Found " + diffJNode + " changes with JNode in it<br/>"); log("Found " + diffJNode + " changes with JNode in it"); } reportFooter(out); out.flush(); out.close(); } catch (IOException ex) { throw new BuildException(ex); } catch (InterruptedException ex) { throw new BuildException(ex); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 288, 3639, 309, 261, 10488, 1621, 422, 446, 13, 288, 5411, 604, 394, 18463, 2932, 1986, 1570, 1214, 1566, 1297, 506, 444, 8863, 3639, 289, 3639, 727, 1635, 32, 780, 16, 4998, 812, 34, 4268, 2697, 273, 4268, 9872, 7734, 263, 9871, 5852, 2697, 12, 588, 4109, 10663, 3639, 727, 1635, 32, 780, 16, 4998, 812, 34, 10006, 2697, 273, 10006, 9872, 7734, 263, 9871, 5852, 2697, 12, 588, 4109, 10663, 3639, 727, 1635, 32, 780, 16, 4998, 812, 34, 4268, 9969, 2697, 273, 4268, 9969, 9872, 7734, 263, 9871, 5852, 2697, 12, 588, 4109, 10663, 3639, 727, 19461, 32, 780, 34, 777, 2697, 273, 394, 19461, 32, 780, 34, 5621, 3639, 727, 1635, 32, 780, 16, 514, 34, 2181, 10428, 2556, 273, 394, 16381, 32, 780, 16, 514, 34, 5621, 3639, 777, 2697, 18, 1289, 1595, 12, 3489, 2697, 18, 856, 694, 10663, 3639, 777, 2697, 18, 1289, 1595, 12, 26302, 2697, 18, 856, 694, 10663, 3639, 775, 288, 5411, 26231, 18, 24816, 8291, 5621, 5411, 727, 1387, 21651, 273, 394, 1387, 12, 10488, 1621, 16, 315, 26302, 17, 9877, 18, 2620, 8863, 5411, 727, 14071, 596, 273, 394, 14071, 12, 2704, 24639, 12, 659, 812, 10019, 5411, 2605, 1864, 12, 659, 1769, 5411, 509, 3315, 382, 28954, 273, 374, 31, 5411, 509, 3315, 382, 22143, 273, 374, 31, 5411, 509, 4260, 6786, 273, 374, 31, 5411, 509, 3122, 22143, 9969, 273, 374, 31, 5411, 509, 3122, 17461, 19865, 904, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 288, 3639, 309, 261, 10488, 1621, 422, 446, 13, 288, 5411, 604, 394, 18463, 2932, 1986, 1570, 1214, 1566, 1297, 506, 444, 8863, 3639, 289, 3639, 727, 1635, 32, 780, 16, 4998, 812, 34, 4268, 2697, 273, 4268, 9872, 7734, 263, 9871, 5852, 2697, 12, 588, 4109, 10663, 3639, 727, 1635, 32, 780, 16, 4998, 812, 34, 10006, 2697, 273, 10006, 9872, 7734, 263, 9871, 5852, 2697, 12, 588, 4109, 10663, 3639, 727, 1635, 32, 780, 16, 4998, 812, 34, 4268, 9969, 2697, 273, 4268, 9969, 9872, 7734, 263, 9871, 5852, 2697, 12, 588, 4109, 10663, 3639, 727, 19461, 32, 780, 34, 777, 2697, 273, 394, 19461, 32, 780, 34, 5621, 3639, 727, 1635, 2 ]
case 7: { String s = yytext(); w.write(s); if(debug) log("Matched open braces: "+s);
case 23: { String s = yytext(); w.write(s); if(debug) log("Matched unicode range: "+s);
public Yytoken yylex() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; int [] zzAttrL = ZZ_ATTRIBUTE; while (true) { zzMarkedPosL = zzMarkedPos; zzAction = -1; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; zzState = zzLexicalState; zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) zzInput = zzBufferL[zzCurrentPosL++]; else if (zzAtEOF) { zzInput = YYEOF; break zzForAction; } else { // store back cached positions zzCurrentPos = zzCurrentPosL; zzMarkedPos = zzMarkedPosL; boolean eof = zzRefill(); // get translated positions and possibly new buffer zzCurrentPosL = zzCurrentPos; zzMarkedPosL = zzMarkedPos; zzBufferL = zzBuffer; zzEndReadL = zzEndRead; if (eof) { zzInput = YYEOF; break zzForAction; } else { zzInput = zzBufferL[zzCurrentPosL++]; } } int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ]; if (zzNext == -1) break zzForAction; zzState = zzNext; int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 26: { String s = yytext(); w.write(s); if(debug) log("Matched @media: "+s); } case 32: break; case 18: { String s = yytext(); w.write(s); if(debug) log("Matched unicode: "+s); } case 33: break; case 8: { String s = yytext(); w.write(s); if(debug) log("Matched close braces: "+s); } case 34: break; case 22: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 35: break; case 15: { String s = yytext(); w.write(s); if(debug) log("Matched ~=: "+s); } case 36: break; case 12: { String s = yytext(); if(debug) log("Matched string: "+s); if(paranoidStringCheck && s.indexOf(':') != -1) { w.write("/* Deleted disallowed string */"); log("Deleted disallowed string: "+s); } else { w.write(s); } } case 37: break; case 25: { String s = yytext(); w.write(s); if(debug) log("Matched @page: "+s); } case 38: break; case 13: { String s = yytext(); w.write(s); if(debug) log("Matched number: "+s); } case 39: break; case 1: { String s = yytext(); char c = s.charAt(0); log("Matched anything: "+yytext()+" - ignoring"); w.write("/* ignored unmatched char: "+c+" */"); // single char cannot break out of comment } case 40: break; case 6: { String s = yytext(); w.write(s); if(debug) log("Matched semicolon: "+s); } case 41: break; case 20: { String s = yytext(); if(debug) log("Got hexcolor: "+s); w.write(s); } case 42: break; case 7: { String s = yytext(); w.write(s); if(debug) log("Matched open braces: "+s); } case 43: break; case 2: { String s = yytext(); w.write(s); if(debug) log("Matched ident: "+s); } case 44: break; case 24: { String s = yytext(); w.write(s); if(debug) log("Matched unicode range: "+s); } case 45: break; case 29: { String s = yytext(); w.write(s); if(debug) log("Matched @font-face: "+s); } case 46: break; case 9: { String s = yytext(); if(s.startsWith("url")) throwError("Invalid contents of url()"); w.write(s); if(debug) log("Matched function start: "+s); } case 47: break; case 17: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 48: break; case 3: { String s = yytext(); w.write(s); if(debug) log("Matched whitespace: "+s); } case 49: break; case 23: { String s = yytext(); if(debug) log("Ignoring unrecognizable url: "+s); w.write("/* Ignoring unmatchable URL */url()"); } case 50: break; case 28: { String s = yytext(); if(debug) log("Found @import: "+s); s = s.substring("@import".length()); s = s.trim(); DecodedStringThingy dst = new DecodedStringThingy(s); s = dst.data; if(debug) log("URL: "+s); s = processImportURL(s); dst.data = s; if(debug) log("Processed URL: "+s); if(dst.quote == ' ') dst.quote = '\"'; if (!(s == null || s.equals(""))) { if(debug) log("URL now: "+s); s = "@import "+dst.toString(); if(debug) log("Writing: "+s); w.write(s); } else if(debug) log("Dropped @import"); } case 51: break; case 31: { String s = yytext(); w.write(s); if(debug) log("Matched important: "+s); } case 52: break; case 21: { String s = yytext(); StringBuffer sb = new StringBuffer(s.length()); sb.append("/* "); boolean inPrefix = true; for(int i=2;i<s.length()-2;i++) { char c = s.charAt(i); if(inPrefix && Character.isWhitespace(c)) { continue; } inPrefix = false; if(Character.isDigit(c) || Character.isWhitespace(c) || Character.isLetter(c) || c == '.' || c == '_' || c == '-') { // No @, no !, etc; IE has been known to do things with comments // in CSS, and other browsers may too sb.append(c); } } while(Character.isWhitespace(sb.charAt(sb.length()-1))) sb.deleteCharAt(sb.length()-1); sb.append(" */"); w.write(sb.toString()); if(debug) log("Matched comment: "+s+" -> "+sb.toString()); } case 53: break; case 19: { if(!deleteErrors) { throwError("Unknown @identifier "+yytext()); } else { String s = yytext(); if(debug) log("Discarded identifier: "+s); // Ignore } } case 54: break; case 27: { // This is horrible. However it seems that there is no other way to do it with either jflex or CUP, as {URL} cannot be an unambiguous token :( String s = yytext(); if(debug) log("Recognized URL: "+s); DecodedStringThingy dst = new DecodedStringThingy(s); if(!dst.url) { throw new IllegalStateException("parsing url().. isn't a url()"); } if(dst.suffix.length() > 0) { yypushback(dst.suffix.length()); dst.suffix = ""; } s = dst.data; if(debug) log("URL now: "+s); s = processURL(s); dst.data = s; if(s == null || s.equals("")) { if(debug) log("URL invalid"); w.write("url()"); } else { s = dst.toString(); if(debug) log("Writing: "+s); w.write(s); } } case 55: break; case 11: { String s = yytext(); w.write(s); if(debug) log("Matched measurement: "+s); } case 56: break; case 16: { String s = yytext(); w.write(s); if(debug) log("Matched |=: "+s); } case 57: break; case 30: { String s = yytext(); detectedCharset = s; if(debug) log("Matched and ignoring charset: "+s); // Ignore } case 58: break; case 10: { if(postBadImportFlag) { // Ignore postBadImportFlag = false; if(debug) log("Ignoring mediums list because after bad import: "+ yytext()); } else { String s = yytext(); w.write(s); if(debug) log("Matched and passing on mediums list: "+s); } } case 59: break; case 4: { String s = yytext(); w.write(s); if(debug) log("Matched single char: "+s); } case 60: break; case 14: { String s = yytext(); w.write(s); if(debug) log("Matched #name: "+s); } case 61: break; case 5: { String s = yytext(); w.write(s); if(debug) log("Matched function end: "+s); } case 62: break; default: if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { zzAtEOF = true; return null; } else { zzScanError(ZZ_NO_MATCH); } } } }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/8611b2af3ba1b1861afc23367621eb525f20ee2a/CSSTokenizerFilter.java/buggy/src/freenet/clients/http/filter/CSSTokenizerFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1624, 93, 2316, 677, 1362, 92, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 509, 11273, 1210, 31, 565, 509, 11273, 1803, 31, 565, 368, 3472, 1466, 30, 565, 509, 11273, 3935, 1616, 48, 31, 565, 509, 11273, 21486, 1616, 48, 31, 565, 509, 11273, 1638, 1994, 48, 273, 11273, 1638, 1994, 31, 565, 1149, 5378, 11273, 1892, 48, 273, 11273, 1892, 31, 565, 1149, 5378, 11273, 39, 863, 48, 273, 2285, 62, 67, 39, 8352, 31, 565, 509, 5378, 11273, 1429, 48, 273, 2285, 62, 67, 16596, 31, 565, 509, 5378, 11273, 1999, 863, 48, 273, 2285, 62, 67, 11226, 8352, 31, 565, 509, 5378, 11273, 3843, 48, 273, 2285, 62, 67, 11616, 31, 565, 1323, 261, 3767, 13, 288, 1377, 11273, 21486, 1616, 48, 273, 11273, 21486, 1616, 31, 1377, 11273, 1803, 273, 300, 21, 31, 1377, 11273, 3935, 1616, 48, 273, 11273, 3935, 1616, 273, 11273, 1685, 1994, 273, 11273, 21486, 1616, 48, 31, 3639, 11273, 1119, 273, 11273, 14756, 1706, 1119, 31, 1377, 11273, 1290, 1803, 30, 288, 3639, 1323, 261, 3767, 13, 288, 2868, 309, 261, 6378, 3935, 1616, 48, 411, 11273, 1638, 1994, 48, 13, 5411, 11273, 1210, 273, 11273, 1892, 48, 63, 6378, 3935, 1616, 48, 9904, 15533, 1850, 469, 309, 261, 6378, 861, 12706, 13, 288, 5411, 11273, 1210, 273, 1624, 61, 12706, 31, 5411, 898, 11273, 1290, 1803, 31, 1850, 289, 1850, 469, 288, 5411, 368, 1707, 1473, 3472, 6865, 5411, 11273, 3935, 1616, 225, 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, 1624, 93, 2316, 677, 1362, 92, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 509, 11273, 1210, 31, 565, 509, 11273, 1803, 31, 565, 368, 3472, 1466, 30, 565, 509, 11273, 3935, 1616, 48, 31, 565, 509, 11273, 21486, 1616, 48, 31, 565, 509, 11273, 1638, 1994, 48, 273, 11273, 1638, 1994, 31, 565, 1149, 5378, 11273, 1892, 48, 273, 11273, 1892, 31, 565, 1149, 5378, 11273, 39, 863, 48, 273, 2285, 62, 67, 39, 8352, 31, 565, 509, 5378, 11273, 1429, 48, 273, 2285, 62, 67, 16596, 31, 565, 509, 5378, 11273, 1999, 863, 48, 273, 2285, 62, 67, 11226, 8352, 31, 565, 509, 5378, 11273, 3843, 48, 273, 2285, 62, 67, 11616, 31, 565, 2 ]
else if (postcode.equalsIgnoreCase("SN4 8QS"))
else if (postcode.equalsIgnoreCase("SN48QS"))
public Map fillAddress(String postcode) { Map reply = new HashMap(); if (postcode.equalsIgnoreCase("LE16 7TR")) //$NON-NLS-1$ { reply.put(LINE2, "Church Lane"); //$NON-NLS-1$ reply.put(LINE3, "Thorpe Langton"); //$NON-NLS-1$ reply.put(LINE4, "MARKET HARBOROUGH"); //$NON-NLS-1$ } else if (postcode.equalsIgnoreCase("NR14 7SL")) //$NON-NLS-1$ { reply.put(LINE2, "Rectory Lane"); //$NON-NLS-1$ reply.put(LINE3, "Poringland"); //$NON-NLS-1$ reply.put(LINE4, "NORWICH"); //$NON-NLS-1$ } else if (postcode.equalsIgnoreCase("B92 7TT")) //$NON-NLS-1$ { reply.put(LINE2, "Olton Mere"); //$NON-NLS-1$ reply.put(LINE3, "Warwick Road"); //$NON-NLS-1$ reply.put(LINE4, "SOLIHULL"); //$NON-NLS-1$ } else if (postcode.equalsIgnoreCase("E17 8YT")) //$NON-NLS-1$ { reply.put(LINE2, ""); //$NON-NLS-1$ reply.put(LINE3, "PO Box 43108 "); //$NON-NLS-1$ reply.put(LINE4, "LONDON"); //$NON-NLS-1$ } else if (postcode.equalsIgnoreCase("SN4 8QS")) //$NON-NLS-1$ { reply.put(LINE2, "Binknoll"); //$NON-NLS-1$ reply.put(LINE3, "Wootton Bassett"); //$NON-NLS-1$ reply.put(LINE4, "SWINDON"); //$NON-NLS-1$ } else if (postcode.equalsIgnoreCase("NN5 7HT")) //$NON-NLS-1$ { reply.put(LINE2, "Heathville"); //$NON-NLS-1$ reply.put(LINE3, ""); //$NON-NLS-1$ reply.put(LINE4, "NORTHAMPTON"); //$NON-NLS-1$ } else { reply.put(LINE2, "Postcode not found"); //$NON-NLS-1$ reply.put(LINE3, ""); //$NON-NLS-1$ reply.put(LINE4, ""); //$NON-NLS-1$ } return reply; }
45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/1c2e43c84790bfe925e41713280232cd61fc9288/Demo.java/clean/test/uk/ltd/getahead/dwr/test/Demo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 3636, 1887, 12, 780, 1603, 710, 13, 565, 288, 3639, 1635, 4332, 273, 394, 4317, 5621, 3639, 309, 261, 2767, 710, 18, 14963, 5556, 2932, 900, 2313, 2371, 4349, 6, 3719, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 288, 5411, 4332, 18, 458, 12, 5997, 22, 16, 315, 782, 295, 343, 511, 8806, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 4332, 18, 458, 12, 5997, 23, 16, 315, 1315, 280, 347, 13346, 1917, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 4332, 18, 458, 12, 5997, 24, 16, 315, 12693, 1584, 670, 20926, 916, 26556, 16715, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 289, 3639, 469, 309, 261, 2767, 710, 18, 14963, 5556, 2932, 50, 54, 3461, 2371, 4559, 6, 3719, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 288, 5411, 4332, 18, 458, 12, 5997, 22, 16, 315, 6120, 630, 511, 8806, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 4332, 18, 458, 12, 5997, 23, 16, 315, 52, 6053, 15733, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 4332, 18, 458, 12, 5997, 24, 16, 315, 50, 916, 23109, 1792, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 289, 3639, 469, 309, 261, 2767, 710, 18, 14963, 5556, 2932, 38, 9975, 2371, 1470, 6, 3719, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 288, 5411, 4332, 18, 458, 12, 5997, 22, 16, 315, 51, 80, 1917, 490, 822, 8863, 4329, 3993, 17, 5106, 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, 1635, 3636, 1887, 12, 780, 1603, 710, 13, 565, 288, 3639, 1635, 4332, 273, 394, 4317, 5621, 3639, 309, 261, 2767, 710, 18, 14963, 5556, 2932, 900, 2313, 2371, 4349, 6, 3719, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 288, 5411, 4332, 18, 458, 12, 5997, 22, 16, 315, 782, 295, 343, 511, 8806, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 4332, 18, 458, 12, 5997, 23, 16, 315, 1315, 280, 347, 13346, 1917, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 4332, 18, 458, 12, 5997, 24, 16, 315, 12693, 1584, 670, 20926, 916, 26556, 16715, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 289, 3639, 469, 309, 261, 2767, 710, 2 ]
null, "setHref");
null, "setHrefExpr");
public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[36]; try { result[0] = new PropertyDescriptor("accesskey", ELLinkTag.class, null, "setAccesskey"); result[1] = new PropertyDescriptor("action", ELLinkTag.class, null, "setAction"); result[2] = new PropertyDescriptor("anchor", ELLinkTag.class, null, "setAnchor"); result[3] = new PropertyDescriptor("forward", ELLinkTag.class, null, "setForward"); result[4] = new PropertyDescriptor("href", ELLinkTag.class, null, "setHref"); // This attribute has a non-standard mapping. result[5] = new PropertyDescriptor("indexed", ELLinkTag.class, null, "setIndexedExpr"); result[6] = new PropertyDescriptor("indexId", ELLinkTag.class, null, "setIndexId"); result[7] = new PropertyDescriptor("linkName", ELLinkTag.class, null, "setLinkName"); result[8] = new PropertyDescriptor("name", ELLinkTag.class, null, "setName"); result[9] = new PropertyDescriptor("onblur", ELLinkTag.class, null, "setOnblur"); result[10] = new PropertyDescriptor("onclick", ELLinkTag.class, null, "setOnclick"); result[11] = new PropertyDescriptor("ondblclick", ELLinkTag.class, null, "setOndblclick"); result[12] = new PropertyDescriptor("onfocus", ELLinkTag.class, null, "setOnfocus"); result[13] = new PropertyDescriptor("onkeydown", ELLinkTag.class, null, "setOnkeydown"); result[14] = new PropertyDescriptor("onkeypress", ELLinkTag.class, null, "setOnkeypress"); result[15] = new PropertyDescriptor("onkeyup", ELLinkTag.class, null, "setOnkeyup"); result[16] = new PropertyDescriptor("onmousedown", ELLinkTag.class, null, "setOnmousedown"); result[17] = new PropertyDescriptor("onmousemove", ELLinkTag.class, null, "setOnmousemove"); result[18] = new PropertyDescriptor("onmouseout", ELLinkTag.class, null, "setOnmouseout"); result[19] = new PropertyDescriptor("onmouseover", ELLinkTag.class, null, "setOnmouseover"); result[20] = new PropertyDescriptor("onmouseup", ELLinkTag.class, null, "setOnmouseup"); result[21] = new PropertyDescriptor("page", ELLinkTag.class, null, "setPage"); result[22] = new PropertyDescriptor("paramId", ELLinkTag.class, null, "setParamId"); result[23] = new PropertyDescriptor("paramName", ELLinkTag.class, null, "setParamName"); result[24] = new PropertyDescriptor("paramProperty", ELLinkTag.class, null, "setParamProperty"); result[25] = new PropertyDescriptor("paramScope", ELLinkTag.class, null, "setParamScope"); result[26] = new PropertyDescriptor("property", ELLinkTag.class, null, "setProperty"); result[27] = new PropertyDescriptor("scope", ELLinkTag.class, null, "setScope"); result[28] = new PropertyDescriptor("style", ELLinkTag.class, null, "setStyle"); result[29] = new PropertyDescriptor("styleClass", ELLinkTag.class, null, "setStyleClass"); result[30] = new PropertyDescriptor("styleId", ELLinkTag.class, null, "setStyleId"); result[31] = new PropertyDescriptor("tabindex", ELLinkTag.class, null, "setTabindex"); result[32] = new PropertyDescriptor("target", ELLinkTag.class, null, "setTarget"); result[33] = new PropertyDescriptor("title", ELLinkTag.class, null, "setTitle"); result[34] = new PropertyDescriptor("titleKey", ELLinkTag.class, null, "setTitleKey"); result[35] = new PropertyDescriptor("transaction", ELLinkTag.class, null, "setTransactionExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/db064e19656421b94aaf753550935d95f44bd5f9/ELLinkTagBeanInfo.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELLinkTagBeanInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 26761, 8526, 225, 563, 282, 273, 394, 26761, 63, 5718, 15533, 3639, 775, 288, 5411, 563, 63, 20, 65, 273, 394, 26761, 2932, 3860, 856, 3113, 14801, 2098, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 1862, 856, 8863, 5411, 563, 63, 21, 65, 273, 394, 26761, 2932, 1128, 3113, 14801, 2098, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 1803, 8863, 5411, 563, 63, 22, 65, 273, 394, 26761, 2932, 16215, 3113, 14801, 2098, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 11605, 8863, 5411, 563, 63, 23, 65, 273, 394, 26761, 2932, 11565, 3113, 14801, 2098, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 8514, 8863, 5411, 563, 63, 24, 65, 273, 394, 26761, 2932, 7547, 3113, 14801, 2098, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 15962, 4742, 8863, 6647, 368, 1220, 1566, 711, 279, 1661, 17, 10005, 2874, 18, 5411, 563, 63, 25, 65, 273, 394, 26761, 2932, 19626, 3113, 14801, 2098, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 15034, 4742, 8863, 5411, 563, 63, 26, 65, 273, 394, 26761, 2932, 1615, 548, 3113, 14801, 2098, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 1016, 548, 8863, 5411, 563, 63, 27, 65, 273, 394, 26761, 2932, 1232, 461, 3113, 14801, 2098, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 2098, 461, 8863, 5411, 563, 63, 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, 225, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 26761, 8526, 225, 563, 282, 273, 394, 26761, 63, 5718, 15533, 3639, 775, 288, 5411, 563, 63, 20, 65, 273, 394, 26761, 2932, 3860, 856, 3113, 14801, 2098, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 1862, 856, 8863, 5411, 563, 63, 21, 65, 273, 394, 26761, 2932, 1128, 3113, 14801, 2098, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 1803, 8863, 5411, 563, 63, 22, 65, 273, 394, 26761, 2932, 16215, 3113, 14801, 2098, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 11605, 8863, 5411, 563, 63, 23, 65, 273, 394, 26761, 2932, 11565, 3113, 14801, 2098, 1805, 18, 1106, 16, 2 ]
Logger.normal(this, "Completed handshake with "+this+" on "+replyTo+" - current: "+currentTracker+" old: "+previousTracker+" bootID: "+thisBootID);
Logger.normal(this, "Completed handshake with "+this+" on "+replyTo+" - current: "+currentTracker+" old: "+previousTracker+" unverified: "+unverifiedTracker+" bootID: "+thisBootID);
public synchronized void completedHandshake(long thisBootID, byte[] data, int offset, int length, BlockCipher encCipher, byte[] encKey, Peer replyTo, boolean unverified) { bogusNoderef = false; try { // First, the new noderef processNewNoderef(data, offset, length); } catch (FSParseException e1) { bogusNoderef = true; Logger.error(this, "Failed to parse new noderef for "+this+": "+e1, e1); // Treat as invalid version } if(invalidVersion()) { Logger.normal(this, "Not connecting to "+this+" - invalid version "+version); // Update the next time to check sentHandshake(); isConnected = false; return; } KeyTracker newTracker = new KeyTracker(this, encCipher, encKey); changedIP(replyTo); if(thisBootID != this.bootID) { Logger.minor(this, "Changed boot ID from "+bootID+" to "+thisBootID); if(previousTracker != null) previousTracker.completelyDeprecated(newTracker); previousTracker = null; this.bootID = thisBootID; } // else it's a rekey if(unverified) { unverifiedTracker = newTracker; ctx.getCipher(); // update timestamp } else { previousTracker = currentTracker; currentTracker = newTracker; unverifiedTracker = null; if(previousTracker != null) previousTracker.deprecated(); isConnected = true; ctx = null; } Logger.normal(this, "Completed handshake with "+this+" on "+replyTo+" - current: "+currentTracker+" old: "+previousTracker+" bootID: "+thisBootID); receivedPacket(); node.peers.addConnectedPeer(this); if(!unverified) sendInitialMessages(); }
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/ff17637498bec1ee8a6c424f9647ebd94a1aaada/PeerNode.java/clean/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 5951, 14545, 12, 5748, 333, 15817, 734, 16, 1160, 8526, 501, 16, 509, 1384, 16, 509, 769, 16, 3914, 13896, 2446, 13896, 16, 1160, 8526, 2446, 653, 16, 10669, 30934, 16, 1250, 640, 19685, 13, 288, 3639, 324, 28774, 50, 369, 822, 74, 273, 629, 31, 3639, 775, 288, 5411, 368, 5783, 16, 326, 394, 14003, 822, 74, 5411, 1207, 1908, 50, 369, 822, 74, 12, 892, 16, 1384, 16, 769, 1769, 3639, 289, 1044, 261, 4931, 13047, 425, 21, 13, 288, 5411, 324, 28774, 50, 369, 822, 74, 273, 638, 31, 5411, 4242, 18, 1636, 12, 2211, 16, 315, 2925, 358, 1109, 394, 14003, 822, 74, 364, 13773, 2211, 15, 6877, 13773, 73, 21, 16, 425, 21, 1769, 5411, 368, 26564, 487, 2057, 1177, 3639, 289, 3639, 309, 12, 5387, 1444, 10756, 288, 5411, 4242, 18, 6130, 12, 2211, 16, 315, 1248, 14244, 358, 13773, 2211, 9078, 300, 2057, 1177, 13773, 1589, 1769, 5411, 368, 2315, 326, 1024, 813, 358, 866, 5411, 3271, 14545, 5621, 5411, 20854, 273, 629, 31, 5411, 327, 31, 3639, 289, 3639, 1929, 8135, 394, 8135, 273, 394, 1929, 8135, 12, 2211, 16, 2446, 13896, 16, 2446, 653, 1769, 3639, 3550, 2579, 12, 10629, 774, 1769, 3639, 309, 12, 2211, 15817, 734, 480, 333, 18, 7137, 734, 13, 288, 5411, 4242, 18, 17364, 12, 2211, 16, 315, 5033, 4835, 1599, 628, 13773, 7137, 734, 9078, 358, 13773, 2211, 15817, 734, 1769, 5411, 309, 12, 11515, 8135, 480, 446, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 5951, 14545, 12, 5748, 333, 15817, 734, 16, 1160, 8526, 501, 16, 509, 1384, 16, 509, 769, 16, 3914, 13896, 2446, 13896, 16, 1160, 8526, 2446, 653, 16, 10669, 30934, 16, 1250, 640, 19685, 13, 288, 3639, 324, 28774, 50, 369, 822, 74, 273, 629, 31, 3639, 775, 288, 5411, 368, 5783, 16, 326, 394, 14003, 822, 74, 5411, 1207, 1908, 50, 369, 822, 74, 12, 892, 16, 1384, 16, 769, 1769, 3639, 289, 1044, 261, 4931, 13047, 425, 21, 13, 288, 5411, 324, 28774, 50, 369, 822, 74, 273, 638, 31, 5411, 4242, 18, 1636, 12, 2211, 16, 315, 2925, 358, 1109, 394, 14003, 822, 74, 364, 13773, 2211, 15, 6877, 13773, 73, 21, 2 ]
return;
return false;
private void processLine(BufferedReader reader, OutputStream out) throws IOException { String line; StringBuffer outsb = new StringBuffer(); try { line = reader.readLine(); } catch (IOException e) { outsb.append("Bye... ("+e+")"); System.err.println("Bye... ("+e+")"); return; } boolean getCHKOnly = false; if(line == null) return; String uline = line.toUpperCase(); Logger.minor(this, "Command: "+line); if(uline.startsWith("GET:")) { // Should have a key next String key = line.substring("GET:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); Logger.normal(this, "Key: "+key); FreenetURI uri; try { uri = new FreenetURI(key); Logger.normal(this, "Key: "+uri); } catch (MalformedURLException e2) { outsb.append("Malformed URI: "+key+" : "+e2); return; } try { FetchResult result = client.fetch(uri); ClientMetadata cm = result.getMetadata(); outsb.append("Content MIME type: "+cm.getMIMEType()); Bucket data = result.asBucket(); // FIXME limit it above if(data.size() > 32*1024) { System.err.println("Data is more than 32K: "+data.size()); outsb.append("Data is more than 32K: "+data.size()); return; } byte[] dataBytes = BucketTools.toByteArray(data); boolean evil = false; for(int i=0;i<dataBytes.length;i++) { // Look for escape codes if(dataBytes[i] == '\n') continue; if(dataBytes[i] == '\r') continue; if(dataBytes[i] < 32) evil = true; } if(evil) { System.err.println("Data may contain escape codes which could cause the terminal to run arbitrary commands! Save it to a file if you must with GETFILE:"); outsb.append("Data may contain escape codes which could cause the terminal to run arbitrary commands! Save it to a file if you must with GETFILE:"); return; } outsb.append("Data:\r\n"); outsb.append(new String(dataBytes)); } catch (FetchException e) { outsb.append("Error: "+e.getMessage()+"\r\n"); if(e.getMode() == e.SPLITFILE_ERROR && e.errorCodes != null) { outsb.append(e.errorCodes.toVerboseString()); } if(e.newURI != null) outsb.append("Permanent redirect: "+e.newURI+"\r\n"); } } else if(uline.startsWith("GETFILE:")) { // Should have a key next String key = line.substring("GETFILE:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); Logger.normal(this, "Key: "+key); FreenetURI uri; try { uri = new FreenetURI(key); } catch (MalformedURLException e2) { outsb.append("Malformed URI: "+key+" : "+e2); return; } try { long startTime = System.currentTimeMillis(); FetchResult result = client.fetch(uri); ClientMetadata cm = result.getMetadata(); outsb.append("Content MIME type: "+cm.getMIMEType()); Bucket data = result.asBucket(); // Now calculate filename String fnam = uri.getDocName(); fnam = sanitize(fnam); if(fnam.length() == 0) { fnam = "freenet-download-"+HexUtil.bytesToHex(BucketTools.hash(data), 0, 10); String ext = DefaultMIMETypes.getExtension(cm.getMIMEType()); if(ext != null && !ext.equals("")) fnam += "." + ext; } File f = new File(downloadsDir, fnam); if(f.exists()) { outsb.append("File exists already: "+fnam); fnam = "freenet-"+System.currentTimeMillis()+"-"+fnam; } FileOutputStream fos = null; try { fos = new FileOutputStream(f); BucketTools.copyTo(data, fos, Long.MAX_VALUE); fos.close(); outsb.append("Written to "+fnam); } catch (IOException e) { outsb.append("Could not write file: caught "+e); e.printStackTrace(); } finally { if(fos != null) try { fos.close(); } catch (IOException e1) { // Ignore } } long endTime = System.currentTimeMillis(); long sz = data.size(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Download rate: "+rate+" bytes / second"); } catch (FetchException e) { outsb.append("Error: "+e.getMessage()); if(e.getMode() == e.SPLITFILE_ERROR && e.errorCodes != null) { outsb.append(e.errorCodes.toVerboseString()); } if(e.newURI != null) outsb.append("Permanent redirect: "+e.newURI+"\r\n"); } } else if(uline.startsWith("QUIT")) { n.exit(); } else if(uline.startsWith("PUT:") || (getCHKOnly = uline.startsWith("GETCHK:"))) { // Just insert to local store if(getCHKOnly) line = line.substring(("GETCHK:").length()); else line = line.substring("PUT:".length()); while(line.length() > 0 && line.charAt(0) == ' ') line = line.substring(1); while(line.length() > 0 && line.charAt(line.length()-1) == ' ') line = line.substring(0, line.length()-2); String content; if(line.length() > 0) { // Single line insert content = line; } else { // Multiple line insert content = readLines(reader, false); } // Insert byte[] data = content.getBytes(); InsertBlock block = new InsertBlock(new ArrayBucket(data), null, FreenetURI.EMPTY_CHK_URI); FreenetURI uri; try { uri = client.insert(block, getCHKOnly); } catch (InserterException e) { outsb.append("Error: "+e.getMessage()); if(e.uri != null) outsb.append("URI would have been: "+e.uri); int mode = e.getMode(); if(mode == InserterException.FATAL_ERRORS_IN_BLOCKS || mode == InserterException.TOO_MANY_RETRIES_IN_BLOCKS) { outsb.append("Splitfile-specific error:\n"+e.errorCodes.toVerboseString()); } return; } outsb.append("URI: "+uri); //////////////////////////////////////////////////////////////////////////////// } else if(uline.startsWith("PUTDIR:") || (uline.startsWith("PUTSSKDIR")) || (getCHKOnly = uline.startsWith("GETCHKDIR:"))) { // TODO: Check for errors? boolean ssk = false; if(uline.startsWith("PUTDIR:")) line = line.substring("PUTDIR:".length()); else if(uline.startsWith("PUTSSKDIR:")) { line = line.substring("PUTSSKDIR:".length()); ssk = true; } else if(uline.startsWith("GETCHKDIR:")) line = line.substring(("GETCHKDIR:").length()); else { System.err.println("Impossible"); outsb.append("Impossible"); } line = line.trim(); if(line.length() < 1) { printHeader(out); return; } String defaultFile = null; FreenetURI insertURI = FreenetURI.EMPTY_CHK_URI; // set default file? if (line.matches("^.*#.*$")) { String[] split = line.split("#"); if(ssk) { insertURI = new FreenetURI(split[0]); line = split[1]; if(split.length > 2) defaultFile = split[2]; } else { defaultFile = split[1]; line = split[0]; } } HashMap bucketsByName = makeBucketsByName(line); if(defaultFile == null) { String[] defaultFiles = new String[] { "index.html", "index.htm", "default.html", "default.htm" }; for(int i=0;i<defaultFiles.length;i++) { if(bucketsByName.containsKey(defaultFiles[i])) { defaultFile = defaultFiles[i]; break; } } } FreenetURI uri; try { uri = client.insertManifest(insertURI, bucketsByName, defaultFile); uri = uri.addMetaStrings(new String[] { "" }); outsb.append("======================================================="); outsb.append("URI: "+uri); outsb.append("======================================================="); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); if(e.uri != null) { uri = e.uri; uri = uri.addMetaStrings(new String[] { "" }); outsb.append("URI would have been: "+uri); } if(e.errorCodes != null) { outsb.append("Splitfile errors breakdown:"); outsb.append(e.errorCodes.toVerboseString()); } Logger.error(this, "Caught "+e, e); } } else if(uline.startsWith("PUTFILE:") || (getCHKOnly = uline.startsWith("GETCHKFILE:"))) { // Just insert to local store if(getCHKOnly) { line = line.substring(("GETCHKFILE:").length()); } else { line = line.substring("PUTFILE:".length()); } while(line.length() > 0 && line.charAt(0) == ' ') line = line.substring(1); while(line.length() > 0 && line.charAt(line.length()-1) == ' ') line = line.substring(0, line.length()-2); File f = new File(line); outsb.append("Attempting to read file "+line); long startTime = System.currentTimeMillis(); try { if(!(f.exists() && f.canRead())) { throw new FileNotFoundException(); } // Guess MIME type String mimeType = DefaultMIMETypes.guessMIMEType(line); outsb.append("Using MIME type: "+mimeType); if(mimeType.equals(DefaultMIMETypes.DEFAULT_MIME_TYPE)) mimeType = ""; // don't need to override it FileBucket fb = new FileBucket(f, true, false, false, false); InsertBlock block = new InsertBlock(fb, new ClientMetadata(mimeType), FreenetURI.EMPTY_CHK_URI); startTime = System.currentTimeMillis(); FreenetURI uri = client.insert(block, getCHKOnly); // FIXME depends on CHK's still being renamable //uri = uri.setDocName(f.getName()); outsb.append("URI: "+uri+"\r\n"); long endTime = System.currentTimeMillis(); long sz = f.length(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Upload rate: "+rate+" bytes / second\r\n"); } catch (FileNotFoundException e1) { outsb.append("File not found"); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); if(e.uri != null) { outsb.append("URI would have been: "+e.uri); long endTime = System.currentTimeMillis(); long sz = f.length(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Upload rate: "+rate+" bytes / second"); } if(e.errorCodes != null) { outsb.append("Splitfile errors breakdown:"); outsb.append(e.errorCodes.toVerboseString()); } } catch (Throwable t) { outsb.append("Insert threw: "+t); t.printStackTrace(); } } else if(uline.startsWith("MAKESSK")) { InsertableClientSSK key = InsertableClientSSK.createRandom(r); outsb.append("Insert URI: "+key.getInsertURI().toString(false)); outsb.append("Request URI: "+key.getURI().toString(false)); FreenetURI insertURI = key.getInsertURI().setDocName("testsite"); String fixedInsertURI = insertURI.toString(false); outsb.append("Note that you MUST add a filename to the end of the above URLs e.g.:\r\n"+fixedInsertURI); outsb.append("Normally you will then do PUTSSKDIR:<insert URI>#<directory to upload>, for example:\r\nPUTSSKDIR:"+fixedInsertURI+"#directoryToUpload/"); outsb.append("This will then produce a manifest site containing all the files, the default document can be accessed at\r\n"+insertURI.addMetaStrings(new String[] { "" }).toString(false)); } else if(uline.startsWith("PUTSSK:")) { String cmd = line.substring("PUTSSK:".length()); cmd = cmd.trim(); if(cmd.indexOf(';') <= 0) { outsb.append("No target URI provided."); outsb.append("PUTSSK:<insert uri>;<url to redirect to>"); return; } String[] split = cmd.split(";"); String insertURI = split[0]; String targetURI = split[1]; outsb.append("Insert URI: "+insertURI); outsb.append("Target URI: "+targetURI); FreenetURI insert = new FreenetURI(insertURI); FreenetURI target = new FreenetURI(targetURI); try { FreenetURI result = client.insertRedirect(insert, target); outsb.append("Successfully inserted to fetch URI: "+result); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); Logger.normal(this, "Error: "+e, e); if(e.uri != null) { outsb.append("URI would have been: "+e.uri); } } } else if(uline.startsWith("STATUS")) { SimpleFieldSet fs = n.exportFieldSet(); outsb.append(fs.toString()); outsb.append(n.getStatus()); if(Version.buildNumber()<Version.highestSeenBuild){ outsb.append("The latest version is : "+Version.highestSeenBuild); } } else if(uline.startsWith("CONNECT:")) { String key = line.substring("CONNECT:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); String content = null; if(key.length() > 0) { // Filename BufferedReader in; outsb.append("Trying to connect to noderef in "+key); File f = new File(key); if (f.isFile()) { outsb.append("Given string seems to be a file, loading..."); in = new BufferedReader(new FileReader(f)); } else { outsb.append("Given string seems to be an URL, loading..."); URL url = new URL(key); URLConnection uc = url.openConnection(); in = new BufferedReader( new InputStreamReader(uc.getInputStream())); } content = readLines(in, true); in.close(); } else { content = readLines(reader, true); } if(content == null) return; if(content.equals("")) return; connect(content); } else if(uline.startsWith("NAME:")) { outsb.append("Node name currently: "+n.myName); String key = line.substring("NAME:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); outsb.append("New name: "+key); n.setName(key); } else if(uline.startsWith("DISCONNECT:")) { String ipAndPort = line.substring("DISCONNECT:".length()); disconnect(ipAndPort.trim()); } else if(uline.startsWith("PLUGLOAD:")) { if (line.substring("PLUGLOAD:".length()).trim().equals("?")) { outsb.append(" PLUGLOAD: pkg.Class - Load plugin from current classpath"); outsb.append(" PLUGLOAD: pkg.Class@file:<filename> - Load plugin from file"); outsb.append(" PLUGLOAD: pkg.Class@http://... - Load plugin from online file"); outsb.append(" PLUGLOAD: *@... - Load plugin from manifest in given jarfile"); outsb.append(""); outsb.append("If the filename/url ends with \".url\", it" + " is treated as a link, meaning that the first line is" + " the accual URL. Else it is loaded as classpath and" + " the class it loaded from it (meaning the file could" + " be either a jar-file or a class-file)."); outsb.append(""); outsb.append(" PLUGLOAD: pkg.Class* - Load newest version of plugin from http://downloads.freenetproject.org/alpha/plugins/"); outsb.append(""); } else n.pluginManager.startPlugin(line.substring("PLUGLOAD:".length()).trim()); //outsb.append("PLUGLOAD: <pkg.classname>[(@<URI to jarfile.jar>|<<URI to file containing real URI>|* (will load from freenets pluginpool))] - Load plugin."); } else if(uline.startsWith("PLUGLIST")) { outsb.append(n.pluginManager.dumpPlugins()); } else if(uline.startsWith("PLUGKILL:")) { n.pluginManager.killPlugin(line.substring("PLUGKILL:".length()).trim()); } else { if(uline.length() > 0) printHeader(out); } outsb.append("\r\n"); out.write(outsb.toString().getBytes()); out.flush(); }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/8fb84ecb4f999d46d9f08a051b57d64c234b5ce4/TextModeClientInterface.java/clean/src/freenet/node/TextModeClientInterface.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 1670, 12, 17947, 2514, 2949, 16, 8962, 596, 13, 1216, 1860, 288, 3639, 514, 980, 31, 3639, 6674, 596, 18366, 273, 394, 6674, 5621, 3639, 775, 288, 5411, 980, 273, 2949, 18, 896, 1670, 5621, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 596, 18366, 18, 6923, 2932, 858, 73, 2777, 7566, 15, 73, 9078, 2225, 1769, 5411, 2332, 18, 370, 18, 8222, 2932, 858, 73, 2777, 7566, 15, 73, 9078, 2225, 1769, 5411, 327, 629, 31, 3639, 289, 3639, 1250, 336, 1792, 47, 3386, 273, 629, 31, 3639, 309, 12, 1369, 422, 446, 13, 327, 629, 31, 3639, 514, 7493, 558, 273, 980, 18, 869, 8915, 5621, 3639, 4242, 18, 17364, 12, 2211, 16, 315, 2189, 30, 13773, 1369, 1769, 3639, 309, 12, 332, 558, 18, 17514, 1190, 2932, 3264, 2773, 3719, 288, 5411, 368, 9363, 1240, 279, 498, 1024, 5411, 514, 498, 273, 980, 18, 28023, 2932, 3264, 2773, 18, 2469, 10663, 5411, 1323, 12, 856, 18, 2469, 1435, 405, 374, 597, 498, 18, 3001, 861, 12, 20, 13, 422, 296, 8624, 7734, 498, 273, 498, 18, 28023, 12, 21, 1769, 5411, 1323, 12, 856, 18, 2469, 1435, 405, 374, 597, 498, 18, 3001, 861, 12, 856, 18, 2469, 1435, 17, 21, 13, 422, 296, 8624, 7734, 498, 273, 498, 18, 28023, 12, 20, 16, 498, 18, 2469, 1435, 17, 22, 1769, 5411, 4242, 18, 6130, 12, 2211, 16, 315, 653, 30, 13773, 856, 1769, 5411, 478, 2842, 278, 3098, 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, 1207, 1670, 12, 17947, 2514, 2949, 16, 8962, 596, 13, 1216, 1860, 288, 3639, 514, 980, 31, 3639, 6674, 596, 18366, 273, 394, 6674, 5621, 3639, 775, 288, 5411, 980, 273, 2949, 18, 896, 1670, 5621, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 596, 18366, 18, 6923, 2932, 858, 73, 2777, 7566, 15, 73, 9078, 2225, 1769, 5411, 2332, 18, 370, 18, 8222, 2932, 858, 73, 2777, 7566, 15, 73, 9078, 2225, 1769, 5411, 327, 629, 31, 3639, 289, 3639, 1250, 336, 1792, 47, 3386, 273, 629, 31, 3639, 309, 12, 1369, 422, 446, 13, 327, 629, 31, 3639, 514, 7493, 558, 273, 980, 18, 869, 8915, 5621, 3639, 4242, 18, 17364, 12, 2211, 2 ]
public static void nextError(JEditTextArea textArea) { int caretPosition = textArea.getCaretPosition(); ErrorSource.Error[] errors = org.jedit.ruby.structure.RubySideKickParser.getErrors();
public static void nextError(View view) { if(isRubyFile(view)) { JEditTextArea textArea = view.getTextArea(); int caretPosition = textArea.getCaretPosition(); ErrorSource.Error[] errors = org.jedit.ruby.structure.RubySideKickParser.getErrors();
public static void nextError(JEditTextArea textArea) { int caretPosition = textArea.getCaretPosition(); ErrorSource.Error[] errors = org.jedit.ruby.structure.RubySideKickParser.getErrors(); for (ErrorSource.Error error : errors) { int offset = RubyPlugin.getNonSpaceStartOffset(error.getLineNumber()); if (caretPosition < offset) { textArea.setCaretPosition(offset, true); break; } } }
13291 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13291/ac7df1c30cf872583d5feb7b68ce09b6567a490d/RubyActions.java/buggy/src/org/jedit/ruby/RubyActions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1024, 668, 12, 46, 4666, 1528, 5484, 977, 5484, 13, 288, 3639, 509, 21683, 2555, 273, 977, 5484, 18, 588, 39, 20731, 2555, 5621, 3639, 1068, 1830, 18, 668, 8526, 1334, 273, 2358, 18, 78, 4619, 18, 27768, 18, 7627, 18, 54, 10340, 8895, 47, 1200, 2678, 18, 588, 4229, 5621, 3639, 364, 261, 668, 1830, 18, 668, 555, 294, 1334, 13, 288, 5411, 509, 1384, 273, 19817, 3773, 18, 588, 3989, 3819, 1685, 2335, 12, 1636, 18, 588, 31063, 10663, 5411, 309, 261, 71, 20731, 2555, 411, 1384, 13, 288, 7734, 977, 5484, 18, 542, 39, 20731, 2555, 12, 3348, 16, 638, 1769, 7734, 898, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1024, 668, 12, 46, 4666, 1528, 5484, 977, 5484, 13, 288, 3639, 509, 21683, 2555, 273, 977, 5484, 18, 588, 39, 20731, 2555, 5621, 3639, 1068, 1830, 18, 668, 8526, 1334, 273, 2358, 18, 78, 4619, 18, 27768, 18, 7627, 18, 54, 10340, 8895, 47, 1200, 2678, 18, 588, 4229, 5621, 3639, 364, 261, 668, 1830, 18, 668, 555, 294, 1334, 13, 288, 5411, 509, 1384, 273, 19817, 3773, 18, 588, 3989, 3819, 1685, 2335, 12, 1636, 18, 588, 31063, 10663, 5411, 309, 261, 71, 20731, 2555, 411, 1384, 13, 288, 7734, 977, 5484, 18, 542, 39, 20731, 2555, 12, 3348, 16, 638, 1769, 7734, 898, 31, 5411, 289, 3639, 289, 565, 289, 2, -100, -100 ]
getLog().debug("found image with name '" + name + "'");
public NativeArray jsGet_images() { final List jsImages = new ArrayList(); final List imageElements = getHtmlPage().getDocumentElement().getHtmlElementsByTagNames( Collections.singletonList("img") ); final Iterator iterator = imageElements.iterator(); while( iterator.hasNext() ) { final HtmlImage htmlImage = (HtmlImage)iterator.next(); Image jsImage = (Image)htmlImage.getScriptObject(); if( jsImage == null ) { jsImage = (Image)makeJavaScriptObject("Image"); jsImage.setHtmlElement( htmlImage ); } jsImages.add(jsImage); } final int attributes = READONLY; final Image[] array = new Image[jsImages.size()]; jsImages.toArray(array); final NativeArray allImages = new NativeArray(array); for( int i=0; i<array.length; i++ ) { final String name = array[i].getHtmlElementOrDie().getAttributeValue("name"); getLog().debug("found image with name '" + name + "'"); if( name.length() != 0 ) { allImages.defineProperty(name, array[i], attributes); } } return allImages; }
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/a786f7a86e67a88407866cd6aa3b3d381c79a5a1/Document.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/host/Document.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16717, 1076, 3828, 967, 67, 7369, 1435, 288, 3639, 727, 987, 3828, 8946, 273, 394, 2407, 5621, 3639, 727, 987, 1316, 3471, 5411, 273, 19633, 1964, 7675, 588, 2519, 1046, 7675, 588, 4353, 3471, 29309, 1557, 12, 5737, 18, 24487, 682, 2932, 6081, 7923, 11272, 3639, 727, 4498, 2775, 273, 1316, 3471, 18, 9838, 5621, 3639, 1323, 12, 2775, 18, 5332, 2134, 1435, 262, 288, 5411, 727, 5430, 2040, 1729, 2040, 273, 261, 4353, 2040, 13, 9838, 18, 4285, 5621, 5411, 3421, 3828, 2040, 273, 261, 2040, 13, 2620, 2040, 18, 588, 3651, 921, 5621, 5411, 309, 12, 3828, 2040, 422, 446, 262, 288, 7734, 3828, 2040, 273, 261, 2040, 13, 6540, 16634, 921, 2932, 2040, 8863, 7734, 3828, 2040, 18, 542, 4353, 1046, 12, 1729, 2040, 11272, 5411, 289, 5411, 3828, 8946, 18, 1289, 12, 2924, 2040, 1769, 3639, 289, 3639, 727, 509, 1677, 273, 10746, 10857, 31, 3639, 727, 3421, 8526, 526, 273, 394, 3421, 63, 2924, 8946, 18, 1467, 1435, 15533, 3639, 3828, 8946, 18, 31447, 12, 1126, 1769, 3639, 727, 16717, 1076, 777, 8946, 273, 394, 16717, 1076, 12, 1126, 1769, 3639, 364, 12, 509, 277, 33, 20, 31, 277, 32, 1126, 18, 2469, 31, 277, 9904, 262, 288, 5411, 727, 514, 508, 273, 526, 63, 77, 8009, 588, 4353, 1046, 28850, 7675, 588, 14942, 2932, 529, 8863, 15604, 309, 12, 508, 18, 2469, 1435, 480, 374, 262, 288, 7734, 777, 8946, 18, 11255, 1396, 12, 529, 16, 526, 63, 77, 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, 16717, 1076, 3828, 967, 67, 7369, 1435, 288, 3639, 727, 987, 3828, 8946, 273, 394, 2407, 5621, 3639, 727, 987, 1316, 3471, 5411, 273, 19633, 1964, 7675, 588, 2519, 1046, 7675, 588, 4353, 3471, 29309, 1557, 12, 5737, 18, 24487, 682, 2932, 6081, 7923, 11272, 3639, 727, 4498, 2775, 273, 1316, 3471, 18, 9838, 5621, 3639, 1323, 12, 2775, 18, 5332, 2134, 1435, 262, 288, 5411, 727, 5430, 2040, 1729, 2040, 273, 261, 4353, 2040, 13, 9838, 18, 4285, 5621, 5411, 3421, 3828, 2040, 273, 261, 2040, 13, 2620, 2040, 18, 588, 3651, 921, 5621, 5411, 309, 12, 3828, 2040, 422, 446, 262, 288, 7734, 3828, 2040, 273, 261, 2040, 13, 6540, 16634, 921, 2932, 2040, 8863, 2 ]
public final VM_Address allocCopy(VM_Address original, EXTENT bytes,
final public VM_Address allocCopy(VM_Address original, EXTENT bytes,
public final VM_Address allocCopy(VM_Address original, EXTENT bytes, boolean isScalar) throws VM_PragmaInline { if (VM.VerifyAssertions) VM._assert(false); return null; }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/94b7f2758d20d0b18a9fe0f2a98fc5fcde7a9fce/Plan.java/clean/rvm/src/vm/memoryManagers/JMTk/plan/refCount/Plan.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 8251, 67, 1887, 4767, 2951, 12, 7397, 67, 1887, 2282, 16, 11112, 2222, 1731, 16, 6862, 565, 1250, 11604, 3473, 13, 1216, 8251, 67, 2050, 9454, 10870, 288, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 8251, 6315, 11231, 12, 5743, 1769, 565, 327, 446, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 8251, 67, 1887, 4767, 2951, 12, 7397, 67, 1887, 2282, 16, 11112, 2222, 1731, 16, 6862, 565, 1250, 11604, 3473, 13, 1216, 8251, 67, 2050, 9454, 10870, 288, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 8251, 6315, 11231, 12, 5743, 1769, 565, 327, 446, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
List argsList = rubyFrame.getArgs();
List argsList = getRubyFrame().getArgs();
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { if (node == null) { return getRuby().getNil(); } switch (node.nd_type()) { case NODE_BLOCK: while (node.nd_next() != null) { eval(self, node.nd_head()); node = node.nd_next(); } node = node.nd_head(); break; case NODE_POSTEXE: // rb_f_END(); node.nd_set_type(NODE_NIL); /* exec just once */ return getRuby().getNil(); /* begin .. end without clauses */ case NODE_BEGIN: node = node.nd_body(); break; /* nodes for speed-up(default match) */ case NODE_MATCH: //return rom.rb_reg_match2(node.nd_head().nd_lit()); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH2: //return rom.rb_reg_match(eval(node.nd_recv()), eval(node.nd_value())); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH3: //VALUE r = eval(node.nd_recv()); //VALUE l = eval(node.nd_value()); //if (r instanceof RubyString) { // return rom.rb_reg_match(l, r); //} else { // return rom.rb_funcall(r, match, 1, l); //} return getRuby().getNil(); /* node for speed-up(top-level loop for -n/-p) */ case NODE_OPT_N: while (true) { try { // while (!rb_gets().isNil() false) { // HACK +++ if (true) { // HACK --- try { eval(self, node.nd_body()); } catch (RedoException rExcptn) { } } break; } catch (NextException nExcptn) { } catch (BreakException bExcptn) { break; } } return getRuby().getNil(); case NODE_SELF: return self; case NODE_NIL: return getRuby().getNil(); case NODE_TRUE: return getRuby().getTrue(); case NODE_FALSE: return getRuby().getFalse(); case NODE_IF: // ruby_sourceline = node.nd_line(); cond = (RubyBoolean)eval(self, node.nd_cond()); if (cond.isTrue()) { node = node.nd_body(); } else { node = node.nd_else(); } break; case NODE_WHEN: while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); }*/ // ruby_sourcefile = tag.nd_file; // ruby_sourceline = tag.nd_line(); if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj = eval(self, tag.nd_head().nd_head()); if (!(obj instanceof RubyArray)) { obj = RubyArray.m_newArray(getRuby(), obj); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { if (((RubyBoolean)((RubyArray)obj).entry(i)).isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (((RubyBoolean)eval(self, tag.nd_head())).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_CASE: RubyObject obj = eval(self, node.nd_head()); node = node.nd_body(); while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); } ruby_sourcefile = tag->nd_file; ruby_sourceline = nd_line(tag);*/ if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj2 = eval(self, tag.nd_head().nd_head()); if (!(obj2 instanceof RubyArray)) { obj2 = RubyArray.m_newArray(getRuby(), obj2); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { RubyBoolean eqq = (RubyBoolean)((RubyArray)obj2).entry(i).funcall(getRuby().intern("==="), obj); if (eqq.isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (((RubyBoolean)eval(self, tag.nd_head()).funcall(getRuby().intern("==="), obj)).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_WHILE: while (eval(self, node.nd_cond()).isTrue()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_UNTIL: while (eval(self, node.nd_cond()).isFalse()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_BLOCK_PASS: //return block_pass(node); return null; case NODE_ITER: case NODE_FOR: rubyBlock.push(node.nd_var(), node.nd_body(), self); rubyIter.push(Iter.ITER_PRE); while (true) { try { if (node.nd_type() == NODE_ITER) { result = eval(self, node.nd_iter()); } else { // String file = // int line = rubyBlock.flags &= ~RubyBlock.BLOCK_D_SCOPE; RubyBlock tmpBlock = beginCallargs(); RubyObject recv = eval(self, node.nd_iter()); endCallArgs(tmpBlock); // = file; // = line; result = recv.getRubyClass().call(recv, ruby.intern("each"), null, 0); } break; } catch (RetryException rExcptn) { } catch (ReturnException rExcptn) { result = rExcptn.getReturnValue(); break; } catch (BreakException bExcptn) { result = ruby.getNil(); break; } } rubyIter.pop(); rubyBlock.pop(); return result; case NODE_BREAK: throw new BreakException(); case NODE_NEXT: throw new NextException(); case NODE_REDO: throw new RedoException(); case NODE_RETRY: throw new RetryException(); case NODE_RESTARGS: result = eval(self, node.nd_head()); if (!(result instanceof RubyArray)) { result = obj = RubyArray.m_newArray(getRuby(), result); } return result; case NODE_YIELD: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); if (node.nd_stts().nd_type() == NODE_RESTARGS && ((RubyArray)result).length() == 1) { result = ((RubyArray)result).entry(0); } } else { result = ruby.getNil(); } return yield0(result, null, null, false); case NODE_RESCUE:/* retry_entry: { volatile VALUE e_info = ruby_errinfo; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, node->nd_head); } POP_TAG(); if (state == TAG_RAISE) { NODE * volatile resq = node->nd_resq; ruby_sourceline = nd_line(node); while (resq) { if (handle_rescue(self, resq)) { state = 0; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, resq->nd_body); } POP_TAG(); if (state == TAG_RETRY) { state = 0; ruby_errinfo = Qnil; goto retry_entry; } if (state != TAG_RAISE) { ruby_errinfo = e_info; } break; } resq = resq->nd_head; /* next rescue */ /** } * } * else if (node->nd_else) { /* else clause given *//* if (!state) { /* no exception raised *//* result = rb_eval(self, node->nd_else); } } if (state) JUMP_TAG(state); } break;*/ case NODE_ENSURE:/* PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = eval(node.nd_head()); } POP_TAG(); if (node.nd_ensr()) { VALUE retval = prot_tag->retval; /* save retval *//* VALUE errinfo = ruby_errinfo; rb_eval(self, node->nd_ensr); return_value(retval); ruby_errinfo = errinfo; } if (state) JUMP_TAG(state); break;*/ case NODE_AND: cond = (RubyBoolean)eval(self, node.nd_1st()); if (cond.isFalse()) { return cond; } node = node.nd_2nd(); break; case NODE_OR: cond = (RubyBoolean)eval(self, node.nd_1st()); if (cond.isTrue()) { return cond; } node = node.nd_2nd(); break; case NODE_NOT: return RubyBoolean.m_newBoolean(getRuby(), eval(self, node.nd_1st()).isFalse()); case NODE_DOT2: case NODE_DOT3: result = RubyRange.m_newRange(getRuby(), eval(self, node.nd_beg()), eval(self, node.nd_end()), node.nd_type() == NODE_DOT3); if (node.nd_state() != 0) { return result; } if (node.nd_beg().nd_type() == NODE_LIT && (node.nd_beg().nd_lit() instanceof RubyFixnum) && node.nd_end().nd_type() == NODE_LIT && (node.nd_end().nd_lit() instanceof RubyFixnum)) { node.nd_set_type(NODE_LIT); node.nd_lit(result); } else { node.nd_state(1L); } return result; case NODE_FLIP2: /* like AWK */ /*if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); }*/ if (ruby.rubyScope.getLocalVars(node.nd_cnt()).isFalse()) { if (eval(self, node.nd_beg()).isTrue()) { ruby.rubyScope.setLocalVars(node.nd_cnt(), eval(self, node.nd_end()).isTrue() ? ruby.getFalse() : ruby.getTrue()); result = ruby.getTrue(); } else { result = ruby.getFalse(); } } else { if (eval(self, node.nd_end()).isTrue()) { ruby.rubyScope.setLocalVars(node.nd_cnt(), ruby.getFalse()); } result = ruby.getTrue(); } return result; case NODE_FLIP3: /* like SED */ /*if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); }*/ if (ruby.rubyScope.getLocalVars(node.nd_cnt()).isFalse()) { result = eval(self, node.nd_beg()).isTrue() ? ruby.getFalse() : ruby.getTrue(); ruby.rubyScope.setLocalVars(node.nd_cnt(), result); } else { if (eval(self, node.nd_end()).isTrue()) { ruby.rubyScope.setLocalVars(node.nd_cnt(), ruby.getFalse()); } result = ruby.getTrue(); } return result; case NODE_RETURN: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); } else { result = ruby.getNil(); } throw new ReturnException(result); case NODE_ARGSCAT: return ((RubyArray)eval(self, node.nd_head())).m_concat(eval(self, node.nd_body())); case NODE_ARGSPUSH: return ((RubyArray)eval(self, node.nd_head()).m_dup()).push(eval(self, node.nd_body())); case NODE_CALL: // TMP_PROTECT; RubyBlock tmpBlock = beginCallargs(); RubyObject recv = eval(self, node.nd_recv()); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); return recv.getRubyClass().call(recv, (RubyId)node.nd_mid(), args, 0); case NODE_FCALL: // TMP_PROTECT; tmpBlock = beginCallargs(); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); return self.getRubyClass().call(self, (RubyId)node.nd_mid(), args, 1); case NODE_VCALL: return self.getRubyClass().call(self, (RubyId)node.nd_mid(), null, 2); case NODE_SUPER: case NODE_ZSUPER: // TMP_PROTECT; if (rubyFrame.getLastClass() == null) { throw new RubyNameException("superclass method '" + rubyFrame.getLastFunc().toName() + "' disabled"); } if (node.nd_type() == NODE_ZSUPER) { List argsList = rubyFrame.getArgs(); args = (RubyObject[])argsList.toArray(new RubyObject[argsList.size()]); } else { tmpBlock = beginCallargs(); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); } rubyIter.push(rubyIter.getIter() != Iter.ITER_NOT ? Iter.ITER_PRE : Iter.ITER_NOT); result = rubyFrame.getLastClass().getSuperClass().call(rubyFrame.getSelf(), rubyFrame.getLastFunc(), args, 3); rubyIter.pop(); return result; case NODE_SCOPE: NODE saved_cref = null; Frame frame = rubyFrame; frame.setTmp(rubyFrame); rubyFrame = frame; ruby.rubyScope.push(); if (node.nd_rval() != null) { saved_cref = ruby_cref; ruby_cref = (NODE)node.nd_rval(); rubyFrame.setCbase(node.nd_rval()); } if (node.nd_tbl() != null) { List tmp = Collections.nCopies(node.nd_tbl()[0].intValue() + 1, ruby.getNil()); ShiftableList vars = new ShiftableList(new ArrayList(tmp)); vars.set(0, (VALUE)node); vars.shift(1); getRuby().rubyScope.setLocalVars(vars); getRuby().rubyScope.setLocalTbl(node.nd_tbl()); } else { getRuby().rubyScope.setLocalVars(null); getRuby().rubyScope.setLocalTbl(null); } result = eval(self, node.nd_next()); ruby.rubyScope.pop(); rubyFrame = frame.getTmp(); if (saved_cref != null) { ruby_cref = saved_cref; } return result; case NODE_OP_ASGN1: // TMP_PROTECT; recv = eval(self, node.nd_recv()); NODE rval = node.nd_args().nd_head(); args = setupArgs(self, node.nd_args().nd_next()); ArrayList argsList = new ArrayList(Arrays.asList(args)); argsList.remove(args.length - 1); RubyBoolean val = (RubyBoolean)recv.funcall(getRuby().intern("[]"), (RubyObject[])argsList.toArray(new RubyObject[argsList.size()])); switch (node.nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = (RubyBoolean)eval(self, rval); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = (RubyBoolean)eval(self, rval); break; default: val = (RubyBoolean)val.funcall((RubyId)node.nd_mid(), eval(self, rval)); } args[args.length - 1] = val; return recv.funcall(getRuby().intern("[]="), args); case NODE_OP_ASGN2: ID id = node.nd_next().nd_vid(); recv = eval(self, node.nd_recv()); val = (RubyBoolean)recv.funcall((RubyId)id, (RubyObject[])null); switch (node.nd_next().nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = (RubyBoolean)eval(self, node.nd_value()); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = (RubyBoolean)eval(self, node.nd_value()); break; default: val = (RubyBoolean)val.funcall((RubyId)node.nd_mid(), eval(self, node.nd_value())); } // HACK +++ val = (RubyBoolean)recv.funcall((RubyId)node.nd_next().nd_aid(), val); // HACK --- return val; case NODE_OP_ASGN_AND: cond = (RubyBoolean)eval(self, node.nd_head()); if (cond.isFalse()) { return cond; } node = node.nd_value(); break; case NODE_OP_ASGN_OR: cond = (RubyBoolean)eval(self, node.nd_head()); if ((node.nd_aid() != null && !self.isInstanceVarDefined((RubyId)node.nd_aid())) || cond.isFalse()) { node = node.nd_value(); break; } return cond; case NODE_MASGN: return massign(self, node, eval(self, node.nd_value()), false); case NODE_LASGN: // if (ruby.ruby_scope.local_vars == null) { // rb_bug("unexpected local variable assignment"); // } result = eval(self, node.nd_value()); getRuby().rubyScope.setLocalVars(node.nd_cnt(), result); return result; case NODE_DASGN: result = eval(self, node.nd_value()); RubyVarmap.assign(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_DASGN_CURR: result = eval(self, node.nd_value()); RubyVarmap.assignCurrent(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_GASGN: result = eval(self, node.nd_value()); ((RubyGlobalEntry)node.nd_entry()).set(result); return result; case NODE_IASGN: result = eval(self, node.nd_value()); self.setInstanceVar((RubyId)node.nd_vid(), result); return result; case NODE_CDECL: if (ruby_class == null) { throw new RubyTypeException("no class/module to define constant"); } result = eval(self, node.nd_value()); ruby_class.setConstant((RubyId)node.nd_vid(), result); return result; case NODE_CVDECL: if (ruby_cbase == null) { throw new RubyTypeException("no class/module to define class variable"); } result = eval(self, node.nd_value()); if (ruby_cbase.isSingleton()) { ruby_cbase.getInstanceVar("__attached__").getClassVarSingleton().declareClassVar((RubyId)node.nd_vid(), result); return result; } ruby_cbase.declareClassVar((RubyId)node.nd_vid(), result); return result; case NODE_CVASGN: result = eval(self, node.nd_value()); self.getClassVarSingleton().setClassVar((RubyId)node.nd_vid(), result); return result; case NODE_LVAR: //if (getRuby().ruby_scope.local_vars == null) { // rb_bug("unexpected local variable"); // } return (RubyObject)getRuby().rubyScope.getLocalVars(node.nd_cnt()); case NODE_DVAR: return getDynamicVars().getRef((RubyId)node.nd_vid()); case NODE_GVAR: return ((RubyGlobalEntry)node.nd_entry()).get(); case NODE_IVAR: return self.getInstanceVar((RubyId)node.nd_vid()); case NODE_CONST: return getConstant((NODE)rubyFrame.getCbase(), (RubyId)node.nd_vid(), self); case NODE_CVAR: /* normal method */ if (ruby_cbase == null) { return self.getRubyClass().getClassVar((RubyId)node.nd_vid()); } if (!ruby_cbase.isSingleton()) { return ruby_cbase.getClassVar((RubyId)node.nd_vid()); } return ruby_cbase.getInstanceVar("__attached__").getClassVarSingleton().getClassVar((RubyId)node.nd_vid()); case NODE_CVAR2: /* singleton method */ return self.getClassVarSingleton().getClassVar((RubyId)node.nd_vid()); case NODE_BLOCK_ARG: if (ruby.rubyScope.getLocalVars() == null) { throw new RuntimeException("BUG: unexpected block argument"); } if (isBlockGiven()) { result = getRuby().getNil(); // Create Proc object ruby.rubyScope.setLocalVars(node.nd_cnt(), result); return result; } else { return getRuby().getNil(); } case NODE_COLON2: value = eval(self, node.nd_head()); if (value instanceof RubyModule) { return ((RubyModule)value).getConstant((RubyId)node.nd_mid()); } else { return value.funcall((RubyId)node.nd_mid()); } case NODE_COLON3: return getRuby().getObjectClass().getConstant((RubyId)node.nd_mid()); case NODE_NTH_REF: // return rom.rb_reg_nth_match(node.nd_nth(), MATCH_DATA); return null; case NODE_BACK_REF: /*switch ((char)node.nd_nth()) { case '&': return rom.rb_reg_last_match(MATCH_DATA); case '`': return rom.rb_reg_match_pre(MATCH_DATA); case '\'': return rom.rb_reg_match_post(MATCH_DATA); case '+': return rom.rb_reg_match_last(MATCH_DATA); default: rom.rb_bug("unexpected back-ref"); }*/ case NODE_HASH: RubyHash hash = RubyHash.m_newHash(ruby); NODE list = node.nd_head(); while(list != null) { RubyObject key = eval(self, list.nd_head()); list = list.nd_next(); if (list == null) { // HACK +++ throw new RubyArgumentException("odd number list for Hash"); // HACK --- } value = eval(self, list.nd_head()); hash.m_aset(key, value); list = list.nd_next(); } return hash; case NODE_ZARRAY: /* zero length list */ return RubyArray.m_newArray(getRuby()); case NODE_ARRAY: ArrayList ary = new ArrayList(node.nd_alen()); for (; node != null ; node = node.nd_next()) { ary.add(eval(self, node.nd_head())); } return RubyArray.m_newArray(getRuby(), ary); case NODE_STR: return ((RubyObject)node.nd_lit()).m_to_s(); case NODE_DSTR: case NODE_DXSTR: case NODE_DREGX: case NODE_DREGX_ONCE:/* NODE list = node.nd_next(); RubyString str = RubyString.m_newString(getRuby(), (RubyObject)node.nd_lit()); RubyString str2; while (list != null) { if (list.nd_head() != null) { switch (list.nd_head().nd_type()) { case NODE_STR: str2 = (RubyString)list.nd_head().nd_lit(); break; case NODE_EVSTR: result = ruby_errinfo; ruby_errinfo = Qnil; ruby_sourceline = nd_line(node); ruby_in_eval++; list.nd_head(compile(list.nd_head().nd_lit(), ruby_sourcefile,ruby_sourceline)); ruby_eval_tree = 0; ruby_in_eval--; if (ruby_nerrs > 0) { compile_error("string expansion"); } if (!NIL_P(result)) ruby_errinfo = result; /* fall through *//* default: str2 = (RubyString)rom.rb_obj_as_string(eval(list.nd_head())); break; } str.append(str2); str.infectObject(str2); } list = list.nd_next(); } switch (node.nd_type()) { case NODE_DREGX: return rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); case NODE_DREGX_ONCE: /* regexp expand once *//* VALUE result = rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); node.nd_set_type(NODE_LIT); node.nd_lit(result); return result; case NODE_DXSTR: return rom.rb_funcall(this, '`', 1, str); default: return str; }*/ return null; case NODE_XSTR: return self.funcall(getRuby().intern("`"), (RubyObject)node.nd_lit()); case NODE_LIT: return (RubyObject)node.nd_lit(); case NODE_ATTRSET: if (rubyFrame.getArgs().size() != 1) { throw new RubyArgumentException("wrong # of arguments(" + rubyFrame.getArgs().size() + "for 1)"); } return self.setInstanceVar((RubyId)node.nd_vid(), (RubyObject)rubyFrame.getArgs().get(0)); case NODE_DEFN: if (node.nd_defn() != null) { int noex; if (ruby_class == null) { throw new RubyTypeException("no class to add method"); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // rom.rb_warn("redefining Object#initialize may cause infinite loop"); //} //if (node.nd_mid() == __id__ || node.nd_mid() == __send__) { // rom.rb_warn("redefining `%s' may cause serious problem", ((RubyId)node.nd_mid()).toName()); //} // ruby_class.setFrozen(true); NODE body = ruby_class.searchMethod((RubyId)node.nd_mid()); RubyObject origin = ruby_class.getMethodOrigin((RubyId)node.nd_mid()); if (body != null){ // if (ruby_verbose.isTrue() && ruby_class == origin && body.nd_cnt() == 0) { // rom.rb_warning("discarding old %s", ((RubyId)node.nd_mid()).toName()); // } // if (node.nd_noex() != 0) { /* toplevel */ /* should upgrade to rb_warn() if no super was called inside? */ // rom.rb_warning("overriding global function `%s'", ((RubyId)node.nd_mid()).toName()); // } } if (isScope(SCOPE_PRIVATE) || node.nd_mid().equals(ruby.intern("initialize"))) { noex = NOEX_PRIVATE; } else if (isScope(SCOPE_PROTECTED)) { noex = NOEX_PROTECTED; } else if (ruby_class == getRuby().getObjectClass()) { noex = node.nd_noex(); } else { noex = NOEX_PUBLIC; } if (body != null && origin == ruby_class && (body.nd_noex() & NOEX_UNDEF) != 0) { noex |= NOEX_UNDEF; } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); ruby_class.addMethod((RubyId)node.nd_mid(), defn, noex); // rb_clear_cache_by_id(node.nd_mid()); if (scope_vmode == SCOPE_MODFUNC) { ruby_class.getSingletonClass().addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC); ruby_class.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } if (ruby_class.isSingleton()) { ruby_class.getInstanceVar("__attached__").funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } else { ruby_class.funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); } } return getRuby().getNil(); case NODE_DEFS: if (node.nd_defn() != null) { recv = eval(self, node.nd_recv()); if (getRuby().getSecurityLevel() >= 4 && !recv.isTaint()) { throw new RubySecurityException("Insecure; can't define singleton method"); } /*if (FIXNUM_P(recv) || SYMBOL_P(recv)) { rb_raise(rb_eTypeError, "can't define singleton method \"%s\" for %s", rb_id2name(node.nd_mid()), rb_class2name(CLASS_OF(recv))); }*/ // not needed in jruby if (recv.isFrozen()) { throw new RubyFrozenException("object"); } rubyClass = recv.getSingletonClass(); NODE body = (NODE)rubyClass.getMethods().get((RubyId)node.nd_mid()); if (body != null) { if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("redefining method prohibited"); } /*if (RTEST(ruby_verbose)) { rb_warning("redefine %s", rb_id2name(node.nd_mid())); }*/ } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); defn.nd_rval(ruby_cref); rubyClass.addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC | (body != null ? body.nd_noex() & NOEX_UNDEF : 0)); // rb_clear_cache_by_id(node.nd_mid()); recv.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } return getRuby().getNil(); case NODE_UNDEF: if (ruby_class == null) { throw new RubyTypeException("no class to undef method"); } ruby_class.undef((RubyId)node.nd_mid()); return getRuby().getNil(); case NODE_ALIAS: if (ruby_class == null) { throw new RubyTypeException("no class to make alias"); } ruby_class.aliasMethod((RubyId)node.nd_new(), (RubyId)node.nd_old()); ruby_class.funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); return getRuby().getNil(); case NODE_VALIAS: RubyGlobalEntry.getGlobalEntry((RubyId)node.nd_old()).alias((RubyId)node.nd_new()); return getRuby().getNil(); case NODE_CLASS: RubyModule superClass; if (ruby_class == null) { throw new RubyTypeException("no outer class/module"); } if (node.nd_super() != null) { superClass = getSuperClass(self, node.nd_super()); } else { superClass = null; } rubyClass = null; // if ((ruby_class == getRuby().getObjectClass()) && rb_autoload_defined(node.nd_cname())) { // rb_autoload_load(node.nd_cname()); // } if (ruby_class.isConstantDefined((RubyId)node.nd_cname())) { rubyClass = (RubyClass)ruby_class.getConstant((RubyId)node.nd_cname()); } if (rubyClass != null) { if (!rubyClass.isClass()) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a class"); } if (superClass != null) { RubyModule tmp = rubyClass.getSuperClass(); if (tmp.isSingleton()) { tmp = tmp.getSuperClass(); } while (tmp.isIncluded()) { tmp = tmp.getSuperClass(); } if (tmp != superClass) { superClass = tmp; //goto override_class; if (superClass == null) { superClass = getRuby().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((RubyId)node.nd_cname()).toName()); // end goto } } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending class prohibited"); } // rb_clear_cache(); } else { //override_class: if (superClass == null) { superClass = getRuby().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_MODULE: if (ruby_class == null) { throw new RubyTypeException("no outer class/module"); } RubyModule module = null; if ((ruby_class == getRuby().getObjectClass()) && getRuby().isAutoloadDefined((RubyId)node.nd_cname())) { // getRuby().rb_autoload_load(node.nd_cname()); } if (ruby_class.isConstantDefined((RubyId)node.nd_cname())) { module = (RubyModule)ruby_class.getConstant((RubyId)node.nd_cname()); } if (module != null) { if (!(module instanceof RubyModule)) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a module"); } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending module prohibited"); } } else { module = getRuby().defineModuleId((RubyId)node.nd_cname()); ruby_class.setConstant((RubyId)node.nd_cname(), module); module.setClassPath(ruby_class, ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { module.getSingletonClass().includeModule(ruby_wrapper); module.includeModule(ruby_wrapper); } return setupModule(module, node.nd_body()); case NODE_SCLASS: rubyClass = (RubyClass)eval(self, node.nd_recv()); if (rubyClass.isSpecialConst()) { throw new RubyTypeException("no virtual class for " + rubyClass.getRubyClass().toName()); } if (getRuby().getSecurityLevel() >= 4 && !rubyClass.isTaint()) { throw new RubySecurityException("Insecure: can't extend object"); } if (rubyClass.getRubyClass().isSingleton()) { // rb_clear_cache(); } rubyClass = rubyClass.getSingletonClass(); if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_DEFINED: // String buf; // String desc = is_defined(self, node.nd_head(), buf); // // if (desc) { // result = rb_str_new2(desc); // } else { // result = Qnil; // } case NODE_NEWLINE: // ruby_sourcefile = node.nd_file; // ruby_sourceline = node.nd_nth(); // if (trace_func) { // call_trace_func("line", ruby_sourcefile, ruby_sourceline, self, // ruby_frame.last_func(), // ruby_frame.last_class()); // } node = node.nd_next(); break; default: // rom.rb_bug("unknown node type %d", nd_type(node)); } } }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/f220dcff8a7e427e32a7f1f1bc78f38876b83620/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 5302, 12, 54, 10340, 921, 365, 16, 11922, 290, 13, 288, 3639, 11922, 756, 273, 290, 31, 7734, 19817, 5507, 6941, 273, 446, 31, 3639, 19817, 921, 8526, 833, 273, 446, 31, 3639, 19817, 921, 460, 273, 446, 31, 3639, 19817, 921, 563, 273, 446, 31, 3639, 19817, 3120, 22155, 797, 273, 446, 31, 3639, 368, 509, 919, 31, 7734, 368, 19817, 8176, 4712, 24137, 273, 4170, 10340, 7675, 588, 8176, 4712, 5621, 7734, 1323, 261, 3767, 13, 288, 13491, 309, 261, 2159, 422, 446, 13, 288, 7734, 327, 4170, 10340, 7675, 588, 12616, 5621, 5411, 289, 13491, 1620, 261, 2159, 18, 4880, 67, 723, 10756, 288, 7734, 648, 11922, 67, 11403, 30, 10792, 1323, 261, 2159, 18, 4880, 67, 4285, 1435, 480, 446, 13, 288, 13491, 5302, 12, 2890, 16, 756, 18, 4880, 67, 1978, 10663, 13491, 756, 273, 756, 18, 4880, 67, 4285, 5621, 10792, 289, 10792, 756, 273, 756, 18, 4880, 67, 1978, 5621, 10792, 898, 31, 4766, 565, 648, 11922, 67, 3798, 2294, 41, 30, 10792, 368, 7138, 67, 74, 67, 4415, 5621, 10792, 756, 18, 4880, 67, 542, 67, 723, 12, 8744, 67, 50, 2627, 1769, 1748, 1196, 2537, 3647, 1195, 10792, 327, 4170, 10340, 7675, 588, 12616, 5621, 4766, 565, 1748, 2376, 6116, 679, 2887, 14093, 1195, 7734, 648, 11922, 67, 16061, 30, 10792, 756, 273, 756, 18, 4880, 67, 3432, 5621, 10792, 898, 31, 4766, 565, 1748, 2199, 364, 8632, 17, 416, 12, 1886, 845, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 5302, 12, 54, 10340, 921, 365, 16, 11922, 290, 13, 288, 3639, 11922, 756, 273, 290, 31, 7734, 19817, 5507, 6941, 273, 446, 31, 3639, 19817, 921, 8526, 833, 273, 446, 31, 3639, 19817, 921, 460, 273, 446, 31, 3639, 19817, 921, 563, 273, 446, 31, 3639, 19817, 3120, 22155, 797, 273, 446, 31, 3639, 368, 509, 919, 31, 7734, 368, 19817, 8176, 4712, 24137, 273, 4170, 10340, 7675, 588, 8176, 4712, 5621, 7734, 1323, 261, 3767, 13, 288, 13491, 309, 261, 2159, 422, 446, 13, 288, 7734, 327, 4170, 10340, 7675, 588, 12616, 5621, 5411, 289, 13491, 1620, 261, 2159, 18, 4880, 67, 723, 10756, 288, 7734, 648, 11922, 67, 11403, 30, 10792, 1323, 2 ]
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } }
58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/95bf184084817e28f3314235b2783ff0239c47e0/LicencePanel.java/buggy/izpack-src/trunk/src/lib/com/izforge/izpack/panels/LicencePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 945, 48, 335, 802, 1435, 95, 698, 95, 759, 59, 264, 684, 305, 780, 455, 461, 2050, 430, 697, 1546, 48, 335, 802, 5537, 18, 80, 335, 802, 14432, 780, 455, 461, 33, 455, 461, 2050, 430, 697, 9078, 9548, 15, 350, 396, 18, 6339, 12609, 23, 31, 4348, 267, 33, 2938, 18, 588, 1420, 12, 455, 461, 1769, 430, 12, 2011, 631, 267, 15329, 267, 33, 2938, 18, 588, 1420, 12, 455, 461, 2050, 430, 697, 1769, 97, 8826, 4632, 80, 335, 802, 751, 33, 2704, 8826, 4632, 5621, 7229, 8526, 4106, 33, 2704, 7229, 63, 13757, 20, 15533, 474, 3890, 382, 1892, 31, 17523, 12443, 3890, 382, 1892, 33, 267, 18, 896, 12, 4106, 3719, 5, 29711, 21, 15329, 80, 335, 802, 751, 18, 2626, 12, 4106, 16, 20, 16, 3890, 382, 1892, 1769, 97, 80, 335, 802, 33, 80, 335, 802, 751, 18, 10492, 5621, 97, 14683, 12, 503, 370, 15329, 80, 335, 802, 1546, 668, 30, 15195, 902, 945, 451, 292, 335, 1331, 27830, 4442, 31, 9090, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 945, 48, 335, 802, 1435, 95, 698, 95, 759, 59, 264, 684, 305, 780, 455, 461, 2050, 430, 697, 1546, 48, 335, 802, 5537, 18, 80, 335, 802, 14432, 780, 455, 461, 33, 455, 461, 2050, 430, 697, 9078, 9548, 15, 350, 396, 18, 6339, 12609, 23, 31, 4348, 267, 33, 2938, 18, 588, 1420, 12, 455, 461, 1769, 430, 12, 2011, 631, 267, 15329, 267, 33, 2938, 18, 588, 1420, 12, 455, 461, 2050, 430, 697, 1769, 97, 8826, 4632, 80, 335, 802, 751, 33, 2704, 8826, 4632, 5621, 7229, 8526, 4106, 33, 2704, 7229, 63, 13757, 20, 15533, 474, 3890, 382, 1892, 31, 17523, 12443, 3890, 382, 1892, 33, 267, 18, 896, 12, 4106, 3719, 2 ]
return ((kind == Kind.REGISTER) && !(pool.isCallerSaved(lsb) && pool.isCallerSaved(msb))); }
return ((kind == Kind.REGISTER) && !(pool.isCallerSaved(lsb) && pool .isCallerSaved(msb))); }
final boolean usesVolatileRegister(X86RegisterPool pool) { return ((kind == Kind.REGISTER) && !(pool.isCallerSaved(lsb) && pool.isCallerSaved(msb))); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e304bedac9ab86f88bdb27ffd782a9777505c449/DoubleWordItem.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/DoubleWordItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6385, 1250, 4692, 17431, 20295, 3996, 12, 60, 5292, 3996, 2864, 2845, 13, 288, 202, 202, 2463, 14015, 9224, 422, 5851, 18, 27511, 13, 597, 401, 12, 6011, 18, 291, 11095, 16776, 12, 3251, 70, 13, 597, 2845, 18, 291, 11095, 16776, 12, 959, 70, 3719, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 6385, 1250, 4692, 17431, 20295, 3996, 12, 60, 5292, 3996, 2864, 2845, 13, 288, 202, 202, 2463, 14015, 9224, 422, 5851, 18, 27511, 13, 597, 401, 12, 6011, 18, 291, 11095, 16776, 12, 3251, 70, 13, 597, 2845, 18, 291, 11095, 16776, 12, 959, 70, 3719, 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 ]
String activated_datetime = ((String[])hash.get("activated_datetime"))[0] ; if ( activated_datetime.indexOf(' ') != -1) { vec.add("#activated_date#") ; vec.add(activated_datetime.substring(0,activated_datetime.indexOf(' '))) ;
/* try { document.setCreatedDatetime(dateform.parse(result[16])); }catch(java.text.ParseException pe) { document.setCreatedDatetime(null); } */ SimpleDateFormat dateFormat_date = new SimpleDateFormat("yyyy-MM-dd") ; SimpleDateFormat dateFormat_time = new SimpleDateFormat("hh:mm"); SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm") ; Date theDate = null; try { theDate = dateFormat.parse(((String[])hash.get("activated_datetime"))[0]); vec.add("#activated_date#") ; vec.add(dateFormat_date.format(theDate)) ; vec.add("#activated_time#") ; vec.add(dateFormat_time.format(theDate)) ; }catch(java.text.ParseException pe) { vec.add("#activated_date#") ; vec.add("") ;
static public String getMetaDataFromDb (String meta_id, String parent_meta_id, User user, String host, String htmlFile, boolean showRoles ) throws IOException { String imcserver = Utility.getDomainPref("adminserver",host) ; final String NORMAL = "NORMAL" ; final String CHECKBOX = "CHECKBOX" ; final String OTHER = "OTHER" ; String [] metatable = { /* Nullable Nullvalue Type */ "shared", "0", CHECKBOX, "disable_search", "0", CHECKBOX, "archive", "0", CHECKBOX, "show_meta", "0", CHECKBOX, "description", null, NORMAL, "meta_headline", null, NORMAL, "meta_text", null, NORMAL, "meta_image", null, NORMAL, "date_created", null, OTHER, "date_modified", null, OTHER, "doc_type", null, NORMAL, "activated_datetime", null, OTHER, "archived_datetime", null, OTHER, "target", null, OTHER, "frame_name", null, OTHER } ; // Lets get the langprefix String lang_prefix = ""+user.getLangPrefix() ; // Lets get all info for the meta id String sqlStr = "GetDocumentInfo "+meta_id ; Hashtable hash = IMCServiceRMI.sqlProcedureHash(imcserver,sqlStr) ; // Get the info from the user object. // "temp_perm_settings" is an array containing a stringified meta-id, a hashtable of meta-info (column=value), // and a hashtable of roles and their corresponding set_id for this page (role_id=set_id). // This array comes from selecting the permissionpage. People set a lot of stuff in the page, // and then they forget to press "Save" before pressing another button. // If they press another button, this array will be put in the user-object, to remember their settings. Object[] temp_perm_settings = (Object[])user.get("temp_perm_settings") ; Vector vec = new Vector () ; if ( showRoles == true ) { getRolesFromDb(meta_id, user, host, vec) ; } user.remove("temp_perm_settings") ; // Forget about it, so it won't appear on a reload. if (temp_perm_settings != null && meta_id.equals(temp_perm_settings[0])) { // Make sure this is the right document. // Copy everything from this temporary hashtable into the meta-hash. Enumeration temp_enum = ((Hashtable)temp_perm_settings[1]).keys() ; while ( temp_enum.hasMoreElements() ) { String temp_key = (String)temp_enum.nextElement() ; ((String[])hash.get(temp_key))[0] = (String)((Hashtable)temp_perm_settings[1]).get(temp_key) ; } } // Lets get the template file String htmlStr = IMCServiceRMI.parseDoc(imcserver,null,htmlFile,lang_prefix ) ; // Lets fill the info from db into the vector vec String checks = "" ; for ( int i = 0 ; i<metatable.length ; i+=3 ) { String temp = ((String[])hash.get(metatable[i]))[0] ; String[] pd = { "&", "&amp;", "<", "&lt;", ">", "&gt;", "\"", "&quot;", } ; temp = Parser.parseDoc(temp,pd) ; String tag = "#"+metatable[i]+"#" ; if ( NORMAL.equals(metatable[i+2]) ) { // This is not a checkbox or an optionbox if ( htmlStr.indexOf(tag)==-1 ) { checks += "<input type=\"hidden\" name=\""+metatable[i]+"\" value=\""+temp+"\">" ; } else { vec.add(tag) ; // Replace its corresponding tag vec.add(temp) ; } } else if ( CHECKBOX.equals(metatable[i+2]) ) { // This is a checkbox if ( !temp.equals(metatable[i+1]) ) { // If it is equal to the nullvalue, it must not appear (i.e. equal null) if ( htmlStr.indexOf(tag)==-1 ) { checks += "<input type=\"hidden\" name=\""+metatable[i]+"\" value=\""+temp+"\">" ; } else { vec.add(tag) ; vec.add("checked") ; } } } } String target = ((String[])hash.get("target"))[0] ; String frame_name = ((String[])hash.get("frame_name"))[0] ; if ("_self".equals(target) || "_top".equals(target) || "_blank".equals(target)) { vec.add("#"+target+"#") ; vec.add("checked") ; vec.add("#frame_name#") ; vec.add("") ; } else if ("_other".equals(target) || ( target.length() == 0 && frame_name.length() != 0 ) ) { vec.add("#_other#") ; vec.add("checked") ; vec.add("#frame_name#") ; vec.add(frame_name) ; } else if (target.length() == 0) { vec.add("#_self#") ; vec.add("checked") ; vec.add("#frame_name#") ; vec.add("") ; } else { vec.add("#_other#") ; vec.add("checked") ; vec.add("#frame_name#") ; vec.add(target) ; } // Here i'll select all classification-strings and // concatenate them into one semicolon-separated string. sqlStr = "select code from classification c join meta_classification mc on mc.class_id = c.class_id where mc.meta_id = "+meta_id ; String[] classifications = IMCServiceRMI.sqlQuery(imcserver,sqlStr) ; String classification = "" ; if ( classifications.length > 0 ) { classification += classifications[0] ; for ( int i = 1 ; i<classifications.length ; ++i ) { classification += ", "+classifications[i] ; } } String activated_datetime = ((String[])hash.get("activated_datetime"))[0] ; if ( activated_datetime.indexOf(' ') != -1) { vec.add("#activated_date#") ; vec.add(activated_datetime.substring(0,activated_datetime.indexOf(' '))) ; vec.add("#activated_time#") ; vec.add(activated_datetime.substring(activated_datetime.indexOf(' ')+1,activated_datetime.length()-5)) ; } else { vec.add("#activated_date#") ; vec.add("") ; vec.add("#activated_time#") ; vec.add("") ; } // end of else String archived_datetime = ((String[])hash.get("archived_datetime"))[0] ; if ( archived_datetime.indexOf(' ') != -1) { vec.add("#archived_date#") ; vec.add(archived_datetime.substring(0,archived_datetime.indexOf(' '))) ; vec.add("#archived_time#") ; vec.add(archived_datetime.substring(archived_datetime.indexOf(' ')+1,archived_datetime.length()-5)) ; } else { vec.add("#archived_date#") ; vec.add("") ; vec.add("#archived_time#") ; vec.add("") ; } String date_created = ((String[])hash.get("date_created"))[0] ; if ( date_created.indexOf(' ') != -1) { vec.add("#date_created#") ; vec.add(date_created.substring(0,date_created.indexOf(' '))) ; vec.add("#created_time#") ; vec.add(date_created.substring(date_created.indexOf(' ')+1,date_created.length()-5)) ; } else { vec.add("#date_created#") ; vec.add("") ; vec.add("#created_time#") ; vec.add("") ; } // end of else String date_modified = ((String[])hash.get("date_modified"))[0] ; if ( date_modified.indexOf(' ') != -1) { vec.add("#date_modified#") ; vec.add(date_modified.substring(0,date_modified.indexOf(' '))) ; vec.add("#modified_time#") ; vec.add(date_modified.substring(date_modified.indexOf(' ')+1,date_modified.length()-5)) ; } else { vec.add("#date_modified#") ; vec.add("") ; vec.add("#modified_time#") ; vec.add("") ; } // end of else vec.add("#classification#") ; vec.add(classification) ; // Lets add the standard parameters to the vector vec.add("#meta_id#") ; vec.add(meta_id) ; vec.add("#parent_meta_id#") ; vec.add(parent_meta_id) ; // "#checks#" contains the extra hidden fields that are put in as a substitute for // the missing parameters. vec.add("#checks#") ; vec.add(checks) ; // Lets get the menu with the buttons String menuStr = IMCServiceRMI.getMenuButtons(imcserver, meta_id, user) ; vec.add("#adminMode#") ; vec.add(menuStr) ; // Lets get the owner from the db and add it to vec sqlStr = "select rtrim(first_name)+' '+rtrim(last_name) from users join meta on users.user_id = meta.owner_id and meta.meta_id = "+meta_id ; String owner = IMCServiceRMI.sqlQueryStr(imcserver,sqlStr) ; vec.add("#owner#") ; if ( owner != null ) { vec.add(owner) ; } else vec.add("?") ; //**************** section index word stuff ***************** //lets get the section stuff from db String[] parent_section = IMCServiceRMI.sqlProcedure(imcserver,"SectionGetInheritId "+meta_id) ; //lets add the stuff that ceep track of the inherit section id and name if (parent_section == null || parent_section.length < 2 ) { vec.add("#current_section_id#") ; vec.add("-1") ; vec.add("#current_section_name#") ; vec.add(IMCServiceRMI.parseDoc(imcserver, null, SECTION_MSG_TEMPLATE, lang_prefix ) ) ; }else { vec.add("#current_section_id#") ; vec.add(parent_section[0]) ; vec.add("#current_section_name#") ; vec.add(parent_section[1]) ; } //lets build the option list used when the admin whants to breake the inherit chain String[] all_sections = IMCServiceRMI.sqlProcedure(imcserver,"SectionGetAll") ; Vector onlyTemp = new Vector(); String option_list = ""; String selected = "-1"; if (all_sections != null) { for(int i=0; i<all_sections.length;i++) { onlyTemp.add(all_sections[i]); } if (parent_section != null) { if(parent_section.length > 0) selected = parent_section[0]; } option_list = Html.createHtmlCode("ID_OPTION", selected, onlyTemp ) ; } vec.add("#section_option_list#"); vec.add(option_list); //**************** end section index word stuff ************* // Lets fix the date_today tag vec.add("#date_today#") ; SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd") ; vec.add(dateformat.format(new Date())) ; return IMCServiceRMI.parseDoc(imcserver, vec, htmlFile, lang_prefix ) ; } // end of parseMetaData
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/8511e3c7d18a35d0ea4d74a0603027e12b9a6ca0/MetaDataParser.java/buggy/server/src/imcode/util/MetaDataParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 514, 23028, 1265, 4331, 261, 780, 2191, 67, 350, 16, 514, 982, 67, 3901, 67, 350, 16, 2177, 729, 16, 514, 1479, 16, 25083, 565, 514, 1729, 812, 16, 1250, 2405, 6898, 262, 1216, 1860, 288, 202, 780, 709, 71, 3567, 273, 13134, 18, 588, 3748, 23218, 2932, 3666, 3567, 3113, 2564, 13, 274, 202, 6385, 514, 16362, 225, 202, 33, 315, 15480, 6, 274, 202, 6385, 514, 14565, 16876, 225, 202, 33, 315, 10687, 16876, 6, 274, 202, 6385, 514, 22478, 202, 33, 315, 23940, 6, 274, 202, 780, 5378, 5100, 8163, 273, 288, 202, 225, 1748, 6375, 1082, 3639, 4112, 1132, 282, 1412, 1195, 202, 565, 315, 11574, 3113, 1082, 3639, 315, 20, 3113, 3639, 14565, 16876, 16, 202, 565, 315, 8394, 67, 3072, 3113, 202, 3639, 315, 20, 3113, 3639, 14565, 16876, 16, 202, 565, 315, 10686, 3113, 1082, 3639, 315, 20, 3113, 3639, 14565, 16876, 16, 202, 565, 315, 4500, 67, 3901, 3113, 202, 3639, 315, 20, 3113, 3639, 14565, 16876, 16, 202, 565, 315, 3384, 3113, 202, 3639, 446, 16, 4202, 16362, 16, 202, 565, 315, 3901, 67, 1978, 1369, 3113, 202, 3639, 446, 16, 4202, 16362, 16, 202, 565, 315, 3901, 67, 955, 3113, 202, 3639, 446, 16, 4202, 16362, 16, 202, 565, 315, 3901, 67, 2730, 3113, 202, 3639, 446, 16, 4202, 16362, 16, 202, 565, 315, 712, 67, 4824, 3113, 202, 3639, 446, 16, 4202, 22478, 16, 202, 565, 315, 712, 67, 7342, 3113, 202, 3639, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 514, 23028, 1265, 4331, 261, 780, 2191, 67, 350, 16, 514, 982, 67, 3901, 67, 350, 16, 2177, 729, 16, 514, 1479, 16, 25083, 565, 514, 1729, 812, 16, 1250, 2405, 6898, 262, 1216, 1860, 288, 202, 780, 709, 71, 3567, 273, 13134, 18, 588, 3748, 23218, 2932, 3666, 3567, 3113, 2564, 13, 274, 202, 6385, 514, 16362, 225, 202, 33, 315, 15480, 6, 274, 202, 6385, 514, 14565, 16876, 225, 202, 33, 315, 10687, 16876, 6, 274, 202, 6385, 514, 22478, 202, 33, 315, 23940, 6, 274, 202, 780, 5378, 5100, 8163, 273, 288, 202, 225, 1748, 6375, 1082, 3639, 4112, 1132, 282, 1412, 1195, 202, 565, 315, 11574, 3113, 1082, 3639, 315, 20, 3113, 2 ]
/* this.messageQueueShadow.enterCriticalSection(); try */
public void run() { // Check for running flag. this.messageChannels = new LinkedList(); // start all our messageChannels (unless the thread pool size is // infinity. if (sipStack.threadPoolSize != -1) { for (int i = 0; i < sipStack.threadPoolSize; i++) { UDPMessageChannel channel = new UDPMessageChannel(sipStack, this); this.messageChannels.add(channel); } } while (this.isRunning) { // Somebody asked us to exit. try { int bufsize = sock.getReceiveBufferSize(); byte message[] = new byte[bufsize]; DatagramPacket packet = new DatagramPacket(message, bufsize); // System.out.println("received " + new String(message)); sock.receive(packet); // Count of # of packets in process. // this.useCount++; if (sipStack.threadPoolSize != -1) { // Note: the only condition watched for by threads // synchronizing on the messageQueue member is that it is // not empty. As soon as you introduce some other // condition you will have to call notifyAll instead of // notify below.//ifdef SIMULATION/* this.messageQueueShadow.enterCriticalSection(); try //else*/ synchronized (this.messageQueue)//endif// { this.messageQueue.addLast(packet);//ifdef SIMULATION/* this.messageQueueShadow.doNotify();//else*/ this.messageQueue.notify();//endif// }//ifdef SIMULATION/* finally { this.messageQueueShadow.leaveCriticalSection(); }//endif*/ } else { new UDPMessageChannel(sipStack, this, packet); } } catch (SocketException ex) { if (LogWriter.needsLogging) getSIPStack().logWriter.logMessage( "UDPMessageProcessor: Stopping"); isRunning = false; // The notifyAll should be in a synchronized block. // ( bug report by Niklas Uhrberg ).//ifdef SIMULATION/* this.messageQueueShadow.enterCriticalSection(); try//else*/ synchronized (this.messageQueue)//endif// {//ifdef SIMULATION/* this.messageQueueShadow.doNotifyAll();//else*/ this.messageQueue.notifyAll();//endif// }//ifdef SIMULATION/* finally { this.messageQueueShadow.leaveCriticalSection(); }//endif*/ } catch (IOException ex) { isRunning = false; ex.printStackTrace(); if (LogWriter.needsLogging) getSIPStack().logWriter.logMessage( "UDPMessageProcessor: Got an IO Exception"); } catch (Exception ex) { if (LogWriter.needsLogging) getSIPStack().logWriter.logMessage( "UDPMessageProcessor: Unexpected Exception - quitting"); InternalErrorHandler.handleException(ex); return; } } }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/1f352c85487700d1a4b77744853c4bc3c14d4783/UDPMessageProcessor.java/buggy/src/gov/nist/javax/sip/stack/UDPMessageProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 759, 2073, 364, 3549, 2982, 18, 202, 202, 2211, 18, 2150, 10585, 273, 394, 10688, 5621, 202, 202, 759, 787, 777, 3134, 883, 10585, 261, 28502, 326, 2650, 2845, 963, 353, 202, 202, 759, 27272, 18, 202, 202, 430, 261, 28477, 2624, 18, 5930, 18834, 480, 300, 21, 13, 288, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 10341, 2624, 18, 5930, 18834, 31, 277, 27245, 288, 9506, 202, 20352, 1079, 2909, 1904, 273, 6862, 202, 2704, 16230, 1079, 2909, 12, 28477, 2624, 16, 333, 1769, 9506, 202, 2211, 18, 2150, 10585, 18, 1289, 12, 4327, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 17523, 261, 2211, 18, 291, 7051, 13, 288, 1082, 202, 759, 10548, 3432, 19279, 584, 358, 2427, 18, 1082, 202, 698, 288, 9506, 202, 474, 1681, 1467, 273, 7313, 18, 588, 11323, 15384, 5621, 9506, 202, 7229, 883, 8526, 273, 394, 1160, 63, 4385, 1467, 15533, 9506, 202, 5139, 17049, 6667, 4414, 273, 394, 6168, 17049, 6667, 12, 2150, 16, 1681, 1467, 1769, 9506, 202, 759, 2332, 18, 659, 18, 8222, 2932, 15213, 315, 397, 394, 514, 12, 2150, 10019, 9506, 202, 15031, 18, 18149, 12, 11482, 1769, 9506, 202, 759, 6974, 434, 468, 434, 12640, 316, 1207, 18, 9506, 202, 759, 333, 18, 1202, 1380, 9904, 31, 9506, 202, 430, 261, 28477, 2624, 18, 5930, 18834, 480, 300, 21, 13, 288, 6862, 202, 759, 3609, 30, 326, 1338, 2269, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 759, 2073, 364, 3549, 2982, 18, 202, 202, 2211, 18, 2150, 10585, 273, 394, 10688, 5621, 202, 202, 759, 787, 777, 3134, 883, 10585, 261, 28502, 326, 2650, 2845, 963, 353, 202, 202, 759, 27272, 18, 202, 202, 430, 261, 28477, 2624, 18, 5930, 18834, 480, 300, 21, 13, 288, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 10341, 2624, 18, 5930, 18834, 31, 277, 27245, 288, 9506, 202, 20352, 1079, 2909, 1904, 273, 6862, 202, 2704, 16230, 1079, 2909, 12, 28477, 2624, 16, 333, 1769, 9506, 202, 2211, 18, 2150, 10585, 18, 1289, 12, 4327, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 17523, 261, 2 ]
cfw.addPush(ofn.fnode.getFunctionName());
private void generateFunctionInit(ClassFileWriter cfw, OptFunctionNode ofn) { final int CONTEXT_ARG = 1; final int SCOPE_ARG = 2; cfw.startMethod(getFunctionInitMethodName(ofn), FUNCTION_INIT_SIGNATURE, (short)(ClassFileWriter.ACC_PRIVATE | ClassFileWriter.ACC_FINAL)); // Call NativeFunction.initScriptFunction cfw.addLoadThis(); cfw.addALoad(CONTEXT_ARG); cfw.addALoad(SCOPE_ARG); cfw.addPush(ofn.fnode.getFunctionName()); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, "org/mozilla/javascript/NativeFunction", "initScriptFunction", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/String;" +")V"); // precompile all regexp literals int regexpCount = ofn.fnode.getRegexpCount(); if (regexpCount != 0) { cfw.addLoadThis(); pushRegExpArray(cfw, ofn.fnode, CONTEXT_ARG, SCOPE_ARG); cfw.add(ByteCode.PUTFIELD, mainClassName, REGEXP_ARRAY_FIELD_NAME, REGEXP_ARRAY_FIELD_TYPE); } cfw.add(ByteCode.RETURN); // 3 = (scriptThis/functionRef) + scope + context cfw.stopMethod((short)3); }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/bcf9f007878d03ecebb8f7a68970dc86c51376f1/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 2083, 2570, 12, 797, 812, 2289, 6080, 91, 16, 4766, 1377, 12056, 2083, 907, 434, 82, 13, 565, 288, 3639, 727, 509, 13862, 67, 10973, 273, 404, 31, 3639, 727, 509, 19296, 67, 10973, 273, 576, 31, 3639, 6080, 91, 18, 1937, 1305, 12, 588, 2083, 2570, 11666, 12, 792, 82, 3631, 13491, 13690, 67, 12919, 67, 26587, 16, 13491, 261, 6620, 21433, 797, 812, 2289, 18, 31414, 67, 20055, 27573, 571, 30614, 2289, 18, 31414, 67, 7263, 1013, 10019, 3639, 368, 3049, 16717, 2083, 18, 2738, 3651, 2083, 3639, 6080, 91, 18, 1289, 2563, 2503, 5621, 3639, 6080, 91, 18, 1289, 1013, 6189, 12, 13181, 67, 10973, 1769, 3639, 6080, 91, 18, 1289, 1013, 6189, 12, 19444, 67, 10973, 1769, 9079, 6080, 91, 18, 1289, 10969, 12, 3216, 1085, 18, 706, 17691, 41, 26854, 16, 8227, 315, 3341, 19, 8683, 15990, 19, 11242, 19, 9220, 2083, 3113, 8227, 315, 2738, 3651, 2083, 3113, 8227, 7751, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 1042, 4868, 8227, 397, 6, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 3651, 429, 4868, 8227, 397, 6, 21159, 19, 4936, 19, 780, 4868, 8227, 397, 7923, 58, 8863, 3639, 368, 675, 11100, 777, 7195, 18228, 3639, 509, 7195, 1380, 273, 434, 82, 18, 74, 2159, 18, 588, 14621, 1380, 5621, 3639, 309, 261, 17745, 1380, 480, 374, 13, 288, 5411, 6080, 91, 18, 1289, 2563, 2503, 5621, 5411, 1817, 13673, 1076, 12, 8522, 91, 16, 434, 82, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 2083, 2570, 12, 797, 812, 2289, 6080, 91, 16, 4766, 1377, 12056, 2083, 907, 434, 82, 13, 565, 288, 3639, 727, 509, 13862, 67, 10973, 273, 404, 31, 3639, 727, 509, 19296, 67, 10973, 273, 576, 31, 3639, 6080, 91, 18, 1937, 1305, 12, 588, 2083, 2570, 11666, 12, 792, 82, 3631, 13491, 13690, 67, 12919, 67, 26587, 16, 13491, 261, 6620, 21433, 797, 812, 2289, 18, 31414, 67, 20055, 27573, 571, 30614, 2289, 18, 31414, 67, 7263, 1013, 10019, 3639, 368, 3049, 16717, 2083, 18, 2738, 3651, 2083, 3639, 6080, 91, 18, 1289, 2563, 2503, 5621, 3639, 6080, 91, 18, 1289, 1013, 6189, 12, 13181, 67, 10973, 1769, 3639, 6080, 91, 18, 1289, 1013, 2 ]
public static boolean exists(String name) { boolean exists = false; try { File file = null; URL url = null; if (!Environment.isApplet()) { file = new File(name); } if (file != null && file.exists()) { exists = true; } else { // url = ClassLoader.getSystemResource(name); url = Thread.currentThread() .getContextClassLoader() .getResource(name); //OK, now we want to look around for the file, in the //classpaths, and as a resource. It may be a file in //a classpath, available for direct access. if (url != null) { exists = true; } else if (Environment.isApplet()) { if (Debug.debugging("binaryfile")) { Debug.output(" As applet, checking codebase..."); } // Look in the codebase for applets... URL[] cba = new URL[1]; cba[0] = Environment.getApplet().getCodeBase(); URLClassLoader ucl = URLClassLoader.newInstance(cba); if (ucl.getResource(name) != null) { exists = true; // This has been commented out because the // AppletDataNugget has been deprecated, and // is not needed. // } else { // url = AppletDataNugget.findResource(name); // if (url != null) { // exists = true; // } } } // It's not in the classpath, so try it as a URL to a // webserver. if (!exists && name.indexOf("http:") != -1) { try { InputStream stream = new URL(name).openStream(); stream.close(); exists = true; } catch (java.security.AccessControlException ace) { exists = false; } } } } catch (IOException ioe) { Debug.message("binaryfile", "BinaryFile.exists() caught IOException"); exists = false; } if (Debug.debugging("binaryfile")) { Debug.output("BinaryFile.exists(" + name + ") = " + exists); } return exists; }
3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/1b63a99b1d3df2f3e2dfd350fa69a6ba2fa8b968/BinaryFile.java/buggy/src/openmap/com/bbn/openmap/io/BinaryFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 1704, 12, 780, 508, 13, 288, 3639, 1250, 1704, 273, 629, 31, 3639, 775, 288, 5411, 1387, 585, 273, 446, 31, 5411, 1976, 880, 273, 446, 31, 5411, 309, 16051, 5494, 18, 291, 23696, 10756, 288, 7734, 585, 273, 394, 1387, 12, 529, 1769, 5411, 289, 5411, 309, 261, 768, 480, 446, 597, 585, 18, 1808, 10756, 288, 7734, 1704, 273, 638, 31, 5411, 289, 469, 288, 7734, 368, 2868, 880, 273, 9403, 18, 588, 3163, 1420, 12, 529, 1769, 7734, 880, 273, 4884, 18, 2972, 3830, 1435, 13491, 263, 29120, 7805, 1435, 13491, 263, 588, 1420, 12, 529, 1769, 7734, 368, 3141, 16, 2037, 732, 2545, 358, 2324, 6740, 364, 326, 585, 16, 316, 326, 7734, 368, 1106, 4481, 16, 471, 487, 279, 1058, 18, 2597, 2026, 506, 279, 585, 316, 7734, 368, 69, 10006, 16, 2319, 364, 2657, 2006, 18, 7734, 309, 261, 718, 480, 446, 13, 288, 10792, 1704, 273, 638, 31, 7734, 289, 469, 309, 261, 5494, 18, 291, 23696, 10756, 288, 10792, 309, 261, 2829, 18, 4148, 1998, 2932, 8578, 768, 6, 3719, 288, 13491, 4015, 18, 2844, 2932, 2970, 21853, 16, 6728, 17574, 7070, 1769, 10792, 289, 10792, 368, 10176, 316, 326, 17574, 364, 513, 20773, 2777, 10792, 1976, 8526, 2875, 69, 273, 394, 1976, 63, 21, 15533, 10792, 2875, 69, 63, 20, 65, 273, 7518, 18, 588, 23696, 7675, 588, 1085, 2171, 5621, 10792, 1976, 7805, 582, 830, 273, 1976, 7805, 18, 2704, 1442, 12, 7358, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 1704, 12, 780, 508, 13, 288, 3639, 1250, 1704, 273, 629, 31, 3639, 775, 288, 5411, 1387, 585, 273, 446, 31, 5411, 1976, 880, 273, 446, 31, 5411, 309, 16051, 5494, 18, 291, 23696, 10756, 288, 7734, 585, 273, 394, 1387, 12, 529, 1769, 5411, 289, 5411, 309, 261, 768, 480, 446, 597, 585, 18, 1808, 10756, 288, 7734, 1704, 273, 638, 31, 5411, 289, 469, 288, 7734, 368, 2868, 880, 273, 9403, 18, 588, 3163, 1420, 12, 529, 1769, 7734, 880, 273, 4884, 18, 2972, 3830, 1435, 13491, 263, 29120, 7805, 1435, 13491, 263, 588, 1420, 12, 529, 1769, 7734, 368, 3141, 16, 2037, 732, 2545, 358, 2324, 6740, 364, 326, 585, 16, 316, 2 ]
int updateCounts[] = new int[counts.size()]; for (int i = 0; i < updateCounts.length; i++) { updateCounts[i] = ((Integer) counts.get(i)).intValue(); } if (sqlEx != null) { BatchUpdateException batchEx = new BatchUpdateException(sqlEx.getMessage(), sqlEx.getSQLState(), sqlEx.getErrorCode(), updateCounts); batchEx.setNextException(sqlEx.getNextException()); throw batchEx; }
public synchronized int[] executeBatch() throws SQLException, BatchUpdateException { checkOpen(); if (batchValues == null || batchValues.size() == 0) { return new int[0]; } int size = batchValues.size(); int executeSize = connection.getBatchSize(); executeSize = (executeSize == 0) ? Integer.MAX_VALUE : executeSize; int[] updateCounts = null; if (executeSize < size) { updateCounts = new int[size]; } try { tds.startBatch(); for (int i = 0; i < size;) { Object value = batchValues.get(i); ++i; // Execute batch now if max size reached or end of batch boolean executeNow = (i % executeSize == 0) || i == size; if (value instanceof String) { tds.executeSQL((String)value, null, null, true, 0, -1, -1, executeNow); } else { executeBatchOther(value, executeNow); } // If the batch has been sent, process the results if (executeNow) { int[] partialCounts = null; BatchUpdateException err = null; try { // Will throw a BatchUpdateException with the partial // update counts if an error occurs and consume the // whole response partialCounts = tds.getBatchCounts(); } catch (BatchUpdateException ex) { err = ex; partialCounts = ex.getUpdateCounts(); } if (executeSize < size) { // Copy over update counts System.arraycopy(partialCounts, 0, updateCounts, ((i - 1) / executeSize) * executeSize, partialCounts.length); } else { updateCounts = partialCounts; } if (err != null) { // If an error occurred, truncate the update counts and // "rethrow" the exception // TODO Should probably continue for Sybase to keep compatible if (i > executeSize) { int[] tmp = new int[((i - 1) / executeSize) * executeSize + partialCounts.length]; System.arraycopy(updateCounts, 0, tmp, 0, tmp.length); updateCounts = tmp; } throw new BatchUpdateException( err.getMessage(), err.getSQLState(), err.getErrorCode(), updateCounts); } } } return updateCounts; } catch (BatchUpdateException ex) { // If it's a BatchUpdateException let it go throw ex; } catch (SQLException ex) { // An SQLException can only occur while sending the batch // (getBatchCounts() doesn't throw SQLExceptions), so we have to // end the batch and return the partial results // FIXME What should we send here to flush out the batch? // Come to think of it, is there any circumstance under which this // could actually happen without the connection getting closed? throw new BatchUpdateException(ex.getMessage(), ex.getSQLState(), ex.getErrorCode(), tds.getBatchCounts()); } finally { clearBatch(); } }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/8e88ecdb0e7cf8395cec7218bae01985cf88609a/JtdsStatement.java/buggy/src/main/net/sourceforge/jtds/jdbc/JtdsStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 509, 1089, 9211, 8526, 273, 394, 509, 63, 8008, 18, 1467, 1435, 15533, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1089, 9211, 18, 2469, 31, 277, 27245, 288, 1089, 9211, 63, 77, 65, 273, 14015, 4522, 13, 6880, 18, 588, 12, 77, 13, 2934, 474, 620, 5621, 289, 565, 309, 261, 4669, 424, 480, 446, 13, 288, 5982, 1891, 503, 2581, 424, 273, 394, 5982, 1891, 503, 12, 4669, 424, 18, 24906, 9334, 1847, 424, 18, 588, 3997, 1119, 9334, 1847, 424, 18, 588, 12012, 9334, 1089, 9211, 1769, 225, 2581, 424, 18, 542, 2134, 503, 12, 4669, 424, 18, 588, 2134, 503, 10663, 604, 2581, 424, 31, 289, 565, 509, 1089, 9211, 8526, 273, 394, 509, 63, 8008, 18, 1467, 1435, 15533, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1089, 9211, 18, 2469, 31, 277, 27245, 288, 1089, 9211, 63, 77, 65, 273, 14015, 4522, 13, 6880, 18, 588, 12, 77, 13, 2934, 474, 620, 5621, 289, 565, 309, 261, 4669, 424, 480, 446, 13, 288, 5982, 1891, 503, 2581, 424, 273, 394, 5982, 1891, 503, 12, 4669, 424, 18, 24906, 9334, 1847, 424, 18, 588, 3997, 1119, 9334, 1847, 424, 18, 588, 12012, 9334, 1089, 9211, 1769, 225, 2581, 424, 18, 542, 2134, 503, 12, 4669, 424, 18, 588, 2134, 503, 10663, 604, 2581, 424, 31, 289, 565, 509, 1089, 9211, 8526, 273, 394, 509, 63, 8008, 18, 1467, 1435, 15533, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 509, 1089, 9211, 8526, 273, 394, 509, 63, 8008, 18, 1467, 1435, 15533, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1089, 9211, 18, 2469, 31, 277, 27245, 288, 1089, 9211, 63, 77, 65, 273, 14015, 4522, 13, 6880, 18, 588, 12, 77, 13, 2934, 474, 620, 5621, 289, 565, 309, 261, 4669, 424, 480, 446, 13, 288, 5982, 1891, 503, 2581, 424, 273, 394, 5982, 1891, 503, 12, 4669, 424, 18, 24906, 9334, 1847, 424, 18, 588, 3997, 1119, 9334, 1847, 424, 18, 588, 12012, 9334, 1089, 9211, 1769, 225, 2581, 424, 18, 542, 2134, 503, 12, 4669, 424, 18, 588, 2134, 503, 10663, 604, 2581, 424, 31, 289, 565, 509, 1089, 9211, 8526, 273, 394, 2 ]
public RepositoryConfiguration getConfiguration(String repositoryUrl, String userName, String password) throws IOException {
public RepositoryConfiguration getConfiguration(String repositoryUrl, String userName, String password, String encoding) throws IOException {
public RepositoryConfiguration getConfiguration(String repositoryUrl, String userName, String password) throws IOException { String configUrlStr = repositoryUrl + CONFIG_RDF_URL; configUrlStr = BugzillaRepositoryUtil.addCredentials(configUrlStr, userName, password); URLConnection c = new URL(configUrlStr).openConnection(); BufferedReader in = new BufferedReader(new InputStreamReader(c.getInputStream())); SaxConfigurationContentHandler contentHandler = new SaxConfigurationContentHandler(); try { StringBuffer result = XmlCleaner.clean(in); StringReader strReader = new StringReader(result.toString()); XMLReader reader = XMLReaderFactory.createXMLReader(); reader.setErrorHandler(new SaxErrorHandler()); reader.setContentHandler(contentHandler); reader.parse(new InputSource(strReader)); } catch (SAXException e) { throw new IOException("Unable to read server configuration."); } return contentHandler.getConfiguration(); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/31f9f0869751176d538907acd5070e674d857d31/RepositoryConfigurationFactory.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/RepositoryConfigurationFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6281, 1750, 10316, 12, 780, 3352, 1489, 16, 514, 12065, 16, 514, 2201, 13, 1216, 1860, 288, 202, 202, 780, 642, 1489, 1585, 273, 3352, 1489, 397, 9128, 67, 30137, 67, 1785, 31, 202, 202, 1425, 1489, 1585, 273, 16907, 15990, 3305, 1304, 18, 1289, 6163, 12, 1425, 1489, 1585, 16, 12065, 16, 2201, 1769, 202, 202, 14790, 276, 273, 394, 1976, 12, 1425, 1489, 1585, 2934, 3190, 1952, 5621, 202, 202, 17947, 2514, 316, 273, 394, 10633, 12, 2704, 15322, 12, 71, 18, 588, 4348, 1435, 10019, 202, 202, 55, 651, 1750, 1350, 1503, 913, 1503, 273, 394, 348, 651, 1750, 1350, 1503, 5621, 202, 202, 698, 288, 1082, 202, 780, 1892, 563, 273, 5714, 7605, 264, 18, 6200, 12, 267, 1769, 1082, 202, 780, 2514, 609, 2514, 273, 394, 26227, 12, 2088, 18, 10492, 10663, 1082, 202, 4201, 2514, 2949, 273, 3167, 2514, 1733, 18, 2640, 4201, 2514, 5621, 1082, 202, 10530, 18, 542, 17729, 12, 2704, 348, 651, 17729, 10663, 1082, 202, 10530, 18, 542, 1350, 1503, 12, 1745, 1503, 1769, 1082, 202, 10530, 18, 2670, 12, 2704, 23699, 12, 701, 2514, 10019, 202, 202, 97, 1044, 261, 55, 2501, 503, 425, 13, 288, 1082, 202, 12849, 394, 1860, 2932, 3370, 358, 855, 1438, 1664, 1199, 1769, 202, 202, 97, 202, 202, 2463, 913, 1503, 18, 588, 1750, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6281, 1750, 10316, 12, 780, 3352, 1489, 16, 514, 12065, 16, 514, 2201, 13, 1216, 1860, 288, 202, 202, 780, 642, 1489, 1585, 273, 3352, 1489, 397, 9128, 67, 30137, 67, 1785, 31, 202, 202, 1425, 1489, 1585, 273, 16907, 15990, 3305, 1304, 18, 1289, 6163, 12, 1425, 1489, 1585, 16, 12065, 16, 2201, 1769, 202, 202, 14790, 276, 273, 394, 1976, 12, 1425, 1489, 1585, 2934, 3190, 1952, 5621, 202, 202, 17947, 2514, 316, 273, 394, 10633, 12, 2704, 15322, 12, 71, 18, 588, 4348, 1435, 10019, 202, 202, 55, 651, 1750, 1350, 1503, 913, 1503, 273, 394, 348, 651, 1750, 1350, 1503, 5621, 202, 202, 698, 288, 1082, 202, 780, 1892, 563, 273, 5714, 2 ]
source.append((char)tt); return nf.createUnary(tt, ts.PRE, memberExpr(ts, source, true));
sourceAdd((char)tt); return nf.createUnary(tt, ts.PRE, memberExpr(ts, true));
private Object unaryExpr(TokenStream ts, Source source) throws IOException, JavaScriptException { int tt; ts.flags |= ts.TSF_REGEXP; tt = ts.getToken(); ts.flags &= ~ts.TSF_REGEXP; switch(tt) { case TokenStream.UNARYOP: source.append((char)ts.UNARYOP); source.append((char)ts.getOp()); return nf.createUnary(ts.UNARYOP, ts.getOp(), unaryExpr(ts, source)); case TokenStream.ADD: case TokenStream.SUB: source.append((char)ts.UNARYOP); source.append((char)tt); return nf.createUnary(ts.UNARYOP, tt, unaryExpr(ts, source)); case TokenStream.INC: case TokenStream.DEC: source.append((char)tt); return nf.createUnary(tt, ts.PRE, memberExpr(ts, source, true)); case TokenStream.DELPROP: source.append((char)ts.DELPROP); return nf.createUnary(ts.DELPROP, unaryExpr(ts, source)); case TokenStream.ERROR: break; default: ts.ungetToken(tt); int lineno = ts.getLineno(); Object pn = memberExpr(ts, source, true); /* don't look across a newline boundary for a postfix incop. * the rhino scanner seems to work differently than the js * scanner here; in js, it works to have the line number check * precede the peekToken calls. It'd be better if they had * similar behavior... */ int peeked; if (((peeked = ts.peekToken()) == ts.INC || peeked == ts.DEC) && ts.getLineno() == lineno) { int pf = ts.getToken(); source.append((char)pf); return nf.createUnary(pf, ts.POST, pn); } return pn; } return nf.createName("err"); // Only reached on error. Try to continue. }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/cb763059f39a0f44e8695140a747f151637d1ad8/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 19017, 4742, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 509, 3574, 31, 3639, 3742, 18, 7133, 5626, 3742, 18, 8047, 42, 67, 28225, 31, 3639, 3574, 273, 3742, 18, 588, 1345, 5621, 3639, 3742, 18, 7133, 12058, 4871, 3428, 18, 8047, 42, 67, 28225, 31, 3639, 1620, 12, 748, 13, 288, 3639, 648, 3155, 1228, 18, 2124, 6043, 3665, 30, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 2124, 6043, 3665, 1769, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 588, 3817, 10663, 5411, 327, 13958, 18, 2640, 15972, 12, 3428, 18, 2124, 6043, 3665, 16, 3742, 18, 588, 3817, 9334, 21394, 19017, 4742, 12, 3428, 16, 1084, 10019, 3639, 648, 3155, 1228, 18, 8355, 30, 3639, 648, 3155, 1228, 18, 8362, 30, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 2124, 6043, 3665, 1769, 5411, 1084, 18, 6923, 12443, 3001, 13, 748, 1769, 5411, 327, 13958, 18, 2640, 15972, 12, 3428, 18, 2124, 6043, 3665, 16, 3574, 16, 19017, 4742, 12, 3428, 16, 1084, 10019, 3639, 648, 3155, 1228, 18, 23213, 30, 3639, 648, 3155, 1228, 18, 1639, 39, 30, 5411, 1084, 18, 6923, 12443, 3001, 13, 748, 1769, 5411, 327, 13958, 18, 2640, 15972, 12, 748, 16, 3742, 18, 3670, 16, 3140, 4742, 12, 3428, 16, 1084, 16, 638, 10019, 3639, 648, 3155, 1228, 18, 24733, 15811, 30, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 24733, 15811, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 19017, 4742, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 509, 3574, 31, 3639, 3742, 18, 7133, 5626, 3742, 18, 8047, 42, 67, 28225, 31, 3639, 3574, 273, 3742, 18, 588, 1345, 5621, 3639, 3742, 18, 7133, 12058, 4871, 3428, 18, 8047, 42, 67, 28225, 31, 3639, 1620, 12, 748, 13, 288, 3639, 648, 3155, 1228, 18, 2124, 6043, 3665, 30, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 2124, 6043, 3665, 1769, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 588, 3817, 10663, 5411, 327, 13958, 18, 2640, 15972, 12, 3428, 18, 2124, 6043, 3665, 16, 3742, 18, 588, 3817, 9334, 21394, 19017, 4742, 2 ]
Dialog dialog = new ContainerSelectionDialog( getShell(), null, true, WorkbenchMessages.getString("CopyResourceAction.selectDestination") );
Dialog dialog = new ContainerSelectionDialog(getShell(), null, true, WorkbenchMessages.getString("CopyResourceAction.selectDestination"));
public void testCopyMoveResource() { Dialog dialog = new ContainerSelectionDialog( getShell(), null, true, WorkbenchMessages.getString("CopyResourceAction.selectDestination") ); DialogCheck.assertDialog(dialog, this); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/5da3910700fa7ca5b4c5ebcd4950aa503a472809/UIDialogs.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dialogs/UIDialogs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2951, 7607, 1420, 1435, 288, 202, 202, 6353, 6176, 273, 394, 4039, 6233, 6353, 12, 7932, 1165, 9334, 446, 16, 638, 16, 4147, 22144, 5058, 18, 588, 780, 2932, 2951, 1420, 1803, 18, 4025, 5683, 7923, 11272, 202, 202, 6353, 1564, 18, 11231, 6353, 12, 12730, 16, 333, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2951, 7607, 1420, 1435, 288, 202, 202, 6353, 6176, 273, 394, 4039, 6233, 6353, 12, 7932, 1165, 9334, 446, 16, 638, 16, 4147, 22144, 5058, 18, 588, 780, 2932, 2951, 1420, 1803, 18, 4025, 5683, 7923, 11272, 202, 202, 6353, 1564, 18, 11231, 6353, 12, 12730, 16, 333, 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 ]
Properties settings = tab == null ? config : tab.getConfiguration(); Enumeration e = settings.keys(); while (e.hasMoreElements()) { String key = (String) e.nextElement(); System.out.println("store " + key + "=" + settings.getProperty(key)); } return settings;
return config.getProperties();
public Properties storeSettings() { Properties settings = tab == null ? config : tab.getConfiguration(); Enumeration e = settings.keys(); while (e.hasMoreElements()) { String key = (String) e.nextElement(); System.out.println("store " + key + "=" + settings.getProperty(key)); } return settings; }
13962 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13962/79649faa4c1218f078bcc6601b655a62fe7db633/JGoodiesLooksPlugin.java/clean/develop01/src/main/jgoodieslooksplugin/JGoodiesLooksPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6183, 1707, 2628, 1435, 288, 3639, 6183, 1947, 273, 3246, 422, 446, 692, 642, 294, 3246, 18, 588, 1750, 5621, 3639, 13864, 425, 273, 1947, 18, 2452, 5621, 3639, 1323, 261, 73, 18, 5332, 7417, 3471, 10756, 288, 5411, 514, 498, 273, 261, 780, 13, 425, 18, 4285, 1046, 5621, 5411, 2332, 18, 659, 18, 8222, 2932, 2233, 315, 397, 498, 397, 9671, 397, 1947, 18, 588, 1396, 12, 856, 10019, 3639, 289, 3639, 327, 1947, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6183, 1707, 2628, 1435, 288, 3639, 6183, 1947, 273, 3246, 422, 446, 692, 642, 294, 3246, 18, 588, 1750, 5621, 3639, 13864, 425, 273, 1947, 18, 2452, 5621, 3639, 1323, 261, 73, 18, 5332, 7417, 3471, 10756, 288, 5411, 514, 498, 273, 261, 780, 13, 425, 18, 4285, 1046, 5621, 5411, 2332, 18, 659, 18, 8222, 2932, 2233, 315, 397, 498, 397, 9671, 397, 1947, 18, 588, 1396, 12, 856, 10019, 3639, 289, 3639, 327, 1947, 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 ]
new Object[]{fElementQName.rawname,qname.uri, qname.uri},
new Object[]{fElementQName.rawname,qname.rawname, qname.uri},
private final void checkDuplicates(QName qname, XMLAttributesImpl attributes){ // Example: <foo xmlns:a='NS' xmlns:b='NS' a:attr='v1' b:attr='v2'/> // search if such attribute already exists for (int i = 0; i < fLength; i++) { if (qname.uri == fUri[i] && fLocalpart[i].equals(qname.localpart)) { fErrorReporter.reportError(XMLMessageFormatter.XMLNS_DOMAIN, "AttributeNSNotUnique", new Object[]{fElementQName.rawname,qname.uri, qname.uri}, XMLErrorReporter.SEVERITY_FATAL_ERROR); } } int index = fLength; if (fLength++ == fUri.length) { String[] uris = new String[fUri.length + 4]; String[] lps = new String [fUri.length + 4]; System.arraycopy(fUri, 0, uris, 0, fUri.length); System.arraycopy(fLocalpart, 0, lps, 0, fLocalpart.length); fUri = uris; fLocalpart = lps; } fUri[index] = qname.uri; fLocalpart[index] = qname.localpart; }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/5e388d65d5fb779313236146ec093094052ddf5a/XMLNSDocumentScannerImpl.java/clean/src/org/apache/xerces/impl/XMLNSDocumentScannerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 727, 918, 866, 23897, 12, 13688, 12621, 16, 3167, 2498, 2828, 1677, 15329, 3639, 368, 5090, 30, 411, 11351, 12302, 30, 69, 2218, 3156, 11, 12302, 30, 70, 2218, 3156, 11, 279, 30, 1747, 2218, 90, 21, 11, 324, 30, 1747, 2218, 90, 22, 11, 21259, 3639, 368, 1623, 309, 4123, 1566, 1818, 1704, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 284, 1782, 31, 277, 27245, 288, 5411, 309, 261, 85, 529, 18, 1650, 422, 284, 3006, 63, 77, 65, 597, 284, 2042, 2680, 63, 77, 8009, 14963, 12, 85, 529, 18, 3729, 2680, 3719, 288, 7734, 284, 668, 13289, 18, 6006, 668, 12, 4201, 1079, 5074, 18, 4201, 3156, 67, 18192, 16, 4766, 6647, 315, 1499, 3156, 1248, 6303, 3113, 4766, 6647, 394, 1033, 63, 7073, 74, 1046, 13688, 18, 1899, 529, 16, 85, 529, 18, 1899, 529, 16, 12621, 18, 1650, 5779, 4766, 6647, 3167, 668, 13289, 18, 1090, 2204, 4107, 67, 29891, 67, 3589, 1769, 5411, 289, 3639, 289, 3639, 509, 770, 273, 284, 1782, 31, 3639, 309, 261, 74, 1782, 9904, 422, 284, 3006, 18, 2469, 13, 288, 5411, 514, 8526, 21476, 273, 394, 514, 63, 74, 3006, 18, 2469, 397, 1059, 15533, 5411, 514, 8526, 328, 1121, 273, 394, 514, 306, 74, 3006, 18, 2469, 397, 1059, 15533, 5411, 2332, 18, 1126, 3530, 12, 74, 3006, 16, 374, 16, 21476, 16, 374, 16, 284, 3006, 18, 2469, 1769, 5411, 2332, 18, 1126, 3530, 12, 74, 2042, 2680, 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, 727, 918, 866, 23897, 12, 13688, 12621, 16, 3167, 2498, 2828, 1677, 15329, 3639, 368, 5090, 30, 411, 11351, 12302, 30, 69, 2218, 3156, 11, 12302, 30, 70, 2218, 3156, 11, 279, 30, 1747, 2218, 90, 21, 11, 324, 30, 1747, 2218, 90, 22, 11, 21259, 3639, 368, 1623, 309, 4123, 1566, 1818, 1704, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 284, 1782, 31, 277, 27245, 288, 5411, 309, 261, 85, 529, 18, 1650, 422, 284, 3006, 63, 77, 65, 597, 284, 2042, 2680, 63, 77, 8009, 14963, 12, 85, 529, 18, 3729, 2680, 3719, 288, 7734, 284, 668, 13289, 18, 6006, 668, 12, 4201, 1079, 5074, 18, 4201, 3156, 67, 18192, 16, 4766, 2 ]
writer.addAttribute( "kind", "lib" );
writer.addAttribute( "kind", "var" );
private void addDependency( XMLWriter writer, Artifact artifact ) { File path = artifact.getFile(); if ( path == null ) { System.err.println( "The artifacts path was null. Artifact id: " + artifact.getId() ); return; } writer.startElement( "classpathentry" ); writer.addAttribute( "kind", "lib" ); writer.addAttribute( "path", "M2_REPO/" + toRelative( localRepository, path.getPath() ) ); writer.endElement(); }
11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/5a2501839c88057e78c0627380f910597393a7eb/EclipseWriter.java/clean/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 7787, 12, 3167, 2289, 2633, 16, 14022, 6462, 262, 565, 288, 3639, 1387, 589, 273, 6462, 18, 29925, 5621, 3639, 309, 261, 589, 422, 446, 262, 3639, 288, 5411, 2332, 18, 370, 18, 8222, 12, 315, 1986, 16259, 589, 1703, 446, 18, 14022, 612, 30, 315, 397, 6462, 18, 26321, 1435, 11272, 5411, 327, 31, 3639, 289, 3639, 2633, 18, 1937, 1046, 12, 315, 26302, 4099, 6, 11272, 3639, 2633, 18, 1289, 1499, 12, 315, 9224, 3113, 315, 1401, 6, 11272, 3639, 2633, 18, 1289, 1499, 12, 315, 803, 3113, 315, 49, 22, 67, 862, 2419, 4898, 397, 358, 8574, 12, 1191, 3305, 16, 589, 18, 588, 743, 1435, 262, 11272, 3639, 2633, 18, 409, 1046, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 7787, 12, 3167, 2289, 2633, 16, 14022, 6462, 262, 565, 288, 3639, 1387, 589, 273, 6462, 18, 29925, 5621, 3639, 309, 261, 589, 422, 446, 262, 3639, 288, 5411, 2332, 18, 370, 18, 8222, 12, 315, 1986, 16259, 589, 1703, 446, 18, 14022, 612, 30, 315, 397, 6462, 18, 26321, 1435, 11272, 5411, 327, 31, 3639, 289, 3639, 2633, 18, 1937, 1046, 12, 315, 26302, 4099, 6, 11272, 3639, 2633, 18, 1289, 1499, 12, 315, 9224, 3113, 315, 1401, 6, 11272, 3639, 2633, 18, 1289, 1499, 12, 315, 803, 3113, 315, 49, 22, 67, 862, 2419, 4898, 397, 358, 8574, 12, 1191, 3305, 16, 589, 18, 588, 743, 1435, 262, 11272, 3639, 2633, 18, 409, 2 ]
public org.quickfix.field.SecurityExchange getSecurityExchange() throws FieldNotFound { org.quickfix.field.SecurityExchange value = new org.quickfix.field.SecurityExchange();
public quickfix.field.SecurityExchange getSecurityExchange() throws FieldNotFound { quickfix.field.SecurityExchange value = new quickfix.field.SecurityExchange();
public org.quickfix.field.SecurityExchange getSecurityExchange() throws FieldNotFound { org.quickfix.field.SecurityExchange value = new org.quickfix.field.SecurityExchange(); 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, 4368, 11688, 19288, 11688, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 11688, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 11688, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 11688, 19288, 11688, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 11688, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 11688, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
} else {
} else {
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; CompiledField current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); field = standardChars.indexOf(thisChar); if (field == -1) { current = null; if ((thisChar >= 'A' && thisChar <= 'Z') || (thisChar >= 'a' && thisChar <= 'z')) { // Not a valid letter throw new IllegalArgumentException("Invalid letter " + thisChar + "encountered at character " + i + "."); } else if (thisChar == '\'') { // Quoted text section; skip to next single quote pos = pattern.indexOf('\'',i+1); if (pos == -1) { throw new IllegalArgumentException("Quotes starting at character " + i + " not closed."); } if ((pos+1 < pattern.length()) && (pattern.charAt(pos+1) == '\'')) { tokens.add(pattern.substring(i+1,pos+1)); } else { tokens.add(pattern.substring(i+1,pos)); } i = pos; } else { // A special character tokens.add(new Character(thisChar)); } } else { // A valid field if ((current != null) && (field == current.field)) { current.size++; } else { current = new CompiledField(field,1,thisChar); tokens.add(current); } } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa6d4551020d668e0117627b6c897b57ffb692b6/SimpleDateFormat.java/clean/core/src/classpath/java/java/text/SimpleDateFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 4074, 1630, 12, 780, 1936, 13, 282, 288, 565, 368, 5502, 10877, 1706, 3949, 854, 13974, 487, 1936, 3949, 565, 368, 3308, 25636, 316, 2202, 10681, 18, 565, 1149, 333, 2156, 31, 565, 509, 949, 31, 565, 509, 652, 31, 565, 25854, 974, 783, 273, 446, 31, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 4951, 18, 2469, 5621, 277, 27245, 288, 1377, 333, 2156, 273, 1936, 18, 3001, 861, 12, 77, 1769, 1377, 652, 273, 4529, 7803, 18, 31806, 12, 2211, 2156, 1769, 1377, 309, 261, 1518, 422, 300, 21, 13, 288, 202, 2972, 273, 446, 31, 202, 430, 14015, 2211, 2156, 1545, 296, 37, 11, 597, 333, 2156, 1648, 296, 62, 6134, 202, 565, 747, 261, 2211, 2156, 1545, 296, 69, 11, 597, 333, 2156, 1648, 296, 94, 26112, 288, 202, 225, 368, 2288, 279, 923, 9471, 202, 225, 604, 394, 2754, 2932, 1941, 9471, 315, 397, 333, 2156, 397, 25083, 377, 315, 1331, 29625, 622, 3351, 315, 397, 277, 25083, 377, 397, 4585, 1769, 202, 97, 469, 309, 261, 2211, 2156, 422, 14118, 6134, 288, 202, 225, 368, 4783, 16474, 977, 2442, 31, 2488, 358, 1024, 2202, 3862, 202, 225, 949, 273, 1936, 18, 31806, 2668, 3730, 2187, 77, 15, 21, 1769, 202, 225, 309, 261, 917, 422, 300, 21, 13, 288, 202, 565, 604, 394, 2754, 2932, 14292, 5023, 622, 3351, 315, 25083, 4202, 397, 277, 397, 315, 486, 4375, 1199, 1769, 202, 225, 289, 202, 225, 309, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 4074, 1630, 12, 780, 1936, 13, 282, 288, 565, 368, 5502, 10877, 1706, 3949, 854, 13974, 487, 1936, 3949, 565, 368, 3308, 25636, 316, 2202, 10681, 18, 565, 1149, 333, 2156, 31, 565, 509, 949, 31, 565, 509, 652, 31, 565, 25854, 974, 783, 273, 446, 31, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 4951, 18, 2469, 5621, 277, 27245, 288, 1377, 333, 2156, 273, 1936, 18, 3001, 861, 12, 77, 1769, 1377, 652, 273, 4529, 7803, 18, 31806, 12, 2211, 2156, 1769, 1377, 309, 261, 1518, 422, 300, 21, 13, 288, 202, 2972, 273, 446, 31, 202, 430, 14015, 2211, 2156, 1545, 296, 37, 11, 597, 333, 2156, 1648, 296, 62, 6134, 2 ]
&& (newShell.getParent() != null)) { List newSubmissions = new ArrayList();
&& (newShell.getParent() != null) && (registeredWindows.get(newShell) != null)) { final List newSubmissions = new ArrayList();
private final void checkWindowType(final Shell newShell) { boolean submissionsProcessed = false; final Shell oldShell = activeShell; /* * If the previous active shell was recognized as a dialog by default, * then remove its submissions. */ List oldSubmissions = (List) registeredWindows.get(oldShell); if (oldSubmissions == null) { /* * The old shell wasn't registered. So, we need to check if it was * considered a dialog by default. */ oldSubmissions = (List) registeredWindows.get(null); if (oldSubmissions != null) { removeEnabledSubmissions(oldSubmissions); submissionsProcessed = true; } } /* * If the new active shell is recognized as a dialog by default, then * create some submissions, remember them, and submit them for * processing. */ if ((newShell != null) && (!newShell.isDisposed()) && (newShell.getParent() != null)) { List newSubmissions = new ArrayList(); newSubmissions.add(new EnabledSubmission(newShell, null, CONTEXT_ID_DIALOG_AND_WINDOW)); newSubmissions.add(new EnabledSubmission(newShell, null, CONTEXT_ID_DIALOG)); addEnabledSubmissions(newSubmissions); registeredWindows.put(newShell, newSubmissions); submissionsProcessed = true; } // If we still haven't reprocessed the submissions, then do it now. if (!submissionsProcessed) { processEnabledSubmissions(false, newShell); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/b2d2afc9cbbc4d0239b9ce689168ee6437fdbe57/WorkbenchContextSupport.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/contexts/ws/WorkbenchContextSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 727, 918, 866, 3829, 559, 12, 6385, 19433, 394, 13220, 13, 288, 3639, 1250, 22071, 13533, 273, 629, 31, 3639, 727, 19433, 1592, 13220, 273, 2695, 13220, 31, 3639, 1748, 540, 380, 971, 326, 2416, 2695, 5972, 1703, 16332, 487, 279, 6176, 635, 805, 16, 540, 380, 1508, 1206, 2097, 22071, 18, 540, 1195, 3639, 987, 1592, 1676, 7300, 273, 261, 682, 13, 4104, 10399, 18, 588, 12, 1673, 13220, 1769, 3639, 309, 261, 1673, 1676, 7300, 422, 446, 13, 288, 5411, 1748, 2398, 380, 1021, 1592, 5972, 14487, 1404, 4104, 18, 6155, 16, 732, 1608, 358, 866, 309, 518, 1703, 2398, 380, 7399, 279, 6176, 635, 805, 18, 2398, 1195, 5411, 1592, 1676, 7300, 273, 261, 682, 13, 4104, 10399, 18, 588, 12, 2011, 1769, 5411, 309, 261, 1673, 1676, 7300, 480, 446, 13, 288, 7734, 1206, 1526, 1676, 7300, 12, 1673, 1676, 7300, 1769, 7734, 22071, 13533, 273, 638, 31, 5411, 289, 3639, 289, 3639, 1748, 540, 380, 971, 326, 394, 2695, 5972, 353, 16332, 487, 279, 6176, 635, 805, 16, 1508, 540, 380, 752, 2690, 22071, 16, 11586, 2182, 16, 471, 4879, 2182, 364, 540, 380, 4929, 18, 540, 1195, 3639, 309, 14015, 2704, 13220, 480, 446, 13, 597, 16051, 2704, 13220, 18, 291, 1669, 7423, 10756, 7734, 597, 261, 2704, 13220, 18, 588, 3054, 1435, 480, 446, 3719, 288, 5411, 987, 394, 1676, 7300, 273, 394, 2407, 5621, 5411, 394, 1676, 7300, 18, 1289, 12, 2704, 14666, 17865, 12, 2704, 13220, 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, 727, 918, 866, 3829, 559, 12, 6385, 19433, 394, 13220, 13, 288, 3639, 1250, 22071, 13533, 273, 629, 31, 3639, 727, 19433, 1592, 13220, 273, 2695, 13220, 31, 3639, 1748, 540, 380, 971, 326, 2416, 2695, 5972, 1703, 16332, 487, 279, 6176, 635, 805, 16, 540, 380, 1508, 1206, 2097, 22071, 18, 540, 1195, 3639, 987, 1592, 1676, 7300, 273, 261, 682, 13, 4104, 10399, 18, 588, 12, 1673, 13220, 1769, 3639, 309, 261, 1673, 1676, 7300, 422, 446, 13, 288, 5411, 1748, 2398, 380, 1021, 1592, 5972, 14487, 1404, 4104, 18, 6155, 16, 732, 1608, 358, 866, 309, 518, 1703, 2398, 380, 7399, 279, 6176, 635, 805, 18, 2398, 1195, 5411, 1592, 1676, 7300, 273, 261, 2 ]
String clsName = getClassConstantOperand();
String clsName = getDottedClassConstantOperand();
public void sawOpcode(int seen) { if (DEBUG) System.out.println("State: " + state + " Opcode: " + OPCODE_NAMES[seen]); switch (state) { case SEEN_NOTHING: if (seen == ICONST_0) state = SEEN_ICONST_0; break; case SEEN_ICONST_0: if (seen == ANEWARRAY) { state = SEEN_ANEWARRAY; } else state = SEEN_NOTHING; break; case SEEN_ANEWARRAY: if (((seen == INVOKEVIRTUAL) || (seen == INVOKEINTERFACE)) && (getNameConstantOperand().equals("toArray")) && (getSigConstantOperand().equals("([Ljava/lang/Object;)[Ljava/lang/Object;"))) { try { String clsName = getClassConstantOperand(); JavaClass cls = Repository.lookupClass(clsName); if (cls.implementationOf(collectionClass)) bugReporter.reportBug(new BugInstance(this, "ITA_INEFFICIENT_TO_ARRAY", LOW_PRIORITY) .addClassAndMethod(this) .addSourceLine(this)); } catch (ClassNotFoundException cnfe) { bugReporter.reportMissingClass(cnfe); } } state = SEEN_NOTHING; break; default: state = SEEN_NOTHING; break; } }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1401c41839f82849614d8899aa49ae696e6e9b7e/InefficientToArray.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/InefficientToArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 19821, 22808, 12, 474, 5881, 13, 288, 202, 202, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 1119, 30, 315, 397, 919, 397, 315, 225, 16424, 30, 315, 397, 531, 3513, 2712, 67, 16257, 63, 15156, 19226, 202, 202, 9610, 261, 2019, 13, 288, 202, 202, 3593, 3174, 1157, 67, 4400, 44, 1360, 30, 1082, 202, 430, 261, 15156, 422, 467, 26411, 67, 20, 13, 9506, 202, 2019, 273, 3174, 1157, 67, 21745, 882, 67, 20, 31, 1082, 202, 8820, 31, 202, 202, 3593, 3174, 1157, 67, 21745, 882, 67, 20, 30, 1082, 202, 430, 261, 15156, 422, 432, 12917, 8552, 13, 288, 9506, 202, 2019, 273, 3174, 1157, 67, 1258, 7245, 8552, 31, 1082, 202, 97, 469, 9506, 202, 2019, 273, 3174, 1157, 67, 4400, 44, 1360, 31, 1082, 202, 8820, 31, 202, 202, 3593, 3174, 1157, 67, 1258, 7245, 8552, 30, 1082, 202, 430, 261, 12443, 15156, 422, 29666, 26854, 13, 747, 261, 15156, 422, 29666, 18865, 3719, 9506, 3639, 597, 261, 17994, 6902, 10265, 7675, 14963, 2932, 31447, 6, 3719, 9506, 3639, 597, 261, 588, 8267, 6902, 10265, 7675, 14963, 2932, 3816, 21159, 19, 4936, 19, 921, 31, 25146, 21159, 19, 4936, 19, 921, 4868, 20349, 288, 9506, 202, 698, 288, 6862, 202, 780, 2028, 461, 273, 2900, 6902, 10265, 5621, 6862, 202, 5852, 797, 2028, 273, 6281, 18, 8664, 797, 12, 6429, 461, 1769, 6862, 202, 430, 261, 6429, 18, 30810, 951, 12, 5548, 797, 3719, 25083, 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, 19821, 22808, 12, 474, 5881, 13, 288, 202, 202, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 1119, 30, 315, 397, 919, 397, 315, 225, 16424, 30, 315, 397, 531, 3513, 2712, 67, 16257, 63, 15156, 19226, 202, 202, 9610, 261, 2019, 13, 288, 202, 202, 3593, 3174, 1157, 67, 4400, 44, 1360, 30, 1082, 202, 430, 261, 15156, 422, 467, 26411, 67, 20, 13, 9506, 202, 2019, 273, 3174, 1157, 67, 21745, 882, 67, 20, 31, 1082, 202, 8820, 31, 202, 202, 3593, 3174, 1157, 67, 21745, 882, 67, 20, 30, 1082, 202, 430, 261, 15156, 422, 432, 12917, 8552, 13, 288, 9506, 202, 2019, 273, 3174, 1157, 67, 1258, 7245, 8552, 2 ]
if (!hasVarsInRegs || !inFunction || debugLevel > 0) {
if (!hasVarsInRegs || !inFunction) {
private void generateEpilogue() { if (epilogueLabel != -1) { classFile.markLabel(epilogueLabel); } if (!hasVarsInRegs || !inFunction || debugLevel > 0) { // restore caller's activation aload(contextLocal); addScriptRuntimeInvoke("popActivation", "(Lorg/mozilla/javascript/Context;)", "V"); } addByteCode(ByteCode.ARETURN); }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/7457687f89e009967c55b1e4a7f5ed556e56957c/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 18918, 21947, 344, 1435, 288, 3639, 309, 261, 881, 21947, 344, 2224, 480, 300, 21, 13, 288, 5411, 29728, 18, 3355, 2224, 12, 881, 21947, 344, 2224, 1769, 3639, 289, 3639, 309, 16051, 5332, 5555, 382, 426, 564, 747, 401, 267, 2083, 13, 288, 5411, 368, 5217, 4894, 1807, 10027, 5411, 279, 945, 12, 2472, 2042, 1769, 5411, 527, 3651, 5576, 10969, 2932, 5120, 14857, 3113, 4766, 282, 7751, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 1042, 31, 2225, 16, 4766, 282, 315, 58, 8863, 3639, 289, 3639, 527, 3216, 1085, 12, 3216, 1085, 18, 9332, 56, 8521, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 18918, 21947, 344, 1435, 288, 3639, 309, 261, 881, 21947, 344, 2224, 480, 300, 21, 13, 288, 5411, 29728, 18, 3355, 2224, 12, 881, 21947, 344, 2224, 1769, 3639, 289, 3639, 309, 16051, 5332, 5555, 382, 426, 564, 747, 401, 267, 2083, 13, 288, 5411, 368, 5217, 4894, 1807, 10027, 5411, 279, 945, 12, 2472, 2042, 1769, 5411, 527, 3651, 5576, 10969, 2932, 5120, 14857, 3113, 4766, 282, 7751, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 1042, 31, 2225, 16, 4766, 282, 315, 58, 8863, 3639, 289, 3639, 527, 3216, 1085, 12, 3216, 1085, 18, 9332, 56, 8521, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Date may18SixPM2001 = new GregorianCalendar(2001, 4, 18, 18, 0, 0).getTime();
TimeZone tz = TimeZone.getDefault(); Date may18SixPM2001 = new GregorianCalendar(2001, 4, 18, 18, 0, 0).getTime();
public void testParseLogDate() throws ParseException { Date may18SixPM2001 = new GregorianCalendar(2001, 4, 18, 18, 0, 0).getTime(); assertEquals(may18SixPM2001, CVS.LOGDATE.parse("2001/05/18 18:00:00 " + TimeZone.getDefault().getDisplayName(true, TimeZone.SHORT))); }
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/cc8d12515d217c4869991501dda487dca6f6add8/CVSTest.java/buggy/main/test/net/sourceforge/cruisecontrol/sourcecontrols/CVSTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3201, 1343, 1626, 1435, 1216, 10616, 288, 3639, 16491, 6016, 273, 16491, 18, 588, 1868, 5621, 2167, 2026, 2643, 55, 697, 12728, 6976, 21, 273, 394, 28033, 12, 6976, 21, 16, 1059, 16, 6549, 16, 6549, 16, 374, 16, 374, 2934, 588, 950, 5621, 7734, 1815, 8867, 12, 24877, 2643, 55, 697, 12728, 6976, 21, 16, 385, 14640, 18, 4842, 4594, 18, 2670, 2932, 6976, 21, 19, 6260, 19, 2643, 6549, 30, 713, 30, 713, 315, 5397, 397, 16491, 18, 588, 1868, 7675, 588, 20524, 12, 3767, 16, 16491, 18, 15993, 3719, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3201, 1343, 1626, 1435, 1216, 10616, 288, 3639, 16491, 6016, 273, 16491, 18, 588, 1868, 5621, 2167, 2026, 2643, 55, 697, 12728, 6976, 21, 273, 394, 28033, 12, 6976, 21, 16, 1059, 16, 6549, 16, 6549, 16, 374, 16, 374, 2934, 588, 950, 5621, 7734, 1815, 8867, 12, 24877, 2643, 55, 697, 12728, 6976, 21, 16, 385, 14640, 18, 4842, 4594, 18, 2670, 2932, 6976, 21, 19, 6260, 19, 2643, 6549, 30, 713, 30, 713, 315, 5397, 397, 16491, 18, 588, 1868, 7675, 588, 20524, 12, 3767, 16, 16491, 18, 15993, 3719, 1769, 7734, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
File configFile = new File(weblogicSystemHome, "config/" + weblogicDomainName + "/config.xml");
File configFile = new File(weblogicSystemHome, "config/" + weblogicDomainName + "/config.xml");
private void executeWLS6() { File securityPolicyFile = findSecurityPolicyFile( DEFAULT_WL60_POLICY_FILE ); if (!beaHome.isDirectory()) { throw new BuildException("BEA home " + beaHome.getPath() + " is not valid"); } File configFile = new File(weblogicSystemHome, "config/" + weblogicDomainName + "/config.xml"); if (!configFile.exists()) { throw new BuildException("Server config file " + configFile + " not found."); } if (managementPassword == null) { throw new BuildException("You must supply a management password to start the server"); } Java weblogicServer = (Java)project.createTask("java"); weblogicServer.setTaskName(getTaskName()); weblogicServer.setFork(true); weblogicServer.setDir(weblogicSystemHome); weblogicServer.setClassname(weblogicMainClass); String jvmArgs = additionalJvmArgs; jvmArgs += " -Dweblogic.Domain=" + weblogicDomainName; jvmArgs += " -Dweblogic.Name=" + weblogicSystemName; jvmArgs += " -Dweblogic.system.home=" + weblogicSystemHome; jvmArgs += " -Dbea.home=" + beaHome; jvmArgs += " -Djava.security.policy==" + securityPolicyFile; jvmArgs += " -Dweblogic.management.username=" + managementUsername; jvmArgs += " -Dweblogic.management.password=" + managementPassword; if (pkPassword != null) { jvmArgs += " -Dweblogic.pkpassword=" + pkPassword; } weblogicServer.createJvmarg().setLine(jvmArgs); weblogicServer.createArg().setLine(additionalArgs); if (classpath != null) { weblogicServer.setClasspath(classpath); } if (weblogicServer.executeJava() != 0) { throw new BuildException("Execution of weblogic server failed"); } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/c7b5b643b25b20f5c96097b2c54e2e26a054f212/WLRun.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WLRun.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1836, 59, 3045, 26, 1435, 288, 3639, 1387, 4373, 2582, 812, 273, 1104, 19928, 812, 12, 3331, 67, 59, 48, 4848, 67, 26366, 67, 3776, 11272, 3639, 309, 16051, 2196, 69, 8684, 18, 291, 2853, 10756, 288, 5411, 604, 394, 18463, 2932, 5948, 37, 6382, 315, 397, 506, 69, 8684, 18, 588, 743, 1435, 397, 4766, 1377, 315, 353, 486, 923, 8863, 3639, 289, 7734, 1387, 12247, 273, 394, 1387, 12, 4875, 28339, 3163, 8684, 16, 315, 1425, 4898, 397, 3311, 28339, 20144, 397, 2206, 1425, 18, 2902, 8863, 3639, 309, 16051, 1425, 812, 18, 1808, 10756, 288, 5411, 604, 394, 18463, 2932, 2081, 642, 585, 315, 397, 12247, 397, 315, 486, 1392, 1199, 1769, 3639, 289, 7734, 309, 261, 17381, 3913, 422, 446, 13, 288, 5411, 604, 394, 18463, 2932, 6225, 1297, 14467, 279, 11803, 2201, 358, 787, 326, 1438, 8863, 3639, 289, 3639, 5110, 3311, 28339, 2081, 273, 261, 5852, 13, 4406, 18, 2640, 2174, 2932, 6290, 8863, 3639, 3311, 28339, 2081, 18, 542, 2174, 461, 12, 588, 2174, 461, 10663, 3639, 3311, 28339, 2081, 18, 542, 22662, 12, 3767, 1769, 3639, 3311, 28339, 2081, 18, 542, 1621, 12, 4875, 28339, 3163, 8684, 1769, 3639, 3311, 28339, 2081, 18, 542, 20531, 12, 4875, 28339, 6376, 797, 1769, 3639, 514, 13555, 2615, 273, 3312, 6071, 2615, 31, 7734, 13555, 2615, 1011, 315, 300, 40, 4875, 28339, 18, 3748, 1546, 397, 3311, 28339, 20144, 31, 3639, 13555, 2615, 1011, 315, 300, 40, 4875, 28339, 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, 1836, 59, 3045, 26, 1435, 288, 3639, 1387, 4373, 2582, 812, 273, 1104, 19928, 812, 12, 3331, 67, 59, 48, 4848, 67, 26366, 67, 3776, 11272, 3639, 309, 16051, 2196, 69, 8684, 18, 291, 2853, 10756, 288, 5411, 604, 394, 18463, 2932, 5948, 37, 6382, 315, 397, 506, 69, 8684, 18, 588, 743, 1435, 397, 4766, 1377, 315, 353, 486, 923, 8863, 3639, 289, 7734, 1387, 12247, 273, 394, 1387, 12, 4875, 28339, 3163, 8684, 16, 315, 1425, 4898, 397, 3311, 28339, 20144, 397, 2206, 1425, 18, 2902, 8863, 3639, 309, 16051, 1425, 812, 18, 1808, 10756, 288, 5411, 604, 394, 18463, 2932, 2081, 642, 585, 315, 397, 12247, 397, 315, 486, 1392, 1199, 1769, 3639, 2 ]
fPropertyNamesStyle= new String[length];
fPropertyNamesBold= new String[length]; fPropertyNamesItalic= new String[length]; fPropertyNamesStrikethrough= new String[length]; fPropertyNamesUnderline= new String[length];
public final void initialize() { fPropertyNamesColor= getTokenProperties(); int length= fPropertyNamesColor.length; fPropertyNamesStyle= new String[length]; for (int i= 0; i < length; i++) { fPropertyNamesStyle[i]= fPropertyNamesColor[i] + "_bold"; //$NON-NLS-1$ addToken(fPropertyNamesColor[i], fPropertyNamesStyle[i]); } initializeRules(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f234a522db00e1071063f0885f1670c3e1eb4c39/AbstractCScanner.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/AbstractCScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 4046, 1435, 288, 9506, 202, 74, 29932, 2957, 33, 9162, 2297, 5621, 202, 202, 474, 769, 33, 284, 29932, 2957, 18, 2469, 31, 202, 202, 74, 29932, 2885, 33, 394, 514, 63, 2469, 15533, 202, 202, 1884, 261, 474, 277, 33, 374, 31, 277, 411, 769, 31, 277, 27245, 288, 1082, 202, 74, 29932, 2885, 63, 77, 65, 33, 284, 29932, 2957, 63, 77, 65, 397, 4192, 16390, 14432, 225, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 1289, 1345, 12, 74, 29932, 2957, 63, 77, 6487, 284, 29932, 2885, 63, 77, 19226, 202, 202, 97, 9506, 202, 11160, 4478, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 4046, 1435, 288, 9506, 202, 74, 29932, 2957, 33, 9162, 2297, 5621, 202, 202, 474, 769, 33, 284, 29932, 2957, 18, 2469, 31, 202, 202, 74, 29932, 2885, 33, 394, 514, 63, 2469, 15533, 202, 202, 1884, 261, 474, 277, 33, 374, 31, 277, 411, 769, 31, 277, 27245, 288, 1082, 202, 74, 29932, 2885, 63, 77, 65, 33, 284, 29932, 2957, 63, 77, 65, 397, 4192, 16390, 14432, 225, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 1289, 1345, 12, 74, 29932, 2957, 63, 77, 6487, 284, 29932, 2885, 63, 77, 19226, 202, 202, 97, 9506, 202, 11160, 4478, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private void render() throws IOException { JspWriter out = pageContext.getOut(); String configLine = ConfigurationManager .getProperty("webui.itemdisplay." + style); if (configLine == null) configLine = defaultFields; out.println("<center><table class=\"itemDisplayTable\">"); /* * Break down the configuration into fields and display them * * FIXME?: it may be more efficient to do some processing once, perhaps * to a more efficient intermediate class, but then it would become more * difficult to reload the configuration "on the fly". */ StringTokenizer st = new StringTokenizer(configLine, ","); while (st.hasMoreTokens()) { String field = st.nextToken().trim(); boolean isDate = false; boolean isLink = false; // Find out if the field should rendered as a date or link if (field.indexOf("(date)") > 0) { field = field.replaceAll("\\(date\\)", ""); isDate = true; } if (field.indexOf("(link)") > 0) { field = field.replaceAll("\\(link\\)", ""); isLink = true; } // Get the separate element + qualifier // TODO: Support for non-DC String[] eq = field.split("\\."); String element = eq[1]; String qualifier = null; if (eq.length > 2 && eq[2].equals("*")) { qualifier = Item.ANY; } else if (eq.length > 2) { qualifier = eq[2]; } // FIXME: Still need to fix for metadata language? DCValue[] values = item.getMetadata("dc", element, qualifier, Item.ANY); if (values.length > 0) { out.print("<tr><td class=\"metadataFieldLabel\">"); out.print(LocaleSupport.getLocalizedMessage(pageContext, "metadata." + field)); out.print(":&nbsp;</td><td class=\"metadataFieldValue\">"); for (int j = 0; j < values.length; j++) { if (j > 0) { out.print("<br />"); } if (isLink) { out.print("<a href=\"" + values[j].value + "\">" + Utils.addEntities(values[j].value) + "</a>"); } else if (isDate) { DCDate dd = new DCDate(values[j].value); // Parse the date out.print(UIUtil.displayDate(dd, false, false)); } else { out.print(Utils.addEntities(values[j].value)); } } out.println("</td></tr>"); } } listCollections(); out.println("</table></center><br/>"); listBitstreams(); if (ConfigurationManager .getBooleanProperty("webui.licence_bundle.show")) { out.println("<br/><br/>"); showLicence(); } }
52457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52457/0f045d83f912cc639fc3c0ec3c7dd52b870b99a3/ItemTag.java/clean/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1743, 1435, 1216, 1860, 225, 288, 565, 19300, 2289, 596, 273, 21442, 18, 588, 1182, 5621, 565, 514, 642, 1670, 273, 4659, 1318, 3639, 263, 588, 1396, 2932, 4875, 4881, 18, 1726, 5417, 1199, 397, 2154, 1769, 565, 309, 261, 1425, 1670, 422, 446, 13, 1377, 642, 1670, 273, 805, 2314, 31, 565, 596, 18, 8222, 2932, 32, 5693, 4438, 2121, 667, 5189, 1726, 4236, 1388, 21121, 1769, 565, 1748, 377, 380, 17030, 2588, 326, 1664, 1368, 1466, 471, 2562, 2182, 377, 380, 377, 380, 9852, 35, 30, 518, 2026, 506, 1898, 14382, 358, 741, 2690, 4929, 3647, 16, 26282, 377, 380, 358, 279, 1898, 14382, 12110, 667, 16, 1496, 1508, 518, 4102, 12561, 1898, 377, 380, 3122, 17551, 358, 7749, 326, 1664, 315, 265, 326, 21434, 9654, 377, 1195, 565, 16370, 384, 273, 394, 16370, 12, 1425, 1670, 16, 5753, 1769, 565, 1323, 261, 334, 18, 5332, 7417, 5157, 10756, 565, 288, 377, 202, 780, 652, 273, 384, 18, 4285, 1345, 7675, 5290, 5621, 1377, 1250, 28931, 273, 629, 31, 1377, 1250, 353, 2098, 273, 629, 31, 1377, 368, 4163, 596, 309, 326, 652, 1410, 7935, 487, 279, 1509, 578, 1692, 1377, 309, 261, 1518, 18, 31806, 2932, 12, 712, 2225, 13, 405, 374, 13, 1377, 288, 3639, 652, 273, 652, 18, 2079, 1595, 2932, 1695, 12, 712, 1695, 2225, 16, 1408, 1769, 3639, 28931, 273, 638, 31, 1377, 289, 1377, 309, 261, 1518, 18, 31806, 2932, 12, 1232, 2225, 13, 405, 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, 282, 3238, 918, 1743, 1435, 1216, 1860, 225, 288, 565, 19300, 2289, 596, 273, 21442, 18, 588, 1182, 5621, 565, 514, 642, 1670, 273, 4659, 1318, 3639, 263, 588, 1396, 2932, 4875, 4881, 18, 1726, 5417, 1199, 397, 2154, 1769, 565, 309, 261, 1425, 1670, 422, 446, 13, 1377, 642, 1670, 273, 805, 2314, 31, 565, 596, 18, 8222, 2932, 32, 5693, 4438, 2121, 667, 5189, 1726, 4236, 1388, 21121, 1769, 565, 1748, 377, 380, 17030, 2588, 326, 1664, 1368, 1466, 471, 2562, 2182, 377, 380, 377, 380, 9852, 35, 30, 518, 2026, 506, 1898, 14382, 358, 741, 2690, 4929, 3647, 16, 26282, 377, 380, 358, 279, 1898, 14382, 12110, 667, 16, 1496, 1508, 518, 4102, 12561, 1898, 377, 2 ]
Hashtable parameters, String templateSelector) throws CmsException {
Hashtable parameters, String templateSelector) throws CmsException {
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { I_CmsSession session = CmsXmlTemplateLoader.getSession(cms.getRequestContext(), true); CmsXmlWpTemplateFile xmlTemplateDocument = new CmsXmlWpTemplateFile(cms, templateFile); // the template to be displayed String template = null; // clear session values on first load String initial = (String)parameters.get(C_PARA_INITIAL); if (initial != null) { // remove all session values session.removeValue(C_PARA_RESOURCE); //session.removeValue("versionid"); session.removeValue("restore"); session.removeValue("lasturl"); } // get the lasturl parameter String lasturl = getLastUrl(cms, parameters); String restore = (String)parameters.get("restore"); if (restore != null) { session.putValue("restore", restore); } restore = (String)session.getValue("restore"); String filename = (String)parameters.get(C_PARA_RESOURCE); if (filename != null) { session.putValue(C_PARA_RESOURCE, filename); } filename = (String)session.getValue(C_PARA_RESOURCE); String version = (String)session.getValue("version"); String action = (String)parameters.get("action"); CmsResource file = null; if (filename.endsWith("/")) { file = cms.readFolder(filename); } else { file = cms.readFileHeader(filename); } //check if the name parameter was included in the request // if not, the restoreresource page is shown for the first time if (restore != null) { if (action != null) { // restore the resource try { // check the autolock resource setting and lock the resource if necessary if (OpenCms.getWorkplaceManager().autoLockResources()) { if (cms.getLock(filename).isNullLock()) { // resource is not locked, lock it automatically cms.lockResource(filename); } } cms.restoreResource(Integer.parseInt(version), cms.readAbsolutePath(file)); session.removeValue(C_PARA_RESOURCE); //template = "done"; // return to filelist try { if (lasturl == null || "".equals(lasturl)) { CmsXmlTemplateLoader.getResponse(cms.getRequestContext()).sendCmsRedirect(getConfigFile(cms).getWorkplaceActionPath() + CmsWorkplaceAction.getExplorerFileUri(CmsXmlTemplateLoader.getRequest(cms.getRequestContext()).getOriginalRequest())); } else { CmsXmlTemplateLoader.getResponse(cms.getRequestContext()).sendRedirect(lasturl); } } catch (Exception e) { throw new CmsException("Redirect fails :" + getConfigFile(cms).getWorkplaceActionPath() + CmsWorkplaceAction.getExplorerFileUri(CmsXmlTemplateLoader.getRequest(cms.getRequestContext()).getOriginalRequest()), CmsException.C_UNKNOWN_EXCEPTION, e); } return null; } catch (CmsException e) { session.removeValue(C_PARA_RESOURCE); xmlTemplateDocument.setData("details", CmsException.getStackTraceAsString(e)); xmlTemplateDocument.setData("lasturl", lasturl); return startProcessing(cms, xmlTemplateDocument, "", parameters, "error"); } } else { template = "wait"; } } // set the required datablocks if (action == null) { xmlTemplateDocument.setData("CHANGEDATE", CmsMessages.getDateTimeShort(file.getDateLastModified())); xmlTemplateDocument.setData("USER", cms.readUser(file.getUserLastModified()).getName()); xmlTemplateDocument.setData("FILENAME", file.getName()); } // process the selected template return startProcessing(cms, xmlTemplateDocument, "", parameters, template); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/d3dd6db9505b84c0af1f210f072c5ac92035eb4c/CmsRestoreResource.java/buggy/src/com/opencms/workplace/CmsRestoreResource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 5154, 12, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 5411, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 3639, 467, 67, 4747, 2157, 1339, 273, 16084, 2283, 2886, 18, 588, 2157, 12, 6851, 18, 588, 21426, 9334, 638, 1769, 3639, 16084, 59, 84, 2283, 812, 2025, 2283, 2519, 273, 394, 16084, 59, 84, 2283, 812, 12, 6851, 16, 28215, 1769, 3639, 368, 326, 1542, 358, 506, 10453, 3639, 514, 1542, 273, 446, 31, 3639, 368, 2424, 1339, 924, 603, 1122, 1262, 3639, 514, 2172, 273, 261, 780, 13, 3977, 18, 588, 12, 39, 67, 2778, 37, 67, 28497, 1769, 3639, 309, 261, 6769, 480, 446, 13, 288, 5411, 368, 1206, 777, 1339, 924, 5411, 1339, 18, 4479, 620, 12, 39, 67, 2778, 37, 67, 11395, 1769, 5411, 368, 3184, 18, 4479, 620, 2932, 1589, 350, 8863, 5411, 1339, 18, 4479, 620, 2932, 13991, 8863, 5411, 1339, 18, 4479, 620, 2932, 2722, 718, 8863, 3639, 289, 3639, 368, 336, 326, 1142, 718, 1569, 3639, 514, 1142, 718, 273, 7595, 1489, 12, 6851, 16, 1472, 1769, 3639, 514, 5217, 273, 261, 780, 13, 3977, 18, 588, 2932, 13991, 8863, 3639, 309, 261, 13991, 480, 446, 13, 288, 5411, 1339, 18, 458, 620, 2932, 13991, 3113, 5217, 1769, 3639, 289, 3639, 5217, 273, 261, 780, 13, 3184, 18, 24805, 2932, 13991, 8863, 3639, 514, 1544, 273, 261, 780, 13, 3977, 18, 588, 12, 39, 67, 2778, 37, 67, 11395, 1769, 3639, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 5154, 12, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 5411, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 3639, 467, 67, 4747, 2157, 1339, 273, 16084, 2283, 2886, 18, 588, 2157, 12, 6851, 18, 588, 21426, 9334, 638, 1769, 3639, 16084, 59, 84, 2283, 812, 2025, 2283, 2519, 273, 394, 16084, 59, 84, 2283, 812, 12, 6851, 16, 28215, 1769, 3639, 368, 326, 1542, 358, 506, 10453, 3639, 514, 1542, 273, 446, 31, 3639, 368, 2424, 1339, 924, 603, 1122, 1262, 3639, 514, 2172, 273, 261, 780, 13, 3977, 18, 588, 12, 39, 67, 2778, 37, 67, 28497, 1769, 3639, 309, 261, 6769, 480, 446, 13, 288, 5411, 368, 1206, 2 ]
return super.isEnabled() && canControl();
return super.isEnabled() && canControl();
public boolean isEnabled() { return super.isEnabled() && canControl(); }
47551 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47551/613265f5e5146091628e202e3a58336afeb13569/ColumnControlButton.java/buggy/src/java/org/jdesktop/swingx/table/ColumnControlButton.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 12047, 1435, 288, 5411, 327, 2240, 18, 291, 1526, 1435, 597, 848, 3367, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 12047, 1435, 288, 5411, 327, 2240, 18, 291, 1526, 1435, 597, 848, 3367, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 void copyString() { char saveTc = terminator; char tc = in[s]; if (tc == '[') { tc = ']'; } terminator = tc; do { out[d++] = in[s++]; while (in[s] != tc) { out[d++] = in[s++]; } out[d++] = in[s++]; } while (s < len && in[s] == tc); terminator = saveTc; }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/2a032361f1ad15f32f13e3fa63a695439028df39/SQLParser.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/SQLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1610, 780, 1435, 288, 3639, 1149, 1923, 56, 71, 273, 24965, 31, 3639, 1149, 1715, 273, 316, 63, 87, 15533, 7734, 309, 261, 5111, 422, 8375, 13, 288, 5411, 1715, 273, 8641, 31, 3639, 289, 7734, 24965, 273, 1715, 31, 7734, 741, 288, 5411, 596, 63, 72, 9904, 65, 273, 316, 63, 87, 9904, 15533, 13491, 1323, 261, 267, 63, 87, 65, 480, 1715, 13, 288, 7734, 596, 63, 72, 9904, 65, 273, 316, 63, 87, 9904, 15533, 5411, 289, 13491, 596, 63, 72, 9904, 65, 273, 316, 63, 87, 9904, 15533, 3639, 289, 1323, 261, 87, 411, 562, 597, 316, 63, 87, 65, 422, 1715, 1769, 7734, 24965, 273, 1923, 56, 71, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1610, 780, 1435, 288, 3639, 1149, 1923, 56, 71, 273, 24965, 31, 3639, 1149, 1715, 273, 316, 63, 87, 15533, 7734, 309, 261, 5111, 422, 8375, 13, 288, 5411, 1715, 273, 8641, 31, 3639, 289, 7734, 24965, 273, 1715, 31, 7734, 741, 288, 5411, 596, 63, 72, 9904, 65, 273, 316, 63, 87, 9904, 15533, 13491, 1323, 261, 267, 63, 87, 65, 480, 1715, 13, 288, 7734, 596, 63, 72, 9904, 65, 273, 316, 63, 87, 9904, 15533, 5411, 289, 13491, 596, 63, 72, 9904, 65, 273, 316, 63, 87, 9904, 15533, 3639, 289, 1323, 261, 87, 411, 562, 597, 316, 63, 87, 65, 422, 1715, 1769, 7734, 24965, 273, 1923, 56, 71, 31, 565, 289, 2 ]
labelTable.put(new Integer(sizeT), new JLabel(""+sizeT));
labelTable.put(new Integer(maxT), new JLabel(""+maxT));
private void initComponents(int sizeT, int t) { //Slider tSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeT, t); tSlider.setToolTipText("Move the slider to navigate across time"); tSlider.setMinorTickSpacing(1); tSlider.setMajorTickSpacing(10); tSlider.setPaintTicks(true); Hashtable labelTable = new Hashtable(); labelTable.put(new Integer(0), new JLabel(""+0) ); labelTable.put(new Integer(sizeT), new JLabel(""+sizeT)); tSlider.setLabelTable(labelTable); tSlider.setPaintLabels(true); //textField tField = new JTextField("0", (""+sizeT).length()); tField.setForeground(NavigationPalette.STEELBLUE); tField.setToolTipText("Enter a timepoint"); //buttons play = new JButton(im.getIcon(IconManager.MOVIE)); play.setToolTipText("Play movie from current timepoint"); stop = new JButton(im.getIcon(IconManager.STOP)); stop.setToolTipText("Stop movie"); rewind = new JButton(im.getIcon(IconManager.REWIND)); rewind.setToolTipText("Go to first timepoint"); //Spinner timepoint granularity is 1, so must be stepSize //fps = new JSpinner(new SpinnerNumberModel(12, 0, sizeT, 1)); fps = new JSpinner(new SpinnerNumberModel(12, 12, 12, 1)); editor = new JTextField("12", (""+sizeT).length()); String s = "Select or enter the movie playback rate " + "(frames per second)"; editor.setToolTipText(s); fps.setEditor(editor); }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/b52b1735c990029c4d2115a33258acf4d3c82ae5/TNavigator.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/TNavigator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 7171, 12, 474, 963, 56, 16, 509, 268, 13, 225, 202, 95, 202, 202, 759, 21824, 202, 202, 88, 21824, 273, 394, 804, 21824, 12, 46, 21824, 18, 44, 20344, 16, 374, 16, 963, 56, 16, 268, 1769, 202, 202, 88, 21824, 18, 542, 29250, 1528, 2932, 7607, 326, 18442, 358, 28479, 10279, 813, 8863, 202, 202, 88, 21824, 18, 542, 19549, 6264, 18006, 12, 21, 1769, 202, 202, 88, 21824, 18, 542, 17581, 6264, 18006, 12, 2163, 1769, 202, 202, 88, 21824, 18, 542, 12699, 16610, 12, 3767, 1769, 202, 202, 5582, 14544, 1433, 1388, 273, 394, 18559, 5621, 202, 202, 1925, 1388, 18, 458, 12, 2704, 2144, 12, 20, 3631, 394, 21403, 2932, 6, 15, 20, 13, 11272, 202, 202, 1925, 1388, 18, 458, 12, 2704, 2144, 12, 1467, 56, 3631, 394, 21403, 2932, 6, 15, 1467, 56, 10019, 202, 202, 88, 21824, 18, 542, 2224, 1388, 12, 1925, 1388, 1769, 202, 202, 88, 21824, 18, 542, 12699, 5888, 12, 3767, 1769, 9506, 202, 759, 955, 974, 202, 202, 88, 974, 273, 394, 804, 16157, 2932, 20, 3113, 261, 3660, 15, 1467, 56, 2934, 2469, 10663, 202, 202, 88, 974, 18, 542, 23206, 12, 14301, 25863, 18, 882, 41, 2247, 14618, 1821, 1769, 202, 202, 88, 974, 18, 542, 29250, 1528, 2932, 10237, 279, 813, 1153, 8863, 202, 202, 759, 16016, 202, 202, 1601, 273, 394, 28804, 12, 381, 18, 588, 5554, 12, 5554, 1318, 18, 5980, 4136, 41, 10019, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 7171, 12, 474, 963, 56, 16, 509, 268, 13, 225, 202, 95, 202, 202, 759, 21824, 202, 202, 88, 21824, 273, 394, 804, 21824, 12, 46, 21824, 18, 44, 20344, 16, 374, 16, 963, 56, 16, 268, 1769, 202, 202, 88, 21824, 18, 542, 29250, 1528, 2932, 7607, 326, 18442, 358, 28479, 10279, 813, 8863, 202, 202, 88, 21824, 18, 542, 19549, 6264, 18006, 12, 21, 1769, 202, 202, 88, 21824, 18, 542, 17581, 6264, 18006, 12, 2163, 1769, 202, 202, 88, 21824, 18, 542, 12699, 16610, 12, 3767, 1769, 202, 202, 5582, 14544, 1433, 1388, 273, 394, 18559, 5621, 202, 202, 1925, 1388, 18, 458, 12, 2704, 2144, 12, 20, 3631, 394, 21403, 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; }
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/c6a9c5919552b91fb0c4af00afd67a30f78acfc4/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 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 ]
callbackManager.pushCallback(new InclusionData(null, inclusion)); callbackManager.pushCallback(inclusion); }
callbackManager.pushCallback(new InclusionData(null, inclusion)); callbackManager.pushCallback(inclusion); }
protected void quickParsePushPopInclusion(Object inclusion) { callbackManager.pushCallback(new InclusionData(null, inclusion)); callbackManager.pushCallback(inclusion); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1e8393f7a2cd5d5de7919712722d6a1202f825c5/Scanner2.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/Scanner2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 918, 9549, 3201, 7621, 7049, 382, 15335, 12, 921, 26485, 13, 288, 1377, 1348, 1318, 18, 6206, 2428, 12, 2704, 657, 15335, 751, 12, 2011, 16, 26485, 10019, 1377, 1348, 1318, 18, 6206, 2428, 12, 267, 15335, 1769, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 918, 9549, 3201, 7621, 7049, 382, 15335, 12, 921, 26485, 13, 288, 1377, 1348, 1318, 18, 6206, 2428, 12, 2704, 657, 15335, 751, 12, 2011, 16, 26485, 10019, 1377, 1348, 1318, 18, 6206, 2428, 12, 267, 15335, 1769, 282, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
args[i].compile (comp, false);
args[i].compile (comp, 0);
public void compile (Compilation comp, boolean ignore_result) { Method applymethod; func.compile (comp, false); comp.method.compile_checkcast (comp.scmProcedureType); if (args.length <= 4) { for (int i = 0; i < args.length; ++i) args[i].compile (comp, false); applymethod = comp.applymethods[args.length]; } else { comp.method.compile_push_int (args.length); comp.method.compile_new_array (comp.scmObjectType); for (int i = 0; i < args.length; ++i) { comp.method.compile_dup (comp.scmObjectType); comp.method.compile_push_int (i); args[i].compile (comp, false); comp.method.compile_array_store (comp.scmObjectType); } applymethod = comp.applyNmethod; } comp.method.compile_invoke_virtual (applymethod); if (ignore_result) comp.method.compile_pop (1); }
41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/bbb4cee92538f4212714dd1526b149346a5e5b56/ApplyExp.java/clean/kawa/lang/ApplyExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4074, 261, 19184, 1161, 16, 1250, 2305, 67, 2088, 13, 225, 288, 565, 2985, 2230, 2039, 31, 565, 1326, 18, 11100, 261, 2919, 16, 629, 1769, 565, 1161, 18, 2039, 18, 11100, 67, 1893, 4155, 261, 2919, 18, 1017, 81, 17213, 559, 1769, 565, 309, 261, 1968, 18, 2469, 1648, 1059, 13, 1377, 288, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 965, 77, 13, 202, 225, 833, 63, 77, 8009, 11100, 261, 2919, 16, 629, 1769, 202, 9010, 2039, 273, 1161, 18, 9010, 5163, 63, 1968, 18, 2469, 15533, 1377, 289, 565, 469, 1377, 288, 202, 2919, 18, 2039, 18, 11100, 67, 6206, 67, 474, 261, 1968, 18, 2469, 1769, 202, 2919, 18, 2039, 18, 11100, 67, 2704, 67, 1126, 261, 2919, 18, 1017, 81, 17610, 1769, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 965, 77, 13, 202, 225, 288, 202, 565, 1161, 18, 2039, 18, 11100, 67, 26427, 261, 2919, 18, 1017, 81, 17610, 1769, 202, 565, 1161, 18, 2039, 18, 11100, 67, 6206, 67, 474, 261, 77, 1769, 202, 565, 833, 63, 77, 8009, 11100, 261, 2919, 16, 629, 1769, 202, 565, 1161, 18, 2039, 18, 11100, 67, 1126, 67, 2233, 261, 2919, 18, 1017, 81, 17610, 1769, 202, 225, 289, 202, 9010, 2039, 273, 1161, 18, 9010, 50, 2039, 31, 1377, 289, 565, 1161, 18, 2039, 18, 11100, 67, 14407, 67, 12384, 261, 9010, 2039, 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, 1071, 918, 4074, 261, 19184, 1161, 16, 1250, 2305, 67, 2088, 13, 225, 288, 565, 2985, 2230, 2039, 31, 565, 1326, 18, 11100, 261, 2919, 16, 629, 1769, 565, 1161, 18, 2039, 18, 11100, 67, 1893, 4155, 261, 2919, 18, 1017, 81, 17213, 559, 1769, 565, 309, 261, 1968, 18, 2469, 1648, 1059, 13, 1377, 288, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 965, 77, 13, 202, 225, 833, 63, 77, 8009, 11100, 261, 2919, 16, 629, 1769, 202, 9010, 2039, 273, 1161, 18, 9010, 5163, 63, 1968, 18, 2469, 15533, 1377, 289, 565, 469, 1377, 288, 202, 2919, 18, 2039, 18, 11100, 67, 6206, 67, 474, 261, 1968, 18, 2469, 2 ]
thisAsObjectArray = new Object[]{this};
thisAsObjectArray = new Object[] { this };
protected void init(CdrOutputStream cdrOutput) { _cdrOutput = cdrOutput; thisAsObjectArray = new Object[]{this}; }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/9d2c39c906c6955e17daf4ac239b85d4727ddc83/ObjectOutputStream.java/clean/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/ObjectOutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 12, 39, 3069, 4632, 276, 3069, 1447, 13, 288, 3639, 389, 71, 3069, 1447, 273, 276, 3069, 1447, 31, 3639, 333, 1463, 921, 1076, 273, 394, 1033, 8526, 288, 333, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 12, 39, 3069, 4632, 276, 3069, 1447, 13, 288, 3639, 389, 71, 3069, 1447, 273, 276, 3069, 1447, 31, 3639, 333, 1463, 921, 1076, 273, 394, 1033, 8526, 288, 333, 289, 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 ]
vPhaseReport.addElement(r);
addReport(r);
private void damageInfantryIn( Building bldg, int damage ) { // Calculate the amount of damage the infantry will sustain. float percent = 0.0f; Report r; switch( bldg.getType() ) { case Building.LIGHT: percent = 0.75f; break; case Building.MEDIUM: percent = 0.5f; break; case Building.HEAVY: percent = 0.25f; break; } // Round up at .5 points of damage. int toInf = Math.round( damage * percent ); // Record if we find any infantry. boolean foundInfantry = false; // Walk through the entities in the game. Enumeration entities = game.getEntities(); while ( entities.hasMoreElements() ) { Entity entity = (Entity) entities.nextElement(); final Coords coords = entity.getPosition(); // If the entity is infantry in one of the building's hexes? if ( entity instanceof Infantry && bldg.isIn( coords ) ) { // Is the entity is inside of the building // (instead of just on top of it)? if ( Compute.isInBuilding( game, entity, coords ) ) { // Report if the infantry receive no points of damage. if ( toInf == 0 ) { r = new Report(6445); vPhaseReport.addElement(r); } else { // Yup. Damage the entity. // Battle Armor units use 5 point clusters. r = new Report(6450); r.indent(2); r.subject = entity.getId(); r.add(entity.getDisplayName()); r.add(toInf); vPhaseReport.addElement(r); int remaining = toInf; int cluster = toInf; if ( entity instanceof BattleArmor ) { cluster = 5; } while ( remaining > 0 ) { int next = Math.min( cluster, remaining ); HitData hit = entity.rollHitLocation ( ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT ); vPhaseReport.addAll( damageEntity(entity, hit, next) ); remaining -= next; } vPhaseReport.addElement(new Report(1210)); } } // End infantry-inside-building } // End entity-is-infantry-in-building-hex } // Handle the next entity // If we found any infantry, add a line to the phase report. if ( foundInfantry ) { vPhaseReport.addElement(new Report(1210)); } } // End private void damageInfantryIn( Building, int )
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/0259d527ea17f9b6ac49ee6eb9adc9e0d12e163f/Server.java/clean/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 302, 301, 410, 13149, 304, 698, 382, 12, 3998, 310, 324, 1236, 75, 16, 509, 302, 301, 410, 262, 288, 3639, 368, 9029, 326, 3844, 434, 302, 301, 410, 326, 8286, 304, 698, 903, 272, 641, 530, 18, 3639, 1431, 5551, 273, 374, 18, 20, 74, 31, 3639, 8706, 436, 31, 3639, 1620, 12, 324, 1236, 75, 18, 588, 559, 1435, 262, 288, 3639, 648, 3998, 310, 18, 23516, 30, 5551, 273, 374, 18, 5877, 74, 31, 898, 31, 3639, 648, 3998, 310, 18, 15971, 2799, 30, 5551, 273, 374, 18, 25, 74, 31, 898, 31, 3639, 648, 3998, 310, 18, 3900, 5856, 61, 30, 5551, 273, 374, 18, 2947, 74, 31, 898, 31, 3639, 289, 3639, 368, 11370, 731, 622, 263, 25, 3143, 434, 302, 301, 410, 18, 3639, 509, 358, 13149, 273, 2361, 18, 2260, 12, 302, 301, 410, 380, 5551, 11272, 3639, 368, 5059, 309, 732, 1104, 1281, 8286, 304, 698, 18, 3639, 1250, 1392, 13149, 304, 698, 273, 629, 31, 3639, 368, 7564, 3059, 326, 5140, 316, 326, 7920, 18, 3639, 13864, 5140, 273, 7920, 18, 588, 8108, 5621, 3639, 1323, 261, 5140, 18, 5332, 7417, 3471, 1435, 262, 288, 5411, 3887, 1522, 273, 261, 1943, 13, 5140, 18, 4285, 1046, 5621, 5411, 727, 10320, 87, 6074, 273, 1522, 18, 588, 2555, 5621, 5411, 368, 971, 326, 1522, 353, 8286, 304, 698, 316, 1245, 434, 326, 10504, 1807, 3827, 281, 35, 5411, 309, 261, 1522, 1276, 13648, 304, 698, 597, 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, 302, 301, 410, 13149, 304, 698, 382, 12, 3998, 310, 324, 1236, 75, 16, 509, 302, 301, 410, 262, 288, 3639, 368, 9029, 326, 3844, 434, 302, 301, 410, 326, 8286, 304, 698, 903, 272, 641, 530, 18, 3639, 1431, 5551, 273, 374, 18, 20, 74, 31, 3639, 8706, 436, 31, 3639, 1620, 12, 324, 1236, 75, 18, 588, 559, 1435, 262, 288, 3639, 648, 3998, 310, 18, 23516, 30, 5551, 273, 374, 18, 5877, 74, 31, 898, 31, 3639, 648, 3998, 310, 18, 15971, 2799, 30, 5551, 273, 374, 18, 25, 74, 31, 898, 31, 3639, 648, 3998, 310, 18, 3900, 5856, 61, 30, 5551, 273, 374, 18, 2947, 74, 31, 898, 31, 3639, 289, 2 ]
AbilityChoice ac = (AbilityChoice)i.next();
public boolean testApply(Kit aKit, PlayerCharacter aPC, List warnings) { theClass = Globals.getClassKeyed(theClassName); if (theClass == null) { warnings.add("LEVELABILITY: Could not find class \"" + theClassName + "\""); return false; } for (Iterator i = theAbilities.iterator(); i.hasNext(); ) { AbilityChoice ac = (AbilityChoice)i.next(); addLevelAbility(aPC, theClass, ac); } return true; }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/746f9fbe7d3bb98c609b2f38fbc5ffad4e685726/KitLevelAbility.java/clean/code/src/java/pcgen/core/kit/KitLevelAbility.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1842, 7001, 12, 14102, 279, 14102, 16, 19185, 7069, 279, 3513, 16, 987, 5599, 13, 202, 95, 202, 202, 5787, 797, 273, 18901, 1031, 18, 588, 797, 653, 329, 12, 5787, 3834, 1769, 202, 202, 430, 261, 5787, 797, 422, 446, 13, 202, 202, 95, 1082, 202, 12103, 18, 1289, 2932, 10398, 22879, 30, 14312, 486, 1104, 667, 11843, 397, 326, 3834, 6862, 1082, 397, 11143, 1769, 1082, 202, 2463, 629, 31, 202, 202, 97, 202, 202, 1884, 261, 3198, 277, 273, 326, 5895, 5076, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 202, 202, 95, 1082, 202, 5895, 1889, 10538, 1721, 273, 261, 5895, 1889, 10538, 13, 77, 18, 4285, 5621, 1082, 202, 1289, 2355, 5895, 1889, 12, 69, 3513, 16, 326, 797, 16, 1721, 1769, 202, 202, 97, 202, 202, 2463, 638, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1842, 7001, 12, 14102, 279, 14102, 16, 19185, 7069, 279, 3513, 16, 987, 5599, 13, 202, 95, 202, 202, 5787, 797, 273, 18901, 1031, 18, 588, 797, 653, 329, 12, 5787, 3834, 1769, 202, 202, 430, 261, 5787, 797, 422, 446, 13, 202, 202, 95, 1082, 202, 12103, 18, 1289, 2932, 10398, 22879, 30, 14312, 486, 1104, 667, 11843, 397, 326, 3834, 6862, 1082, 397, 11143, 1769, 1082, 202, 2463, 629, 31, 202, 202, 97, 202, 202, 1884, 261, 3198, 277, 273, 326, 5895, 5076, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 202, 202, 95, 1082, 202, 5895, 1889, 10538, 1721, 273, 261, 5895, 1889, 10538, 13, 77, 18, 4285, 5621, 1082, 202, 2 ]
} printUserMenu(ctx); ctx.println(" &nbsp; <span style='font-size:large;'>"); ctx.printHelpLink("","Instructions"); if((which.length()==0) && (ctx.locale!=null)) { which = xMAIN; }
if(which.length()>0) { ctx.println(" | "); ctx.printHelpLink("/"+which.replaceAll(" ","_"),"Page Instructions"); } ctx.println("</td><td align='right'>"); printUserMenu(ctx); ctx.println("</td></tr></table>");
public void doSession(WebContext ctx) { // which String which = ctx.field("x"); setLocale(ctx); String sessionMessage = setSession(ctx); // TODO: untangle this // admin things if((ctx.session.user != null) && (ctx.field("do").length()>0)) { String doWhat = ctx.field("do"); if(doWhat.equals("list") && (UserRegistry.userCanDoList(ctx.session.user)) ) { doList(ctx); } else if(doWhat.equals("new") && (UserRegistry.userCanCreateUsers(ctx.session.user)) ) { doNew(ctx); } else if(doWhat.equals("options")) { doOptions(ctx); } else { printHeader(ctx,doWhat + "?"); ctx.println("<i>some error, try hitting the Back button.</i>"); ctx.println("<br /> User level : " + ctx.session.user.userlevel); printFooter(ctx); } return; } else { // non-user options String doWhat = ctx.field("do"); if(doWhat.equals("options")) { doOptions(ctx); return; } } String title = " - " + which; if(ctx.field("submit").length()<=0) { printHeader(ctx, title); } else { if(ctx.field("submit").equals("preview")) { printHeader(ctx, "Review changes"); } else { printHeader(ctx, "Submitted changes"); } } if(sessionMessage != null) { ctx.println(sessionMessage); } // Not doing vetting admin -------- WebContext baseContext = new WebContext(ctx); if((ctx.locale != null) /* && (ctx.field("submit").length()<=0)*/ ) { // unless we are submitting - process any pending form data. processChanges(ctx, which); } // print 'shopping cart' { if(ctx.session.user != null) { if(ctx.field("submit").length()==0) { ctx.println("<form method=POST action='" + ctx.base() + "'>"); } } printUserMenu(ctx); ctx.println(" &nbsp; <span style='font-size:large;'>"); ctx.printHelpLink("","Instructions"); // base help if((which.length()==0) && (ctx.locale!=null)) { which = xMAIN; } if(which.length()>0) { ctx.printHelpLink("/"+which.replaceAll(" ","_"),"Help with This Page"); // base help } ctx.println("</span>"); if(ctx.field("submit").length()==0) { Hashtable lh = ctx.session.getLocales(); Enumeration e = lh.keys(); if((ctx.locale != null) && UserRegistry.userCanModifyLocale(ctx.session.user,ctx.locale.toString())) { // at least street level if(ctx.field("submit").length()==0) { ctx.println("<div>"); ctx.println("<input type=submit value='" + xSAVE + "'>"); ctx.println("</div>"); } } if(e.hasMoreElements()) { ctx.println("<B>Visited locales: </B> "); for(;e.hasMoreElements();) { String k = e.nextElement().toString(); boolean canModify = UserRegistry.userCanModifyLocale(ctx.session.user,k); ctx.print("<a href=\"" + baseContext.url() + ctx.urlConnector() +"_=" + k + "\">" + new ULocale(k).getDisplayName()); if(canModify) { ctx.print(modifyThing(ctx)); } ctx.println("</a> "); } /* if( UserRegistry.userCanSubmit(ctx.session.user) ) { ctx.println("<div>"); ctx.println("Your changes are <b><font color=red>not</font></b> permanently saved until you: "); ctx.println("<input name=submit type=submit value='" + xREVIEW +"'>"); ctx.println("</div>"); }*/ } } else { ctx.println("<a href='" + ctx.url() + "'><b>List of Locales</b></a>"); } ctx.println("<hr/>"); } if(ctx.field("submit").length()>0) { doSubmit(ctx); } else { doLocale(ctx, baseContext, which); } }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/6c2a3de3ff12b994439a3c4d0855709a5700fd85/SurveyMain.java/clean/tools/java/org/unicode/cldr/web/SurveyMain.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 2157, 12, 4079, 1042, 1103, 13, 565, 288, 3639, 368, 1492, 540, 514, 1492, 273, 1103, 18, 1518, 2932, 92, 8863, 7734, 19848, 12, 5900, 1769, 7734, 514, 1339, 1079, 273, 25486, 12, 5900, 1769, 13491, 368, 2660, 30, 640, 88, 4341, 333, 3639, 368, 3981, 9198, 3639, 309, 12443, 5900, 18, 3184, 18, 1355, 480, 446, 13, 597, 261, 5900, 18, 1518, 2932, 2896, 20387, 2469, 1435, 34, 20, 3719, 288, 5411, 514, 741, 23801, 273, 1103, 18, 1518, 2932, 2896, 8863, 5411, 309, 12, 2896, 23801, 18, 14963, 2932, 1098, 7923, 225, 597, 261, 1299, 4243, 18, 1355, 2568, 3244, 682, 12, 5900, 18, 3184, 18, 1355, 3719, 225, 262, 288, 7734, 741, 682, 12, 5900, 1769, 5411, 289, 469, 309, 12, 2896, 23801, 18, 14963, 2932, 2704, 7923, 597, 261, 1299, 4243, 18, 1355, 2568, 1684, 6588, 12, 5900, 18, 3184, 18, 1355, 3719, 262, 288, 7734, 741, 1908, 12, 5900, 1769, 5411, 289, 469, 309, 12, 2896, 23801, 18, 14963, 2932, 2116, 6, 3719, 288, 7734, 741, 1320, 12, 5900, 1769, 5411, 289, 469, 288, 7734, 1172, 1864, 12, 5900, 16, 2896, 23801, 397, 13574, 1769, 7734, 1103, 18, 8222, 2932, 32, 77, 34, 19068, 555, 16, 775, 6800, 1787, 326, 4297, 3568, 17347, 77, 2984, 1769, 7734, 1103, 18, 8222, 2932, 32, 2848, 20954, 2177, 1801, 294, 315, 397, 1103, 18, 3184, 18, 1355, 18, 1355, 2815, 1769, 7734, 1172, 13787, 12, 5900, 1769, 5411, 289, 5411, 327, 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, 741, 2157, 12, 4079, 1042, 1103, 13, 565, 288, 3639, 368, 1492, 540, 514, 1492, 273, 1103, 18, 1518, 2932, 92, 8863, 7734, 19848, 12, 5900, 1769, 7734, 514, 1339, 1079, 273, 25486, 12, 5900, 1769, 13491, 368, 2660, 30, 640, 88, 4341, 333, 3639, 368, 3981, 9198, 3639, 309, 12443, 5900, 18, 3184, 18, 1355, 480, 446, 13, 597, 261, 5900, 18, 1518, 2932, 2896, 20387, 2469, 1435, 34, 20, 3719, 288, 5411, 514, 741, 23801, 273, 1103, 18, 1518, 2932, 2896, 8863, 5411, 309, 12, 2896, 23801, 18, 14963, 2932, 1098, 7923, 225, 597, 261, 1299, 4243, 18, 1355, 2568, 3244, 682, 12, 5900, 18, 3184, 18, 1355, 3719, 225, 262, 288, 7734, 741, 2 ]
setStringProperty( DataItemHandle.RESULT_SET_COLUMN_PROP, expr );
setStringProperty( IDataItemModel.RESULT_SET_COLUMN_PROP, expr );
public void setValueExpr( String expr ) throws SemanticException { setStringProperty( DataItemHandle.RESULT_SET_COLUMN_PROP, expr ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d802c33711e0d111551ae23575895cd060f085b6/DataItemHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/DataItemHandle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5524, 4742, 12, 514, 3065, 262, 1216, 24747, 503, 202, 95, 202, 202, 542, 780, 1396, 12, 1910, 1180, 3259, 18, 12289, 67, 4043, 67, 11009, 67, 15811, 16, 3065, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5524, 4742, 12, 514, 3065, 262, 1216, 24747, 503, 202, 95, 202, 202, 542, 780, 1396, 12, 1910, 1180, 3259, 18, 12289, 67, 4043, 67, 11009, 67, 15811, 16, 3065, 11272, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String dir = (String)enum.nextElement();
String dir = (String) enum.nextElement();
private void createIndexList(ZipOutputStream zOut) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); // encoding must be UTF8 as specified in the specs. PrintWriter writer = new PrintWriter(new OutputStreamWriter(baos, "UTF8")); // version-info blankline writer.println("JarIndex-Version: 1.0"); writer.println(); // header newline writer.println(zipFile.getName()); // JarIndex is sorting the directories by ascending order. // it's painful to do in JDK 1.1 and it has no value but cosmetic // since it will be read into a hashtable by the classloader. Enumeration enum = addedDirs.keys(); while (enum.hasMoreElements()) { String dir = (String)enum.nextElement(); // try to be smart, not to be fooled by a weird directory name // @fixme do we need to check for directories starting by ./ ? dir = dir.replace('\\', '/'); int pos = dir.lastIndexOf('/'); if (pos != -1){ dir = dir.substring(0, pos); } // looks like nothing from META-INF should be added // and the check is not case insensitive. // see sun.misc.JarIndex if ( dir.startsWith("META-INF") ){ continue; } // name newline writer.println(dir); }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/c7b5b643b25b20f5c96097b2c54e2e26a054f212/Jar.java/clean/src/main/org/apache/tools/ant/taskdefs/Jar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 25207, 682, 12, 9141, 4632, 998, 1182, 13, 1216, 1860, 288, 3639, 11559, 17548, 273, 394, 11559, 5621, 3639, 368, 2688, 1297, 506, 6380, 28, 487, 1269, 316, 326, 10607, 18, 3639, 14071, 2633, 273, 394, 14071, 12, 2704, 24248, 12, 12124, 538, 16, 4766, 19694, 315, 5159, 28, 7923, 1769, 3639, 368, 1177, 17, 1376, 7052, 1369, 3639, 2633, 18, 8222, 2932, 10813, 1016, 17, 1444, 30, 404, 18, 20, 8863, 3639, 2633, 18, 8222, 5621, 3639, 368, 1446, 9472, 3639, 2633, 18, 8222, 12, 4450, 812, 18, 17994, 10663, 3639, 368, 15644, 1016, 353, 9602, 326, 6402, 635, 13976, 1353, 18, 3639, 368, 518, 1807, 293, 530, 2706, 358, 741, 316, 24387, 404, 18, 21, 471, 518, 711, 1158, 460, 1496, 4987, 81, 7943, 3639, 368, 3241, 518, 903, 506, 855, 1368, 279, 711, 14544, 635, 326, 20595, 18, 3639, 13864, 2792, 273, 3096, 9872, 18, 2452, 5621, 3639, 1323, 261, 7924, 18, 5332, 7417, 3471, 10756, 288, 5411, 514, 1577, 273, 261, 780, 13, 2792, 18, 4285, 1046, 5621, 5411, 368, 775, 358, 506, 13706, 16, 486, 358, 506, 284, 22167, 635, 279, 20843, 1867, 508, 5411, 368, 632, 904, 3501, 741, 732, 1608, 358, 866, 364, 6402, 5023, 635, 263, 19, 692, 5411, 1577, 273, 1577, 18, 2079, 2668, 1695, 2187, 2023, 1769, 5411, 509, 949, 273, 1577, 18, 2722, 31985, 2668, 2473, 1769, 5411, 309, 261, 917, 480, 300, 21, 15329, 7734, 1577, 273, 1577, 18, 28023, 12, 20, 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, 25207, 682, 12, 9141, 4632, 998, 1182, 13, 1216, 1860, 288, 3639, 11559, 17548, 273, 394, 11559, 5621, 3639, 368, 2688, 1297, 506, 6380, 28, 487, 1269, 316, 326, 10607, 18, 3639, 14071, 2633, 273, 394, 14071, 12, 2704, 24248, 12, 12124, 538, 16, 4766, 19694, 315, 5159, 28, 7923, 1769, 3639, 368, 1177, 17, 1376, 7052, 1369, 3639, 2633, 18, 8222, 2932, 10813, 1016, 17, 1444, 30, 404, 18, 20, 8863, 3639, 2633, 18, 8222, 5621, 3639, 368, 1446, 9472, 3639, 2633, 18, 8222, 12, 4450, 812, 18, 17994, 10663, 3639, 368, 15644, 1016, 353, 9602, 326, 6402, 635, 13976, 1353, 18, 3639, 368, 518, 1807, 293, 530, 2706, 358, 741, 316, 24387, 404, 18, 2 ]
public Locale getLocale() {
public Locale getLocale() {
public Locale getLocale() { return im == null ? null : im.getLocale(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/InputContext.java/buggy/core/src/classpath/java/java/awt/im/InputContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6458, 9595, 1435, 288, 202, 202, 2463, 709, 422, 446, 692, 446, 294, 709, 18, 588, 3916, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6458, 9595, 1435, 288, 202, 202, 2463, 709, 422, 446, 692, 446, 294, 709, 18, 588, 3916, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
}else {
} else {
public void getAutoresponse(Commandline cmd) { if ( m_AutoResponse == null) { cmd.createArgument().setValue(FLAG_AUTORESPONSE_DEF); } else if ( m_AutoResponse.equalsIgnoreCase("Y")) { cmd.createArgument().setValue(FLAG_AUTORESPONSE_YES); } else if ( m_AutoResponse.equalsIgnoreCase("N")) { cmd.createArgument().setValue(FLAG_AUTORESPONSE_NO); }else { cmd.createArgument().setValue(FLAG_AUTORESPONSE_DEF); } // end of else }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/6154080061f869b4e425d608da3bd61fad967564/MSVSSLABEL.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSLABEL.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26707, 2740, 12, 2189, 1369, 1797, 13, 288, 7734, 309, 261, 312, 67, 4965, 1064, 422, 446, 13, 288, 5411, 1797, 18, 2640, 1379, 7675, 542, 620, 12, 9651, 67, 37, 1693, 8607, 11186, 67, 12904, 1769, 3639, 289, 469, 309, 261, 312, 67, 4965, 1064, 18, 14963, 5556, 2932, 61, 6, 3719, 288, 5411, 1797, 18, 2640, 1379, 7675, 542, 620, 12, 9651, 67, 37, 1693, 8607, 11186, 67, 29081, 1769, 10792, 289, 469, 309, 261, 312, 67, 4965, 1064, 18, 14963, 5556, 2932, 50, 6, 3719, 288, 5411, 1797, 18, 2640, 1379, 7675, 542, 620, 12, 9651, 67, 37, 1693, 8607, 11186, 67, 3417, 1769, 3639, 289, 469, 288, 5411, 1797, 18, 2640, 1379, 7675, 542, 620, 12, 9651, 67, 37, 1693, 8607, 11186, 67, 12904, 1769, 3639, 289, 368, 679, 434, 469, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 26707, 2740, 12, 2189, 1369, 1797, 13, 288, 7734, 309, 261, 312, 67, 4965, 1064, 422, 446, 13, 288, 5411, 1797, 18, 2640, 1379, 7675, 542, 620, 12, 9651, 67, 37, 1693, 8607, 11186, 67, 12904, 1769, 3639, 289, 469, 309, 261, 312, 67, 4965, 1064, 18, 14963, 5556, 2932, 61, 6, 3719, 288, 5411, 1797, 18, 2640, 1379, 7675, 542, 620, 12, 9651, 67, 37, 1693, 8607, 11186, 67, 29081, 1769, 10792, 289, 469, 309, 261, 312, 67, 4965, 1064, 18, 14963, 5556, 2932, 50, 6, 3719, 288, 5411, 1797, 18, 2640, 1379, 7675, 542, 620, 12, 9651, 67, 37, 1693, 8607, 11186, 67, 3417, 1769, 3639, 289, 469, 288, 5411, 1797, 18, 2640, 1379, 2 ]
try { ULTRAPEER_1.receive(TIMEOUT); assertTrue(false); } catch (InterruptedIOException expected) {}
assertTrue(noUnexpectedMessages(ULTRAPEER_1));
public void testProbeIsTTL1Only() throws Exception { for (int i = 2; i < 5; i++) { drainAll(); QueryRequest request = QueryRequest.createQuery("berkeley"); request.setTTL((byte)i); ULTRAPEER_2.send(request); ULTRAPEER_2.flush(); QueryRequest reqRecvd = (QueryRequest) LEAF.receive(TIMEOUT); assertTrue(reqRecvd.getQuery().equals("berkeley")); assertTrue(Arrays.equals(request.getGUID(), reqRecvd.getGUID())); // should be forwarded to other Ultrapeer reqRecvd = (QueryRequest) ULTRAPEER_1.receive(TIMEOUT); assertTrue(reqRecvd.getQuery().equals("berkeley")); assertTrue(Arrays.equals(request.getGUID(), reqRecvd.getGUID())); assertEquals(reqRecvd.getHops(), (byte) 1); Thread.sleep(2*1000); // extend the probe.... request.setTTL((byte)(i+1)); ULTRAPEER_2.send(request); ULTRAPEER_2.flush(); // should be counted as a duplicate and not forwarded anywhere... try { LEAF.receive(TIMEOUT); assertTrue(false); } catch (InterruptedIOException expected) {} try { ULTRAPEER_1.receive(TIMEOUT); assertTrue(false); } catch (InterruptedIOException expected) {} } }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/38c1d00de8a6ae9a9130276c19a00591edd85b59/ServerSideDynamicQueryTest.java/clean/components/gnutella-core/src/test/java/com/limegroup/gnutella/ServerSideDynamicQueryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 21042, 2520, 11409, 21, 3386, 1435, 1216, 1185, 288, 3639, 364, 261, 474, 277, 273, 576, 31, 277, 411, 1381, 31, 277, 27245, 288, 5411, 15427, 1595, 5621, 5411, 2770, 691, 590, 273, 2770, 691, 18, 2640, 1138, 2932, 744, 79, 292, 402, 8863, 5411, 590, 18, 542, 11409, 12443, 7229, 13, 77, 1769, 5411, 587, 12050, 2849, 1423, 654, 67, 22, 18, 4661, 12, 2293, 1769, 5411, 587, 12050, 2849, 1423, 654, 67, 22, 18, 11330, 5621, 5411, 2770, 691, 1111, 5650, 16115, 273, 261, 1138, 691, 13, 5380, 6799, 18, 18149, 12, 9503, 1769, 5411, 1815, 5510, 12, 3658, 5650, 16115, 18, 588, 1138, 7675, 14963, 2932, 744, 79, 292, 402, 7923, 1769, 5411, 1815, 5510, 12, 12726, 18, 14963, 12, 2293, 18, 588, 17525, 9334, 1111, 5650, 16115, 18, 588, 17525, 1435, 10019, 5411, 368, 1410, 506, 19683, 358, 1308, 587, 80, 313, 1273, 264, 5411, 1111, 5650, 16115, 273, 261, 1138, 691, 13, 587, 12050, 2849, 1423, 654, 67, 21, 18, 18149, 12, 9503, 1769, 5411, 1815, 5510, 12, 3658, 5650, 16115, 18, 588, 1138, 7675, 14963, 2932, 744, 79, 292, 402, 7923, 1769, 5411, 1815, 5510, 12, 12726, 18, 14963, 12, 2293, 18, 588, 17525, 9334, 1111, 5650, 16115, 18, 588, 17525, 1435, 10019, 5411, 1815, 8867, 12, 3658, 5650, 16115, 18, 588, 44, 4473, 9334, 261, 7229, 13, 404, 1769, 13491, 4884, 18, 19607, 12, 22, 14, 18088, 1769, 13491, 368, 2133, 326, 10695, 6265, 5411, 590, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 21042, 2520, 11409, 21, 3386, 1435, 1216, 1185, 288, 3639, 364, 261, 474, 277, 273, 576, 31, 277, 411, 1381, 31, 277, 27245, 288, 5411, 15427, 1595, 5621, 5411, 2770, 691, 590, 273, 2770, 691, 18, 2640, 1138, 2932, 744, 79, 292, 402, 8863, 5411, 590, 18, 542, 11409, 12443, 7229, 13, 77, 1769, 5411, 587, 12050, 2849, 1423, 654, 67, 22, 18, 4661, 12, 2293, 1769, 5411, 587, 12050, 2849, 1423, 654, 67, 22, 18, 11330, 5621, 5411, 2770, 691, 1111, 5650, 16115, 273, 261, 1138, 691, 13, 5380, 6799, 18, 18149, 12, 9503, 1769, 5411, 1815, 5510, 12, 3658, 5650, 16115, 18, 588, 1138, 7675, 14963, 2932, 744, 79, 292, 402, 7923, 1769, 2 ]
if (f.methodId == Id_getClass) {
if (f.methodId() == Id_getClass) {
public Object execMethod(IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (f.hasTag(FTAG)) { if (f.methodId == Id_getClass) { return js_getClass(cx, scope, args); } } throw f.unknown(); }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/b8f8b7755881b715c4310c7923c48146c2eac1ff/NativeJavaTopPackage.java/clean/src/org/mozilla/javascript/NativeJavaTopPackage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 12, 548, 2083, 284, 16, 1772, 9494, 16, 22780, 2146, 16, 11794, 22780, 15261, 16, 1033, 8526, 833, 13, 565, 288, 3639, 309, 261, 74, 18, 5332, 1805, 12, 4464, 1781, 3719, 288, 5411, 309, 261, 74, 18, 2039, 548, 1435, 422, 3124, 67, 588, 797, 13, 288, 7734, 327, 3828, 67, 588, 797, 12, 71, 92, 16, 2146, 16, 833, 1769, 5411, 289, 3639, 289, 3639, 604, 284, 18, 8172, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 1196, 1305, 12, 548, 2083, 284, 16, 1772, 9494, 16, 22780, 2146, 16, 11794, 22780, 15261, 16, 1033, 8526, 833, 13, 565, 288, 3639, 309, 261, 74, 18, 5332, 1805, 12, 4464, 1781, 3719, 288, 5411, 309, 261, 74, 18, 2039, 548, 1435, 422, 3124, 67, 588, 797, 13, 288, 7734, 327, 3828, 67, 588, 797, 12, 71, 92, 16, 2146, 16, 833, 1769, 5411, 289, 3639, 289, 3639, 604, 284, 18, 8172, 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 ]
public void translate(ClassGenerator classGen, MethodGenerator methodGen) { final ConstantPoolGen cpg = classGen.getConstantPool(); final InstructionList il = methodGen.getInstructionList(); final int dupInit = cpg.addMethodref(DUP_FILTERED_ITERATOR, "<init>", "("+NODE_ITERATOR_SIG+")V"); // Wrap the KeyIndex (iterator) inside a duplicate filter iterator to // pre-read the indexed nodes and cache them. il.append(new NEW(cpg.addClass(DUP_FILTERED_ITERATOR))); il.append(DUP); translateCall(classGen, methodGen); il.append(new INVOKESPECIAL(dupInit)); }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/be60972735dc72ea42ae9a13af0902b0d94e7e1f/KeyCall.java/buggy/src/org/apache/xalan/xsltc/compiler/KeyCall.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 918, 4204, 12, 797, 3908, 667, 7642, 16, 9506, 225, 2985, 3908, 707, 7642, 13, 288, 202, 6385, 10551, 2864, 7642, 3283, 75, 273, 667, 7642, 18, 588, 6902, 2864, 5621, 202, 6385, 24605, 682, 14254, 273, 707, 7642, 18, 588, 11983, 682, 5621, 202, 6385, 509, 9417, 2570, 273, 3283, 75, 18, 1289, 1305, 1734, 12, 30387, 67, 11126, 2056, 67, 11844, 3575, 16, 25083, 225, 3532, 2738, 2984, 16, 25083, 225, 12452, 15, 8744, 67, 11844, 3575, 67, 18513, 15, 7923, 58, 8863, 202, 759, 4266, 326, 1929, 1016, 261, 9838, 13, 4832, 279, 6751, 1034, 2775, 358, 202, 759, 675, 17, 896, 326, 8808, 2199, 471, 1247, 2182, 18, 202, 330, 18, 6923, 12, 2704, 12887, 12, 4057, 75, 18, 1289, 797, 12, 30387, 67, 11126, 2056, 67, 11844, 3575, 3719, 1769, 202, 330, 18, 6923, 12, 30387, 1769, 202, 13929, 1477, 12, 1106, 7642, 16, 707, 7642, 1769, 202, 330, 18, 6923, 12, 2704, 20694, 3991, 10106, 6365, 12, 26427, 2570, 10019, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 918, 4204, 12, 797, 3908, 667, 7642, 16, 9506, 225, 2985, 3908, 707, 7642, 13, 288, 202, 6385, 10551, 2864, 7642, 3283, 75, 273, 667, 7642, 18, 588, 6902, 2864, 5621, 202, 6385, 24605, 682, 14254, 273, 707, 7642, 18, 588, 11983, 682, 5621, 202, 6385, 509, 9417, 2570, 273, 3283, 75, 18, 1289, 1305, 1734, 12, 30387, 67, 11126, 2056, 67, 11844, 3575, 16, 25083, 225, 3532, 2738, 2984, 16, 25083, 225, 12452, 15, 8744, 67, 11844, 3575, 67, 18513, 15, 7923, 58, 8863, 202, 759, 4266, 326, 1929, 1016, 261, 9838, 13, 4832, 279, 6751, 1034, 2775, 358, 202, 759, 675, 17, 896, 326, 8808, 2199, 471, 1247, 2182, 18, 202, 330, 18, 6923, 12, 2 ]
boolean foundDiaptcher= false;
boolean foundDiaptcher = false;
private void processDispatchingOrder(OMElement dispatch_order) throws DeploymentException { Iterator dispatchers = dispatch_order.getChildrenWithName(new QName(DIPSTCHER)); boolean foundDiaptcher= false; Phase dispatchPhae = new Phase(PhaseMetadata.PHASE_DISPATCH); int count =0; while (dispatchers.hasNext()) { foundDiaptcher = true; OMElement dispchter = (OMElement) dispatchers.next(); String clssName = dispchter.getAttribute(new QName(CLASSNAME)).getAttributeValue(); AbstractDispatcher disptachClas; Class classInstance; try { classInstance = Class.forName( clssName,true,Thread.currentThread().getContextClassLoader()); disptachClas =(AbstractDispatcher)classInstance.newInstance(); disptachClas.initDispatcher(); disptachClas.getHandlerDesc().setParent(axisConfiguration); dispatchPhae.addHandler(disptachClas, count); count ++; } catch (ClassNotFoundException e) { throw new DeploymentException(e); } catch (IllegalAccessException e) { throw new DeploymentException(e); } catch (InstantiationException e) { throw new DeploymentException(e); } } if(!foundDiaptcher){ throw new DeploymentException(Messages.getMessage(DeploymentErrorMsgs.NO_DISPATCHER_FOUND)); } else { ((AxisConfigurationImpl)axisConfiguration).setDispatchPhase(dispatchPhae); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/5f07c5c348ac1bfe427010be901bc10e3f0a6182/AxisConfigBuilder.java/clean/modules/core/src/org/apache/axis2/deployment/AxisConfigBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 5325, 310, 2448, 12, 51, 12310, 3435, 67, 1019, 13, 1216, 8587, 503, 288, 3639, 4498, 3435, 414, 273, 3435, 67, 1019, 18, 588, 4212, 17557, 12, 2704, 16723, 12, 2565, 52, 882, 1792, 654, 10019, 3639, 1250, 1392, 40, 1155, 337, 19322, 273, 629, 31, 3639, 19459, 3435, 52, 3395, 73, 273, 394, 19459, 12, 11406, 2277, 18, 8939, 4429, 67, 2565, 3118, 5858, 1769, 3639, 509, 1056, 273, 20, 31, 3639, 1323, 261, 10739, 414, 18, 5332, 2134, 10756, 288, 5411, 1392, 40, 1155, 337, 19322, 273, 638, 31, 5411, 531, 12310, 16232, 343, 387, 273, 261, 51, 12310, 13, 3435, 414, 18, 4285, 5621, 5411, 514, 927, 1049, 461, 273, 16232, 343, 387, 18, 588, 1499, 12, 2704, 16723, 12, 5237, 1985, 13, 2934, 588, 14942, 5621, 5411, 4115, 6681, 1015, 337, 497, 2009, 345, 31, 5411, 1659, 667, 1442, 31, 5411, 775, 288, 7734, 667, 1442, 273, 1659, 18, 1884, 461, 12, 13491, 927, 1049, 461, 16, 3767, 16, 3830, 18, 2972, 3830, 7675, 29120, 7805, 10663, 7734, 1015, 337, 497, 2009, 345, 273, 12, 7469, 6681, 13, 1106, 1442, 18, 2704, 1442, 5621, 7734, 1015, 337, 497, 2009, 345, 18, 2738, 6681, 5621, 7734, 1015, 337, 497, 2009, 345, 18, 588, 1503, 4217, 7675, 542, 3054, 12, 4890, 1750, 1769, 7734, 3435, 52, 3395, 73, 18, 1289, 1503, 12, 2251, 337, 497, 2009, 345, 16, 1056, 1769, 7734, 1056, 965, 31, 5411, 289, 1044, 261, 797, 3990, 425, 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, 1207, 5325, 310, 2448, 12, 51, 12310, 3435, 67, 1019, 13, 1216, 8587, 503, 288, 3639, 4498, 3435, 414, 273, 3435, 67, 1019, 18, 588, 4212, 17557, 12, 2704, 16723, 12, 2565, 52, 882, 1792, 654, 10019, 3639, 1250, 1392, 40, 1155, 337, 19322, 273, 629, 31, 3639, 19459, 3435, 52, 3395, 73, 273, 394, 19459, 12, 11406, 2277, 18, 8939, 4429, 67, 2565, 3118, 5858, 1769, 3639, 509, 1056, 273, 20, 31, 3639, 1323, 261, 10739, 414, 18, 5332, 2134, 10756, 288, 5411, 1392, 40, 1155, 337, 19322, 273, 638, 31, 5411, 531, 12310, 16232, 343, 387, 273, 261, 51, 12310, 13, 3435, 414, 18, 4285, 5621, 5411, 514, 927, 1049, 461, 273, 16232, 343, 2 ]