rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
Fetcher fetcher = new Fetcher(nfs, directory, parsing); if (threadCount != -1) { fetcher.setThreadCount(threadCount); } setLogLevel(Level.parse(logLevel.toUpperCase())); if (showThreadID) { LogFormatter.setShowThreadIDs(showThreadID); } | Fetcher fetcher = new Fetcher(conf); | public static void main(String[] args) throws Exception { int threadCount = -1; String logLevel = "info"; boolean parsing = true; boolean showThreadID = false; String directory = null; String usage = "Usage: Fetcher (-local | -ndfs <namenode:port>) [-logLevel level] [-noParsing] [-showThreadID] [-threads n] <dir>"; if (args.length == 0) { System.err.println(usage); System.exit(-1); } int i = 0; NutchFileSystem nfs = NutchFileSystem.parseArgs(args, i); for (; i < args.length; i++) { // parse command line if (args[i] == null) { continue; } else if (args[i].equals("-threads")) { // found -threads option threadCount = Integer.parseInt(args[++i]); } else if (args[i].equals("-logLevel")) { logLevel = args[++i]; } else if (args[i].equals("-noParsing")) { parsing = false; } else if (args[i].equals("-showThreadID")) { showThreadID = true; } else // root is required parameter directory = args[i]; } Fetcher fetcher = new Fetcher(nfs, directory, parsing);// make a Fetcher if (threadCount != -1) { // set threadCount option fetcher.setThreadCount(threadCount); } // set log level setLogLevel(Level.parse(logLevel.toUpperCase())); if (showThreadID) { LogFormatter.setShowThreadIDs(showThreadID); } try { fetcher.run(); // run the Fetcher } finally { nfs.close(); } } | 46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/b8bd3f133b29d794833bdcffc1bfd0d41d421066/Fetcher.java/clean/src/java/org/apache/nutch/fetcher/Fetcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
565,
509,
2650,
1380,
273,
300,
21,
31,
565,
514,
16752,
273,
315,
1376,
14432,
565,
1250,
5811,
273,
638,
31,
565,
1250,
2405,
3830,
734,
273,
629,
31,
565,
514,
1867,
273,
446,
31,
565,
514,
4084,
273,
315,
5357,
30,
8065,
264,
24927,
3729,
571,
300,
82,
12381,
411,
17808,
20680,
30,
655,
23429,
23059,
1330,
2355,
1801,
65,
23059,
2135,
13963,
65,
23059,
4500,
3830,
734,
65,
23059,
12495,
290,
65,
411,
1214,
2984,
31,
565,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
1377,
2332,
18,
370,
18,
8222,
12,
9167,
1769,
1377,
2332,
18,
8593,
19236,
21,
1769,
565,
289,
1850,
509,
277,
273,
374,
31,
565,
423,
322,
343,
11785,
290,
2556,
273,
423,
322,
343,
11785,
18,
2670,
2615,
12,
1968,
16,
277,
1769,
565,
364,
261,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
4202,
368,
1109,
1296,
980,
1377,
309,
261,
1968,
63,
77,
65,
422,
446,
13,
288,
1850,
1324,
31,
1377,
289,
469,
309,
261,
1968,
63,
77,
8009,
14963,
2932,
17,
12495,
6,
3719,
288,
565,
368,
1392,
300,
12495,
1456,
3639,
2650,
1380,
273,
225,
2144,
18,
2670,
1702,
12,
1968,
63,
9904,
77,
19226,
1377,
289,
469,
309,
261,
1968,
63,
77,
8009,
14963,
2932,
17,
1330,
2355,
6,
3719,
288,
3639,
16752,
273,
833,
63,
9904,
77,
15533,
1377,
289,
469,
309,
261,
1968,
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,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
565,
509,
2650,
1380,
273,
300,
21,
31,
565,
514,
16752,
273,
315,
1376,
14432,
565,
1250,
5811,
273,
638,
31,
565,
1250,
2405,
3830,
734,
273,
629,
31,
565,
514,
1867,
273,
446,
31,
565,
514,
4084,
273,
315,
5357,
30,
8065,
264,
24927,
3729,
571,
300,
82,
12381,
411,
17808,
20680,
30,
655,
23429,
23059,
1330,
2355,
1801,
65,
23059,
2135,
13963,
65,
23059,
4500,
3830,
734,
65,
23059,
12495,
290,
65,
411,
1214,
2984,
31,
565,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
1377,
2332,
18,
370,
18,
8222,
12,
9167,
1769,
1377,
2332,
18,
8593,
19236,
21,
1769,
565,
289,
2
] |
findParticipant(addrFrom, resourceFrom, nameFrom); | findAddParticipant(addrFrom, resourceFrom, nameFrom); | int addMessage(IMAddr addrFrom, String resourceFrom, String nameFrom, IMMessage msg) { // will trigger the add findParticipant(addrFrom, resourceFrom, nameFrom); mMessages.add(msg); return mMessages.size()+mFirstSeqNo; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/2271668c6ec4d846f281b65d3c119ac2b38532c1/IMChat.java/clean/ZimbraServer/src/java/com/zimbra/cs/im/IMChat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
16487,
12,
3445,
3178,
3091,
1265,
16,
514,
1058,
1265,
16,
514,
508,
1265,
16,
6246,
1079,
1234,
13,
565,
288,
3639,
368,
903,
3080,
326,
527,
3639,
1104,
986,
22540,
12,
4793,
1265,
16,
1058,
1265,
16,
508,
1265,
1769,
7734,
312,
5058,
18,
1289,
12,
3576,
1769,
7734,
327,
312,
5058,
18,
1467,
1435,
15,
81,
3759,
6926,
2279,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
16487,
12,
3445,
3178,
3091,
1265,
16,
514,
1058,
1265,
16,
514,
508,
1265,
16,
6246,
1079,
1234,
13,
565,
288,
3639,
368,
903,
3080,
326,
527,
3639,
1104,
986,
22540,
12,
4793,
1265,
16,
1058,
1265,
16,
508,
1265,
1769,
7734,
312,
5058,
18,
1289,
12,
3576,
1769,
7734,
327,
312,
5058,
18,
1467,
1435,
15,
81,
3759,
6926,
2279,
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
] |
double optimizerEstimatedCost, GeneratedMethod closeCleanup) | double optimizerEstimatedCost) | public NoPutResultSet getProjectRestrictResultSet(NoPutResultSet source, GeneratedMethod restriction, GeneratedMethod projection, int resultSetNumber, GeneratedMethod constantRestriction, int mapRefItem, boolean reuseResult, boolean doesProjection, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod closeCleanup) throws StandardException { return new ProjectRestrictResultSet(source, source.getActivation(), restriction, projection, resultSetNumber, constantRestriction, mapRefItem, reuseResult, doesProjection, optimizerEstimatedRowCount, optimizerEstimatedCost); } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/9e6e461e8a18e9d7ada381c5ec3e7568559831b5/GenericResultSetFactory.java/clean/java/engine/org/apache/derby/impl/sql/execute/GenericResultSetFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2631,
6426,
13198,
11080,
29371,
13198,
12,
2279,
6426,
13198,
1084,
16,
202,
202,
7823,
1305,
9318,
16,
3196,
202,
7823,
1305,
8106,
16,
509,
12168,
1854,
16,
202,
202,
7823,
1305,
5381,
11670,
16,
202,
202,
474,
852,
1957,
1180,
16,
202,
202,
6494,
11827,
1253,
16,
202,
202,
6494,
1552,
14789,
16,
202,
202,
9056,
13066,
9122,
17275,
26359,
16,
202,
202,
9056,
13066,
9122,
17275,
8018,
16,
202,
202,
7823,
1305,
1746,
15007,
13,
1082,
202,
15069,
8263,
503,
202,
95,
202,
202,
2463,
394,
5420,
29371,
13198,
12,
3168,
16,
1084,
18,
588,
14857,
9334,
1875,
202,
23954,
16,
8106,
16,
12168,
1854,
16,
1875,
202,
14384,
11670,
16,
852,
1957,
1180,
16,
1875,
202,
266,
1202,
1253,
16,
1082,
202,
20657,
14789,
16,
1082,
565,
13066,
9122,
17275,
26359,
16,
1082,
202,
29594,
9122,
17275,
8018,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2631,
6426,
13198,
11080,
29371,
13198,
12,
2279,
6426,
13198,
1084,
16,
202,
202,
7823,
1305,
9318,
16,
3196,
202,
7823,
1305,
8106,
16,
509,
12168,
1854,
16,
202,
202,
7823,
1305,
5381,
11670,
16,
202,
202,
474,
852,
1957,
1180,
16,
202,
202,
6494,
11827,
1253,
16,
202,
202,
6494,
1552,
14789,
16,
202,
202,
9056,
13066,
9122,
17275,
26359,
16,
202,
202,
9056,
13066,
9122,
17275,
8018,
16,
202,
202,
7823,
1305,
1746,
15007,
13,
1082,
202,
15069,
8263,
503,
202,
95,
202,
202,
2463,
394,
5420,
29371,
13198,
12,
3168,
16,
1084,
18,
588,
14857,
9334,
1875,
202,
23954,
16,
8106,
16,
12168,
1854,
16,
1875,
202,
14384,
11670,
16,
852,
1957,
1180,
2
] |
continue; } else if (val.isStringConstant()) { VM.sysWrite("TODO: should constant fold MethodIfCmp on StringConstant"); | } } else if (IfCmp2.conforms(s)) { if(processIfCmp2(ir, bb, s)) { branches = bb.enumerateBranchInstructions(); bb.recomputeNormalOut(ir); didSomething = true; } } else if (LookupSwitch.conforms(s)) { if(processLookupSwitch(ir, bb, s)) { branches = bb.enumerateBranchInstructions(); bb.recomputeNormalOut(ir); didSomething = true; } } else if (TableSwitch.conforms(s)) { if(processTableSwitch(ir, bb, s)) { branches = bb.enumerateBranchInstructions(); bb.recomputeNormalOut(ir); didSomething = true; } } else if (InlineGuard.conforms(s)) { if(processInlineGuard(ir, bb, s)) { branches = bb.enumerateBranchInstructions(); bb.recomputeNormalOut(ir); didSomething = true; | public static boolean simplify(OPT_BasicBlock bb, OPT_IR ir) { boolean didSomething = false; for (OPT_InstructionEnumeration branches = bb.enumerateBranchInstructions(); branches.hasMoreElements();) { OPT_Instruction s = branches.next(); if (Goto.conforms(s)) { // nothing to do, but a common case so test first } else if (IfCmp.conforms(s)) { OPT_RegisterOperand guard = IfCmp.getGuardResult (s); OPT_Operand val1 = IfCmp.getVal1(s); OPT_Operand val2 = IfCmp.getVal2(s); { int cond = IfCmp.getCond(s).evaluate(val1, val2); if (cond != OPT_ConditionOperand.UNKNOWN) { // constant fold if (cond == OPT_ConditionOperand.TRUE) { // branch taken insertTrueGuard (s, guard); Goto.mutate(s, GOTO, IfCmp.getTarget(s)); removeBranchesAfterGotos(bb); } else { // branch not taken insertTrueGuard (s, guard); s.remove(); } // hack. Just start over since Enumeration has changed. branches = bb.enumerateBranchInstructions(); bb.recomputeNormalOut(ir); didSomething = true; continue; } } if (val1.isConstant() && !val2.isConstant()) { // Canonicalize by making second argument the constant IfCmp.setVal1(s, val2); IfCmp.setVal2(s, val1); IfCmp.setCond(s, IfCmp.getCond(s).flipOperands()); } if (val2.isIntConstant()) { // Tricks to get compare against zero. int value = ((OPT_IntConstantOperand)val2).value; OPT_ConditionOperand cond = IfCmp.getCond(s); if (value == 1) { if (cond.isLESS()) { IfCmp.setCond(s, OPT_ConditionOperand.LESS_EQUAL()); IfCmp.setVal2(s, new OPT_IntConstantOperand(0)); } else if (cond.isGREATER_EQUAL()) { IfCmp.setCond(s, OPT_ConditionOperand.GREATER()); IfCmp.setVal2(s, new OPT_IntConstantOperand(0)); } } else if (value == -1) { if (cond.isGREATER()) { IfCmp.setCond(s, OPT_ConditionOperand.GREATER_EQUAL()); IfCmp.setVal2(s, new OPT_IntConstantOperand(0)); } else if (cond.isLESS_EQUAL()) { IfCmp.setCond(s, OPT_ConditionOperand.LESS()); IfCmp.setVal2(s, new OPT_IntConstantOperand(0)); } } } } else if (IfCmp2.conforms(s)) { OPT_RegisterOperand guard = IfCmp2.getGuardResult (s); OPT_Operand val1 = IfCmp2.getVal1(s); OPT_Operand val2 = IfCmp2.getVal2(s); int cond1 = IfCmp2.getCond1(s).evaluate(val1, val2); int cond2 = IfCmp2.getCond2(s).evaluate(val1, val2); if (cond1 == OPT_ConditionOperand.TRUE) { // target 1 taken insertTrueGuard (s, guard); Goto.mutate(s, GOTO, IfCmp2.getTarget1(s)); removeBranchesAfterGotos(bb); } else if ((cond1 == OPT_ConditionOperand.FALSE) && (cond2 == OPT_ConditionOperand.TRUE)) { // target 2 taken insertTrueGuard (s, guard); Goto.mutate(s, GOTO, IfCmp2.getTarget2(s)); removeBranchesAfterGotos(bb); } else if ((cond1 == OPT_ConditionOperand.FALSE) && (cond2 == OPT_ConditionOperand.FALSE)) { // not taken insertTrueGuard (s, guard); s.remove(); } else if ((cond1 == OPT_ConditionOperand.FALSE) && (cond2 == OPT_ConditionOperand.UNKNOWN)) { // target 1 not taken, simplify test to ifcmp IfCmp.mutate(s, INT_IFCMP, guard, val1, val2, IfCmp2.getCond2(s), IfCmp2.getTarget2(s), IfCmp2.getBranchProfile2(s)); } else if ((cond1 == OPT_ConditionOperand.UNKNOWN) && (cond2 == OPT_ConditionOperand.FALSE)) { // target 1 taken possibly, simplify test to ifcmp IfCmp.mutate(s, INT_IFCMP, guard, val1, val2, IfCmp2.getCond1(s), IfCmp2.getTarget1(s), IfCmp2.getBranchProfile1(s)); } else if ((cond1 == OPT_ConditionOperand.UNKNOWN) && (cond2 == OPT_ConditionOperand.TRUE)) { // target 1 taken possibly, simplify first test to ifcmp and // insert goto after s.insertAfter(Goto.create(GOTO, IfCmp2.getTarget2(s))); IfCmp.mutate(s, INT_IFCMP, guard, val1, val2, IfCmp2.getCond1(s), IfCmp2.getTarget1(s), IfCmp2.getBranchProfile1(s)); removeBranchesAfterGotos(bb); } else { if (val1.isConstant() && !val2.isConstant()) { // Canonicalize by making second argument the constant IfCmp2.setVal1(s, val2); IfCmp2.setVal2(s, val1); IfCmp2.setCond1(s, IfCmp2.getCond1(s).flipOperands()); IfCmp2.setCond2(s, IfCmp2.getCond2(s).flipOperands()); } // we did no optimisation, just continue continue; } // hack. Just start over since Enumeration has changed. branches = bb.enumerateBranchInstructions(); bb.recomputeNormalOut(ir); didSomething = true; continue; } else if (LookupSwitch.conforms(s)) { OPT_Operand val = LookupSwitch.getValue(s); int numMatches = LookupSwitch.getNumberOfMatches(s); if (numMatches == 0) { // Can only goto default Goto.mutate(s, GOTO, LookupSwitch.getDefault(s)); } else if (val.isConstant()) { // lookup value is constant int value = ((OPT_IntConstantOperand)val).value; OPT_BranchOperand target = LookupSwitch.getDefault(s); for (int i=0; i<numMatches; i++) { if (value == LookupSwitch.getMatch(s, i).value) { target = LookupSwitch.getTarget(s, i); break; } } Goto.mutate(s, GOTO, target); } else if (numMatches == 1) { // only 1 match, simplify to ifcmp OPT_BranchOperand defaultTarget = LookupSwitch.getDefault(s); IfCmp.mutate(s, INT_IFCMP, ir.regpool.makeTempValidation(), val, LookupSwitch.getMatch(s, 0), OPT_ConditionOperand.EQUAL(), LookupSwitch.getTarget(s, 0), LookupSwitch.getBranchProfile(s, 0)); s.insertAfter(Goto.create(GOTO, defaultTarget)); } else { // no optimisation, just continue continue; } // hack. Just start over since Enumeration has changed. branches = bb.enumerateBranchInstructions(); removeBranchesAfterGotos(bb); bb.recomputeNormalOut(ir); didSomething = true; } else if (TableSwitch.conforms(s)) { OPT_Operand val = TableSwitch.getValue(s); int low = TableSwitch.getLow(s).value; int high = TableSwitch.getHigh(s).value; if (val.isConstant()) { int value = ((OPT_IntConstantOperand)val).value; OPT_BranchOperand target = TableSwitch.getDefault(s); if (value >= low && value <= high) { target = TableSwitch.getTarget(s, value - low); } Goto.mutate(s, GOTO, target); } else if (low == high) { // only 1 match, simplify to ifcmp OPT_BranchOperand defaultTarget = TableSwitch.getDefault(s); IfCmp.mutate(s, INT_IFCMP, ir.regpool.makeTempValidation(), val, new OPT_IntConstantOperand(low), OPT_ConditionOperand.EQUAL(), TableSwitch.getTarget(s, 0), TableSwitch.getBranchProfile(s, 0)); s.insertAfter(Goto.create(GOTO, defaultTarget)); } else { // no optimisation, just continue continue; } // hack. Just start over since Enumeration has changed. branches = bb.enumerateBranchInstructions(); removeBranchesAfterGotos(bb); bb.recomputeNormalOut(ir); didSomething = true; } else if (InlineGuard.conforms(s)) { OPT_Operand val = InlineGuard.getValue(s); if (val.isNullConstant()) { // branch not taken s.remove(); // hack. Just start over since Enumeration has changed. branches = bb.enumerateBranchInstructions(); bb.recomputeNormalOut(ir); didSomething = true; continue; } else if (val.isStringConstant()) { // TODO: VM.sysWrite("TODO: should constant fold MethodIfCmp on StringConstant"); } } } return didSomething; } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/22e2864430a26b6dac19290829642bda5f48cb23/OPT_BranchSimplifier.java/buggy/rvm/src/com/ibm/jikesrvm/opt/OPT_BranchSimplifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
16499,
12,
15620,
67,
8252,
1768,
7129,
16,
16456,
67,
7937,
9482,
13,
288,
565,
1250,
5061,
24332,
273,
629,
31,
565,
364,
261,
15620,
67,
11983,
21847,
11483,
273,
5411,
7129,
18,
7924,
12600,
7108,
26712,
5621,
11483,
18,
5332,
7417,
3471,
5621,
13,
288,
1377,
16456,
67,
11983,
272,
273,
11483,
18,
4285,
5621,
1377,
309,
261,
43,
6302,
18,
591,
9741,
12,
87,
3719,
288,
3639,
368,
5083,
358,
741,
16,
1496,
279,
2975,
648,
1427,
1842,
1122,
1377,
289,
469,
309,
261,
2047,
31832,
18,
591,
9741,
12,
87,
3719,
288,
3639,
16456,
67,
3996,
10265,
11026,
273,
971,
31832,
18,
588,
16709,
1253,
261,
87,
1769,
3639,
16456,
67,
10265,
1244,
21,
273,
971,
31832,
18,
588,
3053,
21,
12,
87,
1769,
1082,
225,
16456,
67,
10265,
1244,
22,
273,
971,
31832,
18,
588,
3053,
22,
12,
87,
1769,
1082,
225,
288,
9506,
509,
6941,
273,
971,
31832,
18,
588,
12441,
12,
87,
2934,
21024,
12,
1125,
21,
16,
1244,
22,
1769,
9506,
309,
261,
10013,
480,
16456,
67,
3418,
10265,
18,
14737,
13,
288,
9506,
202,
759,
5381,
11590,
9506,
202,
430,
261,
10013,
422,
16456,
67,
3418,
10265,
18,
18724,
13,
288,
225,
368,
3803,
9830,
6862,
225,
2243,
5510,
16709,
261,
87,
16,
11026,
1769,
6862,
225,
611,
6302,
18,
10735,
340,
12,
87,
16,
611,
27019,
16,
971,
31832,
18,
588,
2326,
12,
87,
10019,
6862,
225,
1206,
24246,
4436,
43,
12440,
12,
9897,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
16499,
12,
15620,
67,
8252,
1768,
7129,
16,
16456,
67,
7937,
9482,
13,
288,
565,
1250,
5061,
24332,
273,
629,
31,
565,
364,
261,
15620,
67,
11983,
21847,
11483,
273,
5411,
7129,
18,
7924,
12600,
7108,
26712,
5621,
11483,
18,
5332,
7417,
3471,
5621,
13,
288,
1377,
16456,
67,
11983,
272,
273,
11483,
18,
4285,
5621,
1377,
309,
261,
43,
6302,
18,
591,
9741,
12,
87,
3719,
288,
3639,
368,
5083,
358,
741,
16,
1496,
279,
2975,
648,
1427,
1842,
1122,
1377,
289,
469,
309,
261,
2047,
31832,
18,
591,
9741,
12,
87,
3719,
288,
3639,
16456,
67,
3996,
10265,
11026,
273,
971,
31832,
18,
588,
16709,
1253,
261,
87,
1769,
3639,
16456,
67,
10265,
2
] |
public SymbolTablePrinter printDefinedSymbolName(Symbol symbol, Symbol user, boolean addLink) { Name name = symbol.name; if (!global.debug) name = NameTransformer.decode(name); String s = name.toString(); if (htmlGenerator.isReferenced(symbol)) if (addLink) htmlGenerator.page.printAhref(htmlGenerator.ref(symbol), s); else htmlGenerator.page.printBold(s); else htmlGenerator.page.print(s); | public SymbolTablePrinter printDefinedSymbolName(Symbol symbol, boolean addLink) { htmlGenerator.printSymbol(symbol, addLink); | public SymbolTablePrinter printDefinedSymbolName(Symbol symbol, Symbol user, boolean addLink) { Name name = symbol.name; if (!global.debug) name = NameTransformer.decode(name); String s = name.toString(); if (htmlGenerator.isReferenced(symbol)) if (addLink) htmlGenerator.page.printAhref(htmlGenerator.ref(symbol), s); else htmlGenerator.page.printBold(s); else htmlGenerator.page.print(s); printSymbolUniqueId(symbol); return this; } | 9617 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9617/ce3042f16f76a68cc0e6a6ef34786b8035441805/SymbolTablePrinter.java/clean/sources/scala/tools/scaladoc/SymbolTablePrinter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8565,
1388,
12149,
1172,
8116,
5335,
461,
12,
5335,
3273,
16,
8565,
729,
16,
1250,
527,
2098,
13,
288,
3639,
1770,
508,
273,
3273,
18,
529,
31,
3639,
309,
16051,
6347,
18,
4148,
13,
508,
273,
1770,
8319,
18,
3922,
12,
529,
1769,
3639,
514,
272,
273,
508,
18,
10492,
5621,
3639,
309,
261,
2620,
3908,
18,
291,
22344,
12,
7175,
3719,
5411,
309,
261,
1289,
2098,
13,
7734,
1729,
3908,
18,
2433,
18,
1188,
37,
7547,
12,
2620,
3908,
18,
1734,
12,
7175,
3631,
272,
1769,
5411,
469,
202,
3639,
1729,
3908,
18,
2433,
18,
1188,
38,
1673,
12,
87,
1769,
202,
12107,
202,
565,
1729,
3908,
18,
2433,
18,
1188,
12,
87,
1769,
3639,
1172,
5335,
24174,
12,
7175,
1769,
3639,
327,
333,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
8565,
1388,
12149,
1172,
8116,
5335,
461,
12,
5335,
3273,
16,
8565,
729,
16,
1250,
527,
2098,
13,
288,
3639,
1770,
508,
273,
3273,
18,
529,
31,
3639,
309,
16051,
6347,
18,
4148,
13,
508,
273,
1770,
8319,
18,
3922,
12,
529,
1769,
3639,
514,
272,
273,
508,
18,
10492,
5621,
3639,
309,
261,
2620,
3908,
18,
291,
22344,
12,
7175,
3719,
5411,
309,
261,
1289,
2098,
13,
7734,
1729,
3908,
18,
2433,
18,
1188,
37,
7547,
12,
2620,
3908,
18,
1734,
12,
7175,
3631,
272,
1769,
5411,
469,
202,
3639,
1729,
3908,
18,
2433,
18,
1188,
38,
1673,
12,
87,
1769,
202,
12107,
202,
565,
1729,
3908,
18,
2433,
18,
1188,
12,
87,
1769,
3639,
1172,
2
] |
System.err.println("Invalid line: " + comment); | System.err.println("Invalid line " + m_lineNumber + ": " + comment); | private void handleComment(String comment) { comment = comment.trim(); if (m_propertiesRead) { String[] array = comment.split("\\t"); for (int i = 0; i < array.length; ++i) addColumnTitle(array[i]); return; } if (comment.equals("")) { m_propertiesRead = true; return; } int pos = comment.indexOf(':'); if (pos < 0) { System.err.println("Invalid line: " + comment); return; } String key = comment.substring(0, pos).trim(); String value = comment.substring(pos + 1).trim(); setProperty(key, value); } | 2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/361c452c94d3666a3ddf286fd37c40002dbd5f77/Table.java/buggy/src/net/sf/gogui/utils/Table.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1640,
4469,
12,
780,
2879,
13,
565,
288,
3639,
2879,
273,
2879,
18,
5290,
5621,
3639,
309,
261,
81,
67,
4738,
1994,
13,
3639,
288,
5411,
514,
8526,
526,
273,
2879,
18,
4939,
2932,
1695,
88,
8863,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
526,
18,
2469,
31,
965,
77,
13,
7734,
10871,
4247,
12,
1126,
63,
77,
19226,
5411,
327,
31,
3639,
289,
3639,
309,
261,
3469,
18,
14963,
2932,
6,
3719,
3639,
288,
5411,
312,
67,
4738,
1994,
273,
638,
31,
5411,
327,
31,
3639,
289,
3639,
509,
949,
273,
2879,
18,
31806,
2668,
2497,
1769,
3639,
309,
261,
917,
411,
374,
13,
3639,
288,
5411,
2332,
18,
370,
18,
8222,
2932,
1941,
980,
315,
397,
312,
67,
1369,
1854,
397,
6398,
315,
397,
2879,
1769,
5411,
327,
31,
3639,
289,
3639,
514,
498,
273,
2879,
18,
28023,
12,
20,
16,
949,
2934,
5290,
5621,
3639,
514,
460,
273,
2879,
18,
28023,
12,
917,
397,
404,
2934,
5290,
5621,
3639,
7486,
12,
856,
16,
460,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1640,
4469,
12,
780,
2879,
13,
565,
288,
3639,
2879,
273,
2879,
18,
5290,
5621,
3639,
309,
261,
81,
67,
4738,
1994,
13,
3639,
288,
5411,
514,
8526,
526,
273,
2879,
18,
4939,
2932,
1695,
88,
8863,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
526,
18,
2469,
31,
965,
77,
13,
7734,
10871,
4247,
12,
1126,
63,
77,
19226,
5411,
327,
31,
3639,
289,
3639,
309,
261,
3469,
18,
14963,
2932,
6,
3719,
3639,
288,
5411,
312,
67,
4738,
1994,
273,
638,
31,
5411,
327,
31,
3639,
289,
3639,
509,
949,
273,
2879,
18,
31806,
2668,
2497,
1769,
3639,
309,
261,
917,
411,
374,
13,
3639,
288,
5411,
2332,
18,
370,
18,
8222,
2
] |
PUSH_CREF(module); | public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; // frame = ruby_frame; // frame.tmp(ruby_frame); // ruby_frame = frame; // PUSH_CLASS(); ruby_class = module; // PUSH_SCOPE(); RubyVarmap.push(ruby); 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.setLocalTbl(node.nd_tbl()); } else { getRuby().rubyScope.setLocalVars(null); getRuby().rubyScope.setLocalTbl(null); } // PUSH_CREF(module); rubyFrame.setCbase((VALUE)ruby_cref); // PUSH_TAG(PROT_NONE); RubyObject result = null; // if (( state = EXEC_TAG()) == 0 ) { // if (trace_func) { // call_trace_func("class", file, line, ruby_class, // ruby_frame->last_func, ruby_frame->last_class ); // } result = eval(ruby_class, node.nd_next()); // } // POP_TAG(); // POP_CREF(); RubyVarmap.pop(ruby); // POP_SCOPE(); // POP_CLASS(); // ruby_frame = frame.tmp;// if (trace_func) {// call_trace_func("end", file, line, 0, ruby_frame->last_func, ruby_frame->last_class );// } // if (state != 0) { // JUMP_TAG(state); // } return result; } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/buggy/org/jruby/interpreter/RubyInterpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
1071,
30348,
67,
5458,
42,
12,
2978,
1769,
19817,
921,
30348,
67,
5458,
42,
12,
2978,
1769,
3875,
3120,
12,
54,
10340,
3120,
30348,
67,
5458,
42,
12,
2978,
1769,
1605,
16,
30348,
67,
5458,
42,
12,
2978,
1769,
11922,
30348,
67,
5458,
42,
12,
2978,
1769,
290,
13,
30348,
67,
5458,
42,
12,
2978,
1769,
288,
30348,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
11922,
30348,
67,
5458,
42,
12,
2978,
1769,
756,
30348,
67,
5458,
42,
12,
2978,
1769,
273,
30348,
67,
5458,
42,
12,
2978,
1769,
290,
31,
30348,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
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,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
1071,
30348,
67,
5458,
42,
12,
2978,
1769,
19817,
921,
30348,
67,
5458,
42,
12,
2978,
1769,
3875,
3120,
12,
54,
10340,
3120,
30348,
67,
5458,
42,
12,
2978,
1769,
1605,
16,
30348,
67,
5458,
42,
12,
2978,
1769,
11922,
30348,
67,
5458,
42,
12,
2978,
1769,
290,
13,
30348,
67,
5458,
42,
12,
2978,
1769,
288,
30348,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
2
] |
|
stopRestartChecker(); if (moveTargetNode != null) { if (log.isInfoEnabled()) { log.info("Updating topology entry to \"moving\""); } int topologyType = ((getMessageAddress().equals(localNode)) ? (TopologyEntry.NODE_AGENT_TYPE) : (TopologyEntry.AGENT_TYPE)); myTopologyWriterService.updateAgent( getIdentifier(), topologyType, incarnation, moveId, TopologyEntry.MOVING, moveId); } else { if (log.isInfoEnabled()) { log.info("Removing topology entry"); } myTopologyWriterService.removeAgent(getIdentifier()); } | suspendTopology(); | public void suspend() { super.suspend(); if (log.isInfoEnabled()) { log.info("Suspending"); } // suspend all children if (log.isInfoEnabled()) { log.info("Recursively suspending all child components"); } List childBinders = listBinders(); for (int i = childBinders.size() - 1; i >= 0; i--) { Binder b = (Binder) childBinders.get(i); b.suspend(); } if (log.isInfoEnabled()) { log.info("Suspending scheduler"); } // FIXME bug 989: cancel all alarms stopRestartChecker(); // update the topology if (moveTargetNode != null) { if (log.isInfoEnabled()) { log.info("Updating topology entry to \"moving\""); } int topologyType = ((getMessageAddress().equals(localNode)) ? (TopologyEntry.NODE_AGENT_TYPE) : (TopologyEntry.AGENT_TYPE)); myTopologyWriterService.updateAgent( getIdentifier(), topologyType, incarnation, moveId, TopologyEntry.MOVING, moveId); } else { if (log.isInfoEnabled()) { log.info("Removing topology entry"); } myTopologyWriterService.removeAgent(getIdentifier()); } // shutdown the MTS if (log.isInfoEnabled()) { log.info("Shutting down message transport"); } if (messenger != null) { messenger.unregisterClient(mtsClientAdapter); } stopQueueHandler(); if (messenger != null) { // flush outgoing messages, block further input. // get a list of unsent messages. unsentMessages = messenger.flushMessages(); // get MTS-internal state for this agent mtsState = messenger.getAgentState(); // release messenger, remove agent name-server entry. getServiceBroker().releaseService( mtsClientAdapter, MessageTransportService.class, messenger); messenger = null; } if (moveTargetNode != null) { // moving, delay identity transfer until after getState() if (log.isInfoEnabled()) { log.info( "Postponing identity transfer to node "+ moveTargetNode); } } else { // non-moving suspend? if (log.isInfoEnabled()) { log.info("Releasing identity"); } myAgentIdService.release(); } if (log.isInfoEnabled()) { log.info("Suspended"); } } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/8729b3a6f3d460efa8689b553a1c50c319f619b6/SimpleAgent.java/buggy/core/src/org/cougaar/core/agent/SimpleAgent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
20413,
1435,
288,
565,
2240,
18,
87,
18815,
5621,
565,
309,
261,
1330,
18,
291,
966,
1526,
10756,
288,
1377,
613,
18,
1376,
2932,
55,
407,
9561,
8863,
565,
289,
565,
368,
20413,
777,
2325,
565,
309,
261,
1330,
18,
291,
966,
1526,
10756,
288,
1377,
613,
18,
1376,
2932,
12474,
11375,
9561,
777,
1151,
4085,
8863,
565,
289,
565,
987,
1151,
3357,
414,
273,
666,
3357,
414,
5621,
565,
364,
261,
474,
277,
273,
1151,
3357,
414,
18,
1467,
1435,
300,
404,
31,
277,
1545,
374,
31,
277,
413,
13,
288,
1377,
6936,
264,
324,
273,
261,
17700,
13,
1151,
3357,
414,
18,
588,
12,
77,
1769,
1377,
324,
18,
87,
18815,
5621,
565,
289,
565,
309,
261,
1330,
18,
291,
966,
1526,
10756,
288,
1377,
613,
18,
1376,
2932,
55,
407,
9561,
8129,
8863,
565,
289,
565,
368,
9852,
7934,
2468,
6675,
30,
3755,
777,
524,
20452,
565,
2132,
15057,
8847,
5621,
565,
368,
1089,
326,
9442,
377,
309,
261,
8501,
2326,
907,
480,
446,
13,
288,
1377,
309,
261,
1330,
18,
291,
966,
1526,
10756,
288,
3639,
613,
18,
1376,
2932,
17858,
9442,
1241,
358,
1239,
81,
13767,
8530,
1769,
1377,
289,
1377,
509,
9442,
559,
273,
540,
14015,
24906,
1887,
7675,
14963,
12,
3729,
907,
3719,
692,
540,
261,
18618,
1622,
18,
8744,
67,
15005,
67,
2399,
13,
294,
540,
261,
18618,
1622,
18,
15005,
67,
2399,
10019,
1377,
3399,
18618,
2289,
1179,
18,
2725,
3630,
12,
1850,
9650,
9334,
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,
20413,
1435,
288,
565,
2240,
18,
87,
18815,
5621,
565,
309,
261,
1330,
18,
291,
966,
1526,
10756,
288,
1377,
613,
18,
1376,
2932,
55,
407,
9561,
8863,
565,
289,
565,
368,
20413,
777,
2325,
565,
309,
261,
1330,
18,
291,
966,
1526,
10756,
288,
1377,
613,
18,
1376,
2932,
12474,
11375,
9561,
777,
1151,
4085,
8863,
565,
289,
565,
987,
1151,
3357,
414,
273,
666,
3357,
414,
5621,
565,
364,
261,
474,
277,
273,
1151,
3357,
414,
18,
1467,
1435,
300,
404,
31,
277,
1545,
374,
31,
277,
413,
13,
288,
1377,
6936,
264,
324,
273,
261,
17700,
13,
1151,
3357,
414,
18,
588,
12,
77,
1769,
1377,
324,
18,
87,
18815,
5621,
565,
289,
2
] |
OPT_Operand offset = bc2ir.popInt(); | OPT_Operand offset = bc2ir.popAddress(); | static boolean generateMagic(OPT_BC2IR bc2ir, OPT_GenerationContext gc, VM_MethodReference meth) throws OPT_MagicNotImplementedException { if (gc.method.hasNoInlinePragma()) gc.allocFrame = true; // HACK: Don't schedule any bbs containing unsafe magics. // TODO: move this to individual magics that are unsafe. // -- igor 08/13/1999 bc2ir.markBBUnsafeForScheduling(); VM_Atom methodName = meth.getName(); boolean address = (meth.getType() == VM_TypeReference.Address); // Address magic VM_TypeReference[] types = meth.getParameterTypes(); VM_TypeReference returnType = meth.getReturnType(); if (address && isLoad(methodName)) { // LOAD OPT_Operand offset = (types.length == 0) ? new OPT_IntConstantOperand(0) : bc2ir.pop(); OPT_Operand base = bc2ir.popAddress(); OPT_RegisterOperand result = gc.temps.makeTemp(returnType); bc2ir.appendInstruction(Load.create(getOperator(returnType, LOAD_OP), result, base, offset, null)); bc2ir.push(result.copyD2U(), returnType); } else if (address && isPrepare(methodName)) { // PREPARE OPT_Operand offset = (types.length == 0) ? new OPT_IntConstantOperand(0) : bc2ir.pop(); OPT_Operand base = bc2ir.popAddress(); OPT_RegisterOperand result = gc.temps.makeTemp(returnType); bc2ir.appendInstruction( Prepare.create(getOperator(returnType, PREPARE_OP), result, base, offset, null)); bc2ir.push(result.copyD2U(), returnType); } else if (address && methodName == VM_MagicNames.attempt) { // ATTEMPT VM_TypeReference attemptType = types[0]; OPT_Operand offset = (types.length == 2) ? new OPT_IntConstantOperand(0) : bc2ir.pop(); OPT_Operand newVal = bc2ir.pop(); OPT_Operand oldVal = bc2ir.pop(); OPT_Operand base = bc2ir.popAddress(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction( Attempt.create(getOperator(attemptType, ATTEMPT_OP), test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U(), returnType); } else if (address && methodName == VM_MagicNames.store) { // STORE VM_TypeReference storeType = types[0]; OPT_Operand offset = (types.length == 1) ? new OPT_IntConstantOperand(0) : bc2ir.pop(); OPT_Operand val = bc2ir.pop(); OPT_Operand base = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(getOperator(storeType, STORE_OP), val, base, offset, null)); } else if (methodName == VM_MagicNames.getProcessorRegister) { OPT_RegisterOperand rop = gc.temps.makePROp(); bc2ir.markGuardlessNonNull(rop); bc2ir.push(rop); } else if (methodName == VM_MagicNames.setProcessorRegister) { OPT_Operand val = bc2ir.popRef(); if (val instanceof OPT_RegisterOperand) { bc2ir.appendInstruction(Move.create(REF_MOVE, gc.temps.makePROp(), val)); } else { String msg = " Unexpected operand VM_Magic.setProcessorRegister"; throw OPT_MagicNotImplementedException.UNEXPECTED(msg); } } else if (methodName == VM_MagicNames.addressArrayCreate) { OPT_Instruction s = bc2ir.generateAnewarray(meth.getType().getArrayElementType()); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.addressArrayLength) { OPT_Operand op1 = bc2ir.pop(); bc2ir.clearCurrentGuard(); if (bc2ir.do_NullCheck(op1)) return true; OPT_RegisterOperand t = gc.temps.makeTempInt(); OPT_Instruction s = GuardedUnary.create(ARRAYLENGTH, t, op1, bc2ir.getCurrentGuard()); bc2ir.push(t.copyD2U()); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.addressArrayGet) { VM_TypeReference elementType = meth.getType().getArrayElementType(); OPT_Operand index = bc2ir.popInt(); OPT_Operand ref = bc2ir.popRef(); OPT_RegisterOperand offset = gc.temps.makeTempInt(); OPT_RegisterOperand result; if (meth.getType().isCodeArrayType()) { if (VM.BuildForIA32) { result = gc.temps.makeTemp(VM_TypeReference.Byte); bc2ir.appendInstruction(Load.create(BYTE_LOAD, result, ref, index, new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } else if (VM.BuildForPowerPC) { result = gc.temps.makeTemp(VM_TypeReference.Int); bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_INT))); bc2ir.appendInstruction(Load.create(INT_LOAD, result, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } } else { result = gc.temps.makeTemp(elementType); bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_ADDRESS))); bc2ir.appendInstruction(Load.create(REF_LOAD, result, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } bc2ir.push(result.copyD2U()); } else if (methodName == VM_MagicNames.addressArraySet) { VM_TypeReference elementType = meth.getType().getArrayElementType(); OPT_Operand val = bc2ir.pop(); OPT_Operand index = bc2ir.popInt(); OPT_Operand ref = bc2ir.popRef(); OPT_RegisterOperand offset = gc.temps.makeTempInt(); if (meth.getType().isCodeArrayType()) { if (VM.BuildForIA32) { bc2ir.appendInstruction(Store.create(BYTE_STORE, val, ref, index, new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } else if (VM.BuildForPowerPC) { bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_INT))); bc2ir.appendInstruction(Store.create(INT_STORE, val, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } } else { bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_ADDRESS))); bc2ir.appendInstruction(Store.create(REF_STORE, val, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } } else if (methodName == VM_MagicNames.getIntAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Load.create(INT_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setIntAtOffset) { OPT_Operand val = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(INT_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getWordAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Word); bc2ir.appendInstruction(Load.create(REF_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setWordAtOffset) { OPT_Operand val = bc2ir.popRef(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(REF_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getLongAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempLong(); bc2ir.appendInstruction(Load.create(LONG_LOAD, val, object, offset, null)); bc2ir.pushDual(val.copyD2U()); } else if (methodName == VM_MagicNames.setLongAtOffset) { OPT_Operand val = bc2ir.popLong(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(LONG_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getDoubleAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempDouble(); bc2ir.appendInstruction(Load.create(DOUBLE_LOAD, val, object, offset, null)); bc2ir.pushDual(val.copyD2U()); } else if (methodName == VM_MagicNames.setDoubleAtOffset) { OPT_Operand val = bc2ir.popDouble(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(DOUBLE_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getObjectAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.appendInstruction(Load.create(REF_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getObjectArrayAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); bc2ir.appendInstruction(Load.create(REF_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setObjectAtOffset) { OPT_LocationOperand loc = null; if (meth.getParameterTypes().length == 4) { loc = mapToMetadata(bc2ir.popInt()); } OPT_Operand val = bc2ir.popRef(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(REF_STORE, val, object, offset, loc)); } else if (methodName == VM_MagicNames.getByteAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Byte); bc2ir.appendInstruction(Load.create(BYTE_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setByteAtOffset) { OPT_Operand val = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(BYTE_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getCharAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Char); bc2ir.appendInstruction(Load.create(USHORT_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setCharAtOffset) { OPT_Operand val = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(SHORT_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getMemoryInt) { OPT_Operand memAddr = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Load.create(INT_LOAD, val, memAddr, new OPT_IntConstantOperand(0), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getMemoryWord) { OPT_Operand memAddr = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Word); bc2ir.appendInstruction(Load.create(REF_LOAD, val, memAddr, new OPT_IntConstantOperand(0), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getMemoryAddress) { OPT_Operand memAddr = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Load.create(REF_LOAD, val, memAddr, new OPT_IntConstantOperand(0), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setMemoryInt) { OPT_Operand val = bc2ir.popInt(); OPT_Operand memAddr = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(INT_STORE, val, memAddr, new OPT_IntConstantOperand(0), null)); } else if (methodName == VM_MagicNames.setMemoryWord) { OPT_Operand val = bc2ir.popRef(); OPT_Operand memAddr = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(REF_STORE, val, memAddr, new OPT_IntConstantOperand(0), null)); } else if (methodName == VM_MagicNames.setMemoryAddress) { OPT_LocationOperand loc = null; if (meth.getParameterTypes().length == 3) { loc = mapToMetadata(bc2ir.popInt()); } OPT_Operand val = bc2ir.popRef(); OPT_Operand memAddr = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(REF_STORE, val, memAddr, new OPT_IntConstantOperand(0), loc)); } else if (meth.getType() == VM_TypeReference.SysCall) { // All methods of VM_SysCall have the following signature: // callNAME(Address code, <var args to pass via native calling convention>) VM_TypeReference[] args = meth.getParameterTypes(); int numArgs = args.length; VM_Field ip = VM_Entrypoints.getSysCallField(meth.getName().toString()); OPT_MethodOperand mo = OPT_MethodOperand.STATIC(ip); OPT_Instruction call = Call.create(SYSCALL, null, null, mo, null, args.length); for (int i = args.length-1; i >= 0; i--) { Call.setParam(call, i, bc2ir.pop(args[i])); } if (!returnType.isVoidType()) { OPT_RegisterOperand op0 = gc.temps.makeTemp(returnType); Call.setResult(call, op0); bc2ir.push(op0.copyD2U(), returnType); } bc2ir.appendInstruction(call); } else if (methodName == VM_MagicNames.threadAsCollectorThread) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_BootstrapClassLoader.getBootstrapClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_CollectorThread;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsType) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.VM_Type); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsThread) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_BootstrapClassLoader.getBootstrapClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_Thread;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsProcessor) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.VM_Processor); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsAddress) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsObject) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsObjectArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsType) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.VM_Type); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsThread) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_BootstrapClassLoader.getBootstrapClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_Thread;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsRegisters) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_BootstrapClassLoader.getBootstrapClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_Registers;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsByteArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.ByteArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsIntArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.IntArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsByteArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.ByteArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsShortArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.ShortArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsIntArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.IntArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsStack) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.IntArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.floatAsIntBits) { OPT_Operand val = bc2ir.popFloat(); OPT_RegisterOperand op0 = gc.temps.makeTempInt(); bc2ir.appendInstruction(Unary.create(FLOAT_AS_INT_BITS, op0, val)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.intBitsAsFloat) { OPT_Operand val = bc2ir.popInt(); OPT_RegisterOperand op0 = gc.temps.makeTempFloat(); bc2ir.appendInstruction(Unary.create(INT_BITS_AS_FLOAT, op0, val)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.doubleAsLongBits) { OPT_Operand val = bc2ir.popDouble(); OPT_RegisterOperand op0 = gc.temps.makeTempLong(); bc2ir.appendInstruction(Unary.create(DOUBLE_AS_LONG_BITS, op0, val)); bc2ir.pushDual(op0.copyD2U()); } else if (methodName == VM_MagicNames.longBitsAsDouble) { OPT_Operand val = bc2ir.popLong(); OPT_RegisterOperand op0 = gc.temps.makeTempDouble(); bc2ir.appendInstruction(Unary.create(LONG_BITS_AS_DOUBLE, op0, val)); bc2ir.pushDual(op0.copyD2U()); } else if (methodName == VM_MagicNames.getObjectType) { OPT_Operand val = bc2ir.popRef(); OPT_Operand guard = bc2ir.getGuard(val); if (guard == null) { // it's magic, so assume that it's OK.... guard = new OPT_TrueGuardOperand(); } OPT_RegisterOperand tibPtr = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); bc2ir.appendInstruction(GuardedUnary.create(GET_OBJ_TIB, tibPtr, val, guard)); OPT_RegisterOperand op0; VM_TypeReference argType = val.getType(); if (argType.isArrayType()) { op0 = gc.temps.makeTemp(VM_TypeReference.VM_Array); } else { if (argType == VM_TypeReference.JavaLangObject || argType == VM_TypeReference.JavaLangCloneable || argType == VM_TypeReference.JavaIoSerializable) { // could be an array or a class, so make op0 be a VM_Type op0 = gc.temps.makeTemp(VM_TypeReference.VM_Type); } else { op0 = gc.temps.makeTemp(VM_TypeReference.VM_Class); } } bc2ir.markGuardlessNonNull(op0); bc2ir.appendInstruction(Unary.create(GET_TYPE_FROM_TIB, op0, tibPtr.copyD2U())); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.getArrayLength) { OPT_Operand val = bc2ir.popRef(); OPT_RegisterOperand op0 = gc.temps.makeTempInt(); bc2ir.appendInstruction(GuardedUnary.create(ARRAYLENGTH, op0, val, new OPT_TrueGuardOperand())); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.invokeClassInitializer) { OPT_Instruction s = Call.create0(CALL, null, bc2ir.popRef(), null); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.invokeMain) { OPT_Operand code = bc2ir.popRef(); OPT_Operand args = bc2ir.popRef(); bc2ir.appendInstruction(Call.create1(CALL, null, code, null, args)); } else if ((methodName == VM_MagicNames.invokeMethodReturningObject) || (methodName == VM_MagicNames.invokeMethodReturningVoid) || (methodName == VM_MagicNames.invokeMethodReturningLong) || (methodName == VM_MagicNames.invokeMethodReturningDouble) || (methodName == VM_MagicNames.invokeMethodReturningFloat) || (methodName == VM_MagicNames.invokeMethodReturningInt)) { OPT_Operand spills = bc2ir.popRef(); OPT_Operand fprs = bc2ir.popRef(); OPT_Operand gprs = bc2ir.popRef(); OPT_Operand code = bc2ir.popRef(); OPT_RegisterOperand res = null; if (methodName == VM_MagicNames.invokeMethodReturningObject) { res = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.push(res.copyD2U()); } else if (methodName == VM_MagicNames.invokeMethodReturningLong) { res = gc.temps.makeTemp(VM_TypeReference.Long); bc2ir.push(res.copyD2U(), VM_TypeReference.Long); } else if (methodName == VM_MagicNames.invokeMethodReturningDouble) { res = gc.temps.makeTempDouble(); bc2ir.push(res.copyD2U(), VM_TypeReference.Double); } else if (methodName == VM_MagicNames.invokeMethodReturningFloat) { res = gc.temps.makeTempFloat(); bc2ir.push(res.copyD2U(), VM_TypeReference.Float); } else if (methodName == VM_MagicNames.invokeMethodReturningInt) { res = gc.temps.makeTempInt(); bc2ir.push(res.copyD2U()); } VM_Field target = VM_Entrypoints.reflectiveMethodInvokerInstructionsField; OPT_MethodOperand met = OPT_MethodOperand.STATIC(target); OPT_Instruction s = Call.create4(CALL, res, new OPT_IntConstantOperand(target.getOffset()), met, code, gprs, fprs, spills); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.saveThreadState) { OPT_Operand p1 = bc2ir.popRef(); VM_Field target = VM_Entrypoints.saveThreadStateInstructionsField; OPT_MethodOperand mo = OPT_MethodOperand.STATIC(target); bc2ir.appendInstruction(Call.create1(CALL, null, new OPT_IntConstantOperand(target.getOffset()), mo, p1)); } else if (methodName == VM_MagicNames.threadSwitch) { OPT_Operand p2 = bc2ir.popRef(); OPT_Operand p1 = bc2ir.popRef(); VM_Field target = VM_Entrypoints.threadSwitchInstructionsField; OPT_MethodOperand mo = OPT_MethodOperand.STATIC(target); bc2ir.appendInstruction(Call.create2(CALL, null, new OPT_IntConstantOperand(target.getOffset()), mo, p1, p2)); } else if (methodName == VM_MagicNames.restoreHardwareExceptionState) { VM_Field target = VM_Entrypoints.restoreHardwareExceptionStateInstructionsField; OPT_MethodOperand mo = OPT_MethodOperand.STATIC(target); bc2ir.appendInstruction(Call.create1(CALL, null, new OPT_IntConstantOperand(target.getOffset()), mo, bc2ir.popRef())); } else if (methodName == VM_MagicNames.prepareInt) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Prepare.create(PREPARE_INT, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.prepareObject) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.appendInstruction(Prepare.create(PREPARE_ADDR, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.prepareAddress) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Prepare.create(PREPARE_ADDR, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.prepareWord) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Word); bc2ir.appendInstruction(Prepare.create(PREPARE_ADDR, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.attemptInt) { OPT_Operand newVal = bc2ir.popInt(); OPT_Operand oldVal = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT_INT, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (methodName == VM_MagicNames.attemptObject) { OPT_Operand newVal = bc2ir.popRef(); OPT_Operand oldVal = bc2ir.popRef(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT_ADDR, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (methodName == VM_MagicNames.attemptAddress) { OPT_Operand newVal = bc2ir.popAddress(); OPT_Operand oldVal = bc2ir.popAddress(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT_ADDR, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (methodName == VM_MagicNames.attemptWord) { OPT_Operand newVal = bc2ir.pop(); OPT_Operand oldVal = bc2ir.pop(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT_ADDR, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (generatePolymorphicMagic(bc2ir, gc, meth, methodName)) { return true; } else if (methodName == VM_MagicNames.getTimeBase) { OPT_RegisterOperand op0 = gc.temps.makeTempLong(); bc2ir.appendInstruction(Nullary.create(GET_TIME_BASE, op0)); bc2ir.pushDual(op0.copyD2U()); } else { // Wasn't machine-independent, so try the machine-dependent magics next. return OPT_GenerateMachineSpecificMagic.generateMagic(bc2ir, gc, meth); } return true; } // generateMagic | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/3a9aeeb7f964774e6adc285d6526603ac1570e14/OPT_GenerateMagic.java/clean/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_GenerateMagic.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1250,
2103,
19289,
12,
15620,
67,
16283,
22,
7937,
6533,
22,
481,
16,
27573,
16456,
67,
13842,
1042,
8859,
16,
27573,
8251,
67,
1305,
2404,
7917,
13,
1216,
16456,
67,
19289,
1248,
8644,
503,
288,
565,
309,
261,
13241,
18,
2039,
18,
5332,
2279,
10870,
2050,
9454,
10756,
8859,
18,
9853,
3219,
273,
638,
31,
3639,
368,
670,
3649,
30,
7615,
1404,
4788,
1281,
324,
2038,
4191,
7127,
4447,
2102,
18,
565,
368,
2660,
30,
3635,
333,
358,
7327,
4447,
2102,
716,
854,
7127,
18,
565,
368,
1493,
277,
3022,
16314,
19,
3437,
19,
21,
11984,
565,
6533,
22,
481,
18,
3355,
9676,
23912,
1290,
25401,
5621,
565,
8251,
67,
3641,
4918,
273,
7917,
18,
17994,
5621,
565,
1250,
1758,
273,
261,
27305,
18,
588,
559,
1435,
422,
8251,
67,
7534,
18,
1887,
1769,
565,
368,
5267,
8146,
565,
8251,
67,
7534,
8526,
1953,
273,
7917,
18,
588,
1662,
2016,
5621,
565,
8251,
67,
7534,
9424,
273,
7917,
18,
588,
9102,
5621,
377,
309,
261,
2867,
597,
353,
2563,
12,
2039,
461,
3719,
288,
1377,
368,
24089,
1377,
16456,
67,
10265,
1384,
273,
261,
2352,
18,
2469,
422,
374,
13,
3639,
692,
394,
16456,
67,
1702,
6902,
10265,
12,
20,
13,
3639,
294,
6533,
22,
481,
18,
5120,
5621,
1377,
16456,
67,
10265,
1026,
273,
6533,
22,
481,
18,
5120,
1887,
5621,
1377,
16456,
67,
3996,
10265,
563,
273,
8859,
18,
874,
1121,
18,
6540,
7185,
12,
2463,
559,
1769,
1377,
6533,
22,
481,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1250,
2103,
19289,
12,
15620,
67,
16283,
22,
7937,
6533,
22,
481,
16,
27573,
16456,
67,
13842,
1042,
8859,
16,
27573,
8251,
67,
1305,
2404,
7917,
13,
1216,
16456,
67,
19289,
1248,
8644,
503,
288,
565,
309,
261,
13241,
18,
2039,
18,
5332,
2279,
10870,
2050,
9454,
10756,
8859,
18,
9853,
3219,
273,
638,
31,
3639,
368,
670,
3649,
30,
7615,
1404,
4788,
1281,
324,
2038,
4191,
7127,
4447,
2102,
18,
565,
368,
2660,
30,
3635,
333,
358,
7327,
4447,
2102,
716,
854,
7127,
18,
565,
368,
1493,
277,
3022,
16314,
19,
3437,
19,
21,
11984,
565,
6533,
22,
481,
18,
3355,
9676,
23912,
1290,
25401,
5621,
565,
8251,
67,
3641,
4918,
273,
7917,
18,
17994,
5621,
2
] |
list = new Vector(Arrays.asList(items)); | list = new Vector(); | public DefaultComboBoxModel(Object[] items) { list = new Vector(Arrays.asList(items)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultComboBoxModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultComboBoxModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2989,
22199,
1488,
12,
921,
8526,
1516,
13,
225,
288,
565,
666,
273,
394,
5589,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2989,
22199,
1488,
12,
921,
8526,
1516,
13,
225,
288,
565,
666,
273,
394,
5589,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public Opponent( CakeArenaManager.ArenaOpponent opponent ) | public Opponent( ArenaOpponent opponent ) | public Opponent( CakeArenaManager.ArenaOpponent opponent ) { this.opponent = opponent; this.type = FamiliarsDatabase.getFamiliarId( opponent.getRace() ); this.weight = opponent.getWeight(); this.arena = FamiliarsDatabase.getFamiliarSkills( type ); } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/48e23fa5a7fa027aef257df583bf8de9b6558ff9/FamiliarTool.java/clean/src/net/sourceforge/kolmafia/FamiliarTool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
6066,
1029,
12,
385,
911,
37,
1187,
69,
1318,
18,
37,
1187,
69,
3817,
1029,
1061,
1029,
262,
202,
202,
95,
1082,
202,
2211,
18,
556,
1029,
273,
1061,
1029,
31,
1082,
202,
2211,
18,
723,
273,
478,
11580,
77,
5913,
4254,
18,
588,
42,
11580,
77,
297,
548,
12,
1061,
1029,
18,
588,
54,
623,
1435,
11272,
1082,
202,
2211,
18,
4865,
273,
1061,
1029,
18,
588,
6544,
5621,
1082,
202,
2211,
18,
834,
6582,
273,
478,
11580,
77,
5913,
4254,
18,
588,
42,
11580,
77,
297,
20057,
12,
618,
11272,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
6066,
1029,
12,
385,
911,
37,
1187,
69,
1318,
18,
37,
1187,
69,
3817,
1029,
1061,
1029,
262,
202,
202,
95,
1082,
202,
2211,
18,
556,
1029,
273,
1061,
1029,
31,
1082,
202,
2211,
18,
723,
273,
478,
11580,
77,
5913,
4254,
18,
588,
42,
11580,
77,
297,
548,
12,
1061,
1029,
18,
588,
54,
623,
1435,
11272,
1082,
202,
2211,
18,
4865,
273,
1061,
1029,
18,
588,
6544,
5621,
1082,
202,
2211,
18,
834,
6582,
273,
478,
11580,
77,
5913,
4254,
18,
588,
42,
11580,
77,
297,
20057,
12,
618,
11272,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public int hashCode() { return this.name.hashCode(); } | public int hashCode () { return name.hashCode () + inetAddresses.hashCode (); } | public int hashCode() { return this.name.hashCode(); } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/af503bb72418d994f4439910bc3989d556fcdbd5/NetworkInterface.java/buggy/libraries/javalib/java/net/NetworkInterface.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
13374,
1435,
565,
288,
202,
2463,
333,
18,
529,
18,
2816,
1085,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
509,
13374,
1435,
565,
288,
202,
2463,
333,
18,
529,
18,
2816,
1085,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(next == null) | if (next == null) | private void removeNodes(Iterator domIterator) { final Value next = (Value) domIterator.next(); if(next == null) return; final byte[] data = next.data(); final short type = Signatures.getType(data[next.start()]); switch (type) { case Node.ELEMENT_NODE : int children = ByteConversion.byteToInt(data, next.start() + 1); domIterator.remove(); for (int i = 0; i < children; i++) removeNodes(domIterator); break; default : domIterator.remove(); } } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/d31ac0d651739cc32d55579c14a0786f6bfb4200/NativeBroker.java/buggy/src/org/exist/storage/NativeBroker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1206,
3205,
12,
3198,
4092,
3198,
13,
288,
202,
202,
6385,
1445,
1024,
273,
261,
620,
13,
4092,
3198,
18,
4285,
5621,
202,
202,
430,
12,
4285,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
6385,
1160,
8526,
501,
273,
1024,
18,
892,
5621,
202,
202,
6385,
3025,
618,
273,
4383,
2790,
18,
588,
559,
12,
892,
63,
4285,
18,
1937,
1435,
19226,
202,
202,
9610,
261,
723,
13,
288,
1082,
202,
3593,
2029,
18,
10976,
67,
8744,
294,
9506,
202,
474,
2325,
273,
3506,
6814,
18,
7229,
17864,
12,
892,
16,
1024,
18,
1937,
1435,
397,
404,
1769,
9506,
202,
9859,
3198,
18,
4479,
5621,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2325,
31,
277,
27245,
6862,
202,
4479,
3205,
12,
9859,
3198,
1769,
9506,
202,
8820,
31,
1082,
202,
1886,
294,
9506,
202,
9859,
3198,
18,
4479,
5621,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1206,
3205,
12,
3198,
4092,
3198,
13,
288,
202,
202,
6385,
1445,
1024,
273,
261,
620,
13,
4092,
3198,
18,
4285,
5621,
202,
202,
430,
12,
4285,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
6385,
1160,
8526,
501,
273,
1024,
18,
892,
5621,
202,
202,
6385,
3025,
618,
273,
4383,
2790,
18,
588,
559,
12,
892,
63,
4285,
18,
1937,
1435,
19226,
202,
202,
9610,
261,
723,
13,
288,
1082,
202,
3593,
2029,
18,
10976,
67,
8744,
294,
9506,
202,
474,
2325,
273,
3506,
6814,
18,
7229,
17864,
12,
892,
16,
1024,
18,
1937,
1435,
397,
404,
1769,
9506,
202,
9859,
3198,
18,
4479,
5621,
9506,
202,
1884,
261,
474,
277,
273,
374,
2
] |
MylarTasklistPlugin.getTaskListManager().addRootTask(newTask); | MylarTaskListPlugin.getTaskListManager().addRootTask(newTask); | public void run() { boolean offline = MylarTasklistPlugin.getPrefs().getBoolean(MylarPlugin.WORK_OFFLINE); if(offline){ MessageDialog.openInformation(null, "Unable to create bug report", "Unable to create a new bug report since you are currently offline"); return; }// MylarPlugin.getDefault().actionObserved(this); NewBugWizard wizard= new NewBugWizard(true); Shell shell = Workbench.getInstance().getActiveWorkbenchWindow().getShell(); if (wizard != null && shell != null && !shell.isDisposed()) { WizardDialog dialog = new WizardDialog(shell, wizard); wizard.setForcePreviousAndNextButtons(true); dialog.create(); dialog.setTitle("New Bug Wizard"); dialog.setBlockOnOpen(true); if(dialog.open() == Dialog.CANCEL){ dialog.close(); return; } String bugIdString = wizard.getId(); int bugId = -1; try { if (bugIdString != null) { bugId = Integer.parseInt(bugIdString); } else { return; } } catch (NumberFormatException nfe) { // TODO handle error return; } BugzillaTask newTask = new BugzillaTask( BugzillaUiPlugin.getDefault().createBugHandleIdentifier(bugId), "<bugzilla info>", true, true); Object selectedObject = null; if(TaskListView.getDefault() != null) selectedObject = ((IStructuredSelection)TaskListView.getDefault().getViewer().getSelection()).getFirstElement(); ITaskHandler taskHandler = MylarTasklistPlugin.getDefault().getTaskHandlerForElement(newTask); if(taskHandler != null){ ITask addedTask = taskHandler.taskAdded(newTask); if(addedTask instanceof BugzillaTask){ BugzillaTask newTask2 = (BugzillaTask)addedTask; if(newTask2 != newTask){ newTask = newTask2; } } } if (selectedObject instanceof TaskCategory){ ((TaskCategory)selectedObject).addTask(newTask); } else { MylarTasklistPlugin.getTaskListManager().addRootTask(newTask); } BugzillaUiPlugin.getDefault().getBugzillaTaskListManager().addToBugzillaTaskRegistry((BugzillaTask)newTask); newTask.openTaskInEditor(false); if(!newTask.isBugDownloaded()) newTask.scheduleDownloadReport(); if(TaskListView.getDefault() != null) TaskListView.getDefault().getViewer().refresh(); } else { // TODO handle not good } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/c66e1abc548299095f0992ffd278426ba0fc3203/CreateNewBugzillaTaskAction.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/CreateNewBugzillaTaskAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
9506,
202,
6494,
13493,
273,
8005,
7901,
2174,
1098,
3773,
18,
588,
1386,
2556,
7675,
588,
5507,
12,
12062,
7901,
3773,
18,
10566,
67,
8797,
5997,
1769,
202,
202,
430,
12,
23787,
15329,
1082,
202,
1079,
6353,
18,
3190,
5369,
12,
2011,
16,
315,
3370,
358,
752,
7934,
2605,
3113,
315,
3370,
358,
752,
279,
394,
7934,
2605,
3241,
1846,
854,
4551,
13493,
8863,
1082,
202,
2463,
31,
202,
202,
97,
759,
3639,
8005,
7901,
3773,
18,
588,
1868,
7675,
1128,
9013,
2155,
12,
2211,
1769,
9506,
202,
1908,
19865,
27130,
24204,
33,
394,
1166,
19865,
27130,
12,
3767,
1769,
202,
202,
13220,
5972,
273,
4147,
22144,
18,
588,
1442,
7675,
588,
3896,
2421,
22144,
3829,
7675,
588,
13220,
5621,
202,
202,
430,
261,
31837,
480,
446,
597,
5972,
480,
446,
597,
401,
10304,
18,
291,
1669,
7423,
10756,
288,
1082,
202,
27130,
6353,
6176,
273,
394,
678,
13412,
6353,
12,
10304,
16,
24204,
1769,
1082,
202,
31837,
18,
542,
10997,
8351,
24072,
14388,
12,
3767,
1769,
1082,
202,
12730,
18,
2640,
5621,
1082,
202,
12730,
18,
542,
4247,
2932,
1908,
16907,
678,
13412,
8863,
1082,
202,
12730,
18,
542,
1768,
1398,
3678,
12,
3767,
1769,
1082,
202,
430,
12,
12730,
18,
3190,
1435,
422,
17242,
18,
25268,
15329,
9506,
202,
12730,
18,
4412,
5621,
9506,
202,
2463,
31,
1082,
202,
97,
25083,
565,
514,
7934,
548,
780,
273,
24204,
18,
26321,
5621,
1082,
565,
509,
7934,
548,
273,
300,
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,
9506,
202,
6494,
13493,
273,
8005,
7901,
2174,
1098,
3773,
18,
588,
1386,
2556,
7675,
588,
5507,
12,
12062,
7901,
3773,
18,
10566,
67,
8797,
5997,
1769,
202,
202,
430,
12,
23787,
15329,
1082,
202,
1079,
6353,
18,
3190,
5369,
12,
2011,
16,
315,
3370,
358,
752,
7934,
2605,
3113,
315,
3370,
358,
752,
279,
394,
7934,
2605,
3241,
1846,
854,
4551,
13493,
8863,
1082,
202,
2463,
31,
202,
202,
97,
759,
3639,
8005,
7901,
3773,
18,
588,
1868,
7675,
1128,
9013,
2155,
12,
2211,
1769,
9506,
202,
1908,
19865,
27130,
24204,
33,
394,
1166,
19865,
27130,
12,
3767,
1769,
202,
202,
13220,
5972,
273,
4147,
22144,
18,
588,
1442,
7675,
588,
2
] |
if (getScopeStack().hasLocalValues()) { | if (getScopeStack().hasLocalVariables()) { | public IRubyObject getBackref() { if (getScopeStack().hasLocalValues()) { return getScopeStack().getValue(1); } return ruby.getNil(); } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/6e143e1ded2275ed4da3449d4a13446b099f800d/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
336,
2711,
1734,
1435,
288,
3639,
309,
261,
588,
3876,
2624,
7675,
5332,
2042,
6158,
10756,
288,
5411,
327,
19203,
2624,
7675,
24805,
12,
21,
1769,
3639,
289,
3639,
327,
22155,
18,
588,
12616,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
336,
2711,
1734,
1435,
288,
3639,
309,
261,
588,
3876,
2624,
7675,
5332,
2042,
6158,
10756,
288,
5411,
327,
19203,
2624,
7675,
24805,
12,
21,
1769,
3639,
289,
3639,
327,
22155,
18,
588,
12616,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (fMessage != null) { | if (fMessage!=null) { | public void run() { synchronized (fPanel) { if (fPanel.fMessage == fMessage) { fMessageLoadThread = null; return; // save ourselves some work } fPanel.fMessage = fMessage; } MessageExtra mextra = fMessage != null ? MessageExtraFactory.Get(fMessage) : null; notifyLoading(); notifyStatus(fLabels.getString("messageLoadingStatus")); try { synchronized (fTextArea) { if (fMessage != null) { fTextArea.setText(""); try { InputStream stream = mextra.getInputStreamWithHeaders(); if (makeRealHTML) { stream = new MakeItHTML(stream).getHTMLInputStream(); } // Okay, let's try to read from the stream and set the // text from the InputStream. fTextArea.getDocument().putProperty("IgnoreCharsetDirective", Boolean.TRUE); fTextArea.read(stream, fTextArea.getDocument()); // } } catch (MessagingException me) { fTextArea.setText(me.toString()); me.printStackTrace(); } catch (IOException e) { fTextArea.setText(e.toString()); e.printStackTrace(); } } else { fTextArea.setText("This space intentionally left blank"); } } } catch (Exception e) { notifyStatus(e.toString()); e.printStackTrace(); fMessage = null; } catch (Error e) { notifyStatus(e.toString()); e.printStackTrace(); fMessage = null; } if (fMessage != null) { try { mextra.setIsRead(true); // ### Probably shouldn't do it // until we know we got some data... } catch (MessagingException e) { // ### Do anything here? For now, we drop it... } notifyStatus(fLabels.getString("messageLoadedStatus")); } synchronized (fPanel) { fMessageLoadThread = null; } notifyLoaded(); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/0cc63cb388a13f01532486f9d178811914e6d71b/MessagePanel.java/clean/grendel/sources/grendel/ui/MessagePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
1377,
3852,
261,
74,
5537,
13,
288,
3639,
309,
261,
74,
5537,
18,
74,
1079,
422,
284,
1079,
13,
288,
1850,
284,
1079,
2563,
3830,
273,
446,
31,
1850,
327,
31,
368,
1923,
19801,
2690,
1440,
3639,
289,
3639,
284,
5537,
18,
74,
1079,
273,
284,
1079,
31,
1377,
289,
1377,
2350,
7800,
312,
7763,
273,
3639,
284,
1079,
480,
446,
692,
2350,
7800,
1733,
18,
967,
12,
74,
1079,
13,
294,
446,
31,
1377,
5066,
10515,
5621,
1377,
5066,
1482,
12,
74,
5888,
18,
588,
780,
2932,
2150,
10515,
1482,
7923,
1769,
1377,
775,
288,
3639,
3852,
261,
74,
1528,
5484,
13,
288,
1850,
309,
261,
74,
1079,
5,
33,
2011,
13,
288,
5411,
284,
1528,
5484,
18,
542,
1528,
2932,
8863,
5411,
775,
288,
2868,
5037,
1407,
273,
312,
7763,
18,
588,
4348,
21270,
5621,
2868,
309,
261,
6540,
6955,
4870,
13,
288,
7734,
1407,
273,
394,
4344,
7193,
4870,
12,
3256,
2934,
588,
4870,
4348,
5621,
2868,
289,
2868,
368,
16154,
528,
16,
2231,
1807,
775,
358,
855,
628,
326,
1407,
471,
444,
326,
2868,
368,
977,
628,
326,
5037,
18,
2868,
284,
1528,
5484,
18,
588,
2519,
7675,
458,
1396,
2932,
3777,
9652,
13307,
3113,
3411,
18,
18724,
1769,
2868,
284,
1528,
5484,
18,
896,
12,
3256,
16,
284,
1528,
5484,
18,
588,
2519,
10663,
2868,
368,
225,
289,
5411,
289,
1044,
261,
23389,
503,
1791,
13,
288,
2868,
284,
1528,
5484,
18,
542,
1528,
12,
3501,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
1377,
3852,
261,
74,
5537,
13,
288,
3639,
309,
261,
74,
5537,
18,
74,
1079,
422,
284,
1079,
13,
288,
1850,
284,
1079,
2563,
3830,
273,
446,
31,
1850,
327,
31,
368,
1923,
19801,
2690,
1440,
3639,
289,
3639,
284,
5537,
18,
74,
1079,
273,
284,
1079,
31,
1377,
289,
1377,
2350,
7800,
312,
7763,
273,
3639,
284,
1079,
480,
446,
692,
2350,
7800,
1733,
18,
967,
12,
74,
1079,
13,
294,
446,
31,
1377,
5066,
10515,
5621,
1377,
5066,
1482,
12,
74,
5888,
18,
588,
780,
2932,
2150,
10515,
1482,
7923,
1769,
1377,
775,
288,
3639,
3852,
261,
74,
1528,
5484,
13,
288,
1850,
309,
261,
74,
1079,
5,
33,
2011,
13,
2
] |
init(studentCurricularPlan, administrativeOffice, DocumentRequestType.ENROLMENT_CERTIFICATE, | init(studentCurricularPlan, administrativeOffice, DocumentRequestType.SCHOOL_REGISTRATION_CERTIFICATE, | protected void init(StudentCurricularPlan studentCurricularPlan, AdministrativeOffice administrativeOffice, DocumentPurposeType documentPurposeType, String otherDocumentPurposeTypeDescription, Boolean urgentRequest, ExecutionYear executionYear) { init(studentCurricularPlan, administrativeOffice, DocumentRequestType.ENROLMENT_CERTIFICATE, documentPurposeType, otherDocumentPurposeTypeDescription, urgentRequest); checkParameters(executionYear); super.setExecutionYear(executionYear); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/3d1dab3c8f57cd94f091c8db8cfa3475672b4fb1/SchoolRegistrationCertificateRequest.java/buggy/src/net/sourceforge/fenixedu/domain/serviceRequests/documentRequests/SchoolRegistrationCertificateRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1208,
12,
19943,
319,
2408,
1512,
2490,
5365,
18110,
2408,
1512,
2490,
5365,
16,
1082,
202,
4446,
3337,
1535,
30126,
30162,
1535,
30126,
16,
4319,
10262,
4150,
559,
1668,
10262,
4150,
559,
16,
1082,
202,
780,
1308,
2519,
10262,
4150,
559,
3291,
16,
3411,
8896,
75,
319,
691,
16,
1082,
202,
3210,
5593,
4588,
5593,
13,
288,
202,
202,
2738,
12,
26240,
2408,
1512,
2490,
5365,
16,
30162,
1535,
30126,
16,
4319,
691,
559,
18,
1157,
13429,
3212,
67,
22367,
26649,
16,
9506,
202,
5457,
10262,
4150,
559,
16,
1308,
2519,
10262,
4150,
559,
3291,
16,
8896,
75,
319,
691,
1769,
202,
202,
1893,
2402,
12,
16414,
5593,
1769,
202,
202,
9565,
18,
542,
3210,
5593,
12,
16414,
5593,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1117,
918,
1208,
12,
19943,
319,
2408,
1512,
2490,
5365,
18110,
2408,
1512,
2490,
5365,
16,
1082,
202,
4446,
3337,
1535,
30126,
30162,
1535,
30126,
16,
4319,
10262,
4150,
559,
1668,
10262,
4150,
559,
16,
1082,
202,
780,
1308,
2519,
10262,
4150,
559,
3291,
16,
3411,
8896,
75,
319,
691,
16,
1082,
202,
3210,
5593,
4588,
5593,
13,
288,
202,
202,
2738,
12,
26240,
2408,
1512,
2490,
5365,
16,
30162,
1535,
30126,
16,
4319,
691,
559,
18,
1157,
13429,
3212,
67,
22367,
26649,
16,
9506,
202,
5457,
10262,
4150,
559,
16,
1308,
2519,
10262,
4150,
559,
3291,
16,
8896,
75,
319,
691,
1769,
202,
202,
1893,
2402,
12,
16414,
5593,
1769,
202,
202,
9565,
18,
542,
3210,
2
] |
public Manifest getManifest() throws IOException | public synchronized Manifest getManifest() throws IOException | public Manifest getManifest() throws IOException { if (!manifestRead) manifest = readManifest(); return manifest; } | 1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/10e43e4a13ff4ff70c4a1e2dd83efb7a29681520/JarFile.java/buggy/libjava/java/util/jar/JarFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
15443,
23619,
3811,
1435,
1216,
1860,
225,
288,
565,
309,
16051,
14357,
1994,
13,
1377,
5643,
273,
855,
9121,
5621,
565,
327,
5643,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
15443,
23619,
3811,
1435,
1216,
1860,
225,
288,
565,
309,
16051,
14357,
1994,
13,
1377,
5643,
273,
855,
9121,
5621,
565,
327,
5643,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for (int i = 0; i < selection.length; i++) { DataTreeNode node = (DataTreeNode) selection[i].getLastPathComponent(); BasicMonitoredObject object = node.getObject(); if (!node.isRoot()) objects.add(object); } | a = new AbstractAction("Refresh selected hosts") { public void actionPerformed(ActionEvent e) { Iterator iter = objects.iterator(); while (iter.hasNext()) { BasicMonitoredObject object = (BasicMonitoredObject) iter.next(); if (object.getKey() == HOST) updateHost(object); } rebuildAll(); tree.repaint(); } }; | private boolean constructPopupMenu(TreePath[] selection) { popupmenu = new JPopupMenu(); if (selection == null || selection.length == 0) { AbstractAction a = new AbstractAction("Refresh monitoring tree") { public void actionPerformed(ActionEvent e) { updateHosts(); } }; JMenuItem treeMenu = new JMenuItem(a); treeMenu.setEnabled(monitoredHosts.size() > 0); popupmenu.add(treeMenu); } else { AbstractAction a; final MonitoredObjectSet objects = new MonitoredObjectSet(); for (int i = 0; i < selection.length; i++) { DataTreeNode node = (DataTreeNode) selection[i].getLastPathComponent(); BasicMonitoredObject object = node.getObject(); if (!node.isRoot()) objects.add(object); } a = new AbstractAction("Refresh selected hosts") { public void actionPerformed(ActionEvent e) { Iterator iter = objects.iterator(); while (iter.hasNext()) { BasicMonitoredObject object = (BasicMonitoredObject) iter.next(); if (object.getKey() == HOST) updateHost(object); } rebuildAll(); } }; JMenuItem nodeMenu = new JMenuItem(a); popupmenu.add(nodeMenu); a = new AbstractAction("Stop monitoring these objects") { public void actionPerformed(ActionEvent e) { Iterator iter = objects.iterator(); while (iter.hasNext()) { BasicMonitoredObject object = (BasicMonitoredObject) iter.next(); skippedObjects.addElement(object); } } }; nodeMenu = new JMenuItem(a); popupmenu.add(nodeMenu); } return true; } | 50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/c07b2e1c413bb6b072a7e9b5419fa2d9faa8dd40/JobMonitorPanel.java/buggy/src/org/objectweb/proactive/ic2d/gui/jobmonitor/JobMonitorPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
1250,
4872,
13770,
4599,
12,
2471,
743,
8526,
4421,
13,
288,
5411,
10431,
5414,
273,
394,
804,
13770,
4599,
5621,
5411,
309,
261,
10705,
422,
446,
747,
4421,
18,
2469,
422,
374,
13,
288,
7734,
4115,
1803,
279,
273,
394,
4115,
1803,
2932,
8323,
16309,
2151,
7923,
288,
13491,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
18701,
1089,
12172,
5621,
13491,
289,
10792,
289,
31,
7734,
804,
12958,
2151,
4599,
273,
394,
804,
12958,
12,
69,
1769,
7734,
2151,
4599,
18,
542,
1526,
12,
2586,
20425,
12172,
18,
1467,
1435,
405,
374,
1769,
7734,
10431,
5414,
18,
1289,
12,
3413,
4599,
1769,
5411,
289,
469,
288,
7734,
4115,
1803,
279,
31,
7734,
727,
9041,
20425,
921,
694,
2184,
273,
394,
9041,
20425,
921,
694,
5621,
27573,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4421,
18,
2469,
31,
277,
27245,
288,
1171,
202,
751,
12513,
756,
273,
261,
751,
12513,
13,
4421,
63,
77,
8009,
588,
3024,
743,
1841,
5621,
1171,
202,
8252,
11415,
20425,
921,
733,
273,
756,
18,
588,
921,
5621,
1171,
202,
430,
16051,
2159,
18,
291,
2375,
10756,
1171,
202,
202,
6911,
18,
1289,
12,
1612,
1769,
7734,
289,
27573,
279,
273,
394,
4115,
1803,
2932,
8323,
3170,
7206,
7923,
288,
1171,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
1171,
202,
202,
3198,
1400,
273,
2184,
18,
9838,
5621,
1171,
202,
202,
17523,
261,
2165,
18,
5332,
2134,
10756,
288,
1171,
1082,
202,
8252,
11415,
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,
3238,
1250,
4872,
13770,
4599,
12,
2471,
743,
8526,
4421,
13,
288,
5411,
10431,
5414,
273,
394,
804,
13770,
4599,
5621,
5411,
309,
261,
10705,
422,
446,
747,
4421,
18,
2469,
422,
374,
13,
288,
7734,
4115,
1803,
279,
273,
394,
4115,
1803,
2932,
8323,
16309,
2151,
7923,
288,
13491,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
18701,
1089,
12172,
5621,
13491,
289,
10792,
289,
31,
7734,
804,
12958,
2151,
4599,
273,
394,
804,
12958,
12,
69,
1769,
7734,
2151,
4599,
18,
542,
1526,
12,
2586,
20425,
12172,
18,
1467,
1435,
405,
374,
1769,
7734,
10431,
5414,
18,
1289,
12,
3413,
4599,
1769,
5411,
289,
469,
288,
7734,
4115,
1803,
279,
31,
7734,
727,
9041,
20425,
2
] |
prematureTearDown(); | public void testGetImageForSameDescriptor() { ImageDescriptor imageDescriptor = getImageDescriptor(anythingImage); Image image1 = imageCache.getImage(imageDescriptor); Image image2 = imageCache.getImage(imageDescriptor); assertSame(image1, image2); image1 = imageCache.getImage(imageDescriptor, ImageCache.DISABLE); image2 = imageCache.getImage(imageDescriptor, ImageCache.DISABLE); assertSame(image1, image2); image1 = imageCache.getImage(imageDescriptor, ImageCache.GRAY); image2 = imageCache.getImage(imageDescriptor, ImageCache.GRAY); assertSame(image1, image2); prematureTearDown(); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d0e48b4aabcdb3e74aad05676e321df3b2d7a996/ImageCacheTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse JFace Tests/org/eclipse/jface/tests/images/ImageCacheTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
967,
2040,
1290,
8650,
3187,
1435,
288,
202,
202,
2040,
3187,
1316,
3187,
273,
10567,
3187,
12,
2273,
4274,
2040,
1769,
202,
202,
2040,
1316,
21,
273,
1316,
1649,
18,
588,
2040,
12,
2730,
3187,
1769,
202,
202,
2040,
1316,
22,
273,
1316,
1649,
18,
588,
2040,
12,
2730,
3187,
1769,
202,
202,
11231,
8650,
12,
2730,
21,
16,
1316,
22,
1769,
202,
202,
2730,
21,
273,
1316,
1649,
18,
588,
2040,
12,
2730,
3187,
16,
3421,
1649,
18,
13498,
2782,
1769,
202,
202,
2730,
22,
273,
1316,
1649,
18,
588,
2040,
12,
2730,
3187,
16,
3421,
1649,
18,
13498,
2782,
1769,
202,
202,
11231,
8650,
12,
2730,
21,
16,
1316,
22,
1769,
202,
202,
2730,
21,
273,
1316,
1649,
18,
588,
2040,
12,
2730,
3187,
16,
3421,
1649,
18,
43,
6722,
1769,
202,
202,
2730,
22,
273,
1316,
1649,
18,
588,
2040,
12,
2730,
3187,
16,
3421,
1649,
18,
43,
6722,
1769,
202,
202,
11231,
8650,
12,
2730,
21,
16,
1316,
22,
1769,
202,
202,
1484,
81,
1231,
56,
2091,
4164,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
967,
2040,
1290,
8650,
3187,
1435,
288,
202,
202,
2040,
3187,
1316,
3187,
273,
10567,
3187,
12,
2273,
4274,
2040,
1769,
202,
202,
2040,
1316,
21,
273,
1316,
1649,
18,
588,
2040,
12,
2730,
3187,
1769,
202,
202,
2040,
1316,
22,
273,
1316,
1649,
18,
588,
2040,
12,
2730,
3187,
1769,
202,
202,
11231,
8650,
12,
2730,
21,
16,
1316,
22,
1769,
202,
202,
2730,
21,
273,
1316,
1649,
18,
588,
2040,
12,
2730,
3187,
16,
3421,
1649,
18,
13498,
2782,
1769,
202,
202,
2730,
22,
273,
1316,
1649,
18,
588,
2040,
12,
2730,
3187,
16,
3421,
1649,
18,
13498,
2782,
1769,
202,
202,
11231,
8650,
12,
2730,
21,
16,
1316,
22,
1769,
202,
2
] |
|
public Object invoke(Object component, UMOEventContext context, Method method) throws InvocationTargetException, | public Object invoke(Object component, UMOEventContext context) throws InvocationTargetException, | public Object invoke(Object component, UMOEventContext context, Method method) throws InvocationTargetException, IllegalAccessException, TransformerException { Object payload = null; if (method == null) { if (component instanceof Callable) { method = Callable.class.getMethods()[0]; payload = context; } if (method == null) { method = getMethod(component, context); if (method == null) { payload = context.getTransformedMessage(); method = getMethod(component, payload); if (method != null) { RequestContext.rewriteEvent(new MuleMessage(payload)); } } else { payload = context; } } } if (method != null) { currentMethod = method; if (payload == null) { payload = context.getTransformedMessage(); RequestContext.rewriteEvent(new MuleMessage(payload)); } return invokeCurrent(component, payload); } // Are any methods on the component accepting an context? List methods = ClassHelper.getSatisfiableMethods(component.getClass(), ClassHelper.getClassTypes(context), true, true, false); if (methods.size() > 1) { TooManySatisfiableMethodsException tmsmex = new TooManySatisfiableMethodsException(component.getClass()); throw new InvocationTargetException( tmsmex, "There must be only one method accepting " + context.getClass().getName() + " in component " + component.getClass().getName()); } else if (methods.size() == 1) { if (logger.isDebugEnabled()) { logger.debug("Dynamic Entrypoint using method: " + component.getClass().getName() + "." + ((Method) methods.get(0)).getName() + "(" + context.getClass().getName() + ")"); } addMethod(component, (Method) methods.get(0), context.getClass()); return invokeCurrent(component, context); } else { methods = ClassHelper.getSatisfiableMethods(component.getClass(), ClassHelper.getClassTypes(payload), true, true, true); if (methods.size() > 1) { TooManySatisfiableMethodsException tmsmex = new TooManySatisfiableMethodsException(component.getClass()); throw new InvocationTargetException( tmsmex, "There must be only one method accepting " + payload.getClass().getName() + " in component " + component.getClass().getName()); } if (methods.size() == 1) { if (logger.isDebugEnabled()) { logger.debug("Dynamic Entrypoint using method: " + component.getClass().getName() + "." + ((Method) methods.get(0)).getName() + "(" + payload.getClass().getName() + ")"); } addMethod(component, (Method) methods.get(0), payload.getClass()); return invokeCurrent(component, payload); } else { NoSatisfiableMethodsException e = new NoSatisfiableMethodsException(component.getClass()); throw new InvocationTargetException(e, "Failed to find entry point for component: " + component.getClass().getName() + " with argument: " + payload.getClass().getName()); } } } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/030c4f06dc5a8ede226644e838b1eeb6ede5cb9d/DynamicEntryPoint.java/clean/src/java/org/mule/model/DynamicEntryPoint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
4356,
12,
921,
1794,
16,
587,
5980,
1133,
1042,
819,
13,
1216,
15342,
16,
5411,
11900,
16,
21684,
565,
288,
3639,
1033,
2385,
273,
446,
31,
3639,
309,
261,
2039,
422,
446,
13,
288,
5411,
309,
261,
4652,
1276,
10464,
13,
288,
7734,
707,
273,
10464,
18,
1106,
18,
588,
4712,
1435,
63,
20,
15533,
7734,
2385,
273,
819,
31,
5411,
289,
5411,
309,
261,
2039,
422,
446,
13,
288,
7734,
707,
273,
6272,
12,
4652,
16,
819,
1769,
7734,
309,
261,
2039,
422,
446,
13,
288,
10792,
2385,
273,
819,
18,
588,
4059,
329,
1079,
5621,
10792,
707,
273,
6272,
12,
4652,
16,
2385,
1769,
10792,
309,
261,
2039,
480,
446,
13,
288,
13491,
20479,
18,
21489,
1133,
12,
2704,
490,
725,
1079,
12,
7648,
10019,
10792,
289,
7734,
289,
469,
288,
10792,
2385,
273,
819,
31,
7734,
289,
5411,
289,
3639,
289,
3639,
309,
261,
2039,
480,
446,
13,
288,
5411,
783,
1305,
273,
707,
31,
5411,
309,
261,
7648,
422,
446,
13,
288,
7734,
2385,
273,
819,
18,
588,
4059,
329,
1079,
5621,
7734,
20479,
18,
21489,
1133,
12,
2704,
490,
725,
1079,
12,
7648,
10019,
5411,
289,
5411,
327,
4356,
3935,
12,
4652,
16,
2385,
1769,
3639,
289,
3639,
368,
12520,
1281,
2590,
603,
326,
1794,
25806,
392,
819,
35,
3639,
987,
2590,
273,
1659,
2276,
18,
588,
15163,
7396,
2214,
4712,
12,
4652,
18,
588,
797,
9334,
4766,
7682,
1659,
2276,
18,
588,
797,
2016,
12,
2472,
3631,
4766,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
4356,
12,
921,
1794,
16,
587,
5980,
1133,
1042,
819,
13,
1216,
15342,
16,
5411,
11900,
16,
21684,
565,
288,
3639,
1033,
2385,
273,
446,
31,
3639,
309,
261,
2039,
422,
446,
13,
288,
5411,
309,
261,
4652,
1276,
10464,
13,
288,
7734,
707,
273,
10464,
18,
1106,
18,
588,
4712,
1435,
63,
20,
15533,
7734,
2385,
273,
819,
31,
5411,
289,
5411,
309,
261,
2039,
422,
446,
13,
288,
7734,
707,
273,
6272,
12,
4652,
16,
819,
1769,
7734,
309,
261,
2039,
422,
446,
13,
288,
10792,
2385,
273,
819,
18,
588,
4059,
329,
1079,
5621,
10792,
707,
273,
6272,
12,
4652,
16,
2385,
1769,
10792,
309,
261,
2039,
480,
446,
13,
288,
13491,
20479,
2
] |
return id == roleDomainObject.id; | return id.equals(roleDomainObject.id); | public boolean equals( Object o ) { if ( this == o ) { return true; } if ( !( o instanceof RoleDomainObject ) ) { return false; } final RoleDomainObject roleDomainObject = (RoleDomainObject)o; if ( isAdminRole() || roleDomainObject.isAdminRole() ) { return adminRoleId == roleDomainObject.adminRoleId; } return id == roleDomainObject.id; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/9b573e87a0bc985c8ed726070812f2256aed72ee/RoleDomainObject.java/clean/server/src/imcode/server/user/RoleDomainObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
1033,
320,
262,
288,
3639,
309,
261,
333,
422,
320,
262,
288,
5411,
327,
638,
31,
3639,
289,
3639,
309,
261,
401,
12,
320,
1276,
6204,
3748,
921,
262,
262,
288,
5411,
327,
629,
31,
3639,
289,
3639,
727,
6204,
3748,
921,
2478,
3748,
921,
273,
261,
2996,
3748,
921,
13,
83,
31,
3639,
309,
261,
23467,
2996,
1435,
747,
2478,
3748,
921,
18,
291,
4446,
2996,
1435,
262,
288,
5411,
327,
3981,
2996,
548,
422,
2478,
3748,
921,
18,
3666,
2996,
548,
31,
3639,
289,
3639,
327,
612,
18,
14963,
12,
4615,
3748,
921,
18,
350,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
1250,
1606,
12,
1033,
320,
262,
288,
3639,
309,
261,
333,
422,
320,
262,
288,
5411,
327,
638,
31,
3639,
289,
3639,
309,
261,
401,
12,
320,
1276,
6204,
3748,
921,
262,
262,
288,
5411,
327,
629,
31,
3639,
289,
3639,
727,
6204,
3748,
921,
2478,
3748,
921,
273,
261,
2996,
3748,
921,
13,
83,
31,
3639,
309,
261,
23467,
2996,
1435,
747,
2478,
3748,
921,
18,
291,
4446,
2996,
1435,
262,
288,
5411,
327,
3981,
2996,
548,
422,
2478,
3748,
921,
18,
3666,
2996,
548,
31,
3639,
289,
3639,
327,
612,
18,
14963,
12,
4615,
3748,
921,
18,
350,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static String getMobySimplesFromCollection(String xml, String mobyEndpoint) { | public static String getMobySimplesFromCollection(String xml, String mobyEndpoint) { | public static String getMobySimplesFromCollection(String xml, String mobyEndpoint) { if (xml == null) return null; // variables needed MobyObjectClassNSImpl mo = new MobyObjectClassNSImpl(mobyEndpoint); Element documentElement = XMLUtilities.getDOMDocument(xml) .getRootElement(); int invocationCount = 1; // element data Element root = new Element("MOBY", MobyObjectClassNSImpl.MOBYNS); Element content = new Element("mobyContent", MobyObjectClassNSImpl.MOBYNS); root.addContent(content); Element de = documentElement.getChild("mobyContent", MobyObjectClassNSImpl.MOBYNS); if (de != null) { List mobyDatas = de.getChildren("mobyData", MobyObjectClassNSImpl.MOBYNS); if (mobyDatas == null) mobyDatas = de.getChildren("mobyData"); if (mobyDatas == null || mobyDatas.size() == 0) return null; for (Iterator iter = mobyDatas.iterator(); iter.hasNext();) { Object obj = iter.next(); if (obj instanceof Element) { Element e = (Element) obj; if (e != null) { List children = e.getChildren("Collection", MobyObjectClassNSImpl.MOBYNS); if (children.size() == 0) children = e.getChildren("Collection"); if (children.size() == 0) return null; for (Iterator x = children.iterator(); x.hasNext();) { Object o = x.next(); if (o instanceof Element) { Element child = (Element) o; List simples = child.getChildren("Simple", MobyObjectClassNSImpl.MOBYNS); if (simples.size() == 0) simples = e.getChildren("Simple"); if (simples.size() == 0) return null; for (Iterator iter2 = simples.iterator(); iter2 .hasNext();) { Object element = iter2.next(); iter2.remove(); if (element instanceof Element) { Element sim = (Element) element; Element mobyData = new Element( "mobyData", MobyObjectClassNSImpl.MOBYNS); mobyData.setAttribute("queryID", "a" + invocationCount++, MobyObjectClassNSImpl.MOBYNS); mobyData.addContent(sim.detach()); content.addContent(mobyData); } } } } } } } } if (de == null) return null; return mo.toString(root); } | 7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/68bb1ce8ce02b5a59cbae128ae4d8f93720f7c6b/XMLUtilities.java/clean/trunk/taverna1.0/src/org/biomoby/client/taverna/plugin/XMLUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
2108,
947,
93,
7993,
6089,
1265,
2532,
12,
780,
2025,
16,
1082,
202,
780,
312,
947,
93,
3293,
13,
288,
202,
202,
430,
261,
2902,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
759,
3152,
3577,
202,
202,
49,
947,
93,
921,
797,
3156,
2828,
7344,
273,
394,
490,
947,
93,
921,
797,
3156,
2828,
12,
81,
947,
93,
3293,
1769,
202,
202,
1046,
16722,
273,
3167,
11864,
18,
588,
8168,
2519,
12,
2902,
13,
9506,
202,
18,
588,
2375,
1046,
5621,
202,
202,
474,
9495,
1380,
273,
404,
31,
202,
202,
759,
930,
501,
202,
202,
1046,
1365,
273,
394,
3010,
2932,
49,
5704,
61,
3113,
490,
947,
93,
921,
797,
3156,
2828,
18,
49,
5704,
61,
3156,
1769,
202,
202,
1046,
913,
273,
394,
3010,
2932,
81,
947,
93,
1350,
3113,
9506,
202,
49,
947,
93,
921,
797,
3156,
2828,
18,
49,
5704,
61,
3156,
1769,
202,
202,
3085,
18,
1289,
1350,
12,
1745,
1769,
202,
202,
1046,
443,
273,
16722,
18,
588,
1763,
2932,
81,
947,
93,
1350,
3113,
9506,
202,
49,
947,
93,
921,
797,
3156,
2828,
18,
49,
5704,
61,
3156,
1769,
202,
202,
430,
261,
323,
480,
446,
13,
288,
1082,
202,
682,
312,
947,
93,
14305,
273,
443,
18,
588,
4212,
2932,
81,
947,
93,
751,
3113,
6862,
202,
49,
947,
93,
921,
797,
3156,
2828,
18,
49,
5704,
61,
3156,
1769,
1082,
202,
430,
261,
81,
947,
93,
14305,
422,
446,
13,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
2108,
947,
93,
7993,
6089,
1265,
2532,
12,
780,
2025,
16,
1082,
202,
780,
312,
947,
93,
3293,
13,
288,
202,
202,
430,
261,
2902,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
759,
3152,
3577,
202,
202,
49,
947,
93,
921,
797,
3156,
2828,
7344,
273,
394,
490,
947,
93,
921,
797,
3156,
2828,
12,
81,
947,
93,
3293,
1769,
202,
202,
1046,
16722,
273,
3167,
11864,
18,
588,
8168,
2519,
12,
2902,
13,
9506,
202,
18,
588,
2375,
1046,
5621,
202,
202,
474,
9495,
1380,
273,
404,
31,
202,
202,
759,
930,
501,
202,
202,
1046,
1365,
273,
394,
3010,
2932,
49,
5704,
61,
3113,
490,
947,
93,
921,
797,
2
] |
public static Map loadOptionalProperties(String filename) { | public static Map loadOptionalProperties(final String filename) { | public static Map loadOptionalProperties(String filename) { Properties optionalProperties = new Properties(); try { optionalProperties = (Properties) loadRequiredProperties(filename); } catch (RuntimeException e) { LOG.warn("Failed to load optional properties file '" + filename + "'"); System.out.println("Failed to load optional properties file '" + filename + "'"); } return optionalProperties; } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/2c85e0021203d96ece16c5bbfb40ebb70caeeb07/PropertiesHelper.java/clean/contrib/distributed/src/net/sourceforge/cruisecontrol/distributed/util/PropertiesHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1635,
1262,
6542,
2297,
12,
6385,
514,
1544,
13,
288,
3639,
6183,
3129,
2297,
273,
394,
6183,
5621,
3639,
775,
288,
5411,
3129,
2297,
273,
261,
2297,
13,
1262,
3705,
2297,
12,
3459,
1769,
3639,
289,
1044,
261,
11949,
425,
13,
288,
5411,
2018,
18,
8935,
2932,
2925,
358,
1262,
3129,
1790,
585,
2119,
397,
1544,
397,
5862,
1769,
5411,
2332,
18,
659,
18,
8222,
2932,
2925,
358,
1262,
3129,
1790,
585,
2119,
397,
1544,
397,
5862,
1769,
3639,
289,
3639,
327,
3129,
2297,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1635,
1262,
6542,
2297,
12,
6385,
514,
1544,
13,
288,
3639,
6183,
3129,
2297,
273,
394,
6183,
5621,
3639,
775,
288,
5411,
3129,
2297,
273,
261,
2297,
13,
1262,
3705,
2297,
12,
3459,
1769,
3639,
289,
1044,
261,
11949,
425,
13,
288,
5411,
2018,
18,
8935,
2932,
2925,
358,
1262,
3129,
1790,
585,
2119,
397,
1544,
397,
5862,
1769,
5411,
2332,
18,
659,
18,
8222,
2932,
2925,
358,
1262,
3129,
1790,
585,
2119,
397,
1544,
397,
5862,
1769,
3639,
289,
3639,
327,
3129,
2297,
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
] |
public org.quickfix.field.PositionEffect getPositionEffect() throws FieldNotFound { org.quickfix.field.PositionEffect value = new org.quickfix.field.PositionEffect(); | public quickfix.field.PositionEffect getPositionEffect() throws FieldNotFound { quickfix.field.PositionEffect value = new quickfix.field.PositionEffect(); | public org.quickfix.field.PositionEffect getPositionEffect() throws FieldNotFound { org.quickfix.field.PositionEffect value = new org.quickfix.field.PositionEffect(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationReport.java/clean/src/java/src/quickfix/fix44/AllocationReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2555,
12477,
14441,
12477,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2555,
12477,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2555,
12477,
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,
2555,
12477,
14441,
12477,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2555,
12477,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2555,
12477,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (writer != null) writer.close(); | if (writer != null) { writer.close(); } | public void saveAssociations() { //Save the resource type descriptions List editors = new ArrayList(); IPreferenceStore store = WorkbenchPlugin.getDefault() .getPreferenceStore(); XMLMemento memento = XMLMemento .createWriteRoot(IWorkbenchConstants.TAG_EDITORS); memento.putString(IWorkbenchConstants.TAG_VERSION, "3.1"); //$NON-NLS-1$ FileEditorMapping maps[] = typeEditorMappings.userMappings(); for (int mapsIndex = 0; mapsIndex < maps.length; mapsIndex++) { FileEditorMapping type = maps[mapsIndex]; IMemento editorMemento = memento .createChild(IWorkbenchConstants.TAG_INFO); editorMemento.putString(IWorkbenchConstants.TAG_NAME, type .getName()); editorMemento.putString(IWorkbenchConstants.TAG_EXTENSION, type .getExtension()); IEditorDescriptor[] editorArray = type.getEditors(); for (int i = 0; i < editorArray.length; i++) { EditorDescriptor editor = (EditorDescriptor) editorArray[i]; if (!editors.contains(editor)) { editors.add(editor); } IMemento idMemento = editorMemento .createChild(IWorkbenchConstants.TAG_EDITOR); idMemento.putString(IWorkbenchConstants.TAG_ID, editorArray[i] .getId()); } editorArray = type.getDeletedEditors(); for (int i = 0; i < editorArray.length; i++) { EditorDescriptor editor = (EditorDescriptor) editorArray[i]; if (!editors.contains(editor)) { editors.add(editor); } IMemento idMemento = editorMemento .createChild(IWorkbenchConstants.TAG_DELETED_EDITOR); idMemento.putString(IWorkbenchConstants.TAG_ID, editorArray[i] .getId()); } editorArray = type.getDeclaredDefaultEditors(); for (int i = 0; i < editorArray.length; i++) { EditorDescriptor editor = (EditorDescriptor) editorArray[i]; if (!editors.contains(editor)) { editors.add(editor); } IMemento idMemento = editorMemento .createChild(IWorkbenchConstants.TAG_DEFAULT_EDITOR); idMemento.putString(IWorkbenchConstants.TAG_ID, editorArray[i] .getId()); } } Writer writer = null; try { writer = new StringWriter(); memento.save(writer); writer.close(); store.setValue(IPreferenceConstants.RESOURCES, writer.toString()); } catch (IOException e) { try { if (writer != null) writer.close(); } catch (IOException ex) { ex.printStackTrace(); } MessageDialog.openError((Shell) null, "Saving Problems", //$NON-NLS-1$ "Unable to save resource associations."); //$NON-NLS-1$ return; } memento = XMLMemento.createWriteRoot(IWorkbenchConstants.TAG_EDITORS); Iterator itr = editors.iterator(); while (itr.hasNext()) { EditorDescriptor editor = (EditorDescriptor) itr.next(); IMemento editorMemento = memento .createChild(IWorkbenchConstants.TAG_DESCRIPTOR); editor.saveValues(editorMemento); } writer = null; try { writer = new StringWriter(); memento.save(writer); writer.close(); store.setValue(IPreferenceConstants.EDITORS, writer.toString()); } catch (IOException e) { try { if (writer != null) writer.close(); } catch (IOException ex) { ex.printStackTrace(); } MessageDialog.openError((Shell) null, "Error", "Unable to save resource associations."); //$NON-NLS-1$ //$NON-NLS-2$ return; } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/EditorRegistry.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/EditorRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
15143,
1435,
288,
3639,
368,
4755,
326,
1058,
618,
15550,
3639,
987,
29431,
273,
394,
2407,
5621,
3639,
467,
9624,
2257,
1707,
273,
4147,
22144,
3773,
18,
588,
1868,
1435,
7734,
263,
588,
9624,
2257,
5621,
3639,
3167,
49,
820,
83,
312,
820,
83,
273,
3167,
49,
820,
83,
7734,
263,
2640,
3067,
2375,
12,
45,
2421,
22144,
2918,
18,
7927,
67,
13208,
55,
1769,
3639,
312,
820,
83,
18,
458,
780,
12,
45,
2421,
22144,
2918,
18,
7927,
67,
5757,
16,
315,
23,
18,
21,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1387,
6946,
3233,
7565,
8526,
273,
618,
6946,
7742,
18,
1355,
7742,
5621,
3639,
364,
261,
474,
7565,
1016,
273,
374,
31,
7565,
1016,
411,
7565,
18,
2469,
31,
7565,
1016,
27245,
288,
5411,
1387,
6946,
3233,
618,
273,
7565,
63,
10711,
1016,
15533,
5411,
6246,
820,
83,
4858,
49,
820,
83,
273,
312,
820,
83,
10792,
263,
2640,
1763,
12,
45,
2421,
22144,
2918,
18,
7927,
67,
5923,
1769,
5411,
4858,
49,
820,
83,
18,
458,
780,
12,
45,
2421,
22144,
2918,
18,
7927,
67,
1985,
16,
618,
10792,
263,
17994,
10663,
5411,
4858,
49,
820,
83,
18,
458,
780,
12,
45,
2421,
22144,
2918,
18,
7927,
67,
12796,
16,
618,
10792,
263,
588,
3625,
10663,
5411,
467,
6946,
3187,
8526,
4858,
1076,
273,
618,
18,
588,
4666,
1383,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4858,
1076,
18,
2469,
31,
277,
27245,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
15143,
1435,
288,
3639,
368,
4755,
326,
1058,
618,
15550,
3639,
987,
29431,
273,
394,
2407,
5621,
3639,
467,
9624,
2257,
1707,
273,
4147,
22144,
3773,
18,
588,
1868,
1435,
7734,
263,
588,
9624,
2257,
5621,
3639,
3167,
49,
820,
83,
312,
820,
83,
273,
3167,
49,
820,
83,
7734,
263,
2640,
3067,
2375,
12,
45,
2421,
22144,
2918,
18,
7927,
67,
13208,
55,
1769,
3639,
312,
820,
83,
18,
458,
780,
12,
45,
2421,
22144,
2918,
18,
7927,
67,
5757,
16,
315,
23,
18,
21,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1387,
6946,
3233,
7565,
8526,
273,
618,
6946,
7742,
18,
1355,
7742,
5621,
3639,
364,
261,
474,
7565,
1016,
273,
2
] |
dfsCopy( patch, srcRoot , stopNodes ); | dfsCopy( patch, srcRoot , stopNodes, src ); | protected void copy( BranchNode patch, BranchNode diff, BaseNode srcRoot, Object src, IdIndex index ) throws ParseException { // Gather the stopnodes for the copy Vector dstNodes = new Vector(); Map stopNodes = new HashMap(); long nsrc=-1; long run = 1; try { String runS = ((XMLElementNode) diff.getContent()).getAttributes().getValue("run"); if (runS != null) run = Long.parseLong(runS); if( run > 1 ) nsrc = Long.parseLong(src.toString()); } catch ( Exception e ) { throw new ParseException("DIFFSYNTAX: Invalid run count/non-number src for copy tag " + diff.toString() ); } for( int i = 0; i < diff.getChildCount(); i++ ) { XMLNode content = diff.getChild(i).getContent(); Node stopNode = null; // Sanity check if( content instanceof XMLTextNode || ( !((XMLElementNode) content).getQName().equals(Diff.DIFF_NS+"copy") && !((XMLElementNode) content).getQName().equals(Diff.DIFF_NS+"insert") ) ) throw new ParseException("DIFFSYNTAX: Only copy or insert commands may"+ " appear below a copy command"); XMLElementNode stopCommand = (XMLElementNode) content; try { stopNode = index.lookup( stopCommand.getAttributes().getValue("dst")); } catch ( Exception e ) { throw new ParseException("DIFFSYNTAX: Invalid parameters in command " + stopNode.toString() ); } dstNodes.add( stopNode ); if( !stopNodes.containsKey(stopNode) ) stopNodes.put(stopNode,null); } // Run copy. stopNode values are at the same time filled in to point to the // created nodes for( long iRun=1;iRun<run;iRun++) { dfsCopy(patch,srcRoot,null); srcRoot = (BaseNode) index.lookup(String.valueOf(nsrc+iRun)); } dfsCopy( patch, srcRoot , stopNodes ); // Recurse for each diff child for( int i = 0; i < diff.getChildCount(); i++ ) { // DEBUG /*BranchNode _n = (BranchNode) stopNodes.get( dstNodes.elementAt(i) ); if( _n == null ) { BaseNode _s = (BaseNode) dstNodes.elementAt(i); System.err.println("Internal failure: Stop node not created"); System.err.println("src path=" + PathTracker.getPathString(srcRoot) ); System.err.println("stop path=" + PathTracker.getPathString(_s )); }*/ //ENDDEBUG insert( (BranchNode) stopNodes.get( dstNodes.elementAt(i) ), diff.getChild(i), index); } } | 7752 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7752/19be82a96d3381de1686ac34363000c254a10d71/Patch.java/clean/3dm/src/tdm/lib/Patch.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1610,
12,
15449,
907,
4729,
16,
15449,
907,
3122,
16,
3360,
907,
1705,
2375,
16,
1033,
1705,
16,
8227,
3124,
1016,
770,
262,
8227,
1216,
10616,
288,
565,
368,
25868,
326,
2132,
4690,
364,
326,
1610,
565,
5589,
3046,
3205,
273,
394,
5589,
5621,
565,
1635,
2132,
3205,
273,
394,
4317,
5621,
565,
1525,
3153,
1310,
29711,
21,
31,
565,
1525,
1086,
273,
404,
31,
565,
775,
288,
1377,
514,
1086,
55,
273,
14015,
15223,
907,
13,
3122,
18,
588,
1350,
1435,
2934,
588,
2498,
7675,
24805,
2932,
2681,
8863,
1377,
309,
261,
2681,
55,
480,
446,
13,
3639,
1086,
273,
3407,
18,
2670,
3708,
12,
2681,
55,
1769,
1377,
309,
12,
1086,
405,
404,
262,
3639,
3153,
1310,
273,
3407,
18,
2670,
3708,
12,
4816,
18,
10492,
10663,
565,
289,
1044,
261,
1185,
425,
262,
288,
1377,
604,
394,
10616,
2932,
2565,
2246,
7474,
28614,
30,
1962,
1086,
1056,
19,
5836,
17,
2696,
1705,
364,
1610,
1047,
315,
397,
1171,
9079,
3122,
18,
10492,
1435,
11272,
565,
289,
565,
364,
12,
509,
277,
273,
374,
31,
277,
411,
3122,
18,
588,
1763,
1380,
5621,
277,
9904,
262,
288,
1377,
3167,
907,
913,
273,
3122,
18,
588,
1763,
12,
77,
2934,
588,
1350,
5621,
1377,
2029,
2132,
907,
273,
446,
31,
1377,
368,
23123,
866,
1377,
309,
12,
913,
1276,
3167,
17299,
747,
261,
3639,
401,
12443,
15223,
907,
13,
913,
2934,
588,
13688,
7675,
14963,
12,
5938,
18,
2565,
2246,
67,
3156,
9078,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1610,
12,
15449,
907,
4729,
16,
15449,
907,
3122,
16,
3360,
907,
1705,
2375,
16,
1033,
1705,
16,
8227,
3124,
1016,
770,
262,
8227,
1216,
10616,
288,
565,
368,
25868,
326,
2132,
4690,
364,
326,
1610,
565,
5589,
3046,
3205,
273,
394,
5589,
5621,
565,
1635,
2132,
3205,
273,
394,
4317,
5621,
565,
1525,
3153,
1310,
29711,
21,
31,
565,
1525,
1086,
273,
404,
31,
565,
775,
288,
1377,
514,
1086,
55,
273,
14015,
15223,
907,
13,
3122,
18,
588,
1350,
1435,
2934,
588,
2498,
7675,
24805,
2932,
2681,
8863,
1377,
309,
261,
2681,
55,
480,
446,
13,
3639,
1086,
273,
3407,
18,
2670,
3708,
12,
2681,
55,
1769,
1377,
309,
12,
1086,
405,
404,
262,
2
] |
return this.version; | return m_version; | public String getVersion() { return this.version; } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/3c63972c9d21c7b9510c6659f4d82d2961569d95/OnmsVulnPlugin.java/clean/opennms-model/src/main/java/org/opennms/netmgt/model/OnmsVulnPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8343,
1435,
288,
3639,
327,
312,
67,
1589,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8343,
1435,
288,
3639,
327,
312,
67,
1589,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
allowDesktopShortcut = new JCheckBox(parent.langpack | allowDesktopShortcut = new JCheckBox(parent.langpack | private void buildUI(File groups)//, boolean currentUserList) { itsProgramFolder = groups; //listLabel.setFont( listLabel.getFont().getSize() ); constraints.gridx = 0; constraints.gridy = 0; constraints.gridwidth = 3; constraints.gridheight = 1; constraints.weightx = 1.0; constraints.weighty = 1.0; /*constraints.insets = new Insets(5, 5, 5, 5);*/ constraints.fill = GridBagConstraints.NONE; constraints.anchor = GridBagConstraints.WEST; /*layout.addLayoutComponent(listLabel, constraints); add(listLabel);*/ // Add a CheckBox which enables the user to entirely supress shortcut creation. String menuKind = parent.langpack.getString("ShortcutPanel.regular.StartMenu:Start-Menu"); if( OsVersion.IS_UNIX && UnixHelper.kdeIsInstalled() ) menuKind = parent.langpack.getString("ShortcutPanel.regular.StartMenu:K-Menu"); createShortcuts = new JCheckBox( StringTool.replace( parent.langpack.getString("ShortcutPanel.regular.create"), "StartMenu", menuKind ), true); createShortcuts.addActionListener(this); constraints.gridx = 0; constraints.gridy = 1; constraints.gridwidth = 2; constraints.gridheight = 1; constraints.weighty = 0.2; layout.addLayoutComponent(createShortcuts, constraints); add(createShortcuts); // ---------------------------------------------------- // check box to allow the user to decide if a desktop // shortcut should be created. // this should only be created if needed and requested // in the definition file. // ---------------------------------------------------- String initialAllowedValue = idata.getVariable( "DesktopShortcutCheckboxEnabled" ); boolean initialAllowedFlag = false; if( initialAllowedValue==null) initialAllowedFlag= false; else if( Boolean.TRUE.toString().equals(initialAllowedValue) ) initialAllowedFlag=true; allowDesktopShortcut = new JCheckBox(parent.langpack .getString("ShortcutPanel.regular.desktop"), initialAllowedFlag); constraints.gridx = 0; constraints.gridy = 2; constraints.gridwidth = 3; constraints.gridheight = 1; constraints.weighty = 0.2; if (hasDesktopShortcuts) { layout.addLayoutComponent(allowDesktopShortcut, constraints); add(allowDesktopShortcut); } // ---------------------------------------------------- // list box to list all of already existing folders as program groups // at the intended destination // ---------------------------------------------------- addSelectionList( groups, 0, 3, 2, 1, GridBagConstraints.BOTH ); // ---------------------------------------------------- // radio buttons to select current user or all users. // ---------------------------------------------------- if (shortcut.multipleUsers()) { JPanel usersPanel = new JPanel(new GridLayout(2, 1)); ButtonGroup usersGroup = new ButtonGroup(); currentUser = new JRadioButton(parent.langpack .getString("ShortcutPanel.regular.currentUser"), !isRootUser); currentUser.addActionListener(this); usersGroup.add(currentUser); usersPanel.add(currentUser); allUsers = new JRadioButton( parent.langpack.getString("ShortcutPanel.regular.allUsers"), isRootUser); if (!isRootUser) allUsers.setEnabled(false); allUsers.addActionListener(this); usersGroup.add(allUsers); usersPanel.add(allUsers); TitledBorder border = new TitledBorder(new EmptyBorder(2, 2, 2, 2), parent.langpack .getString("ShortcutPanel.regular.userIntro")); usersPanel.setBorder(border); constraints.gridx = 2; constraints.gridy = 3; constraints.gridwidth = 1; constraints.gridheight = 1; constraints.weighty = 1.0; constraints.weightx = 1.0; constraints.fill = GridBagConstraints.NONE; layout.addLayoutComponent(usersPanel, constraints); add(usersPanel); } // ---------------------------------------------------- // edit box that contains the suggested program group // name, which can be modfied or substituted from the // list by the user // ---------------------------------------------------- programGroup = new JTextField(suggestedProgramGroup, 40); // 40? constraints.gridx = 0; constraints.gridy = 4; constraints.gridwidth = 2; constraints.gridheight = 1; constraints.weighty = 1.0; constraints.weightx = 10.0; constraints.fill = GridBagConstraints.HORIZONTAL; layout.addLayoutComponent(programGroup, constraints); add(programGroup); // ---------------------------------------------------- // reset button that allows the user to revert to the // original suggestion for the program group // ---------------------------------------------------- defaultButton = ButtonFactory.createButton(parent.langpack .getString("ShortcutPanel.regular.default"), idata.buttonsHColor); defaultButton.addActionListener(this); constraints.gridx = 2; constraints.gridy = 4; constraints.gridwidth = 1; constraints.gridheight = 1; constraints.fill = GridBagConstraints.NONE; layout.addLayoutComponent(defaultButton, constraints); add(defaultButton); } | 58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/83c66c9a10723d2a0219650e6ae7a5f1484b3b13/ShortcutPanel.java/clean/izpack-src/trunk/src/lib/com/izforge/izpack/panels/ShortcutPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1361,
5370,
12,
812,
3252,
13,
759,
16,
1250,
13970,
682,
13,
565,
288,
3639,
2097,
9459,
3899,
273,
3252,
31,
7734,
368,
1098,
2224,
18,
542,
5711,
12,
666,
2224,
18,
588,
5711,
7675,
588,
1225,
1435,
225,
11272,
540,
6237,
18,
5222,
92,
273,
374,
31,
3639,
6237,
18,
5222,
93,
273,
374,
31,
3639,
6237,
18,
5222,
2819,
273,
890,
31,
3639,
6237,
18,
5222,
4210,
273,
404,
31,
3639,
6237,
18,
4865,
92,
273,
404,
18,
20,
31,
3639,
6237,
18,
4865,
93,
273,
404,
18,
20,
31,
3639,
1748,
11967,
18,
267,
4424,
273,
394,
22300,
12,
25,
16,
1381,
16,
1381,
16,
1381,
1769,
5549,
3639,
6237,
18,
5935,
273,
13075,
18,
9826,
31,
3639,
6237,
18,
16215,
273,
13075,
18,
31285,
31,
3639,
1748,
6741,
18,
1289,
3744,
1841,
12,
1098,
2224,
16,
6237,
1769,
3639,
527,
12,
1098,
2224,
1769,
5549,
7734,
368,
1436,
279,
2073,
3514,
1492,
19808,
326,
729,
358,
21658,
1169,
663,
10995,
6710,
18,
1850,
514,
3824,
5677,
273,
982,
18,
4936,
2920,
18,
588,
780,
2932,
15576,
5537,
18,
16819,
18,
1685,
4599,
30,
1685,
17,
4599,
8863,
3639,
309,
12,
31799,
1444,
18,
5127,
67,
10377,
60,
597,
9480,
2276,
18,
79,
323,
2520,
16747,
1435,
262,
5411,
3824,
5677,
273,
982,
18,
4936,
2920,
18,
588,
780,
2932,
15576,
5537,
18,
16819,
18,
1685,
4599,
30,
47,
17,
4599,
8863,
7734,
752,
15576,
87,
273,
394,
804,
19174,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1361,
5370,
12,
812,
3252,
13,
759,
16,
1250,
13970,
682,
13,
565,
288,
3639,
2097,
9459,
3899,
273,
3252,
31,
7734,
368,
1098,
2224,
18,
542,
5711,
12,
666,
2224,
18,
588,
5711,
7675,
588,
1225,
1435,
225,
11272,
540,
6237,
18,
5222,
92,
273,
374,
31,
3639,
6237,
18,
5222,
93,
273,
374,
31,
3639,
6237,
18,
5222,
2819,
273,
890,
31,
3639,
6237,
18,
5222,
4210,
273,
404,
31,
3639,
6237,
18,
4865,
92,
273,
404,
18,
20,
31,
3639,
6237,
18,
4865,
93,
273,
404,
18,
20,
31,
3639,
1748,
11967,
18,
267,
4424,
273,
394,
22300,
12,
25,
16,
1381,
16,
1381,
16,
1381,
1769,
5549,
3639,
6237,
18,
5935,
273,
2
] |
File dest = v.addBlock(b, f); | File dest = null; synchronized ( volumes ) { dest = v.addBlock(b, f); } | public void finalizeBlock(Block b) throws IOException { synchronized (ongoingCreates) { File f = ongoingCreates.get(b); if (f == null || ! f.exists()) { throw new IOException("No temporary file " + f + " for block " + b); } long finalLen = f.length(); b.setNumBytes(finalLen); FSVolume v = volumeMap.get(b); File dest = v.addBlock(b, f); blockMap.put(b, dest); ongoingCreates.remove(b); } } | 48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/8f39b3b0e7898bbe2894075812d44127b727497f/FSDataset.java/buggy/src/java/org/apache/hadoop/dfs/FSDataset.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12409,
1768,
12,
1768,
324,
13,
1216,
1860,
288,
1377,
3852,
261,
5409,
310,
2729,
13,
288,
3639,
1387,
284,
273,
30542,
2729,
18,
588,
12,
70,
1769,
3639,
309,
261,
74,
422,
446,
747,
401,
284,
18,
1808,
10756,
288,
1850,
604,
394,
1860,
2932,
2279,
6269,
585,
315,
397,
284,
397,
315,
364,
1203,
315,
397,
324,
1769,
3639,
289,
3639,
1525,
727,
2891,
273,
284,
18,
2469,
5621,
3639,
324,
18,
542,
2578,
2160,
12,
6385,
2891,
1769,
3639,
9247,
4545,
331,
273,
3940,
863,
18,
588,
12,
70,
1769,
7734,
1387,
1570,
273,
446,
31,
3852,
261,
11364,
262,
288,
1570,
273,
331,
18,
1289,
1768,
12,
70,
16,
284,
1769,
289,
3639,
1203,
863,
18,
458,
12,
70,
16,
1570,
1769,
3639,
30542,
2729,
18,
4479,
12,
70,
1769,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12409,
1768,
12,
1768,
324,
13,
1216,
1860,
288,
1377,
3852,
261,
5409,
310,
2729,
13,
288,
3639,
1387,
284,
273,
30542,
2729,
18,
588,
12,
70,
1769,
3639,
309,
261,
74,
422,
446,
747,
401,
284,
18,
1808,
10756,
288,
1850,
604,
394,
1860,
2932,
2279,
6269,
585,
315,
397,
284,
397,
315,
364,
1203,
315,
397,
324,
1769,
3639,
289,
3639,
1525,
727,
2891,
273,
284,
18,
2469,
5621,
3639,
324,
18,
542,
2578,
2160,
12,
6385,
2891,
1769,
3639,
9247,
4545,
331,
273,
3940,
863,
18,
588,
12,
70,
1769,
7734,
1387,
1570,
273,
446,
31,
3852,
261,
11364,
262,
288,
1570,
273,
331,
18,
1289,
1768,
12,
70,
16,
284,
1769,
289,
2
] |
((ASTPrimarySuffix)jjtn000).setIsArguments(); | jjtn000.setIsArguments(); | final public void PrimarySuffix() throws ParseException { /*@bgen(jjtree) PrimarySuffix */ ASTPrimarySuffix jjtn000 = new ASTPrimarySuffix(this, JJTPRIMARYSUFFIX); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);String s = null; Token t = null; try { if (jj_2_22(2)) { jj_consume_token(DOT); jj_consume_token(THIS); } else if (jj_2_23(2)) { jj_consume_token(DOT); jj_consume_token(SUPER); } else if (jj_2_24(2)) { jj_consume_token(DOT); AllocationExpression(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACKET: jj_consume_token(LBRACKET); Expression(); jj_consume_token(RBRACKET); break; case DOT: jj_consume_token(DOT); t = jj_consume_token(IDENTIFIER); s = t.image; jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage(s); break; case LPAREN: Arguments(); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; ((ASTPrimarySuffix)jjtn000).setIsArguments(); break; default: jj_la1[81] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (RuntimeException)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/ff3395fcc19379f06346f61993b122651328e45a/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
15884,
5791,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
15884,
5791,
1195,
225,
9183,
6793,
5791,
10684,
5088,
3784,
273,
394,
9183,
6793,
5791,
12,
2211,
16,
804,
46,
56,
18864,
14964,
1769,
225,
1250,
10684,
5111,
3784,
273,
638,
31,
225,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
780,
272,
273,
446,
31,
225,
3155,
268,
273,
446,
31,
565,
775,
288,
1377,
309,
261,
78,
78,
67,
22,
67,
3787,
12,
22,
3719,
288,
3639,
10684,
67,
21224,
67,
2316,
12,
17591,
1769,
3639,
10684,
67,
21224,
67,
2316,
12,
2455,
5127,
1769,
1377,
289,
469,
309,
261,
78,
78,
67,
22,
67,
4366,
12,
22,
3719,
288,
3639,
10684,
67,
21224,
67,
2316,
12,
17591,
1769,
3639,
10684,
67,
21224,
67,
2316,
12,
13272,
654,
1769,
1377,
289,
469,
309,
261,
78,
78,
67,
22,
67,
3247,
12,
22,
3719,
288,
3639,
10684,
67,
21224,
67,
2316,
12,
17591,
1769,
3639,
24242,
2300,
5621,
1377,
289,
469,
288,
3639,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
3639,
648,
511,
21217,
30,
1850,
10684,
67,
21224,
67,
2316,
12,
48,
21217,
1769,
1850,
5371,
5621,
1850,
10684,
67,
21224,
67,
2316,
12,
54,
21217,
1769,
1850,
898,
31,
3639,
648,
15772,
30,
1850,
10684,
67,
21224,
67,
2316,
12,
17591,
1769,
1850,
268,
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,
727,
1071,
918,
15884,
5791,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
15884,
5791,
1195,
225,
9183,
6793,
5791,
10684,
5088,
3784,
273,
394,
9183,
6793,
5791,
12,
2211,
16,
804,
46,
56,
18864,
14964,
1769,
225,
1250,
10684,
5111,
3784,
273,
638,
31,
225,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
780,
272,
273,
446,
31,
225,
3155,
268,
273,
446,
31,
565,
775,
288,
1377,
309,
261,
78,
78,
67,
22,
67,
3787,
12,
22,
3719,
288,
3639,
10684,
67,
21224,
67,
2316,
12,
17591,
1769,
3639,
10684,
67,
21224,
67,
2316,
12,
2455,
5127,
1769,
1377,
289,
469,
309,
261,
78,
78,
67,
22,
2
] |
AGSymbol.alloc("assignField"), | AGSymbol.jAlloc("assignField"), | public ATNil meta_assignField(ATObject receiver, ATSymbol selector, ATObject value) throws InterpreterException { mirror_.meta_invoke( mirror_, AGSymbol.alloc("assignField"), new NATTable(new ATObject[] { receiver, selector, value }) ); return NATNil._INSTANCE_; } | 57139 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57139/48c9291154adf80addbe964a51750f5d02bb8019/NATMirage.java/clean/src/edu/vub/at/objects/mirrors/NATMirage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14464,
12616,
2191,
67,
6145,
974,
12,
789,
921,
5971,
16,
14464,
5335,
3451,
16,
14464,
921,
460,
13,
1216,
5294,
11599,
503,
288,
202,
202,
27197,
27799,
3901,
67,
14407,
12,
9506,
202,
27197,
67,
16,
9506,
202,
1781,
5335,
18,
9853,
2932,
6145,
974,
6,
3631,
9506,
202,
2704,
31395,
1388,
12,
2704,
14464,
921,
8526,
288,
5971,
16,
3451,
16,
460,
289,
13,
9506,
202,
1769,
6862,
202,
2463,
31395,
12616,
6315,
13341,
67,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14464,
12616,
2191,
67,
6145,
974,
12,
789,
921,
5971,
16,
14464,
5335,
3451,
16,
14464,
921,
460,
13,
1216,
5294,
11599,
503,
288,
202,
202,
27197,
27799,
3901,
67,
14407,
12,
9506,
202,
27197,
67,
16,
9506,
202,
1781,
5335,
18,
9853,
2932,
6145,
974,
6,
3631,
9506,
202,
2704,
31395,
1388,
12,
2704,
14464,
921,
8526,
288,
5971,
16,
3451,
16,
460,
289,
13,
9506,
202,
1769,
6862,
202,
2463,
31395,
12616,
6315,
13341,
67,
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
] |
} catch (CacheException.RetryNewUrlException e) { | } catch (CacheException.NoRetryNewUrlException e) { | public void testRedirectNotInSpec() throws Exception { String redTo = "http://somewhere.else/foo"; MockConnectionMockBaseUrlCacher muc = new MockConnectionMockBaseUrlCacher(mcus, TEST_URL); muc.addConnection(makeConn(301, "Moved to Fresno", redTo)); muc.addConnection(makeConn(200, "Ok", null, "bar")); muc.setRedirectScheme(UrlCacher.REDIRECT_SCHEME_STORE_ALL); try { InputStream is = muc.getUncachedInputStream(); fail("Should have thrown RetryNewUrlException"); } catch (CacheException.RetryNewUrlException e) { assertEquals("301 Moved to Fresno", e.getMessage()); Properties p = muc.getUncachedProperties(); assertEquals(redTo, p.getProperty("_header_location")); } } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/23aee0845a4fb8e34f5a182efb629ccada6fda37/TestBaseUrlCacher.java/clean/test/src/org/lockss/plugin/base/TestBaseUrlCacher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
5961,
21855,
1990,
1435,
1216,
1185,
288,
565,
514,
1755,
774,
273,
315,
2505,
2207,
87,
362,
359,
14852,
18,
12107,
19,
11351,
14432,
565,
7867,
1952,
9865,
14074,
11309,
264,
4129,
71,
273,
1377,
394,
7867,
1952,
9865,
14074,
11309,
264,
12,
13952,
407,
16,
22130,
67,
1785,
1769,
565,
4129,
71,
18,
1289,
1952,
12,
6540,
3543,
12,
31831,
16,
315,
25317,
358,
478,
455,
2135,
3113,
1755,
774,
10019,
565,
4129,
71,
18,
1289,
1952,
12,
6540,
3543,
12,
6976,
16,
315,
8809,
3113,
446,
16,
315,
3215,
7923,
1769,
565,
4129,
71,
18,
542,
5961,
9321,
12,
1489,
11309,
264,
18,
25103,
67,
22870,
67,
13651,
67,
4685,
1769,
565,
775,
288,
1377,
5037,
353,
273,
4129,
71,
18,
588,
984,
7097,
4348,
5621,
1377,
2321,
2932,
14309,
1240,
6718,
9954,
1908,
1489,
503,
8863,
565,
289,
1044,
261,
1649,
503,
18,
2279,
7539,
1908,
1489,
503,
425,
13,
288,
1377,
1815,
8867,
2932,
31831,
490,
9952,
358,
478,
455,
2135,
3113,
425,
18,
24906,
10663,
1377,
6183,
293,
273,
4129,
71,
18,
588,
984,
7097,
2297,
5621,
1377,
1815,
8867,
12,
1118,
774,
16,
293,
18,
588,
1396,
2932,
67,
3374,
67,
3562,
7923,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
5961,
21855,
1990,
1435,
1216,
1185,
288,
565,
514,
1755,
774,
273,
315,
2505,
2207,
87,
362,
359,
14852,
18,
12107,
19,
11351,
14432,
565,
7867,
1952,
9865,
14074,
11309,
264,
4129,
71,
273,
1377,
394,
7867,
1952,
9865,
14074,
11309,
264,
12,
13952,
407,
16,
22130,
67,
1785,
1769,
565,
4129,
71,
18,
1289,
1952,
12,
6540,
3543,
12,
31831,
16,
315,
25317,
358,
478,
455,
2135,
3113,
1755,
774,
10019,
565,
4129,
71,
18,
1289,
1952,
12,
6540,
3543,
12,
6976,
16,
315,
8809,
3113,
446,
16,
315,
3215,
7923,
1769,
565,
4129,
71,
18,
542,
5961,
9321,
12,
1489,
11309,
264,
18,
25103,
67,
22870,
67,
13651,
67,
4685,
1769,
565,
775,
2
] |
return new FloatDefinition(ruby).getType(); | RubyClass result = ruby.defineClass("Float", ruby.getClasses().getNumericClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); result.defineMethod("+", callbackFactory.getMethod(RubyFloat.class, "op_plus", RubyNumeric.class)); result.defineMethod("-", callbackFactory.getMethod(RubyFloat.class, "op_minus", RubyNumeric.class)); result.defineMethod("*", callbackFactory.getMethod(RubyFloat.class, "op_mul", RubyNumeric.class)); result.defineMethod("/", callbackFactory.getMethod(RubyFloat.class, "op_div", RubyNumeric.class)); result.defineMethod("%", callbackFactory.getMethod(RubyFloat.class, "op_mod", RubyNumeric.class)); result.defineMethod("**", callbackFactory.getMethod(RubyFloat.class, "op_pow", RubyNumeric.class)); result.defineMethod("ceil", callbackFactory.getMethod(RubyFloat.class, "ceil")); result.defineMethod("finite?", callbackFactory.getMethod(RubyFloat.class, "finite_p")); result.defineMethod("floor", callbackFactory.getMethod(RubyFloat.class, "floor")); result.defineMethod("hash", callbackFactory.getMethod(RubyFloat.class, "hash")); result.defineMethod("infinite?", callbackFactory.getMethod(RubyFloat.class, "infinite_p")); result.defineMethod("nan?", callbackFactory.getMethod(RubyFloat.class, "nan_p")); result.defineMethod("round", callbackFactory.getMethod(RubyFloat.class, "round")); result.defineMethod("to_i", callbackFactory.getMethod(RubyFloat.class, "to_i")); result.defineMethod("to_f", callbackFactory.getMethod(RubyFloat.class, "to_f")); result.defineMethod("to_s", callbackFactory.getMethod(RubyFloat.class, "to_s")); result.defineMethod("truncate", callbackFactory.getMethod(RubyFloat.class, "truncate")); result.getMetaClass().undefineMethod("new"); result.defineSingletonMethod("induced_from", callbackFactory.getSingletonMethod(RubyFloat.class, "induced_from", IRubyObject.class)); return result; | public static RubyClass createFloatClass(Ruby ruby) { return new FloatDefinition(ruby).getType(); } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
4723,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
563,
273,
22155,
18,
11255,
797,
2932,
4723,
3113,
22155,
18,
588,
4818,
7675,
588,
9902,
797,
10663,
8444,
1733,
1348,
1733,
273,
22155,
18,
3394,
1733,
5621,
225,
563,
18,
11255,
1305,
2932,
15,
3113,
1348,
1733,
18,
588,
1305,
12,
54,
10340,
4723,
18,
1106,
16,
315,
556,
67,
10103,
3113,
19817,
9902,
18,
1106,
10019,
563,
18,
11255,
1305,
2932,
17,
3113,
1348,
1733,
18,
588,
1305,
12,
54,
10340,
4723,
18,
1106,
16,
315,
556,
67,
19601,
3113,
19817,
9902,
18,
1106,
10019,
563,
18,
11255,
1305,
2932,
14,
3113,
1348,
1733,
18,
588,
1305,
12,
54,
10340,
4723,
18,
1106,
16,
315,
556,
67,
16411,
3113,
19817,
9902,
18,
1106,
10019,
563,
18,
11255,
1305,
2932,
19,
3113,
1348,
1733,
18,
588,
1305,
12,
54,
10340,
4723,
18,
1106,
16,
315,
556,
67,
2892,
3113,
19817,
9902,
18,
1106,
10019,
563,
18,
11255,
1305,
27188,
3113,
1348,
1733,
18,
588,
1305,
12,
54,
10340,
4723,
18,
1106,
16,
315,
556,
67,
1711,
3113,
19817,
9902,
18,
1106,
10019,
563,
18,
11255,
1305,
2932,
636,
3113,
1348,
1733,
18,
588,
1305,
12,
54,
10340,
4723,
18,
1106,
16,
315,
556,
67,
23509,
3113,
19817,
9902,
18,
1106,
10019,
563,
18,
11255,
1305,
2932,
311,
330,
3113,
1348,
1733,
18,
588,
1305,
12,
54,
10340,
4723,
18,
1106,
16,
315,
311,
330,
7923,
1769,
563,
18,
11255,
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,
19817,
797,
752,
4723,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
563,
273,
22155,
18,
11255,
797,
2932,
4723,
3113,
22155,
18,
588,
4818,
7675,
588,
9902,
797,
10663,
8444,
1733,
1348,
1733,
273,
22155,
18,
3394,
1733,
5621,
225,
563,
18,
11255,
1305,
2932,
15,
3113,
1348,
1733,
18,
588,
1305,
12,
54,
10340,
4723,
18,
1106,
16,
315,
556,
67,
10103,
3113,
19817,
9902,
18,
1106,
10019,
563,
18,
11255,
1305,
2932,
17,
3113,
1348,
1733,
18,
588,
1305,
12,
54,
10340,
4723,
18,
1106,
16,
315,
556,
67,
19601,
3113,
19817,
9902,
18,
1106,
10019,
563,
18,
11255,
1305,
2932,
14,
3113,
1348,
1733,
18,
588,
1305,
12,
54,
10340,
2
] |
if (iMessageOutputLevelChoice == null) { try { iMessageOutputLevelChoice = new Choice(); iMessageOutputLevelChoice.setName("MessageOutputLevelChoice"); iMessageOutputLevelChoice.add("Error"); iMessageOutputLevelChoice.add("Warning"); iMessageOutputLevelChoice.add("Info"); iMessageOutputLevelChoice.add("Verbose"); iMessageOutputLevelChoice.add("Debug"); iMessageOutputLevelChoice.select(2); } catch (Throwable iExc) { handleException(iExc); } } return iMessageOutputLevelChoice; } | if (iMessageOutputLevelChoice == null) { try { iMessageOutputLevelChoice = new Choice(); iMessageOutputLevelChoice.setName("MessageOutputLevelChoice"); iMessageOutputLevelChoice.add("Error"); iMessageOutputLevelChoice.add("Warning"); iMessageOutputLevelChoice.add("Info"); iMessageOutputLevelChoice.add("Verbose"); iMessageOutputLevelChoice.add("Debug"); iMessageOutputLevelChoice.select(2); } catch (Throwable iExc) { handleException(iExc); } } return iMessageOutputLevelChoice; } | private Choice getMessageOutputLevelChoice() { if (iMessageOutputLevelChoice == null) { try { iMessageOutputLevelChoice = new Choice(); iMessageOutputLevelChoice.setName("MessageOutputLevelChoice"); iMessageOutputLevelChoice.add("Error"); iMessageOutputLevelChoice.add("Warning"); iMessageOutputLevelChoice.add("Info"); iMessageOutputLevelChoice.add("Verbose"); iMessageOutputLevelChoice.add("Debug"); iMessageOutputLevelChoice.select(2); } catch (Throwable iExc) { handleException(iExc); } } return iMessageOutputLevelChoice; } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/fcd6548344aa3f590435beff55530cfdb6983588/VAJAntToolGUI.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/ide/VAJAntToolGUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
16432,
2381,
1447,
2355,
10538,
1435,
288,
202,
202,
430,
261,
77,
1079,
1447,
2355,
10538,
422,
446,
13,
288,
1082,
202,
698,
288,
9506,
202,
77,
1079,
1447,
2355,
10538,
273,
394,
16432,
5621,
9506,
202,
77,
1079,
1447,
2355,
10538,
18,
542,
461,
2932,
1079,
1447,
2355,
10538,
8863,
9506,
202,
77,
1079,
1447,
2355,
10538,
18,
1289,
2932,
668,
8863,
9506,
202,
77,
1079,
1447,
2355,
10538,
18,
1289,
2932,
6210,
8863,
9506,
202,
77,
1079,
1447,
2355,
10538,
18,
1289,
2932,
966,
8863,
9506,
202,
77,
1079,
1447,
2355,
10538,
18,
1289,
2932,
14489,
8863,
9506,
202,
77,
1079,
1447,
2355,
10538,
18,
1289,
2932,
2829,
8863,
9506,
202,
77,
1079,
1447,
2355,
10538,
18,
4025,
12,
22,
1769,
1082,
202,
97,
1044,
261,
15155,
277,
29924,
13,
288,
9506,
202,
4110,
503,
12,
77,
29924,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
277,
1079,
1447,
2355,
10538,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
16432,
2381,
1447,
2355,
10538,
1435,
288,
202,
202,
430,
261,
77,
1079,
1447,
2355,
10538,
422,
446,
13,
288,
1082,
202,
698,
288,
9506,
202,
77,
1079,
1447,
2355,
10538,
273,
394,
16432,
5621,
9506,
202,
77,
1079,
1447,
2355,
10538,
18,
542,
461,
2932,
1079,
1447,
2355,
10538,
8863,
9506,
202,
77,
1079,
1447,
2355,
10538,
18,
1289,
2932,
668,
8863,
9506,
202,
77,
1079,
1447,
2355,
10538,
18,
1289,
2932,
6210,
8863,
9506,
202,
77,
1079,
1447,
2355,
10538,
18,
1289,
2932,
966,
8863,
9506,
202,
77,
1079,
1447,
2355,
10538,
18,
1289,
2932,
14489,
8863,
9506,
202,
77,
1079,
1447,
2355,
10538,
18,
1289,
2932,
2829,
8863,
9506,
202,
77,
1079,
1447,
2
] |
_t = __t656; | _t = __t660; | public final void callstate(AST _t) throws RecognitionException { AST callstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t656 = _t; AST tmp588_AST_in = (AST)_t; match(_t,CALL); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { _loop658: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_10.member(_t.getType()))) { expressionorvalue(_t); _t = _retTree; } else { break _loop658; } } while (true); } state_end(_t); _t = _retTree; _t = __t656; _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,
745,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
745,
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,
26,
4313,
273,
389,
88,
31,
202,
202,
9053,
1853,
25,
5482,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
13730,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
3459,
280,
1132,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
67,
6498,
26,
8204,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
430,
14015,
67,
2316,
694,
67,
2163,
18,
5990,
24899,
88,
18,
588,
559,
1435,
20349,
288,
9506,
202,
8692,
280,
1132,
24899,
88,
1769,
9506,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
97,
1082,
202,
12107,
288,
9506,
202,
8820,
389,
6498,
26,
8204,
31,
1082,
202,
97,
6862,
202,
97,
1323,
261,
3767,
1769,
202,
202,
97,
202,
202,
2019,
67,
409,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
67,
88,
273,
1001,
88,
26,
4313,
31,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
67,
1349,
2471,
273,
389,
88,
31,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
745,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
745,
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,
26,
4313,
273,
389,
88,
31,
202,
202,
9053,
1853,
25,
5482,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
13730,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
3459,
280,
1132,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
67,
6498,
26,
8204,
30,
202,
202,
2896,
2
] |
if (definedContextIdsChanged || enabledContextIdsChanged) fireContextManagerChanged( new ContextManagerEvent( this, definedContextIdsChanged, enabledContextIdsChanged)); | if (!contextsEnabled.isEmpty() || !contextsDisabled.isEmpty() || !contextsDefined.isEmpty()) { fireContextManagerChanged(new ContextManagerEvent(this, (String[]) contextsEnabled.toArray(new String[contextsEnabled.size()]), (String[]) contextsDisabled.toArray(new String[contextsDisabled.size()]), (String[]) contextsDefined.toArray(new String[contextsDefined.size()]))); } | private void readRegistry() { Collection contextDefinitions = new ArrayList(); contextDefinitions.addAll(contextRegistry.getContextDefinitions()); Map contextDefinitionsById = new HashMap( ContextDefinition.contextDefinitionsById( contextDefinitions, false)); for (Iterator iterator = contextDefinitionsById.values().iterator(); iterator.hasNext(); ) { ContextDefinition contextDefinition = (ContextDefinition) iterator.next(); String name = contextDefinition.getName(); if (name == null || name.length() == 0) iterator.remove(); } for (Iterator iterator = contextDefinitionsById.keySet().iterator(); iterator.hasNext(); ) if (!isContextDefinitionChildOf(null, (String) iterator.next(), contextDefinitionsById)) iterator.remove(); Map contextContextBindingDefinitionsByParentContextId = ContextContextBindingDefinition .contextContextBindingDefinitionsByParentContextId( contextRegistry.getContextContextBindingDefinitions()); Map contextContextBindingsByParentContextId = new HashMap(); for (Iterator iterator = contextContextBindingDefinitionsByParentContextId .entrySet() .iterator(); iterator.hasNext(); ) { Map.Entry entry = (Map.Entry) iterator.next(); String parentContextId = (String) entry.getKey(); if (contextDefinitionsById.containsKey(parentContextId)) { Collection contextContextBindingDefinitions = (Collection) entry.getValue(); if (contextContextBindingDefinitions != null) for (Iterator iterator2 = contextContextBindingDefinitions.iterator(); iterator2.hasNext(); ) { ContextContextBindingDefinition contextContextBindingDefinition = (ContextContextBindingDefinition) iterator2.next(); String childContextId = contextContextBindingDefinition.getChildContextId(); if (contextDefinitionsById .containsKey(childContextId)) { IContextContextBinding contextContextBinding = new ContextContextBinding( childContextId, parentContextId); Set contextContextBindings = ( Set) contextContextBindingsByParentContextId .get( parentContextId); if (contextContextBindings == null) { contextContextBindings = new HashSet(); contextContextBindingsByParentContextId.put( parentContextId, contextContextBindings); } contextContextBindings.add(contextContextBinding); } } } } this.contextContextBindingsByParentContextId = contextContextBindingsByParentContextId; this.contextDefinitionsById = contextDefinitionsById; boolean definedContextIdsChanged = false; Set definedContextIds = new HashSet(contextDefinitionsById.keySet()); if (!definedContextIds.equals(this.definedContextIds)) { this.definedContextIds = definedContextIds; definedContextIdsChanged = true; } Set enabledContextIds = new HashSet(this.enabledContextIds); getRequiredContextIds(this.enabledContextIds, enabledContextIds); boolean enabledContextIdsChanged = false; if (!this.enabledContextIds.equals(enabledContextIds)) { this.enabledContextIds = enabledContextIds; enabledContextIdsChanged = true; } Map contextEventsByContextId = updateContexts(contextsById.keySet()); if (definedContextIdsChanged || enabledContextIdsChanged) fireContextManagerChanged( new ContextManagerEvent( this, definedContextIdsChanged, enabledContextIdsChanged)); if (contextEventsByContextId != null) notifyContexts(contextEventsByContextId); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/50f2ca10ca784c3f46f44a5bd58b7f66c39fbf84/MutableContextManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/contexts/MutableContextManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
855,
4243,
1435,
288,
202,
202,
2532,
819,
7130,
273,
394,
2407,
5621,
202,
202,
2472,
7130,
18,
1289,
1595,
12,
2472,
4243,
18,
29120,
7130,
10663,
202,
202,
863,
819,
7130,
5132,
273,
1082,
202,
2704,
4317,
12,
9506,
202,
1042,
1852,
18,
2472,
7130,
5132,
12,
6862,
202,
2472,
7130,
16,
6862,
202,
5743,
10019,
202,
202,
1884,
261,
3198,
2775,
273,
819,
7130,
5132,
18,
2372,
7675,
9838,
5621,
1082,
202,
9838,
18,
5332,
2134,
5621,
1082,
202,
13,
288,
1082,
202,
1042,
1852,
819,
1852,
273,
9506,
202,
12,
1042,
1852,
13,
2775,
18,
4285,
5621,
1082,
202,
780,
508,
273,
819,
1852,
18,
17994,
5621,
1082,
202,
430,
261,
529,
422,
446,
747,
508,
18,
2469,
1435,
422,
374,
13,
9506,
202,
9838,
18,
4479,
5621,
202,
202,
97,
202,
202,
1884,
261,
3198,
2775,
273,
819,
7130,
5132,
18,
856,
694,
7675,
9838,
5621,
1082,
202,
9838,
18,
5332,
2134,
5621,
1082,
202,
13,
1082,
202,
430,
16051,
291,
1042,
1852,
1763,
951,
12,
2011,
16,
9506,
202,
12,
780,
13,
2775,
18,
4285,
9334,
9506,
202,
2472,
7130,
5132,
3719,
9506,
202,
9838,
18,
4479,
5621,
202,
202,
863,
819,
1042,
5250,
7130,
858,
3054,
1042,
548,
273,
1082,
202,
1042,
1042,
5250,
1852,
9506,
202,
18,
2472,
1042,
5250,
7130,
858,
3054,
1042,
548,
12,
9506,
202,
2472,
4243,
18,
29120,
1042,
5250,
7130,
10663,
202,
202,
863,
819,
1042,
10497,
858,
3054,
1042,
548,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
855,
4243,
1435,
288,
202,
202,
2532,
819,
7130,
273,
394,
2407,
5621,
202,
202,
2472,
7130,
18,
1289,
1595,
12,
2472,
4243,
18,
29120,
7130,
10663,
202,
202,
863,
819,
7130,
5132,
273,
1082,
202,
2704,
4317,
12,
9506,
202,
1042,
1852,
18,
2472,
7130,
5132,
12,
6862,
202,
2472,
7130,
16,
6862,
202,
5743,
10019,
202,
202,
1884,
261,
3198,
2775,
273,
819,
7130,
5132,
18,
2372,
7675,
9838,
5621,
1082,
202,
9838,
18,
5332,
2134,
5621,
1082,
202,
13,
288,
1082,
202,
1042,
1852,
819,
1852,
273,
9506,
202,
12,
1042,
1852,
13,
2775,
18,
4285,
5621,
1082,
202,
780,
508,
273,
819,
1852,
18,
17994,
5621,
1082,
202,
430,
261,
529,
2
] |
w = new FileWriter( new File( basedir, ".project" ) ); | w = new FileWriter( dotProject ); | protected void write( File projectBaseDir, File basedir, MavenProject project, MavenProject executedProject, List reactorArtifacts, List projectnatures, List buildCommands ) throws MojoExecutionException { FileWriter w; try { w = new FileWriter( new File( basedir, ".project" ) ); //$NON-NLS-1$ } catch ( IOException ex ) { throw new MojoExecutionException( Messages.getString( "EclipsePlugin.erroropeningfile" ), ex ); //$NON-NLS-1$ } XMLWriter writer = new PrettyPrintXMLWriter( w ); writer.startElement( "projectDescription" ); //$NON-NLS-1$ writer.startElement( "name" ); //$NON-NLS-1$ writer.writeText( project.getArtifactId() ); writer.endElement(); // TODO: this entire element might be dropped if the comment is null. // but as the maven1 eclipse plugin does it, it's better to be safe than sorry // A eclipse developer might want to look at this. writer.startElement( "comment" ); //$NON-NLS-1$ if ( project.getDescription() != null ) { writer.writeText( project.getDescription() ); } writer.endElement(); writer.startElement( "projects" ); //$NON-NLS-1$ for ( Iterator it = reactorArtifacts.iterator(); it.hasNext(); ) { writer.startElement( "project" ); //$NON-NLS-1$ writer.writeText( ( (Artifact) it.next() ).getArtifactId() ); writer.endElement(); } writer.endElement(); // projects writer.startElement( "buildSpec" ); //$NON-NLS-1$ for ( Iterator it = buildCommands.iterator(); it.hasNext(); ) { writer.startElement( "buildCommand" ); //$NON-NLS-1$ writer.startElement( "name" ); //$NON-NLS-1$ writer.writeText( (String) it.next() ); writer.endElement(); // name writer.startElement( "arguments" ); //$NON-NLS-1$ writer.endElement(); // arguments writer.endElement(); // buildCommand } writer.endElement(); // buildSpec writer.startElement( "natures" ); //$NON-NLS-1$ for ( Iterator it = projectnatures.iterator(); it.hasNext(); ) { writer.startElement( "nature" ); //$NON-NLS-1$ writer.writeText( (String) it.next() ); writer.endElement(); // name } writer.endElement(); // natures if ( !projectBaseDir.equals( basedir ) ) { writer.startElement( "linkedResources" ); //$NON-NLS-1$ addFileLink( writer, projectBaseDir, basedir, project.getFile() ); addSourceLinks( writer, projectBaseDir, basedir, executedProject.getCompileSourceRoots() ); addResourceLinks( writer, projectBaseDir, basedir, executedProject.getBuild().getResources() ); addSourceLinks( writer, projectBaseDir, basedir, executedProject.getTestCompileSourceRoots() ); addResourceLinks( writer, projectBaseDir, basedir, executedProject.getBuild().getTestResources() ); writer.endElement(); // linedResources } writer.endElement(); // projectDescription IOUtil.close( w ); } | 11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/e6aedd7d5d07e2a6f46de0c9a49efea7a1de7b27/EclipseProjectWriter.java/buggy/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseProjectWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1045,
12,
1387,
1984,
2171,
1621,
16,
1387,
15573,
16,
17176,
4109,
1984,
16,
17176,
4109,
7120,
4109,
16,
12900,
987,
19178,
16981,
16,
987,
1984,
82,
2790,
16,
987,
1361,
9127,
262,
3639,
1216,
18780,
565,
288,
3639,
24639,
341,
31,
3639,
775,
3639,
288,
5411,
341,
273,
394,
24639,
12,
3928,
4109,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
289,
3639,
1044,
261,
1860,
431,
262,
3639,
288,
5411,
604,
394,
18780,
12,
4838,
18,
588,
780,
12,
315,
23057,
10472,
3773,
18,
1636,
3190,
310,
768,
6,
262,
16,
4766,
2868,
431,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
289,
3639,
3167,
2289,
2633,
273,
394,
22328,
5108,
4201,
2289,
12,
341,
11272,
3639,
2633,
18,
1937,
1046,
12,
315,
4406,
3291,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2633,
18,
1937,
1046,
12,
315,
529,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2633,
18,
2626,
1528,
12,
1984,
18,
588,
7581,
548,
1435,
11272,
3639,
2633,
18,
409,
1046,
5621,
3639,
368,
2660,
30,
333,
7278,
930,
4825,
506,
14611,
309,
326,
2879,
353,
446,
18,
3639,
368,
1496,
487,
326,
20499,
21,
6557,
10472,
1909,
1552,
518,
16,
518,
1807,
7844,
358,
506,
4183,
2353,
272,
21637,
3639,
368,
432,
6557,
10472,
8751,
4825,
2545,
358,
2324,
622,
333,
18,
3639,
2633,
18,
1937,
1046,
12,
315,
3469,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
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,
377,
4750,
918,
1045,
12,
1387,
1984,
2171,
1621,
16,
1387,
15573,
16,
17176,
4109,
1984,
16,
17176,
4109,
7120,
4109,
16,
12900,
987,
19178,
16981,
16,
987,
1984,
82,
2790,
16,
987,
1361,
9127,
262,
3639,
1216,
18780,
565,
288,
3639,
24639,
341,
31,
3639,
775,
3639,
288,
5411,
341,
273,
394,
24639,
12,
3928,
4109,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
289,
3639,
1044,
261,
1860,
431,
262,
3639,
288,
5411,
604,
394,
18780,
12,
4838,
18,
588,
780,
12,
315,
23057,
10472,
3773,
18,
1636,
3190,
310,
768,
6,
262,
16,
4766,
2868,
431,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
289,
3639,
3167,
2289,
2633,
273,
394,
22328,
5108,
4201,
2
] |
return new ClobImpl(callerReference, (String) x); | return new ClobImpl(getConnection(callerReference), (String) x); | static Object convert(Object callerReference, Object x, int jdbcType, String charSet) throws SQLException { try { switch (jdbcType) { case java.sql.Types.TINYINT: case java.sql.Types.SMALLINT: case java.sql.Types.INTEGER: if (x == null) { return INTEGER_ZERO; } else if (x instanceof Integer) { return x; } else if (x instanceof Byte) { return new Integer(((Byte)x).byteValue() & 0xFF); } else if (x instanceof Number) { return new Integer(((Number) x).intValue()); } else if (x instanceof String) { return new Integer(((String) x).trim()); } else if (x instanceof Boolean) { return ((Boolean) x).booleanValue() ? INTEGER_ONE : INTEGER_ZERO; } break; case java.sql.Types.BIGINT: if (x == null) { return LONG_ZERO; } else if (x instanceof Long) { return x; } else if (x instanceof Byte) { return new Long(((Byte)x).byteValue() & 0xFF); } else if (x instanceof Number) { return new Long(((Number) x).longValue()); } else if (x instanceof String) { return new Long(((String) x).trim()); } else if (x instanceof Boolean) { return ((Boolean) x).booleanValue() ? LONG_ONE : LONG_ZERO; } break; case java.sql.Types.REAL: if (x == null) { return FLOAT_ZERO; } else if (x instanceof Float) { return x; } else if (x instanceof Byte) { return new Float(((Byte)x).byteValue() & 0xFF); } else if (x instanceof Number) { return new Float(((Number) x).floatValue()); } else if (x instanceof String) { return new Float(((String) x).trim()); } else if (x instanceof Boolean) { return ((Boolean) x).booleanValue() ? FLOAT_ONE : FLOAT_ZERO; } break; case java.sql.Types.FLOAT: case java.sql.Types.DOUBLE: if (x == null) { return DOUBLE_ZERO; } else if (x instanceof Double) { return x; } else if (x instanceof Byte) { return new Double(((Byte)x).byteValue() & 0xFF); } else if (x instanceof Number) { return new Double(((Number) x).doubleValue()); } else if (x instanceof String) { return new Double(((String) x).trim()); } else if (x instanceof Boolean) { return ((Boolean) x).booleanValue() ? DOUBLE_ONE : DOUBLE_ZERO; } break; case java.sql.Types.NUMERIC: case java.sql.Types.DECIMAL: if (x == null) { return null; } else if (x instanceof BigDecimal) { return x; } else if (x instanceof Number) { return new BigDecimal(((Number) x).doubleValue()); } else if (x instanceof String) { return new BigDecimal((String) x); } else if (x instanceof Boolean) { return ((Boolean) x).booleanValue() ? BIG_DECIMAL_ONE : BIG_DECIMAL_ZERO; } break; case java.sql.Types.VARCHAR: case java.sql.Types.CHAR: if (x == null) { return null; } else if (x instanceof String) { return x; } else if (x instanceof BigDecimal) { return bigDecimalToString((BigDecimal) x); } else if (x instanceof Number) { return x.toString(); } else if (x instanceof Boolean) { return((Boolean) x).booleanValue() ? "1" : "0"; } else if (x instanceof Clob) { Clob clob = (Clob) x; long length = clob.length(); if (length > Integer.MAX_VALUE) { throw new SQLException(Messages.get("error.normalize.lobtoobig"), "22000"); } return clob.getSubString(1, (int) length); } else if (x instanceof Blob) { Blob blob = (Blob) x; long length = blob.length(); if (length > Integer.MAX_VALUE) { throw new SQLException(Messages.get("error.normalize.lobtoobig"), "22000"); } x = blob.getBytes(1, (int) length); } if (x instanceof byte[]) { try { return new String((byte[]) x, charSet); } catch (UnsupportedEncodingException e) { return new String((byte[]) x); } } return x.toString(); // Last hope! case java.sql.Types.BIT: case JtdsStatement.BOOLEAN: if (x == null) { return Boolean.FALSE; } else if (x instanceof Boolean) { return x; } else if (x instanceof Number) { return(((Number) x).intValue() == 0) ? Boolean.FALSE : Boolean.TRUE; } else if (x instanceof String) { String tmp = ((String) x).trim(); return (tmp.equals("1") || tmp.equalsIgnoreCase("true")) ? Boolean.TRUE : Boolean.FALSE; } break; case java.sql.Types.VARBINARY: case java.sql.Types.BINARY: if (x == null) { return null; } else if (x instanceof byte[]) { return x; } else if (x instanceof Blob) { Blob blob = (Blob) x; return blob.getBytes(1, (int) blob.length()); } else if (x instanceof Clob) { Clob clob = (Clob) x; long length = clob.length(); if (length > Integer.MAX_VALUE) { throw new SQLException(Messages.get("error.normalize.lobtoobig"), "22000"); } x = clob.getSubString(1, (int) length); } if (x instanceof String) { if (charSet == null) { charSet = "ISO-8859-1"; } try { return ((String) x).getBytes(charSet); } catch (UnsupportedEncodingException e) { return ((String) x).getBytes(); } } else if (x instanceof UniqueIdentifier) { return ((UniqueIdentifier) x).getBytes(); } break; case java.sql.Types.TIMESTAMP: if (x == null) { return null; } else if (x instanceof java.sql.Timestamp) { return x; } else if (x instanceof java.sql.Date) { return new java.sql.Timestamp(((java.sql.Date) x).getTime()); } else if (x instanceof java.sql.Time) { return new java.sql.Timestamp(((java.sql.Time) x).getTime()); } else if (x instanceof java.lang.String) { return java.sql.Timestamp.valueOf(((String)x).trim()); } break; case java.sql.Types.DATE: if (x == null) { return null; } else if (x instanceof java.sql.Date) { return x; } else if (x instanceof java.sql.Time) { return DATE_ZERO; } else if (x instanceof java.sql.Timestamp) { synchronized (cal) { cal.setTime((java.util.Date) x); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0);// VM1.4+ only return new java.sql.Date(cal.getTimeInMillis()); return new java.sql.Date(cal.getTime().getTime()); } } else if (x instanceof java.lang.String) { return java.sql.Date.valueOf(((String) x).trim()); } break; case java.sql.Types.TIME: if (x == null) { return null; } else if (x instanceof java.sql.Time) { return x; } else if (x instanceof java.sql.Date) { return TIME_ZERO; } else if (x instanceof java.sql.Timestamp) { synchronized (cal) {// VM 1.4+ only cal.setTimeInMillis(((java.sql.Timestamp)x).getTime()); cal.setTime((java.util.Date)x); cal.set(Calendar.YEAR, 1970); cal.set(Calendar.MONTH, 0); cal.set(Calendar.DAY_OF_MONTH,1);// VM 1.4+ only return new java.sql.Time(cal.getTimeInMillis());*/ return new java.sql.Time(cal.getTime().getTime()); } } else if (x instanceof java.lang.String) { return java.sql.Time.valueOf(((String) x).trim()); } break; case java.sql.Types.OTHER: return x; case java.sql.Types.JAVA_OBJECT: throw new SQLException( Messages.get("error.convert.badtypes", x.getClass().getName(), getJdbcTypeName(jdbcType)), "22005"); case java.sql.Types.LONGVARBINARY: case java.sql.Types.BLOB: if (x == null) { return null; } else if (x instanceof Blob) { return x; } else if (x instanceof byte[]) { return new BlobImpl(callerReference, (byte[]) x); } else if (x instanceof Clob) { Clob clob = (Clob) x; x = clob.getSubString(1, (int) clob.length()); // FIXME - Use reader to populate Blob } if (x instanceof String) { BlobImpl blob = new BlobImpl(callerReference); String data = (String) x; if (charSet == null) { charSet = "ISO-8859-1"; } try { blob.setBytes(1, data.getBytes(charSet)); } catch (UnsupportedEncodingException e) { blob.setBytes(1, data.getBytes()); } return blob; } break; case java.sql.Types.LONGVARCHAR: case java.sql.Types.CLOB: if (x == null) { return null; } else if (x instanceof Clob) { return x; } else if (x instanceof Blob) { Blob blob = (Blob) x; x = blob.getBytes(1, (int) blob.length()); // FIXME - Use input stream to populate Clob } else if (x instanceof BigDecimal) { x = bigDecimalToString((BigDecimal) x); } else if (x instanceof Boolean) { x = ((Boolean) x).booleanValue() ? "1" : "0"; } else if (!(x instanceof byte[])) { x = x.toString(); } if (x instanceof byte[]) { ClobImpl clob = new ClobImpl(callerReference); byte[] data = (byte[]) x; if (charSet == null) { charSet = "ISO-8859-1"; } try { clob.setString(1, new String(data, charSet)); } catch (UnsupportedEncodingException e) { clob.setString(1, new String(data)); } return clob; } else if (x instanceof String) { return new ClobImpl(callerReference, (String) x); } break; default: throw new SQLException( Messages.get("error.convert.badtypeconst", getJdbcTypeName(jdbcType)), "HY004"); } throw new SQLException( Messages.get("error.convert.badtypes", x.getClass().getName(), getJdbcTypeName(jdbcType)), "22005"); } catch (NumberFormatException nfe) { throw new SQLException( Messages.get("error.convert.badnumber", getJdbcTypeName(jdbcType)), "22000"); } } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/db482abe1dc2b76173b189e34e40e9f2a0f2b09a/Support.java/buggy/src/main/net/sourceforge/jtds/jdbc/Support.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
1765,
12,
921,
4894,
2404,
16,
1033,
619,
16,
509,
16579,
559,
16,
514,
1149,
694,
13,
5411,
1216,
6483,
288,
3639,
775,
288,
5411,
1620,
261,
24687,
559,
13,
288,
7734,
648,
2252,
18,
4669,
18,
2016,
18,
56,
31853,
3217,
30,
7734,
648,
2252,
18,
4669,
18,
2016,
18,
23882,
3217,
30,
7734,
648,
2252,
18,
4669,
18,
2016,
18,
14217,
30,
10792,
309,
261,
92,
422,
446,
13,
288,
13491,
327,
16481,
67,
24968,
31,
10792,
289,
469,
309,
261,
92,
1276,
2144,
13,
288,
13491,
327,
619,
31,
10792,
289,
469,
309,
261,
92,
1276,
3506,
13,
288,
13491,
327,
394,
2144,
12443,
12,
3216,
13,
92,
2934,
7229,
620,
1435,
473,
374,
6356,
1769,
10792,
289,
469,
309,
261,
92,
1276,
3588,
13,
288,
13491,
327,
394,
2144,
12443,
12,
1854,
13,
619,
2934,
474,
620,
10663,
10792,
289,
469,
309,
261,
92,
1276,
514,
13,
288,
13491,
327,
394,
2144,
12443,
12,
780,
13,
619,
2934,
5290,
10663,
10792,
289,
469,
309,
261,
92,
1276,
3411,
13,
288,
13491,
327,
14015,
5507,
13,
619,
2934,
6494,
620,
1435,
692,
16481,
67,
5998,
294,
16481,
67,
24968,
31,
10792,
289,
10792,
898,
31,
7734,
648,
2252,
18,
4669,
18,
2016,
18,
19044,
3217,
30,
10792,
309,
261,
92,
422,
446,
13,
288,
13491,
327,
14011,
67,
24968,
31,
10792,
289,
469,
309,
261,
92,
1276,
3407,
13,
288,
13491,
327,
619,
31,
10792,
289,
469,
309,
261,
92,
1276,
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,
1033,
1765,
12,
921,
4894,
2404,
16,
1033,
619,
16,
509,
16579,
559,
16,
514,
1149,
694,
13,
5411,
1216,
6483,
288,
3639,
775,
288,
5411,
1620,
261,
24687,
559,
13,
288,
7734,
648,
2252,
18,
4669,
18,
2016,
18,
56,
31853,
3217,
30,
7734,
648,
2252,
18,
4669,
18,
2016,
18,
23882,
3217,
30,
7734,
648,
2252,
18,
4669,
18,
2016,
18,
14217,
30,
10792,
309,
261,
92,
422,
446,
13,
288,
13491,
327,
16481,
67,
24968,
31,
10792,
289,
469,
309,
261,
92,
1276,
2144,
13,
288,
13491,
327,
619,
31,
10792,
289,
469,
309,
261,
92,
1276,
3506,
13,
288,
13491,
327,
394,
2144,
12443,
12,
3216,
13,
92,
2934,
7229,
620,
1435,
473,
2
] |
for (Iterator classIter = classList.iterator(); classIter.hasNext();) | for ( PCClass pcClass : classList ) | public List getSpellClassList() { final List aList = new ArrayList(); if (!race.getSpellSupport().getCharacterSpell(null, "", -1).isEmpty()) { aList.add(race); } for (Iterator classIter = classList.iterator(); classIter.hasNext();) { final PObject aObject = (PObject) classIter.next(); if (!aObject.getSpellSupport().getCharacterSpell(null, "", -1).isEmpty()) { aList.add(aObject); } else if (aObject instanceof PCClass) { if (!((PCClass) aObject).getSpellType().equalsIgnoreCase("None")) { aList.add(aObject); } } } return aList; } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/eb5f93299afbba8e2b27cdc67dfddc016c5d86a9/PlayerCharacter.java/buggy/code/src/java/pcgen/core/PlayerCharacter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
1322,
84,
1165,
30546,
1435,
202,
95,
202,
202,
6385,
987,
279,
682,
273,
394,
2407,
5621,
202,
202,
430,
16051,
9963,
18,
588,
3389,
1165,
6289,
7675,
588,
7069,
3389,
1165,
12,
2011,
16,
23453,
300,
21,
2934,
291,
1921,
10756,
202,
202,
95,
1082,
202,
69,
682,
18,
1289,
12,
9963,
1769,
202,
202,
97,
202,
202,
1884,
261,
3198,
667,
2360,
273,
16035,
18,
9838,
5621,
667,
2360,
18,
5332,
2134,
5621,
13,
202,
202,
95,
1082,
202,
6385,
453,
921,
279,
921,
273,
261,
52,
921,
13,
667,
2360,
18,
4285,
5621,
1082,
202,
430,
16051,
69,
921,
18,
588,
3389,
1165,
6289,
7675,
588,
7069,
3389,
1165,
12,
2011,
16,
23453,
300,
21,
2934,
291,
1921,
10756,
1082,
202,
95,
9506,
202,
69,
682,
18,
1289,
12,
69,
921,
1769,
1082,
202,
97,
1082,
202,
12107,
309,
261,
69,
921,
1276,
26300,
797,
13,
1082,
202,
95,
9506,
202,
430,
16051,
12443,
3513,
797,
13,
279,
921,
2934,
588,
3389,
1165,
559,
7675,
14963,
5556,
2932,
7036,
6,
3719,
9506,
202,
95,
6862,
202,
69,
682,
18,
1289,
12,
69,
921,
1769,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
279,
682,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
1322,
84,
1165,
30546,
1435,
202,
95,
202,
202,
6385,
987,
279,
682,
273,
394,
2407,
5621,
202,
202,
430,
16051,
9963,
18,
588,
3389,
1165,
6289,
7675,
588,
7069,
3389,
1165,
12,
2011,
16,
23453,
300,
21,
2934,
291,
1921,
10756,
202,
202,
95,
1082,
202,
69,
682,
18,
1289,
12,
9963,
1769,
202,
202,
97,
202,
202,
1884,
261,
3198,
667,
2360,
273,
16035,
18,
9838,
5621,
667,
2360,
18,
5332,
2134,
5621,
13,
202,
202,
95,
1082,
202,
6385,
453,
921,
279,
921,
273,
261,
52,
921,
13,
667,
2360,
18,
4285,
5621,
1082,
202,
430,
16051,
69,
921,
18,
588,
3389,
1165,
6289,
7675,
588,
7069,
3389,
1165,
12,
2011,
16,
2
] |
Global global = getInstance(thisObj); | Global global = getInstance(funObj); | public static Object runCommand(Context cx, Scriptable thisObj, Object[] args, Function funObj) throws IOException { int L = args.length; if (L == 0 || (L == 1 && args[0] instanceof Scriptable)) { throw reportRuntimeError("msg.runCommand.bad.args"); } InputStream in = null; OutputStream out = null, err = null; ByteArrayOutputStream outBytes = null, errBytes = null; Object outObj = null, errObj = null; String[] environment = null; Scriptable params = null; Object[] addArgs = null; if (args[L - 1] instanceof Scriptable) { params = (Scriptable)args[L - 1]; --L; Object envObj = ScriptableObject.getProperty(params, "env"); if (envObj != Scriptable.NOT_FOUND) { if (envObj == null) { environment = new String[0]; } else { if (!(envObj instanceof Scriptable)) { throw reportRuntimeError("msg.runCommand.bad.env"); } Scriptable envHash = (Scriptable)envObj; Object[] ids = ScriptableObject.getPropertyIds(envHash); environment = new String[ids.length]; for (int i = 0; i != ids.length; ++i) { Object keyObj = ids[i], val; String key; if (keyObj instanceof String) { key = (String)keyObj; val = ScriptableObject.getProperty(envHash, key); } else { int ikey = ((Number)keyObj).intValue(); key = Integer.toString(ikey); val = ScriptableObject.getProperty(envHash, ikey); } if (val == ScriptableObject.NOT_FOUND) { val = Undefined.instance; } environment[i] = key+'='+ScriptRuntime.toString(val); } } } Object inObj = ScriptableObject.getProperty(params, "input"); if (inObj != Scriptable.NOT_FOUND) { in = toInputStream(inObj); } outObj = ScriptableObject.getProperty(params, "output"); if (outObj != Scriptable.NOT_FOUND) { out = toOutputStream(outObj); if (out == null) { outBytes = new ByteArrayOutputStream(); out = outBytes; } } errObj = ScriptableObject.getProperty(params, "err"); if (errObj != Scriptable.NOT_FOUND) { err = toOutputStream(errObj); if (err == null) { errBytes = new ByteArrayOutputStream(); err = errBytes; } } Object addArgsObj = ScriptableObject.getProperty(params, "args"); if (addArgsObj != Scriptable.NOT_FOUND) { Scriptable s = Context.toObject(addArgsObj, getTopLevelScope(thisObj)); addArgs = cx.getElements(s); } } Global global = getInstance(thisObj); if (out == null) { out = (global != null) ? global.getOut() : System.out; } if (err == null) { err = (global != null) ? global.getErr() : System.err; } // If no explicit input stream, do not send any input to process, // in particular, do not use System.in to avoid deadlocks // when waiting for user input to send to process which is already // terminated as it is not always possible to interrupt read method. String[] cmd = new String[(addArgs == null) ? L : L + addArgs.length]; for (int i = 0; i != L; ++i) { cmd[i] = ScriptRuntime.toString(args[i]); } if (addArgs != null) { for (int i = 0; i != addArgs.length; ++i) { cmd[L + i] = ScriptRuntime.toString(addArgs[i]); } } int exitCode = runProcess(cmd, environment, in, out, err); if (outBytes != null) { String s = ScriptRuntime.toString(outObj) + outBytes.toString(); ScriptableObject.putProperty(params, "output", s); } if (errBytes != null) { String s = ScriptRuntime.toString(errObj) + errBytes.toString(); ScriptableObject.putProperty(params, "err", s); } return new Integer(exitCode); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/f33158e1f3ca50dd2d54de255aa8870a9f06997d/Global.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/shell/Global.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
31933,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
565,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
3639,
1216,
1860,
565,
288,
3639,
509,
511,
273,
833,
18,
2469,
31,
3639,
309,
261,
48,
422,
374,
747,
261,
48,
422,
404,
597,
833,
63,
20,
65,
1276,
22780,
3719,
288,
5411,
604,
2605,
5576,
668,
2932,
3576,
18,
2681,
2189,
18,
8759,
18,
1968,
8863,
3639,
289,
3639,
5037,
316,
273,
446,
31,
3639,
8962,
596,
273,
446,
16,
393,
273,
446,
31,
3639,
11559,
596,
2160,
273,
446,
16,
393,
2160,
273,
446,
31,
3639,
1033,
596,
2675,
273,
446,
16,
393,
2675,
273,
446,
31,
3639,
514,
8526,
3330,
273,
446,
31,
3639,
22780,
859,
273,
446,
31,
3639,
1033,
8526,
527,
2615,
273,
446,
31,
3639,
309,
261,
1968,
63,
48,
300,
404,
65,
1276,
22780,
13,
288,
5411,
859,
273,
261,
3651,
429,
13,
1968,
63,
48,
300,
404,
15533,
5411,
1493,
48,
31,
5411,
1033,
1550,
2675,
273,
22780,
921,
18,
588,
1396,
12,
2010,
16,
315,
3074,
8863,
5411,
309,
261,
3074,
2675,
480,
22780,
18,
4400,
67,
9294,
13,
288,
7734,
309,
261,
3074,
2675,
422,
446,
13,
288,
10792,
3330,
273,
394,
514,
63,
20,
15533,
7734,
289,
469,
288,
10792,
309,
16051,
12,
3074,
2675,
1276,
22780,
3719,
288,
13491,
604,
2605,
5576,
668,
2932,
3576,
18,
2681,
2189,
18,
8759,
18,
3074,
8863,
10792,
289,
10792,
22780,
1550,
2310,
273,
261,
3651,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
31933,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
565,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
3639,
1216,
1860,
565,
288,
3639,
509,
511,
273,
833,
18,
2469,
31,
3639,
309,
261,
48,
422,
374,
747,
261,
48,
422,
404,
597,
833,
63,
20,
65,
1276,
22780,
3719,
288,
5411,
604,
2605,
5576,
668,
2932,
3576,
18,
2681,
2189,
18,
8759,
18,
1968,
8863,
3639,
289,
3639,
5037,
316,
273,
446,
31,
3639,
8962,
596,
273,
446,
16,
393,
273,
446,
31,
3639,
11559,
596,
2160,
273,
446,
16,
393,
2160,
273,
446,
31,
3639,
1033,
596,
2675,
273,
446,
16,
393,
2675,
273,
446,
31,
3639,
514,
8526,
3330,
273,
446,
31,
2
] |
c.setTime(dtStart.getTime()); | c.setTime(dtStart.getDate()); | protected static void setDtStartPropertyNode(Component component, Node componentNode) throws RepositoryException { DtStart dtStart = ICalendarUtils.getDtStart(component); if (dtStart != null) { Node propertyNode = getICalendarPropertyNode(NN_ICAL_DTSTART, componentNode); setValueProperty(dtStart, propertyNode); setXParameterProperties(dtStart, propertyNode); java.util.Calendar c = java.util.Calendar.getInstance(); c.setTime(dtStart.getTime()); propertyNode.setProperty(NP_ICAL_DATETIME, c); propertyNode.setProperty(NP_ICAL_UTC, dtStart.isUtc()); setTzIdParameterProperty(dtStart, propertyNode); setValueParameterProperty(dtStart, propertyNode); } } | 47226 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47226/804d403cb17249f8249285b60d148ca4a483b422/JcrCalendarMapper.java/clean/src/main/java/org/osaf/cosmo/dao/jcr/JcrCalendarMapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
918,
444,
19739,
1685,
1396,
907,
12,
1841,
1794,
16,
4766,
1850,
2029,
1794,
907,
13,
3639,
1216,
13367,
288,
3639,
463,
88,
1685,
3681,
1685,
273,
467,
7335,
1989,
18,
588,
19739,
1685,
12,
4652,
1769,
3639,
309,
261,
7510,
1685,
480,
446,
13,
288,
5411,
2029,
1272,
907,
273,
7734,
336,
2871,
287,
2843,
1396,
907,
12,
12225,
67,
10109,
67,
9081,
7570,
16,
1794,
907,
1769,
5411,
5524,
1396,
12,
7510,
1685,
16,
1272,
907,
1769,
5411,
23733,
1662,
2297,
12,
7510,
1685,
16,
1272,
907,
1769,
5411,
2252,
18,
1367,
18,
7335,
276,
273,
2252,
18,
1367,
18,
7335,
18,
588,
1442,
5621,
5411,
276,
18,
542,
950,
12,
7510,
1685,
18,
588,
1626,
10663,
5411,
1272,
907,
18,
542,
1396,
12,
23430,
67,
10109,
67,
22968,
16,
276,
1769,
5411,
1272,
907,
18,
542,
1396,
12,
23430,
67,
10109,
67,
11471,
16,
3681,
1685,
18,
291,
57,
5111,
10663,
5411,
444,
56,
94,
548,
1662,
1396,
12,
7510,
1685,
16,
1272,
907,
1769,
5411,
5524,
1662,
1396,
12,
7510,
1685,
16,
1272,
907,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
760,
918,
444,
19739,
1685,
1396,
907,
12,
1841,
1794,
16,
4766,
1850,
2029,
1794,
907,
13,
3639,
1216,
13367,
288,
3639,
463,
88,
1685,
3681,
1685,
273,
467,
7335,
1989,
18,
588,
19739,
1685,
12,
4652,
1769,
3639,
309,
261,
7510,
1685,
480,
446,
13,
288,
5411,
2029,
1272,
907,
273,
7734,
336,
2871,
287,
2843,
1396,
907,
12,
12225,
67,
10109,
67,
9081,
7570,
16,
1794,
907,
1769,
5411,
5524,
1396,
12,
7510,
1685,
16,
1272,
907,
1769,
5411,
23733,
1662,
2297,
12,
7510,
1685,
16,
1272,
907,
1769,
5411,
2252,
18,
1367,
18,
7335,
276,
273,
2252,
18,
1367,
18,
7335,
18,
588,
1442,
5621,
5411,
276,
18,
542,
950,
12,
7510,
1685,
18,
2
] |
char attr = readChar(ch); | char attr = readCodePoint((int)ch); | public static int digit(char ch, int radix) { if (radix < MIN_RADIX || radix > MAX_RADIX) return -1; char attr = readChar(ch); if (((1 << (attr & TYPE_MASK)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << DECIMAL_DIGIT_NUMBER))) != 0) { // Signedness doesn't matter; 0xffff vs. -1 are both rejected. int digit = numValue[attr >> 7]; return (digit < radix) ? digit : -1; } return -1; } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/3878be593002f301580025b16c264e41f364beae/Character.java/clean/libraries/javalib/external/classpath/java/lang/Character.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
509,
8035,
12,
3001,
462,
16,
509,
19015,
13,
225,
288,
565,
309,
261,
6012,
697,
411,
6989,
67,
28829,
12507,
747,
19015,
405,
4552,
67,
28829,
12507,
13,
1377,
327,
300,
21,
31,
565,
1149,
1604,
273,
855,
31536,
12443,
474,
13,
343,
1769,
565,
309,
261,
12443,
21,
2296,
261,
1747,
473,
3463,
67,
11704,
3719,
540,
473,
14015,
21,
2296,
29290,
13415,
67,
26379,
13,
5411,
571,
261,
21,
2296,
29819,
13415,
67,
26379,
13,
5411,
571,
261,
21,
2296,
25429,
67,
21243,
1285,
67,
9931,
20349,
480,
374,
13,
1377,
288,
3639,
368,
16724,
4496,
3302,
1404,
15177,
31,
374,
20431,
6195,
18,
300,
21,
854,
3937,
11876,
18,
3639,
509,
8035,
273,
818,
620,
63,
1747,
1671,
2371,
15533,
3639,
327,
261,
11052,
411,
19015,
13,
692,
8035,
294,
300,
21,
31,
1377,
289,
565,
327,
300,
21,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
509,
8035,
12,
3001,
462,
16,
509,
19015,
13,
225,
288,
565,
309,
261,
6012,
697,
411,
6989,
67,
28829,
12507,
747,
19015,
405,
4552,
67,
28829,
12507,
13,
1377,
327,
300,
21,
31,
565,
1149,
1604,
273,
855,
31536,
12443,
474,
13,
343,
1769,
565,
309,
261,
12443,
21,
2296,
261,
1747,
473,
3463,
67,
11704,
3719,
540,
473,
14015,
21,
2296,
29290,
13415,
67,
26379,
13,
5411,
571,
261,
21,
2296,
29819,
13415,
67,
26379,
13,
5411,
571,
261,
21,
2296,
25429,
67,
21243,
1285,
67,
9931,
20349,
480,
374,
13,
1377,
288,
3639,
368,
16724,
4496,
3302,
1404,
15177,
31,
374,
20431,
6195,
18,
300,
21,
854,
3937,
11876,
18,
3639,
509,
8035,
2
] |
public static void invalidateSSOTicket(final String ssoTicketId) throws IllegalInputException, InoperableStateException { | public static void invalidateSSOTicket(final String ssoTicketId) throws IllegalInputException, InoperableStateException { | public static void invalidateSSOTicket(final String ssoTicketId) throws IllegalInputException, InoperableStateException { /* Check controller state */ if (!ready) { throw new InoperableStateException(NOT_READY); } /* Validate argument */ if (ssoTicketId == null || ssoTicketId.equals("")) { throw new IllegalInputException("'ssoTicketId' must be a non-empty string."); } try { store.removeSSOTicket(ssoTicketId); } catch (NonExistentTicketException e) { /* We don't care, it's just removal of a ticket */ messageLogger.logDebug(CAUGHT_NONEXISTENT_TICKET + ", OK since we tried to remove"); } catch (InvalidTicketException e) { /* We don't care, it's just removal of a ticket */ messageLogger.logWarn(CAUGHT_INVALID_TICKET + ", strange...expected SSO ticket, ignoring", e); } catch (MoriaStoreException e) { messageLogger.logCritical(CAUGHT_STORE, e); throw new InoperableStateException(STORE_DOWN); } accessLogger.logUser(AccessStatusType.SSO_TICKET_INVALIDATED, null, null, ssoTicketId, null); } | 1637 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1637/eaf64b8eda79a005e6c05d482fef1a43fceccb37/MoriaController.java/buggy/moria2/modules/moria-ctrl/src/java/no/feide/moria/controller/MoriaController.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
11587,
1260,
1974,
29378,
12,
6385,
514,
27250,
13614,
548,
13,
1216,
2141,
20518,
16,
28524,
5411,
657,
4063,
429,
5060,
288,
3639,
1748,
2073,
2596,
919,
1195,
3639,
309,
16051,
1672,
13,
288,
5411,
604,
394,
657,
4063,
429,
5060,
12,
4400,
67,
20305,
1769,
3639,
289,
3639,
1748,
3554,
1237,
1195,
3639,
309,
261,
31269,
13614,
548,
422,
446,
747,
27250,
13614,
548,
18,
14963,
2932,
6,
3719,
288,
5411,
604,
394,
2141,
20518,
29823,
31269,
13614,
548,
11,
1297,
506,
279,
1661,
17,
5531,
533,
1199,
1769,
3639,
289,
3639,
775,
288,
5411,
1707,
18,
4479,
1260,
1974,
29378,
12,
31269,
13614,
548,
1769,
3639,
289,
1044,
261,
3989,
4786,
319,
13614,
503,
425,
13,
288,
5411,
1748,
1660,
2727,
1404,
7671,
16,
518,
1807,
2537,
14817,
434,
279,
9322,
1195,
5411,
883,
3328,
18,
1330,
2829,
12,
3587,
57,
9947,
67,
3993,
11838,
2222,
67,
56,
16656,
1584,
397,
3104,
7791,
3241,
732,
12928,
358,
1206,
8863,
3639,
289,
1044,
261,
1941,
13614,
503,
425,
13,
288,
5411,
1748,
1660,
2727,
1404,
7671,
16,
518,
1807,
2537,
14817,
434,
279,
9322,
1195,
5411,
883,
3328,
18,
1330,
3160,
12,
3587,
57,
9947,
67,
9347,
67,
56,
16656,
1584,
397,
3104,
609,
726,
2777,
3825,
24802,
9322,
16,
14398,
3113,
425,
1769,
3639,
289,
1044,
261,
49,
280,
1155,
21151,
425,
13,
288,
5411,
883,
3328,
18,
1330,
30286,
12,
3587,
57,
9947,
67,
13651,
16,
425,
1769,
5411,
604,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
11587,
1260,
1974,
29378,
12,
6385,
514,
27250,
13614,
548,
13,
1216,
2141,
20518,
16,
28524,
5411,
657,
4063,
429,
5060,
288,
3639,
1748,
2073,
2596,
919,
1195,
3639,
309,
16051,
1672,
13,
288,
5411,
604,
394,
657,
4063,
429,
5060,
12,
4400,
67,
20305,
1769,
3639,
289,
3639,
1748,
3554,
1237,
1195,
3639,
309,
261,
31269,
13614,
548,
422,
446,
747,
27250,
13614,
548,
18,
14963,
2932,
6,
3719,
288,
5411,
604,
394,
2141,
20518,
29823,
31269,
13614,
548,
11,
1297,
506,
279,
1661,
17,
5531,
533,
1199,
1769,
3639,
289,
3639,
775,
288,
5411,
1707,
18,
4479,
1260,
1974,
29378,
12,
31269,
13614,
548,
1769,
3639,
289,
1044,
261,
3989,
4786,
319,
13614,
2
] |
scope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(getContainer().getSelectedWorkingSets()); | scope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(getContainer().getSelectedWorkingSets(), includeJRE); | private boolean performOldSearch() { org.eclipse.search.ui.SearchUI.activateSearchResultView(); SearchPatternData data= getPatternData(); IWorkspace workspace= JavaPlugin.getWorkspace(); // Setup search scope IJavaSearchScope scope= null; String scopeDescription= ""; //$NON-NLS-1$ switch (getContainer().getSelectedScope()) { case ISearchPageContainer.WORKSPACE_SCOPE: scopeDescription= SearchMessages.getString("WorkspaceScope"); //$NON-NLS-1$ scope= SearchEngine.createWorkspaceScope(); break; case ISearchPageContainer.SELECTION_SCOPE: scopeDescription= SearchMessages.getString("SelectionScope"); //$NON-NLS-1$ scope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(fStructuredSelection); break; case ISearchPageContainer.SELECTED_PROJECTS_SCOPE: scope= JavaSearchScopeFactory.getInstance().createJavaProjectSearchScope(fStructuredSelection); IProject[] projects= JavaSearchScopeFactory.getInstance().getProjects(scope); if (projects.length > 1) scopeDescription= SearchMessages.getFormattedString("EnclosingProjectsScope", projects[0].getName()); //$NON-NLS-1$ else if (projects.length == 1) scopeDescription= SearchMessages.getFormattedString("EnclosingProjectScope", projects[0].getName()); //$NON-NLS-1$ else scopeDescription= SearchMessages.getFormattedString("EnclosingProjectScope", ""); //$NON-NLS-1$ //$NON-NLS-2$ break; case ISearchPageContainer.WORKING_SET_SCOPE: IWorkingSet[] workingSets= getContainer().getSelectedWorkingSets(); // should not happen - just to be sure if (workingSets == null || workingSets.length < 1) return false; scopeDescription= SearchMessages.getFormattedString("WorkingSetScope", SearchUtil.toString(workingSets)); //$NON-NLS-1$ scope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(getContainer().getSelectedWorkingSets()); SearchUtil.updateLRUWorkingSets(getContainer().getSelectedWorkingSets()); } JavaSearchResultCollector collector= new JavaSearchResultCollector(); JavaSearchOperation op= null; if (data.getJavaElement() != null && getPattern().equals(fInitialData.getPattern())) { op= new JavaSearchOperation(workspace, data.getJavaElement(), data.getLimitTo(), scope, scopeDescription, collector); if (data.getLimitTo() == IJavaSearchConstants.REFERENCES) SearchUtil.warnIfBinaryConstant(data.getJavaElement(), getShell()); } else { data.setJavaElement(null); op= new JavaSearchOperation(workspace, data.getPattern(), data.isCaseSensitive(), data.getSearchFor(), data.getLimitTo(), scope, scopeDescription, collector); } Shell shell= getControl().getShell(); try { getContainer().getRunnableContext().run(true, true, op); } catch (InvocationTargetException ex) { ExceptionHandler.handle(ex, shell, SearchMessages.getString("Search.Error.search.title"), SearchMessages.getString("Search.Error.search.message")); //$NON-NLS-2$ //$NON-NLS-1$ return false; } catch (InterruptedException ex) { return false; } return true; } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/a0c498e740c202873e7533830973c913421c71c6/JavaSearchPage.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
3073,
7617,
2979,
1435,
288,
202,
202,
3341,
18,
20416,
18,
3072,
18,
4881,
18,
2979,
5370,
18,
10014,
24916,
1767,
5621,
202,
202,
2979,
3234,
751,
501,
33,
23420,
751,
5621,
202,
202,
45,
8241,
6003,
33,
5110,
3773,
18,
588,
8241,
5621,
202,
202,
759,
10939,
1623,
2146,
202,
202,
45,
5852,
2979,
3876,
2146,
33,
446,
31,
202,
202,
780,
2146,
3291,
33,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
9610,
261,
588,
2170,
7675,
588,
7416,
3876,
10756,
288,
1082,
202,
3593,
467,
2979,
1964,
2170,
18,
10566,
6616,
67,
19444,
30,
9506,
202,
4887,
3291,
33,
5167,
5058,
18,
588,
780,
2932,
8241,
3876,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
4887,
33,
5167,
4410,
18,
2640,
8241,
3876,
5621,
9506,
202,
8820,
31,
1082,
202,
3593,
467,
2979,
1964,
2170,
18,
1090,
15445,
67,
19444,
30,
9506,
202,
4887,
3291,
33,
5167,
5058,
18,
588,
780,
2932,
6233,
3876,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
4887,
33,
5110,
2979,
3876,
1733,
18,
588,
1442,
7675,
2640,
5852,
2979,
3876,
12,
74,
30733,
6233,
1769,
9506,
202,
8820,
31,
1082,
202,
3593,
467,
2979,
1964,
2170,
18,
4803,
2056,
67,
17147,
55,
67,
19444,
30,
9506,
202,
4887,
33,
5110,
2979,
3876,
1733,
18,
588,
1442,
7675,
2640,
5852,
4109,
2979,
3876,
12,
74,
30733,
6233,
1769,
9506,
202,
45,
4109,
8526,
10137,
33,
5110,
2979,
3876,
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,
1250,
3073,
7617,
2979,
1435,
288,
202,
202,
3341,
18,
20416,
18,
3072,
18,
4881,
18,
2979,
5370,
18,
10014,
24916,
1767,
5621,
202,
202,
2979,
3234,
751,
501,
33,
23420,
751,
5621,
202,
202,
45,
8241,
6003,
33,
5110,
3773,
18,
588,
8241,
5621,
202,
202,
759,
10939,
1623,
2146,
202,
202,
45,
5852,
2979,
3876,
2146,
33,
446,
31,
202,
202,
780,
2146,
3291,
33,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
9610,
261,
588,
2170,
7675,
588,
7416,
3876,
10756,
288,
1082,
202,
3593,
467,
2979,
1964,
2170,
18,
10566,
6616,
67,
19444,
30,
9506,
202,
4887,
3291,
33,
5167,
5058,
18,
588,
780,
2932,
8241,
3876,
8863,
4329,
2
] |
public int gcHeaderWords() { return MarkSweepSpace.GC_HEADER_WORDS_REQUIRED; } | public int gcHeaderWords() { return MarkSweepSpace.GC_HEADER_WORDS_REQUIRED; } | public int gcHeaderWords() { return MarkSweepSpace.GC_HEADER_WORDS_REQUIRED; } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/57a34fa3e6e607d84b46e06082997a4771a25a85/MSConstraints.java/buggy/MMTk/src/org/mmtk/plan/marksweep/MSConstraints.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
8859,
1864,
7363,
1435,
288,
327,
6622,
55,
25236,
3819,
18,
15396,
67,
7557,
67,
23287,
67,
14977,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
8859,
1864,
7363,
1435,
288,
327,
6622,
55,
25236,
3819,
18,
15396,
67,
7557,
67,
23287,
67,
14977,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
trace("num of vars is: "+numVars); int[] outovr_drdaType = null; if (first) { outovr_drdaType = new int[numVars]; first = false; } else { int[] oldoutovr_drdaType = stmt.getOutovr_drdaType(); int oldlen = oldoutovr_drdaType.length; outovr_drdaType = new int[oldlen + numVars]; System.arraycopy(oldoutovr_drdaType, 0, outovr_drdaType,0, oldlen); start = oldlen; } for (int i = start; i < numVars + start; i++) { outovr_drdaType[i] = reader.readUnsignedByte(); if (SanityManager.DEBUG) trace("drdaType is: "+ outovr_drdaType[i]); precision = reader.readNetworkShort(); if (SanityManager.DEBUG) trace("drdaLength is: "+precision); outovr_drdaType[i] |= (precision << 8); } stmt.setOutovr_drdaType(outovr_drdaType); } } | trace("drdaType is: "+ outovr_drdaType[i]); precision = reader.readNetworkShort(); if (SanityManager.DEBUG) trace("drdaLength is: "+precision); outovr_drdaType[i] |= (precision << 8); } stmt.setOutovr_drdaType(outovr_drdaType); } } | private void parseOUTOVR(DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean first = true; int numVars; int dtaGrpLen; int tripType; int tripId; int precision; int start = 0; while (true) { dtaGrpLen = reader.readUnsignedByte(); tripType = reader.readUnsignedByte(); tripId = reader.readUnsignedByte(); // check if we have reached the end of the data if (tripType == FdocaConstants.RLO_TRIPLET_TYPE) { //read last part of footer reader.skipBytes(); break; } numVars = (dtaGrpLen - 3) / 3; if (SanityManager.DEBUG) trace("num of vars is: "+numVars); int[] outovr_drdaType = null; if (first) { outovr_drdaType = new int[numVars]; first = false; } else { int[] oldoutovr_drdaType = stmt.getOutovr_drdaType(); int oldlen = oldoutovr_drdaType.length; // create new array and copy over already read stuff outovr_drdaType = new int[oldlen + numVars]; System.arraycopy(oldoutovr_drdaType, 0, outovr_drdaType,0, oldlen); start = oldlen; } for (int i = start; i < numVars + start; i++) { outovr_drdaType[i] = reader.readUnsignedByte(); if (SanityManager.DEBUG) trace("drdaType is: "+ outovr_drdaType[i]); precision = reader.readNetworkShort(); if (SanityManager.DEBUG) trace("drdaLength is: "+precision); outovr_drdaType[i] |= (precision << 8); } stmt.setOutovr_drdaType(outovr_drdaType); } } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/9ab36fe5be3632bbd1703a025618a585f0db4a57/DRDAConnThread.java/buggy/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1109,
5069,
51,
10986,
12,
6331,
9793,
3406,
3480,
13,
1216,
16801,
9793,
5752,
503,
16,
6483,
202,
95,
202,
202,
6494,
1122,
273,
638,
31,
202,
202,
474,
818,
5555,
31,
202,
202,
474,
302,
2351,
43,
13832,
2891,
31,
202,
202,
474,
20654,
559,
31,
202,
202,
474,
20654,
548,
31,
202,
202,
474,
6039,
31,
202,
202,
474,
787,
273,
374,
31,
202,
202,
17523,
261,
3767,
13,
202,
202,
95,
1082,
202,
72,
2351,
43,
13832,
2891,
273,
2949,
18,
896,
13290,
3216,
5621,
1082,
202,
25125,
559,
273,
2949,
18,
896,
13290,
3216,
5621,
1082,
202,
25125,
548,
273,
2949,
18,
896,
13290,
3216,
5621,
1082,
202,
759,
866,
309,
732,
1240,
8675,
326,
679,
434,
326,
501,
1082,
202,
430,
261,
25125,
559,
422,
478,
2434,
69,
2918,
18,
54,
1502,
67,
6566,
52,
15146,
67,
2399,
13,
1082,
202,
95,
9506,
202,
759,
896,
1142,
1087,
434,
9860,
9506,
202,
10530,
18,
7457,
2160,
5621,
9506,
202,
8820,
31,
1082,
202,
97,
1082,
202,
2107,
5555,
273,
261,
72,
2351,
43,
13832,
2891,
300,
890,
13,
342,
890,
31,
1082,
202,
430,
261,
55,
10417,
1318,
18,
9394,
13,
9506,
202,
5129,
2932,
2107,
434,
4153,
353,
30,
13773,
2107,
5555,
1769,
1082,
202,
474,
8526,
596,
1527,
86,
67,
3069,
2414,
559,
273,
446,
31,
1082,
202,
430,
261,
3645,
13,
1082,
202,
95,
9506,
202,
659,
1527,
86,
67,
3069,
2414,
559,
273,
394,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1109,
5069,
51,
10986,
12,
6331,
9793,
3406,
3480,
13,
1216,
16801,
9793,
5752,
503,
16,
6483,
202,
95,
202,
202,
6494,
1122,
273,
638,
31,
202,
202,
474,
818,
5555,
31,
202,
202,
474,
302,
2351,
43,
13832,
2891,
31,
202,
202,
474,
20654,
559,
31,
202,
202,
474,
20654,
548,
31,
202,
202,
474,
6039,
31,
202,
202,
474,
787,
273,
374,
31,
202,
202,
17523,
261,
3767,
13,
202,
202,
95,
1082,
202,
72,
2351,
43,
13832,
2891,
273,
2949,
18,
896,
13290,
3216,
5621,
1082,
202,
25125,
559,
273,
2949,
18,
896,
13290,
3216,
5621,
1082,
202,
25125,
548,
273,
2949,
18,
896,
13290,
3216,
5621,
1082,
202,
759,
866,
309,
2
] |
return findSpecialTag(name,"attributeGroup",myFile.getDocument().getRootTag()); | return findSpecialTag(name,"attributeGroup",myFile.getDocument().getRootTag(),this); | public XmlTag findAttributeGroup(String name) { return findSpecialTag(name,"attributeGroup",myFile.getDocument().getRootTag()); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/a3740aecd902b742d2d2bb38b63406b7d9653747/XmlNSDescriptorImpl.java/buggy/source/com/intellij/xml/impl/schema/XmlNSDescriptorImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5714,
1805,
1104,
1499,
1114,
12,
780,
508,
13,
288,
565,
327,
1104,
12193,
1805,
12,
529,
10837,
4589,
1114,
3113,
4811,
812,
18,
588,
2519,
7675,
588,
2375,
1805,
9334,
2211,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
5714,
1805,
1104,
1499,
1114,
12,
780,
508,
13,
288,
565,
327,
1104,
12193,
1805,
12,
529,
10837,
4589,
1114,
3113,
4811,
812,
18,
588,
2519,
7675,
588,
2375,
1805,
9334,
2211,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw NativeGlobal.typeError0("msg.instanceof.not.object", scope); | throw typeError0("msg.instanceof.not.object"); | public static boolean in(Object a, Object b, Scriptable scope) { if (!(b instanceof Scriptable)) { throw NativeGlobal.typeError0("msg.instanceof.not.object", scope); } String s = getStringId(a); return s != null ? ScriptableObject.hasProperty((Scriptable) b, s) : ScriptableObject.hasProperty((Scriptable) b, getIntId(a)); } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/8df24a01d813540ecdfcd8a3a380c84cc9993734/ScriptRuntime.java/clean/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
316,
12,
921,
279,
16,
1033,
324,
16,
22780,
2146,
13,
288,
3639,
309,
16051,
12,
70,
1276,
22780,
3719,
288,
5411,
604,
618,
668,
20,
2932,
3576,
18,
1336,
792,
18,
902,
18,
1612,
8863,
3639,
289,
3639,
514,
272,
273,
4997,
548,
12,
69,
1769,
3639,
327,
272,
480,
446,
5411,
692,
22780,
921,
18,
5332,
1396,
12443,
3651,
429,
13,
324,
16,
272,
13,
5411,
294,
22780,
921,
18,
5332,
1396,
12443,
3651,
429,
13,
324,
16,
8145,
548,
12,
69,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
316,
12,
921,
279,
16,
1033,
324,
16,
22780,
2146,
13,
288,
3639,
309,
16051,
12,
70,
1276,
22780,
3719,
288,
5411,
604,
618,
668,
20,
2932,
3576,
18,
1336,
792,
18,
902,
18,
1612,
8863,
3639,
289,
3639,
514,
272,
273,
4997,
548,
12,
69,
1769,
3639,
327,
272,
480,
446,
5411,
692,
22780,
921,
18,
5332,
1396,
12443,
3651,
429,
13,
324,
16,
272,
13,
5411,
294,
22780,
921,
18,
5332,
1396,
12443,
3651,
429,
13,
324,
16,
8145,
548,
12,
69,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
window.updateFastViewBar(); | private IViewPart busyShowView(String viewID, String secondaryID, int mode) throws PartInitException { Perspective persp = getActivePerspective(); if (persp == null) return null; // If this view is already visible just return. IViewReference ref = persp.findView(viewID, secondaryID); IViewPart view = null; if (ref != null) view = ref.getView(true); if (view != null) { busyShowView(view, mode); return view; } // Show the view. view = persp.showView(viewID, secondaryID); if (view != null) { busyShowView(view, mode); window.firePerspectiveChanged(this, getPerspective(), getReference(view), CHANGE_VIEW_SHOW); window.firePerspectiveChanged(this, getPerspective(), CHANGE_VIEW_SHOW); // Just in case view was fast. window.updateFastViewBar(); } return view; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e8349333e515e524ed2b1b345139540fef128774/WorkbenchPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
1767,
1988,
21697,
5706,
1767,
12,
780,
1476,
734,
16,
514,
9946,
734,
16,
509,
1965,
13,
5411,
1216,
6393,
2570,
503,
288,
3639,
453,
414,
16772,
13508,
84,
273,
11960,
14781,
16772,
5621,
3639,
309,
261,
10422,
84,
422,
446,
13,
5411,
327,
446,
31,
3639,
368,
971,
333,
1476,
353,
1818,
6021,
2537,
327,
18,
3639,
467,
1767,
2404,
1278,
273,
13508,
84,
18,
4720,
1767,
12,
1945,
734,
16,
9946,
734,
1769,
3639,
467,
1767,
1988,
1476,
273,
446,
31,
3639,
309,
261,
1734,
480,
446,
13,
5411,
1476,
273,
1278,
18,
588,
1767,
12,
3767,
1769,
3639,
309,
261,
1945,
480,
446,
13,
288,
5411,
21697,
5706,
1767,
12,
1945,
16,
1965,
1769,
5411,
327,
1476,
31,
3639,
289,
3639,
368,
9674,
326,
1476,
18,
3639,
1476,
273,
13508,
84,
18,
4500,
1767,
12,
1945,
734,
16,
9946,
734,
1769,
3639,
309,
261,
1945,
480,
446,
13,
288,
5411,
21697,
5706,
1767,
12,
1945,
16,
1965,
1769,
5411,
2742,
18,
12179,
14781,
16772,
5033,
12,
2211,
16,
1689,
414,
16772,
9334,
10792,
13223,
12,
1945,
3631,
26267,
67,
12145,
67,
16677,
1769,
5411,
2742,
18,
12179,
14781,
16772,
5033,
12,
2211,
16,
1689,
414,
16772,
9334,
10792,
26267,
67,
12145,
67,
16677,
1769,
5411,
368,
12526,
316,
648,
1476,
1703,
4797,
18,
5375,
289,
3639,
327,
1476,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
1767,
1988,
21697,
5706,
1767,
12,
780,
1476,
734,
16,
514,
9946,
734,
16,
509,
1965,
13,
5411,
1216,
6393,
2570,
503,
288,
3639,
453,
414,
16772,
13508,
84,
273,
11960,
14781,
16772,
5621,
3639,
309,
261,
10422,
84,
422,
446,
13,
5411,
327,
446,
31,
3639,
368,
971,
333,
1476,
353,
1818,
6021,
2537,
327,
18,
3639,
467,
1767,
2404,
1278,
273,
13508,
84,
18,
4720,
1767,
12,
1945,
734,
16,
9946,
734,
1769,
3639,
467,
1767,
1988,
1476,
273,
446,
31,
3639,
309,
261,
1734,
480,
446,
13,
5411,
1476,
273,
1278,
18,
588,
1767,
12,
3767,
1769,
3639,
309,
261,
1945,
480,
446,
13,
288,
5411,
21697,
5706,
1767,
12,
1945,
16,
1965,
2
] |
|
frame.f_locals, | frame.getf_locals(), | public static void importOne(String mod, PyFrame frame) { //System.out.println("importOne(" + mod + ")"); PyObject module = __builtin__.__import__(mod, frame.f_globals, frame.f_locals, Py.EmptyTuple); int dot = mod.indexOf('.'); if (dot != -1) { mod = mod.substring(0, dot).intern(); } //System.err.println("mod: "+mod+", "+dot); frame.setlocal(mod, module); } | 6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/4dd8170068f265398e259c695171fed41f1ee4ac/imp.java/buggy/org/python/core/imp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1930,
3335,
12,
780,
681,
16,
4707,
3219,
2623,
13,
288,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
5666,
3335,
2932,
397,
681,
397,
7310,
1769,
3639,
4707,
921,
1605,
273,
1001,
24553,
972,
16186,
5666,
972,
12,
1711,
16,
4766,
1171,
2623,
18,
74,
67,
16227,
16,
4766,
1171,
2623,
18,
588,
74,
67,
17977,
9334,
4766,
1171,
4707,
18,
1921,
9038,
1769,
3639,
509,
3928,
273,
681,
18,
31806,
2668,
1093,
1769,
3639,
309,
261,
9811,
480,
300,
21,
13,
288,
5411,
681,
273,
681,
18,
28023,
12,
20,
16,
3928,
2934,
267,
798,
5621,
3639,
289,
3639,
368,
3163,
18,
370,
18,
8222,
2932,
1711,
30,
13773,
1711,
15,
3113,
13773,
9811,
1769,
3639,
2623,
18,
542,
3729,
12,
1711,
16,
1605,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1930,
3335,
12,
780,
681,
16,
4707,
3219,
2623,
13,
288,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
5666,
3335,
2932,
397,
681,
397,
7310,
1769,
3639,
4707,
921,
1605,
273,
1001,
24553,
972,
16186,
5666,
972,
12,
1711,
16,
4766,
1171,
2623,
18,
74,
67,
16227,
16,
4766,
1171,
2623,
18,
588,
74,
67,
17977,
9334,
4766,
1171,
4707,
18,
1921,
9038,
1769,
3639,
509,
3928,
273,
681,
18,
31806,
2668,
1093,
1769,
3639,
309,
261,
9811,
480,
300,
21,
13,
288,
5411,
681,
273,
681,
18,
28023,
12,
20,
16,
3928,
2934,
267,
798,
5621,
3639,
289,
3639,
368,
3163,
18,
370,
18,
8222,
2932,
1711,
30,
13773,
1711,
15,
3113,
13773,
2
] |
addHandler(ComponentsDescriptorConstants.BINDINGS_TAG, new BindingsHandler(componentsCache)); | BindingsHandler bindings_handler = new BindingsHandler(componentsCache); addHandler(ComponentsDescriptorConstants.BINDINGS_TAG, bindings_handler); | public ComponentsHandler(ProActiveDescriptor deploymentDescriptor, ComponentsCache componentsCache, HashMap componentTypes) { this.deploymentDescriptor = deploymentDescriptor; this.componentsCache = componentsCache; this.componentTypes = componentTypes; // handlers for the different types of components are added when components are effectively encountered // this avoids infinite handlers due to the recursive structure of components addHandler(ComponentsDescriptorConstants.BINDINGS_TAG, new BindingsHandler(componentsCache)); subComponents = new ArrayList(); } | 23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/9558a9d05e21a11346f2dd7dd019aae273cc5d25/ComponentsHandler.java/clean/src/org/objectweb/proactive/core/component/xml/ComponentsHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
25286,
1503,
12,
626,
3896,
3187,
6314,
3187,
16,
25286,
1649,
4085,
1649,
16,
4317,
1794,
2016,
13,
288,
202,
202,
2211,
18,
21704,
3187,
273,
6314,
3187,
31,
202,
202,
2211,
18,
8119,
1649,
273,
4085,
1649,
31,
202,
202,
2211,
18,
4652,
2016,
273,
1794,
2016,
31,
202,
202,
759,
4919,
364,
326,
3775,
1953,
434,
4085,
854,
3096,
1347,
4085,
854,
23500,
9919,
202,
202,
759,
333,
24192,
14853,
4919,
6541,
358,
326,
5904,
3695,
434,
4085,
3196,
202,
1289,
1503,
12,
7171,
3187,
2918,
18,
2739,
55,
67,
7927,
16,
394,
6936,
899,
1503,
12,
8119,
1649,
10019,
202,
202,
1717,
7171,
273,
394,
2407,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
25286,
1503,
12,
626,
3896,
3187,
6314,
3187,
16,
25286,
1649,
4085,
1649,
16,
4317,
1794,
2016,
13,
288,
202,
202,
2211,
18,
21704,
3187,
273,
6314,
3187,
31,
202,
202,
2211,
18,
8119,
1649,
273,
4085,
1649,
31,
202,
202,
2211,
18,
4652,
2016,
273,
1794,
2016,
31,
202,
202,
759,
4919,
364,
326,
3775,
1953,
434,
4085,
854,
3096,
1347,
4085,
854,
23500,
9919,
202,
202,
759,
333,
24192,
14853,
4919,
6541,
358,
326,
5904,
3695,
434,
4085,
3196,
202,
1289,
1503,
12,
7171,
3187,
2918,
18,
2739,
55,
67,
7927,
16,
394,
6936,
899,
1503,
12,
8119,
1649,
10019,
202,
202,
1717,
7171,
273,
394,
2407,
5621,
202,
97,
2,
-100,
-100,
-100,
-100
] |
match('\n'); | match('\n'); if (failed) return ; | public void mEOL() throws RecognitionException { try { int type = EOL; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:766:17: ( ( '\r\n' | '\r' | '\n' ) ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:766:17: ( '\r\n' | '\r' | '\n' ) { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:766:17: ( '\r\n' | '\r' | '\n' ) int alt2=3; int LA2_0 = input.LA(1); if ( LA2_0=='\r' ) { int LA2_1 = input.LA(2); if ( LA2_1=='\n' ) { alt2=1; } else { alt2=2;} } else if ( LA2_0=='\n' ) { alt2=3; } else { NoViableAltException nvae = new NoViableAltException("766:17: ( \'\\r\\n\' | \'\\r\' | \'\\n\' )", 2, 0, input); throw nvae; } switch (alt2) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:766:25: '\r\n' { match("\r\n"); } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:767:25: '\r' { match('\r'); } break; case 3 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:768:25: '\n' { match('\n'); } break; } } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { } } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/75f5f3ef6a8af3fa9515d2007a16f1fd6f3ce0d0/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
5842,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
509,
618,
273,
19995,
31,
5411,
509,
787,
273,
23577,
1016,
5621,
5411,
509,
980,
273,
9851,
5621,
5411,
509,
1149,
2555,
273,
23577,
2555,
382,
1670,
5621,
5411,
509,
1904,
273,
3155,
18,
5280,
67,
15814,
31,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
27,
6028,
30,
4033,
30,
261,
261,
2337,
86,
64,
82,
11,
571,
2337,
86,
11,
571,
2337,
82,
11,
262,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
27,
6028,
30,
4033,
30,
261,
2337,
86,
64,
82,
11,
571,
2337,
86,
11,
571,
2337,
82,
11,
262,
5411,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
27,
6028,
30,
4033,
30,
261,
2337,
86,
64,
82,
11,
571,
2337,
86,
11,
571,
2337,
82,
11,
262,
5411,
509,
3770,
22,
33,
23,
31,
5411,
509,
2928,
22,
67,
20,
273,
810,
18,
2534,
12,
21,
1769,
5411,
309,
261,
2928,
22,
67,
20,
631,
8314,
86,
11,
262,
288,
7734,
509,
2928,
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,
312,
5842,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
509,
618,
273,
19995,
31,
5411,
509,
787,
273,
23577,
1016,
5621,
5411,
509,
980,
273,
9851,
5621,
5411,
509,
1149,
2555,
273,
23577,
2555,
382,
1670,
5621,
5411,
509,
1904,
273,
3155,
18,
5280,
67,
15814,
31,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
27,
6028,
30,
4033,
30,
261,
261,
2337,
86,
64,
82,
11,
571,
2337,
86,
11,
571,
2337,
82,
11,
262,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
2
] |
void innerUpdate(){ Logger.minor(this, "Update() called"); synchronized(this) { if((result == null) || hasBeenBlown) { Logger.minor(this, "Returning: result="+result+", isAutoUpdateAllowed="+isAutoUpdateAllowed+", hasBeenBlown="+hasBeenBlown); return; } this.revocationDNFCounter = 0; this.finalCheck = true; } System.err.println("Searching for revocation key"); this.queueFetchRevocation(100); synchronized(this) { while(revocationDNFCounter < 3) { System.err.println("Revocation counter: "+revocationDNFCounter); if(this.hasBeenBlown) { Logger.error(this, "The revocation key has been found on the network : blocking auto-update"); return; } try { wait(100*1000); } catch (InterruptedException e) { // Ignore } } } System.err.println("Update in progress"); Logger.normal(this, "Update in progress"); try{ ArrayBucket bucket = (ArrayBucket) result.asBucket(); byte[] data = bucket.toByteArray(); File fRunning = new File("freenet-cvs-snapshot.jar"); File fNew = new File("freenet-cvs-snapshot.jar.new"); boolean nastyRestart = false; if(File.separatorChar != '\\') { // Do nothing. } else { nastyRestart = true; Properties p = WrapperManager.getProperties(); String cp1 = p.getProperty("wrapper.java.classpath.1"); if(cp1.equals("freenet-cvs-snapshot.jar")) { // Cool! } else if(cp1.equals("freenet-cvs-snapshot.jar.new")) { // Swapped; we are running .new File tmp = fRunning; fRunning = fNew; fNew = tmp; } else { cp1 = p.getProperty("wrapper.java.classpath.2"); if(cp1.equals("freenet-cvs-snapshot.jar")) { // Cool! } else if(cp1.equals("freenet-cvs-snapshot.jar.new")) { // Swapped; we are running .new File tmp = fRunning; fRunning = fNew; fNew = tmp; } else { Logger.error(this, "Cannot restart on Windows due to non-standard config file!"); System.err.println("Cannot restart on Windows due to non-standard config file!"); return; } } } fNew.delete(); FileOutputStream fos = new FileOutputStream(fNew); fos.write(data); fos.flush(); fos.close(); System.out.println("################## File written! "+cg.getURI().getSuggestedEdition()+ " " +fNew.getAbsolutePath()); if(!nastyRestart) { // Easy way. if(!fNew.renameTo(fRunning)) { fRunning.delete(); if(!fNew.renameTo(fRunning)) { System.err.println("ERROR renaming the file!"); return; } } } else { // Hard way. if(!WrapperManager.isControlledByNativeWrapper()) { Logger.error(this, "Cannot update because not running under wrapper"); System.err.println("Cannot update because not running under wrapper"); return; } try { File oldConfig = new File("wrapper.conf"); File newConfig = new File("wrapper.conf.new"); FileInputStream fis = new FileInputStream(oldConfig); BufferedInputStream bis = new BufferedInputStream(fis); InputStreamReader isr = new InputStreamReader(bis); BufferedReader br = new BufferedReader(isr); fos = new FileOutputStream(newConfig); OutputStreamWriter osw = new OutputStreamWriter(fos); BufferedWriter bw = new BufferedWriter(osw); String line; boolean succeeded = false; boolean stillSucceeded = false; while((line = br.readLine()) != null) { if(line.equals("wrapper.java.classpath.1="+fRunning.getName())) { bw.write("wrapper.java.classpath.1="+fNew.getName()+"\r\n"); succeeded = true; } else if(line.equals("wrapper.java.classpath.2="+fRunning.getName())) { bw.write("wrapper.java.classpath.2="+fNew.getName()+"\r\n"); succeeded = true; } else { if(line.equals("wrapper.restart.reload_configuration=TRUE")) stillSucceeded = true; bw.write(line+"\r\n"); } } bw.close(); br.close(); if(!succeeded) { System.err.println("Not able to update because of non-standard config"); Logger.error(this, "Not able to update because of non-standard config"); return; } if(!stillSucceeded) { System.err.println("Not able to update because of non-standard or old config, add a line saying \"wrapper.restart.reload_configuration=TRUE\""); Logger.error(this, "Not able to update because of non-standard or old config, add a line saying \"wrapper.restart.reload_configuration=TRUE\""); return; } if(!newConfig.renameTo(oldConfig)) { oldConfig.delete(); if(!newConfig.renameTo(oldConfig)) { System.err.println("Failed to rename over old config: update failed."); Logger.error(this, "Failed to rename over old config: update failed."); return; } } // New config installed. } catch (IOException e) { Logger.error(this, "Not able to update because of I/O error: "+e, e); System.err.println("Not able to update because of I/O error: "+e); } } if(node.getNodeStarter()!=null) { System.err.println("Restarting because of update"); node.getNodeStarter().restart(); } else{ System.out.println("New version has been downloaded: please restart your node!"); node.exit(); } System.err.println("WTF? Restart returned!?"); }catch(Exception e){ Logger.error(this, "Error while updating the node : "+e); System.out.println("Exception : "+e); e.printStackTrace(); } } | 50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/0ce52e9ff1e0048c34e8d11f2ad596bc8936f6e9/NodeUpdater.java/clean/src/freenet/node/updater/NodeUpdater.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
3443,
1891,
1435,
95,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
1891,
1435,
2566,
8863,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12443,
2088,
422,
446,
13,
747,
711,
25931,
38,
821,
82,
13,
288,
9506,
202,
3328,
18,
17364,
12,
2211,
16,
315,
28365,
30,
563,
1546,
15,
2088,
15,
3113,
27079,
1891,
5042,
1546,
15,
291,
4965,
1891,
5042,
15,
3113,
711,
25931,
38,
821,
82,
1546,
15,
5332,
25931,
38,
821,
82,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
25083,
202,
2211,
18,
9083,
4431,
8609,
4488,
2096,
273,
374,
31,
1082,
202,
2211,
18,
6385,
1564,
273,
638,
31,
202,
202,
97,
9506,
202,
3163,
18,
370,
18,
8222,
2932,
2979,
310,
364,
24158,
498,
8863,
202,
202,
2211,
18,
4000,
5005,
28691,
12,
6625,
1769,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
17523,
12,
9083,
4431,
8609,
4488,
2096,
411,
890,
13,
288,
9506,
202,
3163,
18,
370,
18,
8222,
2932,
28691,
3895,
30,
13773,
9083,
4431,
8609,
4488,
2096,
1769,
9506,
202,
430,
12,
2211,
18,
5332,
25931,
38,
821,
82,
13,
288,
6862,
202,
3328,
18,
1636,
12,
2211,
16,
315,
1986,
24158,
498,
711,
2118,
1392,
603,
326,
2483,
294,
9445,
3656,
17,
2725,
8863,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
698,
288,
6862,
202,
7048,
12,
6625,
14,
18088,
1769,
9506,
202,
97,
1044,
261,
24485,
503,
425,
13,
288,
6862,
202,
759,
8049,
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,
6459,
3443,
1891,
1435,
95,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
1891,
1435,
2566,
8863,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12443,
2088,
422,
446,
13,
747,
711,
25931,
38,
821,
82,
13,
288,
9506,
202,
3328,
18,
17364,
12,
2211,
16,
315,
28365,
30,
563,
1546,
15,
2088,
15,
3113,
27079,
1891,
5042,
1546,
15,
291,
4965,
1891,
5042,
15,
3113,
711,
25931,
38,
821,
82,
1546,
15,
5332,
25931,
38,
821,
82,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
25083,
202,
2211,
18,
9083,
4431,
8609,
4488,
2096,
273,
374,
31,
1082,
202,
2211,
18,
6385,
1564,
273,
638,
31,
202,
202,
97,
9506,
202,
3163,
18,
2
] |
||
if (myDocumentModel.useDocument()) { replaceWithDocument(textRange, whiteSpace); } else { replaceWithPSI(textRange, whiteSpace); } | replaceWithPSI(textRange, whiteSpace); | public void replaceWhiteSpace(TextRange textRange, String whiteSpace) { if (myDocumentModel.useDocument()) { replaceWithDocument(textRange, whiteSpace); } else { replaceWithPSI(textRange, whiteSpace); } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/8440b555a5532a243be03bd555d1348ef20331b3/PsiBasedFormattingModel.java/buggy/source/com/intellij/psi/formatter/PsiBasedFormattingModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1453,
23108,
12,
1528,
2655,
977,
2655,
16,
27573,
514,
9578,
3819,
13,
288,
565,
309,
261,
4811,
2519,
1488,
18,
1202,
2519,
10756,
288,
1377,
24189,
2519,
12,
955,
2655,
16,
9578,
3819,
1769,
565,
289,
469,
288,
1377,
24189,
52,
2320,
12,
955,
2655,
16,
9578,
3819,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
1071,
918,
1453,
23108,
12,
1528,
2655,
977,
2655,
16,
27573,
514,
9578,
3819,
13,
288,
565,
309,
261,
4811,
2519,
1488,
18,
1202,
2519,
10756,
288,
1377,
24189,
2519,
12,
955,
2655,
16,
9578,
3819,
1769,
565,
289,
469,
288,
1377,
24189,
52,
2320,
12,
955,
2655,
16,
9578,
3819,
1769,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
log.finer("-selfcert handler will use the following options:"); log.finer(" -alias=" + alias); log.finer(" -sigalg=" + _sigAlgorithm); log.finer(" -dname=" + _dName); log.finer(" -validity=" + validityInDays); log.finer(" -storetype=" + storeType); log.finer(" -keystore=" + storeURL); log.finer(" -provider=" + provider); log.finer(" -v=" + verbose); | if (Configuration.DEBUG) { log.fine("-selfcert handler will use the following options:"); log.fine(" -alias=" + alias); log.fine(" -sigalg=" + _sigAlgorithm); log.fine(" -dname=" + _dName); log.fine(" -validity=" + validityInDays); log.fine(" -storetype=" + storeType); log.fine(" -keystore=" + storeURL); log.fine(" -provider=" + provider); log.fine(" -v=" + verbose); } | void setup() throws Exception { setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); setValidityParam(_validityStr); log.finer("-selfcert handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" + alias); //$NON-NLS-1$ log.finer(" -sigalg=" + _sigAlgorithm); //$NON-NLS-1$ log.finer(" -dname=" + _dName); //$NON-NLS-1$ log.finer(" -validity=" + validityInDays); //$NON-NLS-1$ log.finer(" -storetype=" + storeType); //$NON-NLS-1$ log.finer(" -keystore=" + storeURL); //$NON-NLS-1$ log.finer(" -provider=" + provider); //$NON-NLS-1$ log.finer(" -v=" + verbose); //$NON-NLS-1$ } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/6e10879cd4d1df8b463898498b99e01d9ae63f24/SelfCertCmd.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/SelfCertCmd.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
3875,
1435,
1216,
1185,
225,
288,
565,
16696,
2257,
1370,
24899,
6778,
3834,
16,
389,
7904,
559,
16,
389,
7904,
3913,
16,
389,
7904,
1785,
1769,
565,
28876,
786,
24899,
4930,
1769,
565,
16696,
3913,
2279,
15967,
24899,
3664,
1769,
565,
444,
19678,
786,
24899,
877,
560,
1585,
1769,
565,
613,
18,
926,
264,
2932,
17,
2890,
7593,
1838,
903,
999,
326,
3751,
702,
2773,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
613,
18,
926,
264,
2932,
225,
300,
4930,
1546,
397,
2308,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
613,
18,
926,
264,
2932,
225,
300,
7340,
18413,
1546,
397,
389,
7340,
6801,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
613,
18,
926,
264,
2932,
225,
300,
72,
529,
1546,
397,
389,
72,
461,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
613,
18,
926,
264,
2932,
225,
300,
877,
560,
1546,
397,
13800,
382,
9384,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
613,
18,
926,
264,
2932,
225,
300,
2233,
723,
1546,
397,
1707,
559,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
613,
18,
926,
264,
2932,
225,
300,
856,
2233,
1546,
397,
1707,
1785,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
613,
18,
926,
264,
2932,
225,
300,
6778,
1546,
397,
2893,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
613,
18,
926,
264,
2932,
225,
300,
90,
1546,
397,
3988,
1769,
4329,
3993,
17,
5106,
17,
21,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
3875,
1435,
1216,
1185,
225,
288,
565,
16696,
2257,
1370,
24899,
6778,
3834,
16,
389,
7904,
559,
16,
389,
7904,
3913,
16,
389,
7904,
1785,
1769,
565,
28876,
786,
24899,
4930,
1769,
565,
16696,
3913,
2279,
15967,
24899,
3664,
1769,
565,
444,
19678,
786,
24899,
877,
560,
1585,
1769,
565,
613,
18,
926,
264,
2932,
17,
2890,
7593,
1838,
903,
999,
326,
3751,
702,
2773,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
613,
18,
926,
264,
2932,
225,
300,
4930,
1546,
397,
2308,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
613,
18,
926,
264,
2932,
225,
300,
7340,
18413,
1546,
397,
389,
7340,
6801,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
2
] |
SQLExceptionHandler.throwSQLException(e); throw e; | throw wrap(e); | public synchronized String getCatalog() throws SQLException { ensureConnectionExists(); try { return m_conn.getCatalog(); } catch (SQLException e) { SQLExceptionHandler.throwSQLException(e); throw e; // code should never get here, but just in case } } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/880388ec033f6e42a6c6eef522a27eaa680337dd/Connection.java/buggy/archive/core-platform/src/com/arsdigita/db/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
514,
1927,
4392,
1435,
1216,
6483,
288,
3639,
3387,
1952,
4002,
5621,
3639,
775,
288,
5411,
327,
312,
67,
4646,
18,
588,
9769,
5621,
3639,
289,
1044,
261,
23116,
425,
13,
288,
5411,
6483,
1503,
18,
12849,
23116,
12,
73,
1769,
5411,
604,
425,
31,
225,
368,
981,
1410,
5903,
336,
2674,
16,
1496,
2537,
316,
648,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
514,
1927,
4392,
1435,
1216,
6483,
288,
3639,
3387,
1952,
4002,
5621,
3639,
775,
288,
5411,
327,
312,
67,
4646,
18,
588,
9769,
5621,
3639,
289,
1044,
261,
23116,
425,
13,
288,
5411,
6483,
1503,
18,
12849,
23116,
12,
73,
1769,
5411,
604,
425,
31,
225,
368,
981,
1410,
5903,
336,
2674,
16,
1496,
2537,
316,
648,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static void rebind(String name, Remote obj) throws RemoteException, MalformedURLException { | public static void rebind(String name, Remote obj) throws RemoteException, MalformedURLException { | public static void rebind(String name, Remote obj) throws RemoteException, MalformedURLException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).rebind(serviceName, obj);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
918,
283,
4376,
12,
780,
508,
16,
6304,
1081,
13,
1216,
18361,
16,
20710,
288,
3639,
1976,
582,
273,
1109,
1785,
12,
529,
1769,
202,
780,
6773,
273,
1723,
12,
89,
1769,
202,
588,
4243,
12,
89,
2934,
266,
4376,
12,
15423,
16,
1081,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
918,
283,
4376,
12,
780,
508,
16,
6304,
1081,
13,
1216,
18361,
16,
20710,
288,
3639,
1976,
582,
273,
1109,
1785,
12,
529,
1769,
202,
780,
6773,
273,
1723,
12,
89,
1769,
202,
588,
4243,
12,
89,
2934,
266,
4376,
12,
15423,
16,
1081,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
TemplateParameterDefinition.DEFAULT_SLOT ); | ITemplateParameterDefinitionModel.DEFAULT_SLOT ); | public AbstractParseState startElement( String tagName ) { if ( tagName.equalsIgnoreCase( DesignSchemaConstants.TEXT_TAG ) ) return new TextItemState( handler, element, TemplateParameterDefinition.DEFAULT_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.LABEL_TAG ) ) return new LabelState( handler, element, TemplateParameterDefinition.DEFAULT_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.DATA_TAG ) ) return new DataItemState( handler, element, TemplateParameterDefinition.DEFAULT_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.LIST_TAG ) ) return new ListItemState( handler, element, TemplateParameterDefinition.DEFAULT_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.TABLE_TAG ) ) return new TableItemState( handler, element, TemplateParameterDefinition.DEFAULT_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.FREE_FORM_TAG ) ) return new FreeFormState( handler, element, TemplateParameterDefinition.DEFAULT_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.GRID_TAG ) ) return new GridItemState( handler, element, TemplateParameterDefinition.DEFAULT_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.INCLUDE_TAG ) ) return new AnyElementState( handler ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.IMAGE_TAG ) ) return new ImageState( handler, element, TemplateParameterDefinition.DEFAULT_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.LINE_TAG ) ) return new LineItemState( handler, element, TemplateParameterDefinition.DEFAULT_SLOT ); if ( tagName .equalsIgnoreCase( DesignSchemaConstants.BROWSER_CONTROL_TAG ) ) return new AnyElementState( handler ); if ( tagName .equalsIgnoreCase( DesignSchemaConstants.EXTENDED_ITEM_TAG ) ) return new ExtendedItemState( handler, element, TemplateParameterDefinition.DEFAULT_SLOT ); if ( tagName .equalsIgnoreCase( DesignSchemaConstants.MULTI_LINE_DATA_TAG ) || tagName .equalsIgnoreCase( DesignSchemaConstants.TEXT_DATA_TAG ) ) return new TextDataItemState( handler, element, TemplateParameterDefinition.DEFAULT_SLOT ); if ( tagName .equalsIgnoreCase( DesignSchemaConstants.SCRIPT_DATA_SET_TAG ) ) return new ScriptDataSetState( handler, element, TemplateParameterDefinition.DEFAULT_SLOT ); if ( tagName .equalsIgnoreCase( DesignSchemaConstants.ODA_DATA_SET_TAG ) || tagName.equalsIgnoreCase( "extended-data-set" ) ) //$NON-NLS-1$ { return new OdaDataSetState( handler, element, TemplateParameterDefinition.DEFAULT_SLOT ); } return super.startElement( tagName ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/d802c33711e0d111551ae23575895cd060f085b6/TemplateParameterDefinitionState.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/TemplateParameterDefinitionState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
4115,
3201,
1119,
13591,
12,
514,
7196,
262,
202,
202,
95,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
5151,
67,
7927,
262,
262,
9506,
202,
2463,
394,
3867,
1180,
1119,
12,
1838,
16,
930,
16,
25083,
202,
2283,
1662,
1852,
18,
5280,
67,
55,
1502,
56,
11272,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
13545,
67,
7927,
262,
262,
9506,
202,
2463,
394,
5287,
1119,
12,
1838,
16,
930,
16,
25083,
202,
2283,
1662,
1852,
18,
5280,
67,
55,
1502,
56,
11272,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
4883,
67,
7927,
262,
262,
9506,
202,
2463,
394,
1910,
1180,
1119,
12,
1838,
16,
930,
16,
25083,
202,
2283,
1662,
1852,
18,
5280,
67,
55,
1502,
56,
11272,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
7085,
67,
7927,
262,
262,
9506,
202,
2463,
394,
987,
1180,
1119,
12,
1838,
16,
930,
16,
25083,
202,
2283,
1662,
1852,
18,
5280,
67,
55,
1502,
56,
11272,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
7775,
67,
7927,
262,
262,
9506,
202,
2463,
394,
3555,
1180,
1119,
12,
1838,
16,
930,
16,
25083,
202,
2283,
1662,
1852,
18,
5280,
67,
55,
1502,
56,
11272,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
28104,
67,
4983,
67,
7927,
262,
262,
9506,
202,
2463,
394,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
4115,
3201,
1119,
13591,
12,
514,
7196,
262,
202,
202,
95,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
5151,
67,
7927,
262,
262,
9506,
202,
2463,
394,
3867,
1180,
1119,
12,
1838,
16,
930,
16,
25083,
202,
2283,
1662,
1852,
18,
5280,
67,
55,
1502,
56,
11272,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
13545,
67,
7927,
262,
262,
9506,
202,
2463,
394,
5287,
1119,
12,
1838,
16,
930,
16,
25083,
202,
2283,
1662,
1852,
18,
5280,
67,
55,
1502,
56,
11272,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
4883,
67,
7927,
262,
262,
9506,
202,
2463,
394,
2
] |
public static void merge( Settings dominant, Settings recessive, String recessiveSourceLevel ) { if ( dominant == null || recessive == null ) { return; } recessive.setSourceLevel( recessiveSourceLevel ); List dominantActiveProfiles = dominant.getActiveProfiles(); List recessiveActiveProfiles = recessive.getActiveProfiles(); for ( Iterator it = recessiveActiveProfiles.iterator(); it.hasNext(); ) { String profileId = (String) it.next(); if ( !dominantActiveProfiles.contains( profileId ) ) { dominantActiveProfiles.add( profileId ); dominant.setActiveProfileSourceLevel( profileId, recessiveSourceLevel ); } } if ( StringUtils.isEmpty( dominant.getLocalRepository() ) ) { dominant.setLocalRepository( recessive.getLocalRepository() ); dominant.setLocalRepositorySourceLevel( recessiveSourceLevel ); } shallowMergeById( dominant.getMirrors(), recessive.getMirrors(), recessiveSourceLevel ); shallowMergeById( dominant.getServers(), recessive.getServers(), recessiveSourceLevel ); shallowMergeById( dominant.getProxies(), recessive.getProxies(), recessiveSourceLevel ); shallowMergeById( dominant.getProfiles(), recessive.getProfiles(), recessiveSourceLevel ); shallowMergePluginUpdates( dominant, recessive.getPluginUpdates(), recessiveSourceLevel ); } | 50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/b813c3d430a3aa5f2fa6cf7181ecf03faa6267dd/SettingsUtils.java/buggy/maven-settings/src/main/java/org/apache/maven/settings/SettingsUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2691,
12,
8709,
4092,
20030,
16,
8709,
283,
614,
688,
16,
514,
283,
614,
688,
1830,
2355,
262,
565,
288,
3639,
309,
261,
4092,
20030,
422,
446,
747,
283,
614,
688,
422,
446,
262,
3639,
288,
5411,
327,
31,
3639,
289,
7734,
283,
614,
688,
18,
542,
1830,
2355,
12,
283,
614,
688,
1830,
2355,
11272,
3639,
987,
4092,
20030,
3896,
12450,
273,
4092,
20030,
18,
588,
3896,
12450,
5621,
3639,
987,
283,
614,
688,
3896,
12450,
273,
283,
614,
688,
18,
588,
3896,
12450,
5621,
3639,
364,
261,
4498,
518,
273,
283,
614,
688,
3896,
12450,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
3639,
288,
5411,
514,
25903,
273,
261,
780,
13,
518,
18,
4285,
5621,
5411,
309,
261,
401,
9859,
20030,
3896,
12450,
18,
12298,
12,
25903,
262,
262,
5411,
288,
7734,
4092,
20030,
3896,
12450,
18,
1289,
12,
25903,
11272,
27573,
4092,
20030,
18,
542,
3896,
4029,
1830,
2355,
12,
25903,
16,
283,
614,
688,
1830,
2355,
11272,
5411,
289,
3639,
289,
3639,
309,
261,
5778,
18,
291,
1921,
12,
4092,
20030,
18,
588,
2042,
3305,
1435,
262,
262,
3639,
288,
5411,
4092,
20030,
18,
542,
2042,
3305,
12,
283,
614,
688,
18,
588,
2042,
3305,
1435,
11272,
13491,
4092,
20030,
18,
542,
2042,
3305,
1830,
2355,
12,
283,
614,
688,
1830,
2355,
11272,
3639,
289,
3639,
18501,
6786,
5132,
12,
4092,
20030,
18,
588,
49,
27026,
9334,
283,
614,
688,
18,
588,
49,
27026,
9334,
283,
614,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2691,
12,
8709,
4092,
20030,
16,
8709,
283,
614,
688,
16,
514,
283,
614,
688,
1830,
2355,
262,
565,
288,
3639,
309,
261,
4092,
20030,
422,
446,
747,
283,
614,
688,
422,
446,
262,
3639,
288,
5411,
327,
31,
3639,
289,
7734,
283,
614,
688,
18,
542,
1830,
2355,
12,
283,
614,
688,
1830,
2355,
11272,
3639,
987,
4092,
20030,
3896,
12450,
273,
4092,
20030,
18,
588,
3896,
12450,
5621,
3639,
987,
283,
614,
688,
3896,
12450,
273,
283,
614,
688,
18,
588,
3896,
12450,
5621,
3639,
364,
261,
4498,
518,
273,
283,
614,
688,
3896,
12450,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
3639,
288,
5411,
514,
25903,
273,
261,
780,
13,
2
] |
||
File dir = project.resolveFile(srcs[i]); | File dir = getProject().resolveFile(srcs[i]); | public void addSrc() { String[] srcs = src.list(); if(Debug.v().traceAntTask) System.err.print("sources: "); for(int i = 0; i < srcs.length; i++) { File dir = project.resolveFile(srcs[i]); String[] files = getDirectoryScanner(dir).getIncludedFiles(); for(int j = 0; j < files.length; j++) { File f = new File(dir, files[j]); if( files[j].endsWith(".java") || files[j].endsWith(".aj") ) { addArg(f.getAbsolutePath()); if(Debug.v().traceAntTask) System.err.print(f.getAbsolutePath()+" "); } } } if(Debug.v().traceAntTask) System.err.println(""); } | 236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/ebd15365f358d36d611ec6360170c7971332af1b/AntTask.java/clean/aop/abc/src/abc/main/AntTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
7740,
1435,
288,
3639,
514,
8526,
28403,
273,
1705,
18,
1098,
5621,
3639,
309,
12,
2829,
18,
90,
7675,
5129,
14925,
2174,
13,
5411,
2332,
18,
370,
18,
1188,
2932,
10141,
30,
315,
1769,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
28403,
18,
2469,
31,
277,
27245,
288,
5411,
1387,
1577,
273,
11080,
7675,
10828,
812,
12,
4816,
87,
63,
77,
19226,
5411,
514,
8526,
1390,
273,
19831,
11338,
12,
1214,
2934,
588,
19323,
2697,
5621,
5411,
364,
12,
474,
525,
273,
374,
31,
525,
411,
1390,
18,
2469,
31,
525,
27245,
288,
7734,
1387,
284,
273,
394,
1387,
12,
1214,
16,
1390,
63,
78,
19226,
7734,
309,
12,
1390,
63,
78,
8009,
5839,
1190,
2932,
18,
6290,
7923,
747,
1390,
63,
78,
8009,
5839,
1190,
2932,
18,
4365,
7923,
262,
288,
10792,
527,
4117,
12,
74,
18,
588,
10368,
743,
10663,
10792,
309,
12,
2829,
18,
90,
7675,
5129,
14925,
2174,
13,
13491,
2332,
18,
370,
18,
1188,
12,
74,
18,
588,
10368,
743,
1435,
9078,
315,
1769,
7734,
289,
5411,
289,
3639,
289,
3639,
309,
12,
2829,
18,
90,
7675,
5129,
14925,
2174,
13,
5411,
2332,
18,
370,
18,
8222,
2932,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
7740,
1435,
288,
3639,
514,
8526,
28403,
273,
1705,
18,
1098,
5621,
3639,
309,
12,
2829,
18,
90,
7675,
5129,
14925,
2174,
13,
5411,
2332,
18,
370,
18,
1188,
2932,
10141,
30,
315,
1769,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
28403,
18,
2469,
31,
277,
27245,
288,
5411,
1387,
1577,
273,
11080,
7675,
10828,
812,
12,
4816,
87,
63,
77,
19226,
5411,
514,
8526,
1390,
273,
19831,
11338,
12,
1214,
2934,
588,
19323,
2697,
5621,
5411,
364,
12,
474,
525,
273,
374,
31,
525,
411,
1390,
18,
2469,
31,
525,
27245,
288,
7734,
1387,
284,
273,
394,
1387,
12,
1214,
16,
1390,
63,
78,
19226,
7734,
309,
12,
1390,
63,
78,
2
] |
} if (target != null) select(target); | } | public void setTarget(Object target) { if (_target == target) return; int nextTab = -1; int currentTab = _tabs.getSelectedIndex(); int tabCount = _tabs.getTabCount(); _target = target; for (int i = 0; i < tabCount; i++) { Component tab = _tabs.getComponentAt(i); if (tab instanceof TabModelTarget) { TabModelTarget tabMT = (TabModelTarget) tab; tabMT.setTarget(_target); boolean shouldEnable = tabMT.shouldBeEnabled(_target); _tabs.setEnabledAt(i, shouldEnable); if (shouldEnable && (nextTab == -1 || i == currentTab)) nextTab = i; } } if (target != null) select(target); // if this target doesn't match the tabs expectation // leave the previous tab displayed // // if (nextTab != -1 && nextTab != currentTab) // _tabs.setSelectedIndex(nextTab); // _tabs.setVisible(nextTab != -1); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/d5cbce0bdbb219cb89b05407c2c3a0195079296c/MultiEditorPane.java/buggy/src_new/org/argouml/ui/MultiEditorPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
18367,
12,
921,
1018,
13,
288,
3639,
309,
261,
67,
3299,
422,
1018,
13,
5411,
327,
31,
3639,
509,
1024,
5661,
273,
300,
21,
31,
3639,
509,
783,
5661,
273,
389,
16056,
18,
588,
7416,
1016,
5621,
3639,
509,
3246,
1380,
273,
389,
16056,
18,
588,
5661,
1380,
5621,
3639,
389,
3299,
273,
1018,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3246,
1380,
31,
277,
27245,
288,
5411,
5435,
3246,
273,
389,
16056,
18,
588,
1841,
861,
12,
77,
1769,
5411,
309,
261,
7032,
1276,
9483,
1488,
2326,
13,
288,
7734,
9483,
1488,
2326,
3246,
6152,
273,
261,
5661,
1488,
2326,
13,
3246,
31,
7734,
3246,
6152,
18,
542,
2326,
24899,
3299,
1769,
7734,
1250,
1410,
8317,
273,
3246,
6152,
18,
13139,
1919,
1526,
24899,
3299,
1769,
7734,
389,
16056,
18,
542,
1526,
861,
12,
77,
16,
1410,
8317,
1769,
7734,
309,
261,
13139,
8317,
597,
261,
4285,
5661,
422,
300,
21,
747,
277,
422,
783,
5661,
3719,
10792,
1024,
5661,
273,
277,
31,
5411,
289,
3639,
289,
3639,
309,
261,
3299,
480,
446,
13,
5411,
2027,
12,
3299,
1769,
3639,
368,
565,
309,
333,
1018,
3302,
1404,
845,
326,
10920,
17733,
5411,
368,
3639,
8851,
326,
2416,
3246,
10453,
3639,
368,
5411,
368,
565,
309,
261,
4285,
5661,
480,
300,
21,
597,
1024,
5661,
480,
783,
5661,
13,
540,
368,
3639,
389,
16056,
18,
542,
7416,
1016,
12,
4285,
5661,
1769,
3639,
368,
565,
389,
16056,
18,
542,
6207,
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,
18367,
12,
921,
1018,
13,
288,
3639,
309,
261,
67,
3299,
422,
1018,
13,
5411,
327,
31,
3639,
509,
1024,
5661,
273,
300,
21,
31,
3639,
509,
783,
5661,
273,
389,
16056,
18,
588,
7416,
1016,
5621,
3639,
509,
3246,
1380,
273,
389,
16056,
18,
588,
5661,
1380,
5621,
3639,
389,
3299,
273,
1018,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3246,
1380,
31,
277,
27245,
288,
5411,
5435,
3246,
273,
389,
16056,
18,
588,
1841,
861,
12,
77,
1769,
5411,
309,
261,
7032,
1276,
9483,
1488,
2326,
13,
288,
7734,
9483,
1488,
2326,
3246,
6152,
273,
261,
5661,
1488,
2326,
13,
3246,
31,
7734,
3246,
6152,
18,
542,
2326,
24899,
3299,
2
] |
addPath(rubyDir + "site_ruby" + sep + Constants.RUBY_MAJOR_VERSION + sep + "java"); | public void init(List additionalDirectories) { for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { addPath((String) iter.next()); } // wrap in try/catch for security exceptions in an applet try { if (runtime.getSafeLevel() == 0) { String jrubyLib = System.getProperty("jruby.lib"); if (jrubyLib != null) { addPath(jrubyLib); } } String jrubyHome = System.getProperty("jruby.home"); if (jrubyHome != null) { char sep = '/'; String rubyDir = jrubyHome + sep + "lib" + sep + "ruby" + sep; addPath(rubyDir + "site_ruby" + sep + Constants.RUBY_MAJOR_VERSION); addPath(rubyDir + "site_ruby" + sep + Constants.RUBY_MAJOR_VERSION + sep + "java"); addPath(rubyDir + "site_ruby"); addPath(rubyDir + Constants.RUBY_MAJOR_VERSION); addPath(rubyDir + Constants.RUBY_MAJOR_VERSION + sep + "java"); // Added to make sure we find default distribution files within jar file. // TODO: Either make jrubyHome become the jar file or allow "classpath-only" paths addPath("lib" + sep + "ruby" + sep + Constants.RUBY_MAJOR_VERSION); } } catch (AccessControlException accessEx) { // ignore, we're in an applet and can't access filesystem anyway } if (runtime.getSafeLevel() == 0) { addPath("."); } } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
682,
3312,
13071,
13,
288,
1377,
364,
261,
3198,
1400,
273,
3312,
13071,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
3639,
25505,
12443,
780,
13,
1400,
18,
4285,
10663,
1377,
289,
5411,
368,
2193,
316,
775,
19,
14683,
364,
4373,
4798,
316,
392,
21853,
1377,
775,
288,
1850,
309,
261,
9448,
18,
588,
9890,
2355,
1435,
422,
374,
13,
288,
2868,
514,
525,
27768,
5664,
273,
2332,
18,
588,
1396,
2932,
78,
27768,
18,
2941,
8863,
2868,
309,
261,
78,
27768,
5664,
480,
446,
13,
288,
5375,
25505,
12,
78,
27768,
5664,
1769,
2868,
289,
1850,
289,
10792,
514,
525,
27768,
8684,
273,
2332,
18,
588,
1396,
2932,
78,
27768,
18,
8712,
8863,
1850,
309,
261,
78,
27768,
8684,
480,
446,
13,
288,
2868,
1149,
5478,
273,
2023,
31,
2868,
514,
22155,
1621,
273,
525,
27768,
8684,
397,
5478,
397,
315,
2941,
6,
397,
5478,
397,
315,
27768,
6,
397,
5478,
31,
18701,
25505,
12,
27768,
1621,
397,
315,
4256,
67,
27768,
6,
397,
5478,
397,
5245,
18,
54,
3457,
61,
67,
26976,
916,
67,
5757,
1769,
21821,
25505,
12,
27768,
1621,
397,
315,
4256,
67,
27768,
8863,
2868,
25505,
12,
27768,
1621,
397,
5245,
18,
54,
3457,
61,
67,
26976,
916,
67,
5757,
1769,
2868,
25505,
12,
27768,
1621,
397,
5245,
18,
54,
3457,
61,
67,
26976,
916,
67,
5757,
397,
5478,
397,
315,
6290,
8863,
18701,
368,
25808,
358,
1221,
3071,
732,
1104,
805,
7006,
1390,
3470,
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,
1208,
12,
682,
3312,
13071,
13,
288,
1377,
364,
261,
3198,
1400,
273,
3312,
13071,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
3639,
25505,
12443,
780,
13,
1400,
18,
4285,
10663,
1377,
289,
5411,
368,
2193,
316,
775,
19,
14683,
364,
4373,
4798,
316,
392,
21853,
1377,
775,
288,
1850,
309,
261,
9448,
18,
588,
9890,
2355,
1435,
422,
374,
13,
288,
2868,
514,
525,
27768,
5664,
273,
2332,
18,
588,
1396,
2932,
78,
27768,
18,
2941,
8863,
2868,
309,
261,
78,
27768,
5664,
480,
446,
13,
288,
5375,
25505,
12,
78,
27768,
5664,
1769,
2868,
289,
1850,
289,
10792,
514,
525,
27768,
8684,
273,
2332,
18,
588,
1396,
2932,
78,
27768,
18,
2
] |
|
protected Account basicAuthRequest(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException, ServiceException { String auth = req.getHeader("Authorization"); // TODO: more liberal parsing of Authorization value... if (auth == null || !auth.startsWith("Basic ")) { resp.addHeader(WWW_AUTHENTICATE_HEADER, getRealmHeader()); resp.sendError(HttpServletResponse.SC_UNAUTHORIZED, "must authenticate"); return null; } // 6 comes from "Basic ".length(); String userPass = new String(Base64.decodeBase64(auth.substring(6).getBytes())); int loc = userPass.indexOf(":"); if (loc == -1) { resp.sendError(HttpServletResponse.SC_BAD_REQUEST, "invalid basic auth credentials"); return null; } String user = userPass.substring(0, loc); String pass = userPass.substring(loc + 1); Provisioning prov = Provisioning.getInstance(); Account acct = prov.getAccountByName(user); if (acct == null) { resp.addHeader(WWW_AUTHENTICATE_HEADER, getRealmHeader()); resp.sendError(HttpServletResponse.SC_UNAUTHORIZED, "invalid username/password"); return null; } try { prov.authAccount(acct, pass); } catch (ServiceException se) { resp.addHeader(WWW_AUTHENTICATE_HEADER, getRealmHeader()); resp.sendError(HttpServletResponse.SC_UNAUTHORIZED, "invalid username/password"); return null; } return acct; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/9acf20de225b4ff5f5475b1e3624b1a460148320/ZimbraServlet.java/buggy/ZimbraServer/src/java/com/zimbra/cs/servlet/ZimbraServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
3032,
13240,
1730,
691,
12,
2940,
18572,
3658,
16,
2940,
4745,
607,
500,
550,
281,
84,
13,
15069,
14106,
16,
4745,
503,
16,
15133,
95,
780,
1944,
33,
3658,
18,
588,
1864,
2932,
6063,
8863,
759,
6241,
30,
10161,
2941,
11612,
24979,
792,
6063,
1132,
2777,
430,
12,
1944,
631,
2011,
20081,
5,
1944,
18,
17514,
1190,
2932,
8252,
6,
3719,
95,
12243,
18,
1289,
1864,
12,
19989,
59,
67,
25114,
1777,
67,
7557,
16,
588,
22545,
1864,
10663,
12243,
18,
4661,
668,
12,
2940,
29910,
18,
2312,
67,
2124,
28383,
10837,
11926,
22035,
8863,
2463,
2011,
31,
97,
759,
26,
10127,
2080,
6,
8252,
9654,
2469,
5621,
780,
1355,
6433,
33,
2704,
780,
12,
2171,
1105,
18,
3922,
2171,
1105,
12,
1944,
18,
28023,
12,
26,
2934,
588,
2160,
1435,
10019,
474,
1829,
33,
1355,
6433,
18,
31806,
2932,
2773,
1769,
430,
12,
1829,
631,
17,
21,
15329,
12243,
18,
4661,
668,
12,
2940,
29910,
18,
2312,
67,
16234,
67,
5519,
10837,
5387,
13240,
1944,
11687,
8863,
2463,
2011,
31,
97,
780,
1355,
33,
1355,
6433,
18,
28023,
12,
20,
16,
1829,
1769,
780,
5466,
33,
1355,
6433,
18,
28023,
12,
1829,
15,
21,
1769,
17485,
25529,
33,
17485,
18,
588,
1442,
5621,
3032,
1077,
299,
33,
25529,
18,
588,
3032,
5911,
12,
1355,
1769,
430,
12,
1077,
299,
631,
2011,
15329,
12243,
18,
1289,
1864,
12,
19989,
59,
67,
25114,
1777,
67,
7557,
16,
588,
22545,
1864,
10663,
12243,
18,
4661,
668,
12,
2940,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
3032,
13240,
1730,
691,
12,
2940,
18572,
3658,
16,
2940,
4745,
607,
500,
550,
281,
84,
13,
15069,
14106,
16,
4745,
503,
16,
15133,
95,
780,
1944,
33,
3658,
18,
588,
1864,
2932,
6063,
8863,
759,
6241,
30,
10161,
2941,
11612,
24979,
792,
6063,
1132,
2777,
430,
12,
1944,
631,
2011,
20081,
5,
1944,
18,
17514,
1190,
2932,
8252,
6,
3719,
95,
12243,
18,
1289,
1864,
12,
19989,
59,
67,
25114,
1777,
67,
7557,
16,
588,
22545,
1864,
10663,
12243,
18,
4661,
668,
12,
2940,
29910,
18,
2312,
67,
2124,
28383,
10837,
11926,
22035,
8863,
2463,
2011,
31,
97,
759,
26,
10127,
2080,
6,
8252,
9654,
2469,
5621,
780,
1355,
6433,
33,
2704,
780,
12,
2171,
1105,
18,
2
] |
||
lblSize.setText("Size:"); | lblSize.setText(Messages.getString("FontDefinitionDialog.Lbl.Size")); | private void placeComponents() { GridLayout glContent = new GridLayout(); glContent.verticalSpacing = 5; glContent.horizontalSpacing = 5; glContent.marginHeight = 7; glContent.marginWidth = 7; glContent.numColumns = 9; cmpContent = new Composite(shell, SWT.NONE); cmpContent.setLayout(glContent); Label lblFont = new Label(cmpContent, SWT.NONE); GridData gdLFont = new GridData(); gdLFont.heightHint = 22; lblFont.setLayoutData(gdLFont); lblFont.setText("Font:"); cmbFontNames = new Combo(cmpContent, SWT.DROP_DOWN | SWT.READ_ONLY); GridData gdCMBFontNames = new GridData(GridData.FILL_HORIZONTAL); gdCMBFontNames.horizontalSpan = 8; cmbFontNames.setLayoutData(gdCMBFontNames); cmbFontNames.addSelectionListener(this); Label lblSize = new Label(cmpContent, SWT.NONE); GridData gdLSize = new GridData(); gdLSize.heightHint = 22; lblSize.setLayoutData(gdLSize); lblSize.setText("Size:"); iscFontSizes = new IntegerSpinControl(cmpContent, SWT.NONE, (int) fdCurrent.getSize()); GridData gdISCFontSizes = new GridData(GridData.FILL_HORIZONTAL); gdISCFontSizes.horizontalSpan = 3; iscFontSizes.setLayoutData(gdISCFontSizes); iscFontSizes.setMinimum(MIN_FONT_SIZE); iscFontSizes.setMaximum(MAX_FONT_SIZE); iscFontSizes.addListener(this); Label lblForeground = new Label(cmpContent, SWT.NONE); GridData gdLForeground = new GridData(); gdLForeground.horizontalSpan = 2; lblForeground.setLayoutData(gdLForeground); lblForeground.setText("Color:"); fccColor = new FillChooserComposite(cmpContent, SWT.NONE, cdCurrent, false, false); GridData gdFCCColor = new GridData(GridData.FILL_HORIZONTAL); gdFCCColor.horizontalSpan = 3; fccColor.setLayoutData(gdFCCColor); fccColor.addListener(this); Label lblStyle = new Label(cmpContent, SWT.NONE); GridData gdLStyle = new GridData(); gdLStyle.heightHint = 22; // gdLStyle.horizontalSpan = 2; lblStyle.setLayoutData(gdLStyle); lblStyle.setText("Style:"); btnBold = new Button(cmpContent, SWT.TOGGLE); GridData gdBBold = new GridData(GridData.FILL_HORIZONTAL); btnBold.setLayoutData(gdBBold); // TODO: This should be an image btnBold.setText("B"); btnBold.addSelectionListener(this); btnBold.setSelection(fdCurrent.isBold()); btnItalic = new Button(cmpContent, SWT.TOGGLE); GridData gdBItalic = new GridData(GridData.FILL_HORIZONTAL); btnItalic.setLayoutData(gdBItalic); // TODO: This should be an image btnItalic.setText("I"); btnItalic.addSelectionListener(this); btnItalic.setSelection(fdCurrent.isItalic()); btnUnderline = new Button(cmpContent, SWT.TOGGLE); GridData gdBUnderline = new GridData(GridData.FILL_HORIZONTAL); btnUnderline.setLayoutData(gdBUnderline); // TODO: This should be an image btnUnderline.setText("U"); btnUnderline.addSelectionListener(this); btnUnderline.setSelection(fdCurrent.isUnderline()); Label lblFormat = new Label(cmpContent, SWT.NONE); GridData gdLFormat = new GridData(GridData.VERTICAL_ALIGN_FILL); gdLFormat.horizontalSpan = 2; gdLFormat.verticalSpan = 2; lblFormat.setLayoutData(gdLFormat); lblFormat.setText("Format:"); cbStrikethru = new Button(cmpContent, SWT.CHECK); GridData gdCBStrikethru = new GridData(GridData.FILL_HORIZONTAL); gdCBStrikethru.horizontalSpan = 2; gdCBStrikethru.heightHint = 20; cbStrikethru.setLayoutData(gdCBStrikethru); cbStrikethru.addSelectionListener(this); cbStrikethru.setText("Strikethrough"); cbStrikethru.setSelection(fdCurrent.isStrikethrough()); Label lblDummy1 = new Label(cmpContent, SWT.NONE); GridData gdLDummy1 = new GridData(); gdLDummy1.horizontalSpan = 6; lblDummy1.setLayoutData(gdLDummy1); cbWrap = new Button(cmpContent, SWT.CHECK); GridData gdCBWrap = new GridData(GridData.FILL_HORIZONTAL); gdCBWrap.horizontalSpan = 2; gdCBWrap.heightHint = 20; cbWrap.setLayoutData(gdCBWrap); cbWrap.addSelectionListener(this); cbWrap.setText("Wrap"); cbWrap.setSelection(fdCurrent.isWordWrap()); createRotationPanel(); createAlignmentPanel(); FillLayout flPreview = new FillLayout(); flPreview.marginHeight = 2; flPreview.marginWidth = 3; grpPreview = new Group(cmpContent, SWT.NONE); grpPreview.setText("Preview"); GridData gdGRPPreview = new GridData(GridData.FILL_BOTH); gdGRPPreview.horizontalSpan = 9; grpPreview.setLayoutData(gdGRPPreview); grpPreview.setLayout(flPreview); fcPreview = new FontCanvas(grpPreview, SWT.NONE, fdCurrent, cdCurrent, true, true, true); createButtonPanel(); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7793e94b4d7fab5891f226c6c937e37d85bebad8/FontDefinitionDialog.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FontDefinitionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3166,
7171,
1435,
565,
288,
3639,
7145,
3744,
5118,
1350,
273,
394,
7145,
3744,
5621,
3639,
5118,
1350,
18,
17824,
18006,
273,
1381,
31,
3639,
5118,
1350,
18,
18396,
18006,
273,
1381,
31,
3639,
5118,
1350,
18,
10107,
2686,
273,
2371,
31,
3639,
5118,
1350,
18,
10107,
2384,
273,
2371,
31,
3639,
5118,
1350,
18,
2107,
3380,
273,
2468,
31,
3639,
9411,
1350,
273,
394,
14728,
12,
10304,
16,
348,
8588,
18,
9826,
1769,
3639,
9411,
1350,
18,
542,
3744,
12,
7043,
1350,
1769,
3639,
5287,
14284,
5711,
273,
394,
5287,
12,
9625,
1350,
16,
348,
8588,
18,
9826,
1769,
3639,
7145,
751,
15551,
48,
5711,
273,
394,
7145,
751,
5621,
3639,
15551,
48,
5711,
18,
4210,
7002,
273,
11201,
31,
3639,
14284,
5711,
18,
542,
3744,
751,
12,
19016,
48,
5711,
1769,
3639,
14284,
5711,
18,
542,
1528,
2932,
5711,
2773,
1769,
3639,
276,
1627,
5711,
1557,
273,
394,
1286,
1075,
12,
9625,
1350,
16,
348,
8588,
18,
18768,
67,
12711,
571,
348,
8588,
18,
6949,
67,
10857,
1769,
3639,
7145,
751,
15551,
39,
7969,
5711,
1557,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
1769,
3639,
15551,
39,
7969,
5711,
1557,
18,
18396,
6952,
273,
1725,
31,
3639,
276,
1627,
5711,
1557,
18,
542,
3744,
751,
12,
19016,
39,
7969,
5711,
1557,
1769,
3639,
276,
1627,
5711,
1557,
18,
1289,
6233,
2223,
12,
2211,
1769,
3639,
5287,
14284,
1225,
273,
394,
5287,
12,
9625,
1350,
16,
348,
8588,
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,
3166,
7171,
1435,
565,
288,
3639,
7145,
3744,
5118,
1350,
273,
394,
7145,
3744,
5621,
3639,
5118,
1350,
18,
17824,
18006,
273,
1381,
31,
3639,
5118,
1350,
18,
18396,
18006,
273,
1381,
31,
3639,
5118,
1350,
18,
10107,
2686,
273,
2371,
31,
3639,
5118,
1350,
18,
10107,
2384,
273,
2371,
31,
3639,
5118,
1350,
18,
2107,
3380,
273,
2468,
31,
3639,
9411,
1350,
273,
394,
14728,
12,
10304,
16,
348,
8588,
18,
9826,
1769,
3639,
9411,
1350,
18,
542,
3744,
12,
7043,
1350,
1769,
3639,
5287,
14284,
5711,
273,
394,
5287,
12,
9625,
1350,
16,
348,
8588,
18,
9826,
1769,
3639,
7145,
751,
15551,
48,
5711,
273,
394,
7145,
751,
5621,
3639,
15551,
48,
5711,
18,
2
] |
obj = obj.getParentScope(); if (obj == null) { return firstXMLObject; } | scope = scope.getParentScope(); } while (scope != null); if (firstXMLObject != null) { return firstXMLObject; | public static Scriptable bind(Context cx, Scriptable scope, String id) { Scriptable obj = scope; Scriptable firstXMLObject = null; for (;;) { if (obj instanceof NativeWith) { Scriptable withObj = obj.getPrototype(); if (withObj instanceof XMLObject) { XMLObject xmlObject = (XMLObject)withObj; if (xmlObject.ecmaHas(cx, id)) { return xmlObject; } if (firstXMLObject == null) { firstXMLObject = xmlObject; } } else { if (ScriptableObject.hasProperty(withObj, id)) { return withObj; } } } else { if (ScriptableObject.hasProperty(obj, id)) { return obj; } } obj = obj.getParentScope(); if (obj == null) { // XML objects always bind so return it if it was found return firstXMLObject; } } } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/cef67b9e54df90242c6b61cd47b35f1810416ada/ScriptRuntime.java/clean/src/org/mozilla/javascript/ScriptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22780,
1993,
12,
1042,
9494,
16,
22780,
2146,
16,
514,
612,
13,
565,
288,
3639,
22780,
1081,
273,
2146,
31,
3639,
22780,
1122,
4201,
921,
273,
446,
31,
3639,
364,
261,
25708,
13,
288,
5411,
309,
261,
2603,
1276,
16717,
1190,
13,
288,
7734,
22780,
598,
2675,
273,
1081,
18,
588,
15846,
5621,
7734,
309,
261,
1918,
2675,
1276,
3167,
921,
13,
288,
10792,
3167,
921,
2025,
921,
273,
261,
4201,
921,
13,
1918,
2675,
31,
10792,
309,
261,
2902,
921,
18,
557,
2540,
5582,
12,
71,
92,
16,
612,
3719,
288,
13491,
327,
2025,
921,
31,
10792,
289,
10792,
309,
261,
3645,
4201,
921,
422,
446,
13,
288,
13491,
1122,
4201,
921,
273,
2025,
921,
31,
10792,
289,
7734,
289,
469,
288,
10792,
309,
261,
3651,
429,
921,
18,
5332,
1396,
12,
1918,
2675,
16,
612,
3719,
288,
13491,
327,
598,
2675,
31,
10792,
289,
7734,
289,
5411,
289,
469,
288,
7734,
309,
261,
3651,
429,
921,
18,
5332,
1396,
12,
2603,
16,
612,
3719,
288,
10792,
327,
1081,
31,
7734,
289,
5411,
289,
5411,
1081,
273,
1081,
18,
588,
3054,
3876,
5621,
5411,
309,
261,
2603,
422,
446,
13,
288,
7734,
368,
3167,
2184,
3712,
1993,
1427,
327,
518,
309,
518,
1703,
1392,
7734,
327,
1122,
4201,
921,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22780,
1993,
12,
1042,
9494,
16,
22780,
2146,
16,
514,
612,
13,
565,
288,
3639,
22780,
1081,
273,
2146,
31,
3639,
22780,
1122,
4201,
921,
273,
446,
31,
3639,
364,
261,
25708,
13,
288,
5411,
309,
261,
2603,
1276,
16717,
1190,
13,
288,
7734,
22780,
598,
2675,
273,
1081,
18,
588,
15846,
5621,
7734,
309,
261,
1918,
2675,
1276,
3167,
921,
13,
288,
10792,
3167,
921,
2025,
921,
273,
261,
4201,
921,
13,
1918,
2675,
31,
10792,
309,
261,
2902,
921,
18,
557,
2540,
5582,
12,
71,
92,
16,
612,
3719,
288,
13491,
327,
2025,
921,
31,
10792,
289,
10792,
309,
261,
3645,
4201,
921,
422,
446,
13,
288,
13491,
1122,
4201,
921,
273,
2025,
921,
2
] |
String expectedResult19 = " aaa();\n" + " try {\n" + " aaa2();\n" + " } catch(Exception ex) {\n" + " aaa3();\n" + " }\n" + " finally {\n" + " System.out.println();\n" + " }\n" + | String expectedResult19 = "aaa();\n" + "try {\n" + " aaa2();\n" + "} catch(Exception ex) {\n" + " aaa3();\n" + "}\n" + "finally {\n" + " System.out.println();\n" + "}\n" + | public void testReplace() { String str = "// searching for several constructions\n" + " lastTest = \"several constructions match\";\n" + " matches = testMatcher.findMatches(s5,s4, options);\n" + " if (matches==null || matches.size()!=3) return false;\n" + "\n" + " // searching for several constructions\n" + " lastTest = \"several constructions 2\";\n" + " matches = testMatcher.findMatches(s5,s6, options);\n" + " if (matches.size()!=0) return false;\n" + "\n" + " //options.setLooseMatching(true);\n" + " // searching for several constructions\n" + " lastTest = \"several constructions 3\";\n" + " matches = testMatcher.findMatches(s7,s8, options);\n" + " if (matches.size()!=2) return false;"; String str2=" lastTest = 'Descr;\n" + " matches = testMatcher.findMatches('In,'Pattern, options);\n" + " if (matches.size()!='Number) return false;"; String str3 = "assertEquals($Descr$,testMatcher.findMatches($In$,$Pattern$, options).size(),$Number$);"; String expectedResult1 = "// searching for several constructions\n" + " lastTest = \"several constructions match\";\n" + " matches = testMatcher.findMatches(s5,s4, options);\n" + " if (matches==null || matches.size()!=3) return false;\n" + "\n" + " // searching for several constructions\n" + " assertEquals(\"several constructions 2\",testMatcher.findMatches(s5,s6, options).size(),0);\n" + "\n" + " //options.setLooseMatching(true);\n" + " // searching for several constructions\n" + " assertEquals(\"several constructions 3\",testMatcher.findMatches(s7,s8, options).size(),2);"; String str4 = ""; actualResult = replacer.testReplace(str,str2,str3,options); assertEquals("Basic replacement",expectedResult1,actualResult); actualResult = replacer.testReplace(str,str2,str4,options); String expectedResult2 = "// searching for several constructions\n" + " lastTest = \"several constructions match\";\n" + " matches = testMatcher.findMatches(s5,s4, options);\n" + " if (matches==null || matches.size()!=3) return false;\n" + "\n" + " // searching for several constructions\n" + "\n" + " //options.setLooseMatching(true);\n" + " // searching for several constructions"; assertEquals("Empty replacement",expectedResult2,actualResult); String str5 = "testMatcher.findMatches('In,'Pattern, options).size()"; String str6 = "findMatchesCount($In$,$Pattern$)"; String expectedResult3="// searching for several constructions\n" + " lastTest = \"several constructions match\";\n" + " matches = testMatcher.findMatches(s5,s4, options);\n" + " if (matches==null || matches.size()!=3) return false;\n" + "\n" + " // searching for several constructions\n" + " assertEquals(\"several constructions 2\", findMatchesCount(s5,s6), 0);\n" + "\n" + " //options.setLooseMatching(true);\n" + " // searching for several constructions\n" + " assertEquals(\"several constructions 3\", findMatchesCount(s7,s8), 2);"; actualResult = replacer.testReplace(expectedResult1,str5,str6,options); assertEquals( "Expression replacement", expectedResult3,actualResult ); String str7 = "try { a.doSomething(); b.doSomething(); } catch(IOException ex) { ex.printStackTrace(); throw new RuntimeException(ex); }"; String str8 = "try { 'Statements+; } catch('_ '_) { 'HandlerStatements+; }"; String str9 = "$Statements$;"; String expectedResult4 = " a.doSomething();\n" + " b.doSomething();"; actualResult = replacer.testReplace(str7,str8,str9,options); assertEquals( "Multi line match in replacement", expectedResult4,actualResult ); String str10 = " parentNode.insert(compositeNode, i);\n" + " if (asyncMode) {\n" + " myTreeModel.nodesWereInserted(parentNode,new int[] {i} );\n" + " }"; String str11 = " 'parentNode.insert('newNode, 'i);\n" + " if (asyncMode) {\n" + " myTreeModel.nodesWereInserted('parentNode,new int[] {'i} );\n" + " }"; String str12 = "addChild($parentNode$,$newNode$, $i$);"; String expectedResult5 = " addChild(parentNode,compositeNode, i);"; actualResult = replacer.testReplace(str10,str11,str12,options); assertEquals( "Array initializer replacement", expectedResult5,actualResult); String str13 = " aaa(5,6,3,4,1,2);"; String str14 = "aaa('t{2,2},3,4,'q{2,2});"; String str15 = "aaa($q$,3,4,$t$);"; String expectedResult6 = " aaa(1,2,3,4,5,6);"; actualResult = replacer.testReplace(str13,str14,str15,options); assertEquals("Parameter multiple match",expectedResult6,actualResult); String str16 = " int c = a();"; String str17 = "'t:a ('q*,'p*)"; String str18 = "$t$($q$,1,$p$)"; String expectedResult7 = " int c = a(1);"; actualResult = replacer.testReplace(str16,str17,str18,options); assertEquals("Replacement of init in definition + empty substitution",expectedResult7,actualResult); String str19 = " aaa(bbb);"; String str20 = "'t('_);"; String str21 = "$t$(ccc);"; String expectedResult8 = " aaa(ccc);"; actualResult = replacer.testReplace(str19,str20,str21,options); assertEquals("One substition replacement",expectedResult8,actualResult); String str22 = " instance.setAAA(anotherInstance.getBBB());"; String str23 = " 'i.'m:set(.+) ('a.'m2:get(.+) ());"; String str24 = " $a$.set$m2_1$( $i$.get$m_1$() );"; String expectedResult9 = " anotherInstance.setBBB( instance.getAAA() );"; actualResult = replacer.testReplace(str22,str23,str24,options); assertEquals("Reg exp substitution replacement",expectedResult9,actualResult); String str25 = " LaterInvocator.invokeLater(new Runnable() {\n" + " public void run() {\n" + " LOG.info(\"refreshFilesAsync, modalityState=\" + ModalityState.current());\n" + " myHandler.getFiles().refreshFilesAsync(new Runnable() {\n" + " public void run() {\n" + " semaphore.up();\n" + " }\n" + " });\n" + " }\n" + " });"; String str26 = " LaterInvocator.invokeLater('Params{1,10});"; String str27 = " com.intellij.openapi.application.ApplicationManager.getApplication().invokeLater($Params$);"; String expectedResult10 = " com.intellij.openapi.application.ApplicationManager.getApplication().invokeLater(new Runnable() {\n" + " public void run() {\n" + " LOG.info(\"refreshFilesAsync, modalityState=\" + ModalityState.current());\n" + " myHandler.getFiles().refreshFilesAsync(new Runnable() {\n" + " public void run() {\n" + " semaphore.up();\n" + " }\n" + " });\n" + " }\n" + " });"; actualResult = replacer.testReplace(str25,str26,str27,options); assertEquals("Anonymous in parameter",expectedResult10,actualResult); String str28 = "UTElementNode elementNode = new UTElementNode(myProject, processedElement, psiFile,\n" + " processedElement.getTextOffset(), true,\n" + " !myUsageViewDescriptor.toMarkInvalidOrReadonlyUsages(), null);"; String str29 = "new UTElementNode('param, 'directory, 'null, '0, 'true, !'descr.toMarkInvalidOrReadonlyUsages(),\n" + " 'referencesWord)"; String str30 = "new UTElementNode($param$, $directory$, $null$, $0$, $true$, true,\n" + " $referencesWord$)"; String expectedResult11 = "UTElementNode elementNode = new UTElementNode(myProject, processedElement, psiFile, processedElement.getTextOffset(), true, true,\n" + " null);"; actualResult = replacer.testReplace(str28,str29,str30,options); assertEquals("Replace in def initializer",expectedResult11,actualResult); String s31 = "a = b; b = c; a=a; c=c;"; String s32 = "'a = 'a;"; String s33 = "1 = 1;"; String expectedResult12 = "a = b; b = c;\n" + " 1 = 1;\n" + " 1 = 1;"; actualResult = replacer.testReplace(s31,s32,s33,options); assertEquals( "replace silly assignments", expectedResult12, actualResult ); String s34 = "ParamChecker.isTrue(1==1, \"!!!\");"; String s35 = "ParamChecker.isTrue('expr, 'msg)"; String s36 = "assert $expr$ : $msg$"; String expectedResult13 = "assert 1==1 : \"!!!\";"; actualResult = replacer.testReplace(s34,s35,s36,options); assertEquals( "replace with assert", expectedResult13, actualResult ); String s37 = "try { \n" + " ParamChecker.isTrue(1==1, \"!!!\");\n \n" + " // comment we want to leave\n \n" + " ParamChecker.isTrue(2==2, \"!!!\");\n" + "} catch(Exception ex) {}"; String s38 = "try {\n" + " 'Statement{0,100};\n" + "} catch(Exception ex) {}"; String s39 = "$Statement$;"; String expectedResult14 = " ParamChecker.isTrue(1==1, \"!!!\");\n" + "// comment we want to leave\n" + " ParamChecker.isTrue(2==2, \"!!!\");"; actualResult = replacer.testReplace(s37,s38,s39,options); assertEquals( "remove try with comments inside", expectedResult14, actualResult ); String s40 = "ParamChecker.instanceOf(queryKey, GroupBySqlTypePolicy.GroupKey.class);"; String s41 = "ParamChecker.instanceOf('obj, 'class.class);"; String s42 = "assert $obj$ instanceof $class$ : \"$obj$ is an instance of \" + $obj$.getClass() + \"; expected \" + $class$.class;"; String expectedResult15 = " assert queryKey instanceof GroupBySqlTypePolicy.GroupKey : \"queryKey is an instance of \" + queryKey.getClass() + \"; expected \" + GroupBySqlTypePolicy.GroupKey.class;"; actualResult = replacer.testReplace(s40,s41,s42,options); assertEquals( "Matching/replacing .class literals", expectedResult15, actualResult ); String s43 = "class Wpd {\n" + " static final String TAG_BEAN_VALUE = \"\";\n" + "}\n" + "XmlTag beanTag = rootTag.findSubTag(Wpd.TAG_BEAN_VALUE);"; String s44 = "'Instance?.findSubTag( 'Parameter:[exprtype( *String ) ])"; String s45 = "jetbrains.fabrique.util.XmlApiUtil.findSubTag($Instance$, $Parameter$)"; String expectedResult16 = "class Wpd {\n" + " static final String TAG_BEAN_VALUE = \"\";\n" + "}\n" + "XmlTag beanTag = jetbrains.fabrique.util.XmlApiUtil.findSubTag(rootTag, Wpd.TAG_BEAN_VALUE);"; actualResult = replacer.testReplace(s43,s44,s45,options); assertEquals( "Matching/replacing static fields", expectedResult16, actualResult ); String s46 = "Rectangle2D rec = new Rectangle2D.Double(\n" + " drec.getX(),\n" + " drec.getY(),\n" + " drec.getWidth(), \n" + " drec.getWidth());"; String s47 = "$Instance$.$MethodCall$()"; String s48 = "OtherClass.round($Instance$.$MethodCall$(),5)"; String expectedResult17 = "Rectangle2D rec = new Rectangle2D.Double(\n" + " OtherClass.round(drec.getX(),5),\n" + " OtherClass.round(drec.getY(),5),\n" + " OtherClass.round(drec.getWidth(),5),\n" + " OtherClass.round(drec.getWidth(),5));"; actualResult = replacer.testReplace(s46,s47,s48,options); assertEquals( "Replace in constructor", expectedResult17, actualResult ); String s49 = "class A {}\n" + "class B extends A {}\n" + "A a = new B();"; String s50 = "A 'b = new 'B:*A ();"; String s51 = "A $b$ = new $B$(\"$b$\");"; String expectedResult18 = "class A {}\n" + "class B extends A {}\n" + " A a = new B(\"a\");"; actualResult = replacer.testReplace(s49,s50,s51,options); assertEquals( "Class navigation", expectedResult18, actualResult ); String s52 = "try {\n" + " aaa();\n" + "} finally {\n" + " System.out.println();" + "}\n" + "try {\n" + " aaa2();\n" + "} catch(Exception ex) {\n" + " aaa3();\n" + "}\n" + "finally {\n" + " System.out.println();\n" + "}\n" + "try {\n" + " aaa4();\n" + "} catch(Exception ex) {\n" + " aaa5();\n" + "}\n"; String s53 = "try { 'a; } finally {\n" + " 'b;" + "}"; String s54 = "$a$;"; String expectedResult19 = " aaa();\n" + " try {\n" + " aaa2();\n" + " } catch(Exception ex) {\n" + " aaa3();\n" + " }\n" + " finally {\n" + " System.out.println();\n" + " }\n" + "try {\n" + " aaa4();\n" + "} catch(Exception ex) {\n" + " aaa5();\n" + "}\n"; actualResult = replacer.testReplace(s52,s53,s54,options); assertEquals( "Try/ catch/ finally is replace with try/finally", expectedResult19, actualResult ); String s55 = "for(Iterator<String> iterator = stringlist.iterator(); iterator.hasNext()) {\n" + " String str = iterator.next();\n" + " System.out.println( str );\n" + "}"; String s56 = "for (Iterator<$Type$> $variable$ = $container$.iterator(); $variable$.hasNext();) {\n" + " $Type$ $var$ = $variable$.next();\n" + " $Statements$;\n" + "}"; String s57 = "for($var$:$container$) {\n" + " $Statements$;\n" + "}"; String expectedResult20 = " for(str:stringlist) {\n" + " System.out.println( str );\n" + " }"; actualResult = replacer.testReplace(s55,s56,s57,options); assertEquals( "for with foreach", expectedResult20, actualResult ); String s58 = "class A {\n" + " static Set<String> b_MAP = new HashSet<String>();\n" + " int c;\n" + "}"; String s59 = "'a:[ regex( (.*)_MAP ) ]"; String s60 = "$a_1$_SET"; String expectedResult21 = "class A {\n" + " static Set<String> b_SET = new HashSet<String>();\n" + " int c;\n" + "}"; actualResult = replacer.testReplace(s58,s59,s60,options); assertEquals( "replace symbol in definition", expectedResult21, actualResult ); String s64 = "int x = 42;\n" + "int y = 42; // Stuff"; String s65 = "'Type 'Variable = 'Value; // 'Comment"; String s66 = "/**\n" + " *$Comment$\n" + " */\n" + "$Type$ $Variable$ = $Value$;"; String expectedResult23 = "int x = 42;\n" + "/**\n" + " * Stuff\n" + " */\n" + " int y = 42;"; actualResult = replacer.testReplace(s64,s65,s66,options); assertEquals( "Replacement of the comment with javadoc", expectedResult23, actualResult ); String s61 = "try { 1=1; } catch(Exception e) { 1=1; } catch(Throwable t) { 2=2; }"; String s62 = "try { 'a; } catch(Exception e) { 'b; }"; String s63 = "try { $a$; } catch(Exception1 e) { $b$; } catch(Exception2 e) { $b$; }"; String expectedResult22 = " try { 1=1; } catch(Exception1 e) { 1=1; } catch(Exception2 e) { 1=1; } catch (Throwable t) { 2=2; }"; actualResult = replacer.testReplace(s61,s62,s63,options); assertEquals( "try replacement by another try will leave the unmatched catch", expectedResult22, actualResult ); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/9c2e64e4fd3d0bb80e77f27e3910e8d2ced2234e/StructuralReplaceTest.java/clean/plugins/structuralsearch/testSource/com/intellij/structuralsearch/StructuralReplaceTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
5729,
1435,
288,
565,
514,
609,
273,
16177,
15300,
364,
11392,
16171,
87,
64,
82,
6,
397,
1171,
315,
565,
1142,
4709,
273,
1239,
307,
502,
287,
16171,
87,
845,
2412,
9747,
82,
6,
397,
1171,
315,
565,
1885,
273,
1842,
6286,
18,
4720,
6869,
12,
87,
25,
16,
87,
24,
16,
702,
20472,
82,
6,
397,
1171,
315,
565,
309,
261,
8436,
631,
2011,
747,
1885,
18,
1467,
1435,
5,
33,
23,
13,
327,
629,
9747,
82,
6,
397,
1171,
1548,
82,
6,
397,
1171,
315,
565,
368,
15300,
364,
11392,
16171,
87,
64,
82,
6,
397,
1171,
315,
565,
1142,
4709,
273,
1239,
307,
502,
287,
16171,
87,
576,
2412,
9747,
82,
6,
397,
1171,
315,
565,
1885,
273,
1842,
6286,
18,
4720,
6869,
12,
87,
25,
16,
87,
26,
16,
702,
20472,
82,
6,
397,
1171,
315,
565,
309,
261,
8436,
18,
1467,
1435,
5,
33,
20,
13,
327,
629,
9747,
82,
6,
397,
1171,
1548,
82,
6,
397,
1171,
315,
565,
368,
2116,
18,
542,
1504,
2584,
9517,
12,
3767,
20472,
82,
6,
397,
1171,
315,
565,
368,
15300,
364,
11392,
16171,
87,
64,
82,
6,
397,
1171,
315,
565,
1142,
4709,
273,
1239,
307,
502,
287,
16171,
87,
890,
2412,
9747,
82,
6,
397,
1171,
315,
565,
1885,
273,
1842,
6286,
18,
4720,
6869,
12,
87,
27,
16,
87,
28,
16,
702,
20472,
82,
6,
397,
1171,
315,
565,
309,
261,
8436,
18,
1467,
1435,
5,
33,
22,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
5729,
1435,
288,
565,
514,
609,
273,
16177,
15300,
364,
11392,
16171,
87,
64,
82,
6,
397,
1171,
315,
565,
1142,
4709,
273,
1239,
307,
502,
287,
16171,
87,
845,
2412,
9747,
82,
6,
397,
1171,
315,
565,
1885,
273,
1842,
6286,
18,
4720,
6869,
12,
87,
25,
16,
87,
24,
16,
702,
20472,
82,
6,
397,
1171,
315,
565,
309,
261,
8436,
631,
2011,
747,
1885,
18,
1467,
1435,
5,
33,
23,
13,
327,
629,
9747,
82,
6,
397,
1171,
1548,
82,
6,
397,
1171,
315,
565,
368,
15300,
364,
11392,
16171,
87,
64,
82,
6,
397,
1171,
315,
565,
1142,
4709,
273,
1239,
307,
502,
287,
16171,
87,
576,
2412,
9747,
82,
6,
2
] |
outsb.append("Data is more than 32K: ").append(data.size()); | outsb.append("Data is more than 32K: ").append(data.size()); outsb.append("\r\n"); out.write(outsb.toString().getBytes()); out.flush(); | private boolean processLine(BufferedReader reader, final OutputStream out) throws IOException { String line; StringBuffer outsb = new StringBuffer(); try { line = reader.readLine(); } catch (IOException e) { outsb.append("Bye... (").append(e).append(")"); System.err.println("Bye... ("+e+")"); return true; } boolean getCHKOnly = false; if(line == null) return true; String uline = line.toUpperCase(); if(Logger.shouldLog(Logger.MINOR, this)) 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: ").append(key).append(" : ").append(e2); return false; } try { FetchResult result = client.fetch(uri); ClientMetadata cm = result.getMetadata(); outsb.append("Content MIME type: ").append(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: ").append(data.size()); return false; } 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 false; } outsb.append("Data:\r\n"); outsb.append(new String(dataBytes)); } catch (FetchException e) { outsb.append("Error: ").append(e.getMessage()).append("\r\n"); if((e.getMode() == FetchException.SPLITFILE_ERROR) && (e.errorCodes != null)) { outsb.append(e.errorCodes.toVerboseString()); } if(e.newURI != null) outsb.append("Permanent redirect: ").append(e.newURI).append("\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: ").append(key).append(" : ").append(e2); return false; } try { long startTime = System.currentTimeMillis(); FetchResult result = client.fetch(uri); ClientMetadata cm = result.getMetadata(); outsb.append("Content MIME type: ").append(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: ").append(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 ").append(fnam); } catch (IOException e) { outsb.append("Could not write file: caught ").append(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: ").append(rate).append(" bytes / second"); } catch (FetchException e) { outsb.append("Error: ").append(e.getMessage()); if((e.getMode() == FetchException.SPLITFILE_ERROR) && (e.errorCodes != null)) { outsb.append(e.errorCodes.toVerboseString()); } if(e.newURI != null) outsb.append("Permanent redirect: ").append(e.newURI).append("\r\n"); } } else if(uline.startsWith("UPDATE")) { outsb.append("starting the update process"); // FIXME run on separate thread n.ps.queueTimedJob(new Runnable() { public void run() { n.getNodeUpdater().Update(); } }, 0); return false; }else if(uline.startsWith("BLOW")) { n.getNodeUpdater().blow("caught an IOException : (Incompetent Operator) :p"); return false; } else if(uline.startsWith("SHUTDOWN")) { StringBuffer sb = new StringBuffer(); sb.append("Shutting node down.\r\n"); out.write(sb.toString().getBytes()); out.flush(); n.exit("Shutdown from console"); } else if(uline.startsWith("RESTART")) { StringBuffer sb = new StringBuffer(); sb.append("Restarting the node.\r\n"); out.write(sb.toString().getBytes()); out.flush(); n.getNodeStarter().restart(); } else if(uline.startsWith("QUIT") && (core.directTMCI == this)) { StringBuffer sb = new StringBuffer(); sb.append("QUIT command not available in console mode.\r\n"); out.write(sb.toString().getBytes()); out.flush(); return false; } else if(uline.startsWith("QUIT")) { StringBuffer sb = new StringBuffer(); sb.append("Closing connection.\r\n"); out.write(sb.toString().getBytes()); out.flush(); return true; } else if(uline.startsWith("HELP")) { printHeader(out); return false; } else if(uline.startsWith("PUT:") || (getCHKOnly = uline.startsWith("GETCHK:"))) { 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, null); } catch (InserterException e) { outsb.append("Error: ").append(e.getMessage()); if(e.uri != null) outsb.append("URI would have been: ").append(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").append(e.errorCodes.toVerboseString()); } return false; } outsb.append("URI: ").append(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 false; } 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: ").append(uri); outsb.append("======================================================="); } catch (InserterException e) { outsb.append("Finished insert but: ").append(e.getMessage()); if(e.uri != null) { uri = e.uri; uri = uri.addMetaStrings(new String[] { "" }); outsb.append("URI would have been: ").append(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); String mimeType = DefaultMIMETypes.guessMIMEType(line, false); if (line.indexOf('#') > -1) { String[] splittedLine = line.split("#"); line = splittedLine[0]; mimeType = splittedLine[1]; } File f = new File(line); outsb.append("Attempting to read file ").append(line); long startTime = System.currentTimeMillis(); try { if(!(f.exists() && f.canRead())) { throw new FileNotFoundException(); } // Guess MIME type outsb.append("Using MIME type: ").append(mimeType).append("\r\n"); 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, f.getName()); // FIXME depends on CHK's still being renamable //uri = uri.setDocName(f.getName()); outsb.append("URI: ").append(uri).append("\r\n"); long endTime = System.currentTimeMillis(); long sz = f.length(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Upload rate: ").append(rate).append(" bytes / second\r\n"); } catch (FileNotFoundException e1) { outsb.append("File not found"); } catch (InserterException e) { outsb.append("Finished insert but: ").append(e.getMessage()); if(e.uri != null) { outsb.append("URI would have been: ").append(e.uri); long endTime = System.currentTimeMillis(); long sz = f.length(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Upload rate: ").append(rate).append(" bytes / second"); } if(e.errorCodes != null) { outsb.append("Splitfile errors breakdown:"); outsb.append(e.errorCodes.toVerboseString()); } } catch (Throwable t) { outsb.append("Insert threw: ").append(t); t.printStackTrace(); } } else if(uline.startsWith("MAKESSK")) { InsertableClientSSK key = InsertableClientSSK.createRandom(r, ""); outsb.append("Insert URI: ").append(key.getInsertURI().toString(false)).append("\r\n"); outsb.append("Request URI: ").append(key.getURI().toString(false)).append("\r\n"); 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").append(fixedInsertURI).append("\r\n"); outsb.append("Normally you will then do PUTSSKDIR:<insert URI>#<directory to upload>, for example:\r\nPUTSSKDIR:").append(fixedInsertURI).append("#directoryToUpload/\r\n"); outsb.append("This will then produce a manifest site containing all the files, the default document can be accessed at\r\n").append(key.getURI().toString(false)).append("testsite/"); } 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 false; } String[] split = cmd.split(";"); String insertURI = split[0]; String targetURI = split[1]; outsb.append("Insert URI: ").append(insertURI); outsb.append("Target URI: ").append(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: ").append(result); } catch (InserterException e) { outsb.append("Finished insert but: ").append(e.getMessage()); Logger.normal(this, "Error: "+e, e); if(e.uri != null) { outsb.append("URI would have been: ").append(e.uri); } } } else if(uline.startsWith("STATUS")) { SimpleFieldSet fs = n.exportPublicFieldSet(); outsb.append(fs.toString()); outsb.append(n.getStatus()); if(Version.buildNumber()<Version.highestSeenBuild){ outsb.append("The latest version is : ").append(Version.highestSeenBuild); } } else if(uline.startsWith("ADDPEER:") || uline.startsWith("CONNECT:")) { String key = null; if(uline.startsWith("CONNECT:")) { key = line.substring("CONNECT:".length()); } else { key = line.substring("ADDPEER:".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 add peer to node by noderef in ").append(key).append("\r\n"); File f = new File(key); if (f.isFile()) { outsb.append("Given string seems to be a file, loading...\r\n"); in = new BufferedReader(new FileReader(f)); } else { outsb.append("Given string seems to be an URL, loading...\r\n"); 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 false; if(content.equals("")) return false; addPeer(content); } else if(uline.startsWith("NAME:")) { outsb.append("Node name currently: ").append(n.getName()); 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: ").append(key); try{ n.setName(key); if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "Setting node.name to "+key); }catch(Exception e){ Logger.error(this, "Error setting node's name"); } core.storeConfig(); } else if(uline.startsWith("DISABLEPEER:")) { String nodeIdentifier = (line.substring("DISABLEPEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } if(disablePeer(nodeIdentifier)) { outsb.append("disable succeeded for ").append(nodeIdentifier); } else { outsb.append("disable failed for ").append(nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("ENABLEPEER:")) { String nodeIdentifier = (line.substring("ENABLEPEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } if(enablePeer(nodeIdentifier)) { outsb.append("enable succeeded for ").append(nodeIdentifier); } else { outsb.append("enable failed for ").append(nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("SETPEERLISTENONLY:")) { String nodeIdentifier = (line.substring("SETPEERLISTENONLY:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } pn.setListenOnly(true); outsb.append("set ListenOnly suceeded for ").append(nodeIdentifier).append("\r\n"); } else if(uline.startsWith("UNSETPEERLISTENONLY:")) { String nodeIdentifier = (line.substring("UNSETPEERLISTENONLY:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } pn.setListenOnly(false); outsb.append("unset ListenOnly suceeded for ").append(nodeIdentifier).append("\r\n"); } else if(uline.startsWith("HAVEPEER:")) { String nodeIdentifier = (line.substring("HAVEPEER:".length())).trim(); if(havePeer(nodeIdentifier)) { outsb.append("true for ").append(nodeIdentifier); } else { outsb.append("false for ").append(nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("REMOVEPEER:") || uline.startsWith("DISCONNECT:")) { String nodeIdentifier = null; if(uline.startsWith("DISCONNECT:")) { nodeIdentifier = line.substring("DISCONNECT:".length()); } else { nodeIdentifier = line.substring("REMOVEPEER:".length()); } if(removePeer(nodeIdentifier)) { outsb.append("peer removed for ").append(nodeIdentifier); } else { outsb.append("peer removal failed for ").append(nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("PEER:")) { String nodeIdentifier = (line.substring("PEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } SimpleFieldSet fs = pn.exportFieldSet(); outsb.append(fs.toString()); } else if(uline.startsWith("PEERWMD:")) { String nodeIdentifier = (line.substring("PEERWMD:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } SimpleFieldSet fs = pn.exportFieldSet(); SimpleFieldSet meta = pn.exportMetadataFieldSet(); if(!meta.isEmpty()) fs.put("metadata", meta); outsb.append(fs.toString()); } else if(uline.startsWith("PEERS")) { outsb.append(n.getTMCIPeerList()); outsb.append("PEERS done.\r\n"); } else if(uline.startsWith("PROBE:")) { String s = uline.substring("PROBE:".length()).trim(); double d = Double.parseDouble(s); ProbeCallback cb = new ProbeCallback() { public void onCompleted(String reason, double target, double best, double nearest, long id, short counter) { String msg = "Completed probe request: "+target+" -> "+best+"\r\nNearest actually hit "+nearest+", "+counter+" hops, id "+id+"\r\n"; try { out.write(msg.getBytes()); out.flush(); } catch (IOException e) { // Already closed. :( } synchronized(TextModeClientInterface.this) { doneSomething = true; TextModeClientInterface.this.notifyAll(); } } }; n.dispatcher.startProbe(d, cb); synchronized(this) { while(!doneSomething) { try { wait(5000); } catch (InterruptedException e) { // Ignore } } doneSomething = false; } } else if(uline.startsWith("PROBEALL")) { probeAll(); } 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(), true); //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(); return false; } | 46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/43db302bf9ce32ab506b41527dbfb8fa6f9b599c/TextModeClientInterface.java/clean/src/freenet/node/TextModeClientInterface.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1207,
1670,
12,
17947,
2514,
2949,
16,
727,
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,
2934,
6923,
12,
73,
2934,
6923,
2932,
2225,
1769,
5411,
2332,
18,
370,
18,
8222,
2932,
858,
73,
2777,
7566,
15,
73,
9078,
2225,
1769,
5411,
327,
638,
31,
3639,
289,
3639,
1250,
336,
1792,
47,
3386,
273,
629,
31,
3639,
309,
12,
1369,
422,
446,
13,
327,
638,
31,
3639,
514,
7493,
558,
273,
980,
18,
869,
8915,
5621,
3639,
309,
12,
3328,
18,
13139,
1343,
12,
3328,
18,
6236,
916,
16,
333,
3719,
540,
202,
3328,
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,
12443,
856,
18,
2469,
1435,
405,
374,
13,
597,
261,
856,
18,
3001,
861,
12,
20,
13,
422,
296,
296,
3719,
7734,
498,
273,
498,
18,
28023,
12,
21,
1769,
5411,
1323,
12443,
856,
18,
2469,
1435,
405,
374,
13,
597,
261,
856,
18,
3001,
861,
12,
856,
18,
2469,
1435,
17,
21,
13,
422,
296,
296,
3719,
7734,
498,
273,
498,
18,
28023,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1207,
1670,
12,
17947,
2514,
2949,
16,
727,
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,
2934,
6923,
12,
73,
2934,
6923,
2932,
2225,
1769,
5411,
2332,
18,
370,
18,
8222,
2932,
858,
73,
2777,
7566,
15,
73,
9078,
2225,
1769,
5411,
327,
638,
31,
3639,
289,
3639,
1250,
336,
1792,
47,
3386,
273,
629,
31,
3639,
309,
12,
1369,
422,
446,
13,
327,
638,
31,
3639,
514,
7493,
558,
273,
980,
18,
869,
8915,
5621,
3639,
2
] |
System.err.println("Removed SecurityManager"); | public void enforceSecurity(boolean enforce){ SecurityManager sm = System.getSecurityManager(); if (sm != null && sm != lastSecurityManagerInstalled) { // Throw a Security exception: we do not want to override // an 'alien' SecurityManager with either null or // a new SecurityManager. throw new SecurityException (Messages.getString(EXCEPTION_ALIEN_SECURITY_MANAGER)); } if (enforce) { // We want to install a SecurityManager. if (sm == null) { installSecurityManager(); System.err.println("installed SecurityManager"); } } else { if (sm != null) { System.setSecurityManager(null); lastSecurityManagerInstalled = null; System.err.println("Removed SecurityManager"); } } } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/d03502037fa135d333322e2bf501fc30047e4c82/ApplicationSecurityEnforcer.java/buggy/sources/org/apache/batik/util/ApplicationSecurityEnforcer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12980,
4368,
12,
6494,
12980,
15329,
3639,
6036,
1318,
3029,
273,
2332,
18,
588,
4368,
1318,
5621,
3639,
309,
261,
4808,
480,
446,
597,
3029,
480,
1142,
4368,
1318,
16747,
13,
288,
5411,
368,
3743,
279,
6036,
1520,
30,
732,
741,
486,
2545,
358,
3849,
5411,
368,
392,
296,
18083,
275,
11,
6036,
1318,
598,
3344,
446,
578,
2398,
368,
279,
394,
6036,
1318,
18,
5411,
604,
394,
17780,
7734,
261,
5058,
18,
588,
780,
12,
12658,
67,
1013,
45,
1157,
67,
29209,
67,
19402,
10019,
3639,
289,
7734,
309,
261,
275,
5734,
13,
288,
5411,
368,
1660,
2545,
358,
3799,
279,
6036,
1318,
18,
5411,
309,
261,
4808,
422,
446,
13,
288,
7734,
3799,
4368,
1318,
5621,
7734,
2332,
18,
370,
18,
8222,
2932,
13435,
6036,
1318,
8863,
5411,
289,
3639,
289,
469,
288,
5411,
309,
261,
4808,
480,
446,
13,
288,
7734,
2332,
18,
542,
4368,
1318,
12,
2011,
1769,
7734,
1142,
4368,
1318,
16747,
273,
446,
31,
21821,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
12980,
4368,
12,
6494,
12980,
15329,
3639,
6036,
1318,
3029,
273,
2332,
18,
588,
4368,
1318,
5621,
3639,
309,
261,
4808,
480,
446,
597,
3029,
480,
1142,
4368,
1318,
16747,
13,
288,
5411,
368,
3743,
279,
6036,
1520,
30,
732,
741,
486,
2545,
358,
3849,
5411,
368,
392,
296,
18083,
275,
11,
6036,
1318,
598,
3344,
446,
578,
2398,
368,
279,
394,
6036,
1318,
18,
5411,
604,
394,
17780,
7734,
261,
5058,
18,
588,
780,
12,
12658,
67,
1013,
45,
1157,
67,
29209,
67,
19402,
10019,
3639,
289,
7734,
309,
261,
275,
5734,
13,
288,
5411,
368,
1660,
2545,
358,
3799,
279,
6036,
1318,
18,
5411,
309,
261,
4808,
422,
446,
13,
288,
7734,
3799,
4368,
2
] |
|
try { | public void testCompare() throws Exception { DataOutputBuffer out1 = new DataOutputBuffer(); DataOutputBuffer out2 = new DataOutputBuffer(); DataOutputBuffer out3 = new DataOutputBuffer(); Text.Comparator comparator = new Text.Comparator(); for (int i=0; i<NUM_ITERATIONS; i++ ) { try { // reset output buffer out1.reset(); out2.reset(); out3.reset(); // generate two random strings String str1 = getTestString(); String str2 = getTestString(); if(i == 0 ) { str1 = getLongString(); str2 = getLongString(); } else { str1 = getTestString(); str2 = getTestString(); } // convert to texts Text txt1 = new Text(str1); Text txt2 = new Text(str2); Text txt3 = new Text(str1); // serialize them txt1.write(out1); txt2.write(out2); txt3.write(out3); // compare two strings by looking at their binary formats int ret1 = comparator.compare(out1.getData(), 0, out1.getLength(), out2.getData(), 0, out2.getLength()); // compare two strings int ret2 = txt1.compareTo(txt2); assertEquals(ret1, ret2); // test equal assertEquals(txt1.compareTo(txt3), 0); assertEquals(comparator.compare(out1.getData(), 0, out3.getLength(), out3.getData(), 0, out3.getLength()), 0); } catch (IOException e) { LOG.info(e); } } } | 50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/ade1478723edce95f407a038027d26b7e05459d5/TestText.java/clean/src/test/org/apache/hadoop/io/TestText.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
8583,
1435,
1216,
1185,
288,
1377,
1910,
1447,
1892,
596,
21,
273,
394,
1910,
1447,
1892,
5621,
1377,
1910,
1447,
1892,
596,
22,
273,
394,
1910,
1447,
1892,
5621,
1377,
1910,
1447,
1892,
596,
23,
273,
394,
1910,
1447,
1892,
5621,
1377,
3867,
18,
5559,
8862,
273,
394,
3867,
18,
5559,
5621,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
6069,
67,
11844,
15297,
31,
277,
9904,
262,
288,
1171,
368,
2715,
876,
1613,
1850,
596,
21,
18,
6208,
5621,
1850,
596,
22,
18,
6208,
5621,
1850,
596,
23,
18,
6208,
5621,
1850,
368,
2103,
2795,
2744,
2064,
1850,
514,
609,
21,
273,
29384,
780,
5621,
1850,
514,
609,
22,
273,
29384,
780,
5621,
1850,
309,
12,
77,
422,
374,
262,
288,
2868,
609,
21,
273,
11105,
780,
5621,
2868,
609,
22,
273,
11105,
780,
5621,
1850,
289,
469,
288,
2868,
609,
21,
273,
29384,
780,
5621,
2868,
609,
22,
273,
29384,
780,
5621,
1850,
289,
10792,
368,
1765,
358,
15219,
1850,
3867,
6463,
21,
273,
394,
3867,
12,
701,
21,
1769,
1850,
3867,
6463,
22,
273,
394,
3867,
12,
701,
22,
1769,
1850,
3867,
6463,
23,
273,
394,
3867,
12,
701,
21,
1769,
10792,
368,
4472,
2182,
1850,
6463,
21,
18,
2626,
12,
659,
21,
1769,
1850,
6463,
22,
18,
2626,
12,
659,
22,
1769,
1850,
6463,
23,
18,
2626,
12,
659,
23,
1769,
10792,
368,
3400,
2795,
2064,
635,
7849,
622,
3675,
3112,
6449,
1850,
509,
325,
21,
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,
282,
1071,
918,
1842,
8583,
1435,
1216,
1185,
288,
1377,
1910,
1447,
1892,
596,
21,
273,
394,
1910,
1447,
1892,
5621,
1377,
1910,
1447,
1892,
596,
22,
273,
394,
1910,
1447,
1892,
5621,
1377,
1910,
1447,
1892,
596,
23,
273,
394,
1910,
1447,
1892,
5621,
1377,
3867,
18,
5559,
8862,
273,
394,
3867,
18,
5559,
5621,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
6069,
67,
11844,
15297,
31,
277,
9904,
262,
288,
1171,
368,
2715,
876,
1613,
1850,
596,
21,
18,
6208,
5621,
1850,
596,
22,
18,
6208,
5621,
1850,
596,
23,
18,
6208,
5621,
1850,
368,
2103,
2795,
2744,
2064,
1850,
514,
609,
21,
273,
29384,
780,
5621,
1850,
514,
609,
22,
273,
29384,
780,
2
] |
|
logger.debug("Node at " + nodeUrl + " succefuly added"); | logger.info("Node at " + nodeUrl + " succefuly added"); logger.info("Lookup got " + this.acquiredNodes + " nodes"); | public P2PNodeAck giveNode(Node givenNode, P2PNodeManager remoteNodeManager) { if (logger.isDebugEnabled()) { logger.debug("Given node received from " + givenNode.getNodeInformation().getURL()); } // Get currrent nodes accessor if (!this.allArrived()) { this.waitingNodesList.add(givenNode); String nodeUrl = givenNode.getNodeInformation().getURL(); this.nodeManagerMap.put(nodeUrl, remoteNodeManager); this.acquiredNodes++; logger.info("Lookup got " + this.acquiredNodes + " nodes"); ProActiveRuntime remoteRt = givenNode.getProActiveRuntime(); try { remoteRt.addAcquaintance(this.parUrl); this.paRuntime.addAcquaintance(remoteRt.getURL()); this.paRuntime.register(remoteRt, remoteRt.getURL(), "p2p", System.getProperty(PROPERTY_ACQUISITION) + ":", remoteRt.getVMInformation().getName()); } catch (ProActiveException e) { logger.warn("Couldn't recgister the remote runtime", e); } logger.debug("Node at " + nodeUrl + " succefuly added"); return new P2PNodeAck(true); } else { return new P2PNodeAck(false); } } | 23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/0aad9a60aca347dacfc0f0039dbbb1671d89cbc5/P2PNodeLookup.java/buggy/src/org/objectweb/proactive/p2p/service/node/P2PNodeLookup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
453,
22,
52,
907,
11931,
8492,
907,
12,
907,
864,
907,
16,
453,
22,
52,
907,
1318,
2632,
907,
1318,
13,
288,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
2932,
6083,
756,
5079,
628,
315,
397,
7734,
864,
907,
18,
588,
907,
5369,
7675,
588,
1785,
10663,
3639,
289,
3639,
368,
968,
4306,
547,
2199,
9789,
3639,
309,
16051,
2211,
18,
454,
5715,
2950,
10756,
288,
5411,
333,
18,
20241,
3205,
682,
18,
1289,
12,
10822,
907,
1769,
5411,
514,
756,
1489,
273,
864,
907,
18,
588,
907,
5369,
7675,
588,
1785,
5621,
5411,
333,
18,
2159,
1318,
863,
18,
458,
12,
2159,
1489,
16,
2632,
907,
1318,
1769,
5411,
333,
18,
1077,
1402,
3205,
9904,
31,
5411,
1194,
18,
1376,
2932,
6609,
2363,
315,
397,
333,
18,
1077,
1402,
3205,
397,
315,
2199,
8863,
5411,
1186,
3896,
5576,
2632,
54,
88,
273,
864,
907,
18,
588,
626,
3896,
5576,
5621,
5411,
775,
288,
7734,
2632,
54,
88,
18,
1289,
9988,
372,
1598,
1359,
12,
2211,
18,
1065,
1489,
1769,
7734,
333,
18,
8774,
5576,
18,
1289,
9988,
372,
1598,
1359,
12,
7222,
54,
88,
18,
588,
1785,
10663,
7734,
333,
18,
8774,
5576,
18,
4861,
12,
7222,
54,
88,
16,
2632,
54,
88,
18,
588,
1785,
9334,
315,
84,
22,
84,
3113,
10792,
2332,
18,
588,
1396,
12,
9900,
67,
2226,
3500,
5127,
7022,
13,
397,
6153,
16,
10792,
2632,
54,
88,
18,
588,
7397,
5369,
7675,
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,
453,
22,
52,
907,
11931,
8492,
907,
12,
907,
864,
907,
16,
453,
22,
52,
907,
1318,
2632,
907,
1318,
13,
288,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
2932,
6083,
756,
5079,
628,
315,
397,
7734,
864,
907,
18,
588,
907,
5369,
7675,
588,
1785,
10663,
3639,
289,
3639,
368,
968,
4306,
547,
2199,
9789,
3639,
309,
16051,
2211,
18,
454,
5715,
2950,
10756,
288,
5411,
333,
18,
20241,
3205,
682,
18,
1289,
12,
10822,
907,
1769,
5411,
514,
756,
1489,
273,
864,
907,
18,
588,
907,
5369,
7675,
588,
1785,
5621,
5411,
333,
18,
2159,
1318,
863,
18,
458,
12,
2159,
1489,
16,
2632,
907,
1318,
1769,
5411,
2
] |
System.err.println(flightrecorder.toString()); | private void removeNode(IProgramElement progElem) { StringBuffer flightrecorder = new StringBuffer(); try { flightrecorder.append("In removeNode, about to chuck away: "+progElem+"\n"); verifyAssumption(progElem!=null); boolean deleteOK = false; IProgramElement parent = progElem.getParent(); flightrecorder.append("Parent of it is "+parent+"\n"); List kids = parent.getChildren(); flightrecorder.append("Which has "+kids.size()+" kids\n"); for (int i =0 ;i<kids.size();i++) { flightrecorder.append("Comparing with "+kids.get(i)+"\n"); if (kids.get(i).equals(progElem)) { kids.remove(i); flightrecorder.append("Removing it\n"); deleteOK=true; break; } } verifyAssumption(deleteOK,flightrecorder.toString()); // Are there any kids left for this node? if (parent.getChildren().size()==0 && parent.getParent()!=null && (parent.getKind().equals(IProgramElement.Kind.CODE) || parent.getKind().equals(IProgramElement.Kind.PACKAGE))) { // This node is on its own, we should trim it too *as long as its not a structural node* which we currently check by making sure its a code node // We should trim if it // System.err.println("Deleting parent:"+parent); removeNode(parent); } } catch (NullPointerException npe ){ // Occurred when commenting out other 2 ras classes in wsif?? reproducable? System.err.println(flightrecorder.toString()); npe.printStackTrace(); } } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/953fd4340f6eb6c578d591be9a0d601daf35ca6d/AsmManager.java/buggy/asm/src/org/aspectj/asm/AsmManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1206,
907,
12,
45,
9459,
1046,
11243,
7498,
13,
288,
9506,
202,
780,
1892,
25187,
3366,
264,
273,
394,
6674,
5621,
202,
202,
698,
288,
1082,
202,
19131,
3366,
264,
18,
6923,
2932,
382,
1206,
907,
16,
2973,
358,
462,
9031,
10804,
30,
13773,
14654,
7498,
9078,
64,
82,
8863,
6862,
202,
8705,
2610,
379,
375,
12,
14654,
7498,
5,
33,
2011,
1769,
1082,
202,
6494,
1430,
3141,
273,
629,
31,
1082,
202,
45,
9459,
1046,
982,
273,
11243,
7498,
18,
588,
3054,
5621,
1082,
202,
19131,
3366,
264,
18,
6923,
2932,
3054,
434,
518,
353,
13773,
2938,
9078,
64,
82,
8863,
1082,
202,
682,
417,
2232,
273,
982,
18,
588,
4212,
5621,
1082,
202,
19131,
3366,
264,
18,
6923,
2932,
2888,
1354,
711,
13773,
79,
2232,
18,
1467,
1435,
9078,
417,
2232,
64,
82,
8863,
1082,
202,
1884,
261,
474,
277,
273,
20,
274,
77,
32,
79,
2232,
18,
1467,
5621,
77,
27245,
288,
9506,
202,
19131,
3366,
264,
18,
6923,
2932,
799,
12583,
598,
13773,
79,
2232,
18,
588,
12,
77,
13,
9078,
64,
82,
8863,
1082,
21114,
202,
430,
261,
79,
2232,
18,
588,
12,
77,
2934,
14963,
12,
14654,
7498,
3719,
288,
9506,
3196,
202,
79,
2232,
18,
4479,
12,
77,
1769,
4697,
21114,
202,
19131,
3366,
264,
18,
6923,
2932,
18939,
518,
64,
82,
8863,
9506,
21114,
202,
3733,
3141,
33,
3767,
31,
9506,
21114,
202,
8820,
31,
1082,
21114,
202,
97,
1082,
202,
97,
1082,
202,
8705,
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,
1206,
907,
12,
45,
9459,
1046,
11243,
7498,
13,
288,
9506,
202,
780,
1892,
25187,
3366,
264,
273,
394,
6674,
5621,
202,
202,
698,
288,
1082,
202,
19131,
3366,
264,
18,
6923,
2932,
382,
1206,
907,
16,
2973,
358,
462,
9031,
10804,
30,
13773,
14654,
7498,
9078,
64,
82,
8863,
6862,
202,
8705,
2610,
379,
375,
12,
14654,
7498,
5,
33,
2011,
1769,
1082,
202,
6494,
1430,
3141,
273,
629,
31,
1082,
202,
45,
9459,
1046,
982,
273,
11243,
7498,
18,
588,
3054,
5621,
1082,
202,
19131,
3366,
264,
18,
6923,
2932,
3054,
434,
518,
353,
13773,
2938,
9078,
64,
82,
8863,
1082,
202,
682,
417,
2232,
273,
982,
18,
588,
4212,
5621,
1082,
202,
2
] |
|
private void dyna_pop(RVarmap vars) { | private void dyna_pop(RubyVarmap vars) { | private void dyna_pop(RVarmap vars) { lvtbl.dlev--; ruby_dyna_vars = vars; } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/8e00ad1c7ae96f50ae0bd521483380788f891b7b/parse.java/clean/org/jruby/parser/parse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
19417,
69,
67,
5120,
12,
54,
1537,
1458,
4153,
13,
288,
202,
3070,
16187,
18,
72,
298,
90,
413,
31,
202,
27768,
67,
72,
23041,
67,
4699,
273,
4153,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
19417,
69,
67,
5120,
12,
54,
1537,
1458,
4153,
13,
288,
202,
3070,
16187,
18,
72,
298,
90,
413,
31,
202,
27768,
67,
72,
23041,
67,
4699,
273,
4153,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public PublishedAssessmentIfc getPublishedAssessmentByAssessmentGradingId(Long assessmentGradingId){ | public PublishedAssessmentIfc getPublishedAssessmentByAssessmentGradingId(final Long assessmentGradingId){ | public PublishedAssessmentIfc getPublishedAssessmentByAssessmentGradingId(Long assessmentGradingId){ PublishedAssessmentIfc pub = null; String query = "select p from PublishedAssessmentData p, AssessmentGradingData a "+ " where a.publishedAssessmentId=p.publishedAssessmentId and a.assessmentGradingId=?"; List pubList = getHibernateTemplate().find(query, new Object[] { assessmentGradingId }, new net.sf.hibernate.type.Type[] { Hibernate.LONG }); if (pubList!=null && pubList.size()>0) pub = (PublishedAssessmentIfc) pubList.get(0); return pub; } | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/8799910be3bffadb3eabc0f679a18fc01c196a4f/AssessmentGradingFacadeQueries.java/buggy/samigo/component/src/java/org/sakaiproject/tool/assessment/facade/AssessmentGradingFacadeQueries.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9761,
329,
15209,
4570,
27480,
329,
15209,
858,
15209,
30420,
310,
548,
12,
6385,
3407,
14158,
30420,
310,
548,
15329,
565,
9761,
329,
15209,
4570,
5634,
273,
446,
31,
565,
514,
843,
273,
315,
4025,
293,
628,
9761,
329,
15209,
751,
293,
16,
25241,
30420,
310,
751,
279,
13773,
10402,
315,
1625,
279,
18,
12614,
15209,
548,
33,
84,
18,
12614,
15209,
548,
471,
279,
18,
18222,
30420,
310,
548,
25501,
31,
565,
987,
5634,
682,
273,
7628,
24360,
2283,
7675,
4720,
12,
2271,
16,
4766,
10792,
394,
1033,
8526,
288,
14158,
30420,
310,
548,
19879,
4766,
10792,
394,
2901,
18,
21668,
18,
15769,
22828,
18,
723,
18,
559,
8526,
288,
670,
24360,
18,
14639,
15549,
565,
309,
261,
10174,
682,
5,
33,
2011,
597,
5634,
682,
18,
1467,
1435,
34,
20,
13,
1377,
5634,
273,
261,
16451,
15209,
4570,
13,
5634,
682,
18,
588,
12,
20,
1769,
565,
327,
5634,
31,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9761,
329,
15209,
4570,
27480,
329,
15209,
858,
15209,
30420,
310,
548,
12,
6385,
3407,
14158,
30420,
310,
548,
15329,
565,
9761,
329,
15209,
4570,
5634,
273,
446,
31,
565,
514,
843,
273,
315,
4025,
293,
628,
9761,
329,
15209,
751,
293,
16,
25241,
30420,
310,
751,
279,
13773,
10402,
315,
1625,
279,
18,
12614,
15209,
548,
33,
84,
18,
12614,
15209,
548,
471,
279,
18,
18222,
30420,
310,
548,
25501,
31,
565,
987,
5634,
682,
273,
7628,
24360,
2283,
7675,
4720,
12,
2271,
16,
4766,
10792,
394,
1033,
8526,
288,
14158,
30420,
310,
548,
19879,
4766,
10792,
394,
2901,
18,
21668,
18,
15769,
22828,
18,
723,
18,
559,
8526,
288,
670,
24360,
18,
14639,
15549,
565,
2
] |
public static Object call2(Function fun, Scriptable thisObj, | public static Object call2(Callable fun, Scriptable thisObj, | public static Object call2(Function fun, Scriptable thisObj, Object arg0, Object arg1, Context cx, Scriptable scope) { return fun.call(cx, scope, thisObj, new Object[] { arg0, arg1 }); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/90ebe1bf30876ca8ca8a098496166e8475268746/OptRuntime.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/OptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
745,
22,
12,
11452,
9831,
16,
22780,
15261,
16,
1171,
9079,
1033,
1501,
20,
16,
1033,
1501,
21,
16,
1171,
9079,
1772,
9494,
16,
22780,
2146,
13,
565,
288,
3639,
327,
9831,
18,
1991,
12,
71,
92,
16,
2146,
16,
15261,
16,
394,
1033,
8526,
288,
1501,
20,
16,
1501,
21,
15549,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
745,
22,
12,
11452,
9831,
16,
22780,
15261,
16,
1171,
9079,
1033,
1501,
20,
16,
1033,
1501,
21,
16,
1171,
9079,
1772,
9494,
16,
22780,
2146,
13,
565,
288,
3639,
327,
9831,
18,
1991,
12,
71,
92,
16,
2146,
16,
15261,
16,
394,
1033,
8526,
288,
1501,
20,
16,
1501,
21,
15549,
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
] |
super.visitForStatement(statement); if (ControlFlowUtils.statementMayCompleteNormally(statement)) { return; } if (ControlFlowUtils.statementContainsReturn(statement)) { return; } registerStatementError(statement); } | super.visitForStatement(statement); if (ControlFlowUtils.statementMayCompleteNormally(statement)) { return; } if (ControlFlowUtils.statementContainsReturn(statement)) { return; } registerStatementError(statement); } | public void visitForStatement(@NotNull PsiForStatement statement) { super.visitForStatement(statement); if (ControlFlowUtils.statementMayCompleteNormally(statement)) { return; } if (ControlFlowUtils.statementContainsReturn(statement)) { return; } registerStatementError(statement); } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/0c22d3bce35a1ee7d70c329328f649614cf6f21a/InfiniteLoopStatementInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/controlflow/InfiniteLoopStatementInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
1290,
3406,
26964,
5962,
453,
7722,
1290,
3406,
3021,
13,
288,
1377,
2240,
18,
11658,
1290,
3406,
12,
11516,
1769,
1377,
309,
261,
24762,
1989,
18,
11516,
49,
528,
6322,
14624,
1230,
12,
11516,
3719,
288,
3639,
327,
31,
1377,
289,
1377,
309,
261,
24762,
1989,
18,
11516,
10846,
990,
12,
11516,
3719,
288,
3639,
327,
31,
1377,
289,
1377,
1744,
3406,
668,
12,
11516,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
1290,
3406,
26964,
5962,
453,
7722,
1290,
3406,
3021,
13,
288,
1377,
2240,
18,
11658,
1290,
3406,
12,
11516,
1769,
1377,
309,
261,
24762,
1989,
18,
11516,
49,
528,
6322,
14624,
1230,
12,
11516,
3719,
288,
3639,
327,
31,
1377,
289,
1377,
309,
261,
24762,
1989,
18,
11516,
10846,
990,
12,
11516,
3719,
288,
3639,
327,
31,
1377,
289,
1377,
1744,
3406,
668,
12,
11516,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public TA_RetCode CDLONNECK(int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[]) { | public TA_RetCode CDLONNECK( int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[] ) { | public TA_RetCode CDLONNECK(int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[]) { double EqualPeriodTotal, BodyLongPeriodTotal; int i, outIdx, EqualTrailingIdx, BodyLongTrailingIdx, lookbackTotal; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDLONNECK_Lookback(); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } EqualPeriodTotal = 0; EqualTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].avgPeriod); BodyLongPeriodTotal = 0; BodyLongTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod); i = EqualTrailingIdx; while (i < startIdx) { EqualPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))); i++; } i = BodyLongTrailingIdx; while (i < startIdx) { BodyLongPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))); i++; } i = startIdx; outIdx = 0; do { if ((inClose[i - 1] >= inOpen[i - 1] ? 1 : -1) == -1 && (Math.abs(inClose[i - 1] - inOpen[i - 1])) > ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) != 0.0 ? BodyLongPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (inClose[i] >= inOpen[i] ? 1 : -1) == 1 && inOpen[i] < inLow[i - 1] && inClose[i] <= inLow[i - 1] + ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].avgPeriod) != 0.0 ? EqualPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && inClose[i] >= inLow[i - 1] - ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].avgPeriod) != 0.0 ? EqualPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0))) outInteger[outIdx++] = -100; else outInteger[outIdx++] = 0; EqualPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[EqualTrailingIdx - 1] - inOpen[EqualTrailingIdx - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[EqualTrailingIdx - 1] - inLow[EqualTrailingIdx - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[EqualTrailingIdx - 1] - (inClose[EqualTrailingIdx - 1] >= inOpen[EqualTrailingIdx - 1] ? inClose[EqualTrailingIdx - 1] : inOpen[EqualTrailingIdx - 1])) + ((inClose[EqualTrailingIdx - 1] >= inOpen[EqualTrailingIdx - 1] ? inOpen[EqualTrailingIdx - 1] : inClose[EqualTrailingIdx - 1]) - inLow[EqualTrailingIdx - 1]) : 0))); BodyLongPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[BodyLongTrailingIdx - 1] - inOpen[BodyLongTrailingIdx - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[BodyLongTrailingIdx - 1] - inLow[BodyLongTrailingIdx - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[BodyLongTrailingIdx - 1] - (inClose[BodyLongTrailingIdx - 1] >= inOpen[BodyLongTrailingIdx - 1] ? inClose[BodyLongTrailingIdx - 1] : inOpen[BodyLongTrailingIdx - 1])) + ((inClose[BodyLongTrailingIdx - 1] >= inOpen[BodyLongTrailingIdx - 1] ? inOpen[BodyLongTrailingIdx - 1] : inClose[BodyLongTrailingIdx - 1]) - inLow[BodyLongTrailingIdx - 1]) : 0))); i++; EqualTrailingIdx++; BodyLongTrailingIdx++; } while (i <= endIdx); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode.TA_SUCCESS; } | 51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/cf65b93eedaca922be2993fe424b023f73c7562d/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
385,
8914,
673,
5407,
3507,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
3678,
63,
6487,
1082,
202,
9056,
316,
8573,
63,
6487,
1645,
316,
10520,
63,
6487,
1645,
316,
4605,
63,
6487,
1082,
202,
49,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
509,
596,
4522,
63,
5717,
288,
202,
202,
9056,
9057,
5027,
5269,
16,
5652,
3708,
5027,
5269,
31,
202,
202,
474,
277,
16,
596,
4223,
16,
9057,
16808,
4223,
16,
5652,
3708,
16808,
4223,
16,
2324,
823,
5269,
31,
202,
202,
430,
261,
1937,
4223,
411,
374,
13,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
202,
202,
430,
14015,
409,
4223,
411,
374,
13,
747,
261,
409,
4223,
411,
27108,
3719,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
202,
202,
7330,
823,
5269,
273,
385,
8914,
673,
5407,
3507,
67,
9794,
823,
5621,
202,
202,
430,
261,
1937,
4223,
411,
2324,
823,
5269,
13,
1082,
202,
1937,
4223,
273,
2324,
823,
5269,
31,
202,
202,
430,
261,
1937,
4223,
405,
679,
4223,
13,
288,
1082,
202,
659,
24059,
4223,
18,
1132,
273,
374,
31,
1082,
202,
659,
22816,
1046,
18,
1132,
273,
374,
31,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
12778,
31,
202,
202,
97,
202,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
385,
8914,
673,
5407,
3507,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
3678,
63,
6487,
1082,
202,
9056,
316,
8573,
63,
6487,
1645,
316,
10520,
63,
6487,
1645,
316,
4605,
63,
6487,
1082,
202,
49,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
509,
596,
4522,
63,
5717,
288,
202,
202,
9056,
9057,
5027,
5269,
16,
5652,
3708,
5027,
5269,
31,
202,
202,
474,
277,
16,
596,
4223,
16,
9057,
16808,
4223,
16,
5652,
3708,
16808,
4223,
16,
2324,
823,
5269,
31,
202,
202,
430,
261,
1937,
4223,
411,
374,
13,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
2
] |
if ( compareDates(date, fMaxExclusive, true ) != LESS_THAN ) { | if ( compareDates(date, (int[])fMaxExclusive, true ) != LESS_THAN ) { | protected void validateDate (int[] date, String content) throws InvalidDatatypeValueException{ if ( this.fBaseValidator != null ) {//validate against parent type if any if ( (fFacetsDefined & DatatypeValidator.FACET_PATTERN ) != 0 ) { if ( fRegex == null || fRegex.matches( content) == false ) throw new InvalidDatatypeValueException("Value'"+content+ "' does not match regular expression facet " + fRegex.getPattern() ); } //validate against base type ((DateTimeValidator)this.fBaseValidator).validateDate( date, content); if ( (fFacetsDefined & DatatypeValidator.FACET_ENUMERATION ) != 0 ) { int count=0; boolean valid = false; while ( count < fEnumSize ) { if ( compareDates(date, fEnumeration[count], false) == EQUAL ) { valid = true; break; } count++; } if ( !valid ) { throw new InvalidDatatypeValueException("Value'"+content+ "' does not match enumeration values" ); } } // REVISIT: output values for facets in error message short c; if ( fMinInclusive != null ) { c = compareDates(date, fMinInclusive, false); if ( c == LESS_THAN || c == INDETERMINATE ) { throw new InvalidDatatypeValueException("Value '"+content+ "' is less than minInclusive: " +dateToString(fMinInclusive) ); } } if ( fMinExclusive != null ) { if ( compareDates(date, fMinExclusive, true) != GREATER_THAN ) { throw new InvalidDatatypeValueException("Value '"+content+ "' is less than or equal to minExclusive: " +dateToString(fMinExclusive)); } } if ( fMaxInclusive != null ) { c = compareDates(date, fMaxInclusive, false ); if ( c == GREATER_THAN || c == INDETERMINATE ) { throw new InvalidDatatypeValueException("Value '"+content+ "' is greater than maxInclusive: " +dateToString(fMaxInclusive) ); } } if ( fMaxExclusive != null ) { if ( compareDates(date, fMaxExclusive, true ) != LESS_THAN ) { throw new InvalidDatatypeValueException("Value '"+content+ "' is greater than or equal to maxExlusive: " +dateToString(fMaxExclusive) ); } } } else { return; } } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/38d73cf7c0d35586a71e68d0fe233c425d82b6bd/DateTimeValidator.java/buggy/src/org/apache/xerces/validators/datatype/DateTimeValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1954,
1626,
261,
474,
8526,
1509,
16,
514,
913,
13,
1216,
1962,
20228,
9738,
95,
3639,
309,
261,
333,
18,
74,
2171,
5126,
480,
446,
262,
288,
759,
5662,
5314,
982,
618,
309,
1281,
5411,
309,
261,
261,
74,
6645,
2413,
8116,
473,
21168,
5126,
18,
11300,
56,
67,
10831,
262,
480,
374,
262,
288,
7734,
309,
261,
284,
6628,
422,
446,
747,
284,
6628,
18,
8436,
12,
913,
13,
422,
629,
262,
10792,
604,
394,
1962,
20228,
9738,
2932,
620,
4970,
15,
1745,
15,
4766,
18701,
2491,
1552,
486,
845,
6736,
2652,
11082,
315,
397,
284,
6628,
18,
588,
3234,
1435,
11272,
5411,
289,
5411,
368,
5662,
5314,
1026,
618,
5411,
14015,
5096,
5126,
13,
2211,
18,
74,
2171,
5126,
2934,
5662,
1626,
12,
1509,
16,
913,
1769,
5411,
309,
261,
261,
74,
6645,
2413,
8116,
473,
21168,
5126,
18,
11300,
56,
67,
16509,
654,
2689,
262,
480,
374,
262,
288,
7734,
509,
1056,
33,
20,
31,
7734,
1250,
923,
273,
629,
31,
7734,
1323,
261,
1056,
411,
284,
3572,
1225,
262,
288,
10792,
309,
261,
3400,
15578,
12,
712,
16,
284,
21847,
63,
1883,
6487,
629,
13,
422,
18231,
262,
288,
13491,
923,
273,
638,
31,
13491,
898,
31,
10792,
289,
10792,
1056,
9904,
31,
7734,
289,
7734,
309,
261,
401,
877,
262,
288,
10792,
604,
394,
1962,
20228,
9738,
2932,
620,
4970,
15,
1745,
15,
4766,
18701,
2491,
1552,
486,
845,
16836,
924,
6,
11272,
7734,
289,
5411,
289,
5411,
368,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1954,
1626,
261,
474,
8526,
1509,
16,
514,
913,
13,
1216,
1962,
20228,
9738,
95,
3639,
309,
261,
333,
18,
74,
2171,
5126,
480,
446,
262,
288,
759,
5662,
5314,
982,
618,
309,
1281,
5411,
309,
261,
261,
74,
6645,
2413,
8116,
473,
21168,
5126,
18,
11300,
56,
67,
10831,
262,
480,
374,
262,
288,
7734,
309,
261,
284,
6628,
422,
446,
747,
284,
6628,
18,
8436,
12,
913,
13,
422,
629,
262,
10792,
604,
394,
1962,
20228,
9738,
2932,
620,
4970,
15,
1745,
15,
4766,
18701,
2491,
1552,
486,
845,
6736,
2652,
11082,
315,
397,
284,
6628,
18,
588,
3234,
1435,
11272,
5411,
289,
5411,
368,
5662,
5314,
1026,
618,
5411,
14015,
5096,
5126,
13,
2
] |
add(username = new TextField("username", new PropertyModel(properties, "username"))); add(password = new PasswordTextField("password", new PropertyModel( properties, "password"))); | add(username = new TextField("username", new PropertyModel(properties, "username"))); add(password = new PasswordTextField("password", new PropertyModel(properties, "password"))); | public SignInForm(final String componentName) { super(componentName); // Attach textfield components that edit properties map // in lieu of a formal beans model add(username = new TextField("username", new PropertyModel(properties, "username"))); add(password = new PasswordTextField("password", new PropertyModel( properties, "password"))); // MarkupContainer row for remember me checkbox WebMarkupContainer rememberMeRow = new WebMarkupContainer("rememberMeRow"); add(rememberMeRow); // Add rememberMe checkbox rememberMeRow.add(new CheckBox("rememberMe", new PropertyModel( SignInPanel.this, "rememberMe"))); // Make form values persistent setPersistent(rememberMe); // Show remember me checkbox? rememberMeRow.setVisible(includeRememberMe); } | 51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/8c7fded16a75ce2a1f0300235fd1af96b502ea2e/SignInPanel.java/clean/wicket-library/src/java/wicket/addons/panels/signin/SignInPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
4383,
382,
1204,
12,
6385,
514,
20577,
13,
202,
202,
95,
1082,
202,
9565,
12,
4652,
461,
1769,
1082,
202,
759,
8659,
977,
1518,
4085,
716,
3874,
1790,
852,
1082,
202,
759,
316,
328,
1385,
89,
434,
279,
25739,
15709,
938,
1082,
202,
1289,
12,
5053,
273,
394,
26866,
2932,
5053,
3113,
394,
4276,
1488,
12,
4738,
16,
6862,
202,
6,
5053,
6,
3719,
1769,
1082,
202,
1289,
12,
3664,
273,
394,
9234,
16157,
2932,
3664,
3113,
394,
4276,
1488,
12,
6862,
202,
4738,
16,
315,
3664,
6,
3719,
1769,
1082,
202,
759,
26420,
2170,
1027,
364,
11586,
1791,
11832,
1082,
202,
4079,
13111,
2170,
11586,
4667,
1999,
273,
394,
2999,
13111,
2170,
2932,
28155,
4667,
1999,
8863,
1082,
202,
1289,
12,
28155,
4667,
1999,
1769,
1082,
202,
759,
1436,
11586,
4667,
11832,
1082,
202,
28155,
4667,
1999,
18,
1289,
12,
2704,
2073,
3514,
2932,
28155,
4667,
3113,
394,
4276,
1488,
12,
6862,
202,
2766,
382,
5537,
18,
2211,
16,
315,
28155,
4667,
6,
3719,
1769,
1082,
202,
759,
4344,
646,
924,
9195,
1082,
202,
542,
11906,
12,
28155,
4667,
1769,
1082,
202,
759,
9674,
11586,
1791,
11832,
35,
1082,
202,
28155,
4667,
1999,
18,
542,
6207,
12,
6702,
28810,
4667,
1769,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
4383,
382,
1204,
12,
6385,
514,
20577,
13,
202,
202,
95,
1082,
202,
9565,
12,
4652,
461,
1769,
1082,
202,
759,
8659,
977,
1518,
4085,
716,
3874,
1790,
852,
1082,
202,
759,
316,
328,
1385,
89,
434,
279,
25739,
15709,
938,
1082,
202,
1289,
12,
5053,
273,
394,
26866,
2932,
5053,
3113,
394,
4276,
1488,
12,
4738,
16,
6862,
202,
6,
5053,
6,
3719,
1769,
1082,
202,
1289,
12,
3664,
273,
394,
9234,
16157,
2932,
3664,
3113,
394,
4276,
1488,
12,
6862,
202,
4738,
16,
315,
3664,
6,
3719,
1769,
1082,
202,
759,
26420,
2170,
1027,
364,
11586,
1791,
11832,
1082,
202,
4079,
13111,
2170,
11586,
4667,
1999,
273,
394,
2999,
13111,
2170,
2932,
28155,
4667,
2
] |
historyAction = new Action("history", "History", IAction.AS_CHECK_BOX) { { setActionDefinitionId(IBrowserConstants.COMMAND_PREFIX + "history"); } | historyAction = new Action("History", IAction.AS_CHECK_BOX) { { setId("history"); setActionDefinitionId(IBrowserConstants.COMMAND_PREFIX + "history"); } | protected void makeActions(final IWorkbenchWindow window) { ISharedImages images = window.getWorkbench().getSharedImages(); newWindowAction = ActionFactory.OPEN_NEW_WINDOW.create(window); newWindowAction.setText("&New Window"); register(newWindowAction); newTabAction = new Action("newTab", "New &Tab") { //$NON-NLS-1$ int counter = 0; { setActionDefinitionId(IBrowserConstants.COMMAND_PREFIX + "newTab"); } //$NON-NLS-1$ public void run() { try { String secondaryId = Integer.toString(++counter); IWorkbenchPage page = window.getActivePage(); if (page != null) { page.showView(IBrowserConstants.BROWSER_VIEW_ID, secondaryId, IWorkbenchPage.VIEW_ACTIVATE); } } catch (PartInitException e) { e.printStackTrace(); } } }; register(newTabAction); quitAction = ActionFactory.QUIT.create(window); register(quitAction); backAction = new RetargetAction("back", "&Back"); backAction.setActionDefinitionId(IBrowserConstants.COMMAND_PREFIX + "back"); //$NON-NLS-1$ backAction.setToolTipText("Back"); backAction.setImageDescriptor(images.getImageDescriptor(ISharedImages.IMG_TOOL_BACK)); window.getPartService().addPartListener(backAction); register(backAction); forwardAction = new RetargetAction("forward", "&Forward"); forwardAction.setActionDefinitionId(IBrowserConstants.COMMAND_PREFIX + "forward"); //$NON-NLS-1$ forwardAction.setToolTipText("Forward"); forwardAction.setImageDescriptor(images.getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD)); window.getPartService().addPartListener(forwardAction); register(forwardAction); stopAction = new RetargetAction("stop", "Sto&p"); stopAction.setActionDefinitionId(IBrowserConstants.COMMAND_PREFIX + "stop"); //$NON-NLS-1$ stopAction.setToolTipText("Stop"); window.getPartService().addPartListener(stopAction); register(stopAction); refreshAction = new RetargetAction("refresh", "&Refresh"); refreshAction.setActionDefinitionId(IBrowserConstants.COMMAND_PREFIX + "refresh"); //$NON-NLS-1$ refreshAction.setToolTipText("Refresh"); window.getPartService().addPartListener(refreshAction); register(refreshAction); historyAction = new Action("history", "History", IAction.AS_CHECK_BOX) { //$NON-NLS-1$ { setActionDefinitionId(IBrowserConstants.COMMAND_PREFIX + "history"); } //$NON-NLS-1$ public void run() { try { IWorkbenchPage page = window.getActivePage(); if (page != null) { IViewPart historyView = page.findView(IBrowserConstants.HISTORY_VIEW_ID); if (historyView == null) { page.showView(IBrowserConstants.HISTORY_VIEW_ID); setChecked(true); } else { page.hideView(historyView); setChecked(false); } } } catch (PartInitException e) { e.printStackTrace(); } } }; register(historyAction); aboutAction = ActionFactory.ABOUT.create(window); register(aboutAction); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/7deb76299dadad6657026d73c598dc902a03ad6d/BrowserActionBarAdvisor.java/buggy/examples/org.eclipse.ui.examples.rcp.browser/src/org/eclipse/ui/examples/rcp/browser/BrowserActionBarAdvisor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1221,
6100,
12,
6385,
467,
2421,
22144,
3829,
2742,
13,
288,
3639,
467,
7887,
8946,
4602,
273,
2742,
18,
588,
2421,
22144,
7675,
588,
7887,
8946,
5621,
9506,
202,
2704,
3829,
1803,
273,
4382,
1733,
18,
11437,
67,
12917,
67,
23407,
18,
2640,
12,
5668,
1769,
3639,
394,
3829,
1803,
18,
542,
1528,
2932,
10,
1908,
6076,
8863,
3639,
1744,
12,
2704,
3829,
1803,
1769,
9506,
202,
2704,
5661,
1803,
273,
394,
4382,
2932,
2704,
5661,
3113,
315,
1908,
473,
5661,
7923,
288,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
509,
3895,
273,
374,
31,
1082,
565,
288,
22517,
21768,
12,
45,
9132,
2918,
18,
19104,
67,
6307,
397,
315,
2704,
5661,
8863,
289,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
1071,
918,
1086,
1435,
288,
7734,
775,
288,
10792,
514,
9946,
548,
273,
2144,
18,
10492,
12,
9904,
7476,
1769,
10792,
467,
2421,
22144,
1964,
1363,
273,
2742,
18,
588,
3896,
1964,
5621,
10792,
309,
261,
2433,
480,
446,
13,
288,
13491,
1363,
18,
4500,
1767,
12,
45,
9132,
2918,
18,
38,
24846,
67,
12145,
67,
734,
16,
9946,
548,
16,
467,
2421,
22144,
1964,
18,
12145,
67,
22271,
1777,
1769,
10792,
289,
7734,
289,
1044,
261,
1988,
2570,
503,
425,
13,
288,
10792,
425,
18,
1188,
6332,
5621,
7734,
289,
5411,
289,
202,
202,
20451,
3639,
1744,
12,
2704,
5661,
1803,
1769,
9506,
202,
27176,
1803,
273,
4382,
1733,
18,
3500,
1285,
18,
2640,
12,
5668,
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,
225,
202,
1117,
918,
1221,
6100,
12,
6385,
467,
2421,
22144,
3829,
2742,
13,
288,
3639,
467,
7887,
8946,
4602,
273,
2742,
18,
588,
2421,
22144,
7675,
588,
7887,
8946,
5621,
9506,
202,
2704,
3829,
1803,
273,
4382,
1733,
18,
11437,
67,
12917,
67,
23407,
18,
2640,
12,
5668,
1769,
3639,
394,
3829,
1803,
18,
542,
1528,
2932,
10,
1908,
6076,
8863,
3639,
1744,
12,
2704,
3829,
1803,
1769,
9506,
202,
2704,
5661,
1803,
273,
394,
4382,
2932,
2704,
5661,
3113,
315,
1908,
473,
5661,
7923,
288,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
509,
3895,
273,
374,
31,
1082,
565,
288,
22517,
21768,
12,
45,
9132,
2918,
18,
19104,
67,
6307,
397,
315,
2704,
5661,
8863,
2
] |
if (experiment.getSocietyComponentCount() == 0) { enableConsoleTool(false); return; } if (!experiment.isRunnable()) { if (log.isWarnEnabled()) log.warn("CSMART: WARNING: experiment is not runnable"); enableConsoleTool(false); return; } | protected void runConsole(Experiment experiment) { // TODO: we get here if the user edits an experiment containing // societies and removes all the societies, and then invokes the console if (experiment.getSocietyComponentCount() == 0) { // don't run console and disable it's button enableConsoleTool(false); return; } // TODO: we get here if the user is editing an experiment // the isRunnable flag is off, but we don't detect it if (!experiment.isRunnable()) { if (log.isWarnEnabled()) log.warn("CSMART: WARNING: experiment is not runnable"); enableConsoleTool(false); return; } JFrame tool = (JFrame)new CSMARTConsole(this, experiment); addTool(EXPERIMENT_CONTROLLER, experiment.getExperimentName(), tool); } | 9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/b0d73679ca7108cf8e58b3d58bc10abdb61bfdc2/CSMART.java/buggy/csmart/src/org/cougaar/tools/csmart/ui/viewer/CSMART.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1086,
10215,
12,
22338,
8724,
13,
288,
565,
368,
2660,
30,
732,
336,
2674,
309,
326,
729,
24450,
392,
8724,
4191,
565,
368,
272,
1882,
278,
606,
471,
7157,
777,
326,
272,
1882,
278,
606,
16,
471,
1508,
18058,
326,
2983,
565,
309,
261,
18142,
18,
588,
55,
1882,
14369,
1841,
1380,
1435,
422,
374,
13,
288,
1377,
368,
2727,
1404,
1086,
2983,
471,
4056,
518,
1807,
3568,
1377,
4237,
10215,
6364,
12,
5743,
1769,
1377,
327,
31,
565,
289,
565,
368,
2660,
30,
732,
336,
2674,
309,
326,
729,
353,
15755,
392,
8724,
565,
368,
326,
353,
20013,
2982,
353,
3397,
16,
1496,
732,
2727,
1404,
5966,
518,
565,
309,
16051,
18142,
18,
291,
20013,
10756,
288,
1377,
309,
261,
1330,
18,
291,
3160,
1526,
10756,
3639,
613,
18,
8935,
2932,
4596,
49,
4928,
30,
9744,
30,
8724,
353,
486,
14685,
8863,
1377,
4237,
10215,
6364,
12,
5743,
1769,
1377,
327,
31,
565,
289,
565,
804,
3219,
5226,
273,
1377,
261,
46,
3219,
13,
2704,
6761,
49,
4928,
10215,
12,
2211,
16,
8724,
1769,
565,
527,
6364,
12,
2294,
3194,
3114,
1784,
67,
6067,
25353,
16,
8724,
18,
588,
22338,
461,
9334,
5226,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
4750,
918,
1086,
10215,
12,
22338,
8724,
13,
288,
565,
368,
2660,
30,
732,
336,
2674,
309,
326,
729,
24450,
392,
8724,
4191,
565,
368,
272,
1882,
278,
606,
471,
7157,
777,
326,
272,
1882,
278,
606,
16,
471,
1508,
18058,
326,
2983,
565,
309,
261,
18142,
18,
588,
55,
1882,
14369,
1841,
1380,
1435,
422,
374,
13,
288,
1377,
368,
2727,
1404,
1086,
2983,
471,
4056,
518,
1807,
3568,
1377,
4237,
10215,
6364,
12,
5743,
1769,
1377,
327,
31,
565,
289,
565,
368,
2660,
30,
732,
336,
2674,
309,
326,
729,
353,
15755,
392,
8724,
565,
368,
326,
353,
20013,
2982,
353,
3397,
16,
1496,
732,
2727,
1404,
5966,
518,
565,
309,
16051,
18142,
18,
291,
20013,
2
] |
|
out.write("\" title=\"View all posts in the thread\">view thread</a>\n"); | out.write("\" title=\"View all posts in the thread\">full thread</a>\n"); | private boolean renderThread(User user, PrintWriter out, ThreadIndex index, Archive archive, HttpServletRequest req, ThreadNode node, int depth, BlogURI visibleEntry, TreeRenderState state) { boolean isFavorite = false; boolean ignored = false; HTMLRenderer rend = new HTMLRenderer(I2PAppContext.getGlobalContext()); SMLParser parser = new SMLParser(I2PAppContext.getGlobalContext()); PetName pn = user.getPetNameDB().getByLocation(node.getEntry().getKeyHash().toBase64()); if (pn != null) { if (pn.isMember(FilteredThreadIndex.GROUP_FAVORITE)) { isFavorite = true; } if (pn.isMember(FilteredThreadIndex.GROUP_IGNORE)) ignored = true; } state.incrementRowsWritten(); if (state.getRowsWritten() % 2 == 0) out.write("<tr class=\"threadEven\">\n"); else out.write("<tr class=\"threadOdd\">\n"); out.write("<td class=\"threadFlag\">"); out.write(getFlagHTML(user, node)); out.write("</td>\n<td class=\"threadLeft\">\n"); for (int i = 0; i < depth; i++) out.write("<img src=\"images/threadIndent.png\" alt=\"\" border=\"0\" />"); boolean showChildren = false; int childCount = node.getChildCount(); if (childCount > 0) { boolean allowCollapse = false; if (visibleEntry != null) { if (node.getEntry().equals(visibleEntry)) { // noop } else if (node.containsEntry(visibleEntry)) { showChildren = true; allowCollapse = true; } } else { // noop } if (allowCollapse) { out.write("<a href=\""); out.write(getCollapseLink(req, node)); out.write("\" title=\"collapse thread\"><img border=\"0\" src=\"images/collapse.png\" alt=\"collapse\" /></a>\n"); } else { out.write("<a href=\""); out.write(getExpandLink(req, node)); out.write("\" title=\"expand thread\"><img border=\"0\" src=\"images/expand.png\" alt=\"expand\" /></a>\n"); } } else { out.write("<img src=\"images/noSubthread.png\" alt=\"\" border=\"0\" />\n"); } out.write("<a href=\""); out.write(getProfileLink(req, node.getEntry().getKeyHash())); out.write("\" title=\"View the user's profile\">"); if (pn == null) { BlogInfo info = archive.getBlogInfo(node.getEntry().getKeyHash()); String name = null; if (info != null) name = info.getProperty(BlogInfo.NAME); if ( (name == null) || (name.trim().length() <= 0) ) name = node.getEntry().getKeyHash().toBase64().substring(0,6); out.write(trim(name, 30)); } else { out.write(trim(pn.getName(), 30)); } out.write("</a>\n"); if ( (user.getBlog() != null) && (node.getEntry().getKeyHash().equals(user.getBlog())) ) { out.write("<img src=\"images/self.png\" alt=\"You wrote this\" border=\"0\" />\n"); } else if (isFavorite) { out.write("<img src=\"images/favorites.png\" alt=\"favorites\" border=\"0\" />\n"); } else if (ignored) { out.write("<img src=\"images/addToIgnored.png\" alt=\"ignored\" border=\"0\" />\n"); } else { if (user.getAuthenticated()) { // give them a link to bookmark or ignore the peer out.write("(<a href=\""); out.write(getAddToGroupLink(req, node.getEntry().getKeyHash(), user, FilteredThreadIndex.GROUP_FAVORITE)); out.write("\" title=\"Add as a friend\"><img src=\"images/addToFavorites.png\" alt=\"friend\" border=\"0\" /></a>\n"); out.write("/<a href=\""); out.write(getAddToGroupLink(req, node.getEntry().getKeyHash(), user, FilteredThreadIndex.GROUP_IGNORE)); out.write("\" title=\"Add to killfile\"><img src=\"images/addToIgnored.png\" alt=\"ignore\" border=\"0\" /></a>)\n"); } } out.write(" @ "); out.write("<a href=\""); out.write(getViewPostLink(req, node, user, false)); out.write("\" title=\"View post\">"); long dayBegin = BlogManager.instance().getDayBegin(); long postId = node.getMostRecentPostDate(); if (postId >= dayBegin) { out.write("<b>today</b>"); } else if (postId >= dayBegin - 24*60*60*1000) { out.write("<b>yesterday</b>"); } else { int daysAgo = (int)((dayBegin - postId + 24*60*60*1000-1)/(24*60*60*1000)); out.write(daysAgo + " days ago"); } out.write(": "); EntryContainer entry = archive.getEntry(node.getEntry()); if (entry == null) throw new RuntimeException("Unable to fetch the entry " + node.getEntry()); HeaderReceiver rec = new HeaderReceiver(); parser.parse(entry.getEntry().getText(), rec); String subject = rec.getHeader(HTMLRenderer.HEADER_SUBJECT); if (subject == null) subject = ""; out.write(trim(subject, 40)); out.write("</a>\n</td><td class=\"threadRight\">\n"); if (childCount > 0) { out.write(" <a href=\""); out.write(getViewThreadLink(req, node, user)); out.write("\" title=\"View all posts in the thread\">view thread</a>\n"); } else { out.write("<a href=\""); out.write(getViewPostLink(req, node, user, false)); out.write("\" title=\"View the post\">view post</a>\n"); } out.write("</td></tr>\n"); boolean rendered = true; if (showChildren) { for (int i = 0; i < node.getChildCount(); i++) { ThreadNode child = node.getChild(i); boolean childRendered = renderThread(user, out, index, archive, req, child, depth+1, visibleEntry, state); rendered = rendered || childRendered; } } return rendered; } | 27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/ef82cc4f202e6ff94613d5e40ab7690aaa86076b/ViewThreadedServlet.java/buggy/apps/syndie/java/src/net/i2p/syndie/web/ViewThreadedServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1743,
3830,
12,
1299,
729,
16,
14071,
596,
16,
4884,
1016,
770,
16,
13124,
5052,
16,
9984,
1111,
16,
4766,
4884,
907,
756,
16,
509,
3598,
16,
25464,
3098,
6021,
1622,
16,
4902,
3420,
1119,
919,
13,
288,
3639,
1250,
17646,
9444,
1137,
273,
629,
31,
3639,
1250,
5455,
273,
629,
31,
7734,
3982,
6747,
1654,
72,
273,
394,
3982,
6747,
12,
45,
22,
52,
3371,
1042,
18,
588,
5160,
1042,
10663,
3639,
348,
1495,
2678,
2082,
273,
394,
348,
1495,
2678,
12,
45,
22,
52,
3371,
1042,
18,
588,
5160,
1042,
10663,
7734,
453,
278,
461,
11059,
273,
729,
18,
588,
52,
278,
461,
2290,
7675,
588,
858,
2735,
12,
2159,
18,
588,
1622,
7675,
588,
653,
2310,
7675,
869,
2171,
1105,
10663,
3639,
309,
261,
7449,
480,
446,
13,
288,
5411,
309,
261,
7449,
18,
291,
4419,
12,
14478,
3830,
1016,
18,
8468,
67,
2046,
58,
916,
5398,
3719,
288,
7734,
17646,
9444,
1137,
273,
638,
31,
5411,
289,
5411,
309,
261,
7449,
18,
291,
4419,
12,
14478,
3830,
1016,
18,
8468,
67,
20118,
3719,
7734,
5455,
273,
638,
31,
3639,
289,
7734,
919,
18,
15016,
4300,
12643,
5621,
3639,
309,
261,
2019,
18,
588,
4300,
12643,
1435,
738,
576,
422,
374,
13,
5411,
596,
18,
2626,
2932,
32,
313,
667,
5189,
5930,
8321,
28219,
82,
8863,
3639,
469,
5411,
596,
18,
2626,
2932,
32,
313,
667,
5189,
5930,
51,
449,
28219,
82,
8863,
3639,
596,
18,
2626,
2932,
32,
4465,
667,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1743,
3830,
12,
1299,
729,
16,
14071,
596,
16,
4884,
1016,
770,
16,
13124,
5052,
16,
9984,
1111,
16,
4766,
4884,
907,
756,
16,
509,
3598,
16,
25464,
3098,
6021,
1622,
16,
4902,
3420,
1119,
919,
13,
288,
3639,
1250,
17646,
9444,
1137,
273,
629,
31,
3639,
1250,
5455,
273,
629,
31,
7734,
3982,
6747,
1654,
72,
273,
394,
3982,
6747,
12,
45,
22,
52,
3371,
1042,
18,
588,
5160,
1042,
10663,
3639,
348,
1495,
2678,
2082,
273,
394,
348,
1495,
2678,
12,
45,
22,
52,
3371,
1042,
18,
588,
5160,
1042,
10663,
7734,
453,
278,
461,
11059,
273,
729,
18,
588,
52,
278,
461,
2290,
7675,
588,
858,
2735,
12,
2159,
18,
588,
1622,
7675,
2
] |
public void setTheme(String theme) { | public void setTheme(Theme theme) { | public void setTheme(String theme) { this.theme = theme; } | 46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/10e565e4bf733a757625f7b21e55b3730ba60023/WeblogPreviewRequest.java/clean/src/org/apache/roller/ui/rendering/util/WeblogPreviewRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
8335,
12,
8335,
5006,
13,
288,
3639,
333,
18,
7997,
273,
5006,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
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,
377,
1071,
918,
444,
8335,
12,
8335,
5006,
13,
288,
3639,
333,
18,
7997,
273,
5006,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
PDBPolymer moleculePDB1 = (PDBPolymer)polymer; | public void testSFBug1085912_1() throws Exception { String filename_pdb = "data/pdb/1CKV.pdb"; String filename_cml = "data/cml/1CKV.cml"; InputStream ins1 = this.getClass().getClassLoader().getResourceAsStream(filename_pdb); InputStream ins2 = this.getClass().getClassLoader().getResourceAsStream(filename_cml); try { /*1*/ IChemObjectReader reader = new PDBReader(ins1); IChemFile chemFile = (IChemFile) reader.read(new NNChemFile()); IChemSequence seq = chemFile.getChemSequence(0); IChemModel model = seq.getChemModel(0); IAtomContainer container = model.getMoleculeSet().getMolecule(0); IBioPolymer polymer = (IBioPolymer)container; PDBPolymer moleculePDB1 = (PDBPolymer)polymer; StringWriter writer = new StringWriter(); CMLWriter cmlWriter = new CMLWriter(writer); cmlWriter.write(moleculePDB1); String cmlContent1 = writer.toString(); /*2*/ CMLReader reader2 = new CMLReader(new ByteArrayInputStream(cmlContent1.getBytes())); IChemFile chemFil2 = (IChemFile)reader2.read(new NNChemFile()); IChemSequence seq2 = chemFil2.getChemSequence(0); IChemModel model2 = seq2.getChemModel(0); IMolecule container2 = model2.getMoleculeSet().getMolecule(0); IBioPolymer polymer2 = (IBioPolymer)container2; PDBPolymer moleculePDB2 = (PDBPolymer)polymer2; StringWriter writer2 = new StringWriter(); CMLWriter cmlWriter2 = new CMLWriter(writer2); cmlWriter2.write(moleculePDB2); String cmlContent2 = writer2.toString(); /*3*/ CMLReader reader3 = new CMLReader(ins2); IChemFile chemFil3 = (IChemFile)reader3.read(new NNChemFile()); IChemSequence seq3 = chemFil3.getChemSequence(0); IChemModel model3 = seq3.getChemModel(0); IAtomContainer container3 = model3.getMoleculeSet().getMolecule(0); IBioPolymer polymer3 = (IBioPolymer)container3; PDBPolymer moleculePDB3 = (PDBPolymer)polymer3; StringWriter writer3 = new StringWriter(); CMLWriter cmlWriter3 = new CMLWriter(writer3); cmlWriter3.write(moleculePDB3); String cmlContent3 = writer3.toString(); assertEquals(cmlContent1,cmlContent2); assertEquals(cmlContent3,cmlContent2); assertEquals(moleculePDB1,moleculePDB2); for(int i = 0; i < moleculePDB2.getAtomCount() ; i++) assertEquals(((PDBAtom)moleculePDB1.getAtom(i)).getResName(),((PDBAtom)moleculePDB2.getAtom(i)).getResName()); } catch (Exception ex) { fail(ex.getMessage()); } } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/2a939a94486794ee0ca07c58f450714250d67e84/CML2Test.java/buggy/src/org/openscience/cdk/test/io/cml/CML2Test.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
22395,
19865,
21770,
6162,
2138,
67,
21,
1435,
1216,
1185,
288,
202,
202,
780,
1544,
67,
17414,
273,
315,
892,
19,
17414,
19,
21,
3507,
58,
18,
17414,
14432,
202,
202,
780,
1544,
67,
71,
781,
273,
315,
892,
19,
71,
781,
19,
21,
3507,
58,
18,
71,
781,
14432,
202,
565,
5037,
2763,
21,
273,
333,
18,
588,
797,
7675,
588,
7805,
7675,
588,
1420,
17052,
12,
3459,
67,
17414,
1769,
202,
565,
5037,
2763,
22,
273,
333,
18,
588,
797,
7675,
588,
7805,
7675,
588,
1420,
17052,
12,
3459,
67,
71,
781,
1769,
202,
377,
202,
565,
775,
288,
202,
377,
202,
20308,
21,
5549,
1082,
1377,
29681,
921,
2514,
2949,
273,
394,
21601,
2514,
12,
2679,
21,
1769,
1082,
1377,
29681,
812,
19028,
812,
273,
261,
45,
20200,
812,
13,
2949,
18,
896,
12,
2704,
30471,
20200,
812,
10663,
1082,
1377,
29681,
4021,
3833,
273,
19028,
812,
18,
588,
20200,
4021,
12,
20,
1769,
1082,
1377,
29681,
1488,
938,
273,
3833,
18,
588,
20200,
1488,
12,
20,
1769,
9506,
1377,
13922,
1478,
273,
938,
18,
588,
29669,
694,
7675,
588,
29669,
12,
20,
1769,
1082,
1377,
23450,
1594,
5850,
17878,
2952,
17878,
273,
261,
13450,
1594,
5850,
17878,
13,
3782,
31,
1082,
4202,
1082,
1377,
21601,
5850,
17878,
13661,
52,
2290,
21,
273,
261,
52,
2290,
5850,
17878,
13,
3915,
17878,
31,
202,
6647,
1082,
1377,
17436,
2633,
273,
394,
17436,
5621,
1082,
1377,
385,
1495,
2289,
276,
781,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
22395,
19865,
21770,
6162,
2138,
67,
21,
1435,
1216,
1185,
288,
202,
202,
780,
1544,
67,
17414,
273,
315,
892,
19,
17414,
19,
21,
3507,
58,
18,
17414,
14432,
202,
202,
780,
1544,
67,
71,
781,
273,
315,
892,
19,
71,
781,
19,
21,
3507,
58,
18,
71,
781,
14432,
202,
565,
5037,
2763,
21,
273,
333,
18,
588,
797,
7675,
588,
7805,
7675,
588,
1420,
17052,
12,
3459,
67,
17414,
1769,
202,
565,
5037,
2763,
22,
273,
333,
18,
588,
797,
7675,
588,
7805,
7675,
588,
1420,
17052,
12,
3459,
67,
71,
781,
1769,
202,
377,
202,
565,
775,
288,
202,
377,
202,
20308,
21,
5549,
1082,
1377,
29681,
921,
2514,
2949,
273,
2
] |
|
public View_ChildData( int to_meta_id, int menu_sort, int manual_sort_order, int doc_type, boolean archive, String target, Timestamp date_created, Timestamp date_modified, String meta_headline, String meta_text, String meta_image, String frame_name, Timestamp activated_datetime, Timestamp archived_datetime, String filename ) { | View_ChildData( int to_meta_id, int menu_sort, int manual_sort_order, int doc_type, boolean archive, String target, Timestamp date_created, Timestamp date_modified, String meta_headline, String meta_text, String meta_image, String frame_name, Timestamp activated_datetime, Timestamp archived_datetime, String filename ) { | public View_ChildData( int to_meta_id, int menu_sort, int manual_sort_order, int doc_type, boolean archive, String target, Timestamp date_created, Timestamp date_modified, String meta_headline, String meta_text, String meta_image, String frame_name, Timestamp activated_datetime, Timestamp archived_datetime, String filename ) { this.to_meta_id = to_meta_id; this.menu_sort = menu_sort; this.manual_sort_order = manual_sort_order; this.doc_type = doc_type; this.archive = archive; this.target = target; this.date_created = date_created; this.date_modified = date_modified; this.meta_headline = meta_headline; this.meta_text = meta_text; this.meta_image = meta_image; this.frame_name = frame_name; this.activated_datetime = activated_datetime; this.archived_datetime = archived_datetime; this.filename = filename; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a90e8dc58b604eb2343b8f739ed25f49188b96da/DatabaseService.java/clean/server/src/imcode/server/db/DatabaseService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4441,
67,
1763,
751,
12,
509,
358,
67,
3901,
67,
350,
16,
509,
3824,
67,
3804,
16,
509,
11297,
67,
3804,
67,
1019,
16,
509,
997,
67,
723,
16,
1250,
5052,
16,
514,
1018,
16,
8159,
1509,
67,
4824,
16,
8159,
1509,
67,
7342,
16,
514,
2191,
67,
1978,
1369,
16,
514,
2191,
67,
955,
16,
514,
2191,
67,
2730,
16,
514,
2623,
67,
529,
16,
8159,
14892,
67,
6585,
16,
8159,
23276,
67,
6585,
16,
514,
1544,
262,
288,
5411,
333,
18,
869,
67,
3901,
67,
350,
273,
358,
67,
3901,
67,
350,
31,
5411,
333,
18,
5414,
67,
3804,
273,
3824,
67,
3804,
31,
5411,
333,
18,
19840,
67,
3804,
67,
1019,
273,
11297,
67,
3804,
67,
1019,
31,
5411,
333,
18,
2434,
67,
723,
273,
997,
67,
723,
31,
5411,
333,
18,
10686,
273,
5052,
31,
5411,
333,
18,
3299,
273,
1018,
31,
5411,
333,
18,
712,
67,
4824,
273,
1509,
67,
4824,
31,
5411,
333,
18,
712,
67,
7342,
273,
1509,
67,
7342,
31,
5411,
333,
18,
3901,
67,
1978,
1369,
273,
2191,
67,
1978,
1369,
31,
5411,
333,
18,
3901,
67,
955,
273,
2191,
67,
955,
31,
5411,
333,
18,
3901,
67,
2730,
273,
2191,
67,
2730,
31,
5411,
333,
18,
3789,
67,
529,
273,
2623,
67,
529,
31,
5411,
333,
18,
18836,
67,
6585,
273,
14892,
67,
6585,
31,
5411,
333,
18,
991,
2950,
67,
6585,
273,
23276,
67,
6585,
31,
5411,
333,
18,
3459,
273,
1544,
31,
3639,
289,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4441,
67,
1763,
751,
12,
509,
358,
67,
3901,
67,
350,
16,
509,
3824,
67,
3804,
16,
509,
11297,
67,
3804,
67,
1019,
16,
509,
997,
67,
723,
16,
1250,
5052,
16,
514,
1018,
16,
8159,
1509,
67,
4824,
16,
8159,
1509,
67,
7342,
16,
514,
2191,
67,
1978,
1369,
16,
514,
2191,
67,
955,
16,
514,
2191,
67,
2730,
16,
514,
2623,
67,
529,
16,
8159,
14892,
67,
6585,
16,
8159,
23276,
67,
6585,
16,
514,
1544,
262,
288,
5411,
333,
18,
869,
67,
3901,
67,
350,
273,
358,
67,
3901,
67,
350,
31,
5411,
333,
18,
5414,
67,
3804,
273,
3824,
67,
3804,
31,
5411,
333,
18,
19840,
67,
3804,
67,
1019,
273,
11297,
67,
3804,
2
] |
boolean getNextRow(boolean readAhead) throws SQLException { if (endOfResponse || endOfResults) { return false; } nextToken(); // Will either be first or next data row or end. while (!currentToken.isRowdata() && !currentToken.isEndToken()) { nextToken(); // Could be messages } boolean isResultSet = currentToken.isRowdata(); if (readAhead && !endOfResponse) { // This will ensure that called procedure return parameters // and status are read in executeQuery() byte x; try { x = (byte) in.peek(); while (x != TDS_ROW_TOKEN) { nextToken(); if (endOfResponse) { break; } x = (byte) in.peek(); } } catch (IOException e) { isClosed = true; connection.setClosed(); throw Support.linkException( new SQLException( Support.getMessage( "error.generic.ioerror", e.getMessage()), "08S01"), e); } } messages.checkErrors(); return isResultSet; } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/4824f8fb57e450b4f2cc3cb1e9b7b2849806b125/TdsCore.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsCore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
6927,
1999,
12,
6494,
855,
24250,
13,
1216,
6483,
288,
3639,
309,
261,
409,
951,
1064,
747,
20706,
3447,
13,
288,
5411,
327,
629,
31,
3639,
289,
7734,
9617,
5621,
7734,
368,
9980,
3344,
506,
1122,
578,
1024,
501,
1027,
578,
679,
18,
3639,
1323,
16051,
2972,
1345,
18,
291,
1999,
892,
1435,
597,
401,
2972,
1345,
18,
291,
1638,
1345,
10756,
288,
5411,
9617,
5621,
368,
14312,
506,
2743,
3639,
289,
7734,
1250,
353,
13198,
273,
23719,
18,
291,
1999,
892,
5621,
3639,
309,
261,
896,
24250,
597,
401,
409,
951,
1064,
13,
288,
5411,
368,
1220,
903,
3387,
716,
2566,
12131,
327,
1472,
5411,
368,
471,
1267,
854,
855,
316,
14304,
1435,
5411,
1160,
619,
31,
13491,
775,
288,
7734,
619,
273,
261,
7229,
13,
316,
18,
347,
3839,
5621,
27573,
1323,
261,
92,
480,
399,
3948,
67,
11226,
67,
8412,
13,
288,
10792,
9617,
5621,
4766,
3639,
309,
261,
409,
951,
1064,
13,
288,
13491,
898,
31,
10792,
289,
4766,
3639,
619,
273,
261,
7229,
13,
316,
18,
347,
3839,
5621,
7734,
289,
5411,
289,
1044,
261,
14106,
425,
13,
288,
7734,
18851,
273,
638,
31,
7734,
1459,
18,
542,
7395,
5621,
27573,
604,
13619,
18,
1232,
503,
12,
10792,
394,
6483,
12,
21821,
13619,
18,
24906,
12,
4766,
565,
315,
1636,
18,
13540,
18,
1594,
1636,
3113,
425,
18,
24906,
1435,
3631,
4766,
3639,
315,
6840,
55,
1611,
6,
3631,
425,
1769,
5411,
289,
3639,
289,
7734,
2743,
18,
1893,
4229,
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,
1250,
6927,
1999,
12,
6494,
855,
24250,
13,
1216,
6483,
288,
3639,
309,
261,
409,
951,
1064,
747,
20706,
3447,
13,
288,
5411,
327,
629,
31,
3639,
289,
7734,
9617,
5621,
7734,
368,
9980,
3344,
506,
1122,
578,
1024,
501,
1027,
578,
679,
18,
3639,
1323,
16051,
2972,
1345,
18,
291,
1999,
892,
1435,
597,
401,
2972,
1345,
18,
291,
1638,
1345,
10756,
288,
5411,
9617,
5621,
368,
14312,
506,
2743,
3639,
289,
7734,
1250,
353,
13198,
273,
23719,
18,
291,
1999,
892,
5621,
3639,
309,
261,
896,
24250,
597,
401,
409,
951,
1064,
13,
288,
5411,
368,
1220,
903,
3387,
716,
2566,
12131,
327,
1472,
5411,
368,
471,
1267,
854,
855,
316,
14304,
1435,
5411,
1160,
619,
2
] |
||
return ""; | return IDEWorkbenchMessages .getString("CloseResourceAction.operationMessage"); | String getOperationMessage() { return ""; //$NON-NLS-1$ } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/7711092b3a073e4dc6cd90e879ac6544fb305e1f/CloseResourceAction.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CloseResourceAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
514,
21162,
1079,
1435,
288,
3639,
327,
1599,
41,
2421,
22144,
5058,
263,
588,
780,
2932,
4605,
1420,
1803,
18,
7624,
1079,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
514,
21162,
1079,
1435,
288,
3639,
327,
1599,
41,
2421,
22144,
5058,
263,
588,
780,
2932,
4605,
1420,
1803,
18,
7624,
1079,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; | Panel p = (Panel) panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; | private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); } | 58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/0f69da517df83133fd711f05acf8921bd3d8fcb5/AutomatedInstaller.java/buggy/izpack-src/trunk/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
741,
6410,
12,
22932,
690,
6410,
751,
3799,
892,
13,
377,
1216,
1185,
225,
288,
565,
368,
2660,
30,
277,
2643,
82,
565,
2332,
18,
659,
18,
8222,
2932,
63,
24591,
18472,
690,
13193,
308,
8863,
565,
368,
5442,
326,
20582,
316,
1353,
565,
4498,
20582,
3198,
273,
3799,
892,
18,
7355,
10558,
2448,
18,
9838,
5621,
565,
1323,
12,
7355,
10558,
3198,
18,
5332,
2134,
10756,
565,
288,
1377,
23641,
293,
273,
261,
5537,
13,
7355,
10558,
3198,
18,
4285,
5621,
202,
21114,
225,
309,
16051,
15112,
5806,
18,
476,
6869,
3935,
3163,
12,
84,
18,
538,
4878,
3719,
1324,
31,
202,
3639,
514,
6594,
3834,
273,
293,
18,
12434,
31,
1377,
514,
17539,
2276,
3834,
273,
315,
832,
18,
452,
1884,
908,
18,
452,
2920,
18,
7355,
10558,
1199,
15,
13916,
3834,
9078,
28589,
2276,
14432,
1377,
1659,
17539,
2276,
797,
273,
446,
31,
1377,
368,
4199,
309,
326,
6594,
6146,
18472,
690,
3799,
1377,
775,
4202,
288,
3639,
17539,
2276,
797,
273,
1659,
18,
1884,
461,
12,
5854,
11978,
2276,
3834,
1769,
1377,
289,
4202,
1044,
12,
797,
3990,
425,
13,
4202,
288,
3639,
368,
333,
353,
7791,
300,
486,
777,
20582,
1240,
19,
14891,
17539,
2865,
18,
3639,
1324,
31,
1377,
289,
1377,
368,
10275,
326,
17539,
4058,
364,
326,
6594,
1377,
23641,
28589,
17539,
2276,
1442,
273,
446,
31,
1377,
309,
12,
5854,
11978,
2276,
797,
480,
446,
13,
4202,
288,
3639,
775,
540,
288,
1850,
17539,
2276,
1442,
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,
741,
6410,
12,
22932,
690,
6410,
751,
3799,
892,
13,
377,
1216,
1185,
225,
288,
565,
368,
2660,
30,
277,
2643,
82,
565,
2332,
18,
659,
18,
8222,
2932,
63,
24591,
18472,
690,
13193,
308,
8863,
565,
368,
5442,
326,
20582,
316,
1353,
565,
4498,
20582,
3198,
273,
3799,
892,
18,
7355,
10558,
2448,
18,
9838,
5621,
565,
1323,
12,
7355,
10558,
3198,
18,
5332,
2134,
10756,
565,
288,
1377,
23641,
293,
273,
261,
5537,
13,
7355,
10558,
3198,
18,
4285,
5621,
202,
21114,
225,
309,
16051,
15112,
5806,
18,
476,
6869,
3935,
3163,
12,
84,
18,
538,
4878,
3719,
1324,
31,
202,
3639,
514,
6594,
3834,
273,
293,
18,
12434,
31,
1377,
514,
17539,
2276,
2
] |
protected void writeNetworkShort (int value) { ensureLength (2); bytes[offset] = (byte) ((value >>> 8) & 0xff); bytes[offset + 1] = (byte) (value & 0xff); offset += 2; } | protected void writeNetworkShort (int value) { ensureLength (2); bytes[offset] = (byte) ((value >>> 8) & 0xff); bytes[offset + 1] = (byte) (value & 0xff); offset += 2; } | protected void writeNetworkShort (int value) { ensureLength (2); bytes[offset] = (byte) ((value >>> 8) & 0xff); bytes[offset + 1] = (byte) (value & 0xff); offset += 2; } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/977561c9de22d12b40a3a2f79a8df22ba7fc7752/DDMWriter.java/clean/java/drda/org/apache/derby/impl/drda/DDMWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1045,
3906,
4897,
261,
474,
460,
13,
288,
3639,
3387,
1782,
261,
22,
1769,
3639,
1731,
63,
3348,
65,
273,
261,
7229,
13,
14015,
1132,
4080,
1725,
13,
473,
374,
5297,
1769,
3639,
1731,
63,
3348,
397,
404,
65,
273,
261,
7229,
13,
261,
1132,
473,
374,
5297,
1769,
3639,
1384,
1011,
576,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1045,
3906,
4897,
261,
474,
460,
13,
288,
3639,
3387,
1782,
261,
22,
1769,
3639,
1731,
63,
3348,
65,
273,
261,
7229,
13,
14015,
1132,
4080,
1725,
13,
473,
374,
5297,
1769,
3639,
1731,
63,
3348,
397,
404,
65,
273,
261,
7229,
13,
261,
1132,
473,
374,
5297,
1769,
3639,
1384,
1011,
576,
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
] |
public BaseInspectionVisitor buildVisitor() { | public BaseInspectionVisitor buildVisitor(){ | public BaseInspectionVisitor buildVisitor() { return new FieldAccessedSynchronizedAndUnsynchronizedVisitor(); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/fe27cafc4443843ebc5b3eb06b59640da45c43ed/FieldAccessedSynchronizedAndUnsynchronizedInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/threading/FieldAccessedSynchronizedAndUnsynchronizedInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3360,
14985,
7413,
1361,
7413,
1435,
95,
3639,
327,
394,
2286,
27762,
55,
15666,
1876,
984,
22043,
7413,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3360,
14985,
7413,
1361,
7413,
1435,
95,
3639,
327,
394,
2286,
27762,
55,
15666,
1876,
984,
22043,
7413,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
eDynamicSet( eFeature, newValue ); | super.eSet( featureID, newValue ); | public void eSet( EStructuralFeature eFeature, Object newValue ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case LayoutPackage.LABEL_BLOCK__CHILDREN : getChildren( ).clear( ); getChildren( ).addAll( (Collection) newValue ); return; case LayoutPackage.LABEL_BLOCK__BOUNDS : setBounds( (Bounds) newValue ); return; case LayoutPackage.LABEL_BLOCK__ANCHOR : setAnchor( (Anchor) newValue ); return; case LayoutPackage.LABEL_BLOCK__STRETCH : setStretch( (Stretch) newValue ); return; case LayoutPackage.LABEL_BLOCK__INSETS : setInsets( (Insets) newValue ); return; case LayoutPackage.LABEL_BLOCK__ROW : setRow( ( (Integer) newValue ).intValue( ) ); return; case LayoutPackage.LABEL_BLOCK__COLUMN : setColumn( ( (Integer) newValue ).intValue( ) ); return; case LayoutPackage.LABEL_BLOCK__ROWSPAN : setRowspan( ( (Integer) newValue ).intValue( ) ); return; case LayoutPackage.LABEL_BLOCK__COLUMNSPAN : setColumnspan( ( (Integer) newValue ).intValue( ) ); return; case LayoutPackage.LABEL_BLOCK__MIN_SIZE : setMinSize( (Size) newValue ); return; case LayoutPackage.LABEL_BLOCK__OUTLINE : setOutline( (LineAttributes) newValue ); return; case LayoutPackage.LABEL_BLOCK__BACKGROUND : setBackground( (Fill) newValue ); return; case LayoutPackage.LABEL_BLOCK__VISIBLE : setVisible( ( (Boolean) newValue ).booleanValue( ) ); return; case LayoutPackage.LABEL_BLOCK__TRIGGERS : getTriggers( ).clear( ); getTriggers( ).addAll( (Collection) newValue ); return; case LayoutPackage.LABEL_BLOCK__LABEL : setLabel( (Label) newValue ); return; } eDynamicSet( eFeature, newValue ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/036e8c78765730b146e5854b9d6c397a296fed86/LabelBlockImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/LabelBlockImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20199,
12,
512,
14372,
4595,
425,
4595,
16,
1033,
6129,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
9995,
2261,
18,
13545,
67,
11403,
972,
27043,
24296,
294,
9506,
202,
588,
4212,
12,
262,
18,
8507,
12,
11272,
9506,
202,
588,
4212,
12,
262,
18,
1289,
1595,
12,
261,
2532,
13,
6129,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
9995,
2261,
18,
13545,
67,
11403,
972,
5315,
2124,
3948,
294,
9506,
202,
542,
5694,
12,
261,
5694,
13,
6129,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
9995,
2261,
18,
13545,
67,
11403,
972,
20360,
916,
294,
9506,
202,
542,
11605,
12,
261,
11605,
13,
6129,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
9995,
2261,
18,
13545,
67,
11403,
972,
882,
10238,
1792,
294,
9506,
202,
542,
510,
20783,
12,
261,
510,
20783,
13,
6129,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
9995,
2261,
18,
13545,
67,
11403,
972,
706,
28092,
294,
9506,
202,
542,
382,
4424,
12,
261,
382,
4424,
13,
6129,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
9995,
2261,
18,
13545,
67,
11403,
972,
11226,
294,
9506,
202,
542,
1999,
12,
261,
261,
4522,
13,
6129,
262,
18,
474,
620,
12,
262,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
9995,
2261,
18,
13545,
67,
11403,
972,
11009,
294,
9506,
202,
542,
1494,
12,
261,
261,
4522,
13,
6129,
262,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20199,
12,
512,
14372,
4595,
425,
4595,
16,
1033,
6129,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
9995,
2261,
18,
13545,
67,
11403,
972,
27043,
24296,
294,
9506,
202,
588,
4212,
12,
262,
18,
8507,
12,
11272,
9506,
202,
588,
4212,
12,
262,
18,
1289,
1595,
12,
261,
2532,
13,
6129,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
9995,
2261,
18,
13545,
67,
11403,
972,
5315,
2124,
3948,
294,
9506,
202,
542,
5694,
12,
261,
5694,
13,
6129,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
9995,
2261,
18,
13545,
67,
11403,
972,
20360,
916,
294,
9506,
202,
2
] |
((AssignableNode)getArgsNode()).assign(ruby, self, RubyArray.newArray(ruby), check); | ((AssignableNode) getArgsNode()).assign(ruby, self, RubyArray.newArray(ruby), check); | public RubyObject massign(Ruby ruby, RubyObject self, RubyObject val, boolean check) { if (val == null) { val = RubyArray.newArray(ruby); } else if (!(val instanceof RubyArray)) { // if ( rb_respond_to( val, to_ary ) ) { // val.funcall(getRuby().intern("to_a")); // } else { val = RubyArray.newArray(ruby, val); // } } Node list = getHeadNode(); int i = 0; for (; list != null && i < ((RubyArray)val).getLength(); i++) { ((AssignableNode)list.getHeadNode()).assign(ruby, self, ((RubyArray)val).entry(i), check); list = list.getNextNode(); } if (check && list != null) { // error } if (getArgsNode() != null) { if (getArgsNode() == MINUS_ONE) { } else if (list == null && i < ((RubyArray)val).getLength()) { ((AssignableNode)getArgsNode()).assign(ruby, self, ((RubyArray)val).subseq(((RubyArray)val).getLength() - i, i), check); } else { ((AssignableNode)getArgsNode()).assign(ruby, self, RubyArray.newArray(ruby), check); } } else if (check && i < ((RubyArray)val).getLength()) { // error } while (list != null) { i++; ((AssignableNode)list.getHeadNode()).assign(ruby, self, ruby.getNil(), check); list = list.getNextNode(); } return val; } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/8140cac1b7c2375c549787852e38fa6c52b199df/MAsgnNode.java/buggy/org/jruby/nodes/MAsgnNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
312,
6145,
12,
54,
10340,
22155,
16,
19817,
921,
365,
16,
19817,
921,
1244,
16,
1250,
866,
13,
288,
3639,
309,
261,
1125,
422,
446,
13,
288,
5411,
1244,
273,
19817,
1076,
18,
2704,
1076,
12,
27768,
1769,
3639,
289,
469,
309,
16051,
12,
1125,
1276,
19817,
1076,
3719,
288,
5411,
368,
309,
261,
7138,
67,
17863,
67,
869,
12,
1244,
16,
358,
67,
814,
262,
262,
288,
5411,
368,
1244,
18,
644,
454,
12,
588,
54,
10340,
7675,
267,
798,
2932,
869,
67,
69,
7923,
1769,
5411,
368,
289,
469,
288,
5411,
1244,
273,
19817,
1076,
18,
2704,
1076,
12,
27768,
16,
1244,
1769,
5411,
368,
289,
3639,
289,
7734,
2029,
666,
273,
336,
1414,
907,
5621,
3639,
509,
277,
273,
374,
31,
3639,
364,
261,
31,
666,
480,
446,
597,
277,
411,
14015,
54,
10340,
1076,
13,
1125,
2934,
588,
1782,
5621,
277,
27245,
288,
5411,
14015,
7961,
907,
13,
1098,
18,
588,
1414,
907,
1435,
2934,
6145,
12,
27768,
16,
365,
16,
14015,
54,
10340,
1076,
13,
1125,
2934,
4099,
12,
77,
3631,
866,
1769,
5411,
666,
273,
666,
18,
588,
2134,
907,
5621,
3639,
289,
7734,
309,
261,
1893,
597,
666,
480,
446,
13,
288,
5411,
368,
555,
3639,
289,
7734,
309,
261,
588,
2615,
907,
1435,
480,
446,
13,
288,
5411,
309,
261,
588,
2615,
907,
1435,
422,
6989,
3378,
67,
5998,
13,
288,
5411,
289,
469,
309,
261,
1098,
422,
446,
597,
277,
411,
14015,
54,
10340,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
312,
6145,
12,
54,
10340,
22155,
16,
19817,
921,
365,
16,
19817,
921,
1244,
16,
1250,
866,
13,
288,
3639,
309,
261,
1125,
422,
446,
13,
288,
5411,
1244,
273,
19817,
1076,
18,
2704,
1076,
12,
27768,
1769,
3639,
289,
469,
309,
16051,
12,
1125,
1276,
19817,
1076,
3719,
288,
5411,
368,
309,
261,
7138,
67,
17863,
67,
869,
12,
1244,
16,
358,
67,
814,
262,
262,
288,
5411,
368,
1244,
18,
644,
454,
12,
588,
54,
10340,
7675,
267,
798,
2932,
869,
67,
69,
7923,
1769,
5411,
368,
289,
469,
288,
5411,
1244,
273,
19817,
1076,
18,
2704,
1076,
12,
27768,
16,
1244,
1769,
5411,
368,
289,
3639,
289,
7734,
2029,
666,
273,
336,
2
] |
tmp = FileUtils.getParentDirectoryPath(tmp); | tmp = FileUtils.getParentDirectoryPath(tmp); | public static String getModuleName() { if (sModuleName == null) { // Need sSeedPath and sRootUrl // sSeedPath: /trunk/statsvn/package.html // sRootUrl: svn://svn.statsvn.org/statsvn/trunk/statsvn String tmp = sSeedPath; if (tmp.endsWith("/")) tmp = tmp.substring(0, tmp.length() - 1); while (!sRootUrl.endsWith(tmp)) { if (!tmp.endsWith("/")) tmp += "/"; // tricking method to think it is receiving a directory. tmp = FileUtils.getParentDirectoryPath(tmp); if (tmp.endsWith("/")) tmp = tmp.substring(0, tmp.length() - 1); } sModuleName = tmp; } return sModuleName; } | 49097 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49097/4ed48d8bde78a01f83587d8c00acc358720cc04e/SvnInfoUtils.java/clean/src/net/sf/statcvs/util/SvnInfoUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
11251,
461,
1435,
288,
3639,
309,
261,
87,
22542,
422,
446,
13,
288,
5411,
368,
12324,
272,
12702,
743,
471,
272,
2375,
1489,
5411,
368,
272,
12702,
743,
30,
342,
26133,
19,
5296,
25031,
19,
5610,
18,
2620,
5411,
368,
272,
2375,
1489,
30,
5893,
82,
2207,
31505,
18,
5296,
25031,
18,
3341,
19,
5296,
25031,
19,
26133,
19,
5296,
25031,
5411,
514,
1853,
273,
272,
12702,
743,
31,
5411,
309,
261,
5645,
18,
5839,
1190,
2932,
4898,
3719,
7734,
1853,
273,
1853,
18,
28023,
12,
20,
16,
1853,
18,
2469,
1435,
300,
404,
1769,
5411,
1323,
16051,
87,
2375,
1489,
18,
5839,
1190,
12,
5645,
3719,
288,
7734,
309,
16051,
5645,
18,
5839,
1190,
2932,
4898,
3719,
10792,
1853,
1011,
4016,
31,
7734,
368,
28837,
310,
707,
358,
15507,
518,
353,
15847,
279,
1867,
18,
7734,
1853,
273,
13779,
18,
588,
3054,
31995,
12,
5645,
1769,
7734,
309,
261,
5645,
18,
5839,
1190,
2932,
4898,
3719,
10792,
1853,
273,
1853,
18,
28023,
12,
20,
16,
1853,
18,
2469,
1435,
300,
404,
1769,
5411,
289,
5411,
272,
22542,
273,
1853,
31,
3639,
289,
3639,
327,
272,
22542,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
11251,
461,
1435,
288,
3639,
309,
261,
87,
22542,
422,
446,
13,
288,
5411,
368,
12324,
272,
12702,
743,
471,
272,
2375,
1489,
5411,
368,
272,
12702,
743,
30,
342,
26133,
19,
5296,
25031,
19,
5610,
18,
2620,
5411,
368,
272,
2375,
1489,
30,
5893,
82,
2207,
31505,
18,
5296,
25031,
18,
3341,
19,
5296,
25031,
19,
26133,
19,
5296,
25031,
5411,
514,
1853,
273,
272,
12702,
743,
31,
5411,
309,
261,
5645,
18,
5839,
1190,
2932,
4898,
3719,
7734,
1853,
273,
1853,
18,
28023,
12,
20,
16,
1853,
18,
2469,
1435,
300,
404,
1769,
5411,
1323,
16051,
87,
2375,
1489,
18,
5839,
1190,
12,
5645,
3719,
288,
7734,
309,
16051,
5645,
18,
5839,
1190,
2
] |
return classes.getClass(name); | return (RubyModule) objectClass.getConstant(name, false); | public RubyModule getModule(String name) { return classes.getClass(name); } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/ca6b16e996ea9af83ce593594b9c69b9364a9924/Ruby.java/buggy/src/org/jruby/Ruby.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
11251,
12,
780,
508,
13,
288,
3639,
327,
261,
54,
10340,
3120,
13,
23992,
18,
588,
6902,
12,
529,
16,
629,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
11251,
12,
780,
508,
13,
288,
3639,
327,
261,
54,
10340,
3120,
13,
23992,
18,
588,
6902,
12,
529,
16,
629,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
primaryViewComboBoxActionPerformed(primaryViewComboBox .getSelectedIndex()); | delSpellButton(); | public void actionPerformed(ActionEvent evt) { primaryViewComboBoxActionPerformed(primaryViewComboBox .getSelectedIndex()); } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/8ce24dae71e590a1255ba1449adf8b06f5a2b1b9/InfoKnownSpells.java/buggy/code/src/java/pcgen/gui/tabs/spells/InfoKnownSpells.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
1082,
202,
95,
9506,
202,
8258,
1767,
22199,
19449,
12,
8258,
1767,
22199,
6862,
202,
18,
588,
7416,
1016,
10663,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
1082,
202,
95,
9506,
202,
8258,
1767,
22199,
19449,
12,
8258,
1767,
22199,
6862,
202,
18,
588,
7416,
1016,
10663,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 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
] |
||
fillContainers(context, itemInfo); | fillCollections(context, itemInfo); | public static List harvest(Context context, DSpaceObject scope, String startDate, String endDate, int offset, int limit, boolean items, boolean containers, boolean withdrawn) throws SQLException { // SQL to add to the list of tables after the SELECT String scopeTableSQL = ""; // SQL to add to the WHERE clause of the query String scopeWhereSQL = ""; if (scope != null) { if (scope.getType() == Constants.COMMUNITY) { // Getting things within a community scopeTableSQL = ", community2item"; scopeWhereSQL = " AND community2item.community_id=" + scope.getID() + " AND community2item.item_id=handle.resource_id"; } else if (scope.getType() == Constants.COLLECTION) { scopeTableSQL = ", collection2item"; scopeWhereSQL = " AND collection2item.collection_id=" + scope.getID() + " AND collection2item.item_id=handle.resource_id"; } // Theoretically, no other possibilities, won't bother to check } // Put together our query. Note there is no need for an // "in_archive=true" condition, we are using the existence of // Handles as our 'existence criterion'. String query = "SELECT handle.handle, handle.resource_id, item.withdrawn, item.last_modified FROM handle, item" + scopeTableSQL + " WHERE handle.resource_type_id=" + Constants.ITEM + " AND handle.resource_id=item.item_id" + scopeWhereSQL; if (startDate != null) { query = query + " AND item.last_modified >= '" + startDate + "'"; } if (endDate != null) { query = query + " AND item.last_modified <= '" + endDate + "'"; } if (withdrawn = false) { // Exclude withdrawn items query = query + " AND withdrawn=false"; } // Order by item ID, so that for a given harvest the order will be // consistent. This is so that big harvests can be broken up into // several smaller operations (e.g. for OAI resumption tokens.) query = query + " ORDER BY handle.resource_id"; log.debug(LogManager.getHeader(context, "harvest SQL", query)); // Execute TableRowIterator tri = DatabaseManager.query(context, query); List infoObjects = new LinkedList(); int index = 0; // Process results of query into HarvestedItemInfo objects while (tri.hasNext()) { TableRow row = tri.next(); /* * This conditional ensures that we only process items within * any constraints specified by 'offset' and 'limit' parameters. */ if (index >= offset && (limit == 0 || index < offset + limit)) { HarvestedItemInfo itemInfo = new HarvestedItemInfo(); itemInfo.handle = row.getStringColumn("handle"); itemInfo.itemID = row.getIntColumn("resource_id"); // Put datestamp in ISO8601 itemInfo.datestamp = row.getDateColumn("last_modified"); itemInfo.withdrawn = row.getBooleanColumn("withdrawn"); if (containers) { fillContainers(context, itemInfo); } if (items) { // Get the item itemInfo.item = Item.find(context, itemInfo.itemID); } infoObjects.add(itemInfo); } index++; } return infoObjects; } | 52457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52457/564aa767ae3958fb227322d346195962712ce24e/Harvest.java/buggy/dspace/src/org/dspace/search/Harvest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
987,
17895,
26923,
12,
1042,
819,
16,
3639,
463,
3819,
921,
2146,
16,
3639,
514,
12572,
16,
3639,
514,
13202,
16,
3639,
509,
1384,
16,
3639,
509,
1800,
16,
3639,
1250,
1516,
16,
3639,
1250,
8475,
16,
3639,
1250,
598,
9446,
82,
13,
3639,
1216,
6483,
565,
288,
3639,
368,
3063,
358,
527,
358,
326,
666,
434,
4606,
1839,
326,
9111,
3639,
514,
2146,
1388,
3997,
273,
1408,
31,
3639,
368,
3063,
358,
527,
358,
326,
4852,
6591,
434,
326,
843,
3639,
514,
2146,
5262,
3997,
273,
1408,
31,
13491,
309,
261,
4887,
480,
446,
13,
3639,
288,
5411,
309,
261,
4887,
18,
588,
559,
1435,
422,
5245,
18,
4208,
49,
2124,
4107,
13,
5411,
288,
7734,
368,
26602,
9198,
3470,
279,
19833,
7734,
2146,
1388,
3997,
273,
3104,
19833,
22,
1726,
14432,
7734,
2146,
5262,
3997,
273,
315,
4116,
19833,
22,
1726,
18,
20859,
67,
350,
1546,
397,
10792,
2146,
18,
588,
734,
1435,
397,
10792,
315,
4116,
19833,
22,
1726,
18,
1726,
67,
350,
33,
4110,
18,
3146,
67,
350,
14432,
5411,
289,
5411,
469,
309,
261,
4887,
18,
588,
559,
1435,
422,
5245,
18,
25964,
13,
5411,
288,
7734,
2146,
1388,
3997,
273,
3104,
1849,
22,
1726,
14432,
7734,
2146,
5262,
3997,
273,
315,
4116,
1849,
22,
1726,
18,
5548,
67,
350,
1546,
397,
10792,
2146,
18,
588,
734,
1435,
397,
10792,
315,
4116,
1849,
22,
1726,
18,
1726,
67,
350,
33,
4110,
18,
3146,
67,
350,
14432,
5411,
289,
5411,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
987,
17895,
26923,
12,
1042,
819,
16,
3639,
463,
3819,
921,
2146,
16,
3639,
514,
12572,
16,
3639,
514,
13202,
16,
3639,
509,
1384,
16,
3639,
509,
1800,
16,
3639,
1250,
1516,
16,
3639,
1250,
8475,
16,
3639,
1250,
598,
9446,
82,
13,
3639,
1216,
6483,
565,
288,
3639,
368,
3063,
358,
527,
358,
326,
666,
434,
4606,
1839,
326,
9111,
3639,
514,
2146,
1388,
3997,
273,
1408,
31,
3639,
368,
3063,
358,
527,
358,
326,
4852,
6591,
434,
326,
843,
3639,
514,
2146,
5262,
3997,
273,
1408,
31,
13491,
309,
261,
4887,
480,
446,
13,
3639,
288,
5411,
309,
261,
4887,
18,
588,
559,
1435,
422,
5245,
18,
4208,
49,
2124,
4107,
13,
5411,
288,
2
] |
if(debug>=4)System.out.println("readString() returns "+string+" with length "+length); | if(debug>=4)System.out.println("Utilities.getString() returns "+string+" with length "+length); | static public String getStringFromDataInputStream(DataInputStream input_file) { int length = 0; byte[] b_array = null; try { length = input_file.readInt(); b_array = new byte[length]; for (int i=0; i<length; i++) { b_array[i] = input_file.readByte(); } } catch (EOFException e) { if(debug>=3) System.out.println("***Utilities.getStringFromDataInputStream() EOF exception!***"); return EOF_String; }catch (IOException e) { System.out.println("***Utilities.getStringFromDataInputStream() IO exception!***"); new Exception().printStackTrace(); System.exit(-1); } String string = new String(b_array); if(debug>=4)System.out.println("readString() returns "+string+" with length "+length); return string; } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/36121679de116def2eb677d266cce4a9734a9b2e/Utilities.java/buggy/rvm/src/tools/HPM_traceFileReader/Utilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1071,
514,
4997,
1265,
751,
4348,
12,
751,
4348,
810,
67,
768,
13,
282,
288,
565,
509,
769,
273,
374,
31,
565,
1160,
8526,
324,
67,
1126,
273,
446,
31,
565,
775,
288,
1377,
769,
273,
810,
67,
768,
18,
896,
1702,
5621,
1377,
324,
67,
1126,
273,
394,
1160,
63,
2469,
15533,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
2469,
31,
277,
27245,
288,
3639,
324,
67,
1126,
63,
77,
65,
273,
810,
67,
768,
18,
896,
3216,
5621,
1377,
289,
565,
289,
1044,
261,
12706,
503,
425,
13,
288,
1377,
309,
12,
4148,
34,
33,
23,
13,
3639,
2332,
18,
659,
18,
8222,
2932,
14465,
11864,
18,
588,
780,
1265,
751,
4348,
1435,
6431,
1520,
5,
636,
7388,
1769,
1377,
327,
6431,
67,
780,
31,
565,
289,
14683,
261,
14106,
425,
13,
288,
1377,
2332,
18,
659,
18,
8222,
2932,
14465,
11864,
18,
588,
780,
1265,
751,
4348,
1435,
1665,
1520,
5,
636,
7388,
1769,
1377,
394,
1185,
7675,
1188,
6332,
5621,
1377,
2332,
18,
8593,
19236,
21,
1769,
565,
289,
3639,
514,
533,
273,
394,
514,
12,
70,
67,
1126,
1769,
565,
309,
12,
4148,
34,
33,
24,
13,
3163,
18,
659,
18,
8222,
2932,
11864,
18,
588,
780,
1435,
1135,
13773,
1080,
9078,
598,
769,
13773,
2469,
1769,
565,
327,
533,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1071,
514,
4997,
1265,
751,
4348,
12,
751,
4348,
810,
67,
768,
13,
282,
288,
565,
509,
769,
273,
374,
31,
565,
1160,
8526,
324,
67,
1126,
273,
446,
31,
565,
775,
288,
1377,
769,
273,
810,
67,
768,
18,
896,
1702,
5621,
1377,
324,
67,
1126,
273,
394,
1160,
63,
2469,
15533,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
2469,
31,
277,
27245,
288,
3639,
324,
67,
1126,
63,
77,
65,
273,
810,
67,
768,
18,
896,
3216,
5621,
1377,
289,
565,
289,
1044,
261,
12706,
503,
425,
13,
288,
1377,
309,
12,
4148,
34,
33,
23,
13,
3639,
2332,
18,
659,
18,
8222,
2932,
14465,
11864,
18,
588,
780,
1265,
751,
4348,
2
] |
public String simplifiedSubject() { | public String simplifiedSubject() { | public String simplifiedSubject() { try { String sub = m.getSubject(); if (sub != null) { StringBuffer buf = new StringBuffer(sub); if (stripRe(buf)) return buf.toString(); return sub; } } catch (MessagingException e) { } return ""; } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/0cc63cb388a13f01532486f9d178811914e6d71b/MessageExtraWrapper.java/buggy/grendel/sources/grendel/storage/MessageExtraWrapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
20482,
6638,
1435,
288,
565,
775,
288,
1377,
514,
720,
273,
312,
18,
588,
6638,
5621,
1377,
309,
261,
1717,
480,
446,
13,
288,
3639,
6674,
1681,
273,
394,
6674,
12,
1717,
1769,
3639,
309,
261,
6406,
426,
12,
4385,
3719,
327,
1681,
18,
10492,
5621,
3639,
327,
720,
31,
1377,
289,
565,
289,
1044,
261,
23389,
503,
425,
13,
288,
565,
289,
565,
327,
1408,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
20482,
6638,
1435,
288,
565,
775,
288,
1377,
514,
720,
273,
312,
18,
588,
6638,
5621,
1377,
309,
261,
1717,
480,
446,
13,
288,
3639,
6674,
1681,
273,
394,
6674,
12,
1717,
1769,
3639,
309,
261,
6406,
426,
12,
4385,
3719,
327,
1681,
18,
10492,
5621,
3639,
327,
720,
31,
1377,
289,
565,
289,
1044,
261,
23389,
503,
425,
13,
288,
565,
289,
565,
327,
1408,
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
] |
return GroupNames.CONTROL_FLOW_GROUP_NAME; } | return GroupNames.CONTROL_FLOW_GROUP_NAME; } | public String getGroupDisplayName() { return GroupNames.CONTROL_FLOW_GROUP_NAME; } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/0c22d3bce35a1ee7d70c329328f649614cf6f21a/UnusedLabelInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/controlflow/UnusedLabelInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
11751,
20524,
1435,
288,
565,
327,
3756,
1557,
18,
18248,
67,
17430,
67,
8468,
67,
1985,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
11751,
20524,
1435,
288,
565,
327,
3756,
1557,
18,
18248,
67,
17430,
67,
8468,
67,
1985,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits