rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
try { theGroup.add(ProActive.newActive(classeName, leParam, leNode)); ((org.objectweb.proactive.core.group.ProxyForGroup)theGroup).decrementTheWaitedCreation(); } catch (Exception e) { e.printStackTrace(); } }
|
try { theGroup.add(ProActive.newActive(classeName, leParam, leNode)); ((org.objectweb.proactive.core.group.ProxyForGroup) theGroup).decrementWaitedAndNotifyAll(); } catch (Exception e) { e.printStackTrace(); } }
|
public void run() { try { theGroup.add(ProActive.newActive(classeName, leParam, leNode)); ((org.objectweb.proactive.core.group.ProxyForGroup)theGroup).decrementTheWaitedCreation(); } catch (Exception e) { e.printStackTrace(); } }
|
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/b5b6b2bb6ded96a8d2ca2db6f12836cec349b290/ProxyForGroup.java/clean/src/org/objectweb/proactive/core/group/ProxyForGroup.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
326,
1114,
18,
1289,
12,
626,
3896,
18,
2704,
3896,
12,
830,
345,
307,
461,
16,
884,
786,
16,
884,
907,
10019,
7734,
14015,
3341,
18,
1612,
4875,
18,
685,
3535,
18,
3644,
18,
1655,
18,
3886,
1290,
1114,
13,
5787,
1114,
2934,
323,
3702,
1986,
5480,
329,
9906,
5621,
5411,
289,
1044,
261,
503,
425,
13,
288,
7734,
425,
18,
1188,
6332,
5621,
5411,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
326,
1114,
18,
1289,
12,
626,
3896,
18,
2704,
3896,
12,
830,
345,
307,
461,
16,
884,
786,
16,
884,
907,
10019,
7734,
14015,
3341,
18,
1612,
4875,
18,
685,
3535,
18,
3644,
18,
1655,
18,
3886,
1290,
1114,
13,
5787,
1114,
2934,
323,
3702,
1986,
5480,
329,
9906,
5621,
5411,
289,
1044,
261,
503,
425,
13,
288,
7734,
425,
18,
1188,
6332,
5621,
5411,
289,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (loc.y >= endY)
|
if (loc.y >= endY) {
|
private UIJob getSlideJob(){ UIJob slideJob = new UIJob("Sliding Message") { //$NON-NLS-1$ public IStatus runInUIThread(IProgressMonitor monitor) { if(!monitor.isCanceled() && !control.isDisposed()){ Point loc = control.getLocation(); switch (getAnimationState()) { case OPENING: loc.y--; if (loc.y >= endY) control.setLocation(loc); else { finished[0] = true; setAnimationState(OPEN); } break; case CLOSING: loc.y++; if (loc.y <= endY) control.setLocation(loc); else { finished[0] = true; setAnimationState(CLOSED); } break; default: break; } if(!finished[0]) getSlideJob().schedule(5); return Status.OK_STATUS; } return Status.CANCEL_STATUS; } }; return slideJob; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/229fa3ff73e62189c51c61c3f11fc1aafcd37f5f/WorkbenchControlAnimator.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchControlAnimator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6484,
2278,
1322,
8130,
2278,
1435,
95,
202,
202,
5370,
2278,
12701,
2278,
273,
394,
6484,
2278,
2932,
3738,
10415,
2350,
7923,
288,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
430,
12,
5,
10259,
18,
291,
23163,
1435,
597,
401,
7098,
18,
291,
1669,
7423,
10756,
95,
6862,
202,
2148,
1515,
273,
3325,
18,
588,
2735,
5621,
6862,
202,
9610,
261,
588,
10816,
1119,
10756,
288,
6862,
202,
3593,
11919,
1360,
30,
25083,
202,
1829,
18,
93,
413,
31,
25083,
202,
430,
261,
1829,
18,
93,
1545,
679,
61,
13,
6862,
1082,
202,
7098,
18,
542,
2735,
12,
1829,
1769,
25083,
202,
12107,
288,
6862,
1082,
202,
13527,
63,
20,
65,
273,
638,
31,
6862,
1082,
202,
542,
10816,
1119,
12,
11437,
1769,
25083,
202,
97,
25083,
202,
8820,
31,
6862,
202,
3593,
27775,
23708,
30,
25083,
202,
1829,
18,
93,
9904,
31,
25083,
202,
430,
261,
1829,
18,
93,
1648,
679,
61,
13,
6862,
1082,
202,
7098,
18,
542,
2735,
12,
1829,
1769,
25083,
202,
12107,
288,
6862,
1082,
202,
13527,
63,
20,
65,
273,
638,
31,
6862,
1082,
202,
542,
10816,
1119,
12,
28475,
1769,
25083,
202,
97,
25083,
202,
8820,
31,
6862,
202,
1886,
30,
25083,
202,
8820,
31,
6862,
202,
97,
6862,
202,
430,
12,
5,
13527,
63,
20,
5717,
25083,
202,
588,
21068,
2278,
7675,
10676,
12,
25,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6484,
2278,
1322,
8130,
2278,
1435,
95,
202,
202,
5370,
2278,
12701,
2278,
273,
394,
6484,
2278,
2932,
3738,
10415,
2350,
7923,
288,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
430,
12,
5,
10259,
18,
291,
23163,
1435,
597,
401,
7098,
18,
291,
1669,
7423,
10756,
95,
6862,
202,
2148,
1515,
273,
3325,
18,
588,
2735,
5621,
6862,
202,
9610,
261,
588,
10816,
1119,
10756,
288,
6862,
202,
3593,
11919,
1360,
30,
25083,
202,
1829,
18,
93,
413,
31,
25083,
202,
430,
261,
1829,
18,
93,
1545,
679,
61,
13,
6862,
1082,
202,
7098,
18,
542,
2
] |
return (VmMethod)Unsafe.getObject(sf, getMethodOffset(sf));
|
final Object obj = Unsafe.getObject(sf, getMethodOffset(sf)); if (obj instanceof VmMethod) { return (VmMethod)obj; } else if (obj == null) { return null; } else { Unsafe.debug("Method on stacktrace is not instanceof VmMethod but "); Unsafe.debug(obj.getClass().getName()); Unsafe.die("Fatal stack error"); return null; }
|
final VmMethod getMethod(Address sf) { return (VmMethod)Unsafe.getObject(sf, getMethodOffset(sf)); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5fd2b1e0180cda24cafbd8288788f03fd5464c0f/VmStackReader.java/buggy/core/src/core/org/jnode/vm/VmStackReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6385,
776,
81,
1305,
6272,
12,
1887,
9033,
13,
288,
202,
202,
2463,
261,
22143,
1305,
13,
23912,
18,
588,
921,
12,
21668,
16,
6272,
2335,
12,
21668,
10019,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
202,
6385,
776,
81,
1305,
6272,
12,
1887,
9033,
13,
288,
202,
202,
2463,
261,
22143,
1305,
13,
23912,
18,
588,
921,
12,
21668,
16,
6272,
2335,
12,
21668,
10019,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
indent = 1;
|
indent = true;
|
private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0; // white spaces case ' ' : case '\t' : case '\f' : case '\r' : case '\013' : // '\v' space_seen++; continue retry; case '#' : // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n' : switch (ph.getLexState()) { case LexState.EXPR_BEG : case LexState.EXPR_FNAME : case LexState.EXPR_DOT : continue retry; default : break; } ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*' : if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = "**"; // ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = "*"; // ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("'*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=' : if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (;;) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<' : c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen != 0)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = "<<"; // ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ">>"; //ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"' : return parse_string(c, c, c); case '`' : if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'' : return parse_qstring(c, 0); case '?' : if (ph.getLexState() == LexState.EXPR_END) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&' : if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "&&"; // ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = "&"; //ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = "||"; // ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = "|"; //ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "+"; //ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "-"; // ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return start_num(c); case ']' : case '}' : ph.setLexState(LexState.EXPR_END); return c; case ')' : if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':' : c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/' : if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "/"; // ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "^"; //ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',' : case ';' : ph.setLexState(LexState.EXPR_BEG); return c; case '~' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(' : if (cond_nest > 0) { cond_stack = (cond_stack << 1) | 0; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (ph.getLexState() == LexState.EXPR_ARG && space_seen != 0) { ph.rb_warning(tok() + " (...) interpreted as method call"); } ph.setLexState(LexState.EXPR_BEG); return c; case '[' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen != 0) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{' : if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ARG) { c = Token.tLBRACE; } ph.setLexState(LexState.EXPR_BEG); return c; case '\\' : c = nextc(); if (c == '\n') { space_seen = 1; continue retry; // skip \\n } pushback(c); return '\\'; case '%' : quotation : for (;;) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q' : return parse_string('"', term, paren); case 'q' : return parse_qstring(term, paren); case 'w' : return parse_quotedwords(term, paren); case 'x' : return parse_string('`', term, paren); case 'r' : return parse_regx(term, paren); default : yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = "%"; //ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$' : ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_' : // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~' : // $~: match-data ph.getLocalIndex(String.valueOf(c)); // fall through case '*' : // $*: argv case '$' : // $$: pid case '?' : // $?: last status case '!' : // $!: error string case '@' : // $@: error position case '/' : // $/: input record separator case '\\' : // $\: output record separator case ';' : // $;: field separator case ',' : // $,: output field separator case '.' : // $.: last read line number case '=' : // $=: ignorecase case ':' : // $:: load path case '<' : // $<: reading filename case '>' : // $>: default output handle case '\"' : // $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); return Token.tGVAR; case '-' : tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); /* xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&' : // $&: last match case '`' : // $`: string before last match case '\'' : // $': string after last match case '+' : // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default : if (!is_identchar(c)) { pushback(c); return '$'; } case '0' : tokadd('$'); } break; case '@' : c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default : if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$' : ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@' : ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default : if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = kw.name; // ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P()) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG) { ph.setLexState(LexState.EXPR_ARG); } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = tok(); // ruby.intern(tok()); return result; } }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
509,
276,
31,
3639,
509,
3476,
67,
15156,
273,
374,
31,
3639,
5323,
2121,
5323,
31,
3639,
3300,
294,
364,
261,
25708,
13,
288,
5411,
1620,
261,
71,
273,
1024,
71,
10756,
288,
7734,
648,
2337,
20,
11,
294,
368,
423,
1506,
7734,
648,
2337,
26565,
11,
294,
368,
3602,
40,
7734,
648,
2337,
20,
1578,
11,
294,
368,
3602,
62,
7734,
648,
300,
21,
294,
368,
409,
434,
2728,
18,
10792,
327,
374,
31,
10792,
368,
9578,
7292,
7734,
648,
296,
296,
294,
7734,
648,
2337,
88,
11,
294,
7734,
648,
2337,
74,
11,
294,
7734,
648,
2337,
86,
11,
294,
7734,
648,
2337,
1611,
23,
11,
294,
368,
2337,
90,
11,
10792,
3476,
67,
15156,
9904,
31,
10792,
1324,
3300,
31,
7734,
648,
6501,
294,
368,
518,
1807,
279,
2879,
10792,
1323,
14015,
71,
273,
1024,
71,
10756,
480,
2337,
82,
6134,
288,
13491,
309,
261,
71,
422,
300,
21,
13,
288,
18701,
327,
374,
31,
13491,
289,
10792,
289,
10792,
368,
4159,
3059,
7734,
648,
2337,
82,
11,
294,
10792,
1620,
261,
844,
18,
588,
14756,
1119,
10756,
288,
13491,
648,
15123,
1119,
18,
2294,
8025,
67,
5948,
43,
294,
13491,
648,
15123,
1119,
18,
2294,
8025,
67,
42,
1985,
294,
13491,
648,
15123,
1119,
18,
2294,
8025,
67,
17591,
294,
18701,
1324,
3300,
31,
13491,
805,
294,
18701,
898,
31,
10792,
289,
10792,
1844,
18,
542,
14756,
1119,
12,
14756,
1119,
18,
2294,
8025,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
509,
276,
31,
3639,
509,
3476,
67,
15156,
273,
374,
31,
3639,
5323,
2121,
5323,
31,
3639,
3300,
294,
364,
261,
25708,
13,
288,
5411,
1620,
261,
71,
273,
1024,
71,
10756,
288,
7734,
648,
2337,
20,
11,
294,
368,
423,
1506,
7734,
648,
2337,
26565,
11,
294,
368,
3602,
40,
7734,
648,
2337,
20,
1578,
11,
294,
368,
3602,
62,
7734,
648,
300,
21,
294,
368,
409,
434,
2728,
18,
10792,
327,
374,
31,
10792,
368,
9578,
7292,
7734,
648,
296,
296,
294,
7734,
648,
2337,
88,
11,
294,
7734,
648,
2337,
74,
11,
294,
7734,
648,
2337,
86,
11,
294,
7734,
648,
2337,
1611,
23,
11,
294,
368,
2
] |
DefaultViewNode documentNode = new ApplicationViewNode("document",contentNode);
|
DefaultViewNode documentNode = new DefaultViewNode("document",contentNode);
|
public void initializeStandardViews(ViewHandler handler){ setApplicationRoot(iwma,handler); DefaultViewNode builderNode = new ApplicationViewNode("builder",getWorkspaceRoot()); DefaultViewNode contentNode = new ApplicationViewNode("content",getWorkspaceRoot()); contentNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/cmspage.jsf"); //TODO: move these specific views DefaultViewNode articleNode = new ApplicationViewNode("article",contentNode); articleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/articles.jsf"); DefaultViewNode createNewArticleNode = new ApplicationViewNode("create",articleNode); createNewArticleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/createarticle.jsf"); DefaultViewNode previewArticlesNode = new ApplicationViewNode("preview",articleNode); previewArticlesNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/previewarticle.jsf"); //DefaultViewNode listArticlesNode = new ApplicationViewNode("listarticles",articleNode); DefaultViewNode documentNode = new ApplicationViewNode("document",contentNode); DefaultViewNode searchNode = new ApplicationViewNode("search",contentNode); searchNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/searcharticle.jsf"); DefaultViewNode webviewNode = new ApplicationViewNode("webview",getWorkspaceRoot()); DefaultViewNode loginViewNode = new WindowViewNode("login",getApplicationRoot()); DefaultViewNode pagesViewNode = new BuilderPageViewNode("pages",getApplicationRoot()); DefaultViewNode windowViewNode = new WindowViewNode("window",getApplicationRoot()); }
|
52727 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52727/ab336fe7d2721be8c0ff289af8340b43dcd3d75b/ViewManager.java/buggy/src/java/com/idega/faces/view/ViewManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4046,
8336,
9959,
12,
1767,
1503,
1838,
15329,
9506,
202,
542,
3208,
2375,
12,
22315,
2540,
16,
4176,
1769,
9506,
202,
1868,
1767,
907,
2089,
907,
273,
394,
4257,
1767,
907,
2932,
9574,
3113,
588,
8241,
2375,
10663,
9506,
202,
1868,
1767,
907,
913,
907,
273,
394,
4257,
1767,
907,
2932,
1745,
3113,
588,
8241,
2375,
10663,
202,
202,
1745,
907,
18,
542,
21796,
3006,
2932,
19,
831,
15833,
4875,
19,
22773,
19,
832,
18,
831,
15833,
18,
4875,
865,
18,
9991,
19,
24926,
19,
6851,
2433,
18,
2924,
74,
8863,
9506,
202,
759,
6241,
30,
3635,
4259,
2923,
7361,
202,
202,
1868,
1767,
907,
7559,
907,
273,
394,
4257,
1767,
907,
2932,
11480,
3113,
1745,
907,
1769,
202,
202,
11480,
907,
18,
542,
21796,
3006,
2932,
19,
831,
15833,
4875,
19,
22773,
19,
832,
18,
831,
15833,
18,
4875,
865,
18,
9991,
19,
24926,
19,
16462,
18,
2924,
74,
8863,
202,
202,
1868,
1767,
907,
15291,
7880,
907,
273,
394,
4257,
1767,
907,
2932,
2640,
3113,
11480,
907,
1769,
202,
202,
2640,
1908,
7880,
907,
18,
542,
21796,
3006,
2932,
19,
831,
15833,
4875,
19,
22773,
19,
832,
18,
831,
15833,
18,
4875,
865,
18,
9991,
19,
24926,
19,
2640,
11480,
18,
2924,
74,
8863,
9506,
202,
1868,
1767,
907,
10143,
19001,
907,
273,
394,
4257,
1767,
907,
2932,
12102,
3113,
11480,
907,
1769,
202,
202,
12102,
19001,
907,
18,
542,
21796,
3006,
2932,
19,
831,
15833,
4875,
19,
22773,
19,
832,
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,
4046,
8336,
9959,
12,
1767,
1503,
1838,
15329,
9506,
202,
542,
3208,
2375,
12,
22315,
2540,
16,
4176,
1769,
9506,
202,
1868,
1767,
907,
2089,
907,
273,
394,
4257,
1767,
907,
2932,
9574,
3113,
588,
8241,
2375,
10663,
9506,
202,
1868,
1767,
907,
913,
907,
273,
394,
4257,
1767,
907,
2932,
1745,
3113,
588,
8241,
2375,
10663,
202,
202,
1745,
907,
18,
542,
21796,
3006,
2932,
19,
831,
15833,
4875,
19,
22773,
19,
832,
18,
831,
15833,
18,
4875,
865,
18,
9991,
19,
24926,
19,
6851,
2433,
18,
2924,
74,
8863,
9506,
202,
759,
6241,
30,
3635,
4259,
2923,
7361,
202,
202,
1868,
1767,
907,
7559,
907,
273,
394,
4257,
1767,
907,
2932,
11480,
3113,
2
] |
mLog.debug("\t\tWrote "+(int)toRead+" bytes with checksum "+check.getValue());
|
mLog.debug("\tWriting file: \""+files[i]+"\" len="+fileLen);
|
public synchronized void backupIndex(OutputStream out) throws IOException { flush(); // make sure all writes are complete. // TODO - steal Lucene's much more efficient primitive-types-to-binary-file code and use that, instead of the ObjectOutputStream... ObjectOutputStream outStr = new ObjectOutputStream(out); // // simple output format: // // - Start Magic Number // // - Repeat: // Long length : length of file or -1 end of files // String name : file name // byte[length]: file data // separator magic # // outStr.writeInt(INDEX_BACKUP_START_MAGIC); FSDirectory indexDir = null; File idxPathFile = new File(mIdxPath); if (idxPathFile.exists() && idxPathFile.isDirectory()) { indexDir = FSDirectory.getDirectory(idxPathFile, false); } if (null != indexDir) { String[] files = indexDir.list(); byte buffer[] = new byte[BUFFER_LEN]; for (int i = 0; i < files.length; i++) { long fileLen = indexDir.fileLength(files[i]); org.apache.lucene.store.InputStream in = indexDir.openFile(files[i]); if (mLog.isDebugEnabled()) { mLog.debug("\tWriting file: \""+files[i]+"\" len="+fileLen); } // // need to write file header here.... // outStr.writeLong(fileLen); outStr.writeUTF(files[i]); // // write the file data now // long pos = 0; while (pos < fileLen) { long toRead = Math.min(fileLen-pos, BUFFER_LEN); in.readBytes(buffer, 0, (int)toRead); outStr.write(buffer, 0, (int)toRead); CRC32 check = new CRC32(); check.update(buffer, 0, (int)toRead); if (mLog.isDebugEnabled()) { mLog.debug("\t\tWrote "+(int)toRead+" bytes with checksum "+check.getValue()); } pos+=toRead; } outStr.writeInt(INDEX_BACKUP_SEPARATOR_MAGIC); in.close(); } } else { mLog.info("No index file for mailbox "+this.mMailboxId); } outStr.writeLong(-1); // end of files outStr.flush(); }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/9f6861227b0f9808a28547edf4255cb279354a1d/MailboxIndex.java/buggy/ZimbraServer/src/java/com/zimbra/cs/index/MailboxIndex.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
5114,
1016,
12,
4632,
596,
13,
1216,
1860,
565,
288,
3639,
3663,
5621,
368,
1221,
3071,
777,
7262,
854,
3912,
18,
3639,
368,
2660,
300,
18654,
287,
511,
14152,
1807,
9816,
1898,
14382,
8225,
17,
2352,
17,
869,
17,
8578,
17,
768,
981,
471,
999,
716,
16,
3560,
434,
326,
23438,
2777,
3639,
23438,
596,
1585,
273,
394,
23438,
12,
659,
1769,
3639,
368,
3639,
368,
4143,
876,
740,
30,
3639,
368,
3639,
368,
225,
300,
3603,
28496,
3588,
3639,
368,
3639,
368,
225,
300,
20742,
30,
1850,
368,
377,
3407,
769,
225,
294,
769,
434,
585,
578,
300,
21,
679,
434,
1390,
3639,
368,
377,
514,
508,
294,
585,
508,
3639,
368,
377,
1160,
63,
2469,
14542,
585,
501,
3639,
368,
377,
4182,
8146,
468,
3639,
368,
3639,
596,
1585,
18,
2626,
1702,
12,
9199,
67,
8720,
3079,
67,
7570,
67,
49,
22247,
1769,
3639,
9247,
2853,
770,
1621,
273,
446,
31,
3639,
1387,
2067,
743,
812,
273,
394,
1387,
12,
81,
4223,
743,
1769,
3639,
309,
261,
3465,
743,
812,
18,
1808,
1435,
597,
2067,
743,
812,
18,
291,
2853,
10756,
288,
5411,
770,
1621,
273,
9247,
2853,
18,
588,
2853,
12,
3465,
743,
812,
16,
629,
1769,
3639,
289,
3639,
309,
261,
2011,
480,
770,
1621,
13,
288,
5411,
514,
8526,
1390,
273,
770,
1621,
18,
1098,
5621,
5411,
1160,
1613,
8526,
273,
394,
1160,
63,
11302,
67,
13017,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
5114,
1016,
12,
4632,
596,
13,
1216,
1860,
565,
288,
3639,
3663,
5621,
368,
1221,
3071,
777,
7262,
854,
3912,
18,
3639,
368,
2660,
300,
18654,
287,
511,
14152,
1807,
9816,
1898,
14382,
8225,
17,
2352,
17,
869,
17,
8578,
17,
768,
981,
471,
999,
716,
16,
3560,
434,
326,
23438,
2777,
3639,
23438,
596,
1585,
273,
394,
23438,
12,
659,
1769,
3639,
368,
3639,
368,
4143,
876,
740,
30,
3639,
368,
3639,
368,
225,
300,
3603,
28496,
3588,
3639,
368,
3639,
368,
225,
300,
20742,
30,
1850,
368,
377,
3407,
769,
225,
294,
769,
434,
585,
578,
300,
21,
679,
434,
1390,
3639,
368,
377,
514,
508,
294,
585,
508,
3639,
368,
377,
1160,
2
] |
if ( element instanceof TableRow ) if ( element.getContainer( ) instanceof GroupElement ) element = element.getContainer( );
|
public void end( ) throws SAXException { // only when the row is in the Group. if ( element.getContainer( ) instanceof GroupElement ) { // special case to delegate the property value to its container. element = element.getContainer( ); super.end( ); } }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/029da3d34dd6074fefd6e97b8f8f0d1826f7d18a/CompatiblePageBreakPropState.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/CompatiblePageBreakPropState.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
282,
309,
261,
930,
1276,
3555,
1999,
262,
309,
261,
930,
18,
588,
2170,
12,
262,
1276,
3756,
1046,
262,
930,
273,
930,
18,
588,
2170,
12,
11272,
918,
282,
309,
261,
930,
1276,
3555,
1999,
262,
309,
261,
930,
18,
588,
2170,
12,
262,
1276,
3756,
1046,
262,
930,
273,
930,
18,
588,
2170,
12,
11272,
679,
12,
282,
309,
261,
930,
1276,
3555,
1999,
262,
309,
261,
930,
18,
588,
2170,
12,
262,
1276,
3756,
1046,
262,
930,
273,
930,
18,
588,
2170,
12,
11272,
262,
282,
309,
261,
930,
1276,
3555,
1999,
262,
309,
261,
930,
18,
588,
2170,
12,
262,
1276,
3756,
1046,
262,
930,
273,
930,
18,
588,
2170,
12,
11272,
1216,
282,
309,
261,
930,
1276,
3555,
1999,
262,
309,
261,
930,
18,
588,
2170,
12,
262,
1276,
3756,
1046,
262,
930,
273,
930,
18,
588,
2170,
12,
11272,
14366,
202,
95,
202,
202,
759,
282,
309,
261,
930,
1276,
3555,
1999,
262,
309,
261,
930,
18,
588,
2170,
12,
262,
1276,
3756,
1046,
262,
930,
273,
930,
18,
588,
2170,
12,
11272,
1338,
282,
309,
261,
930,
1276,
3555,
1999,
262,
309,
261,
930,
18,
588,
2170,
12,
262,
1276,
3756,
1046,
262,
930,
273,
930,
18,
588,
2170,
12,
11272,
1347,
282,
309,
261,
930,
1276,
3555,
1999,
262,
309,
261,
930,
18,
588,
2170,
12,
262,
1276,
3756,
1046,
262,
930,
273,
930,
18,
588,
2170,
12,
11272,
326,
282,
309,
261,
930,
1276,
3555,
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,
282,
309,
261,
930,
1276,
3555,
1999,
262,
309,
261,
930,
18,
588,
2170,
12,
262,
1276,
3756,
1046,
262,
930,
273,
930,
18,
588,
2170,
12,
11272,
918,
282,
309,
261,
930,
1276,
3555,
1999,
262,
309,
261,
930,
18,
588,
2170,
12,
262,
1276,
3756,
1046,
262,
930,
273,
930,
18,
588,
2170,
12,
11272,
679,
12,
282,
309,
261,
930,
1276,
3555,
1999,
262,
309,
261,
930,
18,
588,
2170,
12,
262,
1276,
3756,
1046,
262,
930,
273,
930,
18,
588,
2170,
12,
11272,
262,
282,
309,
261,
930,
1276,
3555,
1999,
262,
309,
261,
930,
18,
588,
2170,
12,
262,
1276,
3756,
1046,
262,
930,
273,
930,
18,
588,
2170,
12,
11272,
2
] |
|
pq.addNode(new DefaultPersistentHeapNode(-5, new DefaultPersistentKey(-5)));
|
pq.addNode(new DefaultHeapNode<Integer, Integer>(65, 65)); System.out.println("ADD " + 65); System.out.println(pq); pq.addNode(new DefaultHeapNode<Integer, Integer>(-5, -5)); System.out.println("ADD " + (-5)); System.out.println(pq);
|
public static void main(String[] args) { PersistentHeap pq = new PersistentHeap("pqtest", 372, 372 * 3, new DefaultPersistentHeapNode(5, new DefaultPersistentKey(5))); pq.addNode(new DefaultPersistentHeapNode(7, new DefaultPersistentKey(7)));// System.out.println(7);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(2, new DefaultPersistentKey(2)));// System.out.println(2);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(9, new DefaultPersistentKey(9)));// System.out.println(9);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(6, new DefaultPersistentKey(6)));// System.out.println(6);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(3, new DefaultPersistentKey(3)));// System.out.println(3);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(8, new DefaultPersistentKey(8)));// System.out.println(8);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(12, new DefaultPersistentKey(12)));// System.out.println(12);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(10, new DefaultPersistentKey(10)));// System.out.println(10);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(14, new DefaultPersistentKey(14)));// System.out.println(14);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(11, new DefaultPersistentKey(11)));// System.out.println(11);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(1, new DefaultPersistentKey(1)));// System.out.println(1);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(18, new DefaultPersistentKey(18)));// System.out.println(18);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(4, new DefaultPersistentKey(4)));// System.out.println(4);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(21, new DefaultPersistentKey(21)));// System.out.println(21);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(28, new DefaultPersistentKey(28)));// System.out.println(28);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(-3, new DefaultPersistentKey(-3)));// System.out.println(-3);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(65, new DefaultPersistentKey(65)));// System.out.println("add 65");// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(-5, new DefaultPersistentKey(-5)));// System.out.println("add -5");// System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(-5, new DefaultPersistentKey(-5))); System.out.println("add -5"); System.out.println(pq); System.out.println(pq.getIOAccess()); }
|
5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/17e0a555a410337c1b14a8bebe3bd4840afbdfb7/PersistentHeap.java/buggy/src/de/lmu/ifi/dbs/utilities/heap/PersistentHeap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
565,
11049,
15648,
14619,
273,
394,
11049,
15648,
2932,
84,
85,
3813,
3113,
890,
9060,
16,
890,
9060,
380,
890,
16,
394,
2989,
11906,
15648,
907,
12,
25,
16,
394,
2989,
11906,
653,
12,
25,
3719,
1769,
565,
14619,
18,
1289,
907,
12,
2704,
2989,
11906,
15648,
907,
12,
27,
16,
394,
2989,
11906,
653,
12,
27,
3719,
1769,
759,
565,
2332,
18,
659,
18,
8222,
12,
27,
1769,
759,
565,
2332,
18,
659,
18,
8222,
12,
84,
85,
1769,
565,
14619,
18,
1289,
907,
12,
2704,
2989,
11906,
15648,
907,
12,
22,
16,
394,
2989,
11906,
653,
12,
22,
3719,
1769,
759,
565,
2332,
18,
659,
18,
8222,
12,
22,
1769,
759,
565,
2332,
18,
659,
18,
8222,
12,
84,
85,
1769,
565,
14619,
18,
1289,
907,
12,
2704,
2989,
11906,
15648,
907,
12,
29,
16,
394,
2989,
11906,
653,
12,
29,
3719,
1769,
759,
565,
2332,
18,
659,
18,
8222,
12,
29,
1769,
759,
565,
2332,
18,
659,
18,
8222,
12,
84,
85,
1769,
565,
14619,
18,
1289,
907,
12,
2704,
2989,
11906,
15648,
907,
12,
26,
16,
394,
2989,
11906,
653,
12,
26,
3719,
1769,
759,
565,
2332,
18,
659,
18,
8222,
12,
26,
1769,
759,
565,
2332,
18,
659,
18,
8222,
12,
84,
85,
1769,
565,
14619,
18,
1289,
907,
12,
2704,
2989,
11906,
15648,
907,
12,
23,
16,
394,
2989,
11906,
653,
12,
23,
3719,
1769,
759,
565,
2332,
18,
659,
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,
288,
565,
11049,
15648,
14619,
273,
394,
11049,
15648,
2932,
84,
85,
3813,
3113,
890,
9060,
16,
890,
9060,
380,
890,
16,
394,
2989,
11906,
15648,
907,
12,
25,
16,
394,
2989,
11906,
653,
12,
25,
3719,
1769,
565,
14619,
18,
1289,
907,
12,
2704,
2989,
11906,
15648,
907,
12,
27,
16,
394,
2989,
11906,
653,
12,
27,
3719,
1769,
759,
565,
2332,
18,
659,
18,
8222,
12,
27,
1769,
759,
565,
2332,
18,
659,
18,
8222,
12,
84,
85,
1769,
565,
14619,
18,
1289,
907,
12,
2704,
2989,
11906,
15648,
907,
12,
22,
16,
394,
2989,
11906,
653,
12,
22,
3719,
1769,
759,
565,
2332,
18,
659,
18,
2
] |
Thread thread = new Thread(handlers[looper], "nioWriteHandlerThread");
|
Thread thread = new Thread(tg, handlers[looper], "nioWriteHandlerThread");
|
private static WriteHandler[] create(int workerThreads) { WriteHandler[] handlers = new WriteHandler[workerThreads]; for (int looper = 0; looper < workerThreads; looper++) { handlers[looper] = new WriteHandler(); Thread thread = new Thread(handlers[looper], "nioWriteHandlerThread"); thread.setDaemon(true); thread.start(); } return handlers; }
|
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/820cff78bb2b2f435c6dccaa33a34c8147be04f6/ConnectionTableNIO.java/clean/src/org/jgroups/blocks/ConnectionTableNIO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
3238,
760,
2598,
1503,
8526,
752,
12,
474,
4322,
13233,
13,
1377,
288,
540,
2598,
1503,
8526,
4919,
273,
394,
2598,
1503,
63,
10124,
13233,
15533,
540,
364,
261,
474,
437,
4063,
273,
374,
31,
437,
4063,
411,
4322,
13233,
31,
437,
4063,
27245,
540,
288,
5411,
4919,
63,
383,
4063,
65,
273,
394,
2598,
1503,
5621,
5411,
4884,
2650,
273,
394,
4884,
12,
88,
75,
16,
4919,
63,
383,
4063,
6487,
315,
82,
1594,
3067,
1503,
3830,
8863,
5411,
2650,
18,
542,
12858,
12,
3767,
1769,
5411,
2650,
18,
1937,
5621,
540,
289,
540,
327,
4919,
31,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
3238,
760,
2598,
1503,
8526,
752,
12,
474,
4322,
13233,
13,
1377,
288,
540,
2598,
1503,
8526,
4919,
273,
394,
2598,
1503,
63,
10124,
13233,
15533,
540,
364,
261,
474,
437,
4063,
273,
374,
31,
437,
4063,
411,
4322,
13233,
31,
437,
4063,
27245,
540,
288,
5411,
4919,
63,
383,
4063,
65,
273,
394,
2598,
1503,
5621,
5411,
4884,
2650,
273,
394,
4884,
12,
88,
75,
16,
4919,
63,
383,
4063,
6487,
315,
82,
1594,
3067,
1503,
3830,
8863,
5411,
2650,
18,
542,
12858,
12,
3767,
1769,
5411,
2650,
18,
1937,
5621,
540,
289,
540,
327,
4919,
31,
1377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public CallbackMethod(Callback callback) {
|
public CallbackMethod(Callback callback, Visibility visibility) { super(visibility);
|
public CallbackMethod(Callback callback) { this.callback = callback; }
|
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/f05423516c2d1bfe54c4363eedb9654f7cfb6898/CallbackMethod.java/buggy/org/jruby/internal/runtime/methods/CallbackMethod.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8444,
1305,
12,
2428,
1348,
16,
27791,
9478,
13,
288,
2240,
12,
14422,
1769,
3639,
333,
18,
3394,
273,
1348,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8444,
1305,
12,
2428,
1348,
16,
27791,
9478,
13,
288,
2240,
12,
14422,
1769,
3639,
333,
18,
3394,
273,
1348,
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
] |
catch (IOException e)
|
catch ( IOException e )
|
protected void execute() throws ArchiverException, IOException { TarInputStream tis = null; try { getLogger().info( "Expanding: " + getSourceFile() + " into " + getDestDirectory() ); tis = new TarInputStream( compression.decompress( getSourceFile(), new BufferedInputStream( new FileInputStream( getSourceFile() ) ) ) ); TarEntry te = null; while ( ( te = tis.getNextEntry() ) != null ) { extractFile( getSourceFile(), getDestDirectory(), tis, te.getName(), te.getModTime(), te.isDirectory()); } getLogger().debug( "expand complete" ); } catch ( IOException ioe ) { throw new ArchiverException( "Error while expanding " + getSourceFile().getAbsolutePath(), ioe ); } finally { if ( tis != null ) { try { tis.close(); } catch (IOException e) { // ignore } } } }
|
55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/4da7a225ba9c01ca94805923e06e3fb2d46bf201/TarUnArchiver.java/buggy/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/tar/TarUnArchiver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1836,
1435,
1216,
16959,
1667,
503,
16,
1860,
565,
288,
3639,
20334,
4348,
268,
291,
273,
446,
31,
3639,
775,
3639,
288,
5411,
7156,
7675,
1376,
12,
315,
12271,
310,
30,
315,
397,
7889,
812,
1435,
397,
315,
1368,
315,
397,
2343,
395,
2853,
1435,
11272,
5411,
268,
291,
273,
394,
20334,
4348,
12,
9154,
18,
323,
14706,
12,
7889,
812,
9334,
10792,
394,
24742,
12,
394,
11907,
12,
7889,
812,
1435,
262,
262,
262,
11272,
5411,
20334,
1622,
6489,
273,
446,
31,
5411,
1323,
261,
261,
6489,
273,
268,
291,
18,
588,
2134,
1622,
1435,
262,
480,
446,
262,
5411,
288,
7734,
2608,
812,
12,
7889,
812,
9334,
2343,
395,
2853,
9334,
268,
291,
16,
6489,
18,
17994,
9334,
6489,
18,
588,
1739,
950,
9334,
6489,
18,
291,
2853,
10663,
5411,
289,
5411,
7156,
7675,
4148,
12,
315,
12320,
3912,
6,
11272,
3639,
289,
3639,
1044,
261,
1860,
10847,
262,
3639,
288,
5411,
604,
394,
16959,
1667,
503,
12,
315,
668,
1323,
31283,
315,
397,
7889,
812,
7675,
588,
10368,
743,
9334,
10847,
11272,
3639,
289,
3639,
3095,
3639,
288,
5411,
309,
261,
268,
291,
480,
446,
262,
5411,
288,
7734,
775,
7734,
288,
10792,
268,
291,
18,
4412,
5621,
7734,
289,
7734,
1044,
261,
1860,
425,
262,
7734,
288,
10792,
368,
2305,
7734,
289,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1836,
1435,
1216,
16959,
1667,
503,
16,
1860,
565,
288,
3639,
20334,
4348,
268,
291,
273,
446,
31,
3639,
775,
3639,
288,
5411,
7156,
7675,
1376,
12,
315,
12271,
310,
30,
315,
397,
7889,
812,
1435,
397,
315,
1368,
315,
397,
2343,
395,
2853,
1435,
11272,
5411,
268,
291,
273,
394,
20334,
4348,
12,
9154,
18,
323,
14706,
12,
7889,
812,
9334,
10792,
394,
24742,
12,
394,
11907,
12,
7889,
812,
1435,
262,
262,
262,
11272,
5411,
20334,
1622,
6489,
273,
446,
31,
5411,
1323,
261,
261,
6489,
273,
268,
291,
18,
588,
2134,
1622,
1435,
262,
480,
446,
262,
5411,
288,
7734,
2608,
812,
12,
7889,
812,
9334,
2343,
395,
2853,
9334,
268,
291,
16,
2
] |
System.out.println("struct link { int i; int j; struct link * next} *"); parser.parse("struct link { int i; int j; struct link * next} *");
|
System.out.println("struct link { int i; int j; struct link * next} *"); parser.parse("struct link { int i; int j; struct link * next} *");
|
public static void main(String[] args) { GDBTypeParser parser = new GDBTypeParser(); System.out.println("struct link { int i; int j; struct link * next} *"); parser.parse("struct link { int i; int j; struct link * next} *"); System.out.println(parser.getGDBType().verbose()); System.out.println("char **argv"); parser.parse("unsigned long long int **argv"); System.out.println(parser.getGDBType().verbose()); System.out.println("int (*daytab)[13]"); parser.parse("int (*daytab)[13]"); System.out.println(parser.getGDBType().verbose()); System.out.println("int *daytab[13]"); parser.parse("int *daytab[13]"); System.out.println(parser.getGDBType().verbose()); System.out.println("void *comp()"); parser.parse("void *comp()"); System.out.println(parser.getGDBType().verbose()); System.out.println("void (*comp)()"); parser.parse("void (*comp)()"); System.out.println(parser.getGDBType().verbose()); System.out.println("int (*func[15])()"); parser.parse("int (*func[15])()"); System.out.println(parser.getGDBType().verbose()); System.out.println("char (*(*x())[])()"); parser.parse("char (*(*x())[])()"); System.out.println(parser.getGDBType().verbose()); System.out.println("char (*(*x[3])())[5]"); parser.parse("char (*(*x[3])())[5]"); System.out.println(parser.getGDBType().verbose()); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f3a9fae6384fd8bb36474b1661bb6d0b65b38d5f/GDBTypeParser.java/buggy/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
202,
202,
43,
2290,
559,
2678,
2082,
273,
394,
611,
2290,
559,
2678,
5621,
202,
202,
3163,
18,
659,
18,
8222,
2932,
1697,
1692,
288,
509,
277,
31,
509,
525,
31,
1958,
1692,
380,
1024,
97,
380,
8863,
202,
202,
4288,
18,
2670,
2932,
1697,
1692,
288,
509,
277,
31,
509,
525,
31,
1958,
1692,
380,
1024,
97,
380,
8863,
202,
202,
3163,
18,
659,
18,
8222,
12,
4288,
18,
588,
43,
2290,
559,
7675,
11369,
10663,
202,
202,
3163,
18,
659,
18,
8222,
2932,
3001,
2826,
19485,
8863,
202,
202,
4288,
18,
2670,
2932,
22297,
1525,
1525,
509,
2826,
19485,
8863,
202,
202,
3163,
18,
659,
18,
8222,
12,
4288,
18,
588,
43,
2290,
559,
7675,
11369,
10663,
202,
202,
3163,
18,
659,
18,
8222,
2932,
474,
261,
14,
2881,
7032,
25146,
3437,
4279,
1769,
202,
202,
4288,
18,
2670,
2932,
474,
261,
14,
2881,
7032,
25146,
3437,
4279,
1769,
202,
202,
3163,
18,
659,
18,
8222,
12,
4288,
18,
588,
43,
2290,
559,
7675,
11369,
10663,
202,
202,
3163,
18,
659,
18,
8222,
2932,
474,
380,
2881,
7032,
63,
3437,
4279,
1769,
202,
202,
4288,
18,
2670,
2932,
474,
380,
2881,
7032,
63,
3437,
4279,
1769,
202,
202,
3163,
18,
659,
18,
8222,
12,
4288,
18,
588,
43,
2290,
559,
7675,
11369,
10663,
202,
202,
3163,
18,
659,
18,
8222,
2932,
6459,
380,
2919,
1435,
8863,
202,
202,
4288,
18,
2670,
2932,
6459,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
202,
202,
43,
2290,
559,
2678,
2082,
273,
394,
611,
2290,
559,
2678,
5621,
202,
202,
3163,
18,
659,
18,
8222,
2932,
1697,
1692,
288,
509,
277,
31,
509,
525,
31,
1958,
1692,
380,
1024,
97,
380,
8863,
202,
202,
4288,
18,
2670,
2932,
1697,
1692,
288,
509,
277,
31,
509,
525,
31,
1958,
1692,
380,
1024,
97,
380,
8863,
202,
202,
3163,
18,
659,
18,
8222,
12,
4288,
18,
588,
43,
2290,
559,
7675,
11369,
10663,
202,
202,
3163,
18,
659,
18,
8222,
2932,
3001,
2826,
19485,
8863,
202,
202,
4288,
18,
2670,
2932,
22297,
1525,
1525,
509,
2826,
19485,
8863,
202,
202,
3163,
18,
659,
2
] |
private MavenProject processProjectLogic( String pomLocation, MavenProject project, List remoteRepositories, List externalProfiles )
|
private MavenProject processProjectLogic( String pomLocation, MavenProject project, List remoteRepositories, ProfileManager profileMgr )
|
private MavenProject processProjectLogic( String pomLocation, MavenProject project, List remoteRepositories, List externalProfiles ) throws ProjectBuildingException, ModelInterpolationException { Model model = project.getModel(); String key = createCacheKey( model.getGroupId(), model.getArtifactId(), model.getVersion() ); Model cachedModel = (Model) modelCache.get( key ); if ( cachedModel == null ) { modelCache.put( key, model ); } List activeProfiles = new ArrayList( externalProfiles ); List activePomProfiles = profileActivationCalculator.calculateActiveProfiles( model.getProfiles() ); activeProfiles.addAll( activePomProfiles ); Properties profileProperties = new Properties(); for ( Iterator it = activeProfiles.iterator(); it.hasNext(); ) { Profile profile = (Profile) it.next(); profileInjector.inject( profile, model ); profileProperties.putAll( profile.getProperties() ); } // TODO: Clean this up...we're using this to 'jump' the interpolation step for model properties not expressed in XML. model = modelInterpolator.interpolate( model ); // interpolation is before injection, because interpolation is off-limits in the injected variables modelDefaultsInjector.injectDefaults( model ); MavenProject parentProject = project.getParent(); Model originalModel = project.getOriginalModel(); //======================================================================= // // WATCH OUT FOR THIS LINE! in-project is NOT the same as out-project!!! // //======================================================================= project = new MavenProject( model ); project.addProfileProperties( profileProperties ); project.setActiveProfiles( activeProfiles ); project.setOriginalModel( originalModel ); // TODO: maybe not strictly correct, while we should enfore that packaging has a type handler of the same id, we don't Artifact projectArtifact = artifactFactory.createBuildArtifact( project.getGroupId(), project.getArtifactId(), project.getVersion(), project.getPackaging() ); project.setArtifact( projectArtifact ); project.setPluginArtifactRepositories( ProjectUtils.buildArtifactRepositories( model.getPluginRepositories(), artifactRepositoryFactory, container ) ); DistributionManagement dm = model.getDistributionManagement(); if ( dm != null ) { ArtifactRepository repo = ProjectUtils.buildArtifactRepositoryBase( dm.getRepository(), artifactRepositoryFactory, container ); project.setReleaseArtifactRepository( repo ); if ( dm.getSnapshotRepository() != null ) { repo = ProjectUtils.buildArtifactRepositoryBase( dm.getSnapshotRepository(), artifactRepositoryFactory, container ); project.setSnapshotArtifactRepository( repo ); } } project.setParent( parentProject ); if ( parentProject != null ) { Artifact parentArtifact = artifactFactory.createParentArtifact( parentProject.getGroupId(), parentProject.getArtifactId(), parentProject.getVersion() ); project.setParentArtifact( parentArtifact ); } // Must validate before artifact construction to make sure dependencies are good ModelValidationResult validationResult = validator.validate( model ); if ( validationResult.getMessageCount() > 0 ) { throw new ProjectBuildingException( "Failed to validate POM for \'" + pomLocation + "\'.\n\n Reason(s):\n" + validationResult.render( " " ) ); } project.setRemoteArtifactRepositories( remoteRepositories ); project.setPluginArtifacts( createPluginArtifacts( project.getBuildPlugins() ) ); project.setReportArtifacts( createReportArtifacts( project.getReportPlugins() ) ); project.setExtensionArtifacts( createExtensionArtifacts( project.getBuildExtensions() ) ); return project; }
|
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/fe5a91b0d626193d59db343dd9d5e582d0ef289b/DefaultMavenProjectBuilder.java/clean/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
17176,
4109,
1207,
4109,
20556,
12,
514,
21400,
2735,
16,
17176,
4109,
1984,
16,
987,
2632,
18429,
16,
4766,
2868,
987,
3903,
12450,
262,
3639,
1216,
5420,
16713,
503,
16,
3164,
15665,
29304,
565,
288,
3639,
3164,
938,
273,
1984,
18,
588,
1488,
5621,
3639,
514,
498,
273,
752,
15554,
12,
938,
18,
588,
8722,
9334,
938,
18,
588,
7581,
548,
9334,
938,
18,
588,
1444,
1435,
11272,
3639,
3164,
3472,
1488,
273,
261,
1488,
13,
938,
1649,
18,
588,
12,
498,
11272,
3639,
309,
261,
3472,
1488,
422,
446,
262,
3639,
288,
5411,
938,
1649,
18,
458,
12,
498,
16,
938,
11272,
3639,
289,
3639,
987,
2695,
12450,
273,
394,
2407,
12,
3903,
12450,
11272,
3639,
987,
2695,
52,
362,
12450,
273,
3042,
14857,
19278,
18,
11162,
3896,
12450,
12,
938,
18,
588,
12450,
1435,
11272,
3639,
2695,
12450,
18,
1289,
1595,
12,
2695,
52,
362,
12450,
11272,
3639,
6183,
3042,
2297,
273,
394,
6183,
5621,
3639,
364,
261,
4498,
518,
273,
2695,
12450,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
3639,
288,
5411,
11357,
3042,
273,
261,
4029,
13,
518,
18,
4285,
5621,
5411,
3042,
19210,
18,
22170,
12,
3042,
16,
938,
11272,
5411,
3042,
2297,
18,
458,
1595,
12,
3042,
18,
588,
2297,
1435,
11272,
3639,
289,
3639,
368,
2660,
30,
9645,
333,
731,
2777,
1814,
4565,
1450,
333,
358,
296,
24574,
11,
326,
12851,
2235,
364,
938,
1790,
486,
26863,
316,
3167,
18,
3639,
938,
273,
938,
15665,
639,
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,
17176,
4109,
1207,
4109,
20556,
12,
514,
21400,
2735,
16,
17176,
4109,
1984,
16,
987,
2632,
18429,
16,
4766,
2868,
987,
3903,
12450,
262,
3639,
1216,
5420,
16713,
503,
16,
3164,
15665,
29304,
565,
288,
3639,
3164,
938,
273,
1984,
18,
588,
1488,
5621,
3639,
514,
498,
273,
752,
15554,
12,
938,
18,
588,
8722,
9334,
938,
18,
588,
7581,
548,
9334,
938,
18,
588,
1444,
1435,
11272,
3639,
3164,
3472,
1488,
273,
261,
1488,
13,
938,
1649,
18,
588,
12,
498,
11272,
3639,
309,
261,
3472,
1488,
422,
446,
262,
3639,
288,
5411,
938,
1649,
18,
458,
12,
498,
16,
938,
11272,
3639,
289,
3639,
987,
2695,
12450,
273,
394,
2407,
12,
3903,
12450,
11272,
3639,
2
] |
if ((protoProp instanceof Scriptable) && (protoProp != Undefined.instance)) { try { protoProp = ((FlattenedObject)protoProp).getObject(); return ScriptRuntime.jsDelegatesTo(instance, (Scriptable)protoProp); } catch (ClassCastException e) { }
|
if (protoProp instanceof FlattenedObject) { protoProp = ((FlattenedObject)protoProp).getObject(); if (protoProp != Undefined.instance) return ScriptRuntime.jsDelegatesTo(instance, (Scriptable)protoProp);
|
public boolean hasInstance(Scriptable instance) { FlattenedObject flat = new FlattenedObject(this); Object protoProp = flat.getProperty("prototype"); if ((protoProp instanceof Scriptable) && (protoProp != Undefined.instance)) { try { protoProp = ((FlattenedObject)protoProp).getObject(); return ScriptRuntime.jsDelegatesTo(instance, (Scriptable)protoProp); } catch (ClassCastException e) { } } Object[] args = { names[0] }; throw NativeGlobal.constructError( Context.getContext(), "TypeError", ScriptRuntime.getMessage("msg.instanceof.bad.prototype", args), instance); }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/33535e3b14b3b19bde53f39af1ce0c3a20a5e4a4/NativeFunction.java/buggy/js/rhino/src/org/mozilla/javascript/NativeFunction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
1442,
12,
3651,
429,
791,
13,
288,
3639,
24226,
23016,
3569,
273,
394,
24226,
23016,
12,
2211,
1769,
3639,
1033,
3760,
4658,
273,
3569,
18,
588,
1396,
2932,
18541,
8863,
7734,
309,
14015,
9393,
4658,
1276,
22780,
13,
1171,
597,
261,
9393,
4658,
480,
22243,
18,
1336,
3719,
288,
5411,
775,
288,
7734,
3760,
4658,
273,
14015,
20237,
23016,
13,
9393,
4658,
2934,
588,
921,
5621,
7734,
327,
7739,
5576,
18,
2924,
15608,
815,
774,
12,
1336,
16,
261,
3651,
429,
13,
9393,
4658,
1769,
5411,
289,
1044,
261,
797,
22768,
425,
13,
288,
289,
3639,
289,
3639,
1033,
8526,
833,
273,
288,
1257,
63,
20,
65,
289,
31,
3639,
604,
16717,
5160,
18,
10062,
668,
12,
10792,
1772,
18,
29120,
9334,
315,
19030,
3113,
10792,
7739,
5576,
18,
24906,
2932,
3576,
18,
1336,
792,
18,
8759,
18,
18541,
3113,
833,
3631,
10792,
791,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
1442,
12,
3651,
429,
791,
13,
288,
3639,
24226,
23016,
3569,
273,
394,
24226,
23016,
12,
2211,
1769,
3639,
1033,
3760,
4658,
273,
3569,
18,
588,
1396,
2932,
18541,
8863,
7734,
309,
14015,
9393,
4658,
1276,
22780,
13,
1171,
597,
261,
9393,
4658,
480,
22243,
18,
1336,
3719,
288,
5411,
775,
288,
7734,
3760,
4658,
273,
14015,
20237,
23016,
13,
9393,
4658,
2934,
588,
921,
5621,
7734,
327,
7739,
5576,
18,
2924,
15608,
815,
774,
12,
1336,
16,
261,
3651,
429,
13,
9393,
4658,
1769,
5411,
289,
1044,
261,
797,
22768,
425,
13,
288,
289,
3639,
289,
3639,
1033,
8526,
833,
273,
288,
1257,
63,
20,
65,
289,
31,
3639,
604,
16717,
5160,
18,
10062,
2
] |
J2EEModuleCreationOperationOld createProjectCreationOperation(J2EEModuleCreationDataModelOld dataModel);
|
J2EEComponentCreationOperation createProjectCreationOperation(J2EEComponentCreationDataModel dataModel);
|
J2EEModuleCreationOperationOld createProjectCreationOperation(J2EEModuleCreationDataModelOld dataModel);
|
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/6341dfb449367626e401b6a9953dd664eaa3def4/EarModuleExtension.java/clean/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/internal/moduleextension/EarModuleExtension.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
46,
22,
9383,
3120,
9906,
2988,
7617,
752,
4109,
9906,
2988,
12,
46,
22,
9383,
3120,
9906,
26349,
7617,
27600,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
46,
22,
9383,
3120,
9906,
2988,
7617,
752,
4109,
9906,
2988,
12,
46,
22,
9383,
3120,
9906,
26349,
7617,
27600,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String result = null; if (part != null && part instanceof IWorkbenchPart2) { IWorkbenchPart2 part2 = (IWorkbenchPart2)part; result = part2.getContentDescription(); } if (contentDescription != null) { result = contentDescription; } return Util.safeString(result);
|
return Util.safeString(contentDescription);
|
public String getContentDescription() { String result = null; if (part != null && part instanceof IWorkbenchPart2) { IWorkbenchPart2 part2 = (IWorkbenchPart2)part; result = part2.getContentDescription(); } if (contentDescription != null) { result = contentDescription; } return Util.safeString(result); //$NON-NLS-1$ }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/de079ab96737361d5d75a0187a9cf4701530d4cc/WorkbenchPartReference.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPartReference.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
5154,
3291,
1435,
288,
202,
202,
780,
563,
273,
446,
31,
9506,
202,
430,
261,
2680,
480,
446,
597,
1087,
1276,
467,
2421,
22144,
1988,
22,
13,
288,
1082,
202,
45,
2421,
22144,
1988,
22,
1087,
22,
273,
261,
45,
2421,
22144,
1988,
22,
13,
2680,
31,
25083,
202,
2088,
273,
1087,
22,
18,
588,
1350,
3291,
5621,
202,
202,
97,
309,
261,
1745,
3291,
480,
446,
13,
288,
1082,
202,
2088,
273,
913,
3291,
31,
202,
202,
97,
9506,
202,
2463,
3564,
18,
4626,
780,
12,
2088,
1769,
1082,
4329,
3993,
17,
5106,
17,
21,
8,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
5154,
3291,
1435,
288,
202,
202,
780,
563,
273,
446,
31,
9506,
202,
430,
261,
2680,
480,
446,
597,
1087,
1276,
467,
2421,
22144,
1988,
22,
13,
288,
1082,
202,
45,
2421,
22144,
1988,
22,
1087,
22,
273,
261,
45,
2421,
22144,
1988,
22,
13,
2680,
31,
25083,
202,
2088,
273,
1087,
22,
18,
588,
1350,
3291,
5621,
202,
202,
97,
309,
261,
1745,
3291,
480,
446,
13,
288,
1082,
202,
2088,
273,
913,
3291,
31,
202,
202,
97,
9506,
202,
2463,
3564,
18,
4626,
780,
12,
2088,
1769,
1082,
4329,
3993,
17,
5106,
17,
21,
8,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
result = 4;
|
return 4;
|
public static int getConversionWeight(Object fromObj, Class to) { int fromCode = getJSTypeCode(fromObj); int result = CONVERSION_NONE; switch (fromCode) { case JSTYPE_UNDEFINED: if (to == ScriptRuntime.StringClass || to == ScriptRuntime.ObjectClass) { result = 1; } break; case JSTYPE_NULL: if (!to.isPrimitive()) { result = 1; } break; case JSTYPE_BOOLEAN: // "boolean" is #1 if (to == Boolean.TYPE) { result = 1; } else if (to == ScriptRuntime.BooleanClass) { result = 2; } else if (to == ScriptRuntime.ObjectClass) { result = 3; } else if (to == ScriptRuntime.StringClass) { result = 4; } break; case JSTYPE_NUMBER: if (to.isPrimitive()) { if (to == Double.TYPE) { result = 1; } else if (to != Boolean.TYPE) { result = 1 + getSizeRank(to); } } else { if (to == ScriptRuntime.StringClass) { // native numbers are #1-8 result = 9; } else if (to == ScriptRuntime.ObjectClass) { result = 10; } else if (ScriptRuntime.NumberClass.isAssignableFrom(to)) { // "double" is #1 result = 2; } } break; case JSTYPE_STRING: if (to == ScriptRuntime.StringClass) { result = 1; } else if (to.isInstance(fromObj)) { result = 2; } else if (to.isPrimitive()) { if (to == Character.TYPE) { result = 3; } else if (to != Boolean.TYPE) { result = 4; } } break; case JSTYPE_JAVA_CLASS: if (to == ScriptRuntime.ClassClass) { result = 1; } else if (to == ScriptRuntime.ObjectClass) { result = 3; } else if (to == ScriptRuntime.StringClass) { result = 4; } break; case JSTYPE_JAVA_OBJECT: case JSTYPE_JAVA_ARRAY: if (to == ScriptRuntime.StringClass) { result = 2; } else if (to.isPrimitive() && to != Boolean.TYPE) { result = (fromCode == JSTYPE_JAVA_ARRAY) ? CONVERSION_NONTRIVIAL : 2 + getSizeRank(to); } else { Object javaObj = fromObj; if (javaObj instanceof Wrapper) { javaObj = ((Wrapper)javaObj).unwrap(); } if (to.isInstance(javaObj)) { result = CONVERSION_NONTRIVIAL; } } break; case JSTYPE_OBJECT: // Other objects takes #1-#3 spots if (to.isArray()) { if (fromObj instanceof NativeArray) { // This is a native array conversion to a java array // Array conversions are all equal, and preferable to object // and string conversion, per LC3. result = 1; } } else if (to == ScriptRuntime.ObjectClass) { result = 2; } else if (to == ScriptRuntime.StringClass) { result = 3; } else if (to == ScriptRuntime.DateClass) { if (fromObj instanceof NativeDate) { // This is a native date to java date conversion result = 1; } } else if (to.isPrimitive() || to != Boolean.TYPE) { result = 3 + getSizeRank(to); } break; } return result; }
|
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/11eddf0c611b2537267e99835d22096964c80528/NativeJavaObject.java/buggy/src/org/mozilla/javascript/NativeJavaObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
336,
6814,
6544,
12,
921,
628,
2675,
16,
1659,
358,
13,
288,
3639,
509,
628,
1085,
273,
30257,
15460,
12,
2080,
2675,
1769,
3639,
509,
563,
273,
3492,
5757,
67,
9826,
31,
3639,
1620,
261,
2080,
1085,
13,
288,
3639,
648,
804,
882,
1738,
67,
2124,
15544,
30,
5411,
309,
261,
869,
422,
7739,
5576,
18,
780,
797,
747,
7734,
358,
422,
7739,
5576,
18,
921,
797,
13,
288,
7734,
563,
273,
404,
31,
5411,
289,
5411,
898,
31,
3639,
648,
804,
882,
1738,
67,
8560,
30,
5411,
309,
16051,
869,
18,
291,
9840,
10756,
288,
7734,
563,
273,
404,
31,
5411,
289,
5411,
898,
31,
3639,
648,
804,
882,
1738,
67,
17900,
30,
5411,
368,
315,
6494,
6,
353,
468,
21,
5411,
309,
261,
869,
422,
3411,
18,
2399,
13,
288,
7734,
563,
273,
404,
31,
5411,
289,
5411,
469,
309,
261,
869,
422,
7739,
5576,
18,
5507,
797,
13,
288,
7734,
563,
273,
576,
31,
5411,
289,
5411,
469,
309,
261,
869,
422,
7739,
5576,
18,
921,
797,
13,
288,
7734,
563,
273,
890,
31,
5411,
289,
5411,
469,
309,
261,
869,
422,
7739,
5576,
18,
780,
797,
13,
288,
7734,
327,
1059,
31,
5411,
289,
5411,
898,
31,
3639,
648,
804,
882,
1738,
67,
9931,
30,
5411,
309,
261,
869,
18,
291,
9840,
10756,
288,
7734,
309,
261,
869,
422,
3698,
18,
2399,
13,
288,
10792,
563,
273,
404,
31,
7734,
289,
7734,
469,
309,
261,
869,
480,
3411,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
336,
6814,
6544,
12,
921,
628,
2675,
16,
1659,
358,
13,
288,
3639,
509,
628,
1085,
273,
30257,
15460,
12,
2080,
2675,
1769,
3639,
509,
563,
273,
3492,
5757,
67,
9826,
31,
3639,
1620,
261,
2080,
1085,
13,
288,
3639,
648,
804,
882,
1738,
67,
2124,
15544,
30,
5411,
309,
261,
869,
422,
7739,
5576,
18,
780,
797,
747,
7734,
358,
422,
7739,
5576,
18,
921,
797,
13,
288,
7734,
563,
273,
404,
31,
5411,
289,
5411,
898,
31,
3639,
648,
804,
882,
1738,
67,
8560,
30,
5411,
309,
16051,
869,
18,
291,
9840,
10756,
288,
7734,
563,
273,
404,
31,
5411,
289,
5411,
898,
31,
3639,
648,
804,
882,
1738,
67,
17900,
30,
5411,
2
] |
public BackingStoreHashtable( TransactionController tc, RowSource row_source, int[] key_column_numbers, boolean remove_duplicates, long estimated_rowcnt, long max_inmemory_rowcnt, int initialCapacity, float loadFactor, boolean skipNullKeyColumns, boolean keepAfterCommit) throws StandardException { this.key_column_numbers = key_column_numbers; this.remove_duplicates = remove_duplicates; this.row_source = row_source; this.skipNullKeyColumns = skipNullKeyColumns; this.max_inmemory_rowcnt = max_inmemory_rowcnt; if( max_inmemory_rowcnt > 0) max_inmemory_size = Long.MAX_VALUE; else max_inmemory_size = Runtime.getRuntime().totalMemory()/100; this.tc = tc; this.keepAfterCommit = keepAfterCommit; Object[] row; if (initialCapacity != -1) { hash_table = ((loadFactor == -1) ? new Hashtable(initialCapacity) : new Hashtable(initialCapacity, loadFactor)); } else { hash_table = ((estimated_rowcnt <= 0) ? new Hashtable() : new Hashtable((int) estimated_rowcnt)); } if (row_source != null) { boolean needsToClone = row_source.needsToClone(); while ((row = getNextRowFromRowSource()) != null) { if (needsToClone) { row = cloneRow(row); } Object key = KeyHasher.buildHashKey(row, key_column_numbers); add_row_to_hash_table(hash_table, key, row); } } }
|
private BackingStoreHashtable(){}
|
public BackingStoreHashtable( TransactionController tc, RowSource row_source, int[] key_column_numbers, boolean remove_duplicates, long estimated_rowcnt, long max_inmemory_rowcnt, int initialCapacity, float loadFactor, boolean skipNullKeyColumns, boolean keepAfterCommit) throws StandardException { this.key_column_numbers = key_column_numbers; this.remove_duplicates = remove_duplicates; this.row_source = row_source; this.skipNullKeyColumns = skipNullKeyColumns; this.max_inmemory_rowcnt = max_inmemory_rowcnt; if( max_inmemory_rowcnt > 0) max_inmemory_size = Long.MAX_VALUE; else max_inmemory_size = Runtime.getRuntime().totalMemory()/100; this.tc = tc; this.keepAfterCommit = keepAfterCommit; Object[] row; // use passed in capacity and loadfactor if not -1, you must specify // capacity if you want to specify loadfactor. if (initialCapacity != -1) { hash_table = ((loadFactor == -1) ? new Hashtable(initialCapacity) : new Hashtable(initialCapacity, loadFactor)); } else { hash_table = ((estimated_rowcnt <= 0) ? new Hashtable() : new Hashtable((int) estimated_rowcnt)); } if (row_source != null) { boolean needsToClone = row_source.needsToClone(); while ((row = getNextRowFromRowSource()) != null) { if (needsToClone) { row = cloneRow(row); } Object key = KeyHasher.buildHashKey(row, key_column_numbers); add_row_to_hash_table(hash_table, key, row); } } }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/aaea35714b16a9df552eb9d0d624d9404763f92e/BackingStoreHashtable.java/clean/java/engine/org/apache/derby/iapi/store/access/BackingStoreHashtable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4297,
310,
2257,
5582,
14544,
12,
565,
5947,
2933,
282,
1715,
16,
565,
6556,
1830,
9079,
1027,
67,
3168,
16,
565,
509,
8526,
10402,
498,
67,
2827,
67,
13851,
16,
565,
1250,
1171,
1206,
67,
22449,
16,
565,
1525,
10792,
13137,
67,
492,
13085,
16,
565,
1525,
10792,
943,
67,
267,
7858,
67,
492,
13085,
16,
565,
509,
5397,
2172,
7437,
16,
565,
1431,
10402,
1262,
6837,
16,
202,
6494,
6862,
202,
7457,
2041,
653,
3380,
16,
565,
1250,
1171,
3455,
4436,
5580,
13,
3639,
1216,
8263,
503,
565,
288,
3639,
333,
18,
856,
67,
2827,
67,
13851,
565,
273,
498,
67,
2827,
67,
13851,
31,
3639,
333,
18,
4479,
67,
22449,
565,
273,
1206,
67,
22449,
31,
202,
202,
2211,
18,
492,
67,
3168,
9506,
282,
273,
1027,
67,
3168,
31,
202,
202,
2211,
18,
7457,
2041,
653,
3380,
202,
282,
273,
2488,
2041,
653,
3380,
31,
3639,
333,
18,
1896,
67,
267,
7858,
67,
492,
13085,
273,
943,
67,
267,
7858,
67,
492,
13085,
31,
3639,
309,
12,
943,
67,
267,
7858,
67,
492,
13085,
405,
374,
13,
5411,
943,
67,
267,
7858,
67,
1467,
273,
3407,
18,
6694,
67,
4051,
31,
3639,
469,
5411,
943,
67,
267,
7858,
67,
1467,
273,
2509,
18,
588,
5576,
7675,
4963,
6031,
1435,
19,
6625,
31,
3639,
333,
18,
5111,
273,
1715,
31,
3639,
333,
18,
10102,
4436,
5580,
273,
3455,
4436,
5580,
31,
3639,
1033,
8526,
1027,
31,
3639,
368,
999,
2275,
316,
7519,
471,
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,
4297,
310,
2257,
5582,
14544,
12,
565,
5947,
2933,
282,
1715,
16,
565,
6556,
1830,
9079,
1027,
67,
3168,
16,
565,
509,
8526,
10402,
498,
67,
2827,
67,
13851,
16,
565,
1250,
1171,
1206,
67,
22449,
16,
565,
1525,
10792,
13137,
67,
492,
13085,
16,
565,
1525,
10792,
943,
67,
267,
7858,
67,
492,
13085,
16,
565,
509,
5397,
2172,
7437,
16,
565,
1431,
10402,
1262,
6837,
16,
202,
6494,
6862,
202,
7457,
2041,
653,
3380,
16,
565,
1250,
1171,
3455,
4436,
5580,
13,
3639,
1216,
8263,
503,
565,
288,
3639,
333,
18,
856,
67,
2827,
67,
13851,
565,
273,
498,
67,
2827,
67,
13851,
31,
3639,
333,
18,
4479,
67,
22449,
565,
273,
1206,
67,
22449,
2
] |
getPrefix(), getSuffix()));
|
CACHED_PNG_PREFIX, CACHED_PNG_SUFFIX));
|
public CachedImageHandlerPNGEncoder(String imageDir, String urlRoot) throws SVGGraphics2DIOException { super(imageDir, urlRoot); setImageCacher(new ImageCacher.External(imageDir, getPrefix(), getSuffix())); }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/1262a064d5862c02af115350829e8eef6c64787a/CachedImageHandlerPNGEncoder.java/clean/sources/org/apache/batik/svggen/CachedImageHandlerPNGEncoder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15771,
2040,
1503,
23092,
7204,
12,
780,
1316,
1621,
16,
514,
880,
2375,
13,
3639,
1216,
11281,
17558,
22,
2565,
51,
503,
288,
3639,
2240,
12,
2730,
1621,
16,
880,
2375,
1769,
3639,
18893,
11309,
264,
12,
2704,
3421,
11309,
264,
18,
6841,
12,
2730,
1621,
16,
4766,
7734,
16182,
9334,
4766,
7734,
1322,
2609,
1435,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15771,
2040,
1503,
23092,
7204,
12,
780,
1316,
1621,
16,
514,
880,
2375,
13,
3639,
1216,
11281,
17558,
22,
2565,
51,
503,
288,
3639,
2240,
12,
2730,
1621,
16,
880,
2375,
1769,
3639,
18893,
11309,
264,
12,
2704,
3421,
11309,
264,
18,
6841,
12,
2730,
1621,
16,
4766,
7734,
16182,
9334,
4766,
7734,
1322,
2609,
1435,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw getRuntime().newNameError("undefined method '" + name + "' for " + (isModule() ? "module" : "class") + " '" + getName() + "'");
|
throw getRuntime().newNameError("undefined method '" + name + "' for " + (isModule() ? "module" : "class") + " '" + getName() + "'", name);
|
public void exportMethod(String name, Visibility visibility) { if (this == getRuntime().getObject()) { getRuntime().secure(4); } ICallable method = searchMethod(name); if (method.isUndefined()) { throw getRuntime().newNameError("undefined method '" + name + "' for " + (isModule() ? "module" : "class") + " '" + getName() + "'"); } if (method.getVisibility() != visibility) { if (this == method.getImplementationClass()) { method.setVisibility(visibility); } else { final ThreadContext context = getRuntime().getCurrentContext(); addMethod(name, new CallbackMethod(this, new Callback() { public IRubyObject execute(IRubyObject self, IRubyObject[] args) { return context.callSuper(context.getFrameArgs()); } public Arity getArity() { return Arity.optional(); } }, visibility)); } } }
|
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/buggy/src/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3359,
1305,
12,
780,
508,
16,
27791,
9478,
13,
288,
3639,
309,
261,
2211,
422,
18814,
7675,
588,
921,
10756,
288,
5411,
18814,
7675,
8869,
12,
24,
1769,
3639,
289,
3639,
467,
11452,
707,
273,
1623,
1305,
12,
529,
1769,
3639,
309,
261,
2039,
18,
291,
10317,
10756,
288,
5411,
604,
18814,
7675,
2704,
461,
668,
2932,
5978,
707,
2119,
397,
508,
397,
2491,
364,
315,
397,
4766,
261,
291,
3120,
1435,
692,
315,
2978,
6,
294,
315,
1106,
7923,
397,
315,
2119,
397,
1723,
1435,
397,
5862,
1769,
3639,
289,
3639,
309,
261,
2039,
18,
588,
10135,
1435,
480,
9478,
13,
288,
5411,
309,
261,
2211,
422,
707,
18,
588,
13621,
797,
10756,
288,
7734,
707,
18,
542,
10135,
12,
14422,
1769,
5411,
289,
469,
288,
7734,
727,
4884,
1042,
819,
273,
18814,
7675,
588,
3935,
1042,
5621,
7734,
18223,
12,
529,
16,
394,
8444,
1305,
12,
2211,
16,
394,
8444,
1435,
288,
202,
7734,
1071,
15908,
10340,
921,
1836,
12,
7937,
10340,
921,
365,
16,
15908,
10340,
921,
8526,
833,
13,
288,
6862,
3639,
327,
819,
18,
1991,
8051,
12,
2472,
18,
588,
3219,
2615,
10663,
202,
7734,
289,
202,
7734,
1071,
1201,
560,
336,
686,
560,
1435,
288,
202,
10792,
327,
1201,
560,
18,
10444,
5621,
202,
7734,
289,
202,
5411,
19879,
9478,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3359,
1305,
12,
780,
508,
16,
27791,
9478,
13,
288,
3639,
309,
261,
2211,
422,
18814,
7675,
588,
921,
10756,
288,
5411,
18814,
7675,
8869,
12,
24,
1769,
3639,
289,
3639,
467,
11452,
707,
273,
1623,
1305,
12,
529,
1769,
3639,
309,
261,
2039,
18,
291,
10317,
10756,
288,
5411,
604,
18814,
7675,
2704,
461,
668,
2932,
5978,
707,
2119,
397,
508,
397,
2491,
364,
315,
397,
4766,
261,
291,
3120,
1435,
692,
315,
2978,
6,
294,
315,
1106,
7923,
397,
315,
2119,
397,
1723,
1435,
397,
5862,
1769,
3639,
289,
3639,
309,
261,
2039,
18,
588,
10135,
1435,
480,
9478,
13,
288,
5411,
309,
261,
2211,
422,
707,
18,
588,
13621,
797,
10756,
288,
7734,
2
] |
protected static synchronized void cleanup() { removeAllBots(); }
|
49082 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49082/f67f2ce500c0650f1156cddabad1912a044f5e91/BotManager.java/buggy/ctSim/controller/BotManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
3852,
918,
6686,
1435,
288,
9506,
202,
4479,
1595,
6522,
87,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
3852,
918,
6686,
1435,
288,
9506,
202,
4479,
1595,
6522,
87,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
refData.put(ViewConstants.OPTIONS, preferences);
|
protected Map referenceData(PortletRequest request, Object command, Errors errors) throws Exception { final BookmarkSet bookmarkSet = this.bookmarkSetRequestResolver.getBookmarkSet(request, false); final Preferences preferences = this.preferencesRequestResolver.getPreferences(request, false); final Map<String, Object> refData = new HashMap<String, Object>(); refData.put(ViewConstants.BOOKMARK_SET, bookmarkSet); refData.put(ViewConstants.OPTIONS, preferences); refData.put(ViewConstants.ERRORS, errors); refData.put(ViewConstants.COMMAND_EMPTY_BOOKMARK, new Bookmark()); refData.put(ViewConstants.COMMAND_EMPTY_FOLDER, new Folder()); return refData; }
|
53163 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53163/f6f75dcfb31be9c4cd7a53a139d48b58d25fed18/BaseBookmarksFormController.java/clean/src/edu/wisc/my/portlets/bookmarks/web/BaseBookmarksFormController.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1635,
2114,
751,
12,
18566,
691,
590,
16,
1033,
1296,
16,
9372,
1334,
13,
1216,
1185,
288,
3639,
727,
20258,
3355,
694,
13696,
694,
273,
333,
18,
3618,
3355,
27538,
4301,
18,
588,
22966,
694,
12,
2293,
16,
629,
1769,
3639,
727,
28310,
12750,
273,
333,
18,
23219,
691,
4301,
18,
588,
12377,
12,
2293,
16,
629,
1769,
3639,
727,
1635,
32,
780,
16,
1033,
34,
1278,
751,
273,
394,
4317,
32,
780,
16,
1033,
34,
5621,
3639,
1278,
751,
18,
458,
12,
1767,
2918,
18,
28163,
12693,
67,
4043,
16,
13696,
694,
1769,
9079,
1278,
751,
18,
458,
12,
1767,
2918,
18,
29127,
16,
1334,
1769,
3639,
1278,
751,
18,
458,
12,
1767,
2918,
18,
19104,
67,
13625,
67,
28163,
12693,
16,
394,
20258,
3355,
10663,
3639,
1278,
751,
18,
458,
12,
1767,
2918,
18,
19104,
67,
13625,
67,
17357,
16,
394,
12623,
10663,
3639,
327,
1278,
751,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1635,
2114,
751,
12,
18566,
691,
590,
16,
1033,
1296,
16,
9372,
1334,
13,
1216,
1185,
288,
3639,
727,
20258,
3355,
694,
13696,
694,
273,
333,
18,
3618,
3355,
27538,
4301,
18,
588,
22966,
694,
12,
2293,
16,
629,
1769,
3639,
727,
28310,
12750,
273,
333,
18,
23219,
691,
4301,
18,
588,
12377,
12,
2293,
16,
629,
1769,
3639,
727,
1635,
32,
780,
16,
1033,
34,
1278,
751,
273,
394,
4317,
32,
780,
16,
1033,
34,
5621,
3639,
1278,
751,
18,
458,
12,
1767,
2918,
18,
28163,
12693,
67,
4043,
16,
13696,
694,
1769,
9079,
1278,
751,
18,
458,
12,
1767,
2918,
18,
29127,
16,
1334,
1769,
3639,
1278,
751,
18,
458,
12,
1767,
2918,
18,
19104,
2
] |
|
cms = setupOpenCms("simpletest", "/sites/default/");
|
cms = setupOpenCms("simpletest", "/sites/default/");
|
public void testCmsSetup() throws Throwable { CmsObject cms; // setup OpenCms using the base test class cms = setupOpenCms("simpletest", "/sites/default/"); // check the returned CmsObject assertEquals(cms.getRequestContext().currentUser(), cms.readUser("Admin")); assertEquals(cms.getRequestContext().currentProject(), cms.readProject("Offline")); assertEquals(cms.getRequestContext().getSiteRoot(), "/sites/default"); // check the CmsObject initialization cms = getCmsObject(); // check the returned CmsObject assertEquals(cms.getRequestContext().currentUser(), cms.readUser("Admin")); assertEquals(cms.getRequestContext().currentProject(), cms.readProject("Offline")); assertEquals(cms.getRequestContext().getSiteRoot(), "/sites/default"); // remove OpenCms removeOpenCms(); }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/6f754ad872cb162fb0d29d167cdd6d159d8112a0/TestCmsShell.java/clean/test/org/opencms/main/TestCmsShell.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4747,
7365,
1435,
1216,
4206,
288,
7734,
14371,
6166,
31,
13491,
368,
3875,
10319,
1450,
326,
1026,
1842,
667,
3639,
6166,
273,
3875,
3678,
4747,
2932,
9812,
1469,
395,
3113,
2206,
12180,
19,
1886,
4898,
1769,
7734,
368,
866,
326,
2106,
14371,
3639,
1815,
8867,
12,
6851,
18,
588,
21426,
7675,
2972,
1299,
9334,
6166,
18,
896,
1299,
2932,
4446,
7923,
1769,
3639,
1815,
8867,
12,
6851,
18,
588,
21426,
7675,
2972,
4109,
9334,
6166,
18,
896,
4109,
2932,
23106,
7923,
1769,
3639,
1815,
8867,
12,
6851,
18,
588,
21426,
7675,
588,
21889,
9334,
2206,
12180,
19,
1886,
8863,
7734,
368,
866,
326,
14371,
10313,
3639,
6166,
273,
28287,
5621,
7734,
368,
866,
326,
2106,
14371,
3639,
1815,
8867,
12,
6851,
18,
588,
21426,
7675,
2972,
1299,
9334,
6166,
18,
896,
1299,
2932,
4446,
7923,
1769,
3639,
1815,
8867,
12,
6851,
18,
588,
21426,
7675,
2972,
4109,
9334,
6166,
18,
896,
4109,
2932,
23106,
7923,
1769,
3639,
1815,
8867,
12,
6851,
18,
588,
21426,
7675,
588,
21889,
9334,
2206,
12180,
19,
1886,
8863,
13491,
368,
1206,
10319,
3639,
1206,
3678,
4747,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4747,
7365,
1435,
1216,
4206,
288,
7734,
14371,
6166,
31,
13491,
368,
3875,
10319,
1450,
326,
1026,
1842,
667,
3639,
6166,
273,
3875,
3678,
4747,
2932,
9812,
1469,
395,
3113,
2206,
12180,
19,
1886,
4898,
1769,
7734,
368,
866,
326,
2106,
14371,
3639,
1815,
8867,
12,
6851,
18,
588,
21426,
7675,
2972,
1299,
9334,
6166,
18,
896,
1299,
2932,
4446,
7923,
1769,
3639,
1815,
8867,
12,
6851,
18,
588,
21426,
7675,
2972,
4109,
9334,
6166,
18,
896,
4109,
2932,
23106,
7923,
1769,
3639,
1815,
8867,
12,
6851,
18,
588,
21426,
7675,
588,
21889,
9334,
2206,
12180,
19,
1886,
8863,
7734,
368,
866,
326,
14371,
10313,
3639,
6166,
273,
28287,
5621,
7734,
368,
866,
326,
2106,
2
] |
/* if (! Utilities.TextAreaMessageDialog.TEST_MODE) */
|
/* if (! Utilities.TEST_MODE) */
|
public void actionPerformed(ActionEvent ae) { initGotoFileDialog(); List<OpenDefinitionsDocument> docs = _model.getOpenDefinitionsDocuments(); if ((docs==null) || (docs.size() == 0)) { return; // do nothing } GoToFileListEntry currentEntry = null; ArrayList<GoToFileListEntry> list; if (DrJava.getConfig().getSetting(DIALOG_GOTOFILE_FULLY_QUALIFIED).booleanValue()) { list = new ArrayList<GoToFileListEntry>(2*docs.size()); } else { list = new ArrayList<GoToFileListEntry>(docs.size()); } for(OpenDefinitionsDocument d: docs) { GoToFileListEntry entry = new GoToFileListEntry(d, d.toString()); if (d.equals(_model.getActiveDocument())) { currentEntry = entry; } list.add(entry); if (DrJava.getConfig().getSetting(DIALOG_GOTOFILE_FULLY_QUALIFIED).booleanValue()) { try { try { File relative = FileOps.makeRelativeTo(d.getFile(), d.getSourceRoot()); if (!relative.toString().equals(d.toString())) { list.add(new GoToFileListEntry(d, d.getPackageName() + "." + d.toString())); } } catch(IOException e) { // ignore } catch(edu.rice.cs.drjava.model.definitions.InvalidPackageException e) { // ignore } } catch(IllegalStateException e) { // ignore } } } _gotoFileDialog.setItems(true, list); // ignore case if (currentEntry != null) { _gotoFileDialog.setCurrentItem(currentEntry); } hourglassOn(); /* if (! Utilities.TextAreaMessageDialog.TEST_MODE) */ _gotoFileDialog.setVisible(true); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/deccdad7d1e1e890f5a05d651027f51330f6ca59/MainFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
14221,
13,
288,
1377,
1208,
43,
6302,
812,
6353,
5621,
1377,
987,
32,
3678,
7130,
2519,
34,
3270,
273,
389,
2284,
18,
588,
3678,
7130,
12922,
5621,
1377,
309,
14015,
8532,
631,
2011,
13,
747,
261,
8532,
18,
1467,
1435,
422,
374,
3719,
288,
3639,
327,
31,
368,
741,
5083,
1377,
289,
1377,
4220,
15450,
27899,
783,
1622,
273,
446,
31,
1377,
2407,
32,
5741,
15450,
27899,
34,
666,
31,
1377,
309,
261,
8956,
5852,
18,
588,
809,
7675,
588,
5568,
12,
2565,
18683,
67,
43,
27019,
3776,
67,
18111,
61,
67,
8729,
13519,
2934,
6494,
620,
10756,
288,
3639,
666,
273,
394,
2407,
32,
5741,
15450,
27899,
34,
12,
22,
14,
8532,
18,
1467,
10663,
1377,
289,
1377,
469,
288,
3639,
666,
273,
394,
2407,
32,
5741,
15450,
27899,
34,
12,
8532,
18,
1467,
10663,
1377,
289,
1377,
364,
12,
3678,
7130,
2519,
302,
30,
3270,
13,
288,
3639,
4220,
15450,
27899,
1241,
273,
394,
4220,
15450,
27899,
12,
72,
16,
302,
18,
10492,
10663,
3639,
309,
261,
72,
18,
14963,
24899,
2284,
18,
588,
3896,
2519,
1435,
3719,
288,
1850,
783,
1622,
273,
1241,
31,
3639,
289,
3639,
666,
18,
1289,
12,
4099,
1769,
3639,
309,
261,
8956,
5852,
18,
588,
809,
7675,
588,
5568,
12,
2565,
18683,
67,
43,
27019,
3776,
67,
18111,
61,
67,
8729,
13519,
2934,
6494,
620,
10756,
288,
1850,
775,
288,
5411,
775,
288,
2868,
1387,
3632,
273,
1387,
8132,
18,
6540,
8574,
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,
26100,
12,
1803,
1133,
14221,
13,
288,
1377,
1208,
43,
6302,
812,
6353,
5621,
1377,
987,
32,
3678,
7130,
2519,
34,
3270,
273,
389,
2284,
18,
588,
3678,
7130,
12922,
5621,
1377,
309,
14015,
8532,
631,
2011,
13,
747,
261,
8532,
18,
1467,
1435,
422,
374,
3719,
288,
3639,
327,
31,
368,
741,
5083,
1377,
289,
1377,
4220,
15450,
27899,
783,
1622,
273,
446,
31,
1377,
2407,
32,
5741,
15450,
27899,
34,
666,
31,
1377,
309,
261,
8956,
5852,
18,
588,
809,
7675,
588,
5568,
12,
2565,
18683,
67,
43,
27019,
3776,
67,
18111,
61,
67,
8729,
13519,
2934,
6494,
620,
10756,
288,
3639,
666,
273,
394,
2407,
32,
5741,
15450,
27899,
34,
12,
22,
14,
2
] |
"message(" + msgId +
|
"reader: message(" + msgId +
|
public void run() { String reason = null; try { for(;;) { // ------------------------------------------------------------ // Decode an RfcLDAPMessage directly from the socket. // ------------------------------------------------------------ Message info; ASN1Identifier asn1ID = new ASN1Identifier(in); int tag = asn1ID.getTag(); if(asn1ID.getTag() != ASN1Sequence.TAG) { if( Debug.LDAP_DEBUG) { Debug.trace( Debug.messages, name + "discarding message with tag " + tag); } continue; // loop looking for an RfcLDAPMessage identifier } // Turn the message into an RfcMessage class ASN1Length asn1Len = new ASN1Length(in); RfcLDAPMessage msg = new RfcLDAPMessage( decoder, in, asn1Len.getLength()); // ------------------------------------------------------------ // Process the decoded RfcLDAPMessage. // ------------------------------------------------------------ int msgId = msg.getMessageID(); // Find the message which requested this response. // It is possible to receive a response for a request which // has been abandoned. If abandoned, throw it away //?? int cnt = ldapListeners.size(); try { info = messages.findMessageById( msgId); if( info.acceptsReplies()) { if( Debug.LDAP_DEBUG ) { Debug.trace( Debug.messages, name + "queue message(" + msgId + ")"); Debug.trace( Debug.buffer, name + "message(" + msgId + ")=" + msg.toString()); } info.putReply( msg); // queue & wake up waiting thread } else { if( Debug.LDAP_DEBUG ) { Debug.trace( Debug.messages, name + "message(" + msgId + ") not accepting replies, discarding reply"); } } } catch ( NoSuchFieldException ex) { if( Debug.LDAP_DEBUG ) { Debug.trace( Debug.messages, name + "message(" + msgId + ") not found, discarding reply"); } } } } catch(IOException ioe) { reason = "Connection lost for " + host + ":" + port + " " + ioe.toString(); Debug.trace( Debug.messages, name + reason); } finally { shutdown(reason, 0); } return; }
|
9947 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9947/e5d4b814b143ee720bbd966352d461577b9db35a/Connection.java/clean/com/novell/ldap/Connection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
514,
3971,
273,
446,
31,
3639,
775,
288,
5411,
364,
12,
25708,
13,
288,
7734,
368,
24702,
7734,
368,
6209,
392,
534,
7142,
15496,
1079,
5122,
628,
326,
2987,
18,
7734,
368,
24702,
7734,
2350,
1123,
31,
7734,
18598,
21,
3004,
12211,
21,
734,
273,
394,
18598,
21,
3004,
12,
267,
1769,
7734,
509,
1047,
273,
12211,
21,
734,
18,
588,
1805,
5621,
7734,
309,
12,
31432,
21,
734,
18,
588,
1805,
1435,
480,
18598,
21,
4021,
18,
7927,
13,
288,
10792,
309,
12,
4015,
18,
15496,
67,
9394,
13,
288,
13491,
4015,
18,
5129,
12,
4015,
18,
6833,
16,
508,
397,
18701,
315,
31992,
310,
883,
598,
1047,
315,
397,
1047,
1769,
10792,
289,
10792,
1324,
31,
368,
2798,
7849,
364,
392,
534,
7142,
15496,
1079,
2756,
7734,
289,
7734,
368,
22425,
326,
883,
1368,
392,
534,
7142,
1079,
667,
7734,
18598,
21,
1782,
12211,
21,
2891,
273,
394,
18598,
21,
1782,
12,
267,
1769,
7734,
534,
7142,
15496,
1079,
1234,
273,
10792,
394,
534,
7142,
15496,
1079,
12,
8320,
16,
316,
16,
12211,
21,
2891,
18,
588,
1782,
10663,
7734,
368,
24702,
7734,
368,
4389,
326,
6383,
534,
7142,
15496,
1079,
18,
7734,
368,
24702,
7734,
509,
1234,
548,
273,
1234,
18,
24906,
734,
5621,
7734,
368,
4163,
326,
883,
1492,
3764,
333,
766,
18,
7734,
368,
2597,
353,
3323,
358,
6798,
279,
766,
364,
279,
590,
1492,
7734,
368,
711,
2118,
1223,
29807,
18,
971,
1223,
29807,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
514,
3971,
273,
446,
31,
3639,
775,
288,
5411,
364,
12,
25708,
13,
288,
7734,
368,
24702,
7734,
368,
6209,
392,
534,
7142,
15496,
1079,
5122,
628,
326,
2987,
18,
7734,
368,
24702,
7734,
2350,
1123,
31,
7734,
18598,
21,
3004,
12211,
21,
734,
273,
394,
18598,
21,
3004,
12,
267,
1769,
7734,
509,
1047,
273,
12211,
21,
734,
18,
588,
1805,
5621,
7734,
309,
12,
31432,
21,
734,
18,
588,
1805,
1435,
480,
18598,
21,
4021,
18,
7927,
13,
288,
10792,
309,
12,
4015,
18,
15496,
67,
9394,
13,
288,
13491,
4015,
18,
5129,
12,
4015,
18,
6833,
16,
508,
397,
18701,
315,
31992,
310,
883,
598,
1047,
315,
397,
1047,
2
] |
if (decorator != null && decorator.isLabelProperty(element, property)) {
|
if (decorator != null && decorator.isLabelProperty(element, property)) {
|
public boolean isLabelProperty(Object element, String property) { if (getLabelProvider().isLabelProperty(element, property)) { return true; } if (decorator != null && decorator.isLabelProperty(element, property)) { return true; } return false; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f667f72c7bc0f7d35e80a5caebc32bd801c20054/DecoratingLabelProvider.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/DecoratingLabelProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
2224,
1396,
12,
921,
930,
16,
514,
1272,
13,
288,
3639,
309,
261,
588,
2224,
2249,
7675,
291,
2224,
1396,
12,
2956,
16,
1272,
3719,
288,
1082,
202,
2463,
638,
31,
202,
202,
97,
3639,
309,
261,
19142,
480,
446,
597,
7367,
18,
291,
2224,
1396,
12,
2956,
16,
1272,
3719,
288,
1082,
202,
2463,
638,
31,
202,
202,
97,
3639,
327,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
2224,
1396,
12,
921,
930,
16,
514,
1272,
13,
288,
3639,
309,
261,
588,
2224,
2249,
7675,
291,
2224,
1396,
12,
2956,
16,
1272,
3719,
288,
1082,
202,
2463,
638,
31,
202,
202,
97,
3639,
309,
261,
19142,
480,
446,
597,
7367,
18,
291,
2224,
1396,
12,
2956,
16,
1272,
3719,
288,
1082,
202,
2463,
638,
31,
202,
202,
97,
3639,
327,
629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
UIType uitype = UITypes.forName(uitypename);
|
public SubmittedValueEntry parseFossil(String key, String value) { SubmittedValueEntry togo = new SubmittedValueEntry(); int firsthash = value.indexOf('#'); String uitypename = value.substring(1, firsthash); int endcurly = value.indexOf('}'); togo.valuebinding = value.substring(firsthash + 2, endcurly); String oldvaluestring = value.substring(endcurly + 1); if (oldvaluestring.length() > 0) { UIType uitype = UITypes.forName(uitypename); Class uiclass = uitype == null? null :uitype.getPlaceholder().getClass(); togo.oldvalue = ConvertUtil.parse(oldvaluestring, xmlprovider, uiclass); } togo.componentid = key.substring(0, key.length() - FOSSIL_SUFFIX.length()); return togo; }
|
49142 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49142/3144b717a81b5655b944577f9dc659308d602e03/FossilizedConverter.java/clean/src/uk/org/ponder/rsf/request/FossilizedConverter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2592,
7948,
620,
1622,
1109,
42,
8464,
330,
12,
780,
498,
16,
514,
460,
13,
288,
565,
2592,
7948,
620,
1622,
358,
3240,
273,
394,
2592,
7948,
620,
1622,
5621,
3639,
509,
1122,
2816,
273,
460,
18,
31806,
2668,
7,
8284,
565,
514,
582,
560,
84,
1069,
273,
460,
18,
28023,
12,
21,
16,
1122,
2816,
1769,
565,
509,
679,
1397,
715,
273,
460,
18,
31806,
2668,
1713,
1769,
565,
358,
3240,
18,
1132,
7374,
273,
460,
18,
28023,
12,
3645,
2816,
397,
576,
16,
679,
1397,
715,
1769,
565,
514,
1592,
2372,
371,
273,
460,
18,
28023,
12,
409,
1397,
715,
397,
404,
1769,
3639,
309,
261,
1673,
2372,
371,
18,
2469,
1435,
405,
374,
13,
288,
6647,
1659,
582,
335,
459,
273,
582,
305,
388,
422,
446,
35,
446,
294,
14945,
388,
18,
588,
14038,
7675,
588,
797,
5621,
1377,
358,
3240,
18,
1673,
1132,
273,
4037,
1304,
18,
2670,
12,
1673,
2372,
371,
16,
2025,
6778,
16,
582,
335,
459,
1769,
565,
289,
3639,
358,
3240,
18,
4652,
350,
273,
498,
18,
28023,
12,
20,
16,
498,
18,
2469,
1435,
300,
540,
17634,
1260,
2627,
67,
14964,
18,
2469,
10663,
377,
327,
358,
3240,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2592,
7948,
620,
1622,
1109,
42,
8464,
330,
12,
780,
498,
16,
514,
460,
13,
288,
565,
2592,
7948,
620,
1622,
358,
3240,
273,
394,
2592,
7948,
620,
1622,
5621,
3639,
509,
1122,
2816,
273,
460,
18,
31806,
2668,
7,
8284,
565,
514,
582,
560,
84,
1069,
273,
460,
18,
28023,
12,
21,
16,
1122,
2816,
1769,
565,
509,
679,
1397,
715,
273,
460,
18,
31806,
2668,
1713,
1769,
565,
358,
3240,
18,
1132,
7374,
273,
460,
18,
28023,
12,
3645,
2816,
397,
576,
16,
679,
1397,
715,
1769,
565,
514,
1592,
2372,
371,
273,
460,
18,
28023,
12,
409,
1397,
715,
397,
404,
1769,
3639,
309,
261,
1673,
2372,
371,
18,
2469,
1435,
405,
374,
13,
2
] |
|
timeoutThread.setPriority(lowPriority+1);
|
timeoutThread.setPriority(TIMEOUT_PRIORITY);
|
private void startTimeoutMonitor() { synchronized (potentialTimeouts) { finished = false; if (timeoutThread == null) { timeoutThread = new Thread(this, toString() + "-timeouts"); timeoutThread.setPriority(lowPriority+1); timeoutThread.start(); // to our run method } } }
|
51914 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51914/7cbd5d6f4f0df10940a220e19b80788d8f0e1b0b/DownloadMonitor.java/buggy/ecologylab/generic/DownloadMonitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
787,
2694,
7187,
1435,
282,
288,
1377,
3852,
261,
26451,
2694,
87,
13,
1377,
288,
202,
6708,
202,
202,
33,
629,
31,
202,
309,
261,
4538,
3830,
422,
446,
13,
202,
288,
202,
565,
2021,
3830,
202,
33,
394,
4884,
12,
2211,
16,
1762,
1435,
397,
3701,
4538,
87,
8863,
202,
565,
2021,
3830,
18,
542,
8183,
12,
821,
8183,
15,
21,
1769,
202,
565,
2021,
3830,
18,
1937,
5621,
368,
358,
3134,
1086,
707,
202,
289,
1377,
289,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
787,
2694,
7187,
1435,
282,
288,
1377,
3852,
261,
26451,
2694,
87,
13,
1377,
288,
202,
6708,
202,
202,
33,
629,
31,
202,
309,
261,
4538,
3830,
422,
446,
13,
202,
288,
202,
565,
2021,
3830,
202,
33,
394,
4884,
12,
2211,
16,
1762,
1435,
397,
3701,
4538,
87,
8863,
202,
565,
2021,
3830,
18,
542,
8183,
12,
821,
8183,
15,
21,
1769,
202,
565,
2021,
3830,
18,
1937,
5621,
368,
358,
3134,
1086,
707,
202,
289,
1377,
289,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} catch(IOException io) { io.printStackTrace(log_);
|
} catch (IOException io) { logStackTrace(io);
|
public void run() { byte [] line; try { long num = 0; while((line=UTF8ByteArrayUtils.readLine((InputStream)clientErr_)) != null) { num++; String lineStr = new String(line, "UTF-8"); logprintln(lineStr); if(num < 10) { String hline = "MRErr: " + lineStr; System.err.println(hline); reporter.setStatus(hline); } } } catch(IOException io) { io.printStackTrace(log_); } }
|
51718 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51718/e10b40e8014547113799b2653164e8c990d41209/PipeMapRed.java/buggy/src/contrib/streaming/src/java/org/apache/hadoop/streaming/PipeMapRed.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
565,
288,
1377,
1160,
5378,
980,
31,
1377,
775,
288,
3639,
1525,
818,
273,
374,
31,
3639,
1323,
12443,
1369,
33,
5159,
28,
8826,
1989,
18,
896,
1670,
12443,
4348,
13,
2625,
2524,
67,
3719,
480,
446,
13,
288,
1850,
818,
9904,
31,
1850,
514,
980,
1585,
273,
394,
514,
12,
1369,
16,
315,
5159,
17,
28,
8863,
6647,
613,
8222,
12,
1369,
1585,
1769,
1850,
309,
12,
2107,
411,
1728,
13,
288,
5411,
514,
366,
1369,
273,
315,
49,
862,
523,
30,
315,
397,
980,
1585,
31,
5411,
2332,
18,
370,
18,
8222,
12,
76,
1369,
1769,
5411,
11528,
18,
542,
1482,
12,
76,
1369,
1769,
1850,
289,
3639,
289,
1377,
289,
1044,
12,
14106,
2527,
13,
288,
3639,
2527,
18,
1188,
6332,
12,
1330,
67,
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,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1086,
1435,
565,
288,
1377,
1160,
5378,
980,
31,
1377,
775,
288,
3639,
1525,
818,
273,
374,
31,
3639,
1323,
12443,
1369,
33,
5159,
28,
8826,
1989,
18,
896,
1670,
12443,
4348,
13,
2625,
2524,
67,
3719,
480,
446,
13,
288,
1850,
818,
9904,
31,
1850,
514,
980,
1585,
273,
394,
514,
12,
1369,
16,
315,
5159,
17,
28,
8863,
6647,
613,
8222,
12,
1369,
1585,
1769,
1850,
309,
12,
2107,
411,
1728,
13,
288,
5411,
514,
366,
1369,
273,
315,
49,
862,
523,
30,
315,
397,
980,
1585,
31,
5411,
2332,
18,
370,
18,
8222,
12,
76,
1369,
1769,
5411,
11528,
18,
542,
1482,
12,
76,
1369,
1769,
1850,
289,
3639,
289,
1377,
289,
1044,
2
] |
public nsIComponentManager getComponentManager() throws XPCOMException;
|
nsIComponentManager getComponentManager() throws XPCOMException;
|
public nsIComponentManager getComponentManager() throws XPCOMException;
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/e2a484d63cf155eba2a5cce4f4959afd4d2fa2bf/IXPCOM.java/clean/extensions/java/xpcom/interfaces/org/mozilla/xpcom/IXPCOM.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3153,
45,
1841,
1318,
10322,
1318,
1435,
1216,
1139,
3513,
1872,
503,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3153,
45,
1841,
1318,
10322,
1318,
1435,
1216,
1139,
3513,
1872,
503,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
setModified(true);
|
public void setUserId(String userId) { if (((userId == null) && (_userId != null)) || ((userId != null) && (_userId == null)) || ((userId != null) && (_userId != null) && !userId.equals(_userId))) { if (!XSS_ALLOW_USERID) { userId = XSSUtil.strip(userId); } _userId = userId; setModified(true); } }
|
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/LayoutSetModel.java/clean/portal-ejb/src/com/liferay/portal/model/LayoutSetModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
10502,
12,
780,
6249,
13,
288,
202,
202,
430,
261,
12443,
18991,
422,
446,
13,
597,
261,
67,
18991,
480,
446,
3719,
747,
9506,
202,
12443,
18991,
480,
446,
13,
597,
261,
67,
18991,
422,
446,
3719,
747,
9506,
202,
12443,
18991,
480,
446,
13,
597,
261,
67,
18991,
480,
446,
13,
597,
9506,
202,
5,
18991,
18,
14963,
24899,
18991,
20349,
288,
1082,
202,
430,
16051,
60,
1260,
67,
13511,
67,
4714,
734,
13,
288,
9506,
202,
18991,
273,
1139,
1260,
1304,
18,
6406,
12,
18991,
1769,
1082,
202,
97,
1082,
202,
67,
18991,
273,
6249,
31,
1082,
202,
542,
4575,
12,
3767,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
444,
10502,
12,
780,
6249,
13,
288,
202,
202,
430,
261,
12443,
18991,
422,
446,
13,
597,
261,
67,
18991,
480,
446,
3719,
747,
9506,
202,
12443,
18991,
480,
446,
13,
597,
261,
67,
18991,
422,
446,
3719,
747,
9506,
202,
12443,
18991,
480,
446,
13,
597,
261,
67,
18991,
480,
446,
13,
597,
9506,
202,
5,
18991,
18,
14963,
24899,
18991,
20349,
288,
1082,
202,
430,
16051,
60,
1260,
67,
13511,
67,
4714,
734,
13,
288,
9506,
202,
18991,
273,
1139,
1260,
1304,
18,
6406,
12,
18991,
1769,
1082,
202,
97,
1082,
202,
67,
18991,
273,
6249,
31,
1082,
202,
542,
4575,
12,
3767,
1769,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100
] |
|
public static void boot() { if (initialized) return; // fill an array of JNI names setNames(); // fill in the IP entries for each AIX linkage triplet VM_TypeReference tRef = VM_TypeReference.findOrCreate(VM_SystemClassLoader.getVMClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_JNIFunctions;")); VM_Class cls = (VM_Class)tRef.peekResolvedType(); VM_Method[] mths = cls.getDeclaredMethods(); for (int i=0; i<mths.length; i++) { String methodName = mths[i].getName().toString(); int jniIndex = indexOf(methodName); if (jniIndex!=-1) { JNIFunctions[jniIndex] = mths[i].getCurrentCompiledMethod().getInstructions(); // VM.sysWrite(" " + methodName + "=" + VM.intAsHexString(JNIFunctions[jniIndex])); } } // store RVM JTOC address in last (extra) entry in JNIFunctions array // to be restored when native C invokes JNI functions implemented in java // // following causes exception in checkstore, so forced to setMemoryWord instead // JNIFunctions[FUNCTIONCOUNT+1] = VM_Magic.addressAsByteArray(VM_Magic.getTocPointer()); VM_Magic.setMemoryAddress(VM_Magic.objectAsAddress(JNIFunctions).add(JNIFUNCTIONS_JTOC_OFFSET), VM_Magic.getTocPointer()); initialized = true; }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/82b734510ac9600511c6996f7cd13904a6e62ef7/VM_JNIEnvironment.java/clean/rvm/src/vm/arch/intel/jni/VM_JNIEnvironment.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
4835,
1435,
288,
565,
309,
261,
13227,
13,
1377,
327,
31,
565,
368,
3636,
392,
526,
434,
804,
50,
45,
1257,
565,
444,
1557,
5621,
565,
368,
3636,
316,
326,
2971,
3222,
364,
1517,
432,
12507,
1692,
410,
6882,
1469,
565,
8251,
67,
7534,
268,
1957,
273,
8251,
67,
7534,
18,
4720,
17717,
12,
7397,
67,
3163,
7805,
18,
588,
7397,
7805,
9334,
20982,
225,
8251,
67,
3641,
18,
4720,
17717,
21363,
3641,
2932,
48,
832,
19,
10827,
19,
46,
25235,
54,
7397,
19,
7397,
67,
46,
50,
45,
7503,
4868,
10019,
565,
8251,
67,
797,
2028,
273,
261,
7397,
67,
797,
13,
88,
1957,
18,
347,
3839,
12793,
559,
5621,
565,
8251,
67,
1305,
8526,
312,
451,
87,
273,
2028,
18,
588,
18888,
4712,
5621,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
81,
451,
87,
18,
2469,
31,
277,
27245,
288,
1377,
514,
4918,
273,
312,
451,
87,
63,
77,
8009,
17994,
7675,
10492,
5621,
1377,
509,
525,
15834,
1016,
273,
3133,
12,
2039,
461,
1769,
1377,
309,
261,
78,
15834,
1016,
5,
29711,
21,
13,
288,
202,
46,
50,
45,
7503,
63,
78,
15834,
1016,
65,
273,
312,
451,
87,
63,
77,
8009,
588,
3935,
20733,
1305,
7675,
588,
26712,
5621,
202,
759,
8251,
18,
9499,
3067,
2932,
282,
315,
397,
4918,
397,
9671,
397,
8251,
18,
474,
1463,
14866,
12,
46,
50,
45,
7503,
63,
78,
15834,
1016,
5717,
1769,
1377,
289,
377,
289,
565,
368,
1707,
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,
4835,
1435,
288,
565,
309,
261,
13227,
13,
1377,
327,
31,
565,
368,
3636,
392,
526,
434,
804,
50,
45,
1257,
565,
444,
1557,
5621,
565,
368,
3636,
316,
326,
2971,
3222,
364,
1517,
432,
12507,
1692,
410,
6882,
1469,
565,
8251,
67,
7534,
268,
1957,
273,
8251,
67,
7534,
18,
4720,
17717,
12,
7397,
67,
3163,
7805,
18,
588,
7397,
7805,
9334,
20982,
225,
8251,
67,
3641,
18,
4720,
17717,
21363,
3641,
2932,
48,
832,
19,
10827,
19,
46,
25235,
54,
7397,
19,
7397,
67,
46,
50,
45,
7503,
4868,
10019,
565,
8251,
67,
797,
2028,
273,
261,
7397,
67,
797,
13,
88,
1957,
18,
347,
3839,
12793,
559,
5621,
565,
8251,
67,
1305,
2
] |
||
protected Object doInvokeInternal(final Class clazz, String methodName, Object[] arguments) { List expressions = new ArrayList(); Matcher match = super.getPattern().matcher( methodName ); // find match match.find(); String[] queryParameters = null; int totalRequiredArguments = 0; // get the sequence clauses String querySequence = match.group(2); // if it contains operator and split boolean containsOperator = false; for (int i = 0; i < operators.length; i++) { Matcher currentMatcher = operatorPatterns[i].matcher( querySequence ); if(currentMatcher.find()) { containsOperator = true; operatorInUse = this.operators[i]; queryParameters = new String[2]; queryParameters[0] = currentMatcher.group(1); queryParameters[1] = currentMatcher.group(3) + currentMatcher.group(4); // loop through query parameters and create expressions // calculating the numBer of arguments required for the expression int argumentCursor = 0; for (int j = 0; j < queryParameters.length; j++) { GrailsMethodExpression currentExpression = GrailsMethodExpression.create(this.application,clazz,queryParameters[j]); totalRequiredArguments += currentExpression.argumentsRequired; // populate the arguments into the GrailsExpression from the argument list Object[] currentArguments = new Object[currentExpression.argumentsRequired]; if((argumentCursor + currentExpression.argumentsRequired) > arguments.length) throw new MissingMethodException(methodName,clazz,arguments); for (int k = 0; k < currentExpression.argumentsRequired; k++,argumentCursor++) { currentArguments[k] = arguments[argumentCursor]; } try { currentExpression.setArguments(currentArguments); }catch(IllegalArgumentException iae) { LOG.debug(iae.getMessage(),iae); throw new MissingMethodException(methodName,clazz,arguments); } // add to list of expressions expressions.add(currentExpression); } break; } } // otherwise there is only one expression if(!containsOperator) { GrailsMethodExpression solo = GrailsMethodExpression.create(this.application, clazz,querySequence ); if(solo.argumentsRequired > arguments.length) throw new MissingMethodException(methodName,clazz,arguments); totalRequiredArguments += solo.argumentsRequired; Object[] soloArgs = new Object[solo.argumentsRequired]; for (int i = 0; i < solo.argumentsRequired; i++) { soloArgs[i] = arguments[i]; } try { solo.setArguments(soloArgs); } catch(IllegalArgumentException iae) { LOG.debug(iae.getMessage(),iae); throw new MissingMethodException(methodName,clazz,arguments); } expressions.add(solo); } // if the total of all the arguments necessary does not equal the number of arguments // throw exception if(totalRequiredArguments > arguments.length) throw new MissingMethodException(methodName,clazz,arguments); // calculate the remaining arguments Object[] remainingArguments = new Object[arguments.length - totalRequiredArguments]; if(remainingArguments.length > 0) { for (int i = 0, j = totalRequiredArguments; i < remainingArguments.length; i++,j++) { remainingArguments[i] = arguments[j]; } } if(LOG.isTraceEnabled()) LOG.trace("Calculated expressions: " + expressions); return doInvokeInternalWithExpressions(clazz, methodName, remainingArguments, expressions); }
|
51826 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51826/eb420a51890989f6ca7f281725a19ebec728f77c/AbstractClausedStaticPersistentMethod.java/clean/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/AbstractClausedStaticPersistentMethod.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
741,
10969,
3061,
12,
6385,
1659,
4003,
16,
514,
4918,
16,
1082,
202,
921,
8526,
1775,
13,
288,
202,
202,
682,
8041,
273,
394,
2407,
5621,
202,
202,
6286,
845,
273,
2240,
18,
588,
3234,
7675,
22761,
12,
4918,
11272,
202,
202,
759,
1104,
845,
202,
202,
1916,
18,
4720,
5621,
9506,
202,
780,
8526,
31485,
273,
446,
31,
202,
202,
474,
2078,
3705,
4628,
273,
374,
31,
202,
202,
759,
336,
326,
3102,
14093,
202,
202,
780,
843,
4021,
273,
845,
18,
1655,
12,
22,
1769,
202,
202,
759,
309,
518,
1914,
3726,
471,
1416,
202,
202,
6494,
1914,
5592,
273,
629,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
12213,
18,
2469,
31,
277,
27245,
288,
1082,
202,
6286,
783,
6286,
273,
3726,
11268,
63,
77,
8009,
22761,
12,
843,
4021,
11272,
1082,
202,
430,
12,
2972,
6286,
18,
4720,
10756,
288,
9506,
202,
12298,
5592,
273,
638,
31,
9506,
202,
9497,
15435,
273,
333,
18,
30659,
63,
77,
15533,
6862,
9506,
202,
2271,
2402,
273,
394,
514,
63,
22,
15533,
9506,
202,
2271,
2402,
63,
20,
65,
273,
783,
6286,
18,
1655,
12,
21,
1769,
9506,
202,
2271,
2402,
63,
21,
65,
273,
783,
6286,
18,
1655,
12,
23,
13,
397,
783,
6286,
18,
1655,
12,
24,
1769,
6862,
9506,
202,
759,
2798,
3059,
843,
1472,
471,
752,
8041,
9506,
202,
759,
21046,
326,
818,
38,
264,
434,
1775,
1931,
364,
326,
2652,
9506,
202,
474,
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,
1033,
741,
10969,
3061,
12,
6385,
1659,
4003,
16,
514,
4918,
16,
1082,
202,
921,
8526,
1775,
13,
288,
202,
202,
682,
8041,
273,
394,
2407,
5621,
202,
202,
6286,
845,
273,
2240,
18,
588,
3234,
7675,
22761,
12,
4918,
11272,
202,
202,
759,
1104,
845,
202,
202,
1916,
18,
4720,
5621,
9506,
202,
780,
8526,
31485,
273,
446,
31,
202,
202,
474,
2078,
3705,
4628,
273,
374,
31,
202,
202,
759,
336,
326,
3102,
14093,
202,
202,
780,
843,
4021,
273,
845,
18,
1655,
12,
22,
1769,
202,
202,
759,
309,
518,
1914,
3726,
471,
1416,
202,
202,
6494,
1914,
5592,
273,
629,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2
] |
||
if((ch < 0x20 || ch == 0x7f || ch == 0xff) && ch != '\b')
|
if((ch < 0x20 || ch == 0x7f || ch == 0xff) && ch != '\b' && ch != '\t' && ch != '\n')
|
public static KeyEvent processKeyEvent(KeyEvent evt) { int keyCode = evt.getKeyCode(); char ch = evt.getKeyChar(); switch(evt.getID()) { //{{{ KEY_PRESSED... case KeyEvent.KEY_PRESSED: lastKeyTime = System.currentTimeMillis(); // get rid of keys we never need to handle switch(keyCode) { case KeyEvent.VK_DEAD_GRAVE: case KeyEvent.VK_DEAD_ACUTE: case KeyEvent.VK_DEAD_CIRCUMFLEX: case KeyEvent.VK_DEAD_TILDE: case KeyEvent.VK_DEAD_MACRON: case KeyEvent.VK_DEAD_BREVE: case KeyEvent.VK_DEAD_ABOVEDOT: case KeyEvent.VK_DEAD_DIAERESIS: case KeyEvent.VK_DEAD_ABOVERING: case KeyEvent.VK_DEAD_DOUBLEACUTE: case KeyEvent.VK_DEAD_CARON: case KeyEvent.VK_DEAD_CEDILLA: case KeyEvent.VK_DEAD_OGONEK: case KeyEvent.VK_DEAD_IOTA: case KeyEvent.VK_DEAD_VOICED_SOUND: case KeyEvent.VK_DEAD_SEMIVOICED_SOUND: case '\0': return null; case KeyEvent.VK_ALT: modifiers |= InputEvent.ALT_MASK; return null; case KeyEvent.VK_ALT_GRAPH: modifiers |= InputEvent.ALT_GRAPH_MASK; return null; case KeyEvent.VK_CONTROL: modifiers |= InputEvent.CTRL_MASK; return null; case KeyEvent.VK_SHIFT: modifiers |= InputEvent.SHIFT_MASK; return null; case KeyEvent.VK_META: modifiers |= InputEvent.META_MASK; return null; case KeyEvent.VK_NUMPAD0: case KeyEvent.VK_NUMPAD1: case KeyEvent.VK_NUMPAD2: case KeyEvent.VK_NUMPAD3: case KeyEvent.VK_NUMPAD4: case KeyEvent.VK_NUMPAD5: case KeyEvent.VK_NUMPAD6: case KeyEvent.VK_NUMPAD7: case KeyEvent.VK_NUMPAD8: case KeyEvent.VK_NUMPAD9: case KeyEvent.VK_MULTIPLY: case KeyEvent.VK_ADD: /* case KeyEvent.VK_SEPARATOR: */ case KeyEvent.VK_SUBTRACT: case KeyEvent.VK_DECIMAL: case KeyEvent.VK_DIVIDE: last = LAST_NUMKEYPAD; return evt; default: if(!evt.isControlDown() && !evt.isAltDown() && !evt.isMetaDown()) // if((modifiers & (InputEvent.CTRL_MASK // | InputEvent.ALT_MASK // | InputEvent.META_MASK)) == 0) { // key pressed with no modifiers does // not seem to happen. note, if you // run jEdit with your clock set to // the 70's you'll get broken keyboard // handling. lastKeyTime = 0L; if(keyCode >= KeyEvent.VK_0 && keyCode <= KeyEvent.VK_9) { return null; } if(keyCode >= KeyEvent.VK_A && keyCode <= KeyEvent.VK_Z) { return null; } } if(OperatingSystem.isMacOS()) { /* we don't handle key pressed A+ */ /* they're too troublesome */ if((modifiers & InputEvent.ALT_MASK) != 0) return null; last = LAST_NOTHING; } break; } return evt; //}}} //{{{ KEY_TYPED... case KeyEvent.KEY_TYPED: // need to let \b through so that backspace will work // in HistoryTextFields if((ch < 0x20 || ch == 0x7f || ch == 0xff) && ch != '\b') return null; if(System.currentTimeMillis() - lastKeyTime < 750) { // "Alt" is the option key on MacOS, and it can generate // user input if(OperatingSystem.isMacOS()) { /* if((modifiers & (InputEvent.CTRL_MASK | InputEvent.META_MASK)) != 0) return null; */ } else { if((modifiers & InputEvent.CTRL_MASK) != 0 ^ (modifiers & InputEvent.ALT_MASK) != 0 || (modifiers & InputEvent.META_MASK) != 0) return null; } // if the last key was a numeric keypad key // and NumLock is off, filter it out if(last == LAST_NUMKEYPAD) { last = LAST_NOTHING; if((ch >= '0' && ch <= '9') || ch == '.' || ch == '/' || ch == '*' || ch == '-' || ch == '+') { return null; } } } else modifiers = 0; return evt; //}}} //{{{ KEY_RELEASED... case KeyEvent.KEY_RELEASED: switch(keyCode) { case KeyEvent.VK_ALT: modifiers &= ~InputEvent.ALT_MASK; return null; case KeyEvent.VK_ALT_GRAPH: modifiers &= ~InputEvent.ALT_GRAPH_MASK; return null; case KeyEvent.VK_CONTROL: modifiers &= ~InputEvent.CTRL_MASK; return null; case KeyEvent.VK_SHIFT: modifiers &= ~InputEvent.SHIFT_MASK; return null; case KeyEvent.VK_META: modifiers &= ~InputEvent.META_MASK; return null; } return evt; //}}} default: return evt; } } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/7a6301176b0699fe32478044d643be8cbac4fe83/KeyEventWorkaround.java/clean/org/gjt/sp/jedit/gui/KeyEventWorkaround.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
23737,
1207,
653,
1133,
12,
653,
1133,
6324,
13,
202,
95,
202,
202,
474,
16369,
273,
6324,
18,
588,
653,
1085,
5621,
202,
202,
3001,
462,
273,
6324,
18,
588,
653,
2156,
5621,
202,
202,
9610,
12,
73,
11734,
18,
588,
734,
10756,
202,
202,
95,
202,
202,
759,
12187,
95,
5311,
67,
27388,
2777,
202,
202,
3593,
23737,
18,
3297,
67,
27388,
30,
1082,
202,
2722,
653,
950,
273,
2332,
18,
2972,
28512,
5621,
1082,
202,
759,
336,
10911,
434,
1311,
732,
5903,
1608,
358,
1640,
1082,
202,
9610,
12,
856,
1085,
13,
1082,
202,
95,
1082,
202,
3593,
23737,
18,
58,
47,
67,
1639,
1880,
67,
24554,
3412,
30,
1082,
202,
3593,
23737,
18,
58,
47,
67,
1639,
1880,
67,
2226,
9099,
30,
1082,
202,
3593,
23737,
18,
58,
47,
67,
1639,
1880,
67,
7266,
11529,
2799,
42,
21130,
30,
1082,
202,
3593,
23737,
18,
58,
47,
67,
1639,
1880,
67,
56,
2627,
1639,
30,
1082,
202,
3593,
23737,
18,
58,
47,
67,
1639,
1880,
67,
10875,
19359,
30,
1082,
202,
3593,
23737,
18,
58,
47,
67,
1639,
1880,
67,
38,
862,
3412,
30,
1082,
202,
3593,
23737,
18,
58,
47,
67,
1639,
1880,
67,
2090,
51,
12135,
1974,
30,
1082,
202,
3593,
23737,
18,
58,
47,
67,
1639,
1880,
67,
2565,
37,
29340,
15664,
30,
1082,
202,
3593,
23737,
18,
58,
47,
67,
1639,
1880,
67,
2090,
12959,
1360,
30,
1082,
202,
3593,
23737,
18,
58,
47,
67,
1639,
1880,
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,
23737,
1207,
653,
1133,
12,
653,
1133,
6324,
13,
202,
95,
202,
202,
474,
16369,
273,
6324,
18,
588,
653,
1085,
5621,
202,
202,
3001,
462,
273,
6324,
18,
588,
653,
2156,
5621,
202,
202,
9610,
12,
73,
11734,
18,
588,
734,
10756,
202,
202,
95,
202,
202,
759,
12187,
95,
5311,
67,
27388,
2777,
202,
202,
3593,
23737,
18,
3297,
67,
27388,
30,
1082,
202,
2722,
653,
950,
273,
2332,
18,
2972,
28512,
5621,
1082,
202,
759,
336,
10911,
434,
1311,
732,
5903,
1608,
358,
1640,
1082,
202,
9610,
12,
856,
1085,
13,
1082,
202,
95,
1082,
202,
3593,
23737,
18,
58,
47,
67,
1639,
1880,
67,
24554,
3412,
30,
1082,
202,
3593,
23737,
2
] |
Value v = interpreter.invokeMethod(threadRef, method2Call, args, ObjectReference.INVOKE_SINGLE_THREADED); if (v != null) { v = _convertToActualType(threadRef, localVar, v); }
|
Value v = _getValueOfLocalVariable(localVar, threadRef);
|
private void _copyBack(ThreadReference threadRef) throws InvalidTypeException, ClassNotLoadedException, IncompatibleThreadStateException, AbsentInformationException, InvocationException, DebugException { if( printMessages ) System.out.println("Getting debug interpreter"); ObjectReference interpreter = _getDebugInterpreter(_getUniqueThreadName(threadRef), threadRef); if( printMessages ) System.err.println("Getting variables"); StackFrame frame = threadRef.frame(0); ReferenceType rtInterpreter = interpreter.referenceType(); List vars = frame.visibleVariables(); Iterator varsIterator = vars.iterator(); // Get each variable from the stack frame while(varsIterator.hasNext()) { if( printMessages ) System.out.println("Iterating through vars"); LocalVariable localVar = (LocalVariable)varsIterator.next(); Method method2Call = _getGetVariableMethod(rtInterpreter); // invokeMethod would throw an ObjectCollectedException if the StringReference // declared by _vm.mirrorOf(name) had been garbage collected before // invokeMethod could execute. This happened infrequently so by trying this // multiple times, the chance of failure each time should be acceptably low. int tries = 0; while (tries < MAXINVOKETRIES) { List args = new LinkedList(); args.add(_vm.mirrorOf(localVar.name())); try { Value v = interpreter.invokeMethod(threadRef, method2Call, args, ObjectReference.INVOKE_SINGLE_THREADED); if (v != null) { v = _convertToActualType(threadRef, localVar, v); } frame = threadRef.frame(0); frame.setValue(localVar, v); break; } catch (ObjectCollectedException oce) { if (printMessages) System.out.println("Got ObjectCollectedException"); tries++; } catch (ClassNotLoadedException cnle) { printMessage("Could not update the value of '" + localVar.name() + "' (class not loaded)"); break; } catch (InvalidTypeException ite) { printMessage("Could not update the value of '" + localVar.name() + "' (invalid type exception)"); break; } } if (tries >= MAXINVOKETRIES) throw new DebugException("The value of the variable: " + localVar.name() + " could not be obtained from interpreterJVM"); } }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/a42a1005ad3faca50638e0131df3bc7c45ba82de/JPDADebugger.java/buggy/drjava/src/edu/rice/cs/drjava/model/debug/JPDADebugger.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
389,
3530,
2711,
12,
3830,
2404,
2650,
1957,
13,
565,
1216,
1962,
14144,
16,
1659,
1248,
8835,
503,
16,
565,
657,
10943,
3830,
5060,
16,
15084,
319,
5369,
503,
16,
565,
11298,
503,
16,
4015,
503,
225,
288,
565,
309,
12,
1172,
5058,
262,
2332,
18,
659,
18,
8222,
2932,
19213,
1198,
16048,
8863,
565,
31321,
16048,
273,
389,
588,
2829,
30010,
24899,
588,
6303,
3830,
461,
12,
5930,
1957,
3631,
2650,
1957,
1769,
565,
309,
12,
1172,
5058,
262,
2332,
18,
370,
18,
8222,
2932,
19213,
3152,
8863,
565,
7283,
3219,
2623,
273,
2650,
1957,
18,
3789,
12,
20,
1769,
565,
6268,
559,
8253,
30010,
273,
16048,
18,
6180,
559,
5621,
565,
987,
4153,
273,
2623,
18,
8613,
6158,
5621,
565,
4498,
4153,
3198,
273,
4153,
18,
9838,
5621,
3639,
368,
968,
1517,
2190,
628,
326,
2110,
2623,
565,
1323,
12,
4699,
3198,
18,
5332,
2134,
10756,
288,
1377,
309,
12,
1172,
5058,
262,
2332,
18,
659,
18,
8222,
2932,
2360,
1776,
3059,
4153,
8863,
1377,
3566,
3092,
9935,
273,
261,
2042,
3092,
13,
4699,
3198,
18,
4285,
5621,
1377,
2985,
707,
22,
1477,
273,
389,
588,
967,
3092,
1305,
12,
3797,
30010,
1769,
5411,
368,
27632,
4102,
604,
392,
1033,
10808,
329,
503,
309,
326,
514,
2404,
1377,
368,
7886,
635,
389,
3489,
18,
27197,
951,
12,
529,
13,
9323,
2118,
15340,
12230,
1865,
1377,
368,
27632,
3377,
1836,
18,
1220,
17497,
8286,
4523,
23351,
1427,
635,
8374,
333,
1377,
368,
3229,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
389,
3530,
2711,
12,
3830,
2404,
2650,
1957,
13,
565,
1216,
1962,
14144,
16,
1659,
1248,
8835,
503,
16,
565,
657,
10943,
3830,
5060,
16,
15084,
319,
5369,
503,
16,
565,
11298,
503,
16,
4015,
503,
225,
288,
565,
309,
12,
1172,
5058,
262,
2332,
18,
659,
18,
8222,
2932,
19213,
1198,
16048,
8863,
565,
31321,
16048,
273,
389,
588,
2829,
30010,
24899,
588,
6303,
3830,
461,
12,
5930,
1957,
3631,
2650,
1957,
1769,
565,
309,
12,
1172,
5058,
262,
2332,
18,
370,
18,
8222,
2932,
19213,
3152,
8863,
565,
7283,
3219,
2623,
273,
2650,
1957,
18,
3789,
12,
20,
1769,
565,
6268,
559,
8253,
30010,
273,
16048,
18,
6180,
559,
5621,
565,
987,
4153,
273,
2
] |
if ((CF < 0) || (CF > 1)) { throw new Exception("CF has to be between zero and one!");
|
if ((CF <= 0) || (CF >= 1)) { throw new Exception("CF has to be greater than zero and smaller than one!");
|
public void setOptions(String[] options) throws Exception{ String confidenceString = Utils.getOption('C', options); String minNumString = Utils.getOption('M', options); String numFoldsString = Utils.getOption('N', options); reducedErrorPruning = Utils.getFlag('R', options); binarySplits = Utils.getFlag('B', options); if (confidenceString.length() != 0) if (reducedErrorPruning) throw new Exception("Setting CF doesn't make sense" + " for reduced error pruning."); else { CF = (new Float(confidenceString)).floatValue(); if ((CF < 0) || (CF > 1)) { throw new Exception("CF has to be between zero and one!"); } } if (numFoldsString.length() != 0) if (!reducedErrorPruning) throw new Exception("Setting the number of folds" + " doesn't make sense for" + " pessimistic pruning."); else numFolds = Integer.parseInt(numFoldsString); if (minNumString.length() != 0) minNumObj = Integer.parseInt(minNumString); }
|
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/bc3379817055f4147358a48e8f9bbf4700e97fda/PART.java/buggy/trunk/weka/classifiers/j48/PART.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16526,
12,
780,
8526,
702,
13,
1216,
1185,
95,
3639,
514,
15588,
780,
273,
6091,
18,
588,
1895,
2668,
39,
2187,
702,
1769,
565,
514,
1131,
2578,
780,
273,
6091,
18,
588,
1895,
2668,
49,
2187,
702,
1769,
565,
514,
818,
15592,
87,
780,
273,
6091,
18,
588,
1895,
2668,
50,
2187,
702,
1769,
565,
13162,
668,
2050,
13036,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
702,
1769,
565,
3112,
16582,
273,
6091,
18,
588,
4678,
2668,
38,
2187,
702,
1769,
565,
309,
261,
27911,
780,
18,
2469,
1435,
480,
374,
13,
1377,
309,
261,
1118,
26372,
668,
2050,
13036,
13,
202,
12849,
394,
1185,
2932,
5568,
6123,
3302,
1404,
1221,
12764,
6,
397,
9506,
565,
315,
364,
13162,
555,
846,
13036,
1199,
1769,
1377,
469,
288,
202,
8955,
273,
261,
2704,
5450,
12,
27911,
780,
13,
2934,
5659,
620,
5621,
202,
430,
14015,
8955,
411,
374,
13,
747,
261,
8955,
405,
404,
3719,
288,
202,
225,
604,
394,
1185,
2932,
8955,
711,
358,
506,
3086,
3634,
471,
1245,
4442,
1769,
202,
97,
1377,
289,
565,
309,
261,
2107,
15592,
87,
780,
18,
2469,
1435,
480,
374,
13,
1377,
309,
16051,
1118,
26372,
668,
2050,
13036,
13,
202,
12849,
394,
1185,
2932,
5568,
326,
1300,
434,
11590,
87,
6,
397,
9506,
565,
315,
3302,
1404,
1221,
12764,
364,
6,
397,
9506,
565,
315,
293,
403,
381,
5846,
846,
13036,
1199,
1769,
1377,
469,
202,
2107,
15592,
87,
273,
2144,
18,
2670,
1702,
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,
282,
1071,
918,
16526,
12,
780,
8526,
702,
13,
1216,
1185,
95,
3639,
514,
15588,
780,
273,
6091,
18,
588,
1895,
2668,
39,
2187,
702,
1769,
565,
514,
1131,
2578,
780,
273,
6091,
18,
588,
1895,
2668,
49,
2187,
702,
1769,
565,
514,
818,
15592,
87,
780,
273,
6091,
18,
588,
1895,
2668,
50,
2187,
702,
1769,
565,
13162,
668,
2050,
13036,
273,
6091,
18,
588,
4678,
2668,
54,
2187,
702,
1769,
565,
3112,
16582,
273,
6091,
18,
588,
4678,
2668,
38,
2187,
702,
1769,
565,
309,
261,
27911,
780,
18,
2469,
1435,
480,
374,
13,
1377,
309,
261,
1118,
26372,
668,
2050,
13036,
13,
202,
12849,
394,
1185,
2932,
5568,
6123,
3302,
1404,
1221,
12764,
6,
397,
9506,
2
] |
else if (((LA(1)=='"') && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) {
|
else if (((LA(1)=='"') && (true) && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) {
|
public final void mNEXT_TOKEN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = NEXT_TOKEN; int _saveIndex; Token attr=null; Token ncname=null; switch ( LA(1)) { case '{': { mLCURLY(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LCURLY; } break; } case '}': { mRCURLY(false); if ( inputState.guessing==0 ) { _ttype = RCURLY; } break; } default: if ((LA(1)=='(') && (LA(2)==':') && (_tokenSet_7.member(LA(3)))) { mEXPR_COMMENT(false); if ( inputState.guessing==0 ) { _ttype = Token.SKIP; } } else { boolean synPredMatched590 = false; if (((_tokenSet_15.member(LA(1))) && (_tokenSet_16.member(LA(2))) && (_tokenSet_17.member(LA(3))))) { int _m590 = mark(); synPredMatched590 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); { switch ( LA(1)) { case '.': { match('.'); { if ((_tokenSet_3.member(LA(1)))) { mINTEGER_LITERAL(false); } else if ((LA(1)=='E'||LA(1)=='e')) { } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } break; } case 'E': case 'e': { break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched590 = false; } rewind(_m590); inputState.guessing--; } if ( synPredMatched590 ) { mDOUBLE_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DOUBLE_LITERAL; } } else if ((LA(1)=='-') && (LA(2)=='-') && (LA(3)=='>')) { mXML_COMMENT_END(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT_END; } } else if ((LA(1)=='<') && (LA(2)=='!')) { mXML_COMMENT(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT; } } else { boolean synPredMatched576 = false; if (((LA(1)=='<') && (LA(2)=='?'))) { int _m576 = mark(); synPredMatched576 = true; inputState.guessing++; try { { mXML_PI_START(false); } } catch (RecognitionException pe) { synPredMatched576 = false; } rewind(_m576); inputState.guessing--; } if ( synPredMatched576 ) { mXML_PI(false); if ( inputState.guessing==0 ) { _ttype = XML_PI; } } else if ((LA(1)=='<') && (LA(2)=='/')) { mEND_TAG_START(false); if ( inputState.guessing==0 ) { inElementContent= false; wsExplicit= false; _ttype = END_TAG_START; } } else if ((LA(1)=='<') && (LA(2)=='=')) { mLTEQ(false); if ( inputState.guessing==0 ) { _ttype = LTEQ; } } else if (((LA(1)=='"'||LA(1)=='\'') && ((LA(2) >= '\u0003' && LA(2) <= '\uffff')) && (true))&&( parseStringLiterals )) { mSTRING_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = STRING_LITERAL; } } else { boolean synPredMatched578 = false; if (((LA(1)=='.') && (LA(2)=='.') && (true))) { int _m578 = mark(); synPredMatched578 = true; inputState.guessing++; try { { match('.'); match('.'); } } catch (RecognitionException pe) { synPredMatched578 = false; } rewind(_m578); inputState.guessing--; } if ( synPredMatched578 ) { mPARENT(false); if ( inputState.guessing==0 ) { _ttype = PARENT; } } else if ((LA(1)=='/') && (LA(2)=='/') && (true)) { mDSLASH(false); if ( inputState.guessing==0 ) { _ttype = DSLASH; } } else if ((LA(1)=='|') && (LA(2)=='=') && (true)) { mOREQ(false); if ( inputState.guessing==0 ) { _ttype = OREQ; } } else if ((LA(1)=='&') && (LA(2)=='=') && (true)) { mANDEQ(false); if ( inputState.guessing==0 ) { _ttype = ANDEQ; } } else if ((LA(1)=='!') && (LA(2)=='=') && (true)) { mNEQ(false); if ( inputState.guessing==0 ) { _ttype = NEQ; } } else if ((LA(1)=='>') && (LA(2)=='=') && (true)) { mGTEQ(false); if ( inputState.guessing==0 ) { _ttype = GTEQ; } } else if ((LA(1)=='?') && (LA(2)=='>') && (true)) { mXML_PI_END(false); if ( inputState.guessing==0 ) { _ttype = XML_PI_END; } } else if ((LA(1)=='<') && (true)) { mLT(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LT; } } else if (((_tokenSet_18.member(LA(1))) && (true) && (true))&&( inAttributeContent )) { mATTRIBUTE_CONTENT(true); attr=_returnToken; if ( inputState.guessing==0 ) { _ttype = ATTRIBUTE_CONTENT; } } else if (((LA(1)=='"') && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) { mQUOT(false); if ( inputState.guessing==0 ) { _ttype = QUOT; } } else if (((_tokenSet_19.member(LA(1))) && (true) && (true))&&( inElementContent )) { mELEMENT_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = ELEMENT_CONTENT; } } else if ((LA(1)=='\t'||LA(1)=='\n'||LA(1)=='\r'||LA(1)==' ') && (true) && (true)) { mWS(false); if ( inputState.guessing==0 ) { if (wsExplicit) { _ttype = WS; text.setLength(_begin); text.append("WS"); } else _ttype = Token.SKIP; } } else if ((_tokenSet_20.member(LA(1))) && (true) && (true)) { mNCNAME(true); ncname=_returnToken; if ( inputState.guessing==0 ) { _ttype = ncname.getType(); } } else { boolean synPredMatched581 = false; if (((_tokenSet_15.member(LA(1))) && (true) && (true))) { int _m581 = mark(); synPredMatched581 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched581 = false; } rewind(_m581); inputState.guessing--; } if ( synPredMatched581 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched583 = false; if (((_tokenSet_15.member(LA(1))) && (true) && (true))) { int _m583 = mark(); synPredMatched583 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); } } catch (RecognitionException pe) { synPredMatched583 = false; } rewind(_m583); inputState.guessing--; } if ( synPredMatched583 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched585 = false; if (((LA(1)=='.') && (true) && (true))) { int _m585 = mark(); synPredMatched585 = true; inputState.guessing++; try { { match('.'); } } catch (RecognitionException pe) { synPredMatched585 = false; } rewind(_m585); inputState.guessing--; } if ( synPredMatched585 ) { mSELF(false); if ( inputState.guessing==0 ) { _ttype = SELF; } } else { boolean synPredMatched592 = false; if (((_tokenSet_15.member(LA(1))) && (true) && (true))) { int _m592 = mark(); synPredMatched592 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); match('.'); } } catch (RecognitionException pe) { synPredMatched592 = false; } rewind(_m592); inputState.guessing--; } if ( synPredMatched592 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else if ((_tokenSet_3.member(LA(1))) && (true) && (true)) { mINTEGER_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = INTEGER_LITERAL; } } else if ((LA(1)=='/') && (true) && (true)) { mSLASH(false); if ( inputState.guessing==0 ) { _ttype = SLASH; } } else if ((LA(1)==':') && (true) && (true)) { mCOLON(false); if ( inputState.guessing==0 ) { _ttype = COLON; } } else if ((LA(1)==',') && (true) && (true)) { mCOMMA(false); if ( inputState.guessing==0 ) { _ttype = COMMA; } } else if ((LA(1)==';') && (true) && (true)) { mSEMICOLON(false); if ( inputState.guessing==0 ) { _ttype = SEMICOLON; } } else if ((LA(1)=='*') && (true) && (true)) { mSTAR(false); if ( inputState.guessing==0 ) { _ttype = STAR; } } else if ((LA(1)=='?') && (true) && (true)) { mQUESTION(false); if ( inputState.guessing==0 ) { _ttype = QUESTION; } } else if ((LA(1)=='+') && (true) && (true)) { mPLUS(false); if ( inputState.guessing==0 ) { _ttype = PLUS; } } else if ((LA(1)=='-') && (true) && (true)) { mMINUS(false); if ( inputState.guessing==0 ) { _ttype = MINUS; } } else if ((LA(1)=='[') && (true) && (true)) { mLPPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPPAREN; } } else if ((LA(1)==']') && (true) && (true)) { mRPPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPPAREN; } } else if ((LA(1)=='(') && (true) && (true)) { mLPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPAREN; } } else if ((LA(1)==')') && (true) && (true)) { mRPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPAREN; } } else if ((LA(1)=='|') && (true) && (true)) { mUNION(false); if ( inputState.guessing==0 ) { _ttype = UNION; } } else if ((LA(1)=='@') && (true) && (true)) { mAT(false); if ( inputState.guessing==0 ) { _ttype = AT; } } else if ((LA(1)=='$') && (true) && (true)) { mDOLLAR(false); if ( inputState.guessing==0 ) { _ttype = DOLLAR; } } else if ((LA(1)=='=') && (true) && (true)) { mEQ(false); if ( inputState.guessing==0 ) { _ttype = EQ; } } else if ((LA(1)=='>') && (true) && (true)) { mGT(false); if ( inputState.guessing==0 ) { _ttype = GT; } } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } }}}}}}}} if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/bb9e62961cd54f3562f2a8e34ebe8f272b7123b5/XQueryLexer.java/buggy/src/org/exist/xquery/parser/XQueryLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
19252,
67,
8412,
31,
202,
202,
474,
389,
5688,
1016,
31,
202,
202,
1345,
1604,
33,
2011,
31,
202,
202,
1345,
8194,
529,
33,
2011,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
2292,
4278,
202,
202,
95,
1082,
202,
81,
13394,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
25083,
202,
267,
1046,
1350,
33,
629,
31,
25083,
202,
67,
88,
723,
273,
511,
26314,
31,
6862,
9506,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
9571,
30,
202,
202,
95,
1082,
202,
81,
11529,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
9506,
202,
67,
88,
723,
273,
534,
26314,
31,
1082,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
1886,
30,
1082,
202,
430,
14015,
2534,
12,
21,
13,
18920,
2668,
13,
597,
261,
2534,
12,
22,
13,
18920,
2497,
13,
597,
261,
67,
2316,
694,
67,
27,
18,
5990,
12,
2534,
12,
23,
3719,
3719,
288,
9506,
202,
81,
2294,
8025,
67,
12200,
12,
5743,
1769,
9506,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
19252,
67,
8412,
31,
202,
202,
474,
389,
5688,
1016,
31,
202,
202,
1345,
1604,
33,
2011,
31,
202,
202,
1345,
8194,
529,
33,
2011,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
2292,
4278,
202,
202,
95,
1082,
202,
81,
13394,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
2
] |
if (checkSelf) check(n++ < occupiedCount);
|
if (checkSelf) { if (n >= occupiedCount) Context.codeBug(); ++n; }
|
private int ensureIndex(int key, boolean intType) { int index = -1; int firstDeleted = -1; int[] keys = this.keys; if (keys != null) { int fraction = key * A; index = fraction >>> (32 - power); int entry = keys[index]; if (entry == key) { return index; } if (entry != EMPTY) { if (entry == DELETED) { firstDeleted = index; } // Search in table after first failed attempt int mask = (1 << power) - 1; int step = tableLookupStep(fraction, mask, power); int n = 0; do { if (checkSelf) check(n++ < occupiedCount); index = (index + step) & mask; entry = keys[index]; if (entry == key) { return index; } if (entry == DELETED && firstDeleted < 0) { firstDeleted = index; } } while (entry != EMPTY); } } // Inserting of new key if (checkSelf) check(keys == null || keys[index] == EMPTY); if (firstDeleted >= 0) { index = firstDeleted; } else { // Need to consume empty entry: check occupation level if (keys == null || occupiedCount * 4 >= (1 << power) * 3) { // Too litle unused entries: rehash rehashTable(intType); keys = this.keys; index = getFreeIndex(key); } ++occupiedCount; } keys[index] = key; ++keyCount; return index; }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/b5141d614d4ae3c0a7455df83312be1a30e1b2e6/UintMap.java/clean/js/rhino/src/org/mozilla/javascript/UintMap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
3387,
1016,
12,
474,
498,
16,
1250,
509,
559,
13,
288,
3639,
509,
770,
273,
300,
21,
31,
3639,
509,
1122,
7977,
273,
300,
21,
31,
3639,
509,
8526,
1311,
273,
333,
18,
2452,
31,
3639,
309,
261,
2452,
480,
446,
13,
288,
5411,
509,
8330,
273,
498,
380,
432,
31,
5411,
770,
273,
8330,
4080,
261,
1578,
300,
7212,
1769,
5411,
509,
1241,
273,
1311,
63,
1615,
15533,
5411,
309,
261,
4099,
422,
498,
13,
288,
327,
770,
31,
289,
5411,
309,
261,
4099,
480,
8984,
13,
288,
7734,
309,
261,
4099,
422,
8568,
40,
13,
288,
1122,
7977,
273,
770,
31,
289,
7734,
368,
5167,
316,
1014,
1839,
1122,
2535,
4395,
7734,
509,
3066,
273,
261,
21,
2296,
7212,
13,
300,
404,
31,
7734,
509,
2235,
273,
1014,
6609,
4160,
12,
16744,
16,
3066,
16,
7212,
1769,
7734,
509,
290,
273,
374,
31,
7734,
741,
288,
10792,
309,
261,
1893,
10084,
13,
288,
309,
261,
82,
1545,
18928,
2092,
1380,
13,
1772,
18,
710,
19865,
5621,
965,
82,
31,
289,
10792,
770,
273,
261,
1615,
397,
2235,
13,
473,
3066,
31,
10792,
1241,
273,
1311,
63,
1615,
15533,
10792,
309,
261,
4099,
422,
498,
13,
288,
327,
770,
31,
289,
10792,
309,
261,
4099,
422,
8568,
40,
597,
1122,
7977,
411,
374,
13,
288,
13491,
1122,
7977,
273,
770,
31,
10792,
289,
7734,
289,
1323,
261,
4099,
480,
8984,
1769,
5411,
289,
3639,
289,
3639,
368,
8040,
310,
434,
394,
498,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
3387,
1016,
12,
474,
498,
16,
1250,
509,
559,
13,
288,
3639,
509,
770,
273,
300,
21,
31,
3639,
509,
1122,
7977,
273,
300,
21,
31,
3639,
509,
8526,
1311,
273,
333,
18,
2452,
31,
3639,
309,
261,
2452,
480,
446,
13,
288,
5411,
509,
8330,
273,
498,
380,
432,
31,
5411,
770,
273,
8330,
4080,
261,
1578,
300,
7212,
1769,
5411,
509,
1241,
273,
1311,
63,
1615,
15533,
5411,
309,
261,
4099,
422,
498,
13,
288,
327,
770,
31,
289,
5411,
309,
261,
4099,
480,
8984,
13,
288,
7734,
309,
261,
4099,
422,
8568,
40,
13,
288,
1122,
7977,
273,
770,
31,
289,
7734,
368,
5167,
316,
1014,
1839,
1122,
2535,
4395,
7734,
509,
3066,
2
] |
cr.outputline("void (*"+funptr.getSafeSymbol()+") ("+name+"_state *,"+name+"*,RepairHash *"+parttype+"int,int,int)="+"(void (*) ("+name+"_state *,"+name+"*,RepairHash *"+parttype+"int,int,int)) "+tmpptr.getSafeSymbol());
|
cr.outputline("void (*"+funptr.getSafeSymbol()+") ("+name+"_state *,"+name+"*,RepairHash *"+parttype+",int,int,int)="+"(void (*) ("+name+"_state *,"+name+"*,RepairHash *"+parttype+",int,int,int)) "+tmpptr.getSafeSymbol());
|
public void generate_dispatch(CodeWriter cr, RelationDescriptor rd, String leftvar, String rightvar) { boolean usageimage=rd.testUsage(RelationDescriptor.IMAGE); boolean usageinvimage=rd.testUsage(RelationDescriptor.INVIMAGE); if (!(usageinvimage||usageimage)) /* not used at all*/ return; cr.outputline("// RELATION DISPATCH "); cr.outputline("if ("+oldmodel.getSafeSymbol()+"&&"); if (usageimage) cr.outputline("!"+oldmodel.getSafeSymbol() +"->"+rd.getJustSafeSymbol()+"_hash->contains("+leftvar+","+rightvar+"))"); else cr.outputline("!"+oldmodel.getSafeSymbol() +"->"+rd.getJustSafeSymbol()+"_hashinv->contains("+rightvar+","+leftvar+"))"); cr.startblock(); { /* Adding new item */ /* Perform safety checks */ cr.outputline("if ("+repairtable.getSafeSymbol()+"&&"); cr.outputline(repairtable.getSafeSymbol()+"->containsrelation("+rd.getNum()+","+currentrule.getNum()+","+leftvar+","+rightvar+"))"); cr.startblock(); { /* Have update to call into */ VarDescriptor mdfyptr=VarDescriptor.makeNew("modifyptr"); cr.outputline("int "+mdfyptr.getSafeSymbol()+"="+repairtable.getSafeSymbol()+"->getrelation2("+rd.getNum()+","+currentrule.getNum()+","+leftvar+","+rightvar+");"); String parttype=""; for(int i=0;i<currentrule.numQuantifiers();i++) { if (currentrule.getQuantifier(i) instanceof RelationQuantifier) parttype=parttype+", int, int"; else parttype=parttype+", int"; } VarDescriptor funptr=VarDescriptor.makeNew("updateptr"); VarDescriptor tmpptr=VarDescriptor.makeNew("tempupdateptr"); String methodcall="("+funptr.getSafeSymbol()+") (this,"+oldmodel.getSafeSymbol()+","+repairtable.getSafeSymbol(); for(int i=0;i<currentrule.numQuantifiers();i++) { Quantifier q=currentrule.getQuantifier(i); if (q instanceof SetQuantifier) { SetQuantifier sq=(SetQuantifier) q; methodcall+=","+sq.getVar().getSafeSymbol(); } else if (q instanceof RelationQuantifier) { RelationQuantifier rq=(RelationQuantifier) q; methodcall+=","+rq.x.getSafeSymbol(); methodcall+=","+rq.y.getSafeSymbol(); } else if (q instanceof ForQuantifier) { ForQuantifier fq=(ForQuantifier) q; methodcall+=","+fq.getVar().getSafeSymbol(); } } cr.outputline("void *"+tmpptr.getSafeSymbol()+"="); cr.outputline("(void *) "+repairtable.getSafeSymbol()+"->getrelation("+rd.getNum()+","+currentrule.getNum()+","+leftvar+","+rightvar+");"); cr.outputline("if ("+mdfyptr.getSafeSymbol()+")"); { cr.startblock(); cr.outputline("void (*"+funptr.getSafeSymbol()+") ("+name+"_state *,"+name+"*,RepairHash *"+parttype+"int,int,int)="+"(void (*) ("+name+"_state *,"+name+"*,RepairHash *"+parttype+"int,int,int)) "+tmpptr.getSafeSymbol()); cr.outputline(methodcall+leftvar+", "+rightvar+", "+mdfyptr.getSafeSymbol() +");"); cr.endblock(); } cr.outputline("else "); { cr.startblock(); cr.outputline("void (*"+funptr.getSafeSymbol()+") ("+name+"_state *,"+name+"*,RepairHash *"+parttype+")="+"(void (*) ("+name+"_state *,"+name+"*,RepairHash *"+parttype+")) "+tmpptr.getSafeSymbol()); cr.outputline(methodcall+");"); cr.endblock(); } cr.outputline("goto rebuild;"); } cr.endblock(); /* Build standard compensation actions */ if (need_compensation(currentrule)) { UpdateNode un=find_compensation(currentrule); String name=(String)updatenames.get(un); usedupdates.add(un); /* Mark as used */ String methodcall=name+"(this,"+oldmodel.getSafeSymbol()+","+repairtable.getSafeSymbol(); for(int i=0;i<currentrule.numQuantifiers();i++) { Quantifier q=currentrule.getQuantifier(i); if (q instanceof SetQuantifier) { SetQuantifier sq=(SetQuantifier) q; methodcall+=","+sq.getVar().getSafeSymbol(); } else if (q instanceof RelationQuantifier) { RelationQuantifier rq=(RelationQuantifier) q; methodcall+=","+rq.x.getSafeSymbol(); methodcall+=","+rq.y.getSafeSymbol(); } else if (q instanceof ForQuantifier) { ForQuantifier fq=(ForQuantifier) q; methodcall+=","+fq.getVar().getSafeSymbol(); } } methodcall+=");"; cr.outputline(methodcall); cr.outputline("goto rebuild;"); } } cr.endblock(); String addeditem = (VarDescriptor.makeNew("addeditem")).getSafeSymbol(); cr.outputline("int " + addeditem + ";"); if (rd.testUsage(RelationDescriptor.IMAGE)) { cr.outputline(addeditem + " = " + rd.getSafeSymbol() + "_hash->add((int)" + leftvar + ", (int)" + rightvar+ ");"); } if (rd.testUsage(RelationDescriptor.INVIMAGE)) { cr.outputline(addeditem + " = " + rd.getSafeSymbol() + "_hashinv->add((int)" + rightvar + ", (int)" + leftvar + ");"); } Vector dispatchrules = getrulelist(rd); Set toremove=new HashSet(); for(int i=0;i<dispatchrules.size();i++) { Rule r=(Rule)dispatchrules.get(i); if (!ruleset.contains(r)) toremove.add(r); } dispatchrules.removeAll(toremove); if (dispatchrules.size() == 0) { cr.outputline("// nothing to dispatch"); return; } cr.outputline("if (" + addeditem + ")"); cr.startblock(); for(int i = 0; i < dispatchrules.size(); i++) { Rule rule = (Rule) dispatchrules.elementAt(i); if (rule.getGuardExpr().getRequiredDescriptors().contains(rd)) { /* Guard depends on this relation, so we recomput everything */ cr.outputline(worklist.getSafeSymbol()+"->add("+rule.getNum()+",-1,0,0);"); } else { for (int j=0;j<rule.numQuantifiers();j++) { Quantifier q=rule.getQuantifier(j); if (q.getRequiredDescriptors().contains(rd)) { /* Generate add */ cr.outputline(worklist.getSafeSymbol()+"->add("+rule.getNum()+","+j+","+leftvar+","+rightvar+");"); } } } } cr.endblock(); }
|
2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/6091181d3fe178a6044ef58ac01675807545ad69/RepairGenerator.java/clean/RepairCompiler/MCC/IR/RepairGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2103,
67,
10739,
12,
1085,
2289,
4422,
16,
7317,
3187,
9437,
16,
514,
2002,
1401,
16,
514,
2145,
1401,
13,
288,
202,
6494,
4084,
2730,
33,
13623,
18,
3813,
5357,
12,
3963,
3187,
18,
13603,
1769,
202,
6494,
4084,
5768,
2730,
33,
13623,
18,
3813,
5357,
12,
3963,
3187,
18,
706,
58,
13603,
1769,
202,
430,
16051,
12,
9167,
5768,
2730,
20081,
9167,
2730,
3719,
1748,
486,
1399,
622,
777,
5549,
202,
565,
327,
31,
3639,
4422,
18,
2844,
1369,
2932,
759,
31595,
3690,
3118,
5858,
315,
1769,
202,
3353,
18,
2844,
1369,
2932,
430,
7566,
15,
1673,
2284,
18,
588,
9890,
5335,
1435,
9078,
10,
10,
8863,
202,
430,
261,
9167,
2730,
13,
202,
565,
4422,
18,
2844,
1369,
2932,
4442,
15,
1673,
2284,
18,
588,
9890,
5335,
1435,
397,
6,
2122,
6,
15,
13623,
18,
588,
19642,
9890,
5335,
1435,
9078,
67,
2816,
2122,
12298,
2932,
15,
4482,
1401,
15,
15937,
15,
4083,
1401,
15,
7923,
2225,
1769,
202,
12107,
202,
565,
4422,
18,
2844,
1369,
2932,
4442,
15,
1673,
2284,
18,
588,
9890,
5335,
1435,
397,
6,
2122,
6,
15,
13623,
18,
588,
19642,
9890,
5335,
1435,
9078,
67,
2816,
5768,
2122,
12298,
2932,
15,
4083,
1401,
15,
15937,
15,
4482,
1401,
15,
7923,
2225,
1769,
202,
3353,
18,
1937,
2629,
5621,
288,
202,
565,
1748,
21240,
394,
761,
1195,
202,
565,
1748,
11217,
24179,
4271,
1195,
202,
565,
4422,
18,
2844,
1369,
2932,
430,
7566,
15,
266,
6017,
2121,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2103,
67,
10739,
12,
1085,
2289,
4422,
16,
7317,
3187,
9437,
16,
514,
2002,
1401,
16,
514,
2145,
1401,
13,
288,
202,
6494,
4084,
2730,
33,
13623,
18,
3813,
5357,
12,
3963,
3187,
18,
13603,
1769,
202,
6494,
4084,
5768,
2730,
33,
13623,
18,
3813,
5357,
12,
3963,
3187,
18,
706,
58,
13603,
1769,
202,
430,
16051,
12,
9167,
5768,
2730,
20081,
9167,
2730,
3719,
1748,
486,
1399,
622,
777,
5549,
202,
565,
327,
31,
3639,
4422,
18,
2844,
1369,
2932,
759,
31595,
3690,
3118,
5858,
315,
1769,
202,
3353,
18,
2844,
1369,
2932,
430,
7566,
15,
1673,
2284,
18,
588,
9890,
5335,
1435,
9078,
10,
10,
8863,
202,
430,
261,
9167,
2730,
13,
202,
565,
2
] |
private void createOverviewSection(Composite parent, FormToolkit toolkit) { Section section = toolkit.createSection(parent, ExpandableComposite.TITLE_BAR); section.setText(DESCRIPTION_OVERVIEW); section.setLayout(new TableWrapLayout()); section.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); section.addExpansionListener(new IExpansionListener() { public void expansionStateChanging(ExpansionEvent e) { form.reflow(true); } public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); Composite container = toolkit.createComposite(section); section.setClient(container); TableWrapLayout layout = new TableWrapLayout(); layout.numColumns = 2; container.setLayout(layout); container.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); Label l = toolkit.createLabel(container, "Description:"); l.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); description = toolkit.createText(container, task.getDescription(true), SWT.BORDER); TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB); // td.colspan = 2; description.setLayoutData(td); if (!task.isLocal()) { description.setEnabled(false); } else { description.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { markDirty(true); } }); } Label urlLabel = toolkit.createLabel(container, "Web Link:"); urlLabel.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); issueReportURL = toolkit.createText(container, task.getUrl(), SWT.BORDER); issueReportURL.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); // issueReportURL.setForeground(HYPERLINK); if (!task.isLocal()) { issueReportURL.setEditable(false); } else { issueReportURL.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { markDirty(true); } }); } Composite completedComposite = toolkit.createComposite(container); completedComposite.setLayout(new GridLayout(2, false)); Label label = toolkit.createLabel(completedComposite, "Completed:"); label.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); completedCheckbox = toolkit.createButton(completedComposite, "", SWT.CHECK); completedCheckbox.setSelection(task.isCompleted()); completedCheckbox.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { if (!completedCheckbox.getSelection()) { if (!endDate.isDisposed()) { endDate.setText(""); } } else { if (!endDate.isDisposed()) { endDate.setText(getTaskDateString(task)); } } TaskInfoEditor.this.markDirty(true); } }); Composite priorityComposite = toolkit.createComposite(container); priorityComposite.setLayout(new GridLayout(2, false)); Label priorityLabel = toolkit.createLabel(priorityComposite, "Priority:"); priorityLabel.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); priorityCombo = new Combo(priorityComposite, SWT.DROP_DOWN); // Populate the combo box with priority levels for (String priorityLevel : TaskListView.PRIORITY_LEVELS) { priorityCombo.add(priorityLevel); } int selectionIndex = priorityCombo.indexOf(task.getPriority()); priorityCombo.select(selectionIndex); if (!task.isLocal()) { priorityCombo.setEnabled(false); } else { priorityCombo.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { TaskInfoEditor.this.markDirty(true); } }); } }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/558f40fad2aeb69f17a96cb2eabee4fb34ccd036/TaskInfoEditor.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/TaskInfoEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
26648,
5285,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
2938,
16,
16429,
429,
9400,
18,
14123,
67,
21908,
1769,
202,
202,
3464,
18,
542,
1528,
12,
15911,
67,
12959,
12145,
1769,
202,
202,
3464,
18,
542,
3744,
12,
2704,
3555,
2964,
3744,
10663,
202,
202,
3464,
18,
542,
3744,
751,
12,
2704,
3555,
2964,
751,
12,
1388,
2964,
751,
18,
29818,
67,
6997,
2090,
10019,
202,
202,
3464,
18,
1289,
2966,
12162,
2223,
12,
2704,
467,
2966,
12162,
2223,
1435,
288,
1082,
202,
482,
918,
17965,
1119,
782,
18183,
12,
2966,
12162,
1133,
425,
13,
288,
9506,
202,
687,
18,
1734,
821,
12,
3767,
1769,
1082,
202,
97,
1082,
202,
482,
918,
17965,
1119,
5033,
12,
2966,
12162,
1133,
425,
13,
288,
9506,
202,
687,
18,
1734,
821,
12,
3767,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
9400,
1478,
273,
5226,
8691,
18,
2640,
9400,
12,
3464,
1769,
202,
202,
3464,
18,
542,
1227,
12,
3782,
1769,
202,
202,
1388,
2964,
3744,
3511,
273,
394,
3555,
2964,
3744,
5621,
202,
202,
6741,
18,
2107,
3380,
273,
576,
31,
202,
202,
3782,
18,
542,
3744,
12,
6741,
1769,
202,
202,
3782,
18,
542,
3744,
751,
12,
2704,
3555,
2964,
751,
12,
1388,
2964,
751,
18,
29818,
67,
6997,
2090,
10019,
202,
202,
2224,
328,
273,
5226,
8691,
18,
2640,
2224,
12,
3782,
16,
315,
3291,
2773,
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,
752,
26648,
5285,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
2938,
16,
16429,
429,
9400,
18,
14123,
67,
21908,
1769,
202,
202,
3464,
18,
542,
1528,
12,
15911,
67,
12959,
12145,
1769,
202,
202,
3464,
18,
542,
3744,
12,
2704,
3555,
2964,
3744,
10663,
202,
202,
3464,
18,
542,
3744,
751,
12,
2704,
3555,
2964,
751,
12,
1388,
2964,
751,
18,
29818,
67,
6997,
2090,
10019,
202,
202,
3464,
18,
1289,
2966,
12162,
2223,
12,
2704,
467,
2966,
12162,
2223,
1435,
288,
1082,
202,
482,
918,
17965,
1119,
782,
18183,
12,
2966,
12162,
1133,
425,
13,
288,
9506,
202,
687,
2
] |
||
private SipStack createStack(Properties properties) throws PeerUnavailableException { try { // create parameters argument to identify constructor Class[] paramTypes = new Class[1]; paramTypes[0] = Class.forName("java.util.Properties"); // get constructor of SipSatck in order to instantiate Constructor sipStackConstructor = Class.forName( getPathName() + ".javax.sip.SipStackImpl").getConstructor( paramTypes); // Wrap properties object in order to pass to constructor of // SipSatck Object[] conArgs = new Object[1]; conArgs[0] = properties; // Creates a new instance of SipStack Class with the supplied // properties. SipStack sipStack = (SipStack) sipStackConstructor.newInstance(conArgs); sipStackList.add(sipStack); String name = properties.getProperty("javax.sip.STACK_NAME"); this.sipStackByName.put(name, sipStack); return sipStack; } catch (Exception e) { String errmsg = "The Peer SIP Stack: " + getPathName() + ".javax.sip.SipStackImpl" + " could not be instantiated. Ensure the Path Name has been set."; throw new PeerUnavailableException(errmsg, e); } }
|
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/0282820aed7903986d1e63d08c8c15d092df3925/SipFactory.java/buggy/trunk/src/javax/sip/SipFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
13475,
2624,
752,
2624,
12,
2297,
1790,
13,
1082,
202,
15069,
10669,
15357,
288,
202,
202,
698,
288,
1082,
202,
759,
752,
1472,
1237,
358,
9786,
3885,
1082,
202,
797,
8526,
21265,
273,
394,
1659,
63,
21,
15533,
1082,
202,
891,
2016,
63,
20,
65,
273,
1659,
18,
1884,
461,
2932,
6290,
18,
1367,
18,
2297,
8863,
1082,
202,
759,
336,
3885,
434,
13475,
15163,
363,
316,
1353,
358,
10275,
1082,
202,
6293,
10341,
2624,
6293,
273,
1659,
18,
1884,
461,
12,
6862,
202,
588,
743,
461,
1435,
397,
3552,
28384,
18,
28477,
18,
17550,
2624,
2828,
20387,
588,
6293,
12,
6862,
202,
891,
2016,
1769,
1082,
202,
759,
4266,
1790,
733,
316,
1353,
358,
1342,
358,
3885,
434,
1082,
202,
759,
13475,
15163,
363,
1082,
202,
921,
8526,
356,
2615,
273,
394,
1033,
63,
21,
15533,
1082,
202,
591,
2615,
63,
20,
65,
273,
1790,
31,
1082,
202,
759,
10210,
279,
394,
791,
434,
13475,
2624,
1659,
598,
326,
4580,
1082,
202,
759,
1790,
18,
1082,
202,
17550,
2624,
225,
10341,
2624,
273,
261,
17550,
2624,
13,
10341,
2624,
6293,
18,
2704,
1442,
12,
591,
2615,
1769,
25083,
202,
28477,
2624,
682,
18,
1289,
12,
28477,
2624,
1769,
1082,
202,
780,
508,
273,
1790,
18,
588,
1396,
2932,
28384,
18,
28477,
18,
21971,
67,
1985,
8863,
1082,
202,
2211,
18,
28477,
2624,
5911,
18,
458,
12,
529,
16,
10341,
2624,
1769,
1082,
202,
2463,
10341,
2624,
31,
202,
202,
97,
1044,
261,
503,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
13475,
2624,
752,
2624,
12,
2297,
1790,
13,
1082,
202,
15069,
10669,
15357,
288,
202,
202,
698,
288,
1082,
202,
759,
752,
1472,
1237,
358,
9786,
3885,
1082,
202,
797,
8526,
21265,
273,
394,
1659,
63,
21,
15533,
1082,
202,
891,
2016,
63,
20,
65,
273,
1659,
18,
1884,
461,
2932,
6290,
18,
1367,
18,
2297,
8863,
1082,
202,
759,
336,
3885,
434,
13475,
15163,
363,
316,
1353,
358,
10275,
1082,
202,
6293,
10341,
2624,
6293,
273,
1659,
18,
1884,
461,
12,
6862,
202,
588,
743,
461,
1435,
397,
3552,
28384,
18,
28477,
18,
17550,
2624,
2828,
20387,
588,
6293,
12,
6862,
202,
891,
2016,
1769,
1082,
202,
759,
4266,
1790,
733,
316,
1353,
358,
1342,
2
] |
||
case 41:
|
case 43:
|
public final java_cup.runtime.Symbol CUP$Parser$do_action( int CUP$Parser$act_num, java_cup.runtime.lr_parser CUP$Parser$parser, java.util.Stack CUP$Parser$stack, int CUP$Parser$top) throws java.lang.Exception { /* Symbol object for return from actions */ java_cup.runtime.Symbol CUP$Parser$result; /* select the action based on the action number */ switch (CUP$Parser$act_num) { /*. . . . . . . . . . . . . . . . . . . .*/ case 93: // new_non_term_id ::= ID { String RESULT = null; int idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token id = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = (String) id.getValue(); CUP$Parser$result = new java_cup.runtime.Symbol(40/*new_non_term_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 92: // new_term_id ::= ID { String RESULT = null; int idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token id = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = (String) id.getValue(); CUP$Parser$result = new java_cup.runtime.Symbol(41/*new_term_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 91: // type_id ::= type_id LBRACK RBRACK { String RESULT = null; int t_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int t_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; String t_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; RESULT = t_id + "[]"; CUP$Parser$result = new java_cup.runtime.Symbol(39/*type_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 90: // type_id ::= multipart_id { String RESULT = null; int m_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int m_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String m_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = m_id; CUP$Parser$result = new java_cup.runtime.Symbol(39/*type_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 89: // import_id ::= multipart_id { String RESULT = null; int m_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int m_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String m_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = m_id; CUP$Parser$result = new java_cup.runtime.Symbol(35/*import_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 88: // import_id ::= multipart_id DOT STAR { String RESULT = null; int m_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int m_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; String m_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; RESULT = m_id + ".*"; CUP$Parser$result = new java_cup.runtime.Symbol(35/*import_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 87: // multipart_id ::= robust_id { String RESULT = null; int r_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int r_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String r_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = r_id; CUP$Parser$result = new java_cup.runtime.Symbol(37/*multipart_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 86: // multipart_id ::= multipart_id DOT robust_id { String RESULT = null; int m_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int m_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; String m_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int r_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int r_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String r_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = m_id + "." + r_id; CUP$Parser$result = new java_cup.runtime.Symbol(37/*multipart_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 85: // start_spec ::= empty { String RESULT = null; RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(38/*start_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 84: // start_spec ::= START WITH nt_id SEMI { String RESULT = null; int start_nameleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int start_nameright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String start_name = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = start_name; CUP$Parser$result = new java_cup.runtime.Symbol(38/*start_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 83: // term_id ::= symbol_id { String RESULT = null; int symleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int symright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String sym = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = sym; CUP$Parser$result = new java_cup.runtime.Symbol(32/*term_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 82: // terminal_id ::= term_id { String RESULT = null; int symleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int symright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String sym = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = sym; CUP$Parser$result = new java_cup.runtime.Symbol(31/*terminal_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 81: // terminal_list ::= terminal_id { Vector RESULT = null; int tleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int tright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String t = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Vector t_list = new Vector(); t_list.addElement(t); RESULT = t_list; CUP$Parser$result = new java_cup.runtime.Symbol(48/*terminal_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 80: // terminal_list ::= terminal_list COMMA terminal_id { Vector RESULT = null; int t_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int t_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Vector t_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int tleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int tright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String t = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; t_list.addElement(t); RESULT = t_list; CUP$Parser$result = new java_cup.runtime.Symbol(48/*terminal_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 79: // preced ::= PRECEDENCE NONASSOC terminal_list SEMI { Object RESULT = null; int t_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int t_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector t_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new Precedence(Precedence.NONASSOC, t_list); CUP$Parser$result = new java_cup.runtime.Symbol(12/*preced*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 78: // preced ::= PRECEDENCE RIGHT terminal_list SEMI { Object RESULT = null; int t_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int t_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector t_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new Precedence(Precedence.RIGHT, t_list); CUP$Parser$result = new java_cup.runtime.Symbol(12/*preced*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 77: // preced ::= PRECEDENCE LEFT terminal_list SEMI { Object RESULT = null; int t_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int t_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector t_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new Precedence(Precedence.LEFT, t_list); CUP$Parser$result = new java_cup.runtime.Symbol(12/*preced*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 76: // precedence_l ::= preced { Vector RESULT = null; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object p = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Vector p_l = new Vector(); p_l.addElement(p); RESULT = p_l; CUP$Parser$result = new java_cup.runtime.Symbol(49/*precedence_l*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 75: // precedence_l ::= precedence_l preced { Vector RESULT = null; int p_lleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int p_lright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector p_l = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object p = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; p_l.addElement(p); RESULT = p_l; CUP$Parser$result = new java_cup.runtime.Symbol(49/*precedence_l*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 74: // precedence_list ::= empty { Vector RESULT = null; RESULT = new Vector(); CUP$Parser$result = new java_cup.runtime.Symbol(50/*precedence_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 73: // precedence_list ::= precedence_l { Vector RESULT = null; int p_lleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int p_lright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector p_l = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = p_l; CUP$Parser$result = new java_cup.runtime.Symbol(50/*precedence_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 72: // non_term_name_list ::= new_non_term_id { Vector RESULT = null; int n_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int n_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String n_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Vector nnt_list = new Vector(); nnt_list.addElement(n_id); RESULT = nnt_list; CUP$Parser$result = new java_cup.runtime.Symbol(42/*non_term_name_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 71: // non_term_name_list ::= non_term_name_list COMMA new_non_term_id { Vector RESULT = null; int ntn_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int ntn_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Vector ntn_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int n_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int n_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String n_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; ntn_list.addElement(n_id); RESULT = ntn_list; CUP$Parser$result = new java_cup.runtime.Symbol(42/*non_term_name_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 70: // term_name_list ::= new_term_id { Vector RESULT = null; int n_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int n_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String n_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Vector tn_list = new Vector(); tn_list.addElement(n_id); RESULT = tn_list; CUP$Parser$result = new java_cup.runtime.Symbol(44/*term_name_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 69: // term_name_list ::= term_name_list COMMA new_term_id { Vector RESULT = null; int tn_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int tn_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Vector tn_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int n_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int n_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String n_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; tn_list.addElement(n_id); RESULT = tn_list; CUP$Parser$result = new java_cup.runtime.Symbol(44/*term_name_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 68: // declares_non_term ::= non_term_name_list SEMI { Vector RESULT = null; int ntn_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int ntn_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector ntn_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = ntn_list; CUP$Parser$result = new java_cup.runtime.Symbol(52/*declares_non_term*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 67: // declares_term ::= term_name_list SEMI { Vector RESULT = null; int tn_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int tn_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector tn_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = tn_list; CUP$Parser$result = new java_cup.runtime.Symbol(51/*declares_term*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 66: // symbol ::= non_terminal declares_non_term { SymbolList RESULT = null; int non_termleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int non_termright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector non_term = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new SymbolList(SymbolList.NONTERMINAL, null, non_term); CUP$Parser$result = new java_cup.runtime.Symbol(53/*symbol*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 65: // symbol ::= non_terminal type_id declares_non_term { SymbolList RESULT = null; int typeleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int typeright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String type = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int non_termleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int non_termright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector non_term = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new SymbolList(SymbolList.NONTERMINAL, type, non_term); CUP$Parser$result = new java_cup.runtime.Symbol(53/*symbol*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 64: // symbol ::= TERMINAL declares_term { SymbolList RESULT = null; int termleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int termright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector term = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new SymbolList(SymbolList.TERMINAL, null, term); CUP$Parser$result = new java_cup.runtime.Symbol(53/*symbol*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 63: // symbol ::= TERMINAL type_id declares_term { SymbolList RESULT = null; int typeleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int typeright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String type = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int termleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int termright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector term = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new SymbolList(SymbolList.TERMINAL, type, term); CUP$Parser$result = new java_cup.runtime.Symbol(53/*symbol*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 62: // symbol_list ::= symbol { Vector RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int sright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; SymbolList s = (SymbolList)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Vector s_list = new Vector(); s_list.addElement(s); RESULT = s_list; CUP$Parser$result = new java_cup.runtime.Symbol(45/*symbol_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 61: // symbol_list ::= symbol_list symbol { Vector RESULT = null; int s_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int s_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector s_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int sleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int sright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; SymbolList s = (SymbolList)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; s_list.addElement(s); RESULT = s_list; CUP$Parser$result = new java_cup.runtime.Symbol(45/*symbol_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 60: // scan_code ::= SCAN WITH CODE_STR opt_semi { Object RESULT = null; int user_codeleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int user_coderight = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Token user_code = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new ScanCode((String) user_code.getValue()); CUP$Parser$result = new java_cup.runtime.Symbol(11/*scan_code*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 59: // init_code ::= INIT WITH CODE_STR opt_semi { Object RESULT = null; int user_codeleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int user_coderight = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Token user_code = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new InitCode((String) user_code.getValue()); CUP$Parser$result = new java_cup.runtime.Symbol(10/*init_code*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 58: // parser_code_part ::= PARSER CODE CODE_STR opt_semi { Object RESULT = null; int user_codeleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int user_coderight = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Token user_code = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new ParserCode((String) user_code.getValue()); CUP$Parser$result = new java_cup.runtime.Symbol(9/*parser_code_part*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 57: // action_code_part ::= ACTION CODE CODE_STR opt_semi { Object RESULT = null; int user_codeleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int user_coderight = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Token user_code = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new ActionCode((String) user_code.getValue()); CUP$Parser$result = new java_cup.runtime.Symbol(6/*action_code_part*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 56: // code_part ::= scan_code { Object RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int sright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object s = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = s; CUP$Parser$result = new java_cup.runtime.Symbol(7/*code_part*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 55: // code_part ::= init_code { Object RESULT = null; int ileft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int iright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object i = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = i; CUP$Parser$result = new java_cup.runtime.Symbol(7/*code_part*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 54: // code_part ::= parser_code_part { Object RESULT = null; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object p = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = p; CUP$Parser$result = new java_cup.runtime.Symbol(7/*code_part*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 53: // code_part ::= action_code_part { Object RESULT = null; int aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object a = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = a; CUP$Parser$result = new java_cup.runtime.Symbol(7/*code_part*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 52: // code_parts ::= empty { Vector RESULT = null; RESULT = new Vector(); CUP$Parser$result = new java_cup.runtime.Symbol(47/*code_parts*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 51: // code_parts ::= code_parts code_part { Vector RESULT = null; int c_partsleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int c_partsright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector c_parts = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int cleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int cright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object c = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; c_parts.addElement(c); RESULT = c_parts; CUP$Parser$result = new java_cup.runtime.Symbol(47/*code_parts*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 50: // import_spec ::= IMPORT import_id SEMI { String RESULT = null; int ileft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int iright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String i = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = i; CUP$Parser$result = new java_cup.runtime.Symbol(36/*import_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 49: // import_list ::= empty { Vector RESULT = null; RESULT = new Vector(); CUP$Parser$result = new java_cup.runtime.Symbol(43/*import_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 48: // import_list ::= import_list import_spec { Vector RESULT = null; int i_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int i_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector i_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int ileft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int iright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String i = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; i_list.addElement(i); RESULT = i_list; CUP$Parser$result = new java_cup.runtime.Symbol(43/*import_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 47: // package_spec ::= empty { String RESULT = null; RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(34/*package_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 46: // package_spec ::= PACKAGE multipart_id SEMI { String RESULT = null; int m_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int m_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String m_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = m_id; CUP$Parser$result = new java_cup.runtime.Symbol(34/*package_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 45: // cup_spec ::= package_spec import_list code_parts symbol_list precedence_list start_spec production_list { Spec RESULT = null; int pkgleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-6)).left; int pkgright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-6)).right; String pkg = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-6)).value; int impleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).left; int impright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).right; Vector imp = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-5)).value; int codeleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)).left; int coderight = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)).right; Vector code = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-4)).value; int sym_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left; int sym_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right; Vector sym_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value; int prec_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int prec_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Vector prec_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int startleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int startright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String start = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int prod_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int prod_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector prod_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new CUPSpec(pkg, imp, code, sym_list, prec_list, start, prod_list); CUP$Parser$result = new java_cup.runtime.Symbol(15/*cup_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-6)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 44: // empty ::= { Object RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(4/*empty*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 43: // opt_semi ::= empty { Object RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(5/*opt_semi*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 42: // opt_semi ::= SEMI { Object RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(5/*opt_semi*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 41: // non_terminal ::= NONTERMINAL { Object RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(8/*non_terminal*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 40: // non_terminal ::= NON TERMINAL { Object RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(8/*non_terminal*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 39: // robust_id ::= ID { String RESULT = null; int the_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int the_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token the_id = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = (String)the_id.getValue(); CUP$Parser$result = new java_cup.runtime.Symbol(33/*robust_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 38: // label_id ::= robust_id { String RESULT = null; int the_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int the_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String the_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = the_id; CUP$Parser$result = new java_cup.runtime.Symbol(29/*label_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 37: // opt_label ::= empty { String RESULT = null; RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(30/*opt_label*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 36: // opt_label ::= COLON label_id { String RESULT = null; int labidleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int labidright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String labid = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = labid; CUP$Parser$result = new java_cup.runtime.Symbol(30/*opt_label*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 35: // prod_part ::= CODE_STR { Object RESULT = null; int code_strleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int code_strright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token code_str = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new SemanticAction((String)code_str.getValue()); CUP$Parser$result = new java_cup.runtime.Symbol(2/*prod_part*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 34: // prod_part ::= symbol_id opt_label { Object RESULT = null; int symidleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int symidright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String symid = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int labidleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int labidright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String labid = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new Nonterminal(symid, labid); CUP$Parser$result = new java_cup.runtime.Symbol(2/*prod_part*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 33: // prod_part_list ::= empty { Vector RESULT = null; RESULT = new Vector(); CUP$Parser$result = new java_cup.runtime.Symbol(18/*prod_part_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 32: // prod_part_list ::= prod_part_list prod_part { Vector RESULT = null; int aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector a = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object b = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; /* Vector a, (non)terminal/code b */ a.addElement(b); RESULT = a; CUP$Parser$result = new java_cup.runtime.Symbol(18/*prod_part_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 31: // rhs ::= prod_part_list { Object RESULT = null; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector p = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = p; CUP$Parser$result = new java_cup.runtime.Symbol(3/*rhs*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 30: // rhs ::= prod_part_list PERCENT_PREC term_id { Object RESULT = null; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Vector p = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int term_nameleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int term_nameright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String term_name = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; /* ???? */ CUP$Parser$result = new java_cup.runtime.Symbol(3/*rhs*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 29: // rhs_list ::= rhs { Vector RESULT = null; int rleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object r = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Vector r_list = new Vector(); r_list.addElement(r); RESULT = r_list; CUP$Parser$result = new java_cup.runtime.Symbol(19/*rhs_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 28: // rhs_list ::= rhs_list BAR rhs { Vector RESULT = null; int r_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int r_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Vector r_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int rleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int rright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Object r = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; r_list.addElement(r); RESULT = r_list; CUP$Parser$result = new java_cup.runtime.Symbol(19/*rhs_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 27: // symbol_id ::= ID { String RESULT = null; int the_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int the_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token the_id = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = (String)the_id.getValue(); CUP$Parser$result = new java_cup.runtime.Symbol(28/*symbol_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 26: // nt_id ::= ID { String RESULT = null; int the_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int the_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token the_id = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = (String)the_id.getValue(); CUP$Parser$result = new java_cup.runtime.Symbol(27/*nt_id*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 25: // production ::= nt_id COLON_COLON_EQUALS rhs_list SEMI { Production RESULT = null; int lhs_idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left; int lhs_idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right; String lhs_id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value; int rhsleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int rhsright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector rhs = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new Production(new Nonterminal(lhs_id), rhs); CUP$Parser$result = new java_cup.runtime.Symbol(25/*production*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 24: // production_list ::= production { Vector RESULT = null; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Production p = (Production)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Vector p_list = new Vector(); p_list.addElement(p); RESULT = p_list; CUP$Parser$result = new java_cup.runtime.Symbol(26/*production_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 23: // production_list ::= production_list production { Vector RESULT = null; int p_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int p_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector p_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Production p = (Production)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; p_list.addElement(p); RESULT = p_list; CUP$Parser$result = new java_cup.runtime.Symbol(26/*production_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 22: // transfer_list ::= TO nt_id LBRACE rhs_list RBRACE { Vector RESULT = null; int ntleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left; int ntright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right; String nt = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value; int rhsleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int rhsright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector rhs = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; Vector v = new Vector(); Production p = new Production(new Nonterminal(nt), rhs); v.addElement(p); RESULT = v; CUP$Parser$result = new java_cup.runtime.Symbol(20/*transfer_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 21: // transfer_list ::= transfer_list TO nt_id LBRACE rhs_list RBRACE { Vector RESULT = null; int tlleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).left; int tlright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).right; Vector tl = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-5)).value; int ntleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left; int ntright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right; String nt = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value; int rhsleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int rhsright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector rhs = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; Production p = new Production(new Nonterminal(nt), rhs); tl.addElement(p); RESULT = tl; CUP$Parser$result = new java_cup.runtime.Symbol(20/*transfer_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 20: // prod_modifier_opt ::= empty { Object RESULT = null; RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(1/*prod_modifier_opt*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 19: // prod_modifier_opt ::= OVERRIDE { Object RESULT = null; int aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token a = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = (String)a.getValue(); CUP$Parser$result = new java_cup.runtime.Symbol(1/*prod_modifier_opt*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 18: // prod_modifier_opt ::= EXTEND { Object RESULT = null; int aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token a = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = (String)a.getValue(); CUP$Parser$result = new java_cup.runtime.Symbol(1/*prod_modifier_opt*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 17: // command ::= TRANSFER nt_id transfer_list { Command RESULT = null; int ntleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int ntright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String nt = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int tlistleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int tlistright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector tlist = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new TransferCmd(nt, tlist); CUP$Parser$result = new java_cup.runtime.Symbol(24/*command*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 16: // command ::= DROP LBRACE production RBRACE { Command RESULT = null; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Production p = (Production)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = new DropCmd(p); CUP$Parser$result = new java_cup.runtime.Symbol(24/*command*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 15: // command ::= DROP nt_id { Command RESULT = null; int ntleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int ntright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; String nt = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new DropCmd(nt); CUP$Parser$result = new java_cup.runtime.Symbol(24/*command*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 14: // command ::= prod_modifier_opt production { Command RESULT = null; int modleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int modright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Object mod = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int pleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int pright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Production p = (Production)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; if (mod == null) { /* no modifier, new command */ RESULT = new NewProdCmd(p); } else if (mod.equals("extend")) { RESULT = new ExtendCmd(p); } else /* if (mod.equals("override")) */ { RESULT = new OverrideCmd(p); } CUP$Parser$result = new java_cup.runtime.Symbol(24/*command*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 13: // command_list_opt ::= { Vector RESULT = null; RESULT = new Vector(); CUP$Parser$result = new java_cup.runtime.Symbol(17/*command_list_opt*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 12: // command_list_opt ::= command_list_opt command { Vector RESULT = null; int bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector b = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Command a = (Command)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; /* b = Vector, a = command; */ b.addElement(a); RESULT = b; CUP$Parser$result = new java_cup.runtime.Symbol(17/*command_list_opt*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 11: // jlgen_start_spec_elt ::= START WITH ID ID ID SEMI { Vector RESULT = null; int startleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left; int startright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right; Token start = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value; int methodleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int methodright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Token method = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int tokenleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int tokenright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Token token = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; Vector m = new Vector(); m.addElement(start.getValue()); m.addElement(method.getValue()); m.addElement(token.getValue()); RESULT = m; CUP$Parser$result = new java_cup.runtime.Symbol(22/*jlgen_start_spec_elt*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 10: // jlgen_start_spec_list ::= jlgen_start_spec_elt { Vector RESULT = null; int eltleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int eltright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector elt = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = elt; CUP$Parser$result = new java_cup.runtime.Symbol(23/*jlgen_start_spec_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 9: // jlgen_start_spec_list ::= jlgen_start_spec_list jlgen_start_spec_elt { Vector RESULT = null; int listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int eltleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int eltright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector elt = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; list.addAll(elt); RESULT = list; CUP$Parser$result = new java_cup.runtime.Symbol(23/*jlgen_start_spec_list*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 8: // jlgen_start_spec ::= jlgen_start_spec_list { Vector RESULT = null; int mleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int mright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector m = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = m; CUP$Parser$result = new java_cup.runtime.Symbol(21/*jlgen_start_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 7: // jlgen_start_spec ::= START WITH nt_id SEMI { Vector RESULT = null; int startleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int startright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; String start = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; Vector v = new Vector(); v.addElement(start); RESULT = v; CUP$Parser$result = new java_cup.runtime.Symbol(21/*jlgen_start_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 6: // symbol_list_opt ::= { Vector RESULT = null; RESULT = null; CUP$Parser$result = new java_cup.runtime.Symbol(46/*symbol_list_opt*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 5: // symbol_list_opt ::= symbol_list { Vector RESULT = null; int sym_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int sym_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector sym_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = sym_list; CUP$Parser$result = new java_cup.runtime.Symbol(46/*symbol_list_opt*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 4: // include_spec ::= INCLUDE STRING_CONST { String RESULT = null; int aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Token a = (Token)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = (String)a.getValue(); CUP$Parser$result = new java_cup.runtime.Symbol(16/*include_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 3: // jlgen_spec ::= include_spec package_spec import_list code_parts symbol_list_opt precedence_list jlgen_start_spec command_list_opt { Spec RESULT = null; int incleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-7)).left; int incright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-7)).right; String inc = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-7)).value; int pkgleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-6)).left; int pkgright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-6)).right; String pkg = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-6)).value; int impleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).left; int impright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-5)).right; Vector imp = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-5)).value; int codeleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)).left; int coderight = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)).right; Vector code = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-4)).value; int sym_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left; int sym_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right; Vector sym_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value; int prec_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left; int prec_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right; Vector prec_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value; int startleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int startright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Vector start = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; int cmd_listleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int cmd_listright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Vector cmd_list = (Vector)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; RESULT = new JLgenSpec(inc, pkg, imp, code, sym_list, prec_list, start, cmd_list); CUP$Parser$result = new java_cup.runtime.Symbol(14/*jlgen_spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-7)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 2: // spec ::= cup_spec { Spec RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int sright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Spec s = (Spec)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Parser.setProgramNode(s); CUP$Parser$result = new java_cup.runtime.Symbol(13/*spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 1: // spec ::= jlgen_spec { Spec RESULT = null; int sleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left; int sright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right; Spec s = (Spec)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-0)).value; Parser.setProgramNode(s); CUP$Parser$result = new java_cup.runtime.Symbol(13/*spec*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } return CUP$Parser$result; /*. . . . . . . . . . . . . . . . . . . .*/ case 0: // $START ::= spec EOF { Object RESULT = null; int start_valleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left; int start_valright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right; Spec start_val = (Spec)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value; RESULT = start_val; CUP$Parser$result = new java_cup.runtime.Symbol(0/*$START*/, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-0)).right, RESULT); } /* ACCEPT */ CUP$Parser$parser.done_parsing(); return CUP$Parser$result; /* . . . . . .*/ default: throw new Exception( "Invalid action number found in internal parse table"); } }
|
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/f7a22f06ae24542157b958c8ffa45618139f10ab/Parser.java/clean/tools/ppg/src/ppg/parse/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
2252,
67,
71,
416,
18,
9448,
18,
5335,
385,
3079,
8,
2678,
8,
2896,
67,
1128,
12,
565,
509,
13491,
385,
3079,
8,
2678,
8,
621,
67,
2107,
16,
565,
2252,
67,
71,
416,
18,
9448,
18,
10826,
67,
4288,
385,
3079,
8,
2678,
8,
4288,
16,
565,
2252,
18,
1367,
18,
2624,
5411,
385,
3079,
8,
2678,
8,
3772,
16,
565,
509,
13491,
385,
3079,
8,
2678,
8,
3669,
13,
565,
1216,
2252,
18,
4936,
18,
503,
565,
288,
1377,
1748,
8565,
733,
364,
327,
628,
4209,
1195,
1377,
2252,
67,
71,
416,
18,
9448,
18,
5335,
385,
3079,
8,
2678,
8,
2088,
31,
1377,
1748,
2027,
326,
1301,
2511,
603,
326,
1301,
1300,
1195,
1377,
1620,
261,
39,
3079,
8,
2678,
8,
621,
67,
2107,
13,
3639,
288,
1850,
1748,
18,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
263,
5549,
1850,
648,
31007,
30,
368,
394,
67,
5836,
67,
6408,
67,
350,
493,
33,
1599,
2398,
288,
2868,
514,
17210,
273,
446,
31,
202,
202,
474,
612,
4482,
273,
14015,
6290,
67,
71,
416,
18,
9448,
18,
5335,
13,
39,
3079,
8,
2678,
8,
3772,
18,
2956,
861,
12,
39,
3079,
8,
2678,
8,
3669,
17,
20,
13,
2934,
4482,
31,
202,
202,
474,
612,
4083,
273,
14015,
6290,
67,
71,
416,
18,
9448,
18,
5335,
13,
39,
3079,
8,
2678,
8,
3772,
18,
2956,
861,
12,
39,
3079,
8,
2678,
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,
727,
2252,
67,
71,
416,
18,
9448,
18,
5335,
385,
3079,
8,
2678,
8,
2896,
67,
1128,
12,
565,
509,
13491,
385,
3079,
8,
2678,
8,
621,
67,
2107,
16,
565,
2252,
67,
71,
416,
18,
9448,
18,
10826,
67,
4288,
385,
3079,
8,
2678,
8,
4288,
16,
565,
2252,
18,
1367,
18,
2624,
5411,
385,
3079,
8,
2678,
8,
3772,
16,
565,
509,
13491,
385,
3079,
8,
2678,
8,
3669,
13,
565,
1216,
2252,
18,
4936,
18,
503,
565,
288,
1377,
1748,
8565,
733,
364,
327,
628,
4209,
1195,
1377,
2252,
67,
71,
416,
18,
9448,
18,
5335,
385,
3079,
8,
2678,
8,
2088,
31,
1377,
1748,
2027,
326,
1301,
2511,
603,
326,
1301,
1300,
1195,
2
] |
if(bps.width != 0) {
|
if (bps.width != 0) {
|
public static void addBorders(Area curBlock, BorderAndPadding bordProps) { BorderProps bps = getBorderProps(bordProps, BorderAndPadding.TOP); if(bps.width != 0) { curBlock.addTrait(Trait.BORDER_BEFORE, bps); } bps = getBorderProps(bordProps, BorderAndPadding.BOTTOM); if(bps.width != 0) { curBlock.addTrait(Trait.BORDER_AFTER, bps); } bps = getBorderProps(bordProps, BorderAndPadding.LEFT); if(bps.width != 0) { curBlock.addTrait(Trait.BORDER_START, bps); } bps = getBorderProps(bordProps, BorderAndPadding.RIGHT); if(bps.width != 0) { curBlock.addTrait(Trait.BORDER_END, bps); } }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/ffbbd945e41d5bade0d5a24929b77b29fbf538ed/TraitSetter.java/buggy/src/org/apache/fop/layoutmgr/TraitSetter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
527,
21621,
12,
5484,
662,
1768,
16,
13525,
1876,
9485,
324,
517,
5047,
13,
288,
3639,
13525,
5047,
324,
1121,
273,
2882,
1019,
5047,
12,
70,
517,
5047,
16,
13525,
1876,
9485,
18,
10462,
1769,
3639,
309,
261,
70,
1121,
18,
2819,
480,
374,
13,
288,
5411,
662,
1768,
18,
1289,
15525,
12,
15525,
18,
38,
7954,
67,
19152,
16,
324,
1121,
1769,
3639,
289,
3639,
324,
1121,
273,
2882,
1019,
5047,
12,
70,
517,
5047,
16,
13525,
1876,
9485,
18,
28891,
1769,
3639,
309,
261,
70,
1121,
18,
2819,
480,
374,
13,
288,
5411,
662,
1768,
18,
1289,
15525,
12,
15525,
18,
38,
7954,
67,
18249,
16,
324,
1121,
1769,
3639,
289,
3639,
324,
1121,
273,
2882,
1019,
5047,
12,
70,
517,
5047,
16,
13525,
1876,
9485,
18,
10066,
1769,
3639,
309,
261,
70,
1121,
18,
2819,
480,
374,
13,
288,
5411,
662,
1768,
18,
1289,
15525,
12,
15525,
18,
38,
7954,
67,
7570,
16,
324,
1121,
1769,
3639,
289,
3639,
324,
1121,
273,
2882,
1019,
5047,
12,
70,
517,
5047,
16,
13525,
1876,
9485,
18,
11847,
1769,
3639,
309,
261,
70,
1121,
18,
2819,
480,
374,
13,
288,
5411,
662,
1768,
18,
1289,
15525,
12,
15525,
18,
38,
7954,
67,
4415,
16,
324,
1121,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
527,
21621,
12,
5484,
662,
1768,
16,
13525,
1876,
9485,
324,
517,
5047,
13,
288,
3639,
13525,
5047,
324,
1121,
273,
2882,
1019,
5047,
12,
70,
517,
5047,
16,
13525,
1876,
9485,
18,
10462,
1769,
3639,
309,
261,
70,
1121,
18,
2819,
480,
374,
13,
288,
5411,
662,
1768,
18,
1289,
15525,
12,
15525,
18,
38,
7954,
67,
19152,
16,
324,
1121,
1769,
3639,
289,
3639,
324,
1121,
273,
2882,
1019,
5047,
12,
70,
517,
5047,
16,
13525,
1876,
9485,
18,
28891,
1769,
3639,
309,
261,
70,
1121,
18,
2819,
480,
374,
13,
288,
5411,
662,
1768,
18,
1289,
15525,
12,
15525,
18,
38,
7954,
67,
18249,
16,
324,
1121,
1769,
3639,
289,
3639,
324,
2
] |
unpruned = frequencies.get(bitSet) / size >= minfreq;
|
unpruned = support.get(bitSet).doubleValue() / size >= minfreq;
|
protected BitSet[] prune(BitSet[] candidates, int size) { List<BitSet> candidateList = new ArrayList<BitSet>(); for (BitSet bitSet : candidates) { boolean unpruned = true; for (int i = bitSet.nextSetBit(0); i <= 0 && unpruned; i = bitSet.nextSetBit(i + 1)) { bitSet.clear(i); unpruned = frequencies.get(bitSet) / size >= minfreq; bitSet.set(i); } if (unpruned) { candidateList.add(bitSet); } } return candidateList.toArray(new BitSet[candidateList.size()]); }
|
5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/bc7cee5bf289268b8a7881febae3ea5c8d481acb/APRIORI.java/clean/src/de/lmu/ifi/dbs/algorithm/APRIORI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
21199,
8526,
13293,
12,
5775,
694,
8526,
7965,
16,
509,
963,
13,
288,
565,
987,
32,
5775,
694,
34,
5500,
682,
273,
394,
2407,
32,
5775,
694,
34,
5621,
565,
364,
261,
5775,
694,
2831,
694,
294,
7965,
13,
288,
1377,
1250,
640,
683,
20630,
273,
638,
31,
1377,
364,
261,
474,
277,
273,
2831,
694,
18,
4285,
694,
5775,
12,
20,
1769,
277,
1648,
374,
597,
640,
683,
20630,
31,
277,
273,
2831,
694,
18,
4285,
694,
5775,
12,
77,
397,
404,
3719,
288,
3639,
2831,
694,
18,
8507,
12,
77,
1769,
3639,
640,
683,
20630,
273,
2865,
18,
588,
12,
3682,
694,
2934,
9056,
620,
1435,
342,
963,
1545,
1131,
10212,
31,
3639,
2831,
694,
18,
542,
12,
77,
1769,
1377,
289,
1377,
309,
261,
318,
683,
20630,
13,
288,
3639,
5500,
682,
18,
1289,
12,
3682,
694,
1769,
1377,
289,
565,
289,
565,
327,
5500,
682,
18,
31447,
12,
2704,
21199,
63,
19188,
682,
18,
1467,
1435,
19226,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
21199,
8526,
13293,
12,
5775,
694,
8526,
7965,
16,
509,
963,
13,
288,
565,
987,
32,
5775,
694,
34,
5500,
682,
273,
394,
2407,
32,
5775,
694,
34,
5621,
565,
364,
261,
5775,
694,
2831,
694,
294,
7965,
13,
288,
1377,
1250,
640,
683,
20630,
273,
638,
31,
1377,
364,
261,
474,
277,
273,
2831,
694,
18,
4285,
694,
5775,
12,
20,
1769,
277,
1648,
374,
597,
640,
683,
20630,
31,
277,
273,
2831,
694,
18,
4285,
694,
5775,
12,
77,
397,
404,
3719,
288,
3639,
2831,
694,
18,
8507,
12,
77,
1769,
3639,
640,
683,
20630,
273,
2865,
18,
588,
12,
3682,
694,
2934,
9056,
620,
1435,
342,
963,
1545,
1131,
10212,
31,
3639,
2831,
694,
2
] |
StringBuffer buf = new StringBuffer();
|
StringBuilder buf = new StringBuilder();
|
public static String format(String text, int maxLineLength, int tabSize) { StringBuffer buf = new StringBuffer(); int index = 0; for(;;) { int newIndex = text.indexOf("\n\n",index); if(newIndex == -1) break; formatParagraph(text.substring(index,newIndex), maxLineLength,tabSize,buf); buf.append("\n\n"); index = newIndex + 2; } if(index != text.length()) { formatParagraph(text.substring(index), maxLineLength,tabSize,buf); } return buf.toString(); } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/8942c6ad25ec2a6e9c924783fffc66d5a278f975/TextUtilities.java/clean/org/gjt/sp/jedit/TextUtilities.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
740,
12,
780,
977,
16,
509,
943,
1670,
1782,
16,
509,
3246,
1225,
13,
202,
95,
202,
202,
780,
1892,
1681,
273,
394,
6674,
5621,
202,
202,
474,
770,
273,
374,
31,
202,
202,
1884,
12,
25708,
13,
202,
202,
95,
1082,
202,
474,
21309,
273,
977,
18,
31806,
31458,
82,
64,
82,
3113,
1615,
1769,
1082,
202,
430,
12,
2704,
1016,
422,
300,
21,
13,
9506,
202,
8820,
31,
1082,
202,
2139,
17719,
12,
955,
18,
28023,
12,
1615,
16,
2704,
1016,
3631,
9506,
202,
1896,
1670,
1782,
16,
7032,
1225,
16,
4385,
1769,
1082,
202,
4385,
18,
6923,
31458,
82,
64,
82,
8863,
1082,
202,
1615,
273,
21309,
397,
576,
31,
202,
202,
97,
202,
202,
430,
12,
1615,
480,
977,
18,
2469,
10756,
202,
202,
95,
1082,
202,
2139,
17719,
12,
955,
18,
28023,
12,
1615,
3631,
9506,
202,
1896,
1670,
1782,
16,
7032,
1225,
16,
4385,
1769,
202,
202,
97,
202,
202,
2463,
1681,
18,
10492,
5621,
202,
97,
368,
9090,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
740,
12,
780,
977,
16,
509,
943,
1670,
1782,
16,
509,
3246,
1225,
13,
202,
95,
202,
202,
780,
1892,
1681,
273,
394,
6674,
5621,
202,
202,
474,
770,
273,
374,
31,
202,
202,
1884,
12,
25708,
13,
202,
202,
95,
1082,
202,
474,
21309,
273,
977,
18,
31806,
31458,
82,
64,
82,
3113,
1615,
1769,
1082,
202,
430,
12,
2704,
1016,
422,
300,
21,
13,
9506,
202,
8820,
31,
1082,
202,
2139,
17719,
12,
955,
18,
28023,
12,
1615,
16,
2704,
1016,
3631,
9506,
202,
1896,
1670,
1782,
16,
7032,
1225,
16,
4385,
1769,
1082,
202,
4385,
18,
6923,
31458,
82,
64,
82,
8863,
1082,
202,
1615,
273,
21309,
397,
576,
31,
202,
2
] |
public void work(Collection files) throws CoreException { int count = 0; if (files != null) { if (this.monitor != null) { this.monitor.beginTask("FindBugs", files.size()); } String findBugsHome = FindbugsPlugin.getFindBugsEnginePluginLocation(); if (DEBUG) { System.out.println("Looking for detecors in: " + findBugsHome); } System.setProperty("findbugs.home", findBugsHome); BugReporter bugReporter = new Reporter(this.project, this.monitor); bugReporter.setPriorityThreshold(Detector.LOW_PRIORITY); edu.umd.cs.findbugs.Project findBugsProject = new edu.umd.cs.findbugs.Project(); FindBugs findBugs = new FindBugs(bugReporter, findBugsProject); Iterator iter = files.iterator(); while (iter.hasNext()) { // get the resource IResource res = (IResource) iter.next(); if (isJavaArtifact(res)) { res.deleteMarkers( FindBugsMarker.NAME, true, IResource.DEPTH_INFINITE); } if (isClassFile(res)) { // add this file to the work list: String fileName = res.getLocation().toOSString(); res.refreshLocal(IResource.DEPTH_INFINITE, null); System.out.println("Resource: " + fileName + ": in synch: " + res.isSynchronized(IResource.DEPTH_INFINITE)); findBugsProject.addJar(fileName); } } try { findBugs.execute(); } catch (IOException e) { e.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); } // Iterator iter = files.iterator(); // while (iter.hasNext()) { // // get the resource // IResource res = (IResource) iter.next(); // // // advance progress monitor // if (monitor != null && count % MONITOR_INTERVAL == 0) { // monitor.worked(MONITOR_INTERVAL); // monitor.subTask("Performing bug check on: " + res.getName()); // if (monitor.isCanceled()) // break; // } // // // visit resource // res.accept(new FindBugsVisitor()); // count++; // } } else { if (DEBUG) { System.out.println("No files to build"); } } }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1433e1b05ca471120d4a710d5a1128290eb4fdbc/FindBugsWorker.java/clean/findbugs/src/eclipsePlugin/de.tobject.findbugs/src/de/tobject/findbugs/builder/FindBugsWorker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
1252,
12,
2532,
2354,
13,
15069,
25341,
95,
202,
202,
474,
1883,
33,
20,
31,
202,
202,
430,
12,
2354,
5,
33,
2011,
15329,
1082,
202,
430,
12,
2211,
18,
10259,
5,
33,
2011,
15329,
9506,
202,
2211,
18,
10259,
18,
10086,
2174,
2932,
3125,
31559,
3113,
2354,
18,
1467,
10663,
1082,
202,
97,
1082,
202,
780,
4720,
31559,
8684,
33,
3125,
19381,
3773,
18,
588,
3125,
31559,
4410,
3773,
2735,
5621,
1082,
202,
430,
12,
9394,
15329,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
9794,
310,
31836,
278,
557,
1383,
267,
2773,
15,
4720,
31559,
8684,
1769,
1082,
202,
97,
1082,
202,
3163,
18,
542,
1396,
2932,
4720,
19381,
18,
8712,
3113,
4720,
31559,
8684,
1769,
1082,
202,
19865,
13289,
925,
13289,
33,
2704,
13289,
12,
2211,
18,
4406,
16,
2211,
18,
10259,
1769,
1082,
202,
925,
13289,
18,
542,
8183,
7614,
12,
12594,
18,
4130,
67,
19804,
1769,
1082,
202,
28049,
18,
379,
72,
18,
2143,
18,
4720,
19381,
18,
4109,
4720,
31559,
4109,
33,
9506,
202,
2704,
28049,
18,
379,
72,
18,
2143,
18,
4720,
19381,
18,
4109,
5621,
1082,
202,
3125,
31559,
4720,
31559,
33,
2704,
3125,
31559,
12,
925,
13289,
16,
4720,
31559,
4109,
1769,
1082,
202,
3198,
2165,
33,
2354,
18,
9838,
5621,
1082,
202,
17523,
12,
2165,
18,
5332,
2134,
10756,
95,
9506,
202,
759,
588,
1136,
281,
552,
9506,
202,
45,
607,
477,
2750,
281,
28657,
45,
1420,
13,
2165,
18,
4285,
5621,
9506,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
1252,
12,
2532,
2354,
13,
15069,
25341,
95,
202,
202,
474,
1883,
33,
20,
31,
202,
202,
430,
12,
2354,
5,
33,
2011,
15329,
1082,
202,
430,
12,
2211,
18,
10259,
5,
33,
2011,
15329,
9506,
202,
2211,
18,
10259,
18,
10086,
2174,
2932,
3125,
31559,
3113,
2354,
18,
1467,
10663,
1082,
202,
97,
1082,
202,
780,
4720,
31559,
8684,
33,
3125,
19381,
3773,
18,
588,
3125,
31559,
4410,
3773,
2735,
5621,
1082,
202,
430,
12,
9394,
15329,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
9794,
310,
31836,
278,
557,
1383,
267,
2773,
15,
4720,
31559,
8684,
1769,
1082,
202,
97,
1082,
202,
3163,
18,
542,
1396,
2932,
4720,
19381,
18,
8712,
3113,
4720,
2
] |
||
bbs.publishChange(chng.object, chng.changes);
|
ArrayList changes_list = new ArrayList(1); changes_list.add(chng.change); if (log.isDebugEnabled()) log.debug("Publish change " + chng.change); bbs.publishChange(chng.object, changes_list);
|
public void processQueue() { ArrayList changes = null; synchronized (change_queue_lock) { changes = new ArrayList(change_queue); change_queue = new ArrayList(); } int count = changes.size(); for (int i=0; i<count; i++) { Object change = changes.get(i); if (log.isDebugEnabled()) log.debug("about to publish " + change); if (change instanceof Change) { Change chng = (Change) change; bbs.publishChange(chng.object, chng.changes); } else if (change instanceof Add) { Add add = (Add) change; bbs.publishAdd(add.object); } else if (change instanceof Remove) { Remove rem = (Remove) change; bbs.publishRemove(rem.object); } } }
|
7173 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7173/0aed06bf51b87863f8206665dd83a6eefe143f67/SingleInheritanceFrameSet.java/buggy/qos/src/org/cougaar/core/qos/frame/SingleInheritanceFrameSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
3183,
1435,
565,
288,
202,
19558,
3478,
273,
446,
31,
202,
22043,
261,
3427,
67,
4000,
67,
739,
13,
288,
202,
565,
3478,
273,
394,
2407,
12,
3427,
67,
4000,
1769,
202,
565,
2549,
67,
4000,
273,
394,
2407,
5621,
202,
97,
202,
474,
1056,
273,
3478,
18,
1467,
5621,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
1883,
31,
277,
27245,
288,
202,
565,
1033,
2549,
273,
3478,
18,
588,
12,
77,
1769,
202,
565,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
202,
202,
1330,
18,
4148,
2932,
21071,
358,
3808,
315,
397,
2549,
1769,
202,
565,
309,
261,
3427,
1276,
7576,
13,
288,
202,
202,
3043,
462,
3368,
273,
261,
3043,
13,
2549,
31,
202,
202,
70,
2038,
18,
6543,
3043,
12,
343,
3368,
18,
1612,
16,
462,
3368,
18,
6329,
1769,
202,
565,
289,
469,
225,
309,
261,
3427,
1276,
1436,
13,
288,
202,
202,
986,
527,
273,
261,
986,
13,
2549,
31,
202,
202,
70,
2038,
18,
6543,
986,
12,
1289,
18,
1612,
1769,
202,
565,
289,
469,
225,
309,
261,
3427,
1276,
3581,
13,
288,
202,
202,
3288,
849,
273,
261,
3288,
13,
2549,
31,
202,
202,
70,
2038,
18,
6543,
3288,
12,
2764,
18,
1612,
1769,
202,
565,
289,
202,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
3183,
1435,
565,
288,
202,
19558,
3478,
273,
446,
31,
202,
22043,
261,
3427,
67,
4000,
67,
739,
13,
288,
202,
565,
3478,
273,
394,
2407,
12,
3427,
67,
4000,
1769,
202,
565,
2549,
67,
4000,
273,
394,
2407,
5621,
202,
97,
202,
474,
1056,
273,
3478,
18,
1467,
5621,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
1883,
31,
277,
27245,
288,
202,
565,
1033,
2549,
273,
3478,
18,
588,
12,
77,
1769,
202,
565,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
202,
202,
1330,
18,
4148,
2932,
21071,
358,
3808,
315,
397,
2549,
1769,
202,
565,
309,
261,
3427,
1276,
7576,
13,
288,
202,
202,
3043,
462,
3368,
273,
261,
2
] |
super(); this.hierarchy = hierarchy; }
|
super(); this.hierarchy = hierarchy; }
|
public MondrianJolapHierarchy(mondrian.olap.Hierarchy hierarchy) { super(); this.hierarchy = hierarchy; }
|
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/MondrianJolapHierarchy.java/buggy/src/main/mondrian/jolap/MondrianJolapHierarchy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
490,
1434,
566,
304,
46,
355,
438,
12074,
12,
81,
1434,
566,
304,
18,
355,
438,
18,
12074,
9360,
13,
288,
202,
202,
9565,
5621,
202,
202,
2211,
18,
17937,
273,
9360,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
490,
1434,
566,
304,
46,
355,
438,
12074,
12,
81,
1434,
566,
304,
18,
355,
438,
18,
12074,
9360,
13,
288,
202,
202,
9565,
5621,
202,
202,
2211,
18,
17937,
273,
9360,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
logger.error("Could not parse atom string: " + s);
|
logger.error("Could not parse atom string: ", s);
|
private Atom assembleAtom(String s, int nodeCounter) throws InvalidSmilesException { logger.debug("assembleAtom(): Assembling atom from: " + s); Atom atom = null; int position = 0; String currentSymbol = null; StringBuffer isotopicNumber = new StringBuffer(); char mychar; logger.debug("Parse everythings before and including element symbol"); do { try { mychar = s.charAt(position); logger.debug("Parsing char: " + mychar); if ((mychar >= 'A' && mychar <= 'Z') || (mychar >= 'a' && mychar <= 'z')) { currentSymbol = getElementSymbol(s, position); if (currentSymbol == null) { throw new InvalidSmilesException( "Expected element symbol, found null!" ); } else { logger.debug("Found element symbol: " + currentSymbol); position = position + currentSymbol.length(); if (currentSymbol.length() == 1) { if (!(currentSymbol.toUpperCase()).equals(currentSymbol)) { currentSymbol = currentSymbol.toUpperCase(); atom = new Atom(currentSymbol); atom.setHybridization(CDKConstants.HYBRIDIZATION_SP2); if (atom.getHydrogenCount() > 0) { atom.setHydrogenCount(atom.getHydrogenCount() - 1); } } else { atom = new Atom(currentSymbol); } } else { atom = new Atom(currentSymbol); } logger.debug("Made atom: " + atom); } break; } else if (mychar >= '0' && mychar <= '9') { isotopicNumber.append(mychar); position++; } else if (mychar == '*') { currentSymbol = "*"; atom = new PseudoAtom(currentSymbol); logger.debug("Made atom: " + atom); position++; break; } else { throw new InvalidSmilesException("Found unexpected char: " + mychar); } } catch (InvalidSmilesException exc) { logger.error("InvalidSmilesException while parsing atom string: " + s); logger.debug(exc); throw exc; } catch (Exception exception) { logger.error("Could not parse atom string: " + s); logger.debug(exception); throw new InvalidSmilesException("Could not parse atom string: " + s); } } while (position < s.length()); if (isotopicNumber.toString().length() > 0) { try { atom.setMassNumber(Integer.parseInt(isotopicNumber.toString())); } catch (Exception exception) { logger.error("Could not set atom's atom number."); logger.debug(exception); } } logger.debug("Parsing part after element symbol (like charge): " + s.substring(position)); int charge = 0; int implicitHydrogens = 0; while (position < s.length()) { try { mychar = s.charAt(position); logger.debug("Parsing char: " + mychar); if (mychar == 'H') { // count implicit hydrogens implicitHydrogens = getImplicitHydrogenCount(s, position); position++; if (implicitHydrogens > 1) { position++; } atom.setHydrogenCount(implicitHydrogens); } else if (mychar == '+' || mychar == '-') { charge = getCharge(s, position); position++; if (charge < -1 || charge > 1) position++; atom.setFormalCharge(charge); } else if (mychar == '@') { if (position < s.length()-1 && s.charAt(position+1) == '@') { position++; } logger.warn("Ignoring stereo information for atom"); position++; } else { throw new InvalidSmilesException("Found unexpected char: " + mychar); } } catch (InvalidSmilesException exc) { logger.error("InvalidSmilesException while parsing atom string: " + s); logger.debug(exc); throw exc; } catch (Exception exception) { logger.error("Could not parse atom string: " + s); logger.debug(exception); throw new InvalidSmilesException("Could not parse atom string: " + s); } }; return atom; }
|
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/5cb2054a7ec466e45a6cd58fd93f6451940a4fac/SmilesParser.java/buggy/src/org/openscience/cdk/smiles/SmilesParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
7149,
19540,
3641,
12,
780,
272,
16,
509,
756,
4789,
13,
1216,
1962,
9552,
1449,
503,
288,
3639,
1194,
18,
4148,
2932,
29676,
3641,
13332,
2970,
5747,
2456,
3179,
628,
30,
315,
397,
272,
1769,
3639,
7149,
3179,
273,
446,
31,
3639,
509,
1754,
273,
374,
31,
3639,
514,
783,
5335,
273,
446,
31,
3639,
6674,
29677,
28237,
1854,
273,
394,
6674,
5621,
3639,
1149,
3399,
3001,
31,
3639,
1194,
18,
4148,
2932,
3201,
3614,
451,
899,
1865,
471,
6508,
930,
3273,
8863,
3639,
741,
288,
5411,
775,
288,
7734,
3399,
3001,
273,
272,
18,
3001,
861,
12,
3276,
1769,
7734,
1194,
18,
4148,
2932,
13963,
1149,
30,
315,
397,
3399,
3001,
1769,
7734,
309,
14015,
4811,
3001,
1545,
296,
37,
11,
597,
3399,
3001,
1648,
296,
62,
6134,
747,
261,
4811,
3001,
1545,
296,
69,
11,
597,
3399,
3001,
1648,
296,
94,
26112,
288,
10792,
783,
5335,
273,
7426,
5335,
12,
87,
16,
1754,
1769,
10792,
309,
261,
2972,
5335,
422,
446,
13,
288,
13491,
604,
394,
1962,
9552,
1449,
503,
12,
18701,
315,
6861,
930,
3273,
16,
1392,
446,
4442,
13491,
11272,
10792,
289,
469,
288,
13491,
1194,
18,
4148,
2932,
2043,
930,
3273,
30,
315,
397,
783,
5335,
1769,
13491,
1754,
273,
1754,
397,
783,
5335,
18,
2469,
5621,
13491,
309,
261,
2972,
5335,
18,
2469,
1435,
422,
404,
13,
288,
18701,
309,
16051,
12,
2972,
5335,
18,
869,
8915,
1435,
2934,
14963,
12,
2972,
5335,
3719,
288,
27573,
783,
5335,
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,
7149,
19540,
3641,
12,
780,
272,
16,
509,
756,
4789,
13,
1216,
1962,
9552,
1449,
503,
288,
3639,
1194,
18,
4148,
2932,
29676,
3641,
13332,
2970,
5747,
2456,
3179,
628,
30,
315,
397,
272,
1769,
3639,
7149,
3179,
273,
446,
31,
3639,
509,
1754,
273,
374,
31,
3639,
514,
783,
5335,
273,
446,
31,
3639,
6674,
29677,
28237,
1854,
273,
394,
6674,
5621,
3639,
1149,
3399,
3001,
31,
3639,
1194,
18,
4148,
2932,
3201,
3614,
451,
899,
1865,
471,
6508,
930,
3273,
8863,
3639,
741,
288,
5411,
775,
288,
7734,
3399,
3001,
273,
272,
18,
3001,
861,
12,
3276,
1769,
7734,
1194,
18,
4148,
2932,
13963,
1149,
30,
315,
397,
3399,
3001,
1769,
7734,
309,
14015,
2
] |
bytePos = writeBytes( compressedLines, nCompressed, bytePos ); crc.update( compressedLines, 0, nCompressed );
|
bytePos = writeBytes(compressedLines, nCompressed, bytePos); crc.update(compressedLines, 0, nCompressed);
|
protected boolean writeImageData() { int rowsLeft = height; // number of rows remaining to write int startRow = 0; // starting row to process this time through int nRows; // how many rows to grab at a time byte[] scanLines; // the scan lines to be compressed int scanPos; // where we are in the scan lines int startPos; // where this line's actual pixels start (used for filtering) byte[] compressedLines; // the resultant compressed lines int nCompressed; // how big is the compressed area? int depth; // color depth ( handle only 8 or 32 ) PixelGrabber pg; bytesPerPixel = (encodeAlpha) ? 4 : 3; Deflater scrunch = new Deflater( compressionLevel ); ByteArrayOutputStream outBytes = new ByteArrayOutputStream(1024); DeflaterOutputStream compBytes = new DeflaterOutputStream( outBytes, scrunch ); try { while (rowsLeft > 0) { nRows = Math.min( 32767 / (width*(bytesPerPixel+1)), rowsLeft ); // nRows = rowsLeft; int[] pixels = new int[width * nRows]; pg = new PixelGrabber(image, 0, startRow, width, nRows, pixels, 0, width); try { pg.grabPixels(); } catch (Exception e) { System.err.println("interrupted waiting for pixels!"); return false; } if ((pg.getStatus() & ImageObserver.ABORT) != 0) { System.err.println("image fetch aborted or errored"); return false; } /* * Create a data chunk. scanLines adds "nRows" for * the filter bytes. */ scanLines = new byte[width * nRows * bytesPerPixel + nRows]; if (filter == FILTER_SUB) { leftBytes = new byte[16]; } if (filter == FILTER_UP) { priorRow = new byte[width*bytesPerPixel]; } scanPos = 0; startPos = 1; for (int i=0; i<width*nRows; i++) { if (i % width == 0) { scanLines[scanPos++] = (byte) filter; startPos = scanPos; } scanLines[scanPos++] = (byte) ((pixels[i] >> 16) & 0xff); scanLines[scanPos++] = (byte) ((pixels[i] >> 8) & 0xff); scanLines[scanPos++] = (byte) ((pixels[i] ) & 0xff); if (encodeAlpha) { scanLines[scanPos++] = (byte) ((pixels[i] >> 24) & 0xff ); } if ((i % width == width-1) && (filter != FILTER_NONE)) { if (filter == FILTER_SUB) { filterSub( scanLines, startPos, width ); } if (filter == FILTER_UP) { filterUp( scanLines, startPos, width ); } } } /* * Write these lines to the output area */ compBytes.write( scanLines, 0, scanPos ); startRow += nRows; rowsLeft -= nRows; } compBytes.close(); /* * Write the compressed bytes */ compressedLines = outBytes.toByteArray(); nCompressed = compressedLines.length; crc.reset(); bytePos = writeInt4( nCompressed, bytePos ); bytePos = writeString("IDAT", bytePos ); crc.update("IDAT".getBytes()); bytePos = writeBytes( compressedLines, nCompressed, bytePos ); crc.update( compressedLines, 0, nCompressed ); crcValue = crc.getValue(); bytePos = writeInt4( (int) crcValue, bytePos ); scrunch.finish(); return true; } catch (IOException e) { System.err.println( e.toString()); return false; } }
|
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/f1a2e8bd347e294e5391728379b76d4500a7093d/PNGEncoder.java/buggy/freehep-graphicsio/src/main/java/org/freehep/graphicsio/png/PNGEncoder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1045,
2040,
751,
1435,
565,
288,
3639,
509,
2595,
3910,
273,
2072,
31,
225,
368,
1300,
434,
2595,
4463,
358,
1045,
3639,
509,
787,
1999,
273,
374,
31,
4202,
368,
5023,
1027,
358,
1207,
333,
813,
3059,
3639,
509,
290,
4300,
31,
2868,
368,
3661,
4906,
2595,
358,
11086,
622,
279,
813,
3639,
1160,
8526,
4135,
5763,
31,
4202,
368,
326,
4135,
2362,
358,
506,
8968,
3639,
509,
4135,
1616,
31,
5411,
368,
1625,
732,
854,
316,
326,
4135,
2362,
3639,
509,
16013,
31,
6647,
368,
1625,
333,
980,
1807,
3214,
8948,
787,
261,
3668,
364,
11346,
13,
3639,
1160,
8526,
8968,
5763,
31,
368,
326,
563,
970,
8968,
2362,
3639,
509,
290,
16841,
31,
3639,
368,
3661,
5446,
353,
326,
8968,
5091,
35,
3639,
509,
3598,
31,
2868,
368,
2036,
3598,
261,
1640,
1338,
1725,
578,
3847,
262,
3639,
26070,
14571,
23709,
7184,
31,
3639,
31148,
9037,
273,
261,
3015,
9690,
13,
692,
1059,
294,
890,
31,
3639,
1505,
2242,
2045,
888,
2681,
343,
273,
394,
1505,
2242,
2045,
12,
9154,
2355,
11272,
3639,
11559,
596,
2160,
273,
5411,
394,
11559,
12,
2163,
3247,
1769,
3639,
1505,
2242,
2045,
4632,
1161,
2160,
273,
5411,
394,
1505,
2242,
2045,
4632,
12,
596,
2160,
16,
888,
2681,
343,
11272,
3639,
775,
3639,
288,
5411,
1323,
261,
3870,
3910,
405,
374,
13,
5411,
288,
7734,
290,
4300,
273,
2361,
18,
1154,
12,
29317,
27,
342,
261,
2819,
21556,
3890,
2173,
9037,
15,
21,
13,
3631,
2595,
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,
1250,
1045,
2040,
751,
1435,
565,
288,
3639,
509,
2595,
3910,
273,
2072,
31,
225,
368,
1300,
434,
2595,
4463,
358,
1045,
3639,
509,
787,
1999,
273,
374,
31,
4202,
368,
5023,
1027,
358,
1207,
333,
813,
3059,
3639,
509,
290,
4300,
31,
2868,
368,
3661,
4906,
2595,
358,
11086,
622,
279,
813,
3639,
1160,
8526,
4135,
5763,
31,
4202,
368,
326,
4135,
2362,
358,
506,
8968,
3639,
509,
4135,
1616,
31,
5411,
368,
1625,
732,
854,
316,
326,
4135,
2362,
3639,
509,
16013,
31,
6647,
368,
1625,
333,
980,
1807,
3214,
8948,
787,
261,
3668,
364,
11346,
13,
3639,
1160,
8526,
8968,
5763,
31,
368,
326,
563,
970,
8968,
2362,
3639,
509,
290,
16841,
31,
3639,
2
] |
super.sent();
|
void sent() { synchronized(ackRequestQueue) { ackRequestQueue.update(this); } super.sent(); }
|
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/21276300a9c32d3ca00717599f1ee0ff9c5443f3/KeyTracker.java/clean/src/freenet/node/KeyTracker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
3271,
1435,
288,
5411,
3852,
12,
484,
691,
3183,
13,
288,
7734,
8479,
691,
3183,
18,
2725,
12,
2211,
1769,
5411,
289,
10402,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
3271,
1435,
288,
5411,
3852,
12,
484,
691,
3183,
13,
288,
7734,
8479,
691,
3183,
18,
2725,
12,
2211,
1769,
5411,
289,
10402,
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
] |
|
recentFilesEditor = new IntegerFieldEditor(IPreferenceConstants.RECENT_FILES, WorkbenchMessages.getString("WorkbenchPreference.recentFiles"), groupComposite);
|
recentFilesEditor = new IntegerFieldEditor(IPreferenceConstants.RECENT_FILES, WorkbenchMessages.getString("WorkbenchPreference.recentFiles"), groupComposite);
|
private void createEditorHistoryGroup(Composite composite) { Composite groupComposite = new Composite(composite, SWT.LEFT); GridLayout layout = new GridLayout(); layout.numColumns = 2; groupComposite.setLayout(layout); GridData gd = new GridData(); gd.horizontalAlignment = gd.FILL; gd.grabExcessHorizontalSpace = true; groupComposite.setLayoutData(gd); recentFilesEditor = new IntegerFieldEditor(IPreferenceConstants.RECENT_FILES, WorkbenchMessages.getString("WorkbenchPreference.recentFiles"), groupComposite); int recentFilesMax = IPreferenceConstants.MAX_RECENT_FILES_SIZE; recentFilesEditor.setPreferenceStore(WorkbenchPlugin.getDefault().getPreferenceStore()); recentFilesEditor.setPreferencePage(this); recentFilesEditor.setTextLimit(Integer.toString(recentFilesMax).length()); recentFilesEditor.setErrorMessage(WorkbenchMessages.format("WorkbenchPreference.recentFilesError", new Object[] { new Integer(recentFilesMax)})); recentFilesEditor.setValidateStrategy(StringFieldEditor.VALIDATE_ON_KEY_STROKE); recentFilesEditor.setValidRange(0, recentFilesMax); recentFilesEditor.load(); recentFilesEditor.setPropertyChangeListener(new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(FieldEditor.IS_VALID)) setValid(recentFilesEditor.isValid()); } }); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/80cfecc0fb5392981e25acee0f567feb8ed55185/WorkbenchPreferencePage.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
6946,
5623,
1114,
12,
9400,
9635,
13,
288,
202,
202,
9400,
1041,
9400,
273,
394,
14728,
12,
27676,
16,
348,
8588,
18,
10066,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
2107,
3380,
273,
576,
31,
202,
202,
1655,
9400,
18,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
5621,
202,
202,
19016,
18,
18396,
11535,
273,
15551,
18,
29818,
31,
202,
202,
19016,
18,
2752,
70,
424,
614,
14457,
3819,
273,
638,
31,
202,
202,
1655,
9400,
18,
542,
3744,
751,
12,
19016,
1769,
6862,
202,
20872,
2697,
6946,
273,
394,
2144,
974,
6946,
12,
45,
9624,
2918,
18,
862,
19666,
67,
12669,
16,
4147,
22144,
5058,
18,
588,
780,
2932,
2421,
22144,
9624,
18,
20872,
2697,
6,
3631,
1041,
9400,
1769,
202,
202,
474,
8399,
2697,
2747,
273,
467,
9624,
2918,
18,
6694,
67,
862,
19666,
67,
12669,
67,
4574,
31,
202,
202,
20872,
2697,
6946,
18,
542,
9624,
2257,
12,
2421,
22144,
3773,
18,
588,
1868,
7675,
588,
9624,
2257,
10663,
202,
202,
20872,
2697,
6946,
18,
542,
9624,
1964,
12,
2211,
1769,
202,
202,
20872,
2697,
6946,
18,
542,
1528,
3039,
12,
4522,
18,
10492,
12,
20872,
2697,
2747,
2934,
2469,
10663,
202,
202,
20872,
2697,
6946,
18,
542,
14935,
12,
2421,
22144,
5058,
18,
2139,
2932,
2421,
22144,
9624,
18,
20872,
2697,
668,
3113,
394,
1033,
8526,
288,
394,
2144,
12,
20872,
2697,
2747,
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,
752,
6946,
5623,
1114,
12,
9400,
9635,
13,
288,
202,
202,
9400,
1041,
9400,
273,
394,
14728,
12,
27676,
16,
348,
8588,
18,
10066,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
2107,
3380,
273,
576,
31,
202,
202,
1655,
9400,
18,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
5621,
202,
202,
19016,
18,
18396,
11535,
273,
15551,
18,
29818,
31,
202,
202,
19016,
18,
2752,
70,
424,
614,
14457,
3819,
273,
638,
31,
202,
202,
1655,
9400,
18,
542,
3744,
751,
12,
19016,
1769,
6862,
202,
20872,
2697,
6946,
273,
394,
2144,
974,
6946,
12,
45,
9624,
2918,
18,
862,
2
] |
} }
|
} }
|
public String getTypeName() throws XavaException { if (Is.emptyString(typeName)){ if (hasValidValues()) setTypeName("int"); if (!Is.emptyString(getStereotype())) { try { String t = TypeStereotypeDefault.forStereotype(getStereotype()); setTypeName(t); } catch (ElementNotFoundException ex) { log.warn(XavaResources.getString("type_from_stereotype_warning", getStereotype())); } } } return typeName; }
|
14127 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14127/3777ec3070bd6374a6669703922643b68e2817b9/MetaProperty.java/clean/OpenXava/src/org/openxava/model/meta/MetaProperty.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
17898,
1435,
1216,
1139,
1629,
503,
288,
202,
202,
430,
261,
2520,
18,
5531,
780,
12,
723,
461,
3719,
95,
1082,
202,
430,
261,
5332,
1556,
1972,
10756,
444,
7947,
2932,
474,
8863,
1082,
202,
430,
16051,
2520,
18,
5531,
780,
12,
588,
55,
387,
73,
10570,
1435,
3719,
288,
25083,
202,
698,
288,
6862,
1082,
202,
780,
268,
273,
1412,
55,
387,
73,
10570,
1868,
18,
1884,
55,
387,
73,
10570,
12,
588,
55,
387,
73,
10570,
10663,
6862,
202,
542,
7947,
12,
88,
1769,
9506,
202,
97,
9506,
202,
14683,
261,
1046,
3990,
431,
13,
288,
6862,
25083,
202,
1330,
18,
8935,
12,
60,
1629,
3805,
18,
588,
780,
2932,
723,
67,
2080,
67,
334,
822,
10570,
67,
8551,
3113,
1322,
387,
73,
10570,
1435,
10019,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
8173,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
17898,
1435,
1216,
1139,
1629,
503,
288,
202,
202,
430,
261,
2520,
18,
5531,
780,
12,
723,
461,
3719,
95,
1082,
202,
430,
261,
5332,
1556,
1972,
10756,
444,
7947,
2932,
474,
8863,
1082,
202,
430,
16051,
2520,
18,
5531,
780,
12,
588,
55,
387,
73,
10570,
1435,
3719,
288,
25083,
202,
698,
288,
6862,
1082,
202,
780,
268,
273,
1412,
55,
387,
73,
10570,
1868,
18,
1884,
55,
387,
73,
10570,
12,
588,
55,
387,
73,
10570,
10663,
6862,
202,
542,
7947,
12,
88,
1769,
9506,
202,
97,
9506,
202,
14683,
261,
1046,
3990,
431,
13,
288,
6862,
25083,
202,
1330,
18,
8935,
12,
60,
1629,
3805,
18,
588,
780,
2932,
723,
67,
2080,
2
] |
int moveNumber = NodeUtils.getMoveNumber(node);
|
int moveNumber = NodeUtil.getMoveNumber(node);
|
public void addNewSingleChild(Node node) { assert(node.getNumberChildren() == 0); Node father = node.getFather(); assert(father != null); assert(father.getNumberChildren() == 1); GameTreeNode fatherGameNode = getGameTreeNode(father); assert(! isExpanded(father)); int moveNumber = NodeUtils.getMoveNumber(node); GameTreeNode gameNode = new GameTreeNode(node, moveNumber, this, m_mouseListener, m_font, m_preferredNodeSize); m_map.put(node, gameNode); add(gameNode); putConstraint(fatherGameNode, gameNode, m_nodeFullSize, 0); gameNode.setLocation(fatherGameNode.getX() + m_nodeFullSize, fatherGameNode.getY()); gameNode.setSize(m_nodeFullSize, m_nodeFullSize); m_maxX = Math.max(fatherGameNode.getX() + 2 * m_nodeFullSize, m_maxX); setPreferredSize(new Dimension(m_maxX + m_nodeFullSize + MARGIN, m_maxY + m_nodeFullSize + MARGIN)); }
|
2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/1f50ffb219183ddaf94720a4aba453e11f412425/GameTreePanel.java/buggy/src/net/sf/gogui/gui/GameTreePanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20973,
5281,
1763,
12,
907,
756,
13,
565,
288,
3639,
1815,
12,
2159,
18,
588,
1854,
4212,
1435,
422,
374,
1769,
3639,
2029,
284,
4806,
273,
756,
18,
588,
42,
4806,
5621,
3639,
1815,
12,
74,
4806,
480,
446,
1769,
3639,
1815,
12,
74,
4806,
18,
588,
1854,
4212,
1435,
422,
404,
1769,
3639,
14121,
12513,
284,
4806,
12496,
907,
273,
7162,
339,
12513,
12,
74,
4806,
1769,
3639,
1815,
12,
5,
353,
17957,
12,
74,
4806,
10019,
3639,
509,
3635,
1854,
273,
25257,
18,
588,
7607,
1854,
12,
2159,
1769,
3639,
14121,
12513,
7920,
907,
273,
5411,
394,
14121,
12513,
12,
2159,
16,
3635,
1854,
16,
333,
16,
312,
67,
11697,
2223,
16,
312,
67,
5776,
16,
11794,
312,
67,
23616,
907,
1225,
1769,
3639,
312,
67,
1458,
18,
458,
12,
2159,
16,
7920,
907,
1769,
3639,
527,
12,
13957,
907,
1769,
3639,
1378,
5806,
12,
74,
4806,
12496,
907,
16,
7920,
907,
16,
312,
67,
2159,
5080,
1225,
16,
374,
1769,
3639,
7920,
907,
18,
542,
2735,
12,
74,
4806,
12496,
907,
18,
588,
60,
1435,
397,
312,
67,
2159,
5080,
1225,
16,
11794,
284,
4806,
12496,
907,
18,
588,
61,
10663,
3639,
7920,
907,
18,
542,
1225,
12,
81,
67,
2159,
5080,
1225,
16,
312,
67,
2159,
5080,
1225,
1769,
3639,
312,
67,
1896,
60,
273,
2361,
18,
1896,
12,
74,
4806,
12496,
907,
18,
588,
60,
1435,
397,
576,
380,
312,
67,
2159,
5080,
1225,
16,
312,
67,
1896,
60,
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,
20973,
5281,
1763,
12,
907,
756,
13,
565,
288,
3639,
1815,
12,
2159,
18,
588,
1854,
4212,
1435,
422,
374,
1769,
3639,
2029,
284,
4806,
273,
756,
18,
588,
42,
4806,
5621,
3639,
1815,
12,
74,
4806,
480,
446,
1769,
3639,
1815,
12,
74,
4806,
18,
588,
1854,
4212,
1435,
422,
404,
1769,
3639,
14121,
12513,
284,
4806,
12496,
907,
273,
7162,
339,
12513,
12,
74,
4806,
1769,
3639,
1815,
12,
5,
353,
17957,
12,
74,
4806,
10019,
3639,
509,
3635,
1854,
273,
25257,
18,
588,
7607,
1854,
12,
2159,
1769,
3639,
14121,
12513,
7920,
907,
273,
5411,
394,
14121,
12513,
12,
2159,
16,
3635,
1854,
16,
333,
16,
312,
67,
11697,
2223,
16,
312,
67,
2
] |
EquipSet es = (EquipSet) e.next(); if (!es.getParentIdPath().startsWith(idPath))
|
if (!eqSet.getParentIdPath().startsWith(idPath))
|
private static boolean canAddEquip(PlayerCharacter pc, EquipSet eSet, String locName, Equipment eqI) { String idPath = eSet.getIdPath(); // If Carried/Equipped/Not Carried slot // allow as many as they would like if (locName.startsWith(Constants.S_CARRIED) || locName.startsWith(Constants.S_EQUIPPED) || locName.startsWith(Constants.S_NOTCARRIED)) { return true; } // allow as many unarmed items as you'd like if (eqI.isUnarmed()) { return true; } // allow many Secondary Natural weapons if (locName.equals(Constants.S_NATURAL_SECONDARY)) { return true; } // Don't allow weapons that are too large for PC if (eqI.isWeaponTooLargeForPC(pc)) { return false; } // make a HashMap to keep track of the number of each // item that is already equipped to a slot HashMap slotMap = new HashMap(); for (Iterator e = pc.getEquipSet().iterator(); e.hasNext();) { EquipSet es = (EquipSet) e.next(); if (!es.getParentIdPath().startsWith(idPath)) { continue; } // check to see if we already have // an item in that particular location if (es.getName().equals(locName)) { Equipment eItem = es.getItem(); String nString = (String) slotMap.get(locName); int existNum = 0; if (nString != null) { existNum = Integer.parseInt(nString); } if (eItem != null) { existNum += eItem.getSlots(pc); } slotMap.put(locName, String.valueOf(existNum)); } } for (Iterator e = pc.getEquipSet().iterator(); e.hasNext();) { EquipSet es = (EquipSet) e.next(); if (!es.getParentIdPath().startsWith(idPath)) { continue; } // if it's a weapon we have to do some // checks for hands already in use if (eqI.isWeapon()) { // weapons can never occupy the same slot if (es.getName().equals(locName)) { return false; } // if Double Weapon or Both Hands, then no // other weapon slots can be occupied if ((locName.equals(Constants.S_BOTH) || locName.equals(Constants.S_DOUBLE) || locName.equals(Constants.S_TWOWEAPONS)) && (es.getName().equals(Constants.S_PRIMARY) || es.getName().equals(Constants.S_SECONDARY) || es.getName().equals(Constants.S_BOTH) || es.getName().equals(Constants.S_DOUBLE) || es.getName().equals(Constants.S_TWOWEAPONS))) { return false; } // inverse of above case if ((locName.equals(Constants.S_PRIMARY) || locName.equals(Constants.S_SECONDARY)) && (es.getName().equals(Constants.S_BOTH) || es.getName().equals(Constants.S_DOUBLE) || es.getName().equals(Constants.S_TWOWEAPONS))) { return false; } } // If we already have an item in that location // check to see how many are allowed in that slot if (es.getName().equals(locName)) { final String nString = (String) slotMap.get(locName); int existNum = 0; if (nString != null) { existNum = Integer.parseInt(nString); } existNum += eqI.getSlots(pc); EquipSlot eSlot = Globals.getEquipSlotByName(locName); if (eSlot == null) { return true; } // if the item takes more slots, return false if (existNum > (eSlot.getSlotCount() + (int) pc.getTotalBonusTo("SLOTS", eSlot.getContainType()))) { return false; } return true; } } return true; }
|
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/746f9fbe7d3bb98c609b2f38fbc5ffad4e685726/EncounterPlugin.java/clean/code/src/java/plugin/encounter/EncounterPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1250,
848,
986,
13142,
625,
12,
12148,
7069,
6125,
16,
19008,
625,
694,
20199,
16,
514,
1515,
461,
16,
19008,
11568,
7555,
45,
13,
202,
95,
202,
202,
780,
612,
743,
273,
20199,
18,
26321,
743,
5621,
202,
202,
759,
971,
23672,
24012,
19,
13142,
625,
1845,
19,
1248,
23672,
24012,
4694,
202,
202,
759,
1699,
487,
4906,
487,
2898,
4102,
3007,
202,
202,
430,
261,
1829,
461,
18,
17514,
1190,
12,
2918,
18,
55,
67,
39,
985,
2259,
2056,
13,
747,
1515,
461,
18,
17514,
1190,
12,
2918,
18,
55,
67,
41,
3500,
2579,
12120,
13,
1082,
202,
20081,
1515,
461,
18,
17514,
1190,
12,
2918,
18,
55,
67,
4400,
39,
985,
2259,
2056,
3719,
202,
202,
95,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
759,
1699,
487,
4906,
640,
297,
2937,
1516,
487,
1846,
14271,
3007,
202,
202,
430,
261,
11253,
45,
18,
291,
984,
297,
2937,
10756,
202,
202,
95,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
759,
1699,
4906,
30983,
423,
270,
3766,
732,
438,
7008,
202,
202,
430,
261,
1829,
461,
18,
14963,
12,
2918,
18,
55,
67,
25665,
27015,
67,
16328,
6043,
3719,
202,
202,
95,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
759,
7615,
1404,
1699,
732,
438,
7008,
716,
854,
4885,
7876,
364,
26300,
202,
202,
430,
261,
11253,
45,
18,
291,
3218,
28629,
10703,
20020,
1290,
3513,
12,
2436,
3719,
202,
202,
95,
1082,
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,
1152,
760,
1250,
848,
986,
13142,
625,
12,
12148,
7069,
6125,
16,
19008,
625,
694,
20199,
16,
514,
1515,
461,
16,
19008,
11568,
7555,
45,
13,
202,
95,
202,
202,
780,
612,
743,
273,
20199,
18,
26321,
743,
5621,
202,
202,
759,
971,
23672,
24012,
19,
13142,
625,
1845,
19,
1248,
23672,
24012,
4694,
202,
202,
759,
1699,
487,
4906,
487,
2898,
4102,
3007,
202,
202,
430,
261,
1829,
461,
18,
17514,
1190,
12,
2918,
18,
55,
67,
39,
985,
2259,
2056,
13,
747,
1515,
461,
18,
17514,
1190,
12,
2918,
18,
55,
67,
41,
3500,
2579,
12120,
13,
1082,
202,
20081,
1515,
461,
18,
17514,
1190,
12,
2918,
18,
55,
67,
4400,
39,
985,
2259,
2056,
2
] |
super(); setRootDomainObject(RootDomainObject.getInstance());
|
super(); setRootDomainObject(RootDomainObject.getInstance());
|
protected Section() { super(); setRootDomainObject(RootDomainObject.getInstance()); }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/0109c25dd214d2427e911066a1345afb9ddc8372/Section.java/buggy/src/net/sourceforge/fenixedu/domain/Section.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
10092,
1435,
288,
202,
9565,
5621,
202,
542,
2375,
3748,
921,
12,
2375,
3748,
921,
18,
588,
1442,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4750,
10092,
1435,
288,
202,
9565,
5621,
202,
542,
2375,
3748,
921,
12,
2375,
3748,
921,
18,
588,
1442,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
content = message.getContent(); if (content instanceof Multipart) { Multipart multipart = (Multipart) content; for (int i = 0; i < multipart.getCount(); i++) { try { Part part = multipart.getBodyPart(i); if (matchFound(part)) { return mail.getRecipients(); } } catch (MessagingException e) { anException = e; } } } else { if (matchFound(message)) { return mail.getRecipients(); }
|
} catch (Exception e) { if (isDebug) { log("Malformed message", e);
|
public Collection match(Mail mail) throws MessagingException { Exception anException = null; try { MimeMessage message = mail.getMessage(); Object content; /* * if there is an attachment and no inline text, * the content type can be anything */ if (message.getContentType() == null) { return null; } content = message.getContent(); if (content instanceof Multipart) { Multipart multipart = (Multipart) content; for (int i = 0; i < multipart.getCount(); i++) { try { Part part = multipart.getBodyPart(i); if (matchFound(part)) { return mail.getRecipients(); // matching file found } } catch (MessagingException e) { anException = e; } // ignore any messaging exception and process next bodypart } } else { if (matchFound(message)) { return mail.getRecipients(); // matching file found } } } catch (Exception e) { anException = e; } // if no matching attachment was found and at least one exception was catched rethrow it up if (anException != null) { throw new MessagingException("Malformed message", anException); } return null; // no matching attachment found }
|
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/f3f15bd8786fa530581d349f6977e38a11bbc7a0/AttachmentFileNameIs.java/buggy/branches/branch_2_1_fcs/src/java/org/apache/james/transport/matchers/AttachmentFileNameIs.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
845,
12,
6759,
4791,
13,
1216,
23794,
503,
288,
7734,
1185,
392,
503,
273,
446,
31,
7734,
775,
288,
5411,
22059,
1079,
883,
273,
4791,
18,
24906,
5621,
5411,
1033,
913,
31,
13491,
1748,
2398,
380,
309,
1915,
353,
392,
6042,
471,
1158,
6370,
977,
16,
2398,
380,
326,
913,
618,
848,
506,
6967,
2398,
1195,
5411,
309,
261,
2150,
18,
588,
8046,
1435,
422,
446,
13,
288,
7734,
327,
446,
31,
5411,
289,
13491,
913,
273,
883,
18,
588,
1350,
5621,
5411,
309,
261,
1745,
1276,
19919,
13,
288,
7734,
19919,
10263,
273,
261,
12024,
13,
913,
31,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
10263,
18,
588,
1380,
5621,
277,
27245,
288,
10792,
775,
288,
13491,
6393,
1087,
273,
10263,
18,
588,
2250,
1988,
12,
77,
1769,
13491,
309,
261,
1916,
2043,
12,
2680,
3719,
288,
18701,
327,
4791,
18,
588,
22740,
5621,
368,
3607,
585,
1392,
13491,
289,
10792,
289,
1044,
261,
23389,
503,
425,
13,
288,
13491,
392,
503,
273,
425,
31,
10792,
289,
368,
2305,
1281,
17301,
1520,
471,
1207,
1024,
324,
369,
879,
485,
7734,
289,
5411,
289,
469,
288,
7734,
309,
261,
1916,
2043,
12,
2150,
3719,
288,
10792,
327,
4791,
18,
588,
22740,
5621,
368,
3607,
585,
1392,
7734,
289,
5411,
289,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
392,
503,
273,
425,
31,
3639,
289,
7734,
368,
309,
1158,
3607,
6042,
1703,
1392,
471,
622,
4520,
1245,
1520,
1703,
1044,
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,
2200,
845,
12,
6759,
4791,
13,
1216,
23794,
503,
288,
7734,
1185,
392,
503,
273,
446,
31,
7734,
775,
288,
5411,
22059,
1079,
883,
273,
4791,
18,
24906,
5621,
5411,
1033,
913,
31,
13491,
1748,
2398,
380,
309,
1915,
353,
392,
6042,
471,
1158,
6370,
977,
16,
2398,
380,
326,
913,
618,
848,
506,
6967,
2398,
1195,
5411,
309,
261,
2150,
18,
588,
8046,
1435,
422,
446,
13,
288,
7734,
327,
446,
31,
5411,
289,
13491,
913,
273,
883,
18,
588,
1350,
5621,
5411,
309,
261,
1745,
1276,
19919,
13,
288,
7734,
19919,
10263,
273,
261,
12024,
13,
913,
31,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
10263,
18,
588,
1380,
5621,
277,
27245,
2
] |
public int getNumActive(Object key) { try { return ((Integer)_activeCount.get(key)).intValue(); } catch(NoSuchElementException e) { return 0; } catch(NullPointerException e) { return 0; }
|
public int getNumActive() { return _totActive;
|
public int getNumActive(Object key) { try { return ((Integer)_activeCount.get(key)).intValue(); } catch(NoSuchElementException e) { return 0; } catch(NullPointerException e) { return 0; } }
|
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/0cb929e62f4a0e70106497426bf6922eab710f51/StackKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/StackKeyedObjectPool.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
11187,
3896,
12,
921,
498,
13,
288,
3639,
775,
288,
5411,
327,
14015,
4522,
13,
67,
3535,
1380,
18,
588,
12,
856,
13,
2934,
474,
620,
5621,
3639,
289,
1044,
12,
28341,
20826,
425,
13,
288,
5411,
327,
374,
31,
3639,
289,
1044,
12,
2041,
9992,
425,
13,
288,
5411,
327,
374,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11187,
3896,
12,
921,
498,
13,
288,
3639,
775,
288,
5411,
327,
14015,
4522,
13,
67,
3535,
1380,
18,
588,
12,
856,
13,
2934,
474,
620,
5621,
3639,
289,
1044,
12,
28341,
20826,
425,
13,
288,
5411,
327,
374,
31,
3639,
289,
1044,
12,
2041,
9992,
425,
13,
288,
5411,
327,
374,
31,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
new TextMethods().linkageToHaps(markerResultArray,checkPanel.getPedFile(),filenames[0]+".haps");
|
new TextMethods().linkageToHaps(markerResultArray,checkPanel.getPedFile(),inputOptions[0]+".haps");
|
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command == READ_GENOTYPES){ ReadDataDialog readDialog = new ReadDataDialog("Open new data", this); readDialog.pack(); readDialog.setVisible(true); }else if (command == "Continue"){ //TODO: change it so writing to a file is a checkbox on the CheckDataPanel theData = new HaploData(); JTable table = checkPanel.getTable(); checkWindow.dispose(); boolean[] markerResultArray = new boolean[table.getRowCount()]; for (int i = 0; i < table.getRowCount(); i++){ markerResultArray[i] = ((Boolean)table.getValueAt(i,7)).booleanValue(); } /* try{ new TextMethods().linkageToHaps(markerResultArray,checkPanel.getPedFile(),filenames[0]+".haps"); }catch (IOException ioexec){ JOptionPane.showMessageDialog(this, ioexec.getMessage(), "File Error", JOptionPane.ERROR_MESSAGE); } */ theData.linkageToChrom(markerResultArray,checkPanel.getPedFile()); processData(); //processInput(new File(hapInputFileName+".haps")); } else if (command == READ_MARKERS){ fc.setSelectedFile(null); int returnVal = fc.showOpenDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION) { readMarkers(fc.getSelectedFile()); } }else if (command == "Clear All Blocks"){ //theBlocks.clearBlocks(); }else if (command == DEFINE_BLOCKS){ defineBlocks(); }else if (command == "Tutorial"){ showHelp(); } else if (command == QUIT){ quit(); } else { for (int i = 0; i < viewItems.length; i++) { if (command == viewItems[i]) tabs.setSelectedIndex(i); } } }
|
51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/d81e1d9bdef655e35838e72c0630bea5e07b45e4/HaploView.java/clean/edu/mit/wi/haploview/HaploView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
514,
1296,
273,
425,
18,
588,
1803,
2189,
5621,
3639,
309,
261,
3076,
422,
10746,
67,
16652,
1974,
1738,
55,
15329,
5411,
2720,
751,
6353,
855,
6353,
273,
394,
2720,
751,
6353,
2932,
3678,
394,
501,
3113,
333,
1769,
5411,
855,
6353,
18,
2920,
5621,
5411,
855,
6353,
18,
542,
6207,
12,
3767,
1769,
3639,
289,
12107,
309,
261,
3076,
422,
315,
12378,
7923,
95,
5411,
368,
6241,
30,
2549,
518,
1427,
7410,
358,
279,
585,
353,
279,
11832,
603,
326,
2073,
751,
5537,
5411,
326,
751,
273,
394,
670,
438,
383,
751,
5621,
5411,
804,
1388,
1014,
273,
866,
5537,
18,
588,
1388,
5621,
5411,
866,
3829,
18,
2251,
4150,
5621,
5411,
1250,
8526,
5373,
1253,
1076,
273,
394,
1250,
63,
2121,
18,
588,
26359,
1435,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1014,
18,
588,
26359,
5621,
277,
27245,
95,
7734,
5373,
1253,
1076,
63,
77,
65,
273,
14015,
5507,
13,
2121,
18,
24805,
861,
12,
77,
16,
27,
13,
2934,
6494,
620,
5621,
5411,
289,
5411,
1748,
5411,
775,
95,
5411,
394,
3867,
4712,
7675,
1232,
410,
774,
44,
6679,
12,
11145,
1253,
1076,
16,
1893,
5537,
18,
588,
52,
329,
812,
9334,
2630,
1320,
63,
20,
3737,
9654,
19312,
8863,
5411,
289,
14683,
261,
14106,
2527,
4177,
15329,
5411,
804,
1895,
8485,
18,
4500,
1079,
6353,
12,
2211,
16,
5411,
2527,
4177,
18,
24906,
9334,
5411,
315,
812,
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,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
514,
1296,
273,
425,
18,
588,
1803,
2189,
5621,
3639,
309,
261,
3076,
422,
10746,
67,
16652,
1974,
1738,
55,
15329,
5411,
2720,
751,
6353,
855,
6353,
273,
394,
2720,
751,
6353,
2932,
3678,
394,
501,
3113,
333,
1769,
5411,
855,
6353,
18,
2920,
5621,
5411,
855,
6353,
18,
542,
6207,
12,
3767,
1769,
3639,
289,
12107,
309,
261,
3076,
422,
315,
12378,
7923,
95,
5411,
368,
6241,
30,
2549,
518,
1427,
7410,
358,
279,
585,
353,
279,
11832,
603,
326,
2073,
751,
5537,
5411,
326,
751,
273,
394,
670,
438,
383,
751,
5621,
5411,
804,
1388,
1014,
273,
866,
5537,
18,
588,
1388,
5621,
5411,
866,
3829,
2
] |
case LEFT_BOTTOM: if (decDatas[LEFT_TOP] == null || decDatas[LEFT_TOP].data.width < newWidth) { formData.left = new FormAttachment(decData.label); } else
|
/* * The only real difference in right side cases is that we are attaching * the right side of the control to the wider decoration instead * of the left. Other concerns (horizontally aligning the smaller * decoration) are the same. */ case RIGHT_TOP: case RIGHT_BOTTOM: if (index == RIGHT_TOP) opposing = RIGHT_BOTTOM; else opposing = RIGHT_TOP; if (decDatas[opposing] == null) { formData.right = new FormAttachment(decData.label); } else if (decDatas[opposing].data.width < newWidth) { formData.right = new FormAttachment(decData.label); decDatas[opposing].data.left.alignment = SWT.CENTER; decDatas[opposing].data.left.control = decData.label; } else {
|
private void updateControlAttachments(int index, FieldDecorationData decData) { FormData formData = (FormData) control.getLayoutData(); int newWidth = widthOf(decData.decoration.getImage()); switch (index) { case LEFT_TOP: if (decDatas[LEFT_BOTTOM] == null || decDatas[LEFT_BOTTOM].data.width < newWidth) { formData.left = new FormAttachment(decData.label); } else formData = null; break; case LEFT_BOTTOM: if (decDatas[LEFT_TOP] == null || decDatas[LEFT_TOP].data.width < newWidth) { formData.left = new FormAttachment(decData.label); } else formData = null; break; case RIGHT_TOP: if (decDatas[RIGHT_BOTTOM] == null || decDatas[RIGHT_BOTTOM].data.width < newWidth) { formData.right = new FormAttachment(decData.label); } else formData = null; break; case RIGHT_BOTTOM: if (decDatas[RIGHT_TOP] == null || decDatas[RIGHT_TOP].data.width < newWidth) { formData.right = new FormAttachment(decData.label); } else formData = null; break; default: return; } if (formData != null) { // Form data was updated. control.setLayoutData(formData); form.layout(); } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/57eca2855ada69e3c2227fdebe39dcb1a59b059d/DecoratedField.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
3367,
12961,
12,
474,
770,
16,
2286,
7859,
367,
751,
2109,
751,
13,
288,
202,
202,
30079,
14224,
273,
261,
30079,
13,
3325,
18,
588,
3744,
751,
5621,
202,
202,
474,
23542,
273,
1835,
951,
12,
4924,
751,
18,
11880,
367,
18,
588,
2040,
10663,
202,
202,
9610,
261,
1615,
13,
288,
202,
202,
3593,
9686,
67,
10462,
30,
1082,
202,
430,
261,
4924,
14305,
63,
10066,
67,
28891,
65,
422,
446,
6862,
202,
20081,
2109,
14305,
63,
10066,
67,
28891,
8009,
892,
18,
2819,
411,
23542,
13,
288,
9506,
202,
687,
751,
18,
4482,
273,
394,
2748,
6803,
12,
4924,
751,
18,
1925,
1769,
1082,
202,
97,
469,
9506,
202,
687,
751,
273,
446,
31,
1082,
202,
8820,
31,
202,
202,
3593,
9686,
67,
28891,
30,
1082,
202,
430,
261,
4924,
14305,
63,
10066,
67,
10462,
65,
422,
446,
6862,
202,
20081,
2109,
14305,
63,
10066,
67,
10462,
8009,
892,
18,
2819,
411,
23542,
13,
288,
9506,
202,
687,
751,
18,
4482,
273,
394,
2748,
6803,
12,
4924,
751,
18,
1925,
1769,
1082,
202,
97,
469,
9506,
202,
687,
751,
273,
446,
31,
1082,
202,
8820,
31,
202,
202,
3593,
13135,
67,
10462,
30,
1082,
202,
430,
261,
4924,
14305,
63,
11847,
67,
28891,
65,
422,
446,
6862,
202,
20081,
2109,
14305,
63,
11847,
67,
28891,
8009,
892,
18,
2819,
411,
23542,
13,
288,
9506,
202,
687,
751,
18,
4083,
273,
394,
2748,
6803,
12,
4924,
751,
18,
1925,
1769,
1082,
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,
1089,
3367,
12961,
12,
474,
770,
16,
2286,
7859,
367,
751,
2109,
751,
13,
288,
202,
202,
30079,
14224,
273,
261,
30079,
13,
3325,
18,
588,
3744,
751,
5621,
202,
202,
474,
23542,
273,
1835,
951,
12,
4924,
751,
18,
11880,
367,
18,
588,
2040,
10663,
202,
202,
9610,
261,
1615,
13,
288,
202,
202,
3593,
9686,
67,
10462,
30,
1082,
202,
430,
261,
4924,
14305,
63,
10066,
67,
28891,
65,
422,
446,
6862,
202,
20081,
2109,
14305,
63,
10066,
67,
28891,
8009,
892,
18,
2819,
411,
23542,
13,
288,
9506,
202,
687,
751,
18,
4482,
273,
394,
2748,
6803,
12,
4924,
751,
18,
1925,
1769,
1082,
202,
97,
469,
9506,
202,
687,
751,
273,
2
] |
TrimLayout layout = window.getTrimLayout();
|
ITrimManager layout = window.getTrimManager();
|
public void testGetIDs() throws Throwable { WorkbenchWindow window = (WorkbenchWindow) openTestWindow(); TrimLayout layout = window.getTrimLayout(); int[] ids = layout.getAreaIds(); assertEquals("number of trim areas", 4, ids.length); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/0a88114a4db76de6611663f5760e59600623bbd3/TrimLayoutTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/TrimLayoutTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
967,
5103,
1435,
1216,
4206,
288,
202,
202,
2421,
22144,
3829,
2742,
273,
261,
2421,
22144,
3829,
13,
1696,
4709,
3829,
5621,
202,
202,
14795,
3744,
3511,
273,
2742,
18,
588,
14795,
3744,
5621,
202,
202,
474,
8526,
3258,
273,
3511,
18,
588,
5484,
2673,
5621,
202,
202,
11231,
8867,
2932,
2696,
434,
2209,
15586,
3113,
1059,
16,
3258,
18,
2469,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
967,
5103,
1435,
1216,
4206,
288,
202,
202,
2421,
22144,
3829,
2742,
273,
261,
2421,
22144,
3829,
13,
1696,
4709,
3829,
5621,
202,
202,
14795,
3744,
3511,
273,
2742,
18,
588,
14795,
3744,
5621,
202,
202,
474,
8526,
3258,
273,
3511,
18,
588,
5484,
2673,
5621,
202,
202,
11231,
8867,
2932,
2696,
434,
2209,
15586,
3113,
1059,
16,
3258,
18,
2469,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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
] |
||
throw new IllegalArgumentException("Unable to convert [" + text + "] to type: [" + type.getName() + "]");
|
throw new IllegalArgumentException( "Unable to convert [" + text + "] to type: [" + type.getName() + "]" );
|
private Object convert(String text, Class type) { if ( type == Integer.class || type == int.class) { return new Integer( text ) ; } else if ( text == "null" ) { return null; } else if ( type == Character.class || type == char.class ) { return ( new Character( text.charAt( 0 ) ) ); } else if ( type == Short.class || type == short.class) { return new Short( text ); } else if ( type == Long.class || type == long.class ) { return new Long( text ); } else if ( type == Float.class || type == float.class) { return new Float( text ); } else if ( type == Double.class || type == double.class) { return new Double( text ); } else if ( type == Boolean.class || type == boolean.class) { return new Boolean( text ); } else if ( type == Date.class ) { return DateFactory.parseDate( text ); } else if ( type == BigDecimal.class ) { return new BigDecimal(text); } else if ( type == BigInteger.class ) { return new BigInteger(text); } else { throw new IllegalArgumentException("Unable to convert [" + text + "] to type: [" + type.getName() + "]"); } }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/952fcbc554d440f1b636c24be032d12e62bbd038/MethodDataProvider.java/clean/drools-core/src/main/java/org/drools/base/dataproviders/MethodDataProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
1765,
12,
780,
977,
16,
21821,
1659,
618,
13,
288,
3639,
309,
261,
618,
422,
2144,
18,
1106,
747,
618,
422,
509,
18,
1106,
13,
288,
5411,
327,
394,
2144,
12,
977,
262,
274,
3639,
289,
469,
309,
261,
977,
422,
315,
2011,
6,
262,
288,
5411,
327,
446,
31,
3639,
289,
469,
309,
261,
618,
422,
6577,
18,
1106,
747,
618,
422,
1149,
18,
1106,
262,
288,
5411,
327,
261,
394,
6577,
12,
977,
18,
3001,
861,
12,
374,
262,
262,
11272,
3639,
289,
469,
309,
261,
618,
422,
7925,
18,
1106,
747,
618,
422,
3025,
18,
1106,
13,
288,
5411,
327,
394,
7925,
12,
977,
11272,
3639,
289,
469,
309,
261,
618,
422,
3407,
18,
1106,
747,
618,
422,
1525,
18,
1106,
262,
288,
5411,
327,
394,
3407,
12,
977,
11272,
3639,
289,
469,
309,
261,
618,
422,
5450,
18,
1106,
747,
618,
422,
1431,
18,
1106,
13,
288,
5411,
327,
394,
5450,
12,
977,
11272,
3639,
289,
469,
309,
261,
618,
422,
3698,
18,
1106,
747,
618,
422,
1645,
18,
1106,
13,
288,
5411,
327,
394,
3698,
12,
977,
11272,
3639,
289,
469,
309,
261,
618,
422,
3411,
18,
1106,
747,
618,
422,
1250,
18,
1106,
13,
288,
5411,
327,
394,
3411,
12,
977,
11272,
3639,
289,
469,
309,
261,
618,
422,
2167,
18,
1106,
262,
288,
13491,
327,
2167,
1733,
18,
2670,
1626,
12,
977,
11272,
3639,
289,
469,
309,
261,
618,
422,
8150,
18,
1106,
262,
288,
5411,
327,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
1765,
12,
780,
977,
16,
21821,
1659,
618,
13,
288,
3639,
309,
261,
618,
422,
2144,
18,
1106,
747,
618,
422,
509,
18,
1106,
13,
288,
5411,
327,
394,
2144,
12,
977,
262,
274,
3639,
289,
469,
309,
261,
977,
422,
315,
2011,
6,
262,
288,
5411,
327,
446,
31,
3639,
289,
469,
309,
261,
618,
422,
6577,
18,
1106,
747,
618,
422,
1149,
18,
1106,
262,
288,
5411,
327,
261,
394,
6577,
12,
977,
18,
3001,
861,
12,
374,
262,
262,
11272,
3639,
289,
469,
309,
261,
618,
422,
7925,
18,
1106,
747,
618,
422,
3025,
18,
1106,
13,
288,
5411,
327,
394,
7925,
12,
977,
11272,
3639,
289,
469,
309,
261,
618,
422,
3407,
2
] |
if (messageImage.getVisible()) {
|
if (showingError) {
|
public void setErrorMessage(String errorMessage) { if (errorMessage == null) { if (messageImage.getVisible()) { // we were previously showing an error messageLabel.setBackground(normalMsgAreaBackground); messageImage.setBackground(normalMsgAreaBackground); messageArea.setBackground(normalMsgAreaBackground); messageImage.setVisible(false); messageImage.setImage(null); titleArea.layout(true); } // show the message // avoid calling setMessage in case it is overridden to call setErrorMessage, // which would result in a recursive infinite loop if (message == null) //this should probably never happen since setMessage does this conversion.... message = ""; //$NON-NLS-1$ messageLabel.setText(message); messageLabel.setToolTipText(message); } else { messageLabel.setText(errorMessage); messageLabel.setToolTipText(errorMessage); if (!messageImage.getVisible()) { // we were not previously showing an error // lazy initialize the error background color and image if (errorMsgAreaBackground == null) { errorMsgAreaBackground = JFaceColors.getErrorBackground(messageArea.getDisplay()); errorMsgImage = JFaceResources.getImage(DLG_IMG_TITLE_ERROR); } // show the error normalMsgAreaBackground = messageLabel.getBackground(); messageLabel.setBackground(errorMsgAreaBackground); messageImage.setBackground(errorMsgAreaBackground); messageArea.setBackground(errorMsgAreaBackground); messageImage.setImage(errorMsgImage); messageImage.setVisible(true); titleArea.layout(true); } }}
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c4f6eea0242519035d1255fb52958492b9739dbf/TitleAreaDialog.java/buggy/bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/dialogs/TitleAreaDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
9967,
1079,
12,
780,
9324,
13,
288,
202,
430,
261,
1636,
1079,
422,
446,
13,
288,
202,
202,
430,
261,
2150,
2040,
18,
588,
6207,
10756,
288,
1082,
202,
759,
732,
4591,
7243,
17253,
392,
555,
1082,
202,
2150,
2224,
18,
542,
8199,
12,
6130,
3332,
5484,
8199,
1769,
1082,
202,
2150,
2040,
18,
542,
8199,
12,
6130,
3332,
5484,
8199,
1769,
1082,
202,
2150,
5484,
18,
542,
8199,
12,
6130,
3332,
5484,
8199,
1769,
1082,
202,
2150,
2040,
18,
542,
6207,
12,
5743,
1769,
1082,
202,
2150,
2040,
18,
542,
2040,
12,
2011,
1769,
1082,
202,
2649,
5484,
18,
6741,
12,
3767,
1769,
202,
202,
97,
202,
202,
759,
2405,
326,
883,
202,
202,
759,
4543,
4440,
15227,
316,
648,
518,
353,
11000,
358,
745,
9967,
1079,
16,
3196,
202,
759,
1492,
4102,
563,
316,
279,
5904,
14853,
2798,
202,
202,
430,
261,
2150,
422,
446,
13,
202,
759,
2211,
1410,
8656,
5903,
5865,
3241,
15227,
1552,
333,
4105,
6265,
1082,
202,
2150,
273,
1408,
31,
202,
202,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
2150,
2224,
18,
542,
1528,
12,
2150,
1769,
202,
202,
2150,
2224,
18,
542,
29250,
1528,
12,
2150,
1769,
202,
97,
469,
288,
202,
202,
2150,
2224,
18,
542,
1528,
12,
1636,
1079,
1769,
202,
202,
2150,
2224,
18,
542,
29250,
1528,
12,
1636,
1079,
1769,
202,
202,
430,
16051,
2150,
2040,
18,
588,
6207,
10756,
288,
1082,
202,
759,
732,
4591,
486,
7243,
17253,
392,
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,
1071,
918,
9967,
1079,
12,
780,
9324,
13,
288,
202,
430,
261,
1636,
1079,
422,
446,
13,
288,
202,
202,
430,
261,
2150,
2040,
18,
588,
6207,
10756,
288,
1082,
202,
759,
732,
4591,
7243,
17253,
392,
555,
1082,
202,
2150,
2224,
18,
542,
8199,
12,
6130,
3332,
5484,
8199,
1769,
1082,
202,
2150,
2040,
18,
542,
8199,
12,
6130,
3332,
5484,
8199,
1769,
1082,
202,
2150,
5484,
18,
542,
8199,
12,
6130,
3332,
5484,
8199,
1769,
1082,
202,
2150,
2040,
18,
542,
6207,
12,
5743,
1769,
1082,
202,
2150,
2040,
18,
542,
2040,
12,
2011,
1769,
1082,
202,
2649,
5484,
18,
6741,
12,
3767,
1769,
202,
202,
97,
202,
202,
759,
2405,
326,
883,
202,
202,
759,
4543,
2
] |
for (int i=0; i<resTypes.size(); i++) {
|
for (int i = 0; i < resTypes.size(); i++) {
|
public static Map getDefaultValuesFromMessages(CmsMessages messages) { HashMap result = new HashMap(); List resTypes = OpenCms.getResourceManager().getResourceTypes(); for (int i=0; i<resTypes.size(); i++) { I_CmsResourceType type = (I_CmsResourceType)resTypes.get(i); if (type.isAdditionalModuleResourceType()) { // only look for keys if the resource type is an additional one for (int k=0; k< DISPLAYAREAS.length; k++) { // loop over the possible display areas String area = DISPLAYAREAS[k]; String typeName = type.getTypeName(); StringBuffer keyPrefix = new StringBuffer(8); keyPrefix.append("layout.").append(typeName).append('.').append(area).append('.'); // get collector default String key = keyPrefix + PARAM_COLLECTOR; String value = messages.key(key); if (CmsStringUtil.isEmptyOrWhitespaceOnly(value) || value.startsWith(CmsMessages.C_UNKNOWN_KEY_EXTENSION)) { // no default collector found, this indicates no list specifications for this type are present continue; } result.put(key, value); // get the default count key = keyPrefix + PARAM_COUNT; result.put(key, messages.key(key)); // get the default folder key = keyPrefix + PARAM_FOLDER; result.put(key, messages.key(key)); // get the possible list element JSPs for (int m=0; m<LISTVARIATIONS.length; m++) { key = keyPrefix + PARAM_LISTELEMENT + LISTVARIATIONS[m]; value = messages.key(key); if (! value.startsWith(CmsMessages.C_UNKNOWN_KEY_EXTENSION)) { result.put(key, value); } } } } } return result; }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/98f698d905eee245c2e39e11531b99a5f27e0d0f/CmsTemplateContentListItem.java/buggy/src/org/opencms/jsp/util/CmsTemplateContentListItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1635,
4829,
1972,
1265,
5058,
12,
4747,
5058,
2743,
13,
288,
3639,
4317,
563,
273,
394,
4317,
5621,
3639,
987,
400,
2016,
273,
10319,
18,
588,
1420,
1318,
7675,
588,
1420,
2016,
5621,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
400,
2016,
18,
1467,
5621,
277,
27245,
288,
5411,
467,
67,
4747,
15631,
618,
273,
261,
45,
67,
4747,
15631,
13,
455,
2016,
18,
588,
12,
77,
1769,
5411,
309,
261,
723,
18,
291,
10552,
3120,
15631,
10756,
288,
7734,
368,
1338,
2324,
364,
1311,
309,
326,
1058,
618,
353,
392,
3312,
1245,
7734,
364,
261,
474,
417,
33,
20,
31,
417,
32,
25214,
9332,
3033,
18,
2469,
31,
417,
27245,
288,
10792,
368,
2798,
1879,
326,
3323,
2562,
15586,
10792,
514,
5091,
273,
25214,
9332,
3033,
63,
79,
15533,
10792,
514,
8173,
273,
618,
18,
588,
7947,
5621,
10792,
6674,
28877,
273,
394,
6674,
12,
28,
1769,
10792,
28877,
18,
6923,
2932,
6741,
1199,
2934,
6923,
12,
723,
461,
2934,
6923,
2668,
1093,
2934,
6923,
12,
5036,
2934,
6923,
2668,
1093,
1769,
10792,
368,
336,
8543,
805,
10792,
514,
498,
273,
28877,
397,
4655,
67,
4935,
3918,
916,
31,
10792,
514,
460,
273,
2743,
18,
856,
12,
856,
1769,
10792,
309,
261,
4747,
13565,
18,
291,
1921,
22125,
12,
1132,
13,
747,
460,
18,
17514,
1190,
12,
4747,
5058,
18,
39,
67,
14737,
67,
3297,
67,
12796,
3719,
288,
13491,
368,
1158,
805,
8543,
1392,
16,
333,
8527,
1158,
666,
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,
1635,
4829,
1972,
1265,
5058,
12,
4747,
5058,
2743,
13,
288,
3639,
4317,
563,
273,
394,
4317,
5621,
3639,
987,
400,
2016,
273,
10319,
18,
588,
1420,
1318,
7675,
588,
1420,
2016,
5621,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
400,
2016,
18,
1467,
5621,
277,
27245,
288,
5411,
467,
67,
4747,
15631,
618,
273,
261,
45,
67,
4747,
15631,
13,
455,
2016,
18,
588,
12,
77,
1769,
5411,
309,
261,
723,
18,
291,
10552,
3120,
15631,
10756,
288,
7734,
368,
1338,
2324,
364,
1311,
309,
326,
1058,
618,
353,
392,
3312,
1245,
7734,
364,
261,
474,
417,
33,
20,
31,
417,
32,
25214,
9332,
3033,
18,
2469,
31,
417,
27245,
288,
10792,
2
] |
public void testUndeploy() throws Exception { System.setProperty(MuleProperties.DISABLE_SERVER_CONNECTIONS_SYSTEM_PROPERTY, "true"); final UMOManager manager = getManager(); final UMOConnector connector = getTestConnector(); connector.setName("TEST_CONNECTOR"); final JmxAgent jmxAgent = new JmxAgent(); jmxAgent.setUseInstanceIdAsDomain(false); manager.registerConnector(connector); manager.registerAgent(jmxAgent); manager.start(); System.setProperty(MuleProperties.DISABLE_SERVER_CONNECTIONS_SYSTEM_PROPERTY, "false"); Set mbeans = mBeanServer.queryMBeans(ObjectName.getInstance("org.mule:*"), null); assertEquals("Unexpected number of components registered in the domain.", 5, mbeans.size()); manager.dispose(); mbeans = mBeanServer.queryMBeans(ObjectName.getInstance("org.mule:*"), null); assertEquals("There should be no MBeans left in the domain", 0, mbeans.size()); }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/b656e0806058d87c5db05880209b51a8d57416d0/ConnectorServiceTestCase.java/buggy/mule/src/test/java/org/mule/management/mbeans/ConnectorServiceTestCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
984,
12411,
1435,
15069,
503,
95,
3163,
18,
542,
1396,
12,
49,
725,
2297,
18,
13498,
2782,
67,
4370,
67,
15461,
55,
67,
14318,
67,
9900,
10837,
3767,
8863,
6385,
2799,
1872,
940,
1035,
1063,
33,
588,
1318,
5621,
6385,
2799,
51,
7487,
23159,
33,
588,
4709,
7487,
5621,
23159,
18,
542,
461,
2932,
16961,
67,
29788,
8863,
6385,
46,
11023,
3630,
78,
11023,
3630,
33,
2704,
46,
11023,
3630,
5621,
78,
11023,
3630,
18,
542,
3727,
15327,
1463,
3748,
12,
5743,
1769,
4181,
18,
4861,
7487,
12,
23159,
1769,
4181,
18,
4861,
3630,
12,
78,
11023,
3630,
1769,
4181,
18,
1937,
5621,
3163,
18,
542,
1396,
12,
49,
725,
2297,
18,
13498,
2782,
67,
4370,
67,
15461,
55,
67,
14318,
67,
9900,
10837,
5743,
8863,
694,
1627,
73,
634,
33,
81,
3381,
2081,
18,
2271,
49,
14495,
12,
16707,
18,
588,
1442,
2932,
3341,
18,
81,
725,
30,
7388,
3631,
2011,
1769,
11231,
8867,
2932,
7762,
2696,
792,
8119,
14327,
267,
451,
329,
1530,
1199,
16,
25,
16,
1627,
73,
634,
18,
1467,
10663,
4181,
18,
2251,
4150,
5621,
1627,
73,
634,
33,
81,
3381,
2081,
18,
2271,
49,
14495,
12,
16707,
18,
588,
1442,
2932,
3341,
18,
81,
725,
30,
7388,
3631,
2011,
1769,
11231,
8867,
2932,
1315,
264,
4607,
1006,
70,
5764,
49,
14495,
4482,
267,
451,
329,
1530,
3113,
20,
16,
1627,
73,
634,
18,
1467,
10663,
97,
2,
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,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
984,
12411,
1435,
15069,
503,
95,
3163,
18,
542,
1396,
12,
49,
725,
2297,
18,
13498,
2782,
67,
4370,
67,
15461,
55,
67,
14318,
67,
9900,
10837,
3767,
8863,
6385,
2799,
1872,
940,
1035,
1063,
33,
588,
1318,
5621,
6385,
2799,
51,
7487,
23159,
33,
588,
4709,
7487,
5621,
23159,
18,
542,
461,
2932,
16961,
67,
29788,
8863,
6385,
46,
11023,
3630,
78,
11023,
3630,
33,
2704,
46,
11023,
3630,
5621,
78,
11023,
3630,
18,
542,
3727,
15327,
1463,
3748,
12,
5743,
1769,
4181,
18,
4861,
7487,
12,
23159,
1769,
4181,
18,
4861,
3630,
12,
78,
11023,
3630,
1769,
4181,
18,
1937,
5621,
3163,
18,
542,
1396,
12,
49,
725,
2297,
18,
13498,
2782,
67,
4370,
2
] |
||
{ ChatWindow win = (ChatWindow)we.getWindow();
|
{ ChatWindow win = (ChatWindow)we.getWindow();
|
public void windowClosed(WindowEvent we) { ChatWindow win = (ChatWindow)we.getWindow(); mChatWindows.remove(win); JavolinMenuBar.notifyUpdateWindowMenu(); mUserChatWinMap.remove(win.getRemoteUserId()); }
|
49579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49579/fa2d8985af9550bb199cf13d2cfbca62b1d66e2f/JavolinApp.java/buggy/Javolin/source/org/volity/javolin/JavolinApp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
7682,
1071,
918,
2742,
7395,
12,
3829,
1133,
732,
13,
13491,
288,
18701,
16903,
3829,
5657,
273,
261,
14163,
3829,
13,
1814,
18,
588,
3829,
5621,
18701,
312,
14163,
10399,
18,
4479,
12,
8082,
1769,
18701,
804,
842,
355,
267,
4599,
5190,
18,
12336,
1891,
3829,
4599,
5621,
18701,
312,
1299,
14163,
18049,
863,
18,
4479,
12,
8082,
18,
588,
5169,
10502,
10663,
13491,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
7682,
1071,
918,
2742,
7395,
12,
3829,
1133,
732,
13,
13491,
288,
18701,
16903,
3829,
5657,
273,
261,
14163,
3829,
13,
1814,
18,
588,
3829,
5621,
18701,
312,
14163,
10399,
18,
4479,
12,
8082,
1769,
18701,
804,
842,
355,
267,
4599,
5190,
18,
12336,
1891,
3829,
4599,
5621,
18701,
312,
1299,
14163,
18049,
863,
18,
4479,
12,
8082,
18,
588,
5169,
10502,
10663,
13491,
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
] |
DrawableSequence ds = fromString(sequence);
|
DrawableSequence ds = fromString(e.getAccessionCode(),sequence);
|
public void newSequence(SequenceEvent e) { String sequence = e.getSequence(); DrawableSequence ds = fromString(sequence); Iterator iter = seqRenderers.iterator(); while (iter.hasNext()){ SequenceRenderer renderer = (SequenceRenderer)iter.next(); renderer.setDrawableSequence(ds); } SequenceEvent sevent = new SequenceEvent(e.getAccessionCode(),sequence); iter = sequenceListeners.iterator(); while (iter.hasNext()){ SequenceListener li = (SequenceListener)iter.next(); li.newSequence(sevent); } }
|
52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/ecb4a47453fdced2ed52496382d460000175b151/SequenceManager.java/clean/src/org/biojava/spice/manypanel/managers/SequenceManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
394,
4021,
12,
4021,
1133,
425,
13,
288,
3639,
514,
3102,
273,
425,
18,
588,
4021,
5621,
3639,
28074,
4021,
3780,
273,
14855,
12,
73,
18,
588,
1862,
285,
1085,
9334,
6178,
1769,
7734,
4498,
1400,
273,
3833,
3420,
414,
18,
9838,
5621,
7734,
1323,
261,
2165,
18,
5332,
2134,
10756,
95,
5411,
8370,
6747,
5690,
273,
261,
4021,
6747,
13,
2165,
18,
4285,
5621,
13491,
5690,
18,
542,
16149,
4021,
12,
2377,
1769,
5375,
289,
10792,
8370,
1133,
695,
616,
273,
394,
8370,
1133,
12,
73,
18,
588,
1862,
285,
1085,
9334,
6178,
1769,
3639,
1400,
273,
3102,
5583,
18,
9838,
5621,
3639,
1323,
261,
2165,
18,
5332,
2134,
10756,
95,
5411,
8370,
2223,
4501,
273,
261,
4021,
2223,
13,
2165,
18,
4285,
5621,
5397,
4501,
18,
2704,
4021,
12,
307,
616,
1769,
3639,
289,
10792,
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,
394,
4021,
12,
4021,
1133,
425,
13,
288,
3639,
514,
3102,
273,
425,
18,
588,
4021,
5621,
3639,
28074,
4021,
3780,
273,
14855,
12,
73,
18,
588,
1862,
285,
1085,
9334,
6178,
1769,
7734,
4498,
1400,
273,
3833,
3420,
414,
18,
9838,
5621,
7734,
1323,
261,
2165,
18,
5332,
2134,
10756,
95,
5411,
8370,
6747,
5690,
273,
261,
4021,
6747,
13,
2165,
18,
4285,
5621,
13491,
5690,
18,
542,
16149,
4021,
12,
2377,
1769,
5375,
289,
10792,
8370,
1133,
695,
616,
273,
394,
8370,
1133,
12,
73,
18,
588,
1862,
285,
1085,
9334,
6178,
1769,
3639,
1400,
273,
3102,
5583,
18,
9838,
5621,
3639,
1323,
261,
2165,
18,
5332,
2134,
10756,
95,
5411,
8370,
2223,
4501,
2
] |
if (bSalvo) { phaseReport.append(hits + sSalvoType + "hit" + toHit.getTableDesc() + "."); if (amsHits > 0) { phaseReport.append("\n\tAMS shoots down " + amsHits + " missile(s)."); } /* 2002-10-24 Suvarov454 : commented out to clean up weapons phase. phaseReport.append("\n\t"); */ }
|
private void resolveWeaponAttack(WeaponAttackAction waa, int lastEntityId) { final Entity ae = game.getEntity(waa.getEntityId()); final Entity te = game.getEntity(waa.getTargetId()); final Mounted weapon = ae.getEquipment(waa.getWeaponId()); final WeaponType wtype = (WeaponType)weapon.getType(); // 2002-09-16 Infantry weapons have unlimited ammo. final boolean isWeaponInfantry = wtype.hasFlag(WeaponType.F_INFANTRY); final boolean usesAmmo = wtype.getAmmoType() != AmmoType.T_NA && !isWeaponInfantry; Mounted ammo = null; Infantry platoon = null; if (usesAmmo) { if (waa.getAmmoId() > -1) { ammo = ae.getEquipment(waa.getAmmoId()); weapon.setLinked(ammo); } else { ammo = weapon.getLinked(); } } final AmmoType atype = ammo == null ? null : (AmmoType)ammo.getType(); if (lastEntityId != waa.getEntityId()) { phaseReport.append("\nWeapons fire for " + ae.getDisplayName() + "\n"); } phaseReport.append(" " + wtype.getName() + " at " + te.getDisplayName()); // has this weapon fired already? if (weapon.isUsedThisRound()) { phaseReport.append(" but the weapon has already fired this round!\n"); return; } // is the weapon functional? if (weapon.isDestroyed()) { phaseReport.append(" but the weapon has been destroyed in a previous round!\n"); return; } // try reloading if (usesAmmo && (ammo == null || ammo.getShotsLeft() == 0 || ammo.isDumping())) { ae.loadWeapon(weapon); ammo = weapon.getLinked(); } // // should we even bother?// if (te.isDestroyed() || te.isDoomed() || te.crew.isDead()) {// phaseReport.append(" but the target is already destroyed!\n");// return;// } // compute to-hit ToHitData toHit = Compute.toHitWeapon(game, waa, attacks); if (toHit.getValue() == ToHitData.IMPOSSIBLE) { phaseReport.append(", but the shot is impossible (" + toHit.getDesc() + ")\n"); return; } else if (toHit.getValue() == ToHitData.AUTOMATIC_FAIL) { phaseReport.append(", the shot is an automatic miss (" + toHit.getDesc() + "), "); } else { phaseReport.append("; needs " + toHit.getValue() + ", "); } // use up ammo (if weapon is out of ammo, we shouldn't be here) if (usesAmmo) { ammo.setShotsLeft(ammo.getShotsLeft() - 1); /* Fire Mode - Takes 2 shots of ammo away if we are firing uAC Double Rate. If you don't have enough ammo for a Double Rate shot, you can't do it! Rasia */ if (wtype.getAmmoType() == AmmoType.T_AC_ULTRA && ammo != null && weapon.curMode().equals("Ultra")) { if (ammo.getShotsLeft() <= 0) { ae.loadWeapon(weapon); ammo = weapon.getLinked(); if (ammo.getShotsLeft() <= 0) { weapon.switchMode(); phaseReport.append("(Out of Ammo, Single Rate Only):"); } else { ammo.setShotsLeft(ammo.getShotsLeft() - 1); } } else { ammo.setShotsLeft(ammo.getShotsLeft() - 1); } } } // build up some heat ae.heatBuildup += wtype.getHeat(); if (wtype.getAmmoType() == AmmoType.T_AC_ULTRA && weapon.curMode().equals("Ultra")) // Fire Mode - If we are shooting an Ultra AC twice ae.heatBuildup += wtype.getHeat(); // set the weapon as having fired weapon.setUsedThisRound(true); // if firing an HGR unbraced, schedule a PSR if (wtype.getAmmoType() == AmmoType.T_GAUSS_HEAVY && ae.mpUsed > 0) { // the mod is weight-based int nMod; if (te.getWeight() <= Mech.WEIGHT_LIGHT) { nMod = 2; } else if (te.getWeight() <= Mech.WEIGHT_MEDIUM) { nMod = 1; } else if (te.getWeight() <= Mech.WEIGHT_HEAVY) { nMod = 0; } else { nMod = -1; } pilotRolls.addElement(new PilotingRollData(ae.getId(), nMod, "fired HeavyGauss unbraced")); } // roll int roll = Compute.d6(2); phaseReport.append("rolls " + roll + " : "); // check for AC jams int jamCheck = 0; if (wtype.getAmmoType() == AmmoType.T_AC_ULTRA && weapon.curMode().equals("Ultra")) { jamCheck = 2; } else if (wtype.getAmmoType() == AmmoType.T_AC_ROTARY) { if (weapon.curMode().equals("2-shot")) { jamCheck = 2; } else if (weapon.curMode().equals("4-shot")) { jamCheck = 3; } else if (weapon.curMode().equals("6-shot")) { jamCheck = 4; } } if (jamCheck > 0 && roll <= jamCheck) { phaseReport.append("misses AND THE AUTOCANNON JAMS.\n"); weapon.setHit(true); return; } // do we hit? if (roll < toHit.getValue()) { // miss phaseReport.append("misses.\n"); if (wtype.getAmmoType() == AmmoType.T_SRM_STREAK) { // this is sort of a hack... ae.heatBuildup -= wtype.getHeat(); ammo.setShotsLeft(ammo.getShotsLeft() + 1); phaseReport.append(" Streak fails to achieve lock on target.\n"); } return; } // yeech. handle damage. . different weapons do this in very different ways int hits = 1, amsHits = 0, nCluster = 1; boolean bSalvo = false; String sSalvoType = " shot(s) "; if (isWeaponInfantry) { // Infantry damage depends on # men left in platoon. bSalvo = true; platoon = (Infantry)ae; nCluster = 5; hits = platoon.getDamage(platoon.getShootingStrength()); } else if (wtype.getDamage() == WeaponType.DAMAGE_MISSILE) { sSalvoType = " missile(s) "; bSalvo = true; if (wtype.getAmmoType() == AmmoType.T_LRM || wtype.getAmmoType() == AmmoType.T_MRM) { nCluster = 5; } if (wtype.getAmmoType() == AmmoType.T_SRM_STREAK) { hits = wtype.getRackSize(); } else if (wtype.getRackSize() == 30 || wtype.getRackSize() == 40) { // I'm going to assume these are MRMs hits = Compute.missilesHit(wtype.getRackSize() / 2) + Compute.missilesHit(wtype.getRackSize() / 2); } else { hits = Compute.missilesHit(wtype.getRackSize()); } // adjust for AMS Vector vCounters = waa.getCounterEquipment(); if (vCounters != null) { for (int x = 0; x < vCounters.size(); x++) { Mounted counter = (Mounted)vCounters.elementAt(x); if (counter.getType() instanceof WeaponType && ((WeaponType)counter.getType()).getAmmoType() == AmmoType.T_AMS) { if (!counter.isReady() || counter.isMissing()) { continue; } amsHits = Compute.d6(((WeaponType)counter.getType()).getDamage()); if (amsHits > hits) amsHits = hits; // build up some heat ae.heatBuildup += ((WeaponType)counter.getType()).getHeat(); // decrement the ammo Mounted mAmmo = counter.getLinked(); mAmmo.setShotsLeft(Math.max(0, mAmmo.getShotsLeft() - amsHits)); // set the ams as having fired weapon.setUsedThisRound(true); } } } } else if (atype != null && atype.hasFlag(AmmoType.F_CLUSTER)) { bSalvo = true; hits = Compute.missilesHit(wtype.getRackSize()); } else if (wtype.getAmmoType() == AmmoType.T_AC_ULTRA && weapon.curMode().equals("Ultra")) { bSalvo = true; hits = Compute.missilesHit(2); } else if (wtype.getAmmoType() == AmmoType.T_AC_ROTARY && !weapon.curMode().equals("Single")) { bSalvo = true; if (weapon.curMode().equals("2-shot")) { hits = Compute.missilesHit(2); } else if (weapon.curMode().equals("4-shot")) { hits = Compute.missilesHit(4); } else if (weapon.curMode().equals("6-shot")) { hits = Compute.missilesHit(6); } } else if (atype != null && atype.hasFlag(AmmoType.F_MG) && !isWeaponInfantry && (te instanceof Infantry)) { // Mech and Vehicle MGs do *DICE* of damage to PBI. bSalvo = true; hits = Compute.d6(wtype.getDamage()); } if (bSalvo) { phaseReport.append(hits + sSalvoType + " hit" + toHit.getTableDesc() + "."); if (amsHits > 0) { phaseReport.append("\n\tAMS shoots down " + amsHits + " missile(s)."); } phaseReport.append("\n\t"); } int nDamPerHit = wtype.getDamage(); if (nDamPerHit == wtype.DAMAGE_MISSILE) { nDamPerHit = atype.getDamagePerShot(); } else if (isWeaponInfantry) { nDamPerHit = 1; } else if (wtype.getAmmoType() == AmmoType.T_GAUSS_HEAVY) { // HGR does range-dependent damage int nRange = ae.getPosition().distance(te.getPosition()); if (nRange <= wtype.getShortRange()) { nDamPerHit = 25; } else if (nRange <= wtype.getMediumRange()) { nDamPerHit = 20; } else { nDamPerHit = 10; } } // for each cluster of hits, do a chunk of damage while (hits > 0) { int nDamage = nDamPerHit * Math.min(nCluster, hits); if (wtype.hasFlag(WeaponType.F_FLAMER) && game.getOptions().booleanOption("flamer_heat")) { phaseReport.append("\n\tTarget gains ").append(nDamage).append(" more heat during heat phase.\n"); te.heatBuildup += hits; continue; } HitData hit = te.rollHitLocation(toHit.getHitTable(), toHit.getSideTable()); if (!bSalvo) { phaseReport.append("hits" + toHit.getTableDesc() + " " + te.getLocationAbbr(hit)); } phaseReport.append(damageEntity(te, hit, nDamage)); hits -= nCluster; } phaseReport.append("\n"); }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/0433a26a5561ef841c00051e6bcddfdb757fc34d/Server.java/clean/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
309,
261,
70,
55,
287,
12307,
13,
288,
6855,
4820,
18,
6923,
12,
15173,
397,
272,
55,
287,
12307,
559,
397,
315,
15989,
6,
397,
358,
13616,
18,
588,
1388,
4217,
1435,
397,
4585,
1769,
225,
309,
261,
301,
87,
20950,
405,
374,
13,
288,
6855,
4820,
18,
6923,
31458,
82,
64,
88,
2192,
55,
699,
1632,
87,
2588,
315,
397,
279,
959,
20950,
397,
315,
12543,
398,
12,
87,
14944,
1769,
289,
1748,
4044,
22,
17,
2163,
17,
3247,
348,
89,
1401,
1527,
24,
6564,
294,
31813,
596,
358,
2721,
731,
732,
438,
7008,
6855,
18,
6855,
4820,
18,
6923,
31458,
82,
64,
88,
8863,
1195,
289,
565,
309,
261,
70,
55,
287,
12307,
13,
288,
6855,
4820,
18,
6923,
12,
15173,
397,
272,
55,
287,
12307,
559,
397,
315,
15989,
6,
397,
358,
13616,
18,
588,
1388,
4217,
1435,
397,
4585,
1769,
225,
309,
261,
301,
87,
20950,
405,
374,
13,
288,
6855,
4820,
18,
6923,
31458,
82,
64,
88,
2192,
55,
699,
1632,
87,
2588,
315,
397,
279,
959,
20950,
397,
315,
12543,
398,
12,
87,
14944,
1769,
289,
1748,
4044,
22,
17,
2163,
17,
3247,
348,
89,
1401,
1527,
24,
6564,
294,
31813,
596,
358,
2721,
731,
732,
438,
7008,
6855,
18,
6855,
4820,
18,
6923,
31458,
82,
64,
88,
8863,
1195,
289,
565,
309,
261,
70,
55,
287,
12307,
13,
288,
6855,
4820,
18,
6923,
12,
15173,
397,
272,
55,
287,
12307,
559,
397,
315,
15989,
6,
397,
358,
13616,
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,
309,
261,
70,
55,
287,
12307,
13,
288,
6855,
4820,
18,
6923,
12,
15173,
397,
272,
55,
287,
12307,
559,
397,
315,
15989,
6,
397,
358,
13616,
18,
588,
1388,
4217,
1435,
397,
4585,
1769,
225,
309,
261,
301,
87,
20950,
405,
374,
13,
288,
6855,
4820,
18,
6923,
31458,
82,
64,
88,
2192,
55,
699,
1632,
87,
2588,
315,
397,
279,
959,
20950,
397,
315,
12543,
398,
12,
87,
14944,
1769,
289,
1748,
4044,
22,
17,
2163,
17,
3247,
348,
89,
1401,
1527,
24,
6564,
294,
31813,
596,
358,
2721,
731,
732,
438,
7008,
6855,
18,
6855,
4820,
18,
6923,
31458,
82,
64,
88,
8863,
1195,
289,
565,
309,
261,
70,
55,
287,
12307,
13,
288,
6855,
2
] |
|
throw new RubyNameException(ruby, name + " is not struct member");
|
throw new NameError(ruby, name + " is not struct member");
|
public RubyObject set(RubyObject value) { String name = ruby.getRubyFrame().getLastFunc(); RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); if (member.isNil()) { throw new RubyBugException("uninitialized struct"); } modify(); for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).toId().equals(name)) { return values[i] = value; } } throw new RubyNameException(ruby, name + " is not struct member"); }
|
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/8140cac1b7c2375c549787852e38fa6c52b199df/RubyStruct.java/clean/org/jruby/RubyStruct.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
444,
12,
54,
10340,
921,
460,
13,
288,
3639,
514,
508,
273,
22155,
18,
588,
54,
10340,
3219,
7675,
588,
3024,
2622,
5621,
3639,
19817,
1076,
3140,
273,
261,
54,
10340,
1076,
13,
3694,
3092,
12,
1106,
951,
9334,
10425,
5990,
972,
8863,
3639,
309,
261,
5990,
18,
291,
12616,
10756,
288,
5411,
604,
394,
19817,
19865,
503,
2932,
318,
13227,
1958,
8863,
3639,
289,
3639,
5612,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3140,
18,
588,
1782,
5621,
277,
27245,
288,
5411,
309,
261,
5990,
18,
4099,
12,
77,
2934,
869,
548,
7675,
14963,
12,
529,
3719,
288,
7734,
327,
924,
63,
77,
65,
273,
460,
31,
5411,
289,
3639,
289,
3639,
604,
394,
25473,
12,
27768,
16,
508,
397,
315,
353,
486,
1958,
3140,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
921,
444,
12,
54,
10340,
921,
460,
13,
288,
3639,
514,
508,
273,
22155,
18,
588,
54,
10340,
3219,
7675,
588,
3024,
2622,
5621,
3639,
19817,
1076,
3140,
273,
261,
54,
10340,
1076,
13,
3694,
3092,
12,
1106,
951,
9334,
10425,
5990,
972,
8863,
3639,
309,
261,
5990,
18,
291,
12616,
10756,
288,
5411,
604,
394,
19817,
19865,
503,
2932,
318,
13227,
1958,
8863,
3639,
289,
3639,
5612,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3140,
18,
588,
1782,
5621,
277,
27245,
288,
5411,
309,
261,
5990,
18,
4099,
12,
77,
2934,
869,
548,
7675,
14963,
12,
529,
3719,
288,
7734,
327,
924,
63,
77,
65,
273,
460,
31,
5411,
289,
3639,
2
] |
IdFunction.define(scope, name, obj, id, ScriptableObject.DONTENUM, sealed);
|
IdFunction f = new IdFunction(FTAG, obj, name, id); f.defineAsScopeProperty(scope, sealed);
|
public static void init(Context cx, Scriptable scope, boolean sealed) { NativeGlobal obj = new NativeGlobal(); obj.scopeSlaveFlag = true; for (int id = 1; id <= LAST_SCOPE_FUNCTION_ID; ++id) { String name; switch (id) { case Id_decodeURI: name = "decodeURI"; break; case Id_decodeURIComponent: name = "decodeURIComponent"; break; case Id_encodeURI: name = "encodeURI"; break; case Id_encodeURIComponent: name = "encodeURIComponent"; break; case Id_escape: name = "escape"; break; case Id_eval: name = "eval"; break; case Id_isFinite: name = "isFinite"; break; case Id_isNaN: name = "isNaN"; break; case Id_parseFloat: name = "parseFloat"; break; case Id_parseInt: name = "parseInt"; break; case Id_unescape: name = "unescape"; break; case Id_uneval: name = "uneval"; break; default: Kit.codeBug(); name = null; } IdFunction.define(scope, name, obj, id, ScriptableObject.DONTENUM, sealed); } ScriptableObject.defineProperty(scope, "NaN", ScriptRuntime.NaNobj, ScriptableObject.DONTENUM); ScriptableObject.defineProperty(scope, "Infinity", new Double(Double.POSITIVE_INFINITY), ScriptableObject.DONTENUM); ScriptableObject.defineProperty(scope, "undefined", Undefined.instance, ScriptableObject.DONTENUM); String[] errorMethods = Kit.semicolonSplit("" +"ConversionError;" +"EvalError;" +"RangeError;" +"ReferenceError;" +"SyntaxError;" +"TypeError;" +"URIError;" +"InternalError;" +"JavaException;" ); /* Each error constructor gets its own Error object as a prototype, with the 'name' property set to the name of the error. */ for (int i = 0; i < errorMethods.length; i++) { String name = errorMethods[i]; Scriptable errorProto = ScriptRuntime. newObject(cx, scope, "Error", ScriptRuntime.emptyArgs); errorProto.put("name", errorProto, name); IdFunction ctor = new IdFunction(obj, name, Id_new_CommonError); ctor.initAsConstructor(scope, errorProto); if (sealed) { ctor.sealObject(); if (errorProto instanceof ScriptableObject) { ((ScriptableObject)errorProto).sealObject(); } } ScriptableObject.defineProperty(scope, name, ctor, ScriptableObject.DONTENUM); } }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/8f28fc868ac3f30ea37494abfddb6358154786c3/NativeGlobal.java/buggy/js/rhino/src/org/mozilla/javascript/NativeGlobal.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1208,
12,
1042,
9494,
16,
22780,
2146,
16,
1250,
695,
18931,
13,
288,
3639,
16717,
5160,
1081,
273,
394,
16717,
5160,
5621,
3639,
1081,
18,
4887,
20302,
4678,
273,
638,
31,
3639,
364,
261,
474,
612,
273,
404,
31,
612,
1648,
15612,
67,
19444,
67,
7788,
67,
734,
31,
965,
350,
13,
288,
5411,
514,
508,
31,
5411,
1620,
261,
350,
13,
288,
7734,
648,
3124,
67,
3922,
3098,
30,
1850,
508,
273,
315,
3922,
3098,
14432,
1850,
898,
31,
7734,
648,
3124,
67,
3922,
19000,
30,
508,
273,
315,
3922,
19000,
14432,
898,
31,
7734,
648,
3124,
67,
3015,
3098,
30,
1850,
508,
273,
315,
3015,
3098,
14432,
1850,
898,
31,
7734,
648,
3124,
67,
3015,
19000,
30,
508,
273,
315,
3015,
19000,
14432,
898,
31,
7734,
648,
3124,
67,
6939,
30,
2398,
508,
273,
315,
6939,
14432,
2398,
898,
31,
7734,
648,
3124,
67,
8622,
30,
9079,
508,
273,
315,
8622,
14432,
9079,
898,
31,
7734,
648,
3124,
67,
291,
26491,
30,
6647,
508,
273,
315,
291,
26491,
14432,
6647,
898,
31,
7734,
648,
3124,
67,
291,
21172,
30,
2868,
508,
273,
315,
291,
21172,
14432,
2868,
898,
31,
7734,
648,
3124,
67,
2670,
4723,
30,
540,
508,
273,
315,
2670,
4723,
14432,
540,
898,
31,
7734,
648,
3124,
67,
2670,
1702,
30,
6647,
508,
273,
315,
2670,
1702,
14432,
6647,
898,
31,
7734,
648,
3124,
67,
318,
6939,
30,
6647,
508,
273,
315,
318,
6939,
14432,
6647,
898,
31,
7734,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1208,
12,
1042,
9494,
16,
22780,
2146,
16,
1250,
695,
18931,
13,
288,
3639,
16717,
5160,
1081,
273,
394,
16717,
5160,
5621,
3639,
1081,
18,
4887,
20302,
4678,
273,
638,
31,
3639,
364,
261,
474,
612,
273,
404,
31,
612,
1648,
15612,
67,
19444,
67,
7788,
67,
734,
31,
965,
350,
13,
288,
5411,
514,
508,
31,
5411,
1620,
261,
350,
13,
288,
7734,
648,
3124,
67,
3922,
3098,
30,
1850,
508,
273,
315,
3922,
3098,
14432,
1850,
898,
31,
7734,
648,
3124,
67,
3922,
19000,
30,
508,
273,
315,
3922,
19000,
14432,
898,
31,
7734,
648,
3124,
67,
3015,
3098,
30,
1850,
508,
273,
315,
3015,
3098,
14432,
1850,
898,
31,
7734,
648,
3124,
2
] |
rb_define_method(rb_cString, "dup", rb_str_dup, 0); rb_define_method(rb_cString, "<=>", rb_str_cmp_m, 1); rb_define_method(rb_cString, "==", rb_str_equal, 1); rb_define_method(rb_cString, "===", rb_str_equal, 1); rb_define_method(rb_cString, "eql?", rb_str_equal, 1); rb_define_method(rb_cString, "hash", rb_str_hash_m, 0);
|
rb_define_method(rb_cString, "dup", rb_str_dup, 0);*/ stringClass.defineMethod("<=>", getMethod("op_cmp", RubyObject.class)); stringClass.defineMethod("==", getMethod("m_equal", RubyObject.class)); stringClass.defineMethod("===", getMethod("m_equal", RubyObject.class)); stringClass.defineMethod("eql?", getMethod("m_equal", RubyObject.class)); /*rb_define_method(rb_cString, "hash", rb_str_hash_m, 0);
|
public static RubyClass createStringClass(Ruby ruby) { RubyClass stringClass = ruby.defineClass("String", ruby.getObjectClass()); stringClass.includeModule(ruby.getRubyClass("Comparable")); // stringClass.includeModule(ruby.getModules().getEnumerable()); stringClass.defineSingletonMethod("new", getSingletonMethod("m_new", true)); stringClass.defineMethod("initialize", getMethod("m_replace", RubyString.class));/* rb_define_method(rb_cString, "clone", rb_str_clone, 0); rb_define_method(rb_cString, "dup", rb_str_dup, 0); rb_define_method(rb_cString, "<=>", rb_str_cmp_m, 1); rb_define_method(rb_cString, "==", rb_str_equal, 1); rb_define_method(rb_cString, "===", rb_str_equal, 1); rb_define_method(rb_cString, "eql?", rb_str_equal, 1); rb_define_method(rb_cString, "hash", rb_str_hash_m, 0); rb_define_method(rb_cString, "+", rb_str_plus, 1); rb_define_method(rb_cString, "*", rb_str_times, 1); rb_define_method(rb_cString, "%", rb_str_format, 1); */ stringClass.defineMethod("[]", getMethod("m_slice", true)); /*rb_define_method(rb_cString, "[]=", rb_str_aset_m, -1); rb_define_method(rb_cString, "length", rb_str_length, 0); rb_define_method(rb_cString, "size", rb_str_length, 0); rb_define_method(rb_cString, "empty?", rb_str_empty, 0); rb_define_method(rb_cString, "=~", rb_str_match, 1); rb_define_method(rb_cString, "~", rb_str_match2, 0); rb_define_method(rb_cString, "succ", rb_str_succ, 0); rb_define_method(rb_cString, "succ!", rb_str_succ_bang, 0); rb_define_method(rb_cString, "next", rb_str_succ, 0); rb_define_method(rb_cString, "next!", rb_str_succ_bang, 0); rb_define_method(rb_cString, "upto", rb_str_upto_m, 1); rb_define_method(rb_cString, "index", rb_str_index_m, -1); rb_define_method(rb_cString, "rindex", rb_str_rindex, -1); rb_define_method(rb_cString, "replace", rb_str_replace_m, 1); rb_define_method(rb_cString, "to_i", rb_str_to_i, 0); */ stringClass.defineMethod("to_s", getMethod("m_to_s", false)); stringClass.defineMethod("to_str", getMethod("m_to_s", false)); /* rb_define_method(rb_cString, "inspect", rb_str_inspect, 0); rb_define_method(rb_cString, "dump", rb_str_dump, 0); rb_define_method(rb_cString, "upcase", rb_str_upcase, 0); rb_define_method(rb_cString, "downcase", rb_str_downcase, 0); rb_define_method(rb_cString, "capitalize", rb_str_capitalize, 0); rb_define_method(rb_cString, "swapcase", rb_str_swapcase, 0); rb_define_method(rb_cString, "upcase!", rb_str_upcase_bang, 0); rb_define_method(rb_cString, "downcase!", rb_str_downcase_bang, 0); rb_define_method(rb_cString, "capitalize!", rb_str_capitalize_bang, 0); rb_define_method(rb_cString, "swapcase!", rb_str_swapcase_bang, 0); rb_define_method(rb_cString, "hex", rb_str_hex, 0); rb_define_method(rb_cString, "oct", rb_str_oct, 0); rb_define_method(rb_cString, "split", rb_str_split_m, -1);*/ stringClass.defineMethod("reverse", getMethod("m_reverse", false)); /*rb_define_method(rb_cString, "reverse!", rb_str_reverse_bang, 0); rb_define_method(rb_cString, "concat", rb_str_concat, 1); rb_define_method(rb_cString, "<<", rb_str_concat, 1); rb_define_method(rb_cString, "crypt", rb_str_crypt, 1); rb_define_method(rb_cString, "intern", rb_str_intern, 0); rb_define_method(rb_cString, "include?", rb_str_include, 1); rb_define_method(rb_cString, "scan", rb_str_scan, 1); rb_define_method(rb_cString, "ljust", rb_str_ljust, 1); rb_define_method(rb_cString, "rjust", rb_str_rjust, 1); rb_define_method(rb_cString, "center", rb_str_center, 1); rb_define_method(rb_cString, "sub", rb_str_sub, -1); rb_define_method(rb_cString, "gsub", rb_str_gsub, -1); rb_define_method(rb_cString, "chop", rb_str_chop, 0); rb_define_method(rb_cString, "chomp", rb_str_chomp, -1); rb_define_method(rb_cString, "strip", rb_str_strip, 0); rb_define_method(rb_cString, "sub!", rb_str_sub_bang, -1); rb_define_method(rb_cString, "gsub!", rb_str_gsub_bang, -1); rb_define_method(rb_cString, "strip!", rb_str_strip_bang, 0); rb_define_method(rb_cString, "chop!", rb_str_chop_bang, 0); rb_define_method(rb_cString, "chomp!", rb_str_chomp_bang, -1); rb_define_method(rb_cString, "tr", rb_str_tr, 2); rb_define_method(rb_cString, "tr_s", rb_str_tr_s, 2); rb_define_method(rb_cString, "delete", rb_str_delete, -1); rb_define_method(rb_cString, "squeeze", rb_str_squeeze, -1); rb_define_method(rb_cString, "count", rb_str_count, -1); rb_define_method(rb_cString, "tr!", rb_str_tr_bang, 2); rb_define_method(rb_cString, "tr_s!", rb_str_tr_s_bang, 2); rb_define_method(rb_cString, "delete!", rb_str_delete_bang, -1); rb_define_method(rb_cString, "squeeze!", rb_str_squeeze_bang, -1); rb_define_method(rb_cString, "each_line", rb_str_each_line, -1); rb_define_method(rb_cString, "each", rb_str_each_line, -1); rb_define_method(rb_cString, "each_byte", rb_str_each_byte, 0); rb_define_method(rb_cString, "sum", rb_str_sum, -1); rb_define_global_function("sub", rb_f_sub, -1); rb_define_global_function("gsub", rb_f_gsub, -1); rb_define_global_function("sub!", rb_f_sub_bang, -1); rb_define_global_function("gsub!", rb_f_gsub_bang, -1); rb_define_global_function("chop", rb_f_chop, 0); rb_define_global_function("chop!", rb_f_chop_bang, 0); rb_define_global_function("chomp", rb_f_chomp, -1); rb_define_global_function("chomp!", rb_f_chomp_bang, -1); rb_define_global_function("split", rb_f_split, -1); rb_define_global_function("scan", rb_f_scan, 1);*/ stringClass.defineMethod("slice", getMethod("m_slice", true)); /*rb_define_method(rb_cString, "slice!", rb_str_slice_bang, -1); id_to_s = rb_intern("to_s"); rb_fs = Qnil; rb_define_hooked_variable("$;", &rb_fs, 0, rb_str_setter); rb_define_hooked_variable("$-F", &rb_fs, 0, rb_str_setter);*/ return stringClass; }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/60d09f0d06e157ff7d9bb828d89273706e4e2798/RbString.java/clean/org/jruby/core/RbString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
780,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
533,
797,
273,
22155,
18,
11255,
797,
2932,
780,
3113,
22155,
18,
588,
921,
797,
10663,
7734,
533,
797,
18,
6702,
3120,
12,
27768,
18,
588,
54,
10340,
797,
2932,
799,
10207,
7923,
1769,
3639,
368,
533,
797,
18,
6702,
3120,
12,
27768,
18,
588,
7782,
7675,
588,
3572,
25121,
10663,
7734,
533,
797,
18,
11255,
19571,
1305,
2932,
2704,
3113,
31662,
1305,
2932,
81,
67,
2704,
3113,
638,
10019,
3639,
533,
797,
18,
11255,
1305,
2932,
11160,
3113,
6272,
2932,
81,
67,
2079,
3113,
19817,
780,
18,
1106,
10019,
20308,
565,
7138,
67,
11255,
67,
2039,
12,
6731,
67,
71,
780,
16,
315,
14056,
3113,
7138,
67,
701,
67,
14056,
16,
374,
1769,
565,
7138,
67,
11255,
67,
2039,
12,
6731,
67,
71,
780,
16,
315,
26427,
3113,
7138,
67,
701,
67,
26427,
16,
374,
1769,
565,
7138,
67,
11255,
67,
2039,
12,
6731,
67,
71,
780,
16,
3532,
33,
2984,
16,
7138,
67,
701,
67,
9625,
67,
81,
16,
404,
1769,
565,
7138,
67,
11255,
67,
2039,
12,
6731,
67,
71,
780,
16,
315,
631,
3113,
7138,
67,
701,
67,
9729,
16,
404,
1769,
565,
7138,
67,
11255,
67,
2039,
12,
6731,
67,
71,
780,
16,
315,
631,
1546,
16,
7138,
67,
701,
67,
9729,
16,
404,
1769,
565,
7138,
67,
11255,
67,
2039,
12,
6731,
67,
71,
780,
16,
315,
73,
1217,
35,
3113,
7138,
67,
701,
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,
780,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
533,
797,
273,
22155,
18,
11255,
797,
2932,
780,
3113,
22155,
18,
588,
921,
797,
10663,
7734,
533,
797,
18,
6702,
3120,
12,
27768,
18,
588,
54,
10340,
797,
2932,
799,
10207,
7923,
1769,
3639,
368,
533,
797,
18,
6702,
3120,
12,
27768,
18,
588,
7782,
7675,
588,
3572,
25121,
10663,
7734,
533,
797,
18,
11255,
19571,
1305,
2932,
2704,
3113,
31662,
1305,
2932,
81,
67,
2704,
3113,
638,
10019,
3639,
533,
797,
18,
11255,
1305,
2932,
11160,
3113,
6272,
2932,
81,
67,
2079,
3113,
19817,
780,
18,
1106,
10019,
20308,
565,
7138,
67,
11255,
67,
2039,
12,
6731,
67,
71,
780,
2
] |
public org.quickfix.field.PartyID getPartyID() throws FieldNotFound { org.quickfix.field.PartyID value = new org.quickfix.field.PartyID();
|
public quickfix.field.PartyID getPartyID() throws FieldNotFound { quickfix.field.PartyID value = new quickfix.field.PartyID();
|
public org.quickfix.field.PartyID getPartyID() throws FieldNotFound { org.quickfix.field.PartyID value = new org.quickfix.field.PartyID(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteCancel.java/clean/src/java/src/quickfix/fix43/QuoteCancel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1689,
7325,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1689,
7325,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
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
] |
void attachTo(ContextFactory factory) {
|
public void attachTo(ContextFactory factory) { detach();
|
void attachTo(ContextFactory factory) { this.contextFactory = factory; factory.addListener(new DimIProxy(this, IPROXY_LISTEN)); }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/2d4fc75b74d717c754829dde488ff0a7456682cc/Dim.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3306,
774,
12,
29871,
3272,
13,
565,
288,
3639,
333,
18,
2472,
1733,
273,
3272,
31,
3639,
3272,
18,
1289,
2223,
12,
2704,
463,
381,
45,
3886,
12,
2211,
16,
2971,
1457,
8546,
67,
7085,
1157,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3306,
774,
12,
29871,
3272,
13,
565,
288,
3639,
333,
18,
2472,
1733,
273,
3272,
31,
3639,
3272,
18,
1289,
2223,
12,
2704,
463,
381,
45,
3886,
12,
2211,
16,
2971,
1457,
8546,
67,
7085,
1157,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return null;
|
throw org.postgresql.Driver.notImplemented();
|
public java.sql.ResultSet getVersionColumns(String catalog, String schema, String table) throws SQLException { // XXX-Not Implemented return null; }
|
47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/44ae35cab91f1e5a6452da489d4a0c34e181afb9/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
2252,
18,
4669,
18,
13198,
8343,
3380,
12,
780,
6222,
16,
514,
1963,
16,
514,
1014,
13,
1216,
6483,
225,
288,
565,
368,
11329,
17,
1248,
18788,
282,
604,
2358,
18,
2767,
24330,
18,
4668,
18,
902,
8644,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
2252,
18,
4669,
18,
13198,
8343,
3380,
12,
780,
6222,
16,
514,
1963,
16,
514,
1014,
13,
1216,
6483,
225,
288,
565,
368,
11329,
17,
1248,
18788,
282,
604,
2358,
18,
2767,
24330,
18,
4668,
18,
902,
8644,
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
] |
int offset = getOffset(error, textArea); if(caretPosition > offset) {
|
int offset = RubyPlugin.getNonSpaceStartOffset(error.getLineNumber()); if (caretPosition > offset) {
|
public static void previousError(JEditTextArea textArea) { int caretPosition = textArea.getCaretPosition(); List<ErrorSource.Error> errors = Arrays.asList(RubySideKickParser.getErrors()); Collections.reverse(errors); for (ErrorSource.Error error : errors) { int offset = getOffset(error, textArea); if(caretPosition > offset) { textArea.setCaretPosition(offset, true); break; } } }
|
13291 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13291/78910396db526f1a2c23d8031643a45e6343ce79/RubyActions.java/clean/src/org/jedit/ruby/RubyActions.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2416,
668,
12,
46,
4666,
1528,
5484,
977,
5484,
13,
288,
3639,
509,
21683,
2555,
273,
977,
5484,
18,
588,
39,
20731,
2555,
5621,
3639,
987,
32,
668,
1830,
18,
668,
34,
1334,
273,
5647,
18,
345,
682,
12,
54,
10340,
8895,
47,
1200,
2678,
18,
588,
4229,
10663,
3639,
5737,
18,
9845,
12,
4324,
1769,
3639,
364,
261,
668,
1830,
18,
668,
555,
294,
1334,
13,
288,
5411,
509,
1384,
273,
13386,
12,
1636,
16,
977,
5484,
1769,
5411,
309,
12,
71,
20731,
2555,
405,
1384,
13,
288,
7734,
977,
5484,
18,
542,
39,
20731,
2555,
12,
3348,
16,
638,
1769,
7734,
898,
31,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
760,
918,
2416,
668,
12,
46,
4666,
1528,
5484,
977,
5484,
13,
288,
3639,
509,
21683,
2555,
273,
977,
5484,
18,
588,
39,
20731,
2555,
5621,
3639,
987,
32,
668,
1830,
18,
668,
34,
1334,
273,
5647,
18,
345,
682,
12,
54,
10340,
8895,
47,
1200,
2678,
18,
588,
4229,
10663,
3639,
5737,
18,
9845,
12,
4324,
1769,
3639,
364,
261,
668,
1830,
18,
668,
555,
294,
1334,
13,
288,
5411,
509,
1384,
273,
13386,
12,
1636,
16,
977,
5484,
1769,
5411,
309,
12,
71,
20731,
2555,
405,
1384,
13,
288,
7734,
977,
5484,
18,
542,
39,
20731,
2555,
12,
3348,
16,
638,
1769,
7734,
898,
31,
5411,
289,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100
] |
return getWorkbenchIntroManager(); }
|
return getWorkbenchIntroManager(); }
|
public IIntroManager getIntroManager() { return getWorkbenchIntroManager(); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/9337b828e86179850647141c34d497be28275ed2/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1702,
303,
1318,
8145,
303,
1318,
1435,
288,
3639,
327,
29026,
22144,
1702,
303,
1318,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1702,
303,
1318,
8145,
303,
1318,
1435,
288,
3639,
327,
29026,
22144,
1702,
303,
1318,
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
] |
if (activePart == newPart) return;
|
if (activePart == newPart) { return; }
|
public void updateActivePart(IWorkbenchPart newPart) { if (activePart == newPart) return; boolean isNewPartAnEditor = newPart instanceof IEditorPart; if (isNewPartAnEditor) { String oldId = null; if (topEditor != null) oldId = topEditor.getSite().getId(); String newId = newPart.getSite().getId(); // if the active part is an editor and the new editor // is the same kind of editor, then we don't have to do // anything if (activePart == topEditor && newId.equals(oldId)) { activePart = newPart; topEditor = (IEditorPart) newPart; return; } // remove the contributions of the old editor // if it is a different kind of editor if (oldId != null && !oldId.equals(newId)) deactivateContributions(topEditor, true); // if a view was the active part, disable its contributions if (activePart != null && activePart != topEditor) deactivateContributions(activePart, true); // show (and enable) the contributions of the new editor // if it is a different kind of editor or if the // old active part was a view if (!newId.equals(oldId) || activePart != topEditor) activateContributions(newPart, true); } else if (newPart == null) { if (activePart != null) // remove all contributions deactivateContributions(activePart, true); } else { // new part is a view // if old active part is a view, remove all contributions, // but if old part is an editor only disable if (activePart != null) deactivateContributions(activePart, activePart instanceof IViewPart); activateContributions(newPart, true); } ArrayList newActionSets = null; if (isNewPartAnEditor || (activePart == topEditor && newPart == null)) newActionSets = calculateActionSets(newPart, null); else newActionSets = calculateActionSets(newPart, topEditor); if (!updateActionSets(newActionSets)) updateActionBars(); if (isNewPartAnEditor) { topEditor = (IEditorPart) newPart; } else if (activePart == topEditor && newPart == null) { // since we removed all the contributions, we clear the top // editor topEditor = null; } activePart = newPart; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbenchPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1089,
3896,
1988,
12,
45,
2421,
22144,
1988,
394,
1988,
13,
288,
5411,
309,
261,
3535,
1988,
422,
394,
1988,
13,
7734,
327,
31,
5411,
1250,
10783,
1988,
979,
6946,
273,
394,
1988,
1276,
467,
6946,
1988,
31,
5411,
309,
261,
291,
1908,
1988,
979,
6946,
13,
288,
7734,
514,
1592,
548,
273,
446,
31,
7734,
309,
261,
3669,
6946,
480,
446,
13,
10792,
1592,
548,
273,
1760,
6946,
18,
588,
4956,
7675,
26321,
5621,
7734,
514,
27598,
273,
394,
1988,
18,
588,
4956,
7675,
26321,
5621,
7734,
368,
309,
326,
2695,
1087,
353,
392,
4858,
471,
326,
394,
4858,
7734,
368,
353,
326,
1967,
3846,
434,
4858,
16,
1508,
732,
2727,
1404,
1240,
358,
741,
7734,
368,
6967,
7734,
309,
261,
3535,
1988,
422,
1760,
6946,
597,
27598,
18,
14963,
12,
1673,
548,
3719,
288,
1171,
202,
3535,
1988,
273,
394,
1988,
31,
1171,
202,
3669,
6946,
273,
261,
45,
6946,
1988,
13,
394,
1988,
31,
10792,
327,
31,
7734,
289,
7734,
368,
1206,
326,
13608,
6170,
434,
326,
1592,
4858,
7734,
368,
309,
518,
353,
279,
3775,
3846,
434,
4858,
7734,
309,
261,
1673,
548,
480,
446,
597,
401,
1673,
548,
18,
14963,
12,
2704,
548,
3719,
10792,
18790,
442,
15326,
12,
3669,
6946,
16,
638,
1769,
7734,
368,
309,
279,
1476,
1703,
326,
2695,
1087,
16,
4056,
2097,
13608,
6170,
7734,
309,
261,
3535,
1988,
480,
446,
597,
2695,
1988,
480,
1760,
6946,
13,
10792,
18790,
442,
15326,
12,
3535,
1988,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1089,
3896,
1988,
12,
45,
2421,
22144,
1988,
394,
1988,
13,
288,
5411,
309,
261,
3535,
1988,
422,
394,
1988,
13,
7734,
327,
31,
5411,
1250,
10783,
1988,
979,
6946,
273,
394,
1988,
1276,
467,
6946,
1988,
31,
5411,
309,
261,
291,
1908,
1988,
979,
6946,
13,
288,
7734,
514,
1592,
548,
273,
446,
31,
7734,
309,
261,
3669,
6946,
480,
446,
13,
10792,
1592,
548,
273,
1760,
6946,
18,
588,
4956,
7675,
26321,
5621,
7734,
514,
27598,
273,
394,
1988,
18,
588,
4956,
7675,
26321,
5621,
7734,
368,
309,
326,
2695,
1087,
353,
392,
4858,
471,
326,
394,
4858,
7734,
368,
353,
326,
1967,
3846,
434,
4858,
16,
1508,
732,
2727,
1404,
1240,
358,
741,
2
] |
CmsContextInfo contextInfo = new CmsContextInfo(cms.getRequestContext().currentUser(), cms.getRequestContext() .currentProject(), vfsName, "/", i18nInfo.getLocale(), i18nInfo.getEncoding(), remoteAddr);
|
CmsContextInfo contextInfo = new CmsContextInfo( cms.getRequestContext().currentUser(), cms.getRequestContext().currentProject(), vfsName, "/", i18nInfo.getLocale(), i18nInfo.getEncoding(), remoteAddr);
|
public int export(HttpServletRequest req, HttpServletResponse res, CmsObject cms, CmsStaticExportData data) throws CmsException, IOException, ServletException, CmsStaticExportException { int status = -1; CmsFile file; String vfsName = data.getVfsName(); String rfsName = data.getRfsName(); CmsResource resource = data.getResource(); // cut the site root from the vfsName and switch to the correct site String siteRoot = CmsSiteManager.getSiteRoot(vfsName); CmsI18nInfo i18nInfo = OpenCms.getLocaleManager().getI18nInfo( req, cms.getRequestContext().currentUser(), cms.getRequestContext().currentProject(), vfsName); String remoteAddr = m_remoteAddr; if (remoteAddr == null) { remoteAddr = I_CmsConstants.C_IP_LOCALHOST; } CmsContextInfo contextInfo = new CmsContextInfo(cms.getRequestContext().currentUser(), cms.getRequestContext() .currentProject(), vfsName, "/", i18nInfo.getLocale(), i18nInfo.getEncoding(), remoteAddr); cms = OpenCms.initCmsObject(null, contextInfo); if (siteRoot != null) { vfsName = vfsName.substring(siteRoot.length()); } else { siteRoot = "/"; } if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_STATIC_EXPORT_SITE_ROOT_2, siteRoot, vfsName)); } cms.getRequestContext().setSiteRoot(siteRoot); String oldUri = null; // this flag signals if the export method is used for "on demand" or "after publish". // if no request and result stream are available, it was called during "export on publish" boolean exportOnDemand = ((req != null) && (res != null)); CmsStaticExportResponseWrapper wrapRes = null; if (res != null) { wrapRes = new CmsStaticExportResponseWrapper(res); } if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_SE_RESOURCE_START_1, data)); } // read vfs resource if (resource.isFile()) { file = cms.readFile(vfsName); } else { file = CmsFile.upgrade(OpenCms.initResource(cms, vfsName, req, wrapRes), cms); try { cms.readResource(vfsName + file.getName()); vfsName = vfsName + file.getName(); } catch (CmsException e) { // } rfsName += C_EXPORT_DEFAULT_FILE; } // check loader id for resource I_CmsResourceLoader loader = OpenCms.getResourceManager().getLoader(file); if ((loader == null) || (!loader.isStaticExportEnabled())) { Object[] arguments = new Object[]{vfsName, new Integer(file.getTypeId())}; throw new CmsStaticExportException(Messages.get().container(Messages.ERR_EXPORT_NOT_SUPPORTED_2, arguments)); } FileOutputStream exportStream = null; File exportFile = null; String exportFileName = CmsFileUtil.normalizePath(getExportPath() + rfsName); // only export those resource where the export property is set if (OpenCms.getLinkManager().exportRequired(cms, vfsName)) { // make sure all required parent folder exist createExportFolder(rfsName); status = HttpServletResponse.SC_OK; // generate export file instance and output stream exportFile = new File(exportFileName); } else { // the resource was not used for export, so return HttpServletResponse.SC_SEE_OTHER // as a signal for not exported resource status = HttpServletResponse.SC_SEE_OTHER; } // ensure we have exactly the same setup as if called "the usual way" // we only have to do this in case of the static export on demand if (exportOnDemand) { String mimetype = OpenCms.getResourceManager().getMimeType( file.getName(), cms.getRequestContext().getEncoding()); if (wrapRes != null) { wrapRes.setContentType(mimetype); } oldUri = cms.getRequestContext().getUri(); cms.getRequestContext().setUri(vfsName); } // do the export byte[] result = loader.export(cms, file, req, wrapRes); // release unused resources file = null; if (result != null) { if (exportFile != null) { // write new exported file content try { exportStream = new FileOutputStream(exportFile); exportStream.write(result); exportStream.close(); } catch (Throwable t) { throw new CmsStaticExportException(Messages.get().container(Messages.ERR_OUTPUT_STREAM_1, exportFileName), t); } // update the file with the modification date from the server if (req != null) { Long dateLastModified = (Long)req.getAttribute(I_CmsConstants.C_HEADER_OPENCMS_EXPORT); if ((dateLastModified != null) && (dateLastModified.longValue() != -1)) { exportFile.setLastModified((dateLastModified.longValue() / 1000) * 1000); if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_SET_LAST_MODIFIED_2, exportFile.getName(), new Long((dateLastModified.longValue() / 1000) * 1000))); } } } else { // otherweise take the last modification date form the OpenCms resource exportFile.setLastModified((resource.getDateLastModified() / 1000) * 1000); } } // get the status that was set status = (wrapRes != null) ? wrapRes.getStatus() : -1; if (status < 0) { // the status was not set, assume everything is o.k. status = HttpServletResponse.SC_OK; } } else { // the resource was not written because it was not modified. // set the status to not modified status = HttpServletResponse.SC_NOT_MODIFIED; } // restore context // we only have to do this in case of the static export on demand if (exportOnDemand) { cms.getRequestContext().setUri(oldUri); } // log export success if (LOG.isInfoEnabled()) { LOG.info(Messages.get().key(Messages.LOG_STATIC_EXPORTED_2, vfsName, exportFileName)); } return status; }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/d6b5089281646a808cd03ce9039138d8b4818362/CmsStaticExportManager.java/buggy/src/org/opencms/staticexport/CmsStaticExportManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
3359,
12,
2940,
18572,
1111,
16,
12446,
400,
16,
14371,
6166,
16,
2149,
5788,
6144,
751,
501,
13,
565,
1216,
11228,
16,
1860,
16,
16517,
16,
2149,
5788,
6144,
503,
288,
3639,
509,
1267,
273,
300,
21,
31,
3639,
28118,
585,
31,
3639,
514,
20682,
461,
273,
501,
18,
588,
25908,
461,
5621,
3639,
514,
436,
2556,
461,
273,
501,
18,
588,
54,
2556,
461,
5621,
3639,
7630,
1058,
273,
501,
18,
588,
1420,
5621,
3639,
368,
6391,
326,
2834,
1365,
628,
326,
20682,
461,
471,
1620,
358,
326,
3434,
2834,
3639,
514,
25512,
273,
2149,
4956,
1318,
18,
588,
21889,
12,
90,
2556,
461,
1769,
3639,
2149,
45,
2643,
82,
966,
277,
2643,
82,
966,
273,
10319,
18,
588,
3916,
1318,
7675,
588,
45,
2643,
82,
966,
12,
5411,
1111,
16,
5411,
6166,
18,
588,
21426,
7675,
2972,
1299,
9334,
5411,
6166,
18,
588,
21426,
7675,
2972,
4109,
9334,
5411,
20682,
461,
1769,
3639,
514,
30184,
273,
312,
67,
7222,
3178,
31,
3639,
309,
261,
7222,
3178,
422,
446,
13,
288,
5411,
30184,
273,
467,
67,
4747,
2918,
18,
39,
67,
2579,
67,
14922,
8908,
31,
3639,
289,
3639,
2149,
1042,
966,
819,
966,
273,
394,
2149,
1042,
966,
12,
6851,
18,
588,
21426,
7675,
2972,
1299,
9334,
6166,
18,
588,
21426,
1435,
5411,
263,
2972,
4109,
9334,
20682,
461,
16,
2206,
3113,
277,
2643,
82,
966,
18,
588,
3916,
9334,
277,
2643,
82,
966,
18,
588,
4705,
9334,
30184,
1769,
3639,
6166,
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,
509,
3359,
12,
2940,
18572,
1111,
16,
12446,
400,
16,
14371,
6166,
16,
2149,
5788,
6144,
751,
501,
13,
565,
1216,
11228,
16,
1860,
16,
16517,
16,
2149,
5788,
6144,
503,
288,
3639,
509,
1267,
273,
300,
21,
31,
3639,
28118,
585,
31,
3639,
514,
20682,
461,
273,
501,
18,
588,
25908,
461,
5621,
3639,
514,
436,
2556,
461,
273,
501,
18,
588,
54,
2556,
461,
5621,
3639,
7630,
1058,
273,
501,
18,
588,
1420,
5621,
3639,
368,
6391,
326,
2834,
1365,
628,
326,
20682,
461,
471,
1620,
358,
326,
3434,
2834,
3639,
514,
25512,
273,
2149,
4956,
1318,
18,
588,
21889,
12,
90,
2556,
461,
1769,
3639,
2149,
45,
2643,
82,
966,
277,
2643,
82,
966,
2
] |
next_ops = new HashSet();
|
next_ops = new HashSet<SIROperator>();
|
public void findPhases(SIROperator top) { phases.put(top, new Integer(0)); current_ops.add(top); do { findNextPhase(); current_ops = next_ops; next_ops = new HashSet(); number_of_phases++; } while (current_ops.size() != 0); }
|
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/1516f387f74fbdce50ff03ef09b7d356ac47e938/DiscoverSchedule.java/buggy/streams/src/at/dms/kjc/cluster/DiscoverSchedule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1104,
3731,
3304,
12,
2320,
1457,
457,
639,
1760,
13,
288,
202,
844,
3304,
18,
458,
12,
3669,
16,
394,
2144,
12,
20,
10019,
202,
2972,
67,
4473,
18,
1289,
12,
3669,
1769,
5411,
741,
288,
5411,
19429,
11406,
5621,
5411,
783,
67,
4473,
273,
1024,
67,
4473,
31,
5411,
1024,
67,
4473,
273,
394,
6847,
32,
2320,
1457,
457,
639,
34,
5621,
5411,
1300,
67,
792,
67,
844,
3304,
9904,
31,
3639,
289,
1323,
261,
2972,
67,
4473,
18,
1467,
1435,
480,
374,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1104,
3731,
3304,
12,
2320,
1457,
457,
639,
1760,
13,
288,
202,
844,
3304,
18,
458,
12,
3669,
16,
394,
2144,
12,
20,
10019,
202,
2972,
67,
4473,
18,
1289,
12,
3669,
1769,
5411,
741,
288,
5411,
19429,
11406,
5621,
5411,
783,
67,
4473,
273,
1024,
67,
4473,
31,
5411,
1024,
67,
4473,
273,
394,
6847,
32,
2320,
1457,
457,
639,
34,
5621,
5411,
1300,
67,
792,
67,
844,
3304,
9904,
31,
3639,
289,
1323,
261,
2972,
67,
4473,
18,
1467,
1435,
480,
374,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
final List<String> addList = SettingsHandler.getGame().getACTypeAddString(ACType); final List<String> removeList = SettingsHandler.getGame().getACTypeRemoveString(ACType);
|
final List<String> addList = SettingsHandler.getGame() .getACTypeAddString(ACType); final List<String> removeList = SettingsHandler.getGame() .getACTypeRemoveString(ACType);
|
public int calcACOfType(final String ACType) { final List<String> addList = SettingsHandler.getGame().getACTypeAddString(ACType); final List<String> removeList = SettingsHandler.getGame().getACTypeRemoveString(ACType); if ((addList == null) && (removeList == null)) { Logging.errorPrint("Invalid ACType: " + ACType); return 0; } int AC = 0; if (addList != null) {// final List<TypedBonus> bonuses = new ArrayList<TypedBonus>(); for ( String aString : addList ) { final PObject aPObj = new PObject(); getPreReqFromACType(aString, aPObj); if (PrereqHandler.passesAll(aPObj.getPreReqList(), this, aPObj )) { final StringTokenizer aTok = new StringTokenizer(aString, "|"); AC += subCalcACOfType(aTok);// while ( aTok.hasMoreTokens() )// {// bonuses.addAll( TypedBonus.getBonusesOfType(getBonusesTo("COMBAT", "AC"), aTok.nextToken()) );// // }// AC += TypedBonus.totalBonuses(bonuses); } } } if (removeList != null) {// final List<TypedBonus> bonuses = new ArrayList<TypedBonus>(); for ( String rString : removeList ) { final PObject aPObj = new PObject(); getPreReqFromACType(rString, aPObj); if (PrereqHandler.passesAll(aPObj.getPreReqList(), this, aPObj )) { final StringTokenizer aTok = new StringTokenizer(rString, "|"); AC -= subCalcACOfType(aTok);// while ( aTok.hasMoreTokens() )// {// bonuses.addAll( TypedBonus.getBonusesOfType(getBonusesTo("COMBAT", "AC"), aTok.nextToken()) );// // }// AC -= TypedBonus.totalBonuses(bonuses); } } } return AC; }
|
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/376816acf8bf134fa77bd6ea5c602dbe9af9bfbd/PlayerCharacter.java/clean/code/src/java/pcgen/core/PlayerCharacter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
7029,
2226,
18859,
12,
6385,
514,
12048,
559,
13,
202,
95,
202,
202,
6385,
987,
32,
780,
34,
527,
682,
273,
8709,
1503,
18,
588,
12496,
7675,
588,
2226,
559,
986,
780,
12,
2226,
559,
1769,
202,
202,
6385,
987,
32,
780,
34,
1206,
682,
273,
8709,
1503,
18,
588,
12496,
7675,
588,
2226,
559,
3288,
780,
12,
2226,
559,
1769,
202,
202,
430,
14015,
1289,
682,
422,
446,
13,
597,
261,
4479,
682,
422,
446,
3719,
202,
202,
95,
1082,
202,
7735,
18,
1636,
5108,
2932,
1941,
12048,
559,
30,
315,
397,
12048,
559,
1769,
1082,
202,
2463,
374,
31,
202,
202,
97,
202,
202,
474,
12048,
273,
374,
31,
202,
202,
430,
261,
1289,
682,
480,
446,
13,
202,
202,
95,
759,
1082,
202,
6385,
987,
32,
11985,
38,
22889,
34,
324,
265,
6117,
273,
394,
2407,
32,
11985,
38,
22889,
34,
5621,
1082,
202,
1884,
261,
514,
279,
780,
294,
527,
682,
262,
1082,
202,
95,
9506,
202,
6385,
453,
921,
279,
2419,
441,
273,
394,
453,
921,
5621,
9506,
202,
588,
1386,
6113,
1265,
2226,
559,
12,
69,
780,
16,
279,
2419,
441,
1769,
9506,
202,
430,
261,
2050,
822,
85,
1503,
18,
5466,
281,
1595,
12,
69,
2419,
441,
18,
588,
1386,
6113,
682,
9334,
333,
16,
279,
2419,
441,
225,
8623,
9506,
202,
95,
6862,
202,
6385,
16370,
279,
20477,
273,
394,
16370,
12,
69,
780,
16,
11747,
8863,
6862,
202,
2226,
1011,
720,
25779,
2226,
18859,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
7029,
2226,
18859,
12,
6385,
514,
12048,
559,
13,
202,
95,
202,
202,
6385,
987,
32,
780,
34,
527,
682,
273,
8709,
1503,
18,
588,
12496,
7675,
588,
2226,
559,
986,
780,
12,
2226,
559,
1769,
202,
202,
6385,
987,
32,
780,
34,
1206,
682,
273,
8709,
1503,
18,
588,
12496,
7675,
588,
2226,
559,
3288,
780,
12,
2226,
559,
1769,
202,
202,
430,
14015,
1289,
682,
422,
446,
13,
597,
261,
4479,
682,
422,
446,
3719,
202,
202,
95,
1082,
202,
7735,
18,
1636,
5108,
2932,
1941,
12048,
559,
30,
315,
397,
12048,
559,
1769,
1082,
202,
2463,
374,
31,
202,
202,
97,
202,
202,
474,
12048,
273,
374,
31,
202,
202,
430,
261,
2
] |
if (dockedArea != SWT.NONE) undock();
|
if (dockedArea != SWT.NONE) { undock(); }
|
private void trackOutsideTrimArea(Point pos) { // If we -were- docked then undock if (dockedArea != SWT.NONE) undock(); border.setLocation(pos, SWT.BOTTOM); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/TrimDropTarget.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/TrimDropTarget.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
3298,
28018,
14795,
5484,
12,
2148,
949,
13,
288,
540,
202,
759,
971,
732,
300,
91,
822,
17,
5822,
329,
1508,
22927,
975,
540,
202,
430,
261,
72,
975,
329,
5484,
480,
348,
8588,
18,
9826,
13,
377,
1082,
202,
1074,
975,
5621,
377,
1082,
377,
202,
202,
8815,
18,
542,
2735,
12,
917,
16,
348,
8588,
18,
28891,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
3298,
28018,
14795,
5484,
12,
2148,
949,
13,
288,
540,
202,
759,
971,
732,
300,
91,
822,
17,
5822,
329,
1508,
22927,
975,
540,
202,
430,
261,
72,
975,
329,
5484,
480,
348,
8588,
18,
9826,
13,
377,
1082,
202,
1074,
975,
5621,
377,
1082,
377,
202,
202,
8815,
18,
542,
2735,
12,
917,
16,
348,
8588,
18,
28891,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for(int j=0;j<out.length;j++)
|
for(int j=0;j<inner.length;j++)
|
public void clear() { filter=null; inWeights=null; outWeights=null; if(in!=null) { for(int i=0;i<in.length;i++) in[i]=null; in=null; } if(out!=null) { for(int i=0;i<out.length;i++) { UnflatEdge[] inner=out[i]; if(inner!=null) { for(int j=0;j<out.length;j++) inner[j]=null; out[i]=null; } } out=null; } name=null; }
|
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/9adc9fba733f893fc1f459025b6dcabc6dfe366b/UnflatFilter.java/clean/streams/src/at/dms/kjc/flatgraph2/UnflatFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2424,
1435,
288,
202,
2188,
33,
2011,
31,
202,
267,
16595,
33,
2011,
31,
202,
659,
16595,
33,
2011,
31,
202,
430,
12,
267,
5,
33,
2011,
13,
288,
202,
565,
364,
12,
474,
277,
33,
20,
31,
77,
32,
267,
18,
2469,
31,
77,
27245,
202,
202,
267,
63,
77,
65,
33,
2011,
31,
202,
565,
316,
33,
2011,
31,
202,
97,
202,
430,
12,
659,
5,
33,
2011,
13,
288,
202,
565,
364,
12,
474,
277,
33,
20,
31,
77,
32,
659,
18,
2469,
31,
77,
27245,
288,
202,
202,
984,
15401,
6098,
8526,
3443,
33,
659,
63,
77,
15533,
202,
202,
430,
12,
7872,
5,
33,
2011,
13,
288,
1082,
565,
364,
12,
474,
525,
33,
20,
31,
78,
32,
659,
18,
2469,
31,
78,
27245,
1082,
202,
7872,
63,
78,
65,
33,
2011,
31,
1082,
565,
596,
63,
77,
65,
33,
2011,
31,
202,
202,
97,
202,
565,
289,
202,
565,
596,
33,
2011,
31,
202,
97,
202,
529,
33,
2011,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2424,
1435,
288,
202,
2188,
33,
2011,
31,
202,
267,
16595,
33,
2011,
31,
202,
659,
16595,
33,
2011,
31,
202,
430,
12,
267,
5,
33,
2011,
13,
288,
202,
565,
364,
12,
474,
277,
33,
20,
31,
77,
32,
267,
18,
2469,
31,
77,
27245,
202,
202,
267,
63,
77,
65,
33,
2011,
31,
202,
565,
316,
33,
2011,
31,
202,
97,
202,
430,
12,
659,
5,
33,
2011,
13,
288,
202,
565,
364,
12,
474,
277,
33,
20,
31,
77,
32,
659,
18,
2469,
31,
77,
27245,
288,
202,
202,
984,
15401,
6098,
8526,
3443,
33,
659,
63,
77,
15533,
202,
202,
430,
12,
7872,
5,
33,
2011,
13,
288,
1082,
565,
364,
12,
2
] |
}; } verifyingGuard.setArguments(container); verifyingGuard.observe(getComponentImplementation()); } catch (PicoVerificationException ex) { throw ex; } catch (Exception ex) { final List list = new LinkedList(); list.add(ex); throw new PicoVerificationException(list);
|
return null; } };
|
public void verify(final PicoContainer container) throws PicoVerificationException { try { if (verifyingGuard == null) { verifyingGuard = new Guard() { public Object run() { final Parameter[] currentParameters = getMatchingParameterListForSetters(guardedContainer); for (int i = 0; i < currentParameters.length; i++) { currentParameters[i].verify(container, SetterInjectionComponentAdapter.this, setterTypes[i]); } return null; } }; } verifyingGuard.setArguments(container); verifyingGuard.observe(getComponentImplementation()); } catch (PicoVerificationException ex) { throw ex; } catch (Exception ex) { final List list = new LinkedList(); list.add(ex); throw new PicoVerificationException(list); } }
|
14040 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14040/cc6d9b2f6949bf9597d75d25765944fa44410cdc/SetterInjectionComponentAdapter.java/clean/java/picocontainer/src/java/org/picocontainer/defaults/SetterInjectionComponentAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3929,
12,
6385,
453,
10764,
2170,
1478,
13,
1216,
453,
10764,
13483,
503,
288,
3639,
775,
288,
5411,
309,
261,
8705,
310,
16709,
422,
446,
13,
288,
7734,
3929,
310,
16709,
273,
394,
22809,
1435,
288,
10792,
1071,
1033,
1086,
1435,
288,
13491,
727,
5498,
8526,
783,
2402,
273,
336,
9517,
1662,
682,
1290,
694,
5432,
12,
6891,
17212,
2170,
1769,
13491,
364,
261,
474,
277,
273,
374,
31,
277,
411,
783,
2402,
18,
2469,
31,
277,
27245,
288,
18701,
783,
2402,
63,
77,
8009,
8705,
12,
3782,
16,
1000,
387,
12039,
1841,
4216,
18,
2211,
16,
7794,
2016,
63,
77,
19226,
13491,
289,
13491,
327,
446,
31,
10792,
289,
7734,
289,
31,
5411,
289,
5411,
3929,
310,
16709,
18,
542,
4628,
12,
3782,
1769,
5411,
3929,
310,
16709,
18,
12199,
537,
12,
588,
1841,
13621,
10663,
3639,
289,
1044,
261,
52,
10764,
13483,
503,
431,
13,
288,
5411,
604,
431,
31,
3639,
289,
1044,
261,
503,
431,
13,
288,
5411,
727,
987,
666,
273,
394,
10688,
5621,
5411,
666,
18,
1289,
12,
338,
1769,
5411,
604,
394,
453,
10764,
13483,
503,
12,
1098,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3929,
12,
6385,
453,
10764,
2170,
1478,
13,
1216,
453,
10764,
13483,
503,
288,
3639,
775,
288,
5411,
309,
261,
8705,
310,
16709,
422,
446,
13,
288,
7734,
3929,
310,
16709,
273,
394,
22809,
1435,
288,
10792,
1071,
1033,
1086,
1435,
288,
13491,
727,
5498,
8526,
783,
2402,
273,
336,
9517,
1662,
682,
1290,
694,
5432,
12,
6891,
17212,
2170,
1769,
13491,
364,
261,
474,
277,
273,
374,
31,
277,
411,
783,
2402,
18,
2469,
31,
277,
27245,
288,
18701,
783,
2402,
63,
77,
8009,
8705,
12,
3782,
16,
1000,
387,
12039,
1841,
4216,
18,
2211,
16,
7794,
2016,
63,
77,
19226,
13491,
289,
13491,
327,
446,
31,
10792,
289,
7734,
289,
31,
5411,
289,
5411,
2
] |
public final void markProgramOnAir() { if (!new devplugin.Date().equals(getDate())) { return; } Iterator it = getPrograms(); Program p; int diff = Integer.MAX_VALUE; int nDiff; Calendar cal = new GregorianCalendar(); cal.setTime(new Date(System.currentTimeMillis())); int time = cal.get(Calendar.HOUR_OF_DAY) * 60 + cal.get(Calendar.MINUTE); Program newOnAir = null; while (it.hasNext()) { p = (Program)it.next(); nDiff=time-(p.getHours()*60+p.getMinutes()); if (nDiff>=0 && nDiff<diff) { diff=nDiff; newOnAir=p;
|
public synchronized void markProgramOnAir() { Program newProgramOnAir = null; devplugin.Date today = new devplugin.Date(); int time = IOUtilities.getMinutesAfterMidnight(); if (today.equals(getDate())) { Iterator iter = getPrograms(); while (iter.hasNext()) { Program prog = (Program) iter.next(); int startTime = prog.getHours() * 60 + prog.getMinutes(); int endTime = startTime + prog.getLength(); if ((time >= startTime) && (time < endTime)) { newProgramOnAir = prog; break; } } } else { devplugin.Date yesterday = new devplugin.Date(today.getDaysSince1970() - 1); if (yesterday.equals(getDate())) { int programCount = getProgramCount(); if (programCount > 0) { int lastIdx = programCount - 1; Program lastProgram = getProgramAt(lastIdx); int startTime = lastProgram.getHours() * 60 + lastProgram.getMinutes(); int endTime = startTime + lastProgram.getLength(); int modEndTime = endTime % (24 * 60); if ((endTime > (24 * 60)) && (time < modEndTime)) { newProgramOnAir = lastProgram; } }
|
public final void markProgramOnAir() { if (!new devplugin.Date().equals(getDate())) { return; } Iterator it = getPrograms(); Program p; int diff = Integer.MAX_VALUE; int nDiff; Calendar cal = new GregorianCalendar(); cal.setTime(new Date(System.currentTimeMillis())); int time = cal.get(Calendar.HOUR_OF_DAY) * 60 + cal.get(Calendar.MINUTE); Program newOnAir = null; while (it.hasNext()) { p = (Program)it.next(); nDiff=time-(p.getHours()*60+p.getMinutes()); if (nDiff>=0 && nDiff<diff) { diff=nDiff; newOnAir=p; } } if (programOnAir!=null) { programOnAir.markAsOnAir(false); } programOnAir=newOnAir; if (programOnAir!=null) { int length=programOnAir.getLength(); //System.out.println("onAir: "+programOnAir.getTitle()); if (length>=0) { int startTime=programOnAir.getHours()*60+programOnAir.getMinutes(); if (((startTime+length)%(60*24)) > time) { programOnAir.markAsOnAir(true); } } else { programOnAir.markAsOnAir(true); } } }
|
9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/e9dd428c6cab411077a6f521a36ae5e5c44d94bb/MutableChannelDayProgram.java/buggy/tvbrowser/src/tvdataservice/MutableChannelDayProgram.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
2267,
9459,
1398,
29752,
1435,
288,
565,
309,
16051,
2704,
4461,
4094,
18,
1626,
7675,
14963,
12,
588,
1626,
1435,
3719,
288,
1377,
327,
31,
565,
289,
565,
4498,
518,
273,
3570,
28854,
5621,
565,
13586,
293,
31,
565,
509,
3122,
273,
2144,
18,
6694,
67,
4051,
31,
565,
509,
290,
5938,
31,
565,
5542,
1443,
273,
394,
28033,
5621,
565,
1443,
18,
542,
950,
12,
2704,
2167,
12,
3163,
18,
2972,
28512,
1435,
10019,
565,
509,
813,
273,
1443,
18,
588,
12,
7335,
18,
21372,
67,
3932,
67,
10339,
13,
380,
4752,
397,
1443,
18,
588,
12,
7335,
18,
30090,
1769,
565,
13586,
394,
1398,
29752,
273,
446,
31,
565,
1323,
261,
305,
18,
5332,
2134,
10756,
288,
1377,
293,
273,
261,
9459,
13,
305,
18,
4285,
5621,
1377,
290,
5938,
33,
957,
17,
12,
84,
18,
588,
14910,
1435,
14,
4848,
15,
84,
18,
588,
13050,
10663,
1377,
309,
261,
82,
5938,
34,
33,
20,
597,
290,
5938,
32,
5413,
13,
288,
3639,
3122,
33,
82,
5938,
31,
3639,
394,
1398,
29752,
33,
84,
31,
1377,
289,
565,
289,
565,
309,
261,
12890,
1398,
29752,
5,
33,
2011,
13,
288,
1377,
5402,
1398,
29752,
18,
3355,
1463,
1398,
29752,
12,
5743,
1769,
565,
289,
565,
5402,
1398,
29752,
33,
2704,
1398,
29752,
31,
565,
309,
261,
12890,
1398,
29752,
5,
33,
2011,
13,
288,
1377,
509,
769,
33,
12890,
1398,
29752,
18,
588,
1782,
5621,
1377,
368,
3163,
18,
659,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
2267,
9459,
1398,
29752,
1435,
288,
565,
309,
16051,
2704,
4461,
4094,
18,
1626,
7675,
14963,
12,
588,
1626,
1435,
3719,
288,
1377,
327,
31,
565,
289,
565,
4498,
518,
273,
3570,
28854,
5621,
565,
13586,
293,
31,
565,
509,
3122,
273,
2144,
18,
6694,
67,
4051,
31,
565,
509,
290,
5938,
31,
565,
5542,
1443,
273,
394,
28033,
5621,
565,
1443,
18,
542,
950,
12,
2704,
2167,
12,
3163,
18,
2972,
28512,
1435,
10019,
565,
509,
813,
273,
1443,
18,
588,
12,
7335,
18,
21372,
67,
3932,
67,
10339,
13,
380,
4752,
397,
1443,
18,
588,
12,
7335,
18,
30090,
1769,
565,
13586,
394,
1398,
29752,
273,
446,
31,
565,
1323,
261,
305,
18,
2
] |
offsetToJavaArg += 8;
|
offsetToJavaArg = offsetToJavaArg.add(8);
|
private final boolean genMagic (VM_MethodReference m) { VM_Atom methodName = m.getName(); if (m.getType() == VM_TypeReference.Address) { // Address magic VM_TypeReference[] types = m.getParameterTypes(); // Loads all take the form: // ..., Address, [Offset] -> ..., Value if (methodName == VM_MagicNames.loadAddress || methodName == VM_MagicNames.prepareAddress || methodName == VM_MagicNames.prepareObjectReference || methodName == VM_MagicNames.loadWord || methodName == VM_MagicNames.loadObjectReference || methodName == VM_MagicNames.prepareWord || methodName == VM_MagicNames.loadInt || methodName == VM_MagicNames.prepareInt || methodName == VM_MagicNames.loadFloat) { if (types.length == 0) { // No offset asm.emitPOP_Reg(T0); // address asm.emitPUSH_RegInd(T0); // pushes [T0+0] } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // object ref asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] } return true; } if (methodName == VM_MagicNames.loadByte) { if (types.length == 0) { // No offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegInd_Byte(T0, T0) ; asm.emitPUSH_Reg (T0); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegIdx_Byte(T0, T0, S0, asm.BYTE, 0); // load and zero extend byte [T0+S0] asm.emitPUSH_Reg (T0); } return true; } if (methodName == VM_MagicNames.loadShort || methodName == VM_MagicNames.loadChar) { if (types.length == 0) { // No offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegInd_Word(T0, T0); asm.emitPUSH_Reg (T0); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegIdx_Word(T0, T0, S0, asm.BYTE, 0); // load and zero extend word [T0+S0] asm.emitPUSH_Reg (T0); } return true; } if (methodName == VM_MagicNames.loadLong || methodName == VM_MagicNames.loadDouble) { if (types.length == 0) { // No offset throw new RuntimeException("Magic not implemented"); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 4); // pushes [T0+S0+4] asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] } return true; } // Stores all take the form: // ..., Address, [Offset], Value -> ... if (methodName == VM_MagicNames.store) { // Always at least one parameter to a store. // First parameter is the type to be stored. VM_TypeReference storeType = types[0]; if (storeType == VM_TypeReference.Int || storeType == VM_TypeReference.Address || storeType == VM_TypeReference.ObjectReference || storeType == VM_TypeReference.Word || storeType == VM_TypeReference.Float) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // address asm.emitMOV_RegInd_Reg(S0,T0); // [S0+0] <- T0 } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // address asm.emitMOV_RegIdx_Reg(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 } return true; } if (storeType == VM_TypeReference.Byte) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegInd_Reg_Byte(T1, T0); } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegIdx_Reg_Byte(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (byte) T0 } return true; } if (storeType == VM_TypeReference.Short || storeType == VM_TypeReference.Char) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegInd_Reg_Word(T1, T0); } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegIdx_Reg_Word(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (word) T0 } return true; } if (storeType == VM_TypeReference.Double || storeType == VM_TypeReference.Long) { if (types.length == 1) { // No offset throw new RuntimeException("Magic not implemented"); } else { // Store at offset asm.emitMOV_Reg_RegDisp(T0, SP, +4); // value high asm.emitMOV_Reg_RegInd (S0, SP); // offset asm.emitMOV_Reg_RegDisp(T1, SP, +12); // base asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 asm.emitMOV_Reg_RegDisp(T0, SP, +8); // value low asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 4, T0); // [T1+S0+4] <- T0 asm.emitADD_Reg_Imm (SP, WORDSIZE * 4); // pop stack locations } return true; } } else if (methodName == VM_MagicNames.attempt) { // All attempts are similar 32 bit values. if (types.length == 3) { // Offset passed asm.emitPOP_Reg (S0); // S0 = offset } asm.emitPOP_Reg (T1); // newVal asm.emitPOP_Reg (EAX); // oldVal (EAX is implicit arg to LCMPX if (types.length == 3) { asm.emitADD_Reg_RegInd(S0, SP); // S0 += base } else { // No offset asm.emitMOV_Reg_RegInd(S0, SP); // S0 = base } asm.emitLockNextInstruction(); asm.emitCMPXCHG_RegInd_Reg (S0, T1); // atomic compare-and-exchange asm.emitMOV_RegInd_Imm (SP, 0); // 'push' false (overwriting base) VM_ForwardReference fr = asm.forwardJcc(asm.NE); // skip if compare fails asm.emitMOV_RegInd_Imm (SP, 1); // 'push' true (overwriting base) fr.resolve(asm); return true; } } if (methodName == VM_MagicNames.attemptInt || methodName == VM_MagicNames.attemptObject || methodName == VM_MagicNames.attemptAddress || methodName == VM_MagicNames.attemptWord) { // attempt gets called with four arguments: base, offset, oldVal, newVal // returns ([base+offset] == oldVal) // if ([base+offset] == oldVal) [base+offset] := newVal // (operation on memory is atomic) asm.emitPOP_Reg (T1); // newVal asm.emitPOP_Reg (EAX); // oldVal (EAX is implicit arg to LCMPXCNG asm.emitPOP_Reg (S0); // S0 = offset asm.emitADD_Reg_RegInd(S0, SP); // S0 += base asm.emitLockNextInstruction(); asm.emitCMPXCHG_RegInd_Reg (S0, T1); // atomic compare-and-exchange asm.emitMOV_RegInd_Imm (SP, 0); // 'push' false (overwriting base) VM_ForwardReference fr = asm.forwardJcc(asm.NE); // skip if compare fails asm.emitMOV_RegInd_Imm (SP, 1); // 'push' true (overwriting base) fr.resolve(asm); return true; } if (methodName == VM_MagicNames.invokeMain) { // invokeMain gets "called" with two arguments: // String[] mainArgs // the arguments to the main method // INSTRUCTION[] mainCode // the code for the main method asm.emitPOP_Reg (S0); // genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_Reg(S0); // branches to mainCode with mainArgs on the stack return true; } if (methodName == VM_MagicNames.saveThreadState) { int offset = VM_Entrypoints.saveThreadStateInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.threadSwitch) { int offset = VM_Entrypoints.threadSwitchInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(2); // pass 2 parameter words asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.restoreHardwareExceptionState) { int offset = VM_Entrypoints.restoreHardwareExceptionStateInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.invokeClassInitializer) { asm.emitPOP_Reg (S0); asm.emitCALL_Reg(S0); // call address just popped return true; } if (m.getType() == VM_TypeReference.SysCall) { VM_TypeReference[] args = m.getParameterTypes(); VM_TypeReference rtype = m.getReturnType(); int offsetToJavaArg = 3*WORDSIZE; // the three regs saved in (2) int paramBytes = 0; // (1) save three RVM nonvolatile/special registers // we don't have to save EBP: the callee will // treat it as a framepointer and save/restore // it for us. asm.emitPUSH_Reg(EBX); asm.emitPUSH_Reg(ESI); asm.emitPUSH_Reg(EDI); // (2) Push args to target function (reversed) for (int i=args.length-1; i>=0; i--) { VM_TypeReference arg = args[i]; if (arg.isLongType() || arg.isDoubleType()) { asm.emitPUSH_RegDisp(SP, offsetToJavaArg + 4); asm.emitPUSH_RegDisp(SP, offsetToJavaArg + 4); offsetToJavaArg += 16; paramBytes += 8; } else { asm.emitPUSH_RegDisp(SP, offsetToJavaArg); offsetToJavaArg += 8; paramBytes += 4; } } // (3) invoke target function VM_Field ip = VM_Entrypoints.getSysCallField(m.getName().toString()); asm.emitMOV_Reg_RegDisp(S0, JTOC, VM_Entrypoints.the_boot_recordField.getOffsetAsInt()); asm.emitCALL_RegDisp(S0, ip.getOffsetAsInt()); // (4) pop space for arguments asm.emitADD_Reg_Imm(SP, paramBytes); // (5) restore RVM registers asm.emitPOP_Reg(EDI); asm.emitPOP_Reg(ESI); asm.emitPOP_Reg(EBX); // (6) pop expression stack asm.emitADD_Reg_Imm(SP, paramBytes); // (7) push return value if (rtype.isLongType()) { asm.emitPUSH_Reg(T1); asm.emitPUSH_Reg(T0); } else if (rtype.isDoubleType()) { asm.emitSUB_Reg_Imm(SP, 8); asm.emitFSTP_RegInd_Reg_Quad(SP, FP0); } else if (rtype.isFloatType()) { asm.emitSUB_Reg_Imm(SP, 4); asm.emitFSTP_RegInd_Reg(SP, FP0); } else if (!rtype.isVoidType()) { asm.emitPUSH_Reg(T0); } return true; } if (methodName == VM_MagicNames.getFramePointer) { asm.emitLEA_Reg_RegDisp(S0, SP, fp2spOffset(0)); asm.emitPUSH_Reg (S0); return true; } if (methodName == VM_MagicNames.getCallerFramePointer) { asm.emitPOP_Reg(T0); // Callee FP asm.emitPUSH_RegDisp(T0, STACKFRAME_FRAME_POINTER_OFFSET); // Caller FP return true; } if (methodName == VM_MagicNames.setCallerFramePointer) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // fp asm.emitMOV_RegDisp_Reg(S0, STACKFRAME_FRAME_POINTER_OFFSET, T0); // [S0+SFPO] <- T0 return true; } if (methodName == VM_MagicNames.getCompiledMethodID) { asm.emitPOP_Reg(T0); // Callee FP asm.emitPUSH_RegDisp(T0, STACKFRAME_METHOD_ID_OFFSET); // Callee CMID return true; } if (methodName == VM_MagicNames.setCompiledMethodID) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // fp asm.emitMOV_RegDisp_Reg(S0, STACKFRAME_METHOD_ID_OFFSET, T0); // [S0+SMIO] <- T0 return true; } if (methodName == VM_MagicNames.getReturnAddressLocation) { asm.emitPOP_Reg(T0); // Callee FP asm.emitADD_Reg_Imm(T0, STACKFRAME_RETURN_ADDRESS_OFFSET); // location containing callee return address asm.emitPUSH_Reg(T0); // Callee return address return true; } if (methodName == VM_MagicNames.getTocPointer || methodName == VM_MagicNames.getJTOC ) { asm.emitPUSH_Reg(JTOC); return true; } // get the processor register (PR) if (methodName == VM_MagicNames.getProcessorRegister) { asm.emitPUSH_Reg(PR); return true; } // set the processor register (PR) if (methodName == VM_MagicNames.setProcessorRegister) { asm.emitPOP_Reg(PR); return true; } // Get the value in ESI if (methodName == VM_MagicNames.getESIAsProcessor) { asm.emitPUSH_Reg(ESI); return true; } // Set the value in ESI if (methodName == VM_MagicNames.setESIAsProcessor) { asm.emitPOP_Reg(ESI); return true; } if (methodName == VM_MagicNames.getIntAtOffset || methodName == VM_MagicNames.getWordAtOffset || methodName == VM_MagicNames.getObjectAtOffset || methodName == VM_MagicNames.getObjectArrayAtOffset || methodName == VM_MagicNames.prepareInt || methodName == VM_MagicNames.prepareObject || methodName == VM_MagicNames.prepareAddress || methodName == VM_MagicNames.prepareWord) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] return true; } if (methodName == VM_MagicNames.getByteAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitMOVZX_Reg_RegIdx_Byte(T0, T0, S0, asm.BYTE, 0); // load and zero extend byte [T0+S0] asm.emitPUSH_Reg (T0); return true; } if (methodName == VM_MagicNames.getCharAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitMOVZX_Reg_RegIdx_Word(T0, T0, S0, asm.BYTE, 0); // load and zero extend char [T0+S0] asm.emitPUSH_Reg (T0); return true; } if (methodName == VM_MagicNames.setIntAtOffset || methodName == VM_MagicNames.setWordAtOffset || methodName == VM_MagicNames.setObjectAtOffset ) { if (m.getParameterTypes().length == 4) { // discard locationMetadata parameter asm.emitPOP_Reg(T0); // locationMetadata, not needed by baseline compiler. } asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 return true; } if (methodName == VM_MagicNames.setByteAtOffset) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg_Byte(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (byte) T0 return true; } if (methodName == VM_MagicNames.setCharAtOffset) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg_Word(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (char) T0 return true; } if (methodName == VM_MagicNames.getLongAtOffset || methodName == VM_MagicNames.getDoubleAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 4); // pushes [T0+S0+4] asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] return true; } if (methodName == VM_MagicNames.setLongAtOffset || methodName == VM_MagicNames.setDoubleAtOffset) { asm.emitMOV_Reg_RegInd (T0, SP); // value high asm.emitMOV_Reg_RegDisp(S0, SP, +8 ); // offset asm.emitMOV_Reg_RegDisp(T1, SP, +12); // obj ref asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 asm.emitMOV_Reg_RegDisp(T0, SP, +4 ); // value low asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 4, T0); // [T1+S0+4] <- T0 asm.emitADD_Reg_Imm (SP, WORDSIZE * 4); // pop stack locations return true; } if (methodName == VM_MagicNames.addressArrayCreate) { // no resolution problem possible. emit_resolved_newarray(m.getType().resolve().asArray()); return true; } if (methodName == VM_MagicNames.addressArrayLength) { emit_arraylength(); // argument order already correct return true; } if (methodName == VM_MagicNames.addressArrayGet) { if (m.getType() == VM_TypeReference.CodeArray) { emit_baload(); } else { if (VM.BuildFor32Addr) { emit_iaload(); } else if (VM.BuildFor64Addr) { emit_laload(); } else { VM._assert(NOT_REACHED); } } return true; } if (methodName == VM_MagicNames.addressArraySet) { if (m.getType() == VM_TypeReference.CodeArray) { emit_bastore(); } else { if (VM.BuildFor32Addr) { emit_iastore(); } else if (VM.BuildFor64Addr) { VM._assert(false); // not implemented } else { VM._assert(NOT_REACHED); } } return true; } if (methodName == VM_MagicNames.getMemoryInt || methodName == VM_MagicNames.getMemoryWord || methodName == VM_MagicNames.getMemoryAddress) { asm.emitPOP_Reg(T0); // address asm.emitPUSH_RegInd(T0); // pushes [T0+0] return true; } if (methodName == VM_MagicNames.setMemoryInt || methodName == VM_MagicNames.setMemoryWord || methodName == VM_MagicNames.setMemoryAddress) { if (m.getParameterTypes().length == 3) { // discard locationMetadata parameter asm.emitPOP_Reg(T0); // locationMetadata, not needed by baseline compiler. } asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // address asm.emitMOV_RegInd_Reg(S0,T0); // [S0+0] <- T0 return true; } if (methodName == VM_MagicNames.objectAsAddress || methodName == VM_MagicNames.addressAsByteArray || methodName == VM_MagicNames.addressAsIntArray || methodName == VM_MagicNames.addressAsObject || methodName == VM_MagicNames.addressAsObjectArray || methodName == VM_MagicNames.addressAsType || methodName == VM_MagicNames.objectAsType || methodName == VM_MagicNames.objectAsShortArray || methodName == VM_MagicNames.objectAsByteArray || methodName == VM_MagicNames.objectAsIntArray || methodName == VM_MagicNames.addressAsThread || methodName == VM_MagicNames.objectAsThread || methodName == VM_MagicNames.objectAsProcessor || methodName == VM_MagicNames.threadAsCollectorThread || methodName == VM_MagicNames.addressAsRegisters || methodName == VM_MagicNames.addressAsStack || methodName == VM_MagicNames.floatAsIntBits || methodName == VM_MagicNames.intBitsAsFloat || methodName == VM_MagicNames.doubleAsLongBits || methodName == VM_MagicNames.longBitsAsDouble) { // no-op (a type change, not a representation change) return true; } // code for VM_Type VM_Magic.getObjectType(Object object) if (methodName == VM_MagicNames.getObjectType) { asm.emitPOP_Reg (T0); // object ref VM_ObjectModel.baselineEmitLoadTIB(asm,S0,T0); asm.emitPUSH_RegDisp(S0, TIB_TYPE_INDEX<<LG_WORDSIZE); // push VM_Type slot of TIB return true; } if (methodName == VM_MagicNames.getArrayLength) { asm.emitPOP_Reg(T0); // object ref asm.emitPUSH_RegDisp(T0, VM_ObjectModel.getArrayLengthOffset().toInt()); return true; } if (methodName == VM_MagicNames.sync) { // nothing required on IA32 return true; } if (methodName == VM_MagicNames.isync) { // nothing required on IA32 return true; } // baseline compiled invocation only: all paramaters on the stack // hi mem // Code // GPRs // FPRs // Spills // low-mem if (methodName == VM_MagicNames.invokeMethodReturningVoid) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.invokeMethodReturningInt) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningLong) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); // high half asm.emitPUSH_Reg(T1); // low half return true; } if (methodName == VM_MagicNames.invokeMethodReturningFloat) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitSUB_Reg_Imm (SP, 4); asm.emitFSTP_RegInd_Reg(SP, FP0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningDouble) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitSUB_Reg_Imm (SP, 8); asm.emitFSTP_RegInd_Reg_Quad(SP, FP0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningObject) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); return true; } // baseline invocation // one paramater, on the stack -- actual code if (methodName == VM_MagicNames.dynamicBridgeTo) { if (VM.VerifyAssertions) VM._assert(klass.isDynamicBridge()); // save the branch address for later asm.emitPOP_Reg (S0); // S0<-code address asm.emitADD_Reg_Imm(SP, fp2spOffset(0) - 4); // just popped 4 bytes above. // restore FPU state asm.emitFRSTOR_RegDisp(SP, FPU_SAVE_OFFSET); // restore GPRs asm.emitMOV_Reg_RegDisp (T0, SP, T0_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (T1, SP, T1_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (EBX, SP, EBX_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (JTOC, SP, JTOC_SAVE_OFFSET); // pop frame asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); // FP<-previous FP // branch asm.emitJMP_Reg (S0); return true; } if (methodName == VM_MagicNames.returnToNewStack) { // SP gets frame pointer for new stack asm.emitPOP_Reg (SP); // restore nonvolatile registers asm.emitMOV_Reg_RegDisp (JTOC, SP, JTOC_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (EBX, SP, EBX_SAVE_OFFSET); // discard current stack frame asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); // return to caller- pop parameters from stack asm.emitRET_Imm(parameterWords << LG_WORDSIZE); return true; } if (methodName == VM_MagicNames.roundToZero) { // Store the FPU Control Word to a JTOC slot asm.emitFNSTCW_RegDisp(JTOC, VM_Entrypoints.FPUControlWordField.getOffsetAsInt()); // Set the bits in the status word that control round to zero. // Note that we use a 32-bit OR, even though we only care about the // low-order 16 bits asm.emitOR_RegDisp_Imm(JTOC,VM_Entrypoints.FPUControlWordField.getOffsetAsInt(), 0x00000c00); // Now store the result back into the FPU Control Word asm.emitFLDCW_RegDisp(JTOC,VM_Entrypoints.FPUControlWordField.getOffsetAsInt()); return true; } if (methodName == VM_MagicNames.clearFloatingPointState) { // Clear the hardware floating-point state asm.emitFNINIT(); return true; } if (methodName == VM_MagicNames.getTimeBase) { asm.emitRDTSC(); // read timestamp counter instruction asm.emitPUSH_Reg(EDX); // upper 32 bits asm.emitPUSH_Reg(EAX); // lower 32 bits return true; } if (methodName == VM_MagicNames.wordFromInt || methodName == VM_MagicNames.wordFromObject || methodName == VM_MagicNames.wordFromIntZeroExtend || methodName == VM_MagicNames.wordFromIntSignExtend || methodName == VM_MagicNames.wordToInt || methodName == VM_MagicNames.wordToAddress || methodName == VM_MagicNames.wordToOffset || methodName == VM_MagicNames.wordToObject || methodName == VM_MagicNames.wordToObjectReference || methodName == VM_MagicNames.wordToExtent || methodName == VM_MagicNames.wordToWord) { if (VM.BuildFor32Addr) return true; // no-op for 32-bit if (VM.VerifyAssertions) VM._assert(false); } if (methodName == VM_MagicNames.wordToLong) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg(T0); asm.emitPUSH_Imm(0); // upper 32 bits asm.emitPUSH_Reg(T0); // lower 32 bits return true; } // else fill unused stackslot if (VM.VerifyAssertions) VM._assert(false); } if (methodName == VM_MagicNames.wordAnd) { asm.emitPOP_Reg(T0); asm.emitAND_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordOr) { asm.emitPOP_Reg(T0); asm.emitOR_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordXor) { asm.emitPOP_Reg(T0); asm.emitXOR_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordNot) { asm.emitNOT_RegInd (SP); return true; } if (methodName == VM_MagicNames.wordAdd) { asm.emitPOP_Reg(T0); asm.emitADD_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordSub || methodName == VM_MagicNames.wordDiff) { asm.emitPOP_Reg(T0); asm.emitSUB_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordZero || methodName == VM_MagicNames.wordNull) { asm.emitPUSH_Imm(0); return true; } if (methodName == VM_MagicNames.wordOne) { asm.emitPUSH_Imm(1); return true; } if (methodName == VM_MagicNames.wordMax) { asm.emitPUSH_Imm(-1); return true; } if (methodName == VM_MagicNames.wordLT) { generateAddrComparison(asm.LLT); return true; } if (methodName == VM_MagicNames.wordLE) { generateAddrComparison(asm.LLE); return true; } if (methodName == VM_MagicNames.wordGT) { generateAddrComparison(asm.LGT); return true; } if (methodName == VM_MagicNames.wordGE) { generateAddrComparison(asm.LGE); return true; } if (methodName == VM_MagicNames.wordsLT) { generateAddrComparison(asm.LT); return true; } if (methodName == VM_MagicNames.wordsLE) { generateAddrComparison(asm.LE); return true; } if (methodName == VM_MagicNames.wordsGT) { generateAddrComparison(asm.GT); return true; } if (methodName == VM_MagicNames.wordsGE) { generateAddrComparison(asm.GE); return true; } if (methodName == VM_MagicNames.wordEQ) { generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordNE) { generateAddrComparison(asm.NE); return true; } if (methodName == VM_MagicNames.wordIsZero) { asm.emitPUSH_Imm(0); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordIsNull) { asm.emitPUSH_Imm(0); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordIsMax) { asm.emitPUSH_Imm(-1); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordLsh) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg(ECX); asm.emitSHL_RegInd_Reg(SP, ECX); } else VM._assert(false); return true; } if (methodName == VM_MagicNames.wordRshl) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg (ECX); asm.emitSHR_RegInd_Reg (SP, ECX); } else VM._assert(false); return true; } if (methodName == VM_MagicNames.wordRsha) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg (ECX); asm.emitSAR_RegInd_Reg (SP, ECX); } else VM._assert(false); return true; } return false; }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/c19269673fcdd14e39a92c30e8ccef4cb7ce0402/VM_Compiler.java/clean/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
1250,
3157,
19289,
261,
7397,
67,
1305,
2404,
312,
13,
288,
565,
8251,
67,
3641,
4918,
273,
312,
18,
17994,
5621,
565,
309,
261,
81,
18,
588,
559,
1435,
422,
8251,
67,
7534,
18,
1887,
13,
288,
1377,
368,
5267,
8146,
1377,
8251,
67,
7534,
8526,
1953,
273,
312,
18,
588,
1662,
2016,
5621,
1377,
368,
4444,
87,
777,
4862,
326,
646,
30,
1377,
368,
1372,
16,
5267,
16,
306,
2335,
65,
317,
1372,
16,
1445,
1377,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
945,
1887,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
1887,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
22101,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
945,
3944,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
945,
22101,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
3944,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
945,
1702,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
1702,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
945,
4723,
13,
288,
3639,
309,
261,
2352,
18,
2469,
422,
374,
13,
288,
1850,
368,
2631,
1384,
1850,
20415,
18,
18356,
30374,
67,
1617,
12,
56,
20,
1769,
8227,
368,
1758,
1850,
20415,
18,
18356,
30348,
67,
1617,
3866,
12,
56,
20,
1769,
5375,
368,
27351,
306,
56,
20,
15,
20,
65,
3639,
289,
469,
288,
1850,
368,
4444,
622,
1384,
1850,
20415,
18,
18356,
30374,
67,
1617,
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,
727,
1250,
3157,
19289,
261,
7397,
67,
1305,
2404,
312,
13,
288,
565,
8251,
67,
3641,
4918,
273,
312,
18,
17994,
5621,
565,
309,
261,
81,
18,
588,
559,
1435,
422,
8251,
67,
7534,
18,
1887,
13,
288,
1377,
368,
5267,
8146,
1377,
8251,
67,
7534,
8526,
1953,
273,
312,
18,
588,
1662,
2016,
5621,
1377,
368,
4444,
87,
777,
4862,
326,
646,
30,
1377,
368,
1372,
16,
5267,
16,
306,
2335,
65,
317,
1372,
16,
1445,
1377,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
945,
1887,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
1887,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
22101,
747,
1850,
4918,
422,
8251,
2
] |
formatStr = RequestUtils.message(pageContext, this.bundle, this.localeKey, FLOAT_FORMAT_KEY );
|
formatStr = retrieveFormatString( FLOAT_FORMAT_KEY );
|
protected String formatValue(Object valueToFormat) throws JspException { Format format = null; Object value = valueToFormat; Locale locale = RequestUtils.retrieveUserLocale( pageContext, this.localeKey ); boolean formatStrFromResources = false; // Return String object as is. if ( value instanceof java.lang.String ) { return (String)value; } else { // Try to retrieve format string from resources by the key from formatKey. if( formatKey!=null ) { formatStr = RequestUtils.message( pageContext, this.bundle, this.localeKey, this.formatKey ); formatStrFromResources = true; } // Prepare format object for numeric values. if ( value instanceof Number ) { if( formatStr==null ) { if( ( value instanceof Byte ) || ( value instanceof Short ) || ( value instanceof Integer ) || ( value instanceof Long ) || ( value instanceof BigInteger ) ) formatStr = RequestUtils.message(pageContext, this.bundle, this.localeKey, INT_FORMAT_KEY ); else if( ( value instanceof Float ) || ( value instanceof Double ) || ( value instanceof BigDecimal ) ) formatStr = RequestUtils.message(pageContext, this.bundle, this.localeKey, FLOAT_FORMAT_KEY ); if( formatStr!=null ) formatStrFromResources = true; } if( formatStr!=null ) { try { format = NumberFormat.getNumberInstance( locale ); if( formatStrFromResources ) ( ( DecimalFormat ) format ).applyLocalizedPattern( formatStr ); else ( ( DecimalFormat ) format ).applyPattern( formatStr ); } catch( IllegalArgumentException _e ) { JspException e = new JspException(messages.getMessage("write.format", formatStr)); RequestUtils.saveException(pageContext, e); throw e; } } } else if ( value instanceof java.util.Date ) { if( formatStr==null ) { if ( value instanceof java.sql.Timestamp ) { formatStr = RequestUtils.message(pageContext, this.bundle, this.localeKey, SQL_TIMESTAMP_FORMAT_KEY ); } else if ( value instanceof java.sql.Date ) { formatStr = RequestUtils.message(pageContext, this.bundle, this.localeKey, SQL_DATE_FORMAT_KEY ); } else if ( value instanceof java.sql.Time ) { formatStr = RequestUtils.message(pageContext, this.bundle, this.localeKey, SQL_TIME_FORMAT_KEY ); } else if ( value instanceof java.util.Date ) { formatStr = RequestUtils.message(pageContext, this.bundle, this.localeKey, DATE_FORMAT_KEY ); } if( formatStr!=null ) formatStrFromResources = true; } if( formatStr!=null ) { if( formatStrFromResources ) { format = new SimpleDateFormat( formatStr, locale ); } else { format = new SimpleDateFormat( formatStr ); } } } } if( format!=null ) return format.format( value ); else return value.toString(); }
|
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/664fdf0f39beb4012452b93390247fcc78a63f66/WriteTag.java/buggy/src/share/org/apache/struts/taglib/bean/WriteTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
740,
620,
12,
921,
30605,
1630,
13,
1216,
27485,
288,
3639,
4077,
740,
273,
446,
31,
3639,
1033,
460,
273,
30605,
1630,
31,
3639,
6458,
2573,
273,
1567,
1989,
18,
17466,
1299,
3916,
12,
21442,
16,
333,
18,
6339,
653,
11272,
3639,
1250,
740,
1585,
1265,
3805,
273,
629,
31,
3639,
368,
2000,
514,
733,
487,
353,
18,
3639,
309,
261,
460,
1276,
2252,
18,
4936,
18,
780,
262,
288,
7734,
327,
261,
780,
13,
1132,
31,
3639,
289,
469,
288,
5411,
368,
6161,
358,
4614,
740,
533,
628,
2703,
635,
326,
498,
628,
740,
653,
18,
5411,
309,
12,
740,
653,
5,
33,
2011,
262,
288,
10792,
740,
1585,
273,
1567,
1989,
18,
2150,
12,
21442,
16,
333,
18,
9991,
16,
4766,
7734,
333,
18,
6339,
653,
16,
333,
18,
2139,
653,
11272,
10792,
740,
1585,
1265,
3805,
273,
638,
31,
5411,
289,
5411,
368,
7730,
740,
733,
364,
6389,
924,
18,
5411,
309,
261,
460,
1276,
3588,
262,
288,
7734,
309,
12,
740,
1585,
631,
2011,
262,
288,
13491,
309,
12,
261,
460,
1276,
3506,
262,
565,
747,
18701,
261,
460,
1276,
7925,
262,
282,
747,
18701,
261,
460,
1276,
2144,
262,
747,
18701,
261,
460,
1276,
3407,
262,
565,
747,
18701,
261,
460,
1276,
10246,
262,
262,
27573,
740,
1585,
273,
1567,
1989,
18,
2150,
12,
2433,
1042,
16,
333,
18,
9991,
16,
4766,
2868,
333,
18,
6339,
653,
16,
6137,
67,
7254,
67,
3297,
11272,
13491,
469,
309,
12,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
740,
620,
12,
921,
30605,
1630,
13,
1216,
27485,
288,
3639,
4077,
740,
273,
446,
31,
3639,
1033,
460,
273,
30605,
1630,
31,
3639,
6458,
2573,
273,
1567,
1989,
18,
17466,
1299,
3916,
12,
21442,
16,
333,
18,
6339,
653,
11272,
3639,
1250,
740,
1585,
1265,
3805,
273,
629,
31,
3639,
368,
2000,
514,
733,
487,
353,
18,
3639,
309,
261,
460,
1276,
2252,
18,
4936,
18,
780,
262,
288,
7734,
327,
261,
780,
13,
1132,
31,
3639,
289,
469,
288,
5411,
368,
6161,
358,
4614,
740,
533,
628,
2703,
635,
326,
498,
628,
740,
653,
18,
5411,
309,
12,
740,
653,
5,
33,
2011,
262,
288,
10792,
740,
1585,
273,
1567,
1989,
18,
2150,
12,
2
] |
separatorArea.setIPD(curPV.getCurrentSpan().getColumnWidth());
|
separatorArea.setIPD(curPV.getRegionReference(Constants.FO_REGION_BODY).getIPD());
|
protected void addAreas(PositionIterator posIter, LayoutContext context) { if (footnoteSeparatorLM != null) { StaticContent footnoteSeparator = pageSeq.getStaticContent( "xsl-footnote-separator"); // create a Block area that will contain the separator areas separatorArea = new Block(); separatorArea.setIPD(curPV.getCurrentSpan().getColumnWidth()); // create a StaticContentLM for the footnote separator footnoteSeparatorLM = (StaticContentLayoutManager) getLayoutManagerMaker().makeStaticContentLayoutManager( pslm, footnoteSeparator, separatorArea); footnoteSeparatorLM.doLayout(); } childFLM.addAreas(posIter, context); }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/733cf3bd2c34d00ba2c42c1f18d915bd19cef724/PageSequenceLayoutManager.java/buggy/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
918,
527,
28377,
12,
2555,
3198,
949,
2360,
16,
9995,
1042,
819,
13,
288,
5411,
309,
261,
10923,
7652,
6581,
17063,
480,
446,
13,
288,
7734,
10901,
1350,
14200,
7652,
6581,
273,
1363,
6926,
18,
588,
5788,
1350,
12,
13491,
315,
30903,
17,
10923,
7652,
17,
11287,
8863,
7734,
368,
752,
279,
3914,
5091,
716,
903,
912,
326,
4182,
15586,
7734,
4182,
5484,
273,
394,
3914,
5621,
7734,
4182,
5484,
18,
542,
2579,
40,
12,
1397,
30201,
18,
588,
5165,
2404,
12,
2918,
18,
3313,
67,
28314,
67,
16691,
2934,
588,
2579,
40,
10663,
7734,
368,
752,
279,
10901,
1350,
17063,
364,
326,
14200,
7652,
4182,
7734,
14200,
7652,
6581,
17063,
273,
261,
5788,
1350,
3744,
1318,
13,
10792,
17670,
1318,
12373,
7675,
6540,
5788,
1350,
3744,
1318,
12,
10792,
293,
2069,
81,
16,
14200,
7652,
6581,
16,
4182,
5484,
1769,
7734,
14200,
7652,
6581,
17063,
18,
2896,
3744,
5621,
5411,
289,
5411,
1151,
42,
17063,
18,
1289,
28377,
12,
917,
2360,
16,
819,
1769,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
540,
4750,
918,
527,
28377,
12,
2555,
3198,
949,
2360,
16,
9995,
1042,
819,
13,
288,
5411,
309,
261,
10923,
7652,
6581,
17063,
480,
446,
13,
288,
7734,
10901,
1350,
14200,
7652,
6581,
273,
1363,
6926,
18,
588,
5788,
1350,
12,
13491,
315,
30903,
17,
10923,
7652,
17,
11287,
8863,
7734,
368,
752,
279,
3914,
5091,
716,
903,
912,
326,
4182,
15586,
7734,
4182,
5484,
273,
394,
3914,
5621,
7734,
4182,
5484,
18,
542,
2579,
40,
12,
1397,
30201,
18,
588,
5165,
2404,
12,
2918,
18,
3313,
67,
28314,
67,
16691,
2934,
588,
2579,
40,
10663,
7734,
368,
752,
279,
10901,
1350,
17063,
364,
326,
14200,
7652,
4182,
7734,
14200,
7652,
6581,
17063,
273,
261,
5788,
1350,
3744,
1318,
2
] |
return m_multiplicity == REQUIRED;
|
return !m_prop.isNullable() && !m_prop.isCollection();
|
public boolean isRequired() { return m_multiplicity == REQUIRED; }
|
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/33d40a30749ceabf445a17f71fe56c89d7fc913c/Property.java/buggy/archive/proto/src/com/arsdigita/persistence/metadata/Property.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
14967,
1435,
288,
3639,
327,
401,
81,
67,
5986,
18,
291,
13349,
1435,
597,
401,
81,
67,
5986,
18,
291,
2532,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
14967,
1435,
288,
3639,
327,
401,
81,
67,
5986,
18,
291,
13349,
1435,
597,
401,
81,
67,
5986,
18,
291,
2532,
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
] |
EDataType dataType = attribute.getEAttributeType(); if (!dataType.getInstanceClass().equals("java.lang.String")) { return 0;
|
if (!returnsString(attribute)) { return -1;
|
public int getFieldLengthOf(EAttribute attribute) { EDataType dataType = attribute.getEAttributeType(); if (!dataType.getInstanceClass().equals("java.lang.String")) { return 0; } Map<String,String> attributeDetails = emfFacade.getAnnotationDetails(attribute, ExtendedProgModelConstants.ANNOTATION_ATTRIBUTE); String fieldLengthOfStr = attributeDetails.get( ExtendedProgModelConstants.ANNOTATION_ATTRIBUTE_FIELD_LENGTH_OF_KEY); int fieldLengthOf = -1; if (fieldLengthOfStr != null) { fieldLengthOf = Integer.parseInt(fieldLengthOfStr); } String maxLengthOfStr = attributeDetails.get( ExtendedProgModelConstants.ANNOTATION_ATTRIBUTE_MAX_LENGTH_OF_KEY); int maxLengthOf = -1; if (maxLengthOfStr != null) { maxLengthOf = Integer.parseInt(maxLengthOfStr); } if (fieldLengthOf > 0 && maxLengthOf > 0) { return Math.min(fieldLengthOf, maxLengthOf); } else if (fieldLengthOf > 0 && maxLengthOf <= 0) { return fieldLengthOf; } else if (fieldLengthOf <= 0 && maxLengthOf > 0) { return maxLengthOf; } else if (fieldLengthOf <= 0 && maxLengthOf <= 0) { return ExtendedProgModelConstants.FIELD_LENGTH_OF_DEFAULT; } return ExtendedProgModelConstants.FIELD_LENGTH_OF_DEFAULT; }
|
13434 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13434/2d19b4c80cef7040b7fb05095f6b60cbb5de00be/ExtendedDomainClass.java/buggy/trunk/workspace/de.berlios.rcpviewer.domain/src/de/berlios/rcpviewer/progmodel/extended/ExtendedDomainClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
5031,
1782,
951,
12,
41,
1499,
1566,
13,
288,
202,
202,
41,
6273,
8891,
273,
1566,
18,
588,
41,
19529,
5621,
202,
202,
430,
16051,
892,
559,
18,
588,
1442,
797,
7675,
14963,
2932,
6290,
18,
4936,
18,
780,
6,
3719,
288,
1082,
202,
2463,
374,
31,
202,
202,
97,
202,
202,
863,
32,
780,
16,
780,
34,
1566,
3790,
273,
1875,
202,
351,
74,
12467,
18,
588,
3257,
3790,
12,
4589,
16,
14094,
626,
75,
1488,
2918,
18,
24922,
67,
11616,
1769,
9506,
202,
780,
652,
1782,
951,
1585,
273,
1566,
3790,
18,
588,
12,
6862,
202,
11456,
626,
75,
1488,
2918,
18,
24922,
67,
11616,
67,
6776,
67,
7096,
67,
3932,
67,
3297,
1769,
202,
202,
474,
652,
1782,
951,
273,
300,
21,
31,
202,
202,
430,
261,
1518,
1782,
951,
1585,
480,
446,
13,
288,
1082,
202,
1518,
1782,
951,
273,
2144,
18,
2670,
1702,
12,
1518,
1782,
951,
1585,
1769,
202,
202,
97,
202,
202,
780,
13642,
951,
1585,
273,
1566,
3790,
18,
588,
12,
9506,
202,
11456,
626,
75,
1488,
2918,
18,
24922,
67,
11616,
67,
6694,
67,
7096,
67,
3932,
67,
3297,
1769,
202,
202,
474,
13642,
951,
273,
300,
21,
31,
202,
202,
430,
261,
1896,
1782,
951,
1585,
480,
446,
13,
288,
1082,
202,
1896,
1782,
951,
273,
2144,
18,
2670,
1702,
12,
1896,
1782,
951,
1585,
1769,
202,
202,
97,
202,
202,
430,
261,
1518,
1782,
951,
405,
374,
597,
13642,
951,
405,
374,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
5031,
1782,
951,
12,
41,
1499,
1566,
13,
288,
202,
202,
41,
6273,
8891,
273,
1566,
18,
588,
41,
19529,
5621,
202,
202,
430,
16051,
892,
559,
18,
588,
1442,
797,
7675,
14963,
2932,
6290,
18,
4936,
18,
780,
6,
3719,
288,
1082,
202,
2463,
374,
31,
202,
202,
97,
202,
202,
863,
32,
780,
16,
780,
34,
1566,
3790,
273,
1875,
202,
351,
74,
12467,
18,
588,
3257,
3790,
12,
4589,
16,
14094,
626,
75,
1488,
2918,
18,
24922,
67,
11616,
1769,
9506,
202,
780,
652,
1782,
951,
1585,
273,
1566,
3790,
18,
588,
12,
6862,
202,
11456,
626,
75,
1488,
2918,
18,
24922,
67,
11616,
67,
6776,
67,
7096,
67,
3932,
67,
3297,
2
] |
initializeVariables ();
|
initializeVariables();
|
void doParse ( String systemId, String publicId, Reader reader, InputStream stream, String encoding ) throws Exception { if (handler == null) throw new IllegalStateException ("no callback handler"); initializeVariables (); // predeclare the built-in entities here (replacement texts) // we don't need to intern(), since we're guaranteed literals // are always (globally) interned. setInternalEntity ("amp", "&"); setInternalEntity ("lt", "<"); setInternalEntity ("gt", ">"); setInternalEntity ("apos", "'"); setInternalEntity ("quot", """); try { // pushURL first to ensure locator is correct in startDocument // ... it might report an IO or encoding exception. handler.startDocument (); pushURL (false, "[document]", // default baseURI: null new String [] { publicId, systemId, null}, reader, stream, encoding, false); parseDocument (); } catch (EOFException e){ //empty input error("empty document, with no root element."); }finally { if (reader != null) try { reader.close (); } catch (IOException e) { /* ignore */ } if (stream != null) try { stream.close (); } catch (IOException e) { /* ignore */ } if (is != null) try { is.close (); } catch (IOException e) { /* ignore */ } if (reader != null) try { reader.close (); } catch (IOException e) { /* ignore */ } scratch = null; } }
|
56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/buggy/libjava/gnu/xml/aelfred2/XmlParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
741,
3201,
261,
202,
780,
202,
202,
4299,
548,
16,
202,
780,
202,
202,
482,
548,
16,
202,
2514,
202,
202,
10530,
16,
202,
4348,
202,
3256,
16,
202,
780,
202,
202,
5999,
565,
262,
1216,
1185,
565,
288,
202,
430,
261,
4176,
422,
446,
13,
202,
565,
604,
394,
5477,
7566,
2135,
1348,
1838,
8863,
202,
11160,
6158,
261,
1769,
202,
759,
675,
29554,
326,
6650,
17,
267,
5140,
2674,
261,
24394,
15219,
13,
202,
759,
732,
2727,
1404,
1608,
358,
8216,
9334,
3241,
732,
4565,
15403,
18228,
202,
759,
854,
3712,
261,
10581,
1230,
13,
8216,
329,
18,
202,
542,
3061,
1943,
7566,
931,
3113,
31235,
7414,
4868,
1769,
202,
542,
3061,
1943,
7566,
5618,
3113,
31235,
4848,
4868,
1769,
202,
542,
3061,
1943,
7566,
4521,
3113,
31235,
8898,
4868,
1769,
202,
542,
3061,
1943,
7566,
438,
538,
3113,
31235,
5520,
4868,
1769,
202,
542,
3061,
1943,
7566,
9270,
3113,
31235,
5026,
4868,
1769,
202,
698,
288,
202,
565,
368,
1817,
1785,
1122,
358,
3387,
8871,
353,
3434,
316,
787,
2519,
202,
565,
368,
1372,
518,
4825,
2605,
392,
1665,
578,
2688,
1520,
18,
202,
565,
1838,
18,
1937,
2519,
261,
1769,
202,
565,
1817,
1785,
261,
5743,
16,
5158,
5457,
65,
3113,
1082,
202,
759,
805,
1026,
3098,
30,
446,
1082,
565,
394,
514,
5378,
288,
1071,
548,
16,
30083,
16,
446,
5779,
1082,
565,
2949,
16,
1407,
16,
2688,
16,
629,
1769,
202,
565,
1109,
2519,
261,
1769,
202,
97,
1044,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
741,
3201,
261,
202,
780,
202,
202,
4299,
548,
16,
202,
780,
202,
202,
482,
548,
16,
202,
2514,
202,
202,
10530,
16,
202,
4348,
202,
3256,
16,
202,
780,
202,
202,
5999,
565,
262,
1216,
1185,
565,
288,
202,
430,
261,
4176,
422,
446,
13,
202,
565,
604,
394,
5477,
7566,
2135,
1348,
1838,
8863,
202,
11160,
6158,
261,
1769,
202,
759,
675,
29554,
326,
6650,
17,
267,
5140,
2674,
261,
24394,
15219,
13,
202,
759,
732,
2727,
1404,
1608,
358,
8216,
9334,
3241,
732,
4565,
15403,
18228,
202,
759,
854,
3712,
261,
10581,
1230,
13,
8216,
329,
18,
202,
542,
3061,
1943,
7566,
931,
3113,
31235,
7414,
4868,
1769,
202,
542,
3061,
1943,
7566,
5618,
2
] |
newComposites = new HashMap();
|
newComposites = new java.util.HashMap();
|
private void scanGlyphs(FontFileReader in, HashMap glyphs) throws IOException { TTFDirTabEntry entry = (TTFDirTabEntry)dirTabs.get("glyf"); HashMap newComposites = null; HashMap allComposites = new HashMap(); int newIndex = glyphs.size(); if (entry != null) { while (newComposites == null || newComposites.size() > 0) { // Inefficient to iterate through all glyphs newComposites = new HashMap(); for (Iterator e = glyphs.keySet().iterator(); e.hasNext(); ) { Integer origIndex = (Integer)e.next(); if (in.readTTFShort(entry.offset + mtx_tab[origIndex.intValue()].offset) < 0) { // origIndex is a composite glyph allComposites.put(origIndex, glyphs.get(origIndex)); ArrayList composites = getIncludedGlyphs(in, (int)entry.offset, origIndex); // Iterate through all composites pointed to // by this composite and check if they exists // in the glyphs map, add them if not. for (Iterator cps = composites.iterator(); cps.hasNext(); ) { Integer cIdx = (Integer)cps.next(); if (glyphs.get(cIdx) == null && newComposites.get(cIdx) == null) { newComposites.put(cIdx, new Integer(newIndex)); newIndex++; } } } } // Add composites to glyphs for (Iterator m = newComposites.keySet().iterator(); m.hasNext(); ) { Integer im = (Integer)m.next(); glyphs.put(im, newComposites.get(im)); } } // Iterate through all composites to remap their composite index for (Iterator ce = allComposites.keySet().iterator(); ce.hasNext(); ) { remapComposite(in, glyphs, (int)entry.offset, (Integer)ce.next()); } } else { throw new IOException("Can't find glyf table"); } }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/2e2226dd0dd6733fdab0c36331723114a46eddd8/TTFSubSetFile.java/clean/src/org/apache/fop/fonts/TTFSubSetFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4135,
25399,
12,
5711,
812,
2514,
316,
16,
18701,
4317,
23404,
13,
1216,
1860,
288,
3639,
399,
17963,
1621,
5661,
1622,
1241,
273,
261,
1470,
42,
1621,
5661,
1622,
13,
1214,
17348,
18,
588,
2932,
75,
715,
74,
8863,
3639,
4317,
394,
799,
1724,
281,
273,
446,
31,
3639,
4317,
777,
799,
1724,
281,
273,
394,
4317,
5621,
3639,
509,
21309,
273,
23404,
18,
1467,
5621,
3639,
309,
261,
4099,
480,
446,
13,
288,
5411,
1323,
261,
2704,
799,
1724,
281,
422,
446,
747,
394,
799,
1724,
281,
18,
1467,
1435,
405,
374,
13,
288,
7734,
368,
657,
25403,
358,
7401,
3059,
777,
23404,
7734,
394,
799,
1724,
281,
273,
394,
2252,
18,
1367,
18,
8658,
5621,
7734,
364,
261,
3198,
425,
273,
23404,
18,
856,
694,
7675,
9838,
5621,
425,
18,
5332,
2134,
5621,
262,
288,
10792,
2144,
1647,
1016,
273,
261,
4522,
13,
73,
18,
4285,
5621,
10792,
309,
261,
267,
18,
896,
1470,
42,
4897,
12,
4099,
18,
3348,
4766,
3639,
397,
12939,
67,
7032,
63,
4949,
1016,
18,
474,
620,
1435,
8009,
3348,
13,
411,
374,
13,
288,
13491,
368,
1647,
1016,
353,
279,
9635,
9440,
13491,
777,
799,
1724,
281,
18,
458,
12,
4949,
1016,
16,
23404,
18,
588,
12,
4949,
1016,
10019,
13491,
2407,
532,
1724,
281,
273,
18701,
7854,
7908,
25399,
12,
267,
16,
261,
474,
13,
4099,
18,
3348,
16,
4766,
2868,
1647,
1016,
1769,
13491,
368,
11436,
3059,
777,
532,
1724,
281,
25874,
358,
13491,
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,
4135,
25399,
12,
5711,
812,
2514,
316,
16,
18701,
4317,
23404,
13,
1216,
1860,
288,
3639,
399,
17963,
1621,
5661,
1622,
1241,
273,
261,
1470,
42,
1621,
5661,
1622,
13,
1214,
17348,
18,
588,
2932,
75,
715,
74,
8863,
3639,
4317,
394,
799,
1724,
281,
273,
446,
31,
3639,
4317,
777,
799,
1724,
281,
273,
394,
4317,
5621,
3639,
509,
21309,
273,
23404,
18,
1467,
5621,
3639,
309,
261,
4099,
480,
446,
13,
288,
5411,
1323,
261,
2704,
799,
1724,
281,
422,
446,
747,
394,
799,
1724,
281,
18,
1467,
1435,
405,
374,
13,
288,
7734,
368,
657,
25403,
358,
7401,
3059,
777,
23404,
7734,
394,
799,
1724,
281,
273,
394,
2252,
18,
1367,
18,
8658,
2
] |
public void clientDidLogon (Client client) { // if we were provided with a machine identifier, write it out BangAuthResponseData bard = (BangAuthResponseData) client.getAuthResponseData(); if (bard != null && bard.ident != null) { IdentUtil.setMachineIdentifier(bard.ident); } // update our title to contain our username Display.setTitle(_msgmgr.getBundle(BangCodes.BANG_MSGS).get( "m.online_title", _ctx.getUserObject().username)); // get a reference to the player service _psvc = (PlayerService)_client.requireService(PlayerService.class); // create the mute director here because the mute list is specific to // the account final String mkey = client.getCredentials().getUsername() + ".muted"; _mutedir = new MuteDirector( _ctx, createHandles(_config.getValue(mkey, new String[0]))); _mutedir.setChatDirector(_chatdir); _mutedir.addMuteObserver(new MuteDirector.MuteObserver() { public void muteChanged (Name player, boolean nowMuted) { _config.setValue(mkey, StringUtil.join(_mutedir.getMuted())); } }); // register our status view key bindings StatusView.bindKeys(_ctx); // listen for notifications to pop up client.getClientObject().addListener(_nlistener); // developers can jump right into a tutorial or game if (!StringUtil.isBlank(System.getProperty("test"))) { startTestGame(false); return; } else if (!StringUtil.isBlank(System.getProperty("tutorial"))) { startTestGame(true); return; } // check for a marker file indicating that we should go straight to the // train station when we first start up which we do to smooth out the // process of first downloading a new town's media String where = null; File mfile = new File(localDataDir("go_station.dat")); if (mfile.exists()) { mfile.delete(); where = "station"; } // next check for a "go" parameter if (where == null) { where = System.getProperty("go"); } // finally go somewhere if we were asked to do so BangBootstrapData bbd = (BangBootstrapData) _ctx.getClient().getBootstrapData(); if ("ranch".equals(where)) { _ctx.getLocationDirector().moveTo(bbd.ranchOid); return; } else if ("bank".equals(where)) { _ctx.getLocationDirector().moveTo(bbd.bankOid); return; } else if ("store".equals(where)) { _ctx.getLocationDirector().moveTo(bbd.storeOid); return; } else if ("saloon".equals(where)) { _ctx.getLocationDirector().moveTo(bbd.saloonOid); return; } else if ("barber".equals(where)) { _ctx.getLocationDirector().moveTo(bbd.barberOid); return; } else if ("station".equals(where)) { _ctx.getLocationDirector().moveTo(bbd.stationOid); return; } else if ("hideout".equals(where)) { _ctx.getLocationDirector().moveTo(bbd.hideoutOid); return; } // show the town view to start, this will call checkShowIntro() once // the town view has "presented" the first town showTownView(); }
|
8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/45485b539feed12796bea5b0c89e07f43a783a31/BangClient.java/clean/src/java/com/threerings/bang/client/BangClient.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1004,
18250,
1343,
265,
261,
1227,
1004,
13,
565,
288,
3639,
368,
309,
732,
4591,
2112,
598,
279,
5228,
2756,
16,
1045,
518,
596,
3639,
605,
539,
1730,
1064,
751,
324,
1060,
273,
261,
38,
539,
1730,
1064,
751,
13,
5411,
1004,
18,
588,
1730,
1064,
751,
5621,
3639,
309,
261,
70,
1060,
480,
446,
597,
324,
1060,
18,
6392,
480,
446,
13,
288,
5411,
13128,
1304,
18,
542,
6981,
3004,
12,
70,
1060,
18,
6392,
1769,
3639,
289,
3639,
368,
1089,
3134,
2077,
358,
912,
3134,
2718,
3639,
9311,
18,
542,
4247,
24899,
3576,
13552,
18,
588,
3405,
12,
38,
539,
6295,
18,
38,
3388,
67,
11210,
55,
2934,
588,
12,
11794,
315,
81,
18,
21026,
67,
2649,
3113,
389,
5900,
18,
588,
1299,
921,
7675,
5053,
10019,
3639,
368,
336,
279,
2114,
358,
326,
7291,
1156,
3639,
389,
1121,
4227,
273,
261,
12148,
1179,
13,
67,
2625,
18,
6528,
1179,
12,
12148,
1179,
18,
1106,
1769,
3639,
368,
752,
326,
312,
624,
2657,
280,
2674,
2724,
326,
312,
624,
666,
353,
2923,
358,
3639,
368,
326,
2236,
3639,
727,
514,
312,
856,
273,
1004,
18,
588,
6163,
7675,
588,
8575,
1435,
397,
3552,
81,
4817,
14432,
3639,
389,
81,
4817,
481,
273,
394,
490,
624,
28280,
12,
5411,
389,
5900,
16,
752,
8788,
24899,
1425,
18,
24805,
12,
81,
856,
16,
394,
514,
63,
20,
22643,
1769,
3639,
389,
81,
4817,
481,
18,
542,
14163,
28280,
24899,
10880,
1214,
1769,
3639,
389,
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,
1004,
18250,
1343,
265,
261,
1227,
1004,
13,
565,
288,
3639,
368,
309,
732,
4591,
2112,
598,
279,
5228,
2756,
16,
1045,
518,
596,
3639,
605,
539,
1730,
1064,
751,
324,
1060,
273,
261,
38,
539,
1730,
1064,
751,
13,
5411,
1004,
18,
588,
1730,
1064,
751,
5621,
3639,
309,
261,
70,
1060,
480,
446,
597,
324,
1060,
18,
6392,
480,
446,
13,
288,
5411,
13128,
1304,
18,
542,
6981,
3004,
12,
70,
1060,
18,
6392,
1769,
3639,
289,
3639,
368,
1089,
3134,
2077,
358,
912,
3134,
2718,
3639,
9311,
18,
542,
4247,
24899,
3576,
13552,
18,
588,
3405,
12,
38,
539,
6295,
18,
38,
3388,
67,
11210,
55,
2934,
588,
12,
11794,
315,
81,
18,
2
] |
||
static java.lang.Object add_item_element(java.lang.Object c, java.lang.Object n, java.lang.Object c) {
|
static void add_item_element(java.lang.Object c, java.lang.Object n, java.lang.Object e) {
|
static java.lang.Object add_item_element(java.lang.Object c, java.lang.Object n, java.lang.Object c) { java.lang.Object cn = null; Map m = getItem(); if (m != null) { cn = m.add(n, c); } else { java.lang.System.out.println("ERROR: Could not add item element. The item element is null."); } return cn; }
|
11597 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11597/3782a05d6060577c74da6f3ba52480037d828396/ItemHandler.java/buggy/trunk/src/cyboi/cyboi/ItemHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
918,
527,
67,
1726,
67,
2956,
12,
6290,
18,
4936,
18,
921,
276,
16,
2252,
18,
4936,
18,
921,
290,
16,
2252,
18,
4936,
18,
921,
425,
13,
288,
3639,
2252,
18,
4936,
18,
921,
6227,
273,
446,
31,
3639,
1635,
312,
273,
8143,
5621,
3639,
309,
261,
81,
480,
446,
13,
288,
5411,
6227,
273,
312,
18,
1289,
12,
82,
16,
276,
1769,
3639,
289,
469,
288,
5411,
2252,
18,
4936,
18,
3163,
18,
659,
18,
8222,
2932,
3589,
30,
14312,
486,
527,
761,
930,
18,
1021,
761,
930,
353,
446,
1199,
1769,
3639,
289,
7734,
327,
6227,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
918,
527,
67,
1726,
67,
2956,
12,
6290,
18,
4936,
18,
921,
276,
16,
2252,
18,
4936,
18,
921,
290,
16,
2252,
18,
4936,
18,
921,
425,
13,
288,
3639,
2252,
18,
4936,
18,
921,
6227,
273,
446,
31,
3639,
1635,
312,
273,
8143,
5621,
3639,
309,
261,
81,
480,
446,
13,
288,
5411,
6227,
273,
312,
18,
1289,
12,
82,
16,
276,
1769,
3639,
289,
469,
288,
5411,
2252,
18,
4936,
18,
3163,
18,
659,
18,
8222,
2932,
3589,
30,
14312,
486,
527,
761,
930,
18,
1021,
761,
930,
353,
446,
1199,
1769,
3639,
289,
7734,
327,
6227,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
message = messageString == null ? "" : messageString; if (messageLabel == null || messageLabel.isDisposed()) {
|
message = messageString == null ? "" : messageString; if (messageLabel == null || messageLabel.isDisposed()) {
|
private void setMessage(String messageString) { //must not set null text in a label message = messageString == null ? "" : messageString; //$NON-NLS-1$ if (messageLabel == null || messageLabel.isDisposed()) { return; } messageLabel.setText(message); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
15227,
12,
780,
883,
780,
13,
288,
3639,
368,
11926,
486,
444,
446,
977,
316,
279,
1433,
3639,
883,
273,
883,
780,
422,
446,
692,
1408,
294,
883,
780,
31,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
309,
261,
2150,
2224,
422,
446,
747,
883,
2224,
18,
291,
1669,
7423,
10756,
288,
1082,
202,
2463,
31,
202,
202,
97,
3639,
883,
2224,
18,
542,
1528,
12,
2150,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
15227,
12,
780,
883,
780,
13,
288,
3639,
368,
11926,
486,
444,
446,
977,
316,
279,
1433,
3639,
883,
273,
883,
780,
422,
446,
692,
1408,
294,
883,
780,
31,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
309,
261,
2150,
2224,
422,
446,
747,
883,
2224,
18,
291,
1669,
7423,
10756,
288,
1082,
202,
2463,
31,
202,
202,
97,
3639,
883,
2224,
18,
542,
1528,
12,
2150,
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
] |
protected synchronized void saveToken(HttpServletRequest request) { HttpSession session = request.getSession(); String token = generateToken(request); if (token != null) { session.setAttribute(Globals.TRANSACTION_TOKEN_KEY, token); }
|
protected void saveToken(HttpServletRequest request) { token.saveToken(request);
|
protected synchronized void saveToken(HttpServletRequest request) { HttpSession session = request.getSession(); String token = generateToken(request); if (token != null) { session.setAttribute(Globals.TRANSACTION_TOKEN_KEY, token); } }
|
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/22f5c2c1ad1982dde458d75730bfcbb75463de39/Action.java/buggy/src/share/org/apache/struts/action/Action.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
918,
1923,
1345,
12,
2940,
18572,
590,
13,
288,
3639,
26166,
1339,
273,
590,
18,
588,
2157,
5621,
3639,
514,
1147,
273,
2103,
1345,
12,
2293,
1769,
3639,
309,
261,
2316,
480,
446,
13,
288,
5411,
1339,
18,
542,
1499,
12,
19834,
18,
22364,
67,
8412,
67,
3297,
16,
1147,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
3852,
918,
1923,
1345,
12,
2940,
18572,
590,
13,
288,
3639,
26166,
1339,
273,
590,
18,
588,
2157,
5621,
3639,
514,
1147,
273,
2103,
1345,
12,
2293,
1769,
3639,
309,
261,
2316,
480,
446,
13,
288,
5411,
1339,
18,
542,
1499,
12,
19834,
18,
22364,
67,
8412,
67,
3297,
16,
1147,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public TA_RetCode KAMA( int startIdx, int endIdx, double inReal[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ final double constMax = 2.0/(30.0+1.0); final double constDiff = 2.0/(2.0+1.0) - constMax; double tempReal, tempReal2; double sumROC1, periodROC, prevKAMA; int i, today, outIdx, lookbackTotal; int trailingIdx; double trailingValue; 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; if( (int)optInTimePeriod == ( Integer.MIN_VALUE ) ) optInTimePeriod = 30; else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) return TA_RetCode. TA_BAD_PARAM; outBegIdx.value = 0 ; outNbElement.value = 0 ; lookbackTotal = optInTimePeriod + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_KAMA.ordinal()]) ; if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } sumROC1 = 0.0; today = startIdx-lookbackTotal; trailingIdx = today; i = optInTimePeriod; while( i-- > 0 ) { tempReal = inReal[today++]; tempReal -= inReal[today]; sumROC1 += Math.abs (tempReal); } prevKAMA = inReal[today-1]; tempReal = inReal[today]; tempReal2 = inReal[trailingIdx++]; periodROC = tempReal-tempReal2; trailingValue = tempReal2; if( (sumROC1 <= periodROC) || (((-0.00000001)<sumROC1)&&(sumROC1<0.00000001)) ) tempReal = 1.0; else tempReal = Math.abs (periodROC/sumROC1); tempReal = (tempReal*constDiff)+constMax; tempReal *= tempReal; prevKAMA = ((inReal[today++]-prevKAMA)*tempReal) + prevKAMA; while( today <= startIdx ) { tempReal = inReal[today]; tempReal2 = inReal[trailingIdx++]; periodROC = tempReal-tempReal2; sumROC1 -= Math.abs (trailingValue-tempReal2); sumROC1 += Math.abs (tempReal-inReal[today-1]); trailingValue = tempReal2; if( (sumROC1 <= periodROC) || (((-0.00000001)<sumROC1)&&(sumROC1<0.00000001)) ) tempReal = 1.0; else tempReal = Math.abs (periodROC/sumROC1); tempReal = (tempReal*constDiff)+constMax; tempReal *= tempReal; prevKAMA = ((inReal[today++]-prevKAMA)*tempReal) + prevKAMA; } outReal[0] = prevKAMA; outIdx = 1; outBegIdx.value = today-1; while( today <= endIdx ) { tempReal = inReal[today]; tempReal2 = inReal[trailingIdx++]; periodROC = tempReal-tempReal2; sumROC1 -= Math.abs (trailingValue-tempReal2); sumROC1 += Math.abs (tempReal-inReal[today-1]); trailingValue = tempReal2; if( (sumROC1 <= periodROC) || (((-0.00000001)<sumROC1)&&(sumROC1<0.00000001)) ) tempReal = 1.0; else tempReal = Math.abs (periodROC / sumROC1); tempReal = (tempReal*constDiff)+constMax; tempReal *= tempReal; prevKAMA = ((inReal[today++]-prevKAMA)*tempReal) + prevKAMA; outReal[outIdx++] = prevKAMA; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;}
|
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
399,
37,
67,
7055,
1085,
1475,
2192,
37,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
509,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1645,
29205,
8526,
262,
95,
6385,
1645,
1866,
2747,
33,
576,
18,
20,
19,
12,
5082,
18,
20,
15,
21,
18,
20,
1769,
6385,
1645,
1866,
5938,
33,
576,
18,
20,
19,
12,
22,
18,
20,
15,
21,
18,
20,
13,
300,
1866,
2747,
31,
1645,
31497,
16,
31497,
22,
31,
1645,
2142,
1457,
39,
21,
16,
3879,
1457,
39,
16,
2807,
47,
2192,
37,
31,
509,
277,
16,
10074,
16,
596,
4223,
16,
2324,
823,
5269,
31,
509,
7341,
4223,
31,
1645,
7341,
620,
31,
309,
12,
27108,
411,
374,
262,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
309,
12,
261,
409,
4223,
411,
374,
13,
747,
261,
409,
4223,
411,
27108,
3719,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
309,
12,
261,
474,
13,
3838,
382,
26540,
422,
12,
2144,
18,
6236,
67,
4051,
8623,
2153,
382,
26540,
273,
5196,
31,
469,
309,
12,
14015,
474,
13,
3838,
382,
26540,
411,
576,
13,
747,
14015,
474,
13,
3838,
382,
26540,
405,
25259,
13,
262,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
16234,
67,
8388,
31,
659,
24059,
4223,
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,
1071,
399,
37,
67,
7055,
1085,
1475,
2192,
37,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
509,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1645,
29205,
8526,
262,
95,
6385,
1645,
1866,
2747,
33,
576,
18,
20,
19,
12,
5082,
18,
20,
15,
21,
18,
20,
1769,
6385,
1645,
1866,
5938,
33,
576,
18,
20,
19,
12,
22,
18,
20,
15,
21,
18,
20,
13,
300,
1866,
2747,
31,
1645,
31497,
16,
31497,
22,
31,
1645,
2142,
1457,
39,
21,
16,
3879,
1457,
39,
16,
2807,
47,
2192,
37,
31,
509,
277,
16,
10074,
16,
596,
4223,
16,
2324,
823,
5269,
31,
509,
2
] |
||
return new LiteralConstraint( field, extractor, evaluator );
|
return new LiteralConstraint( extractor, evaluator, field );
|
private FieldConstraint getLiteralConstraint(final Column column, final String fieldName, final Object fieldValue, final Evaluator evaluator) { final Class clazz = ((ClassObjectType) column.getObjectType()).getClassType(); final FieldExtractor extractor = new ClassFieldExtractor( clazz, fieldName ); final FieldValue field = new MockField( fieldValue ); return new LiteralConstraint( field, extractor, evaluator ); }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/5cc4d6101cd80cc861e20f1898b2f7c0a67a16c2/LeapsRuleBaseTest.java/clean/drools-core/src/test/java/org/drools/leaps/LeapsRuleBaseTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2286,
5806,
336,
6177,
5806,
12,
6385,
4753,
1057,
16,
4766,
1171,
727,
514,
4289,
16,
4766,
1171,
727,
1033,
10729,
16,
4766,
1171,
727,
31956,
18256,
13,
288,
3639,
727,
1659,
4003,
273,
14015,
797,
17610,
13,
1057,
18,
588,
17610,
1435,
2934,
588,
18328,
5621,
3639,
727,
2286,
10958,
14031,
273,
394,
1659,
974,
10958,
12,
4003,
16,
4766,
21394,
4289,
11272,
3639,
727,
2286,
620,
652,
273,
394,
7867,
974,
12,
10729,
11272,
3639,
327,
394,
14392,
5806,
12,
652,
16,
4766,
1377,
14031,
16,
4766,
1377,
18256,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2286,
5806,
336,
6177,
5806,
12,
6385,
4753,
1057,
16,
4766,
1171,
727,
514,
4289,
16,
4766,
1171,
727,
1033,
10729,
16,
4766,
1171,
727,
31956,
18256,
13,
288,
3639,
727,
1659,
4003,
273,
14015,
797,
17610,
13,
1057,
18,
588,
17610,
1435,
2934,
588,
18328,
5621,
3639,
727,
2286,
10958,
14031,
273,
394,
1659,
974,
10958,
12,
4003,
16,
4766,
21394,
4289,
11272,
3639,
727,
2286,
620,
652,
273,
394,
7867,
974,
12,
10729,
11272,
3639,
327,
394,
14392,
5806,
12,
652,
16,
4766,
1377,
14031,
16,
4766,
1377,
18256,
11272,
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
] |
loaded.clear();
|
store = new SoundStore();
|
public void clear() { loaded.clear(); }
|
47738 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47738/42f685e71e65b7655225e37dc24736951612d9a7/SoundStore.java/buggy/src/org/newdawn/slick/openal/SoundStore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2424,
1435,
288,
202,
202,
4230,
18,
8507,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2424,
1435,
288,
202,
202,
4230,
18,
8507,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
{
|
public Expr clone(Object context) { NamespaceContext n = nsctx; if (context instanceof NamespaceContext) { n = (NamespaceContext) context; } FunctionAvailableFunction f = new FunctionAvailableFunction(n); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len; i++) { args2.add(((Expr) args.get(i)).clone(context)); } f.setArguments(args2); return f; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/FunctionAvailableFunction.java/buggy/core/src/classpath/gnu/gnu/xml/transform/FunctionAvailableFunction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8074,
3236,
12,
921,
819,
13,
377,
6005,
1042,
290,
273,
3153,
5900,
31,
565,
309,
261,
2472,
1276,
6005,
1042,
13,
2398,
290,
273,
261,
3402,
1042,
13,
819,
31,
1377,
289,
565,
4284,
5268,
2083,
284,
273,
394,
4284,
5268,
2083,
12,
82,
1769,
565,
509,
562,
273,
833,
18,
1467,
5621,
565,
987,
833,
22,
273,
394,
2407,
12,
1897,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
2398,
833,
22,
18,
1289,
12443,
12,
4742,
13,
833,
18,
588,
12,
77,
13,
2934,
14056,
12,
2472,
10019,
1377,
289,
565,
284,
18,
542,
4628,
12,
1968,
22,
1769,
565,
327,
284,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8074,
3236,
12,
921,
819,
13,
377,
6005,
1042,
290,
273,
3153,
5900,
31,
565,
309,
261,
2472,
1276,
6005,
1042,
13,
2398,
290,
273,
261,
3402,
1042,
13,
819,
31,
1377,
289,
565,
4284,
5268,
2083,
284,
273,
394,
4284,
5268,
2083,
12,
82,
1769,
565,
509,
562,
273,
833,
18,
1467,
5621,
565,
987,
833,
22,
273,
394,
2407,
12,
1897,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
2398,
833,
22,
18,
1289,
12443,
12,
4742,
13,
833,
18,
588,
12,
77,
13,
2934,
14056,
12,
2472,
10019,
1377,
289,
565,
284,
18,
542,
4628,
12,
1968,
22,
1769,
565,
327,
284,
31,
225,
289,
2,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.