rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
AST tmp2040_AST_in = (AST)_t; | AST tmp2044_AST_in = (AST)_t; | public final void formatphrase(AST _t) throws RecognitionException { AST formatphrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1331 = _t; AST tmp2030_AST_in = (AST)_t; match(_t,Format_phrase); _t = _t.getFirstChild(); { int _cnt1345=0; _loop1345: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AS: { AST __t1333 = _t; AST tmp2031_AST_in = (AST)_t; match(_t,AS); _t = _t.getFirstChild(); datatype_var(_t); _t = _retTree; _t = __t1333; _t = _t.getNextSibling(); break; } case AT: { atphrase(_t); _t = _retTree; break; } case ATTRSPACE: { AST tmp2032_AST_in = (AST)_t; match(_t,ATTRSPACE); _t = _t.getNextSibling(); break; } case NOATTRSPACE: { AST tmp2033_AST_in = (AST)_t; match(_t,NOATTRSPACE); _t = _t.getNextSibling(); break; } case AUTORETURN: { AST tmp2034_AST_in = (AST)_t; match(_t,AUTORETURN); _t = _t.getNextSibling(); break; } case BGCOLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { color_expr(_t); _t = _retTree; break; } case CONTEXTHELPID: { AST __t1334 = _t; AST tmp2035_AST_in = (AST)_t; match(_t,CONTEXTHELPID); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1334; _t = _t.getNextSibling(); break; } case BLANK: { AST tmp2036_AST_in = (AST)_t; match(_t,BLANK); _t = _t.getNextSibling(); break; } case COLON: { AST __t1335 = _t; AST tmp2037_AST_in = (AST)_t; match(_t,COLON); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1335; _t = _t.getNextSibling(); break; } case TO: { AST __t1336 = _t; AST tmp2038_AST_in = (AST)_t; match(_t,TO); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1336; _t = _t.getNextSibling(); break; } case DEBLANK: { AST tmp2039_AST_in = (AST)_t; match(_t,DEBLANK); _t = _t.getNextSibling(); break; } case DISABLEAUTOZAP: { AST tmp2040_AST_in = (AST)_t; match(_t,DISABLEAUTOZAP); _t = _t.getNextSibling(); break; } case FONT: { AST __t1337 = _t; AST tmp2041_AST_in = (AST)_t; match(_t,FONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1337; _t = _t.getNextSibling(); break; } case FORMAT: { AST __t1338 = _t; AST tmp2042_AST_in = (AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1338; _t = _t.getNextSibling(); break; } case HELP: { AST __t1339 = _t; AST tmp2043_AST_in = (AST)_t; match(_t,HELP); _t = _t.getFirstChild(); constant(_t); _t = _retTree; _t = __t1339; _t = _t.getNextSibling(); break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case LEXAT: { AST __t1340 = _t; AST tmp2044_AST_in = (AST)_t; match(_t,LEXAT); _t = _t.getFirstChild(); field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Format_phrase: { formatphrase(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1340; _t = _t.getNextSibling(); break; } case LIKE: { AST __t1342 = _t; AST tmp2045_AST_in = (AST)_t; match(_t,LIKE); _t = _t.getFirstChild(); field(_t); _t = _retTree; _t = __t1342; _t = _t.getNextSibling(); break; } case NOLABELS: { AST tmp2046_AST_in = (AST)_t; match(_t,NOLABELS); _t = _t.getNextSibling(); break; } case NOTABSTOP: { AST tmp2047_AST_in = (AST)_t; match(_t,NOTABSTOP); _t = _t.getNextSibling(); break; } case VALIDATE: { AST __t1343 = _t; AST tmp2048_AST_in = (AST)_t; match(_t,VALIDATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1343; _t = _t.getNextSibling(); break; } case WHEN: { AST __t1344 = _t; AST tmp2049_AST_in = (AST)_t; match(_t,WHEN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1344; _t = _t.getNextSibling(); break; } case VIEWAS: { viewasphrase(_t); _t = _retTree; break; } case WIDGETID: { widget_id(_t); _t = _retTree; break; } default: { if ( _cnt1345>=1 ) { break _loop1345; } else {throw new NoViableAltException(_t);} } } _cnt1345++; } while (true); } _t = __t1331; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
740,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
740,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
3437,
6938,
273,
389,
88,
31,
202,
202,
9053,
1853,
3462,
5082,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
1630,
67,
9429,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
474,
389,
13085,
3437,
7950,
33,
20,
31,
202,
202,
67,
6498,
3437,
7950,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
1082,
202,
3593,
5355,
30,
1082,
202,
95,
9506,
202,
9053,
1001,
88,
3437,
3707,
273,
389,
88,
31,
9506,
202,
9053,
1853,
3462,
6938,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
9506,
202,
1916,
24899,
88,
16,
3033,
1769,
9506,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
9506,
202,
21540,
67,
1401,
24899,
88,
1769,
9506,
202,
67,
88,
273,
389,
1349,
2471,
31,
9506,
202,
67,
88,
273,
1001,
88,
3437,
3707,
31,
9506,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
9506,
202,
8820,
31,
1082,
202,
97,
1082,
202,
3593,
14464,
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,
740,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
740,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
3437,
6938,
273,
389,
88,
31,
202,
202,
9053,
1853,
3462,
5082,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
1630,
67,
9429,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
474,
389,
13085,
3437,
7950,
33,
20,
31,
202,
202,
67,
6498,
3437,
7950,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
2
] |
if(data.length > Short.MAX_VALUE) throw new IllegalArgumentException(); _length = (short)data.length; _data = data; | dis.readFully(_data); | public ShortBuffer(byte[] data) { _start = 0; if(data.length > Short.MAX_VALUE) throw new IllegalArgumentException(); _length = (short)data.length; _data = data; } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/463e1c2814ef80eab9cbef79e58a1594fa8ec102/ShortBuffer.java/buggy/src/freenet/support/ShortBuffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7925,
1892,
12,
7229,
8526,
501,
13,
288,
202,
202,
67,
1937,
273,
374,
31,
202,
202,
430,
12,
892,
18,
2469,
405,
7925,
18,
6694,
67,
4051,
13,
1082,
565,
604,
394,
2754,
5621,
202,
202,
67,
2469,
273,
261,
6620,
13,
892,
18,
2469,
31,
202,
202,
67,
892,
273,
501,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7925,
1892,
12,
7229,
8526,
501,
13,
288,
202,
202,
67,
1937,
273,
374,
31,
202,
202,
430,
12,
892,
18,
2469,
405,
7925,
18,
6694,
67,
4051,
13,
1082,
565,
604,
394,
2754,
5621,
202,
202,
67,
2469,
273,
261,
6620,
13,
892,
18,
2469,
31,
202,
202,
67,
892,
273,
501,
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
] |
String objectClassName = element.getAttribute(ATT_OBJECTCLASS); Collection keywordReferences = readKeywordReferences(element); | String objectClassName = element.getAttribute(ATT_OBJECTCLASS); | private void processPageElement(IConfigurationElement element) { String pageId = element.getAttribute(ATT_ID); String pageClassName = element.getAttribute(ATT_CLASS); String objectClassName = element.getAttribute(ATT_OBJECTCLASS); Collection keywordReferences = readKeywordReferences(element); if (pageId == null) { logMissingAttribute(element, ATT_ID); return; } if (objectClassName == null) { logMissingAttribute(element, ATT_OBJECTCLASS); return; } if (pageClassName == null) { logMissingAttribute(element, ATT_CLASS); return; } RegistryPageContributor contributor = new RegistryPageContributor( pageId, element, keywordReferences); registerContributor(contributor, objectClassName); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ae3e100ae6878a705a77e44dd4224a8c8afb3d99/PropertyPagesRegistryReader.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PropertyPagesRegistryReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
1964,
1046,
12,
45,
1750,
1046,
930,
13,
288,
377,
202,
780,
18720,
273,
930,
18,
588,
1499,
12,
789,
56,
67,
734,
1769,
3639,
514,
1363,
3834,
273,
930,
18,
588,
1499,
12,
789,
56,
67,
5237,
1769,
3639,
514,
733,
3834,
273,
930,
18,
588,
1499,
12,
789,
56,
67,
9422,
5237,
1769,
3639,
2200,
4932,
8221,
273,
855,
8736,
8221,
12,
2956,
1769,
540,
309,
261,
2433,
548,
422,
446,
13,
288,
5411,
613,
4841,
1499,
12,
2956,
16,
7907,
67,
734,
1769,
5411,
327,
31,
3639,
289,
3639,
309,
261,
1612,
3834,
422,
446,
13,
288,
5411,
613,
4841,
1499,
12,
2956,
16,
7907,
67,
9422,
5237,
1769,
5411,
327,
31,
3639,
289,
3639,
309,
261,
2433,
3834,
422,
446,
13,
288,
5411,
613,
4841,
1499,
12,
2956,
16,
7907,
67,
5237,
1769,
5411,
327,
31,
3639,
289,
3639,
5438,
1964,
442,
19293,
31123,
273,
394,
5438,
1964,
442,
19293,
12,
7734,
18720,
16,
930,
16,
4932,
8221,
1769,
3639,
1744,
442,
19293,
12,
591,
19293,
16,
733,
3834,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
1964,
1046,
12,
45,
1750,
1046,
930,
13,
288,
377,
202,
780,
18720,
273,
930,
18,
588,
1499,
12,
789,
56,
67,
734,
1769,
3639,
514,
1363,
3834,
273,
930,
18,
588,
1499,
12,
789,
56,
67,
5237,
1769,
3639,
514,
733,
3834,
273,
930,
18,
588,
1499,
12,
789,
56,
67,
9422,
5237,
1769,
3639,
2200,
4932,
8221,
273,
855,
8736,
8221,
12,
2956,
1769,
540,
309,
261,
2433,
548,
422,
446,
13,
288,
5411,
613,
4841,
1499,
12,
2956,
16,
7907,
67,
734,
1769,
5411,
327,
31,
3639,
289,
3639,
309,
261,
1612,
3834,
422,
446,
13,
288,
5411,
613,
4841,
1499,
12,
2956,
16,
7907,
67,
9422,
5237,
1769,
5411,
327,
31,
2
] |
args.add(AjcTests.aspectjrtClasspath()); | args.add("out/lib.jar" + File.pathSeparator + AjcTests.aspectjrtClasspath()); | public void testJar1() throws IOException { List args = new ArrayList(); args.add("-outjar"); args.add("out/lib.jar"); args.add("-classpath"); args.add(AjcTests.aspectjrtClasspath()); args.add("-d"); args.add("out"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/lib/ConcreteA.aj"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/lib/AbstractA.aj"); CommandTestCase.runCompiler(args, CommandTestCase.NO_ERRORS); args = new ArrayList(); args.add("-aspectpath"); args.add("out/lib.jar"); args.add("-classpath"); args.add(AjcTests.aspectjrtClasspath()); args.add("-d"); args.add("out"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/Client.java"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/Client1.java"); CommandTestCase.runCompiler(args, CommandTestCase.NO_ERRORS); TestUtil.runMain("out" + File.pathSeparator + "out/lib.jar", "client.Client"); TestUtil.runMain("out" + File.pathSeparator + "out/lib.jar", "client.Client1"); args = new ArrayList(); args.add("-aspectpath"); args.add("out/lib.jar"); args.add("-classpath"); args.add(AjcTests.aspectjrtClasspath()); args.add("-d"); args.add("out"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/MyAspect.aj"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/Client1.java"); CommandTestCase.runCompiler(args, CommandTestCase.NO_ERRORS); TestUtil.runMain("out" + File.pathSeparator + "out/lib.jar", "client.Client1"); args = new ArrayList(); args.add("-aspectpath"); args.add("out/lib.jar"); args.add("-classpath"); args.add(AjcTests.aspectjrtClasspath()); args.add("-d"); args.add("out"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/MyAspect1.aj"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/Client1.java"); CommandTestCase.runCompiler(args, new int[] {24, 30}); args = new ArrayList(); args.add("-classpath"); args.add(AjcTests.aspectjrtClasspath()); args.add("-d"); args.add("out"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/Client1.java"); CommandTestCase.runCompiler(args, new int[] {15, 17, 22}); args = new ArrayList(); args.add("-classpath"); args.add(AjcTests.aspectjrtClasspath() + File.pathSeparator + "out/lib.jar"); args.add("-Xlint:error"); args.add("-d"); args.add("out"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/MyAspect.aj"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/client/Client1.java"); CommandTestCase.runCompiler(args, CommandTestCase.NO_ERRORS); } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/e67d945b31736c115abd8751d1c2bda2844d3d45/BinaryFormsTestCase.java/clean/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BinaryFormsTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
10813,
21,
1435,
1216,
1860,
288,
202,
202,
682,
833,
273,
394,
2407,
5621,
202,
202,
1968,
18,
1289,
2932,
17,
659,
11930,
8863,
202,
202,
1968,
18,
1289,
2932,
659,
19,
2941,
18,
11930,
8863,
202,
202,
1968,
18,
1289,
2932,
17,
26302,
8863,
3639,
833,
18,
1289,
12,
37,
78,
71,
14650,
18,
23579,
78,
3797,
17461,
10663,
9506,
202,
1968,
18,
1289,
2932,
17,
72,
8863,
202,
202,
1968,
18,
1289,
2932,
659,
8863,
9506,
202,
1968,
18,
1289,
12,
37,
78,
7510,
37,
78,
71,
14650,
18,
16961,
4883,
67,
4211,
397,
2206,
4816,
21,
19,
8578,
19,
2941,
19,
25845,
37,
18,
4365,
8863,
202,
202,
1968,
18,
1289,
12,
37,
78,
7510,
37,
78,
71,
14650,
18,
16961,
4883,
67,
4211,
397,
2206,
4816,
21,
19,
8578,
19,
2941,
19,
7469,
37,
18,
4365,
8863,
9506,
202,
2189,
4709,
2449,
18,
2681,
9213,
12,
1968,
16,
3498,
4709,
2449,
18,
3417,
67,
29127,
1769,
9506,
202,
1968,
273,
394,
2407,
5621,
202,
202,
1968,
18,
1289,
2932,
17,
23579,
803,
8863,
202,
202,
1968,
18,
1289,
2932,
659,
19,
2941,
18,
11930,
8863,
202,
202,
1968,
18,
1289,
2932,
17,
26302,
8863,
3639,
833,
18,
1289,
12,
37,
78,
71,
14650,
18,
23579,
78,
3797,
17461,
10663,
9506,
202,
1968,
18,
1289,
2932,
17,
72,
8863,
202,
202,
1968,
18,
1289,
2932,
659,
8863,
9506,
202,
1968,
18,
1289,
12,
37,
78,
7510,
37,
78,
71,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
10813,
21,
1435,
1216,
1860,
288,
202,
202,
682,
833,
273,
394,
2407,
5621,
202,
202,
1968,
18,
1289,
2932,
17,
659,
11930,
8863,
202,
202,
1968,
18,
1289,
2932,
659,
19,
2941,
18,
11930,
8863,
202,
202,
1968,
18,
1289,
2932,
17,
26302,
8863,
3639,
833,
18,
1289,
12,
37,
78,
71,
14650,
18,
23579,
78,
3797,
17461,
10663,
9506,
202,
1968,
18,
1289,
2932,
17,
72,
8863,
202,
202,
1968,
18,
1289,
2932,
659,
8863,
9506,
202,
1968,
18,
1289,
12,
37,
78,
7510,
37,
78,
71,
14650,
18,
16961,
4883,
67,
4211,
397,
2206,
4816,
21,
19,
8578,
19,
2941,
19,
25845,
37,
18,
4365,
8863,
202,
202,
1968,
18,
1289,
2
] |
return null; } | step.setEntry(entry); step.setStepId(stepId); step.setOwner(owner); step.setStartDate(startDate); step.setDueDate(dueDate); step.setStatus(status); | public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateException e) { log.error("An exception occured", e); return null; } step.setEntry(entry); step.setStepId(stepId); step.setOwner(owner); step.setStartDate(startDate); step.setDueDate(dueDate); step.setStatus(status); List stepIdList = new ArrayList(previousIds.length); for (int i = 0; i < previousIds.length; i++) { long previousId = previousIds[i]; stepIdList.add(new Long(previousId)); } if (!stepIdList.isEmpty()) { String stepIds = TextUtils.join(", ", stepIdList); try { step.setPreviousSteps(session.find("FROM step in CLASS " + HibernateCurrentStep.class.getName() + " WHERE step.id IN (" + stepIds + ")")); } catch (HibernateException e) { log.error("An exception occured", e); } } else { step.setPreviousSteps(Collections.EMPTY_LIST); } if (entry.getCurrentSteps() == null) { ArrayList cSteps = new ArrayList(1); cSteps.add(step); entry.setCurrentSteps(cSteps); } else { entry.getCurrentSteps().add(step); } try { session.save(entry); //session.save(step); return step; } catch (HibernateException e) { log.error("An exception occured", e); return null; } } | 7621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7621/69450847d871bb983c04de3b75d29649ed1b8963/HibernateWorkflowStore.java/buggy/src/java/com/opensymphony/workflow/spi/hibernate/HibernateWorkflowStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8693,
752,
3935,
4160,
12,
5748,
1241,
548,
16,
509,
2235,
548,
16,
514,
3410,
16,
2167,
12572,
16,
2167,
6541,
1626,
16,
514,
1267,
16,
1525,
8526,
2416,
2673,
13,
288,
3639,
670,
24360,
3935,
4160,
2235,
273,
394,
670,
24360,
3935,
4160,
5621,
3639,
670,
24360,
8484,
1622,
1241,
31,
3639,
775,
288,
5411,
1241,
273,
261,
44,
24360,
8484,
1622,
13,
1339,
18,
4720,
2932,
11249,
1241,
316,
7383,
315,
397,
670,
24360,
8484,
1622,
18,
1106,
18,
17994,
1435,
397,
315,
4852,
1241,
18,
350,
273,
692,
3113,
394,
3407,
12,
4099,
548,
3631,
670,
24360,
18,
14639,
2934,
588,
12,
20,
1769,
3639,
289,
1044,
261,
44,
24360,
503,
425,
13,
288,
5411,
613,
18,
1636,
2932,
979,
1520,
16206,
3113,
425,
1769,
5411,
327,
446,
31,
3639,
289,
3639,
2235,
18,
542,
1622,
12,
4099,
1769,
3639,
2235,
18,
542,
4160,
548,
12,
4119,
548,
1769,
3639,
2235,
18,
542,
5541,
12,
8443,
1769,
3639,
2235,
18,
542,
22635,
12,
1937,
1626,
1769,
3639,
2235,
18,
542,
30023,
1626,
12,
24334,
1626,
1769,
3639,
2235,
18,
542,
1482,
12,
2327,
1769,
3639,
987,
2235,
22117,
273,
394,
2407,
12,
11515,
2673,
18,
2469,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2416,
2673,
18,
2469,
31,
277,
27245,
288,
5411,
1525,
2416,
548,
273,
2416,
2673,
63,
77,
15533,
5411,
2235,
22117,
18,
1289,
12,
2704,
3407,
12,
11515,
548,
10019,
3639,
289,
3639,
309,
16051,
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,
8693,
752,
3935,
4160,
12,
5748,
1241,
548,
16,
509,
2235,
548,
16,
514,
3410,
16,
2167,
12572,
16,
2167,
6541,
1626,
16,
514,
1267,
16,
1525,
8526,
2416,
2673,
13,
288,
3639,
670,
24360,
3935,
4160,
2235,
273,
394,
670,
24360,
3935,
4160,
5621,
3639,
670,
24360,
8484,
1622,
1241,
31,
3639,
775,
288,
5411,
1241,
273,
261,
44,
24360,
8484,
1622,
13,
1339,
18,
4720,
2932,
11249,
1241,
316,
7383,
315,
397,
670,
24360,
8484,
1622,
18,
1106,
18,
17994,
1435,
397,
315,
4852,
1241,
18,
350,
273,
692,
3113,
394,
3407,
12,
4099,
548,
3631,
670,
24360,
18,
14639,
2934,
588,
12,
20,
1769,
3639,
289,
1044,
261,
44,
24360,
503,
425,
13,
288,
2
] |
parsedValue = new StringBuffer(); | public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (localName.equals(ELEMENT_STATUS)) { state = state | IN_STATUS; } else if (localName.equals(ELEMENT_LI) && ((state & IN_LI) == IN_LI)) { state = state | IN_LI_LI; parseResource(attributes); } else if (localName.equals(ELEMENT_LI) && ((state & IN_LI) != IN_LI)) { state = state | IN_LI; } else if (localName.equals(ELEMENT_PLATFORM)) { state = state | IN_PLATFORM; } else if (localName.equals(ELEMENT_OP_SYS)) { state = state | IN_OP_SYS; } else if (localName.equals(ELEMENT_PRIORITY)) { state = state | IN_PRIORITY; } else if (localName.equals(ELEMENT_SEVERITY)) { state = state | IN_SEVERITY; } else if (localName.equals(ELEMENT_PRODUCTS)) { state = state | IN_PRODUCTS; } else if (localName.equals(ELEMENT_OP_SYS)) { state = state | IN_OP_SYS; } else if (localName.equals(ELEMENT_NAME)) { state = state | IN_NAME; } else if (localName.equals(ELEMENT_COMPONENTS)) { state = state | IN_COMPONENTS; } else if (localName.equals(ELEMENT_COMPONENT)) { state = state | IN_COMPONENT; parseResource(attributes); } else if (localName.equals(ELEMENT_VERSIONS)) { state = state | IN_VERSIONS; } else if (localName.equals(ELEMENT_VERSION)) { state = state | IN_VERSION; parseResource(attributes); } else if (localName.equals(ELEMENT_INSTALL_VERSION)) { state = state | IN_INSTALL_VERSION; } else if (localName.equals(ELEMENT_TARGET_MILESTONES)) { state = state | IN_TARGET_MILESTONES; } else if (localName.equals(ELEMENT_TARGET_MILESTONE)) { state = state | IN_TARGET_MILESTONE; parseResource(attributes); } else if (localName.equals(ELEMENT_STATUS_OPEN)) { state = state | IN_STATUS_OPEN; } else if (localName.equals(ELEMENT_RESOLUTION)) { state = state | IN_RESOLUTION; } else if (localName.equals(ELEMENT_KEYWORD)) { state = state | IN_KEYWORD; } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/ff09fe5c1d93edaa625c7d6ed53dcc2c030f2ad0/SaxConfigurationContentHandler.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxConfigurationContentHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10817,
620,
273,
394,
6674,
5621,
918,
10817,
620,
273,
394,
6674,
5621,
13591,
12,
780,
10817,
620,
273,
394,
6674,
5621,
2003,
16,
10817,
620,
273,
394,
6674,
5621,
514,
10817,
620,
273,
394,
6674,
5621,
11927,
16,
10817,
620,
273,
394,
6674,
5621,
514,
10817,
620,
273,
394,
6674,
5621,
22914,
16,
10817,
620,
273,
394,
6674,
5621,
9055,
10817,
620,
273,
394,
6674,
5621,
1677,
13,
10817,
620,
273,
394,
6674,
5621,
1216,
10817,
620,
273,
394,
6674,
5621,
14366,
10817,
620,
273,
394,
6674,
5621,
288,
202,
202,
430,
10817,
620,
273,
394,
6674,
5621,
261,
3729,
461,
18,
14963,
12,
10976,
67,
8608,
3719,
10817,
620,
273,
394,
6674,
5621,
288,
1082,
202,
2019,
10817,
620,
273,
394,
6674,
5621,
273,
10817,
620,
273,
394,
6674,
5621,
919,
10817,
620,
273,
394,
6674,
5621,
571,
10817,
620,
273,
394,
6674,
5621,
2120,
67,
8608,
31,
202,
202,
97,
10817,
620,
273,
394,
6674,
5621,
469,
10817,
620,
273,
394,
6674,
5621,
309,
10817,
620,
273,
394,
6674,
5621,
261,
3729,
461,
18,
14963,
12,
10976,
67,
2053,
13,
10817,
620,
273,
394,
6674,
5621,
597,
10817,
620,
273,
394,
6674,
5621,
14015,
2019,
10817,
620,
273,
394,
6674,
5621,
473,
10817,
620,
273,
394,
6674,
5621,
2120,
67,
2053,
13,
10817,
620,
273,
394,
6674,
5621,
422,
10817,
620,
273,
394,
6674,
5621,
2120,
67,
2053,
3719,
10817,
620,
273,
394,
6674,
5621,
288,
1082,
202,
2019,
10817,
620,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10817,
620,
273,
394,
6674,
5621,
918,
10817,
620,
273,
394,
6674,
5621,
13591,
12,
780,
10817,
620,
273,
394,
6674,
5621,
2003,
16,
10817,
620,
273,
394,
6674,
5621,
514,
10817,
620,
273,
394,
6674,
5621,
11927,
16,
10817,
620,
273,
394,
6674,
5621,
514,
10817,
620,
273,
394,
6674,
5621,
22914,
16,
10817,
620,
273,
394,
6674,
5621,
9055,
10817,
620,
273,
394,
6674,
5621,
1677,
13,
10817,
620,
273,
394,
6674,
5621,
1216,
10817,
620,
273,
394,
6674,
5621,
14366,
10817,
620,
273,
394,
6674,
5621,
288,
202,
202,
430,
10817,
620,
273,
394,
6674,
5621,
261,
3729,
461,
18,
14963,
12,
10976,
67,
8608,
3719,
10817,
620,
273,
394,
6674,
5621,
288,
2
] |
|
f = new USKFetcher(usk, this, backgroundFetchContext, new USKFetcherWrapper(usk, chkRequestScheduler, sskRequestScheduler), 10, true); | f = new USKFetcher(usk, this, backgroundFetchContext, new USKFetcherWrapper(usk, RequestStarter.UPDATE_PRIORITY_CLASS, chkRequestScheduler, sskRequestScheduler), 10, true); | public void startTemporaryBackgroundFetcher(USK usk) { USK clear = usk.clearCopy(); USKFetcher sched = null; synchronized(this) { USKFetcher f = (USKFetcher) backgroundFetchersByClearUSK.get(clear); if(f == null) { f = new USKFetcher(usk, this, backgroundFetchContext, new USKFetcherWrapper(usk, chkRequestScheduler, sskRequestScheduler), 10, true); sched = f; backgroundFetchersByClearUSK.put(clear, f); } temporaryBackgroundFetchersLRU.push(clear); while(temporaryBackgroundFetchersLRU.size() > MAX_BACKGROUND_FETCHERS) { USK del = (USK) temporaryBackgroundFetchersLRU.pop(); USKFetcher fetcher = (USKFetcher) backgroundFetchersByClearUSK.get(del.clearCopy()); if(!fetcher.hasSubscribers()) fetcher.cancel(); } } if(sched != null) sched.schedule(); } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/12ed16eae26eb2bb0d54859f50f5c030d5c8354f/USKManager.java/buggy/src/freenet/client/async/USKManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
11685,
8199,
16855,
12,
3378,
47,
584,
79,
13,
288,
202,
202,
3378,
47,
2424,
273,
584,
79,
18,
8507,
2951,
5621,
202,
202,
3378,
47,
16855,
23964,
273,
446,
31,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
3378,
47,
16855,
284,
273,
261,
3378,
47,
16855,
13,
5412,
5005,
414,
858,
9094,
3378,
47,
18,
588,
12,
8507,
1769,
1082,
202,
430,
12,
74,
422,
446,
13,
288,
9506,
202,
74,
273,
394,
587,
11129,
16855,
12,
407,
79,
16,
333,
16,
5412,
5005,
1042,
16,
394,
587,
11129,
16855,
3611,
12,
407,
79,
16,
15000,
691,
11870,
16,
5202,
79,
691,
11870,
3631,
1728,
16,
638,
1769,
9506,
202,
87,
2049,
273,
284,
31,
9506,
202,
9342,
5005,
414,
858,
9094,
3378,
47,
18,
458,
12,
8507,
16,
284,
1769,
1082,
202,
97,
1082,
202,
31143,
8199,
5005,
414,
16018,
57,
18,
6206,
12,
8507,
1769,
1082,
202,
17523,
12,
31143,
8199,
5005,
414,
16018,
57,
18,
1467,
1435,
405,
4552,
67,
8720,
20166,
67,
20231,
11367,
13,
288,
9506,
202,
3378,
47,
1464,
273,
261,
3378,
47,
13,
6269,
8199,
5005,
414,
16018,
57,
18,
5120,
5621,
9506,
202,
3378,
47,
16855,
20521,
273,
261,
3378,
47,
16855,
13,
5412,
5005,
414,
858,
9094,
3378,
47,
18,
588,
12,
3771,
18,
8507,
2951,
10663,
9506,
202,
430,
12,
5,
5754,
264,
18,
5332,
26141,
10756,
6862,
202,
5754,
264,
18,
10996,
5621,
1082,
202,
97,
202,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
11685,
8199,
16855,
12,
3378,
47,
584,
79,
13,
288,
202,
202,
3378,
47,
2424,
273,
584,
79,
18,
8507,
2951,
5621,
202,
202,
3378,
47,
16855,
23964,
273,
446,
31,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
3378,
47,
16855,
284,
273,
261,
3378,
47,
16855,
13,
5412,
5005,
414,
858,
9094,
3378,
47,
18,
588,
12,
8507,
1769,
1082,
202,
430,
12,
74,
422,
446,
13,
288,
9506,
202,
74,
273,
394,
587,
11129,
16855,
12,
407,
79,
16,
333,
16,
5412,
5005,
1042,
16,
394,
587,
11129,
16855,
3611,
12,
407,
79,
16,
15000,
691,
11870,
16,
5202,
79,
691,
11870,
3631,
1728,
16,
638,
1769,
9506,
202,
87,
2
] |
I2PTunnelRunner runner = new I2PTunnelRunner(s, i2ps, sockLock, data, mySockets); | Runnable onTimeout = new OnTimeout(s, s.getOutputStream(), targetRequest, usingWWWProxy, currentProxy, requestId); I2PTunnelRunner runner = new I2PTunnelRunner(s, i2ps, sockLock, data, mySockets, onTimeout); | protected void clientConnectionRun(Socket s) { OutputStream out = null; String targetRequest = null; boolean usingWWWProxy = false; String currentProxy = null; long requestId = ++__requestId; try { out = s.getOutputStream(); BufferedReader br = new BufferedReader(new InputStreamReader(s.getInputStream(), "ISO-8859-1")); String line, method = null, protocol = null, host = null, destination = null; StringBuffer newRequest = new StringBuffer(); while ((line = br.readLine()) != null) { if (_log.shouldLog(Log.DEBUG)) _log.debug(getPrefix(requestId) + "Line=[" + line + "]"); if (line.startsWith("Connection: ") || line.startsWith("Keep-Alive: ") || line.startsWith("Proxy-Connection: ")) continue; if (method == null) { // first line (GET /base64/realaddr) if (_log.shouldLog(Log.DEBUG)) _log.debug(getPrefix(requestId) + "Method is null for [" + line + "]"); int pos = line.indexOf(" "); if (pos == -1) break; method = line.substring(0, pos); String request = line.substring(pos + 1); if (request.startsWith("/") && getTunnel().getClientOptions().getProperty("i2ptunnel.noproxy") != null) { request = "http://i2p" + request; } pos = request.indexOf("//"); if (pos == -1) { method = null; break; } protocol = request.substring(0, pos + 2); request = request.substring(pos + 2); targetRequest = request; pos = request.indexOf("/"); if (pos == -1) { method = null; break; } host = request.substring(0, pos); // Quick hack for foo.bar.i2p if (host.toLowerCase().endsWith(".i2p")) { destination = host; host = getHostName(destination); if ( (host != null) && ("i2p".equals(host)) ) { int pos2; if ((pos2 = request.indexOf("?")) != -1) { // Try to find an address helper in the fragments // and split the request into it's component parts for rebuilding later String fragments = request.substring(pos2 + 1); String uriPath = request.substring(0, pos2); pos2 = fragments.indexOf(" "); String protocolVersion = fragments.substring(pos2 + 1); String urlEncoding = ""; fragments = fragments.substring(0, pos2); fragments = fragments + "&"; String fragment; while(fragments.length() > 0) { pos2 = fragments.indexOf("&"); fragment = fragments.substring(0, pos2); fragments = fragments.substring(pos2 + 1); if (fragment.startsWith("i2paddresshelper")) { pos2 = fragment.indexOf("="); if (pos2 >= 0) { addressHelpers.put(destination,fragment.substring(pos2 + 1)); } } else { // append each fragment unless it's the address helper if ("".equals(urlEncoding)) { urlEncoding = "?" + fragment; } else { urlEncoding = urlEncoding + "&" + fragment; } } } // reconstruct the request minus the i2paddresshelper GET var request = uriPath + urlEncoding + " " + protocolVersion; } String addressHelper = (String) addressHelpers.get(destination); if (addressHelper != null) { destination = addressHelper; host = getHostName(destination); } } line = method + " " + request.substring(pos); } else if (host.indexOf(".") != -1) { // The request must be forwarded to a WWW proxy if (_log.shouldLog(Log.DEBUG)) _log.debug("Before selecting outproxy for " + host); currentProxy = selectProxy(); if (_log.shouldLog(Log.DEBUG)) _log.debug("After selecting outproxy for " + host + ": " + currentProxy); if (currentProxy == null) { if (_log.shouldLog(Log.WARN)) _log.warn(getPrefix(requestId) + "Host wants to be outproxied, but we dont have any!"); l.log("No HTTP outproxy found for the request."); if (out != null) { out.write(ERR_NO_OUTPROXY); out.write("<p /><i>Generated on: ".getBytes()); out.write(new Date().toString().getBytes()); out.write("</i></body></html>\n".getBytes()); out.flush(); } s.close(); return; } destination = currentProxy; usingWWWProxy = true; if (_log.shouldLog(Log.DEBUG)) _log.debug(getPrefix(requestId) + "Host doesnt end with .i2p and it contains a period [" + host + "]: wwwProxy!"); } else { request = request.substring(pos + 1); pos = request.indexOf("/"); destination = request.substring(0, pos); line = method + " " + request.substring(pos); } boolean isValid = usingWWWProxy || isSupportedAddress(host, protocol); if (!isValid) { if (_log.shouldLog(Log.INFO)) _log.info(getPrefix(requestId) + "notValid(" + host + ")"); method = null; destination = null; break; } else if (!usingWWWProxy) { if (_log.shouldLog(Log.INFO)) _log.info(getPrefix(requestId) + "host=getHostName(" + destination + ")"); host = getHostName(destination); // hide original host } if (_log.shouldLog(Log.DEBUG)) { _log.debug(getPrefix(requestId) + "METHOD:" + method + ":"); _log.debug(getPrefix(requestId) + "PROTOC:" + protocol + ":"); _log.debug(getPrefix(requestId) + "HOST :" + host + ":"); _log.debug(getPrefix(requestId) + "DEST :" + destination + ":"); } } else { if (line.startsWith("Host: ") && !usingWWWProxy) { line = "Host: " + host; if (_log.shouldLog(Log.INFO)) _log.info(getPrefix(requestId) + "Setting host = " + host); } else if (line.startsWith("User-Agent: ")) { // always stripped, added back at the end line = null; continue; } else if (line.startsWith("Accept")) { // strip the accept-blah headers, as they vary dramatically from // browser to browser line = null; continue; } else if (line.startsWith("Referer: ")) { // Shouldn't we be more specific, like accepting in-site referers ? //line = "Referer: i2p"; line = null; continue; // completely strip the line } else if (line.startsWith("Via: ")) { //line = "Via: i2p"; line = null; continue; // completely strip the line } else if (line.startsWith("From: ")) { //line = "From: i2p"; line = null; continue; // completely strip the line } } if (line.length() == 0) { newRequest.append("User-Agent: MYOB/6.66 (AN/ON)\r\n"); newRequest.append("Connection: close\r\n\r\n"); break; } else { newRequest.append(line).append("\r\n"); // HTTP spec } } if (_log.shouldLog(Log.DEBUG)) _log.debug(getPrefix(requestId) + "NewRequest header: [" + newRequest.toString() + "]"); while (br.ready()) { // empty the buffer (POST requests) int i = br.read(); if (i != -1) { newRequest.append((char) i); } } if (method == null || destination == null) { l.log("No HTTP method found in the request."); if (out != null) { out.write(ERR_REQUEST_DENIED); out.write("<p /><i>Generated on: ".getBytes()); out.write(new Date().toString().getBytes()); out.write("</i></body></html>\n".getBytes()); out.flush(); } s.close(); return; } if (_log.shouldLog(Log.DEBUG)) _log.debug(getPrefix(requestId) + "Destination: " + destination); Destination dest = I2PTunnel.destFromName(destination); if (dest == null) { l.log("Could not resolve " + destination + "."); if (_log.shouldLog(Log.WARN)) _log.warn("Unable to resolve " + destination + " (proxy? " + usingWWWProxy + ", request: " + targetRequest); writeErrorMessage(ERR_DESTINATION_UNKNOWN, out, targetRequest, usingWWWProxy, destination); s.close(); return; } String remoteID; Properties opts = new Properties(); opts.setProperty("i2p.streaming.inactivityTimeout", ""+120*1000); // 1 == disconnect. see ConnectionOptions in the new streaming lib, which i // dont want to hard link to here opts.setProperty("i2p.streaming.inactivityTimeoutAction", ""+1); I2PSocket i2ps = createI2PSocket(dest, getDefaultOptions(opts)); byte[] data = newRequest.toString().getBytes("ISO-8859-1"); I2PTunnelRunner runner = new I2PTunnelRunner(s, i2ps, sockLock, data, mySockets); } catch (SocketException ex) { _log.info(getPrefix(requestId) + "Error trying to connect", ex); l.log(ex.getMessage()); handleHTTPClientException(ex, out, targetRequest, usingWWWProxy, currentProxy, requestId); closeSocket(s); } catch (IOException ex) { _log.info(getPrefix(requestId) + "Error trying to connect", ex); l.log(ex.getMessage()); handleHTTPClientException(ex, out, targetRequest, usingWWWProxy, currentProxy, requestId); closeSocket(s); } catch (I2PException ex) { _log.info("getPrefix(requestId) + Error trying to connect", ex); l.log(ex.getMessage()); handleHTTPClientException(ex, out, targetRequest, usingWWWProxy, currentProxy, requestId); closeSocket(s); } } | 3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/77ce6c33e348ee19eed5c0d5487efc327ad62b27/I2PTunnelHTTPClient.java/clean/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1004,
1952,
1997,
12,
4534,
272,
13,
288,
3639,
8962,
596,
273,
446,
31,
3639,
514,
1018,
691,
273,
446,
31,
3639,
1250,
1450,
19989,
59,
3886,
273,
629,
31,
3639,
514,
783,
3886,
273,
446,
31,
3639,
1525,
14459,
273,
965,
972,
2293,
548,
31,
3639,
775,
288,
5411,
596,
273,
272,
18,
588,
4632,
5621,
5411,
10633,
5186,
273,
394,
10633,
12,
2704,
15322,
12,
87,
18,
588,
4348,
9334,
315,
12609,
17,
17258,
17,
21,
7923,
1769,
5411,
514,
980,
16,
707,
273,
446,
16,
1771,
273,
446,
16,
1479,
273,
446,
16,
2929,
273,
446,
31,
5411,
6674,
7428,
273,
394,
6674,
5621,
5411,
1323,
14015,
1369,
273,
5186,
18,
896,
1670,
10756,
480,
446,
13,
288,
7734,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
10792,
389,
1330,
18,
4148,
12,
588,
2244,
12,
2293,
548,
13,
397,
315,
1670,
33,
9614,
397,
980,
397,
9870,
1769,
27573,
309,
261,
1369,
18,
17514,
1190,
2932,
1952,
30,
9369,
747,
5397,
980,
18,
17514,
1190,
2932,
11523,
17,
10608,
30,
9369,
747,
5397,
980,
18,
17514,
1190,
2932,
3886,
17,
1952,
30,
315,
3719,
10792,
1324,
31,
27573,
309,
261,
2039,
422,
446,
13,
288,
368,
1122,
980,
261,
3264,
342,
1969,
1105,
19,
7688,
4793,
13,
10792,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
13491,
389,
1330,
18,
4148,
12,
588,
2244,
12,
2293,
548,
13,
397,
315,
1305,
353,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1004,
1952,
1997,
12,
4534,
272,
13,
288,
3639,
8962,
596,
273,
446,
31,
3639,
514,
1018,
691,
273,
446,
31,
3639,
1250,
1450,
19989,
59,
3886,
273,
629,
31,
3639,
514,
783,
3886,
273,
446,
31,
3639,
1525,
14459,
273,
965,
972,
2293,
548,
31,
3639,
775,
288,
5411,
596,
273,
272,
18,
588,
4632,
5621,
5411,
10633,
5186,
273,
394,
10633,
12,
2704,
15322,
12,
87,
18,
588,
4348,
9334,
315,
12609,
17,
17258,
17,
21,
7923,
1769,
5411,
514,
980,
16,
707,
273,
446,
16,
1771,
273,
446,
16,
1479,
273,
446,
16,
2929,
273,
446,
31,
5411,
6674,
7428,
273,
394,
6674,
5621,
5411,
1323,
14015,
1369,
273,
5186,
18,
896,
1670,
2
] |
{ registry = ctx; EventBus bus = registry.getEventBus(); bus.register(this, LoadImage.class); bus.register(this, ImageLoaded.class); bus.register(this, ImageRendered.class); control = new ViewerCtrl(this); } | { registry = ctx; EventBus bus = registry.getEventBus(); bus.register(this, LoadImage.class); bus.register(this, ImageLoaded.class); bus.register(this, ImageRendered.class); bus.register(this, AddROICanvas.class); control = new ViewerCtrl(this); } | public void setContext(Registry ctx) { registry = ctx; EventBus bus = registry.getEventBus(); bus.register(this, LoadImage.class); bus.register(this, ImageLoaded.class); bus.register(this, ImageRendered.class); control = new ViewerCtrl(this); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
16615,
12,
4243,
1103,
13,
225,
202,
95,
202,
202,
9893,
273,
1103,
31,
202,
202,
1133,
7086,
5766,
273,
4023,
18,
588,
1133,
7086,
5621,
202,
202,
9274,
18,
4861,
12,
2211,
16,
4444,
2040,
18,
1106,
1769,
202,
202,
9274,
18,
4861,
12,
2211,
16,
3421,
8835,
18,
1106,
1769,
202,
202,
9274,
18,
4861,
12,
2211,
16,
3421,
19222,
18,
1106,
1769,
202,
202,
7098,
273,
394,
4441,
264,
12418,
12,
2211,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
16615,
12,
4243,
1103,
13,
225,
202,
95,
202,
202,
9893,
273,
1103,
31,
202,
202,
1133,
7086,
5766,
273,
4023,
18,
588,
1133,
7086,
5621,
202,
202,
9274,
18,
4861,
12,
2211,
16,
4444,
2040,
18,
1106,
1769,
202,
202,
9274,
18,
4861,
12,
2211,
16,
3421,
8835,
18,
1106,
1769,
202,
202,
9274,
18,
4861,
12,
2211,
16,
3421,
19222,
18,
1106,
1769,
202,
202,
7098,
273,
394,
4441,
264,
12418,
12,
2211,
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
] |
+ "</frameset>" | + "</frameset>" | public void testLoadingFrameSetWithRelativePaths() throws Exception { final String framesContent = "<html><head><title>Frames</title></head>" + "<frameset rows='110,*'>" + " <frame src='subdir1/menu.html' name='menu' scrolling='no' border='0' noresize>" + " <frame src='subdir2/first.html' name='test' border='0' auto>" + "</frameset>" + "<noframes>" + " <body>Frames not supported</body>" + "</noframes>" + "</html>"; final String menuContent = "<html><head><title>Menu</title></head>" + "<body>" + " <script language='javascript'>" + " function changeEditPage() {parent.test.location='../second.html';}" + " </script>" + " <a name ='changePage' onClick='javascript:changeEditPage();' href='#'>Click</a>." + "</body>" + "</html>"; final String firstContent = "<html><head><title>First</title></head>" + "<body>First/body>" + "</html>"; final String secondContent = "<html><head><title>Second</title></head>" + "<body>Second</body>" + "</html>"; final String baseUrl = "http://framestest"; final URL framesURL = new URL(baseUrl + "/frames.html"); final URL menuURL = new URL(baseUrl + "/subdir1/menu.html"); final URL firstURL = new URL(baseUrl + "/subdir2/first.html"); final URL secondURL = new URL(baseUrl + "/second.html"); final WebClient webClient = new WebClient(); final MockWebConnection webConnection = new MockWebConnection( webClient ); webConnection.setResponse(framesURL, framesContent); webConnection.setResponse(menuURL, menuContent); webConnection.setResponse(firstURL, firstContent); webConnection.setResponse(secondURL, secondContent); webClient.setWebConnection( webConnection ); final HtmlPage framesPage = (HtmlPage) webClient.getPage(framesURL); assertEquals( "Frames", framesPage.getTitleText() ); final WebWindow menuWebWindow = webClient.getWebWindowByName("menu"); final HtmlPage menuPage = (HtmlPage) menuWebWindow.getEnclosedPage(); assertEquals( "Menu", menuPage.getTitleText() ); final WebWindow testWebWindow = webClient.getWebWindowByName("test"); assertEquals( "First", ((HtmlPage) testWebWindow.getEnclosedPage()).getTitleText() ); final HtmlAnchor changePage = menuPage.getAnchorByName("changePage"); changePage.click(); assertEquals( "Second", ((HtmlPage) testWebWindow.getEnclosedPage()).getTitleText() ); } | 47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/dd0dfb0acb8ac54aa841cb34dcea164db0908470/HtmlFrameSetTest.java/clean/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlFrameSetTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10515,
3219,
694,
1190,
8574,
4466,
1435,
3639,
1216,
1185,
288,
3639,
727,
514,
7793,
1350,
2398,
273,
3532,
2620,
4438,
1978,
4438,
2649,
34,
15162,
1757,
2649,
4695,
1978,
2984,
5411,
397,
3532,
10278,
278,
2595,
2218,
17506,
16,
4035,
2984,
5411,
397,
315,
225,
411,
3789,
1705,
2218,
1717,
1214,
21,
19,
5414,
18,
2620,
11,
508,
2218,
5414,
11,
22504,
2218,
2135,
11,
5795,
2218,
20,
11,
1158,
15169,
2984,
5411,
397,
315,
225,
411,
3789,
1705,
2218,
1717,
1214,
22,
19,
3645,
18,
2620,
11,
508,
2218,
3813,
11,
5795,
2218,
20,
11,
3656,
2984,
5411,
397,
6823,
10278,
278,
2984,
2398,
397,
3532,
82,
792,
86,
753,
2984,
5411,
397,
315,
225,
411,
3432,
34,
15162,
486,
3260,
1757,
3432,
2984,
2398,
397,
6823,
82,
792,
86,
753,
2984,
5411,
397,
6823,
2620,
2984,
31,
3639,
727,
514,
3824,
1350,
2398,
273,
3532,
2620,
4438,
1978,
4438,
2649,
34,
4599,
1757,
2649,
4695,
1978,
2984,
5411,
397,
3532,
3432,
2984,
5411,
397,
315,
225,
411,
4263,
2653,
2218,
11242,
28533,
5411,
397,
315,
565,
445,
2549,
4666,
1964,
1435,
288,
2938,
18,
3813,
18,
3562,
2218,
6216,
8538,
18,
2620,
13506,
1532,
5411,
397,
315,
225,
7765,
4263,
2984,
5411,
397,
315,
225,
411,
69,
508,
273,
11,
3427,
1964,
11,
18296,
2218,
11242,
30,
3427,
4666,
1964,
1435,
4359,
3897,
2218,
10038,
34,
6563,
1757,
69,
34,
1199,
5411,
397,
6823,
3432,
2984,
5411,
397,
6823,
2620,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10515,
3219,
694,
1190,
8574,
4466,
1435,
3639,
1216,
1185,
288,
3639,
727,
514,
7793,
1350,
2398,
273,
3532,
2620,
4438,
1978,
4438,
2649,
34,
15162,
1757,
2649,
4695,
1978,
2984,
5411,
397,
3532,
10278,
278,
2595,
2218,
17506,
16,
4035,
2984,
5411,
397,
315,
225,
411,
3789,
1705,
2218,
1717,
1214,
21,
19,
5414,
18,
2620,
11,
508,
2218,
5414,
11,
22504,
2218,
2135,
11,
5795,
2218,
20,
11,
1158,
15169,
2984,
5411,
397,
315,
225,
411,
3789,
1705,
2218,
1717,
1214,
22,
19,
3645,
18,
2620,
11,
508,
2218,
3813,
11,
5795,
2218,
20,
11,
3656,
2984,
5411,
397,
6823,
10278,
278,
2984,
2398,
397,
3532,
82,
792,
86,
753,
2984,
5411,
397,
2
] |
builder.append("<property name=\"basedir\" value=\""); builder.append(basedir); builder.append("\"/>"); | if (basedir != null) { builder.append("<property name=\"basedir\" value=\""); builder.append(basedir); builder.append("\"/>"); } | void loadPredefinedProperties(final Hashtable properties, final Map<String, String> externalProps) { final Enumeration props = (properties != null) ? properties.keys() : (new Hashtable()).keys(); final StringBuilder builder = StringBuilderSpinAllocator.alloc(); builder.append("<project name=\"predefined properties\">"); try { while (props.hasMoreElements()) { final String name = (String)props.nextElement(); final String value = (String)properties.get(name); builder.append("<property name=\""); builder.append(name); builder.append("\" value=\""); builder.append(value); builder.append("\"/>"); } final Map<String, String> envMap = System.getenv(); for (final String name : envMap.keySet()) { final String value = envMap.get(name); if (name.length() > 0) { builder.append("<property name=\""); builder.append(ourDefaultEnvPrefix); builder.append(name); builder.append("\" value=\""); builder.append(value); builder.append("\"/>"); } } if (externalProps != null) { for (final String name : externalProps.keySet()) { final String value = externalProps.get(name); builder.append("<property name=\""); builder.append(name); builder.append("\" value=\""); builder.append(value); builder.append("\"/>"); } } final VirtualFile file = getContainingFile().getVirtualFile(); String basedir = getBaseDir(); if (file != null && (basedir == null || ".".equals(basedir))) { final VirtualFile dir = file.getParent(); if (dir != null) { basedir = dir.getPath(); } } builder.append("<property name=\"basedir\" value=\""); builder.append(basedir); builder.append("\"/>"); builder.append("<property name=\"ant.home\" value=\"\"/>"); builder.append("<property name=\"ant.version\" value=\"1.6.5\"/>"); builder.append("<property name=\"ant.project.name\" value=\""); final String name = getName(); builder.append((name == null) ? "" : name); builder.append("\"/>"); builder.append("<property name=\"ant.java.version\" value=\""); builder.append(SystemInfo.JAVA_VERSION); builder.append("\"/>"); if (file != null) { final String path = file.getPath(); builder.append("<property name=\"ant.file\" value=\""); builder.append(path); builder.append("\"/>"); if (name != null) { builder.append("<property name=\"ant.file."); builder.append(name); builder.append("\" value=\"${ant.file}\"/>"); } } builder.append("</project>"); final XmlFile xmlFile = (XmlFile)getManager().getElementFactory() .createFileFromText("dummy.xml", StdFileTypes.XML, builder, LocalTimeCounter.currentTime(), false, false); final XmlDocument document = xmlFile.getDocument(); if (document == null) return; final XmlTag rootTag = document.getRootTag(); if (rootTag == null) return; final AntTypeDefinition propertyDef = getAntFile().getBaseTypeDefinition(Property.class.getName()); myFakeProject = new AntProjectImpl(null, rootTag, myDefinition); for (final XmlTag tag : rootTag.getSubTags()) { final AntPropertyImpl property = new AntPropertyImpl(myFakeProject, tag, propertyDef) { public PsiFile getContainingFile() { return getSourceElement().getContainingFile(); } public PsiElement getNavigationElement() { if (AntFileImpl.BASEDIR_ATTR.equals(getName())) { final XmlAttribute attr = AntProjectImpl.this.getSourceElement().getAttribute(AntFileImpl.BASEDIR_ATTR, null); if (attr != null) return attr; } return super.getNavigationElement(); } }; myPredefinedProps.add(property); } } finally { StringBuilderSpinAllocator.dispose(builder); } setPredefinedProperties(); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/aad4aeef571e92d53020234ce467e2bb6411d958/AntProjectImpl.java/clean/plugins/ant/src/com/intellij/lang/ant/psi/impl/AntProjectImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1262,
1386,
2178,
2297,
12,
6385,
18559,
1790,
16,
727,
1635,
32,
780,
16,
514,
34,
3903,
5047,
13,
288,
565,
727,
13864,
3458,
273,
261,
4738,
480,
446,
13,
692,
1790,
18,
2452,
1435,
294,
261,
2704,
18559,
1435,
2934,
2452,
5621,
565,
727,
3225,
2089,
273,
3225,
3389,
267,
21156,
18,
9853,
5621,
565,
2089,
18,
6923,
2932,
32,
4406,
508,
5189,
1484,
2178,
1790,
21121,
1769,
565,
775,
288,
1377,
1323,
261,
9693,
18,
5332,
7417,
3471,
10756,
288,
3639,
727,
514,
508,
273,
261,
780,
13,
9693,
18,
4285,
1046,
5621,
3639,
727,
514,
460,
273,
261,
780,
13,
4738,
18,
588,
12,
529,
1769,
3639,
2089,
18,
6923,
2932,
32,
4468,
508,
5189,
8863,
3639,
2089,
18,
6923,
12,
529,
1769,
3639,
2089,
18,
6923,
2932,
2412,
460,
5189,
8863,
3639,
2089,
18,
6923,
12,
1132,
1769,
3639,
2089,
18,
6923,
2932,
2412,
26293,
1769,
1377,
289,
1377,
727,
1635,
32,
780,
16,
514,
34,
1550,
863,
273,
2332,
18,
588,
3074,
5621,
1377,
364,
261,
6385,
514,
508,
294,
1550,
863,
18,
856,
694,
10756,
288,
3639,
727,
514,
460,
273,
1550,
863,
18,
588,
12,
529,
1769,
3639,
309,
261,
529,
18,
2469,
1435,
405,
374,
13,
288,
1850,
2089,
18,
6923,
2932,
32,
4468,
508,
5189,
8863,
1850,
2089,
18,
6923,
12,
477,
1868,
3491,
2244,
1769,
1850,
2089,
18,
6923,
12,
529,
1769,
1850,
2089,
18,
6923,
2932,
2412,
460,
5189,
8863,
1850,
2089,
18,
6923,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1262,
1386,
2178,
2297,
12,
6385,
18559,
1790,
16,
727,
1635,
32,
780,
16,
514,
34,
3903,
5047,
13,
288,
565,
727,
13864,
3458,
273,
261,
4738,
480,
446,
13,
692,
1790,
18,
2452,
1435,
294,
261,
2704,
18559,
1435,
2934,
2452,
5621,
565,
727,
3225,
2089,
273,
3225,
3389,
267,
21156,
18,
9853,
5621,
565,
2089,
18,
6923,
2932,
32,
4406,
508,
5189,
1484,
2178,
1790,
21121,
1769,
565,
775,
288,
1377,
1323,
261,
9693,
18,
5332,
7417,
3471,
10756,
288,
3639,
727,
514,
508,
273,
261,
780,
13,
9693,
18,
4285,
1046,
5621,
3639,
727,
514,
460,
273,
261,
780,
13,
4738,
18,
588,
12,
529,
1769,
3639,
2089,
18,
6923,
2932,
32,
4468,
508,
2
] |
public org.quickfix.field.DatedDate getDatedDate() throws FieldNotFound { org.quickfix.field.DatedDate value = new org.quickfix.field.DatedDate(); | public quickfix.field.DatedDate getDatedDate() throws FieldNotFound { quickfix.field.DatedDate value = new quickfix.field.DatedDate(); | public org.quickfix.field.DatedDate getDatedDate() throws FieldNotFound { org.quickfix.field.DatedDate value = new org.quickfix.field.DatedDate(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderMultileg.java/buggy/src/java/src/quickfix/fix44/NewOrderMultileg.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
40,
690,
1626,
2343,
690,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
40,
690,
1626,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
40,
690,
1626,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
40,
690,
1626,
2343,
690,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
40,
690,
1626,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
40,
690,
1626,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_SUPPORTED", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); | setProperty(Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_LANGUAGE, Constants.NS_DTD); | public void setParameter(String name, Object value) throws DOMException { // REVISIT: Recognizes DOM L3 default features only. // Does not yet recognize Xerces features. if(value instanceof Boolean){ boolean state = ((Boolean)value).booleanValue(); if (name.equalsIgnoreCase(Constants.DOM_COMMENTS)) { features = (short) (state ? features | COMMENTS : features & ~COMMENTS); } else if (name.equalsIgnoreCase(Constants.DOM_DATATYPE_NORMALIZATION)) { setFeature(NORMALIZE_DATA, state); features = (short) (state ? features | DTNORMALIZATION : features & ~DTNORMALIZATION); if (state) { features = (short) (features | VALIDATE); } } else if (name.equalsIgnoreCase(Constants.DOM_NAMESPACES)) { features = (short) (state ? features | NAMESPACES : features & ~NAMESPACES); } else if (name.equalsIgnoreCase(Constants.DOM_CDATA_SECTIONS)) { features = (short) (state ? features | CDATA : features & ~CDATA); } else if (name.equalsIgnoreCase(Constants.DOM_ENTITIES)) { features = (short) (state ? features | ENTITIES : features & ~ENTITIES); } else if (name.equalsIgnoreCase(Constants.DOM_SPLIT_CDATA)) { features = (short) (state ? features | SPLITCDATA : features & ~SPLITCDATA); } else if (name.equalsIgnoreCase(Constants.DOM_VALIDATE)) { features = (short) (state ? features | VALIDATE : features & ~VALIDATE); } else if (name.equalsIgnoreCase(Constants.DOM_WELLFORMED)) { features = (short) (state ? features | WELLFORMED : features & ~WELLFORMED ); } else if (name.equalsIgnoreCase(Constants.DOM_NAMESPACE_DECLARATIONS)) { features = (short) (state ? features | NSDECL : features & ~NSDECL); } else if (name.equalsIgnoreCase(Constants.DOM_INFOSET)) { // Setting to false has no effect. if (state) { features = (short) (features | INFOSET_TRUE_PARAMS); features = (short) (features & ~INFOSET_FALSE_PARAMS); setFeature(NORMALIZE_DATA, false); } } else if (name.equalsIgnoreCase(Constants.DOM_NORMALIZE_CHARACTERS) || name.equalsIgnoreCase(Constants.DOM_CANONICAL_FORM) || name.equalsIgnoreCase(Constants.DOM_VALIDATE_IF_SCHEMA) || name.equalsIgnoreCase(Constants.DOM_CHECK_CHAR_NORMALIZATION) ) { if (state) { // true is not supported String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_SUPPORTED", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if ( name.equalsIgnoreCase(Constants.DOM_ELEMENT_CONTENT_WHITESPACE)) { if (!state) { // false is not supported String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_SUPPORTED", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(SEND_PSVI) ){ // REVISIT: turning augmentation of PSVI is not support, // because in this case we won't be able to retrieve element // default value. if (!state) { // false is not supported String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_SUPPORTED", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(Constants.DOM_PSVI)){ features = (short) (state ? features | PSVI : features & ~PSVI); } else { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_FOUND", new Object[] { name }); throw new DOMException(DOMException.NOT_FOUND_ERR, msg); } } else { // set properties if (name.equalsIgnoreCase(Constants.DOM_ERROR_HANDLER)) { if (value instanceof DOMErrorHandler || value == null) { fErrorHandlerWrapper.setErrorHandler((DOMErrorHandler)value); setErrorHandler(fErrorHandlerWrapper); } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(Constants.DOM_RESOURCE_RESOLVER)) { if (value instanceof LSResourceResolver || value == null) { try { setEntityResolver(new DOMEntityResolverWrapper((LSResourceResolver) value)); } catch (XMLConfigurationException e) {} } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(Constants.DOM_SCHEMA_LOCATION)) { if (value instanceof String || value == null) { try { // map DOM schema-location to JAXP schemaSource property setProperty( Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_SOURCE, value); } catch (XMLConfigurationException e) {} } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(Constants.DOM_SCHEMA_TYPE)) { if (value instanceof String || value == null) { try { if (value == null) { setProperty( Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_LANGUAGE, null); } else if (value.equals(Constants.NS_XMLSCHEMA)) { // REVISIT: when add support to DTD validation setProperty( Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_LANGUAGE, Constants.NS_XMLSCHEMA); } else if (value.equals(Constants.NS_DTD)) { // REVISIT: revalidation against DTDs is not supported String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_SUPPORTED", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } catch (XMLConfigurationException e) {} } else { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(SYMBOL_TABLE)){ // Xerces Symbol Table if (value instanceof SymbolTable){ setProperty(SYMBOL_TABLE, value); } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase (GRAMMAR_POOL)){ if (value instanceof XMLGrammarPool){ setProperty(GRAMMAR_POOL, value); } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else { // REVISIT: check if this is a boolean parameter -- type mismatch should be thrown. //parameter is not recognized String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_FOUND", new Object[] { name }); throw new DOMException(DOMException.NOT_FOUND_ERR, msg); } } } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/1ae0cc3a6b18565e655c688137f9a14d8eac39d7/DOMConfigurationImpl.java/clean/src/org/apache/xerces/dom/DOMConfigurationImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6690,
12,
780,
508,
16,
1033,
460,
13,
1216,
4703,
503,
288,
3639,
368,
2438,
26780,
1285,
30,
7776,
4198,
3128,
4703,
511,
23,
805,
4467,
1338,
18,
3639,
368,
1850,
9637,
486,
4671,
21431,
1139,
264,
764,
4467,
18,
202,
202,
430,
12,
1132,
1276,
3411,
15329,
202,
565,
202,
202,
6494,
919,
273,
14015,
5507,
13,
1132,
2934,
6494,
620,
5621,
5411,
309,
261,
529,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
12200,
55,
3719,
288,
7734,
4467,
273,
261,
6620,
13,
261,
2019,
692,
4467,
571,
19400,
55,
294,
4467,
473,
4871,
12200,
55,
1769,
5411,
289,
5411,
469,
309,
261,
529,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
11102,
789,
1738,
67,
15480,
25084,
3719,
288,
7734,
28669,
12,
15480,
15641,
67,
4883,
16,
919,
1769,
7734,
4467,
273,
10792,
261,
6620,
13,
261,
2019,
692,
4467,
571,
10696,
15480,
25084,
294,
4467,
473,
4871,
9081,
15480,
25084,
1769,
7734,
309,
261,
2019,
13,
288,
10792,
4467,
273,
261,
6620,
13,
261,
7139,
571,
15093,
1777,
1769,
7734,
289,
5411,
289,
5411,
469,
309,
261,
529,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
11368,
55,
3719,
288,
7734,
4467,
273,
261,
6620,
13,
261,
2019,
692,
4467,
571,
18494,
55,
294,
4467,
473,
4871,
11368,
55,
1769,
5411,
289,
5411,
469,
309,
261,
529,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
18375,
67,
19082,
55,
3719,
288,
7734,
4467,
273,
261,
6620,
13,
261,
2019,
692,
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,
6690,
12,
780,
508,
16,
1033,
460,
13,
1216,
4703,
503,
288,
3639,
368,
2438,
26780,
1285,
30,
7776,
4198,
3128,
4703,
511,
23,
805,
4467,
1338,
18,
3639,
368,
1850,
9637,
486,
4671,
21431,
1139,
264,
764,
4467,
18,
202,
202,
430,
12,
1132,
1276,
3411,
15329,
202,
565,
202,
202,
6494,
919,
273,
14015,
5507,
13,
1132,
2934,
6494,
620,
5621,
5411,
309,
261,
529,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
12200,
55,
3719,
288,
7734,
4467,
273,
261,
6620,
13,
261,
2019,
692,
4467,
571,
19400,
55,
294,
4467,
473,
4871,
12200,
55,
1769,
5411,
289,
5411,
469,
309,
261,
529,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
11102,
789,
2
] |
public void handleException(Throwable e) { String message; if (e.getMessage() == null) { message = WorkbenchMessages.ErrorClosingNoArg; } else { message = NLS.bind(WorkbenchMessages.ErrorClosingOneArg, e.getMessage() ); } | public void handleException(Throwable e) { String message; if (e.getMessage() == null) { message = WorkbenchMessages.ErrorClosingNoArg; } else { message = NLS.bind( WorkbenchMessages.ErrorClosingOneArg, e .getMessage()); } | private boolean busyClose(final boolean force) { // notify the advisor of preShutdown and allow it to veto if not forced isClosing = advisor.preShutdown(); if (!force && !isClosing) { return false; } // save any open editors if they are dirty isClosing = saveAllEditors(!force); if (!force && !isClosing) { return false; } IPreferenceStore store = getPreferenceStore(); boolean closeEditors = store .getBoolean(IPreferenceConstants.CLOSE_EDITORS_ON_EXIT); if (closeEditors) { Platform.run(new SafeRunnable() { public void run() { IWorkbenchWindow windows[] = getWorkbenchWindows(); for (int i = 0; i < windows.length; i++) { IWorkbenchPage pages[] = windows[i].getPages(); for (int j = 0; j < pages.length; j++) { isClosing = isClosing && pages[j].closeAllEditors(false); } } } }); if (!force && !isClosing) { return false; } } if (getWorkbenchConfigurer().getSaveAndRestore()) { Platform.run(new SafeRunnable() { public void run() { XMLMemento mem = recordWorkbenchState(); //Save the IMemento to a file. saveMementoToFile(mem); } public void handleException(Throwable e) { String message; if (e.getMessage() == null) { message = WorkbenchMessages.ErrorClosingNoArg; } else { message = NLS.bind(WorkbenchMessages.ErrorClosingOneArg, e.getMessage() ); } if (!MessageDialog.openQuestion(null, WorkbenchMessages.Error, message)) { isClosing = false; } } }); } if (!force && !isClosing) { return false; } Platform.run(new SafeRunnable(WorkbenchMessages.ErrorClosing) { public void run() { if (isClosing || force) isClosing = windowManager.close(); } }); if (!force && !isClosing) { return false; } shutdown(); runEventLoop = false; return true; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9337b828e86179850647141c34d497be28275ed2/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
21697,
4605,
12,
6385,
1250,
2944,
13,
288,
3639,
368,
5066,
326,
1261,
10227,
434,
675,
10961,
471,
1699,
518,
358,
331,
11453,
309,
486,
13852,
3639,
353,
15745,
273,
1261,
10227,
18,
1484,
10961,
5621,
3639,
309,
16051,
5734,
597,
401,
291,
15745,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
368,
1923,
1281,
1696,
29431,
309,
2898,
854,
9603,
3639,
353,
15745,
273,
1923,
1595,
4666,
1383,
12,
5,
5734,
1769,
3639,
309,
16051,
5734,
597,
401,
291,
15745,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
467,
9624,
2257,
1707,
273,
336,
9624,
2257,
5621,
3639,
1250,
1746,
4666,
1383,
273,
1707,
7734,
263,
588,
5507,
12,
45,
9624,
2918,
18,
13384,
67,
13208,
55,
67,
673,
67,
28682,
1769,
3639,
309,
261,
4412,
4666,
1383,
13,
288,
5411,
11810,
18,
2681,
12,
2704,
14060,
20013,
1435,
288,
7734,
1071,
918,
1086,
1435,
288,
10792,
467,
2421,
22144,
3829,
9965,
8526,
273,
29026,
22144,
10399,
5621,
10792,
364,
261,
474,
277,
273,
374,
31,
277,
411,
9965,
18,
2469,
31,
277,
27245,
288,
13491,
467,
2421,
22144,
1964,
4689,
8526,
273,
9965,
63,
77,
8009,
588,
5716,
5621,
13491,
364,
261,
474,
525,
273,
374,
31,
525,
411,
4689,
18,
2469,
31,
525,
27245,
288,
18701,
353,
15745,
273,
353,
15745,
4766,
565,
597,
4689,
63,
78,
8009,
4412,
1595,
4666,
1383,
12,
5743,
1769,
13491,
289,
10792,
289,
7734,
289,
5411,
15549,
5411,
309,
16051,
5734,
597,
401,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
21697,
4605,
12,
6385,
1250,
2944,
13,
288,
3639,
368,
5066,
326,
1261,
10227,
434,
675,
10961,
471,
1699,
518,
358,
331,
11453,
309,
486,
13852,
3639,
353,
15745,
273,
1261,
10227,
18,
1484,
10961,
5621,
3639,
309,
16051,
5734,
597,
401,
291,
15745,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
368,
1923,
1281,
1696,
29431,
309,
2898,
854,
9603,
3639,
353,
15745,
273,
1923,
1595,
4666,
1383,
12,
5,
5734,
1769,
3639,
309,
16051,
5734,
597,
401,
291,
15745,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
467,
9624,
2257,
1707,
273,
336,
9624,
2257,
5621,
3639,
1250,
1746,
4666,
1383,
273,
1707,
7734,
263,
588,
5507,
12,
45,
9624,
2918,
18,
2
] |
public CmsGroup readGroup(String groupName) throws CmsException { | public CmsGroup readGroup(CmsProject project) { | public CmsGroup readGroup(String groupName) throws CmsException { return m_securityManager.readGroup(m_context, groupName); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/0abaf9e2cd7b40be6257fbe506683783295516ca/CmsObject.java/buggy/src/org/opencms/file/CmsObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
1114,
855,
1114,
12,
4747,
4109,
1984,
13,
288,
3639,
327,
312,
67,
7462,
1318,
18,
896,
1114,
12,
81,
67,
2472,
16,
11619,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
1114,
855,
1114,
12,
4747,
4109,
1984,
13,
288,
3639,
327,
312,
67,
7462,
1318,
18,
896,
1114,
12,
81,
67,
2472,
16,
11619,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
buffer.append("[a-z0-9]*"); | buffer.append("[a-z0-9_\\$]*"); | public static String buildRegexp(String pattern, int exactPrefixLen, final boolean caseSencetive) { { final int len = pattern.length (); int i = 0; while (i != len && (Character.isLetterOrDigit(pattern.charAt(i)) && (i == 0 || !Character.isUpperCase(pattern.charAt(i))))) { ++i; } } final int eol = pattern.indexOf('\n'); if (eol != -1) { pattern = pattern.substring(0, eol); } if (pattern.length() >= 80) { pattern = pattern.substring(0, 80); } final StringBuffer buffer = new StringBuffer(); boolean lastIsUppercase = false; final boolean endsWithSpace = StringUtil.endsWithChar(pattern, ' '); final boolean uppercaseOnly = containsOnlyUppercaseLetters(pattern); pattern = pattern.trim(); exactPrefixLen = Math.min(exactPrefixLen, pattern.length()); for (int i = 0; i != exactPrefixLen; ++i) { final char c = pattern.charAt(i); if (Character.isLetterOrDigit(c)) { buffer.append(c); } else { buffer.append("\\u"); buffer.append(Integer.toHexString(c + 0x20000).substring(1)); } } for (int i = exactPrefixLen; i < pattern.length(); i++) { final char c = pattern.charAt(i); lastIsUppercase = false; if (Character.isLetterOrDigit(c)) { // This logic allows to use uppercase letters only to catch the name like PDM for PsiDocumentManager if (Character.isUpperCase(c) || Character.isDigit(c)) { if (!uppercaseOnly && !caseSencetive) { buffer.append('('); } if (i > 0) buffer.append("[a-z0-9]*"); buffer.append(c); if (!uppercaseOnly && !caseSencetive) { buffer.append('|'); buffer.append(Character.toLowerCase(c)); buffer.append(')'); } lastIsUppercase = true; } else if (Character.isLowerCase(c) && !caseSencetive) { buffer.append('['); buffer.append(c); buffer.append('|'); buffer.append(Character.toUpperCase(c)); buffer.append(']'); } else { buffer.append(c); } } else if (c == '*') { buffer.append(".*"); } else { buffer.append("\\u"); buffer.append(Integer.toHexString(c + 0x20000).substring(1)); } } if (!endsWithSpace) { buffer.append(".*"); } else if (lastIsUppercase) { buffer.append("[a-z0-9]*"); } final String regex = buffer.toString(); return regex; } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/7fd85bf8ab0333703ab64204ee44f21cb0473102/NameUtil.java/buggy/openapi/src/com/intellij/psi/codeStyle/NameUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
1361,
14621,
12,
780,
1936,
16,
509,
5565,
2244,
2891,
16,
727,
1250,
648,
55,
1331,
278,
688,
13,
288,
565,
288,
1377,
727,
509,
562,
273,
1936,
18,
2469,
261,
1769,
1377,
509,
277,
273,
374,
31,
1377,
1323,
261,
77,
480,
562,
597,
261,
7069,
18,
291,
13938,
1162,
10907,
12,
4951,
18,
3001,
861,
12,
77,
3719,
597,
261,
77,
422,
374,
747,
401,
7069,
18,
291,
8915,
12,
4951,
18,
3001,
861,
12,
77,
3719,
20349,
288,
3639,
965,
77,
31,
1377,
289,
565,
289,
565,
727,
509,
14775,
273,
1936,
18,
31806,
2668,
64,
82,
8284,
565,
309,
261,
30951,
480,
300,
21,
13,
288,
1377,
1936,
273,
1936,
18,
28023,
12,
20,
16,
14775,
1769,
565,
289,
565,
309,
261,
4951,
18,
2469,
1435,
1545,
8958,
13,
288,
1377,
1936,
273,
1936,
18,
28023,
12,
20,
16,
8958,
1769,
565,
289,
565,
727,
6674,
1613,
273,
394,
6674,
5621,
565,
1250,
1142,
2520,
5988,
3593,
273,
629,
31,
565,
727,
1250,
7633,
3819,
273,
14205,
18,
5839,
1190,
2156,
12,
4951,
16,
296,
28005,
565,
727,
1250,
18966,
3386,
273,
1914,
3386,
5988,
3593,
24181,
5432,
12,
4951,
1769,
565,
1936,
273,
1936,
18,
5290,
5621,
565,
5565,
2244,
2891,
273,
2361,
18,
1154,
12,
17165,
2244,
2891,
16,
1936,
18,
2469,
10663,
565,
364,
261,
474,
277,
273,
374,
31,
277,
480,
5565,
2244,
2891,
31,
965,
77,
13,
288,
1377,
727,
1149,
276,
273,
1936,
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,
514,
1361,
14621,
12,
780,
1936,
16,
509,
5565,
2244,
2891,
16,
727,
1250,
648,
55,
1331,
278,
688,
13,
288,
565,
288,
1377,
727,
509,
562,
273,
1936,
18,
2469,
261,
1769,
1377,
509,
277,
273,
374,
31,
1377,
1323,
261,
77,
480,
562,
597,
261,
7069,
18,
291,
13938,
1162,
10907,
12,
4951,
18,
3001,
861,
12,
77,
3719,
597,
261,
77,
422,
374,
747,
401,
7069,
18,
291,
8915,
12,
4951,
18,
3001,
861,
12,
77,
3719,
20349,
288,
3639,
965,
77,
31,
1377,
289,
565,
289,
565,
727,
509,
14775,
273,
1936,
18,
31806,
2668,
64,
82,
8284,
565,
309,
261,
30951,
480,
300,
21,
13,
288,
1377,
1936,
273,
1936,
18,
2
] |
path = new ItemPath("LabeledExtract.treatments.protocolApplications.parameterValues.parameterType", srcNs); | path = new ItemPath("LabeledExtract.treatments.protocolApplications." + "parameterValues.parameterType", srcNs); | public static Map getPrefetchDescriptors() { Map paths = new HashMap(); Set descSet; ItemPath path; String srcNs = "http://www.flymine.org/model/mage#"; descSet = new HashSet(); path = new ItemPath("Experiment.descriptions", srcNs); descSet.add(path.getItemPrefetchDescriptor()); path = new ItemPath("Experiment.bioAssays", srcNs); descSet.add(path.getItemPrefetchDescriptor()); paths.put(srcNs + "Experiment", descSet); descSet = new HashSet(); path = new ItemPath("MeasuredBioAssay.featureExtraction.physicalBioAssaySource." + "bioAssayCreation.sourceBioMaterialMeasurements.bioMaterial", srcNs); descSet.add(path.getItemPrefetchDescriptor()); paths.put(srcNs + "MeasuredBioAssay", descSet); descSet = new HashSet(); path = new ItemPath("DerivedBioAssay.derivedBioAssayMap.sourceBioAssays", srcNs); descSet.add(path.getItemPrefetchDescriptor()); paths.put(srcNs + "DerivedBioAssay", descSet); descSet = new HashSet(); path = new ItemPath("BioAssayDatum.bioAssay", srcNs); descSet.add(path.getItemPrefetchDescriptor()); path = new ItemPath("BioAssayDatum.feature", srcNs); descSet.add(path.getItemPrefetchDescriptor()); path = new ItemPath("BioAssayDatum.reporter", srcNs); descSet.add(path.getItemPrefetchDescriptor()); path = new ItemPath("BioAssayDatum.compositeSequence", srcNs); descSet.add(path.getItemPrefetchDescriptor()); //prefetch cache miss? path = new ItemPath("BioAssayDatum.quantitationType.scale", srcNs); descSet.add(path.getItemPrefetchDescriptor()); path = new ItemPath("BioAssayDatum.quantitationType.targetQuantitationType.scale", srcNs); descSet.add(path.getItemPrefetchDescriptor()); paths.put(srcNs + "BioAssayDatum", descSet); //prefetch cache miss? descSet = new HashSet(); path = new ItemPath("LabeledExtract.treatments.action", srcNs); descSet.add(path.getItemPrefetchDescriptor()); path = new ItemPath("LabeledExtract.treatments.protocolApplications.parameterValues.parameterType", srcNs); descSet.add(path.getItemPrefetchDescriptor()); path = new ItemPath("LabeledExtract.treatments.sourceBioMaterialMeasurements.bioMaterial" , srcNs); descSet.add(path.getItemPrefetchDescriptor()); path = new ItemPath("LabeledExtract.treatments.sourceBioMaterialMeasurements.bioMaterial." + "treatments.sourceBioMaterialMeasurements.bioMaterial", srcNs); descSet.add(path.getItemPrefetchDescriptor()); paths.put(srcNs + "LabeledExtract", descSet); descSet = new HashSet(); path = new ItemPath("BioSource.characteristics", srcNs); descSet.add(path.getItemPrefetchDescriptor()); path = new ItemPath("BioSource.materialType", srcNs); descSet.add(path.getItemPrefetchDescriptor()); paths.put(srcNs + "BioSource", descSet); //treatment prefetch? descSet = new HashSet(); path = new ItemPath("Treatment.action", srcNs); descSet.add(path.getItemPrefetchDescriptor()); path = new ItemPath("Treatment.protocolApplications.protocol", srcNs); descSet.add(path.getItemPrefetchDescriptor()); path = new ItemPath( "Treatment.protocolApplications.parameterValues.parameterType.defaultValue" + ".measurement.unit", srcNs); descSet.add(path.getItemPrefetchDescriptor()); paths.put(srcNs + "Treatment", descSet); ItemPrefetchDescriptor desc, desc1, desc2, desc3, desc4; descSet = new HashSet(); path = new ItemPath("Reporter.controlType", srcNs); descSet.add(path.getItemPrefetchDescriptor()); path = new ItemPath("Reporter.failTypes", srcNs); descSet.add(path.getItemPrefetchDescriptor()); path = new ItemPath( "Reporter.immobilizedCharacteristics.type", srcNs); descSet.add(path.getItemPrefetchDescriptor()); path = new ItemPath( "Reporter.immobilizedCharacteristics.sequenceDatabases.database", srcNs); descSet.add(path.getItemPrefetchDescriptor()); path = new ItemPath( "Reporter.featureReporterMaps.featureInformationSources.feature", srcNs); descSet.add(path.getItemPrefetchDescriptor()); // desc = new ItemPrefetchDescriptor("Reporter.featureReporterMaps");// desc.addConstraint(new ItemPrefetchConstraintDynamic("featureReporterMaps",// ObjectStoreItemPathFollowingImpl.IDENTIFIER));// desc2 = new ItemPrefetchDescriptor("Reporter.featureReporterMaps.feature");// desc2.addConstraint(new ItemPrefetchConstraintDynamic("feature",// ObjectStoreItemPathFollowingImpl.IDENTIFIER));// desc.addPath(desc2);// descSet.add(desc);// desc = new ItemPrefetchDescriptor("Reporter.immobilizedCharacteristics");// desc.addConstraint(new ItemPrefetchConstraintDynamic("immobilizedCharacteristics",// ObjectStoreItemPathFollowingImpl.IDENTIFIER));// desc2 = new ItemPrefetchDescriptor("Reporter.immobilizedCharacteristics.type");// desc2.addConstraint(new ItemPrefetchConstraintDynamic("type",// ObjectStoreItemPathFollowingImpl.IDENTIFIER));// desc.addPath(desc2);// desc3 = new ItemPrefetchDescriptor(// "Reporter.immobilizedCharacteristics.type.sequenceDatabases");// desc3.addConstraint(new ItemPrefetchConstraintDynamic("sequenceDatabases",// ObjectStoreItemPathFollowingImpl.IDENTIFIER));// desc2.addPath(desc3);// desc4 = new ItemPrefetchDescriptor(// "Reporter.immobilizedCharacteristics.type.sequenceDatabases.database");// desc4.addConstraint(new ItemPrefetchConstraintDynamic("database",// ObjectStoreItemPathFollowingImpl.IDENTIFIER));// desc3.addPath(desc4);// descSet.add(desc); paths.put(srcNs + "Reporter", descSet); descSet = new HashSet(); path = new ItemPath( "CompositeSequence.reporterCompositeMaps.reporterPositionSources.reporter", srcNs); descSet.add(path.getItemPrefetchDescriptor()); paths.put(srcNs + "CompositeSequence", descSet); return paths; } | 29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/bd510b42f5fc70e85835f610499e7a0e1e03cc40/MageDataTranslator.java/clean/flymine/model/mage/src/java/org/flymine/dataconversion/MageDataTranslator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1635,
12822,
5754,
12705,
1435,
288,
3639,
1635,
2953,
273,
394,
4317,
5621,
3639,
1000,
3044,
694,
31,
3639,
4342,
743,
589,
31,
3639,
514,
1705,
10386,
273,
315,
2505,
2207,
5591,
18,
29670,
3081,
18,
3341,
19,
2284,
19,
81,
410,
7,
14432,
3639,
3044,
694,
273,
394,
6847,
5621,
3639,
589,
273,
394,
4342,
743,
2932,
22338,
18,
30288,
3113,
1705,
10386,
1769,
3639,
3044,
694,
18,
1289,
12,
803,
18,
588,
1180,
25591,
3187,
10663,
3639,
589,
273,
394,
4342,
743,
2932,
22338,
18,
21010,
2610,
8271,
3113,
1705,
10386,
1769,
3639,
3044,
694,
18,
1289,
12,
803,
18,
588,
1180,
25591,
3187,
10663,
3639,
2953,
18,
458,
12,
4816,
10386,
397,
315,
22338,
3113,
3044,
694,
1769,
3639,
3044,
694,
273,
394,
6847,
5621,
3639,
589,
273,
394,
4342,
743,
2932,
23177,
2862,
38,
1594,
2610,
528,
18,
7238,
25757,
18,
20441,
38,
1594,
2610,
528,
1830,
1199,
18701,
397,
315,
21010,
2610,
528,
9906,
18,
3168,
38,
1594,
11790,
7197,
1346,
18,
21010,
11790,
3113,
18701,
1705,
10386,
1769,
3639,
3044,
694,
18,
1289,
12,
803,
18,
588,
1180,
25591,
3187,
10663,
3639,
2953,
18,
458,
12,
4816,
10386,
397,
315,
23177,
2862,
38,
1594,
2610,
528,
3113,
3044,
694,
1769,
3639,
3044,
694,
273,
394,
6847,
5621,
3639,
589,
273,
394,
4342,
743,
2932,
21007,
38,
1594,
2610,
528,
18,
765,
2950,
38,
1594,
2610,
528,
863,
18,
3168,
38,
1594,
2610,
8271,
3113,
1705,
10386,
1769,
3639,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1635,
12822,
5754,
12705,
1435,
288,
3639,
1635,
2953,
273,
394,
4317,
5621,
3639,
1000,
3044,
694,
31,
3639,
4342,
743,
589,
31,
3639,
514,
1705,
10386,
273,
315,
2505,
2207,
5591,
18,
29670,
3081,
18,
3341,
19,
2284,
19,
81,
410,
7,
14432,
3639,
3044,
694,
273,
394,
6847,
5621,
3639,
589,
273,
394,
4342,
743,
2932,
22338,
18,
30288,
3113,
1705,
10386,
1769,
3639,
3044,
694,
18,
1289,
12,
803,
18,
588,
1180,
25591,
3187,
10663,
3639,
589,
273,
394,
4342,
743,
2932,
22338,
18,
21010,
2610,
8271,
3113,
1705,
10386,
1769,
3639,
3044,
694,
18,
1289,
12,
803,
18,
588,
1180,
25591,
3187,
10663,
3639,
2953,
18,
458,
12,
4816,
10386,
397,
315,
2
] |
GtkMouseDragGestureRecognizer() | public GtkMouseDragGestureRecognizer (DragSource ds) | GtkMouseDragGestureRecognizer() { super(null); } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/d0f9ca2334072a1bc2b0e47d4f4e71cc3ddf9c6c/GtkMouseDragGestureRecognizer.java/buggy/gnu/java/awt/dnd/GtkMouseDragGestureRecognizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
22132,
9186,
11728,
43,
16704,
28131,
261,
11728,
1830,
3780,
13,
225,
288,
565,
2240,
12,
2011,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
22132,
9186,
11728,
43,
16704,
28131,
261,
11728,
1830,
3780,
13,
225,
288,
565,
2240,
12,
2011,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assertSame(var_1, var_2); assertSame(var_2, var_3); assertSame(var_3, var_4); | assertSame(var_1, var_2); assertSame(var_2, var_3); assertSame(var_3, var_4); | public void testForLoop() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("void f() { \n"); //$NON-NLS-1$ buffer.append(" for( int i = 0; i < 5; i++ ) { \n"); //$NON-NLS-1$ buffer.append(" i; \n"); //$NON-NLS-1$ buffer.append(" } \n"); //$NON-NLS-1$ buffer.append("} \n"); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.C); //void f() { IASTFunctionDefinition fdef = (IASTFunctionDefinition) tu .getDeclarations()[0]; IASTCompoundStatement compound = (IASTCompoundStatement) fdef.getBody(); // for( IASTForStatement for_stmt = (IASTForStatement) compound.getStatements()[0]; // int i = 0; assertNull(for_stmt.getInitExpression()); IASTSimpleDeclaration initDecl = (IASTSimpleDeclaration) for_stmt .getInitDeclaration(); IASTDeclarator dtor = initDecl.getDeclarators()[0]; IASTName name_i = dtor.getName(); // i < 5; IASTBinaryExpression exp = (IASTBinaryExpression) for_stmt.getCondition(); IASTIdExpression id_i = (IASTIdExpression) exp.getOperand1(); IASTName name_i2 = id_i.getName(); IASTLiteralExpression lit_5 = (IASTLiteralExpression) exp.getOperand2(); assertEquals(IASTLiteralExpression.lk_integer_constant, lit_5.getKind()); // i++ ) { IASTUnaryExpression un = (IASTUnaryExpression) for_stmt .getIterationExpression(); IASTIdExpression id_i2 = (IASTIdExpression) un.getOperand(); IASTName name_i3 = id_i2.getName(); assertEquals(IASTUnaryExpression.op_postFixIncr, un.getOperator()); // i; compound = (IASTCompoundStatement) for_stmt.getBody(); IASTExpressionStatement exprSt = (IASTExpressionStatement) compound .getStatements()[0]; IASTIdExpression id_i3 = (IASTIdExpression) exprSt.getExpression(); IASTName name_i4 = id_i3.getName(); //bindings IVariable var_1 = (IVariable) name_i4.resolveBinding(); IVariable var_2 = (IVariable) name_i.resolveBinding(); IVariable var_3 = (IVariable) name_i2.resolveBinding(); IVariable var_4 = (IVariable) name_i3.resolveBinding(); assertSame(var_1, var_2); assertSame(var_2, var_3); assertSame(var_3, var_4); // test tu.getDeclarations(IBinding) IASTName[] decls = tu.getDeclarations(fdef.getDeclarator().getName() .resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], fdef.getDeclarator().getName()); decls = tu.getDeclarations(name_i.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_i); decls = tu.getDeclarations(name_i2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_i); decls = tu.getDeclarations(name_i3.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_i); decls = tu.getDeclarations(name_i4.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_i); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/98145350e052e39e57313251e0f805a20472a08d/AST2Tests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
31451,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
5621,
1377,
1613,
18,
6923,
2932,
6459,
284,
1435,
288,
7682,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
282,
364,
12,
509,
277,
273,
374,
31,
277,
411,
1381,
31,
277,
9904,
262,
288,
225,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
9079,
1613,
18,
6923,
2932,
1377,
277,
31,
21821,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
282,
289,
1171,
9079,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
97,
21394,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
467,
9053,
6717,
2802,
28325,
273,
1109,
12,
4106,
18,
10492,
9334,
6783,
3779,
18,
39,
1769,
1377,
368,
6459,
284,
1435,
288,
1377,
467,
9053,
2083,
1852,
284,
536,
273,
261,
45,
9053,
2083,
1852,
13,
28325,
5411,
263,
588,
21408,
1435,
63,
20,
15533,
1377,
467,
9053,
16835,
3406,
11360,
273,
261,
45,
9053,
16835,
3406,
13,
284,
536,
18,
588,
2250,
5621,
1377,
368,
282,
364,
12,
1377,
467,
9053,
1290,
3406,
364,
67,
10589,
273,
261,
45,
9053,
1290,
3406,
13,
11360,
18,
588,
14663,
1435,
63,
20,
15533,
1377,
368,
3639,
509,
277,
273,
374,
31,
1377,
1815,
2041,
12,
1884,
67,
10589,
18,
588,
2570,
2300,
10663,
1377,
467,
9053,
5784,
6094,
1208,
3456,
273,
261,
45,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
31451,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
5621,
1377,
1613,
18,
6923,
2932,
6459,
284,
1435,
288,
7682,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
282,
364,
12,
509,
277,
273,
374,
31,
277,
411,
1381,
31,
277,
9904,
262,
288,
225,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
9079,
1613,
18,
6923,
2932,
1377,
277,
31,
21821,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
282,
289,
1171,
9079,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
97,
21394,
521,
82,
8863,
4329,
3993,
17,
2
] |
final String casServiceUrl = URLEncoder.encode(PropertiesManager .getProperty("cas.serviceUrl"), URL_ENCODING); | final String casServiceUrl = URLEncoder.encode(CASServiceUrlProvider .getServiceUrl(requestURL), URL_ENCODING); | private CASReceipt getCASReceipt(final String casTicket) throws ExcepcaoAutenticacao { CASReceipt receipt = null; try { final String casValidateUrl = PropertiesManager.getProperty("cas.validateUrl"); final String casServiceUrl = URLEncoder.encode(PropertiesManager .getProperty("cas.serviceUrl"), URL_ENCODING); ProxyTicketValidator pv = new ProxyTicketValidator(); pv.setCasValidateUrl(casValidateUrl); pv.setServiceTicket(casTicket); pv.setService(casServiceUrl); pv.setRenew(false); receipt = CASReceipt.getReceipt(pv); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } catch (CASAuthenticationException e) { throw new ExcepcaoAutenticacao("bad.authentication", e); } return receipt; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/921f60b35a9765077b61a9ddf4689bf33636b7f5/Authenticate.java/clean/src/net/sourceforge/fenixedu/applicationTier/Servico/Authenticate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
18293,
15636,
1927,
3033,
15636,
12,
6385,
514,
8697,
13614,
13,
1216,
1312,
311,
2436,
6033,
7150,
4499,
1077,
6033,
288,
3639,
18293,
15636,
16030,
273,
446,
31,
3639,
775,
288,
5411,
727,
514,
8697,
4270,
1489,
273,
6183,
1318,
18,
588,
1396,
2932,
6349,
18,
5662,
1489,
8863,
5411,
727,
514,
8697,
1179,
1489,
273,
1976,
7204,
18,
3015,
12,
2297,
1318,
10792,
263,
588,
1396,
2932,
6349,
18,
3278,
1489,
6,
3631,
1976,
67,
14672,
1769,
5411,
7659,
13614,
5126,
9770,
273,
394,
7659,
13614,
5126,
5621,
5411,
9770,
18,
542,
39,
345,
4270,
1489,
12,
6349,
4270,
1489,
1769,
5411,
9770,
18,
542,
1179,
13614,
12,
6349,
13614,
1769,
5411,
9770,
18,
542,
1179,
12,
6349,
1179,
1489,
1769,
5411,
9770,
18,
542,
24058,
12,
5743,
1769,
5411,
16030,
273,
18293,
15636,
18,
588,
15636,
12,
25224,
1769,
3639,
289,
1044,
261,
8544,
13836,
425,
13,
288,
5411,
604,
394,
3235,
12,
73,
1769,
3639,
289,
1044,
261,
20221,
6492,
503,
425,
13,
288,
5411,
604,
394,
1312,
311,
2436,
6033,
7150,
4499,
1077,
6033,
2932,
8759,
18,
12293,
3113,
425,
1769,
3639,
289,
3639,
327,
16030,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
18293,
15636,
1927,
3033,
15636,
12,
6385,
514,
8697,
13614,
13,
1216,
1312,
311,
2436,
6033,
7150,
4499,
1077,
6033,
288,
3639,
18293,
15636,
16030,
273,
446,
31,
3639,
775,
288,
5411,
727,
514,
8697,
4270,
1489,
273,
6183,
1318,
18,
588,
1396,
2932,
6349,
18,
5662,
1489,
8863,
5411,
727,
514,
8697,
1179,
1489,
273,
1976,
7204,
18,
3015,
12,
2297,
1318,
10792,
263,
588,
1396,
2932,
6349,
18,
3278,
1489,
6,
3631,
1976,
67,
14672,
1769,
5411,
7659,
13614,
5126,
9770,
273,
394,
7659,
13614,
5126,
5621,
5411,
9770,
18,
542,
39,
345,
4270,
1489,
12,
6349,
4270,
1489,
1769,
5411,
9770,
18,
542,
1179,
13614,
12,
6349,
13614,
1769,
5411,
9770,
18,
542,
1179,
2
] |
return !(ctx == null || now - ctx.lastUsedTime() > 2*Node.HANDSHAKE_TIMEOUT); | return !(ctx == null || now - ctx.lastUsedTime() > Node.HANDSHAKE_TIMEOUT); | public boolean hasLiveHandshake(long now) { if(ctx != null) Logger.minor(this, "Last used: "+(now - ctx.lastUsedTime())); return !(ctx == null || now - ctx.lastUsedTime() > 2*Node.HANDSHAKE_TIMEOUT); } | 50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/2ce366adb197052e85bfbcf0b5e5af623a9f2fe1/PeerNode.java/buggy/src/freenet/node/PeerNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
12328,
14545,
12,
5748,
2037,
13,
288,
3639,
309,
12,
5900,
480,
446,
13,
5411,
4242,
18,
17364,
12,
2211,
16,
315,
3024,
1399,
30,
13773,
12,
3338,
300,
1103,
18,
2722,
6668,
950,
1435,
10019,
3639,
327,
401,
12,
5900,
422,
446,
747,
2037,
300,
1103,
18,
2722,
6668,
950,
1435,
405,
2029,
18,
12346,
8325,
6859,
67,
9503,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
12328,
14545,
12,
5748,
2037,
13,
288,
3639,
309,
12,
5900,
480,
446,
13,
5411,
4242,
18,
17364,
12,
2211,
16,
315,
3024,
1399,
30,
13773,
12,
3338,
300,
1103,
18,
2722,
6668,
950,
1435,
10019,
3639,
327,
401,
12,
5900,
422,
446,
747,
2037,
300,
1103,
18,
2722,
6668,
950,
1435,
405,
2029,
18,
12346,
8325,
6859,
67,
9503,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
buffer.append(Util.bind("classformat.ldc_w_string", new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC_W], Integer.toString(index), constantPoolEntry.getStringValue() })); | buffer.append(Messages.bind(Messages.classformat_ldc_w_string, (new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC_W], Integer.toString(index), constantPoolEntry.getStringValue() }))); | public void _ldc_w(int pc, int index, IConstantPoolEntry constantPoolEntry) { dumpPcNumber(pc); switch (constantPoolEntry.getKind()) { case IConstantPoolConstant.CONSTANT_Float : buffer.append(Util.bind("classformat.ldc_w_float", //$NON-NLS-1$ new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC_W], Integer.toString(index), Float.toString(constantPoolEntry.getFloatValue()) })); break; case IConstantPoolConstant.CONSTANT_Integer : buffer.append(Util.bind("classformat.ldc_w_integer", //$NON-NLS-1$ new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC_W], Integer.toString(index), Integer.toString(constantPoolEntry.getIntegerValue()) })); break; case IConstantPoolConstant.CONSTANT_String : buffer.append(Util.bind("classformat.ldc_w_string", //$NON-NLS-1$ new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC_W], Integer.toString(index), constantPoolEntry.getStringValue() })); break; case IConstantPoolConstant.CONSTANT_Class : buffer.append(Util.bind("classformat.ldc_w_class", //$NON-NLS-1$ new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC_W], Integer.toString(index), returnConstantClassName(constantPoolEntry) })); } writeNewLine(); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/7ed8fb3f335f5407b01a590a0c668733ebc19aa6/DefaultBytecodeVisitor.java/clean/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/DefaultBytecodeVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
389,
1236,
71,
67,
91,
12,
474,
6125,
16,
509,
770,
16,
467,
6902,
2864,
1622,
5381,
2864,
1622,
13,
288,
202,
202,
8481,
28136,
1854,
12,
2436,
1769,
202,
202,
9610,
261,
14384,
2864,
1622,
18,
588,
5677,
10756,
288,
1082,
202,
3593,
467,
6902,
2864,
6902,
18,
25878,
67,
4723,
294,
9506,
202,
4106,
18,
6923,
12,
1304,
18,
4376,
2932,
1106,
2139,
18,
1236,
71,
67,
91,
67,
5659,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
2704,
514,
8526,
288,
25083,
202,
22808,
780,
1972,
18,
15377,
5572,
67,
16257,
63,
45,
22808,
29668,
4758,
2102,
18,
48,
5528,
67,
59,
6487,
25083,
202,
4522,
18,
10492,
12,
1615,
3631,
25083,
202,
4723,
18,
10492,
12,
14384,
2864,
1622,
18,
588,
4723,
620,
10756,
6862,
202,
6792,
1769,
9506,
202,
8820,
31,
1082,
202,
3593,
467,
6902,
2864,
6902,
18,
25878,
67,
4522,
294,
9506,
202,
4106,
18,
6923,
12,
1304,
18,
4376,
2932,
1106,
2139,
18,
1236,
71,
67,
91,
67,
7745,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
2704,
514,
8526,
288,
25083,
202,
22808,
780,
1972,
18,
15377,
5572,
67,
16257,
63,
45,
22808,
29668,
4758,
2102,
18,
48,
5528,
67,
59,
6487,
25083,
202,
4522,
18,
10492,
12,
1615,
3631,
25083,
202,
4522,
18,
10492,
12,
14384,
2864,
1622,
18,
588,
4522,
620,
10756,
6862,
202,
6792,
1769,
9506,
202,
8820,
31,
1082,
202,
3593,
467,
6902,
2864,
6902,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
389,
1236,
71,
67,
91,
12,
474,
6125,
16,
509,
770,
16,
467,
6902,
2864,
1622,
5381,
2864,
1622,
13,
288,
202,
202,
8481,
28136,
1854,
12,
2436,
1769,
202,
202,
9610,
261,
14384,
2864,
1622,
18,
588,
5677,
10756,
288,
1082,
202,
3593,
467,
6902,
2864,
6902,
18,
25878,
67,
4723,
294,
9506,
202,
4106,
18,
6923,
12,
1304,
18,
4376,
2932,
1106,
2139,
18,
1236,
71,
67,
91,
67,
5659,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
2704,
514,
8526,
288,
25083,
202,
22808,
780,
1972,
18,
15377,
5572,
67,
16257,
63,
45,
22808,
29668,
4758,
2102,
18,
48,
5528,
67,
59,
6487,
25083,
202,
4522,
18,
10492,
12,
1615,
2
] |
(!this.segment.nonFullBlocksAllowed) || dontEnterImplicitArchives); | (!this.segment.nonFullBlocksAllowed) || dontEnterImplicitArchives, segment.blockFetchContext.localRequestOnly || completedTries == 0); | private void realRun() { // Do the fetch Fetcher f = new Fetcher(uri, this.segment.blockFetchContext); try { FetchResult fr = f.realRun(new ClientMetadata(), segment.recursionLevel, uri, (!this.segment.nonFullBlocksAllowed) || dontEnterImplicitArchives); actuallyFetched = true; fetchedData = fr.data; Logger.minor(this, "Fetched "+fetchedData.size()+" bytes on "+this); tracker.success(this); } catch (MetadataParseException e) { fatalError(e, FetchException.INVALID_METADATA); } catch (FetchException e) { int code = e.getMode(); switch(code) { case FetchException.ARCHIVE_FAILURE: case FetchException.BLOCK_DECODE_ERROR: case FetchException.HAS_MORE_METASTRINGS: case FetchException.INVALID_METADATA: case FetchException.NOT_IN_ARCHIVE: case FetchException.TOO_DEEP_ARCHIVE_RECURSION: case FetchException.TOO_MANY_ARCHIVE_RESTARTS: case FetchException.TOO_MANY_METADATA_LEVELS: case FetchException.TOO_MANY_REDIRECTS: case FetchException.TOO_MUCH_RECURSION: case FetchException.UNKNOWN_METADATA: case FetchException.UNKNOWN_SPLITFILE_METADATA: // Fatal, probably an error on insert fatalError(e, code); return; case FetchException.DATA_NOT_FOUND: case FetchException.ROUTE_NOT_FOUND: case FetchException.REJECTED_OVERLOAD: case FetchException.TRANSFER_FAILED: // Non-fatal nonfatalError(e, code); return; case FetchException.BUCKET_ERROR: case FetchException.INTERNAL_ERROR: // Maybe fatal nonfatalError(e, code); return; } } catch (ArchiveFailureException e) { fatalError(e, FetchException.ARCHIVE_FAILURE); } catch (ArchiveRestartException e) { Logger.error(this, "Got an ArchiveRestartException in a splitfile - WTF?"); fatalError(e, FetchException.ARCHIVE_FAILURE); } } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/308b196ee77f38c4a2c6b11b7182c054b6b5e3e6/BlockFetcher.java/buggy/src/freenet/client/BlockFetcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2863,
1997,
1435,
288,
202,
202,
759,
2256,
326,
2158,
202,
202,
16855,
284,
273,
394,
8065,
264,
12,
1650,
16,
333,
18,
9273,
18,
2629,
5005,
1042,
1769,
202,
202,
698,
288,
1082,
202,
5005,
1253,
3812,
273,
284,
18,
7688,
1997,
12,
2704,
2445,
2277,
9334,
3267,
18,
31347,
2355,
16,
2003,
16,
4405,
202,
12,
5,
2211,
18,
9273,
18,
5836,
5080,
6450,
5042,
13,
747,
14046,
10237,
15787,
12269,
3606,
1769,
1082,
202,
621,
3452,
30771,
273,
638,
31,
1082,
202,
5754,
329,
751,
273,
3812,
18,
892,
31,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
30771,
13773,
5754,
329,
751,
18,
1467,
1435,
9078,
1731,
603,
13773,
2211,
1769,
1082,
202,
16543,
18,
4768,
12,
2211,
1769,
202,
202,
97,
1044,
261,
2277,
13047,
425,
13,
288,
1082,
202,
30709,
668,
12,
73,
16,
8065,
503,
18,
9347,
67,
22746,
1769,
202,
202,
97,
1044,
261,
5005,
503,
425,
13,
288,
1082,
202,
474,
981,
273,
425,
18,
588,
2309,
5621,
1082,
202,
9610,
12,
710,
13,
288,
1082,
202,
3593,
8065,
503,
18,
10586,
5354,
67,
17623,
30,
1082,
202,
3593,
8065,
503,
18,
11403,
67,
1639,
5572,
67,
3589,
30,
1082,
202,
3593,
8065,
503,
18,
27765,
67,
31078,
67,
19294,
5804,
55,
30,
1082,
202,
3593,
8065,
503,
18,
9347,
67,
22746,
30,
1082,
202,
3593,
8065,
503,
18,
4400,
67,
706,
67,
10586,
5354,
30,
1082,
202,
3593,
8065,
503,
18,
4296,
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,
2863,
1997,
1435,
288,
202,
202,
759,
2256,
326,
2158,
202,
202,
16855,
284,
273,
394,
8065,
264,
12,
1650,
16,
333,
18,
9273,
18,
2629,
5005,
1042,
1769,
202,
202,
698,
288,
1082,
202,
5005,
1253,
3812,
273,
284,
18,
7688,
1997,
12,
2704,
2445,
2277,
9334,
3267,
18,
31347,
2355,
16,
2003,
16,
4405,
202,
12,
5,
2211,
18,
9273,
18,
5836,
5080,
6450,
5042,
13,
747,
14046,
10237,
15787,
12269,
3606,
1769,
1082,
202,
621,
3452,
30771,
273,
638,
31,
1082,
202,
5754,
329,
751,
273,
3812,
18,
892,
31,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
30771,
13773,
5754,
329,
751,
18,
1467,
1435,
9078,
1731,
603,
13773,
2211,
2
] |
characterKey); | character); | protected final void doSetUp() throws NotDefinedException, Exception { super.doSetUp(); /* * The constants to use in creating the various objects. The platform * locale count must be greater than or equal to the number of deletion * markers. Deletion markers are typically created based on the platform * or locale. */ final int contextTreeDepth = 40; final int schemeDepth = 20; final int bindingCount = 5000; final int platformLocaleCount = 1400; final int deletionMarkers = 500; final String currentLocale = Locale.getDefault().toString(); final String currentPlatform = SWT.getPlatform(); // Set-up a table of modifier keys. final ModifierKey[] modifierKeys0 = {}; final ModifierKey[] modifierKeys1 = { ModifierKey.ALT }; final ModifierKey[] modifierKeys2 = { ModifierKey.COMMAND }; final ModifierKey[] modifierKeys3 = { ModifierKey.CTRL }; final ModifierKey[] modifierKeys4 = { ModifierKey.SHIFT }; final ModifierKey[] modifierKeys5 = { ModifierKey.ALT, ModifierKey.COMMAND }; final ModifierKey[] modifierKeys6 = { ModifierKey.ALT, ModifierKey.CTRL }; final ModifierKey[] modifierKeys7 = { ModifierKey.ALT, ModifierKey.SHIFT }; final ModifierKey[] modifierKeys8 = { ModifierKey.COMMAND, ModifierKey.CTRL }; final ModifierKey[] modifierKeys9 = { ModifierKey.COMMAND, ModifierKey.SHIFT }; final ModifierKey[] modifierKeys10 = { ModifierKey.CTRL, ModifierKey.SHIFT }; final ModifierKey[] modifierKeys11 = { ModifierKey.ALT, ModifierKey.COMMAND, ModifierKey.CTRL }; final ModifierKey[] modifierKeys12 = { ModifierKey.ALT, ModifierKey.COMMAND, ModifierKey.SHIFT }; final ModifierKey[] modifierKeys13 = { ModifierKey.ALT, ModifierKey.CTRL, ModifierKey.SHIFT }; final ModifierKey[] modifierKeys14 = { ModifierKey.COMMAND, ModifierKey.CTRL, ModifierKey.SHIFT }; final ModifierKey[] modifierKeys15 = { ModifierKey.ALT, ModifierKey.COMMAND, ModifierKey.CTRL, ModifierKey.SHIFT }; final ModifierKey[][] modifierKeyTable = { modifierKeys0, modifierKeys1, modifierKeys2, modifierKeys3, modifierKeys4, modifierKeys5, modifierKeys6, modifierKeys7, modifierKeys8, modifierKeys9, modifierKeys10, modifierKeys11, modifierKeys12, modifierKeys13, modifierKeys14, modifierKeys15 }; // Initialize the contexts. contextManager = new ContextManager(); final List activeContextIds = new ArrayList(); createContext(contextManager, null, contextTreeDepth, activeContextIds); contextManager.setActiveContextIds(new HashSet(activeContextIds)); // Initialize the schemes. bindingManager = new BindingManager(contextManager); final List schemes = new ArrayList(); createScheme(bindingManager, null, schemeDepth, schemes); bindingManager .setActiveScheme((Scheme) schemes.get(schemes.size() - 1)); // Create the deletion markers. final Set bindings = new HashSet(); for (int i = 0; i < deletionMarkers; i++) { /* * Set-up the locale and platform. These are based on the numbers * given above. */ String locale = null; String platform = null; if (i < platformLocaleCount) { switch (i % 4) { case 0: locale = currentLocale; break; case 1: platform = currentPlatform; break; case 2: locale = "gibberish"; break; case 3: platform = "gibberish"; break; } } // Build a key sequence. final char character = (char) ('A' + (i % 26)); final CharacterKey characterKey = CharacterKey .getInstance(character); final ModifierKey[] modifierKeys = modifierKeyTable[(i / 26) % modifierKeyTable.length]; final KeyStroke keyStroke = KeyStroke.getInstance(modifierKeys, characterKey); final KeySequence keySequence = KeySequence.getInstance(keyStroke); // Build the other parameters. final String commandId = null; final String schemeId = ((Scheme) schemes.get(i % schemes.size())) .getId(); final String contextId = (String) activeContextIds.get(i % activeContextIds.size()); final int type = (i % 2); // Construct the binding. final Binding binding = new KeyBinding(keySequence, commandId, schemeId, contextId, locale, platform, null, type); bindings.add(binding); } /* * Now create the regular bindings. By using the same loop structure and * resetting the index to zero, we ensure that the deletion markers will * actually delete something. */ for (int i = 0; i < bindingCount - deletionMarkers; i++) { /* * Set-up the locale and platform for those bindings that will not * be used to match the above deletion markers. These are based on * the numbers given above. */ String locale = null; String platform = null; if ((i > deletionMarkers) && (i < platformLocaleCount)) { switch (i % 4) { case 0: locale = currentLocale; break; case 1: platform = currentPlatform; break; case 2: locale = "gibberish"; break; case 3: platform = "gibberish"; break; } } // Build a key sequence. final char character = (char) ('A' + (i % 26)); final CharacterKey characterKey = CharacterKey .getInstance(character); final ModifierKey[] modifierKeys = modifierKeyTable[(i / 26) % modifierKeyTable.length]; final KeyStroke keyStroke = KeyStroke.getInstance(modifierKeys, characterKey); final KeySequence keySequence = KeySequence.getInstance(keyStroke); // Build the other parameters. final String commandId = "command" + i; final String schemeId = ((Scheme) schemes.get(i % schemes.size())) .getId(); final String contextId = (String) activeContextIds.get(i % activeContextIds.size()); final int type = (i % 2); // Construct the binding. final Binding binding = new KeyBinding(keySequence, commandId, schemeId, contextId, locale, platform, null, type); bindings.add(binding); } bindingManager.setBindings(bindings); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/092230ba080f34842abb8d636b3b6894254f8cc5/CommandsPerformanceTest.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/performance/CommandsPerformanceTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
741,
694,
1211,
1435,
1216,
2288,
8116,
503,
16,
1185,
288,
202,
202,
9565,
18,
2896,
694,
1211,
5621,
202,
202,
20308,
1082,
380,
1021,
6810,
358,
999,
316,
4979,
326,
11191,
2184,
18,
1021,
4072,
1082,
380,
2573,
1056,
1297,
506,
6802,
2353,
578,
3959,
358,
326,
1300,
434,
10899,
1082,
380,
11754,
18,
31642,
11754,
854,
14755,
2522,
2511,
603,
326,
4072,
1082,
380,
578,
2573,
18,
1082,
1195,
202,
202,
6385,
509,
819,
2471,
6148,
273,
8063,
31,
202,
202,
6385,
509,
4355,
6148,
273,
4200,
31,
202,
202,
6385,
509,
5085,
1380,
273,
20190,
31,
202,
202,
6385,
509,
4072,
3916,
1380,
273,
5045,
713,
31,
202,
202,
6385,
509,
10899,
21644,
273,
6604,
31,
202,
202,
6385,
514,
783,
3916,
273,
6458,
18,
588,
1868,
7675,
10492,
5621,
202,
202,
6385,
514,
783,
8201,
273,
348,
8588,
18,
588,
8201,
5621,
202,
202,
759,
1000,
17,
416,
279,
1014,
434,
9606,
1311,
18,
202,
202,
6385,
12832,
653,
8526,
9606,
2396,
20,
273,
2618,
31,
202,
202,
6385,
12832,
653,
8526,
9606,
2396,
21,
273,
288,
12832,
653,
18,
18255,
289,
31,
202,
202,
6385,
12832,
653,
8526,
9606,
2396,
22,
273,
288,
12832,
653,
18,
19104,
289,
31,
202,
202,
6385,
12832,
653,
8526,
9606,
2396,
23,
273,
288,
12832,
653,
18,
23876,
48,
289,
31,
202,
202,
6385,
12832,
653,
8526,
9606,
2396,
24,
273,
288,
12832,
653,
18,
23191,
289,
31,
202,
202,
6385,
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,
727,
918,
741,
694,
1211,
1435,
1216,
2288,
8116,
503,
16,
1185,
288,
202,
202,
9565,
18,
2896,
694,
1211,
5621,
202,
202,
20308,
1082,
380,
1021,
6810,
358,
999,
316,
4979,
326,
11191,
2184,
18,
1021,
4072,
1082,
380,
2573,
1056,
1297,
506,
6802,
2353,
578,
3959,
358,
326,
1300,
434,
10899,
1082,
380,
11754,
18,
31642,
11754,
854,
14755,
2522,
2511,
603,
326,
4072,
1082,
380,
578,
2573,
18,
1082,
1195,
202,
202,
6385,
509,
819,
2471,
6148,
273,
8063,
31,
202,
202,
6385,
509,
4355,
6148,
273,
4200,
31,
202,
202,
6385,
509,
5085,
1380,
273,
20190,
31,
202,
202,
6385,
509,
4072,
3916,
1380,
273,
5045,
713,
31,
202,
202,
6385,
509,
2
] |
public Object execMethod (int methodId, IdFunction function, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case Id_abs: return wrap_double (js_abs(ScriptRuntime.toNumber(args, 0))); case Id_acos: return wrap_double (js_acos(ScriptRuntime.toNumber(args, 0))); case Id_asin: return wrap_double (js_asin(ScriptRuntime.toNumber(args, 0))); case Id_atan: return wrap_double (js_atan(ScriptRuntime.toNumber(args, 0))); case Id_atan2: return wrap_double (js_atan2(ScriptRuntime.toNumber(args, 0), ScriptRuntime.toNumber(args, 1))); case Id_ceil: return wrap_double (js_ceil(ScriptRuntime.toNumber(args, 0))); case Id_cos: return wrap_double (js_cos(ScriptRuntime.toNumber(args, 0))); case Id_exp: return wrap_double (js_exp(ScriptRuntime.toNumber(args, 0))); case Id_floor: return wrap_double (js_floor(ScriptRuntime.toNumber(args, 0))); case Id_log: return wrap_double (js_log(ScriptRuntime.toNumber(args, 0))); case Id_max: return wrap_double (js_max(args)); case Id_min: return wrap_double (js_min(args)); case Id_pow: return wrap_double (js_pow(ScriptRuntime.toNumber(args, 0), ScriptRuntime.toNumber(args, 1))); case Id_random: return wrap_double (js_random()); case Id_round: return wrap_double (js_round(ScriptRuntime.toNumber(args, 0))); case Id_sin: return wrap_double (js_sin(ScriptRuntime.toNumber(args, 0))); case Id_sqrt: return wrap_double (js_sqrt(ScriptRuntime.toNumber(args, 0))); case Id_tan: return wrap_double (js_tan(ScriptRuntime.toNumber(args, 0))); } return null; } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeMath.java/clean/js/rhino/src/org/mozilla/javascript/NativeMath.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
445,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1620,
261,
2039,
548,
13,
288,
10792,
648,
3124,
67,
5113,
30,
327,
2193,
67,
9056,
7734,
261,
2924,
67,
5113,
12,
3651,
5576,
18,
869,
1854,
12,
1968,
16,
374,
3719,
1769,
13491,
648,
3124,
67,
1077,
538,
30,
327,
2193,
67,
9056,
7734,
261,
2924,
67,
1077,
538,
12,
3651,
5576,
18,
869,
1854,
12,
1968,
16,
374,
3719,
1769,
13491,
648,
3124,
67,
345,
267,
30,
327,
2193,
67,
9056,
7734,
261,
2924,
67,
345,
267,
12,
3651,
5576,
18,
869,
1854,
12,
1968,
16,
374,
3719,
1769,
13491,
648,
3124,
67,
270,
304,
30,
327,
2193,
67,
9056,
7734,
261,
2924,
67,
270,
304,
12,
3651,
5576,
18,
869,
1854,
12,
1968,
16,
374,
3719,
1769,
13491,
648,
3124,
67,
270,
304,
22,
30,
327,
2193,
67,
9056,
7734,
261,
2924,
67,
270,
304,
22,
12,
3651,
5576,
18,
869,
1854,
12,
1968,
16,
374,
3631,
12900,
7739,
5576,
18,
869,
1854,
12,
1968,
16,
404,
3719,
1769,
13491,
648,
3124,
67,
311,
330,
30,
327,
2193,
67,
9056,
7734,
261,
2924,
67,
311,
330,
12,
3651,
5576,
18,
869,
1854,
12,
1968,
16,
374,
3719,
1769,
13491,
648,
3124,
67,
14445,
30,
327,
2193,
67,
9056,
7734,
261,
2924,
67,
14445,
12,
3651,
5576,
18,
869,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
445,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1620,
261,
2039,
548,
13,
288,
10792,
648,
3124,
67,
5113,
30,
327,
2193,
67,
9056,
7734,
261,
2924,
67,
5113,
12,
3651,
5576,
18,
869,
1854,
12,
1968,
16,
374,
3719,
1769,
13491,
648,
3124,
67,
1077,
538,
30,
327,
2193,
67,
9056,
7734,
261,
2924,
67,
1077,
538,
12,
3651,
5576,
18,
869,
1854,
12,
1968,
16,
374,
3719,
1769,
13491,
648,
3124,
67,
345,
267,
30,
327,
2193,
67,
9056,
7734,
261,
2924,
67,
345,
267,
12,
3651,
5576,
18,
2
] |
||
arkNo = Long.parseLong(arkNumber); | arkNo = Long.parseLong(arkNumber) + 1; | private boolean parseARK(SimpleFieldSet fs) { USK ark = null; long arkNo = 0; try { String arkNumber = fs.get("ark.number"); if(arkNumber != null) { arkNo = Long.parseLong(arkNumber); } String arkPubKey = fs.get("ark.pubURI"); if(arkPubKey != null) { FreenetURI uri = new FreenetURI(arkPubKey); ClientSSK ssk = new ClientSSK(uri); ark = new USK(ssk, arkNo); } } catch (MalformedURLException e) { Logger.error(this, "Couldn't parse ARK info for "+this+": "+e, e); } catch (NumberFormatException e) { Logger.error(this, "Couldn't parse ARK info for "+this+": "+e, e); } if(ark != null) { if(myARK == null || (myARK != ark && !myARK.equals(ark))) { myARK = ark; return true; } } return false; } | 49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/c68f335b2e7b5963f848fe98c5fdf9f7c71ba69f/PeerNode.java/buggy/src/freenet/node/PeerNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1109,
9584,
12,
5784,
974,
694,
2662,
13,
288,
3639,
587,
11129,
419,
79,
273,
446,
31,
3639,
1525,
419,
79,
2279,
273,
374,
31,
3639,
775,
288,
540,
202,
780,
419,
79,
1854,
273,
2662,
18,
588,
2932,
1313,
18,
2696,
8863,
540,
202,
540,
202,
430,
12,
1313,
1854,
480,
446,
13,
288,
540,
202,
202,
1313,
2279,
273,
3407,
18,
2670,
3708,
12,
1313,
1854,
13,
397,
404,
31,
540,
202,
97,
540,
202,
540,
202,
780,
419,
79,
17924,
273,
2662,
18,
588,
2932,
1313,
18,
10174,
3098,
8863,
540,
202,
430,
12,
1313,
17924,
480,
446,
13,
288,
540,
202,
202,
42,
2842,
278,
3098,
2003,
273,
394,
478,
2842,
278,
3098,
12,
1313,
17924,
1769,
540,
202,
202,
1227,
1260,
47,
5202,
79,
273,
394,
2445,
1260,
47,
12,
1650,
1769,
540,
202,
202,
1313,
273,
394,
587,
11129,
12,
1049,
79,
16,
419,
79,
2279,
1769,
540,
202,
97,
3639,
289,
1044,
261,
18695,
20160,
425,
13,
288,
540,
202,
3328,
18,
1636,
12,
2211,
16,
315,
16342,
1404,
1109,
6052,
47,
1123,
364,
13773,
2211,
15,
6877,
13773,
73,
16,
425,
1769,
3639,
289,
1044,
261,
1854,
9291,
425,
13,
288,
540,
202,
3328,
18,
1636,
12,
2211,
16,
315,
16342,
1404,
1109,
6052,
47,
1123,
364,
13773,
2211,
15,
6877,
13773,
73,
16,
425,
1769,
3639,
289,
3639,
309,
12,
1313,
480,
446,
13,
288,
540,
202,
430,
12,
4811,
9584,
422,
446,
747,
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,
3238,
1250,
1109,
9584,
12,
5784,
974,
694,
2662,
13,
288,
3639,
587,
11129,
419,
79,
273,
446,
31,
3639,
1525,
419,
79,
2279,
273,
374,
31,
3639,
775,
288,
540,
202,
780,
419,
79,
1854,
273,
2662,
18,
588,
2932,
1313,
18,
2696,
8863,
540,
202,
540,
202,
430,
12,
1313,
1854,
480,
446,
13,
288,
540,
202,
202,
1313,
2279,
273,
3407,
18,
2670,
3708,
12,
1313,
1854,
13,
397,
404,
31,
540,
202,
97,
540,
202,
540,
202,
780,
419,
79,
17924,
273,
2662,
18,
588,
2932,
1313,
18,
10174,
3098,
8863,
540,
202,
430,
12,
1313,
17924,
480,
446,
13,
288,
540,
202,
202,
42,
2842,
278,
3098,
2003,
273,
394,
478,
2842,
278,
2
] |
match(LITERAL_default); | match(LITERAL_function); | public final void prolog() throws RecognitionException, TokenStreamException { traceIn("prolog"); try { // debugging returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST prolog_AST = null; org.exist.xquery.parser.XQueryAST v_AST = null; org.exist.xquery.parser.XQueryAST nd_AST = null; org.exist.xquery.parser.XQueryAST dnd_AST = null; org.exist.xquery.parser.XQueryAST fd_AST = null; { boolean synPredMatched14 = false; if (((LA(1)==XQUERY))) { int _m14 = mark(); synPredMatched14 = true; inputState.guessing++; try { { match(XQUERY); match(VERSION); } } catch (RecognitionException pe) { synPredMatched14 = false; } rewind(_m14); inputState.guessing--; } if ( synPredMatched14 ) { version(); v_AST = (org.exist.xquery.parser.XQueryAST)returnAST; astFactory.addASTChild(currentAST, returnAST); match(SEMICOLON); } else if ((_tokenSet_1.member(LA(1)))) { } else { throw new NoViableAltException(LT(1), getFilename()); } } { _loop25: do { if ((LA(1)==LITERAL_declare||LA(1)==LITERAL_import)) { { boolean synPredMatched18 = false; if (((LA(1)==LITERAL_declare))) { int _m18 = mark(); synPredMatched18 = true; inputState.guessing++; try { { match(LITERAL_declare); match(LITERAL_namespace); } } catch (RecognitionException pe) { synPredMatched18 = false; } rewind(_m18); inputState.guessing--; } if ( synPredMatched18 ) { namespaceDecl(); nd_AST = (org.exist.xquery.parser.XQueryAST)returnAST; astFactory.addASTChild(currentAST, returnAST); } else { boolean synPredMatched20 = false; if (((LA(1)==LITERAL_declare))) { int _m20 = mark(); synPredMatched20 = true; inputState.guessing++; try { { match(LITERAL_declare); match(LITERAL_default); } } catch (RecognitionException pe) { synPredMatched20 = false; } rewind(_m20); inputState.guessing--; } if ( synPredMatched20 ) { defaultNamespaceDecl(); dnd_AST = (org.exist.xquery.parser.XQueryAST)returnAST; astFactory.addASTChild(currentAST, returnAST); } else { boolean synPredMatched22 = false; if (((LA(1)==LITERAL_declare))) { int _m22 = mark(); synPredMatched22 = true; inputState.guessing++; try { { match(LITERAL_declare); match(LITERAL_function); } } catch (RecognitionException pe) { synPredMatched22 = false; } rewind(_m22); inputState.guessing--; } if ( synPredMatched22 ) { functionDecl(); fd_AST = (org.exist.xquery.parser.XQueryAST)returnAST; astFactory.addASTChild(currentAST, returnAST); } else { boolean synPredMatched24 = false; if (((LA(1)==LITERAL_declare))) { int _m24 = mark(); synPredMatched24 = true; inputState.guessing++; try { { match(LITERAL_declare); match(LITERAL_variable); } } catch (RecognitionException pe) { synPredMatched24 = false; } rewind(_m24); inputState.guessing--; } if ( synPredMatched24 ) { varDecl(); astFactory.addASTChild(currentAST, returnAST); } else if ((LA(1)==LITERAL_import)) { moduleImport(); astFactory.addASTChild(currentAST, returnAST); } else { throw new NoViableAltException(LT(1), getFilename()); } }}} } match(SEMICOLON); } else { break _loop25; } } while (true); } prolog_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = prolog_AST; } finally { // debugging traceOut("prolog"); } } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/036ccdd3fe4cdde6cf0f24f284e57caec99eaa4a/XQueryParser.java/buggy/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
450,
1330,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
5129,
382,
2932,
685,
1330,
8863,
202,
202,
698,
288,
368,
10450,
1082,
202,
2463,
9053,
273,
446,
31,
1082,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
450,
1330,
67,
9053,
273,
446,
31,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
331,
67,
9053,
273,
446,
31,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
5346,
67,
9053,
273,
446,
31,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
302,
4880,
67,
9053,
273,
446,
31,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
5194,
67,
9053,
273,
446,
31,
25083,
202,
95,
1082,
202,
6494,
6194,
10391,
15400,
3461,
273,
629,
31,
1082,
202,
430,
261,
12443,
2534,
12,
21,
13,
631,
60,
10753,
20349,
288,
9506,
202,
474,
389,
81,
3461,
273,
2267,
5621,
9506,
202,
11982,
10391,
15400,
3461,
273,
638,
31,
9506,
202,
2630,
1119,
18,
20885,
310,
9904,
31,
9506,
202,
698,
288,
6862,
202,
95,
6862,
202,
1916,
12,
60,
10753,
1769,
6862,
202,
1916,
12,
5757,
1769,
6862,
202,
97,
9506,
202,
97,
9506,
202,
14683,
261,
5650,
7909,
503,
2804,
13,
288,
6862,
202,
11982,
10391,
15400,
3461,
273,
629,
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,
450,
1330,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
5129,
382,
2932,
685,
1330,
8863,
202,
202,
698,
288,
368,
10450,
1082,
202,
2463,
9053,
273,
446,
31,
1082,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
450,
1330,
67,
9053,
273,
446,
31,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
331,
67,
9053,
273,
446,
31,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
5346,
67,
9053,
273,
446,
31,
1082,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
2
] |
public static float getFloat(Object array, int index) { | public static float getFloat(Object array, int index) { | public static float getFloat(Object array, int index) { if (array instanceof float[]) return ((float[]) array)[index]; return getLong(array, index); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a7d00a0887a14efd1decaed4a9310cdaa2e752aa/Array.java/buggy/core/src/classpath/java/java/lang/reflect/Array.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1431,
28276,
12,
921,
526,
16,
509,
770,
13,
288,
202,
202,
430,
261,
1126,
1276,
1431,
63,
5717,
1082,
202,
2463,
14015,
5659,
63,
5717,
526,
25146,
1615,
15533,
202,
202,
2463,
11105,
12,
1126,
16,
770,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1431,
28276,
12,
921,
526,
16,
509,
770,
13,
288,
202,
202,
430,
261,
1126,
1276,
1431,
63,
5717,
1082,
202,
2463,
14015,
5659,
63,
5717,
526,
25146,
1615,
15533,
202,
202,
2463,
11105,
12,
1126,
16,
770,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (openable == null) | if (openable == null) { | private void addOpenWithMenu(IMenuManager aMenu) { IStructuredSelection ss = (IStructuredSelection) getContext() .getSelection(); if (ss == null || ss.size() != 1) return; Object o = ss.getFirstElement(); // first try IResource IAdaptable openable = (IAdaptable) AdaptabilityUtility.getAdapter(o, IResource.class); // otherwise try ResourceMapping if (openable == null) openable = (IAdaptable) AdaptabilityUtility.getAdapter(o, ResourceMapping.class); // verify the resource is an IFile else if (((IResource) openable).getType() != IResource.FILE) openable = null; if (openable != null) { // Create a menu flyout. IMenuManager submenu = new MenuManager( WorkbenchNavigatorMessages.OpenActionProvider_OpenWithMenu_label, ICommonMenuConstants.GROUP_OPEN_WITH); submenu.add(new GroupMarker(ICommonMenuConstants.GROUP_TOP)); submenu.add(new OpenWithMenu(viewSite.getPage(), openable)); submenu.add(new GroupMarker(ICommonMenuConstants.GROUP_ADDITIONS)); // Add the submenu. if (submenu.getItems().length > 2 && submenu.isEnabled()) aMenu.appendToGroup(ICommonMenuConstants.GROUP_OPEN_WITH, submenu); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/3a23c3b9bac4db696a0452560047155775a707b7/OpenActionProvider.java/clean/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/OpenActionProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
3678,
1190,
4599,
12,
3445,
2104,
1318,
279,
4599,
13,
288,
202,
202,
45,
30733,
6233,
5202,
273,
261,
45,
30733,
6233,
13,
6474,
1435,
9506,
202,
18,
588,
6233,
5621,
202,
202,
430,
261,
1049,
422,
446,
747,
5202,
18,
1467,
1435,
480,
404,
13,
1082,
202,
2463,
31,
202,
202,
921,
320,
273,
5202,
18,
588,
3759,
1046,
5621,
202,
202,
759,
1122,
775,
467,
1420,
202,
202,
45,
13716,
429,
1696,
429,
273,
261,
45,
13716,
429,
13,
22792,
2967,
6497,
18,
588,
4216,
12,
83,
16,
9506,
202,
45,
1420,
18,
1106,
1769,
202,
202,
759,
3541,
775,
2591,
3233,
202,
202,
430,
261,
3190,
429,
422,
446,
13,
1082,
202,
3190,
429,
273,
261,
45,
13716,
429,
13,
22792,
2967,
6497,
18,
588,
4216,
12,
83,
16,
6862,
202,
1420,
3233,
18,
1106,
1769,
202,
202,
759,
3929,
326,
1058,
353,
392,
467,
812,
202,
202,
12107,
309,
261,
12443,
45,
1420,
13,
1696,
429,
2934,
588,
559,
1435,
480,
467,
1420,
18,
3776,
13,
1082,
202,
3190,
429,
273,
446,
31,
202,
202,
430,
261,
3190,
429,
480,
446,
13,
288,
1082,
202,
759,
1788,
279,
3824,
21434,
659,
18,
1082,
202,
3445,
2104,
1318,
27539,
273,
394,
9809,
1318,
12,
6862,
202,
2421,
22144,
22817,
5058,
18,
3678,
1803,
2249,
67,
3678,
1190,
4599,
67,
1925,
16,
6862,
202,
45,
6517,
4599,
2918,
18,
8468,
67,
11437,
67,
9147,
1769,
1082,
202,
1717,
5414,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
3678,
1190,
4599,
12,
3445,
2104,
1318,
279,
4599,
13,
288,
202,
202,
45,
30733,
6233,
5202,
273,
261,
45,
30733,
6233,
13,
6474,
1435,
9506,
202,
18,
588,
6233,
5621,
202,
202,
430,
261,
1049,
422,
446,
747,
5202,
18,
1467,
1435,
480,
404,
13,
1082,
202,
2463,
31,
202,
202,
921,
320,
273,
5202,
18,
588,
3759,
1046,
5621,
202,
202,
759,
1122,
775,
467,
1420,
202,
202,
45,
13716,
429,
1696,
429,
273,
261,
45,
13716,
429,
13,
22792,
2967,
6497,
18,
588,
4216,
12,
83,
16,
9506,
202,
45,
1420,
18,
1106,
1769,
202,
202,
759,
3541,
775,
2591,
3233,
202,
202,
430,
261,
3190,
429,
422,
446,
13,
1082,
2
] |
message.setValue("Name", this.id); message.setValue("ExpectedVersion", FCP_EXPECTED_VERSION); | message.setValue("Name", id); message.setValue("ExpectedVersion", FCPClientHello.FCP_EXPECTED_VERSION); | public boolean start(FCPQueueManager queueManager) { FCPMessage message = new FCPMessage(); message.setMessageName("ClientHello"); message.setValue("Name", this.id); message.setValue("ExpectedVersion", FCP_EXPECTED_VERSION); this.queryManager.addObserver(this); if(!this.queryManager.writeMessage(message)) { Logger.warning(this, "Unable to say hello ... ;("); return false; } while(!this.receiveAnswer) { try { Thread.sleep(500); } catch(java.lang.InterruptedException e) { /* Dodo j'ai dis ! */ } } if(this.nodeName != null) { Logger.info(this, "Hello "+this.nodeName+", I'm Thaw :)"); } else { Logger.warning(this, "Unable to connect, ID is probably already taken"); return false; } return true; } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/FCPClientHello.java/buggy/src/thaw/fcp/FCPClientHello.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
787,
12,
42,
4258,
3183,
1318,
2389,
1318,
13,
288,
202,
202,
42,
4258,
1079,
883,
273,
394,
478,
4258,
1079,
5621,
202,
202,
2150,
18,
542,
1079,
461,
2932,
1227,
18601,
8863,
202,
202,
2150,
18,
542,
620,
2932,
461,
3113,
333,
18,
350,
1769,
202,
202,
2150,
18,
542,
620,
2932,
6861,
1444,
3113,
478,
4258,
67,
27409,
67,
5757,
1769,
202,
202,
2211,
18,
2271,
1318,
18,
1289,
11048,
12,
2211,
1769,
202,
202,
430,
12,
5,
2211,
18,
2271,
1318,
18,
2626,
1079,
12,
2150,
3719,
288,
1082,
202,
3328,
18,
8551,
12,
2211,
16,
315,
3370,
358,
12532,
19439,
1372,
274,
2932,
1769,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
17523,
12,
5,
2211,
18,
18149,
13203,
13,
288,
1082,
202,
698,
288,
9506,
202,
3830,
18,
19607,
12,
12483,
1769,
1082,
202,
97,
1044,
12,
6290,
18,
4936,
18,
24485,
503,
425,
13,
288,
9506,
202,
20308,
463,
7370,
525,
11,
10658,
1015,
401,
1195,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
12,
2211,
18,
2159,
461,
480,
446,
13,
288,
1082,
202,
3328,
18,
1376,
12,
2211,
16,
315,
18601,
13773,
2211,
18,
2159,
461,
15,
3113,
467,
17784,
935,
2219,
294,
2225,
1769,
202,
202,
97,
469,
288,
1082,
202,
3328,
18,
8551,
12,
2211,
16,
315,
3370,
358,
3077,
16,
1599,
353,
8656,
1818,
9830,
8863,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
2463,
638,
31,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
787,
12,
42,
4258,
3183,
1318,
2389,
1318,
13,
288,
202,
202,
42,
4258,
1079,
883,
273,
394,
478,
4258,
1079,
5621,
202,
202,
2150,
18,
542,
1079,
461,
2932,
1227,
18601,
8863,
202,
202,
2150,
18,
542,
620,
2932,
461,
3113,
333,
18,
350,
1769,
202,
202,
2150,
18,
542,
620,
2932,
6861,
1444,
3113,
478,
4258,
67,
27409,
67,
5757,
1769,
202,
202,
2211,
18,
2271,
1318,
18,
1289,
11048,
12,
2211,
1769,
202,
202,
430,
12,
5,
2211,
18,
2271,
1318,
18,
2626,
1079,
12,
2150,
3719,
288,
1082,
202,
3328,
18,
8551,
12,
2211,
16,
315,
3370,
358,
12532,
19439,
1372,
274,
2932,
1769,
1082,
202,
2463,
629,
31,
202,
202,
2
] |
if (fBackwardAction != null) fBackwardAction.setEnabled(canBackward()); if (fForwardAction != null) fForwardAction.setEnabled(canForward()); } | if (backwardAction != null) backwardAction.setEnabled(canBackward()); if (forwardAction != null) forwardAction.setEnabled(canForward()); } | private void updateActions() { if (fBackwardAction != null) fBackwardAction.setEnabled(canBackward()); if (fForwardAction != null) fForwardAction.setEnabled(canForward()); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/b190d5959ebfa0f0d9f58e5c5f3dda2af91ec32d/NavigationHistory.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/NavigationHistory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
6100,
1435,
288,
202,
202,
430,
261,
74,
26283,
1803,
480,
446,
13,
1082,
202,
74,
26283,
1803,
18,
542,
1526,
12,
4169,
26283,
10663,
202,
202,
430,
261,
74,
8514,
1803,
480,
446,
13,
1082,
202,
74,
8514,
1803,
18,
542,
1526,
12,
4169,
8514,
10663,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
6100,
1435,
288,
202,
202,
430,
261,
74,
26283,
1803,
480,
446,
13,
1082,
202,
74,
26283,
1803,
18,
542,
1526,
12,
4169,
26283,
10663,
202,
202,
430,
261,
74,
8514,
1803,
480,
446,
13,
1082,
202,
74,
8514,
1803,
18,
542,
1526,
12,
4169,
8514,
10663,
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
] |
for (Iterator<PatternElementMatch> i = match.patternElementMatchIterator(); i.hasNext(); ) { PatternElementMatch element = i.next(); InstructionHandle handle = element.getMatchedInstructionInstructionHandle(); Location location = new Location(handle, element.getBasicBlock()); | for (Iterator<BasicBlock> i = cfg.getBlocks(extent).iterator(); i.hasNext(); ) { BasicBlock block = i.next(); for (Iterator<InstructionHandle> j = block.instructionIterator(); j.hasNext(); ) { InstructionHandle handle = j.next(); | public void reportMatch(ClassContext classContext, Method method, ByteCodePatternMatch match) throws CFGBuilderException, DataflowAnalysisException { JavaClass javaClass = classContext.getJavaClass(); MethodGen methodGen = classContext.getMethodGen(method); try { // Get the variable referenced in the pattern instance. BindingSet bindingSet = match.getBindingSet(); Binding binding = bindingSet.lookup("f"); // Look up the field as an XField. // If it is volatile, then the instance is not a bug. FieldVariable field = (FieldVariable) binding.getVariable(); XField xfield = Hierarchy.findXField(field.getClassName(), field.getFieldName(), field.getFieldSig()); if (xfield == null || (xfield.getAccessFlags() & Constants.ACC_VOLATILE) != 0) return; // XXX: for now, ignore lazy initialization of instance fields if (!xfield.isStatic()) return; // Get locations matching the beginning of the object creation, // and the final field store. PatternElementMatch createBegin = match.getFirstLabeledMatch("createObject"); PatternElementMatch store = match.getFirstLabeledMatch("end"); // Get all blocks // // (1) dominated by the wildcard instruction matching // the beginning of the instructions creating the object, and // (2) postdominated by the field store // // Exception edges are not considered in computing dominators/postdominators. // We will consider this to be all of the code that creates // the object. DominatorsAnalysis domAnalysis = classContext.getNonExceptionDominatorsAnalysis(method); PostDominatorsAnalysis postDomAnalysis = classContext.getNonExceptionPostDominatorsAnalysis(method); BitSet extent = domAnalysis.getAllDominatedBy(createBegin.getBasicBlock()); extent.and(postDomAnalysis.getAllDominatedBy(store.getBasicBlock())); //System.out.println("Extent: " + extent); // TODO: check all instructions in the extent // to ensure the object creation is really there/* // Examine the lock sets for all matched instructions. // If the intersection is nonempty, then there was at // least one lock held for the entire sequence. LockDataflow lockDataflow = classContext.getLockDataflow(method); LockSet lockSet = null; boolean sawNEW = false, sawINVOKE = false; for (Iterator<PatternElementMatch> i = match.patternElementMatchIterator(); i.hasNext(); ) { PatternElementMatch element = i.next(); InstructionHandle handle = element.getMatchedInstructionInstructionHandle(); Location location = new Location(handle, element.getBasicBlock()); // Keep track of whether we saw any instructions // that might actually have created a new object. Instruction ins = handle.getInstruction(); if (ins instanceof NEW) sawNEW = true; else if (ins instanceof InvokeInstruction) sawINVOKE = true; // Compute lock set intersection for all matched instructions. LockSet insLockSet = lockDataflow.getFactAtLocation(location); if (lockSet == null) { lockSet = new LockSet(); lockSet.copyFrom(insLockSet); } else lockSet.intersectWith(insLockSet); } if (!lockSet.isEmpty()) return; // If the instruction sequence did not contain a NEW instruction // or any Invoke instructions, then a new object was not created. if (!(sawNEW || sawINVOKE)) return; if (CHECK_PROPER_OBJECT_CREATION) { // The first instruction in the "create object" sequence // must dominate the Store of the created object (disregarding // exception edges). DominatorsAnalysis dominators = classContext.getNonExceptionDominatorsAnalysis(method); PatternElementMatch createBegin = match.getFirstLabeledMatch("createObject"); PatternElementMatch store = match.getFirstLabeledMatch("end"); BitSet storeDominators = dominators.getStartFact(store.getBasicBlock()); if (!storeDominators.get(createBegin.getBasicBlock().getId())) return; }*/ // Compute the priority: // - ignore lazy initialization of instance fields // - when it's done in a public method, emit a high priority warning // - protected or default access method, emit a medium priority warning // - otherwise, low priority int priority = LOW_PRIORITY; boolean isDefaultAccess = (method.getAccessFlags() & (Constants.ACC_PUBLIC|Constants.ACC_PRIVATE|Constants.ACC_PROTECTED)) == 0; if (method.isPublic()) priority = HIGH_PRIORITY; else if (method.isProtected() || isDefaultAccess) priority = NORMAL_PRIORITY; // Report the bug. InstructionHandle start = match.getLabeledInstruction("start"); InstructionHandle end = match.getLabeledInstruction("end"); String sourceFile = javaClass.getSourceFileName(); bugReporter.reportBug(new BugInstance("LI_LAZY_INIT_STATIC", priority) .addClassAndMethod(methodGen, sourceFile) .addField(xfield).describe("FIELD_ON") .addSourceLine(methodGen, sourceFile, start, end)); } catch (ClassNotFoundException e) { bugReporter.reportMissingClass(e); return; } } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/ddd0d643f646f85d9aab9fe698a46e5951daeb25/LazyInit.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/LazyInit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2605,
2060,
12,
797,
1042,
667,
1042,
16,
2985,
707,
16,
3506,
1085,
3234,
2060,
845,
13,
202,
202,
15069,
7577,
1263,
503,
16,
1910,
2426,
9418,
503,
288,
202,
202,
5852,
797,
2252,
797,
273,
667,
1042,
18,
588,
5852,
797,
5621,
202,
202,
1305,
7642,
707,
7642,
273,
667,
1042,
18,
588,
1305,
7642,
12,
2039,
1769,
202,
202,
698,
288,
1082,
202,
759,
968,
326,
2190,
8042,
316,
326,
1936,
791,
18,
1082,
202,
5250,
694,
5085,
694,
273,
845,
18,
588,
5250,
694,
5621,
1082,
202,
5250,
5085,
273,
5085,
694,
18,
8664,
2932,
74,
8863,
1082,
202,
759,
10176,
731,
326,
652,
487,
392,
1139,
974,
18,
1082,
202,
759,
971,
518,
353,
31548,
16,
1508,
326,
791,
353,
486,
279,
7934,
18,
1082,
202,
974,
3092,
652,
273,
261,
974,
3092,
13,
5085,
18,
588,
3092,
5621,
1082,
202,
60,
974,
619,
1518,
273,
9506,
202,
12074,
18,
4720,
60,
974,
12,
1518,
18,
588,
3834,
9334,
652,
18,
588,
7287,
9334,
652,
18,
588,
974,
8267,
10663,
1082,
202,
430,
261,
92,
1518,
422,
446,
747,
261,
92,
1518,
18,
588,
1862,
5094,
1435,
473,
5245,
18,
31414,
67,
29439,
13,
480,
374,
13,
9506,
202,
2463,
31,
1082,
202,
759,
11329,
30,
364,
2037,
16,
2305,
7962,
10313,
434,
791,
1466,
1082,
202,
430,
16051,
92,
1518,
18,
291,
5788,
10756,
9506,
202,
2463,
31,
1082,
202,
759,
968,
7838,
3607,
326,
8435,
434,
326,
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,
2605,
2060,
12,
797,
1042,
667,
1042,
16,
2985,
707,
16,
3506,
1085,
3234,
2060,
845,
13,
202,
202,
15069,
7577,
1263,
503,
16,
1910,
2426,
9418,
503,
288,
202,
202,
5852,
797,
2252,
797,
273,
667,
1042,
18,
588,
5852,
797,
5621,
202,
202,
1305,
7642,
707,
7642,
273,
667,
1042,
18,
588,
1305,
7642,
12,
2039,
1769,
202,
202,
698,
288,
1082,
202,
759,
968,
326,
2190,
8042,
316,
326,
1936,
791,
18,
1082,
202,
5250,
694,
5085,
694,
273,
845,
18,
588,
5250,
694,
5621,
1082,
202,
5250,
5085,
273,
5085,
694,
18,
8664,
2932,
74,
8863,
1082,
202,
759,
10176,
731,
326,
652,
487,
392,
1139,
974,
18,
1082,
202,
759,
2
] |
case 0: { jfritz.errorMsg("Kein Anrufmonitor ausgewhlt"); break; } case 1: { jfritz.setCallMonitor(new TelnetListener(jfritz)); break; } case 2: { jfritz.setCallMonitor(new SyslogListener(jfritz)); break; } case 3: { jfritz.setCallMonitor(new YAClistener(jfritz, Integer.parseInt(JFritz.getProperty("option.yacport","10629")))); break; } | case 0: { jfritz.errorMsg("Kein Anrufmonitor ausgewhlt"); break; } case 1: { jfritz.setCallMonitor(new TelnetListener(jfritz)); break; } case 2: { jfritz.setCallMonitor(new SyslogListener(jfritz)); break; } case 3: { jfritz.setCallMonitor(new YAClistener(jfritz, Integer .parseInt(JFritz.getProperty("option.yacport", "10629")))); break; } | public void actionPerformed(ActionEvent e) { Debug.msg("Action " + e.getActionCommand()); if (e.getActionCommand() == "exit") showExitDialog(); else if (e.getActionCommand() == "about") showAboutDialog(); else if (e.getActionCommand() == "help") { try { Desktop.browse(new URL(JFritz.DOCUMENTATION_URL)); } catch (Exception e1) { Debug.err("Website opening works only on win32 platforms."); JOptionPane.showMessageDialog(this, "Please visit " + JFritz.DOCUMENTATION_URL); } } else if (e.getActionCommand() == "website") { try { // Runtime.getRuntime().exec("rundll32 // url.dll,FileProtocolHandler "+ JFritz.PROGRAM_URL); Desktop.browse(new URL(JFritz.PROGRAM_URL)); } catch (Exception e1) { Debug.err("Website opening works only on win32 platforms."); JOptionPane.showMessageDialog(this, "Please visit " + JFritz.PROGRAM_URL); } } else if (e.getActionCommand() == "export_csv") expportCSV(); else if (e.getActionCommand() == "export_vcard") exportVCard(); else if (e.getActionCommand() == "config") showConfigDialog(); else if (e.getActionCommand() == "callerlist") tabber.setSelectedComponent(callerListPanel); else if (e.getActionCommand() == "phonebook") tabber.setSelectedComponent(phoneBookPanel); else if (e.getActionCommand() == "quickdial") tabber.setSelectedComponent(quickDialPanel); else if (e.getActionCommand() == "stats") showStatsDialog(); else if (e.getActionCommand() == "fetchList") fetchList(); else if (e.getActionCommand() == "fetchTask") fetchTask(((JToggleButton) e.getSource()).isSelected()); else if (e.getActionCommand() == "callMonitor") { boolean active = ((JToggleButton) e.getSource()).isSelected(); if (active) { Debug.msg("start callMonitor"); switch (Integer.parseInt(JFritz.getProperty( "option.callMonitorType", "0"))) { case 0: { jfritz.errorMsg("Kein Anrufmonitor ausgewhlt"); break; } case 1: { jfritz.setCallMonitor(new TelnetListener(jfritz)); break; } case 2: { jfritz.setCallMonitor(new SyslogListener(jfritz)); break; } case 3: { jfritz.setCallMonitor(new YAClistener(jfritz, Integer.parseInt(JFritz.getProperty("option.yacport","10629")))); break; } } } else { Debug.msg("stop callMonitor"); jfritz.stopCallMonitor(); } } else if (e.getActionCommand() == "reverselookup") reverseLookup(); else Debug.err("Unimplemented action: " + e.getActionCommand()); } | 7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/0e31496ac2398bb55d04dc27f5755222ebbd4bd3/JFritzWindow.java/clean/jfritz/src/de/moonflower/jfritz/JFritzWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
202,
2829,
18,
3576,
2932,
1803,
315,
397,
425,
18,
588,
1803,
2189,
10663,
202,
202,
430,
261,
73,
18,
588,
1803,
2189,
1435,
422,
315,
8593,
7923,
1082,
202,
4500,
6767,
6353,
5621,
202,
202,
12107,
309,
261,
73,
18,
588,
1803,
2189,
1435,
422,
315,
21071,
7923,
1082,
202,
4500,
24813,
6353,
5621,
202,
202,
12107,
309,
261,
73,
18,
588,
1803,
2189,
1435,
422,
315,
5201,
7923,
288,
1082,
202,
698,
288,
9506,
202,
27583,
18,
25731,
12,
2704,
1976,
12,
46,
42,
583,
94,
18,
18450,
2689,
67,
1785,
10019,
1082,
202,
97,
1044,
261,
503,
425,
21,
13,
288,
9506,
202,
2829,
18,
370,
2932,
19186,
10890,
6330,
1338,
603,
5657,
1578,
17422,
1199,
1769,
9506,
202,
46,
1895,
8485,
18,
4500,
1079,
6353,
12,
2211,
16,
315,
8496,
3757,
315,
25083,
202,
15,
21091,
583,
94,
18,
18450,
2689,
67,
1785,
1769,
1082,
202,
97,
202,
202,
97,
469,
309,
261,
73,
18,
588,
1803,
2189,
1435,
422,
315,
21868,
7923,
288,
1082,
202,
698,
288,
9506,
202,
759,
2509,
18,
588,
5576,
7675,
4177,
2932,
86,
1074,
2906,
1578,
9506,
202,
759,
880,
18,
27670,
16,
812,
5752,
1503,
13773,
21091,
583,
94,
18,
21418,
67,
1785,
1769,
9506,
202,
27583,
18,
25731,
12,
2704,
1976,
12,
46,
42,
583,
94,
18,
21418,
67,
1785,
10019,
1082,
202,
97,
1044,
261,
503,
425,
21,
13,
288,
9506,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
202,
2829,
18,
3576,
2932,
1803,
315,
397,
425,
18,
588,
1803,
2189,
10663,
202,
202,
430,
261,
73,
18,
588,
1803,
2189,
1435,
422,
315,
8593,
7923,
1082,
202,
4500,
6767,
6353,
5621,
202,
202,
12107,
309,
261,
73,
18,
588,
1803,
2189,
1435,
422,
315,
21071,
7923,
1082,
202,
4500,
24813,
6353,
5621,
202,
202,
12107,
309,
261,
73,
18,
588,
1803,
2189,
1435,
422,
315,
5201,
7923,
288,
1082,
202,
698,
288,
9506,
202,
27583,
18,
25731,
12,
2704,
1976,
12,
46,
42,
583,
94,
18,
18450,
2689,
67,
1785,
10019,
1082,
202,
97,
1044,
261,
503,
425,
21,
13,
288,
9506,
202,
2829,
2
] |
if( null != handler ) choice = handler.assertFailed( msg, errMsg, ob ); | if(null != handler) choice = handler.assertFailed(msg, errMsg, ob); | private static void assert_fail(String msg, Object ob, boolean useHandler) { if( ASS ) { String errMsg = buildString( msg, ob ); System.out.println( "===============!!!==============" ); System.out.println( errMsg ); System.out.println( "===============!!!==============" ); int choice = AssertFailureHandler.DEBUG; if( useHandler && null != _FailureHandlers ) { AssertFailureHandler handler = (AssertFailureHandler) _FailureHandlers.get(Thread.currentThread()); if( null != handler ) choice = handler.assertFailed( msg, errMsg, ob ); } switch(choice) { case AssertFailureHandler.CONTINUE: // do nothing... break; case AssertFailureHandler.ABORT: System.exit(0); break; case AssertFailureHandler.DEBUG: default: try { throw new DebuggerCaughtException(errMsg); } catch( DebuggerCaughtException e ) { // eat exception (but catch in debugger) } } } } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/2de73cf99dce60cce549e7757f841284b68d1220/ER.java/clean/js/jsdj/classes/com/netscape/jsdebugging/ifcui/palomar/util/ER.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1815,
67,
6870,
12,
780,
1234,
16,
1033,
3768,
16,
1250,
999,
1503,
13,
565,
288,
3639,
309,
12,
17289,
262,
3639,
288,
5411,
514,
12412,
273,
1361,
780,
12,
1234,
16,
3768,
11272,
5411,
2332,
18,
659,
18,
8222,
12,
315,
14468,
12275,
25885,
26678,
6,
11272,
5411,
2332,
18,
659,
18,
8222,
12,
12412,
11272,
5411,
2332,
18,
659,
18,
8222,
12,
315,
14468,
12275,
25885,
26678,
6,
11272,
5411,
509,
6023,
273,
5452,
5247,
1503,
18,
9394,
31,
5411,
309,
12,
999,
1503,
597,
446,
480,
389,
5247,
6919,
262,
5411,
288,
7734,
5452,
5247,
1503,
1838,
273,
261,
8213,
5247,
1503,
13,
7682,
389,
5247,
6919,
18,
588,
12,
3830,
18,
2972,
3830,
10663,
7734,
309,
12,
446,
480,
1838,
262,
10792,
6023,
273,
1838,
18,
11231,
2925,
12,
1234,
16,
12412,
16,
3768,
11272,
5411,
289,
5411,
1620,
12,
11569,
13,
5411,
288,
7734,
648,
5452,
5247,
1503,
18,
6067,
26725,
30,
10792,
368,
741,
5083,
2777,
10792,
898,
31,
7734,
648,
5452,
5247,
1503,
18,
2090,
3871,
30,
10792,
2332,
18,
8593,
12,
20,
1769,
10792,
898,
31,
7734,
648,
5452,
5247,
1503,
18,
9394,
30,
7734,
805,
30,
10792,
775,
10792,
288,
13491,
604,
394,
28645,
24512,
503,
12,
370,
3332,
1769,
10792,
289,
10792,
1044,
12,
28645,
24512,
503,
425,
262,
10792,
288,
13491,
368,
20729,
1520,
261,
12885,
1044,
316,
19977,
13,
10792,
289,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1815,
67,
6870,
12,
780,
1234,
16,
1033,
3768,
16,
1250,
999,
1503,
13,
565,
288,
3639,
309,
12,
17289,
262,
3639,
288,
5411,
514,
12412,
273,
1361,
780,
12,
1234,
16,
3768,
11272,
5411,
2332,
18,
659,
18,
8222,
12,
315,
14468,
12275,
25885,
26678,
6,
11272,
5411,
2332,
18,
659,
18,
8222,
12,
12412,
11272,
5411,
2332,
18,
659,
18,
8222,
12,
315,
14468,
12275,
25885,
26678,
6,
11272,
5411,
509,
6023,
273,
5452,
5247,
1503,
18,
9394,
31,
5411,
309,
12,
999,
1503,
597,
446,
480,
389,
5247,
6919,
262,
5411,
288,
7734,
5452,
5247,
1503,
1838,
273,
261,
8213,
5247,
1503,
13,
7682,
389,
5247,
6919,
18,
588,
12,
3830,
18,
2
] |
return node.getAttributes().getNamedItem("name").getNodeValue(); | return node.getAttributes().getNamedItem("moduleName").getNodeValue(); | private static String getModuleName(Node node) { return node.getAttributes().getNamedItem("name").getNodeValue(); } | 5015 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5015/09a74f456d759565f8d443b3bf0ab4b455ddfd8e/BioHolderInitializer.java/buggy/BIOSIM/src/com/traclabs/biosim/client/util/BioHolderInitializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
11251,
461,
12,
907,
756,
13,
288,
3639,
327,
756,
18,
588,
2498,
7675,
588,
7604,
1180,
2932,
2978,
461,
20387,
588,
907,
620,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
11251,
461,
12,
907,
756,
13,
288,
3639,
327,
756,
18,
588,
2498,
7675,
588,
7604,
1180,
2932,
2978,
461,
20387,
588,
907,
620,
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
] |
else { try { iterations = Integer.parseInt(arg); if (iterations < 0) { ERR("Usage: construct02 [-testdigits] count"); } } catch (NumberFormatException nfe) { ERR("EXCEPTION RECEIVED: " + nfe); } | catch (NumberFormatException nfe) { ERR("EXCEPTION RECEIVED: " + nfe); | public static void main(String args[]) { int iterations = 200; int mask = 0x3; for (int argcnt=0; argcnt<args.length; argcnt++) { String arg = args[argcnt]; if (arg.charAt(0) == '-') { // keep on lower bit, which means to remove db between tests. mask = 1; for (int pos=1; pos<arg.length(); pos++) { char ch = arg.charAt(pos); if (ch >= '0' && ch <= '9') { mask |= (1 << (ch - '0')); } else if (ch == 'v') { verbose_flag = true; } else { ERR("Usage: construct02 [-testdigits] count"); } } System.out.println("mask = " + mask); } else { try { iterations = Integer.parseInt(arg); if (iterations < 0) { ERR("Usage: construct02 [-testdigits] count"); } } catch (NumberFormatException nfe) { ERR("EXCEPTION RECEIVED: " + nfe); } } } System.gc(); System.runFinalization(); VERBOSEOUT("gc complete"); long starttotal = Runtime.getRuntime().totalMemory(); long startfree = Runtime.getRuntime().freeMemory(); TestConstruct02 con = null; try { con = new TestConstruct02(); } catch (DbException dbe) { System.err.println("Exception: " + dbe); System.exit(1); } catch (java.io.FileNotFoundException fnfe) { System.err.println("Exception: " + fnfe); System.exit(1); } for (int i=0; i<iterations; i++) { if (iterations != 0) { VERBOSEOUT("(" + i + "/" + iterations + ") "); } VERBOSEOUT("construct02 running:\n"); if (!con.doall(mask)) { ERR("SOME TEST FAILED"); } System.gc(); System.runFinalization(); VERBOSEOUT("gc complete"); } con.close(); System.out.print("ALL TESTS SUCCESSFUL\n"); long endtotal = Runtime.getRuntime().totalMemory(); long endfree = Runtime.getRuntime().freeMemory(); System.out.println("delta for total mem: " + magnitude(endtotal - starttotal)); System.out.println("delta for free mem: " + magnitude(endfree - startfree)); return; } | 2921 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2921/2376437b8faec79eb8ccaa874f271d4ee69d276f/TestConstruct02.java/buggy/db/test/scr016/TestConstruct02.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
565,
288,
202,
474,
11316,
273,
4044,
31,
202,
474,
3066,
273,
374,
92,
23,
31,
202,
1884,
261,
474,
1501,
13085,
33,
20,
31,
1501,
13085,
32,
1968,
18,
2469,
31,
1501,
13085,
27245,
288,
202,
565,
514,
1501,
273,
833,
63,
3175,
13085,
15533,
202,
565,
309,
261,
3175,
18,
3001,
861,
12,
20,
13,
422,
4014,
13,
288,
7734,
368,
3455,
603,
2612,
2831,
16,
1492,
4696,
358,
1206,
1319,
3086,
7434,
18,
202,
202,
4455,
273,
404,
31,
202,
202,
1884,
261,
474,
949,
33,
21,
31,
949,
32,
3175,
18,
2469,
5621,
949,
27245,
288,
1082,
565,
1149,
462,
273,
1501,
18,
3001,
861,
12,
917,
1769,
1082,
565,
309,
261,
343,
1545,
296,
20,
11,
597,
462,
1648,
296,
29,
6134,
288,
1082,
202,
4455,
5626,
261,
21,
2296,
261,
343,
300,
296,
20,
6134,
1769,
1082,
565,
289,
10792,
469,
309,
261,
343,
422,
296,
90,
6134,
288,
13491,
3988,
67,
6420,
273,
638,
31,
10792,
289,
1082,
565,
469,
288,
1082,
202,
9712,
2932,
5357,
30,
225,
4872,
3103,
23059,
3813,
16649,
65,
1056,
8863,
1082,
565,
289,
202,
202,
97,
7734,
2332,
18,
659,
18,
8222,
2932,
4455,
273,
315,
397,
3066,
1769,
202,
565,
289,
202,
565,
469,
288,
202,
202,
698,
288,
1082,
565,
11316,
273,
2144,
18,
2670,
1702,
12,
3175,
1769,
1082,
565,
309,
261,
19330,
411,
374,
13,
288,
1082,
202,
9712,
2932,
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,
2774,
12,
780,
833,
63,
5717,
565,
288,
202,
474,
11316,
273,
4044,
31,
202,
474,
3066,
273,
374,
92,
23,
31,
202,
1884,
261,
474,
1501,
13085,
33,
20,
31,
1501,
13085,
32,
1968,
18,
2469,
31,
1501,
13085,
27245,
288,
202,
565,
514,
1501,
273,
833,
63,
3175,
13085,
15533,
202,
565,
309,
261,
3175,
18,
3001,
861,
12,
20,
13,
422,
4014,
13,
288,
7734,
368,
3455,
603,
2612,
2831,
16,
1492,
4696,
358,
1206,
1319,
3086,
7434,
18,
202,
202,
4455,
273,
404,
31,
202,
202,
1884,
261,
474,
949,
33,
21,
31,
949,
32,
3175,
18,
2469,
5621,
949,
27245,
288,
1082,
565,
1149,
462,
273,
1501,
18,
3001,
861,
2
] |
protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria(ExperimenterGroup.class); Criteria m = c.createCriteria("groupExperimenterMap",Query.LEFT_JOIN); Criteria e = m.createCriteria("child",Query.LEFT_JOIN); if (value("name") != null) { c.add( Restrictions.eq("name", value("name"))); } else if (value("id") != null) { c.add( Restrictions.eq("id", value("id"))); } | protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria(ExperimenterGroup.class); Criteria m = c.createCriteria("groupExperimenterMap", Query.LEFT_JOIN); Criteria e = m.createCriteria("child", Query.LEFT_JOIN); | protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria(ExperimenterGroup.class); Criteria m = c.createCriteria("groupExperimenterMap",Query.LEFT_JOIN); Criteria e = m.createCriteria("child",Query.LEFT_JOIN); if (value("name") != null) { c.add( Restrictions.eq("name", value("name"))); } else if (value("id") != null) { c.add( Restrictions.eq("id", value("id"))); } else { throw new InternalException( "Name and id are both null for group query."); } setCriteria( c ); } | 55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/7e7c45d25ea1bbef3485ae116b3eb108d9f6f5ef/AdminImpl.java/clean/components/server/src/ome/logic/AdminImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
1117,
918,
29279,
12,
2157,
1339,
13,
1377,
202,
15069,
670,
24360,
503,
16,
6483,
288,
377,
202,
202,
7231,
276,
273,
1339,
18,
2640,
7231,
12,
424,
457,
381,
2328,
1114,
18,
1106,
1769,
377,
1082,
377,
202,
202,
7231,
312,
273,
276,
18,
2640,
7231,
2932,
1655,
424,
457,
381,
2328,
863,
3113,
1138,
18,
10066,
67,
18800,
1769,
377,
202,
202,
7231,
425,
273,
312,
18,
2640,
7231,
2932,
3624,
3113,
1138,
18,
10066,
67,
18800,
1769,
377,
1082,
377,
202,
202,
430,
261,
1132,
2932,
529,
7923,
480,
446,
13,
377,
202,
202,
95,
377,
1082,
202,
71,
18,
1289,
12,
1124,
6192,
87,
18,
11253,
2932,
529,
3113,
460,
2932,
529,
6,
3719,
1769,
377,
202,
202,
97,
1377,
1082,
377,
202,
202,
12107,
309,
261,
1132,
2932,
350,
7923,
480,
446,
13,
377,
202,
202,
95,
377,
1082,
202,
71,
18,
1289,
12,
1124,
6192,
87,
18,
11253,
2932,
350,
3113,
460,
2932,
350,
6,
3719,
1769,
377,
202,
202,
97,
377,
202,
202,
12107,
1377,
202,
202,
95,
377,
1082,
202,
12849,
394,
3186,
503,
12,
377,
6862,
202,
6,
461,
471,
612,
854,
3937,
446,
364,
1041,
843,
1199,
1769,
377,
202,
202,
97,
377,
202,
202,
542,
7231,
12,
276,
11272,
377,
1082,
377,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
1117,
918,
29279,
12,
2157,
1339,
13,
1377,
202,
15069,
670,
24360,
503,
16,
6483,
288,
377,
202,
202,
7231,
276,
273,
1339,
18,
2640,
7231,
12,
424,
457,
381,
2328,
1114,
18,
1106,
1769,
377,
1082,
377,
202,
202,
7231,
312,
273,
276,
18,
2640,
7231,
2932,
1655,
424,
457,
381,
2328,
863,
3113,
1138,
18,
10066,
67,
18800,
1769,
377,
202,
202,
7231,
425,
273,
312,
18,
2640,
7231,
2932,
3624,
3113,
1138,
18,
10066,
67,
18800,
1769,
377,
1082,
377,
202,
202,
430,
261,
1132,
2932,
529,
7923,
480,
446,
13,
377,
202,
202,
95,
377,
1082,
202,
71,
18,
1289,
12,
1124,
6192,
87,
18,
11253,
2932,
529,
3113,
460,
2932,
529,
6,
2
] |
match(input,111,FOLLOW_111_in_relationalExpression2333); | match(input,111,FOLLOW_111_in_relationalExpression2333); | public void relationalExpression() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:584:17: ( shiftExpression ( ( (LT|GT|LE|GE) shiftExpression )* | 'instanceof' typeSpec ) ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:584:17: shiftExpression ( ( (LT|GT|LE|GE) shiftExpression )* | 'instanceof' typeSpec ) { following.push(FOLLOW_shiftExpression_in_relationalExpression2275); shiftExpression(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:585:17: ( ( (LT|GT|LE|GE) shiftExpression )* | 'instanceof' typeSpec ) int alt60=2; int LA60_0 = input.LA(1); if ( LA60_0==RBRACK||(LA60_0>=SEMI && LA60_0<=COMMA)||(LA60_0>=RPAREN && LA60_0<=GE) ) { alt60=1; } else if ( LA60_0==111 ) { alt60=2; } else { NoViableAltException nvae = new NoViableAltException("585:17: ( ( (LT|GT|LE|GE) shiftExpression )* | \'instanceof\' typeSpec )", 60, 0, input); throw nvae; } switch (alt60) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:585:25: ( (LT|GT|LE|GE) shiftExpression )* { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:585:25: ( (LT|GT|LE|GE) shiftExpression )* loop59: do { int alt59=2; int LA59_0 = input.LA(1); if ( (LA59_0>=LT && LA59_0<=GE) ) { alt59=1; } switch (alt59) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:585:33: (LT|GT|LE|GE) shiftExpression { if ( (input.LA(1)>=LT && input.LA(1)<=GE) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_relationalExpression2285); throw mse; } following.push(FOLLOW_shiftExpression_in_relationalExpression2321); shiftExpression(); following.pop(); } break; default : break loop59; } } while (true); } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:592:25: 'instanceof' typeSpec { match(input,111,FOLLOW_111_in_relationalExpression2333); following.push(FOLLOW_typeSpec_in_relationalExpression2335); typeSpec(); following.pop(); } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParser.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
25302,
2300,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
25,
5193,
30,
4033,
30,
261,
4654,
2300,
261,
261,
261,
12050,
96,
16506,
96,
900,
96,
7113,
13,
4654,
2300,
8618,
571,
296,
1336,
792,
11,
618,
1990,
262,
262,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
25,
5193,
30,
4033,
30,
4654,
2300,
261,
261,
261,
12050,
96,
16506,
96,
900,
96,
7113,
13,
4654,
2300,
8618,
571,
296,
1336,
792,
11,
618,
1990,
262,
5411,
288,
5411,
3751,
18,
6206,
12,
29890,
67,
4012,
2300,
67,
267,
67,
5488,
287,
2300,
3787,
5877,
1769,
5411,
4654,
2300,
5621,
5411,
3751,
18,
5120,
5621,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
25,
7140,
30,
4033,
30,
261,
261,
261,
12050,
96,
16506,
96,
900,
96,
7113,
13,
4654,
2300,
8618,
571,
296,
1336,
792,
11,
618,
1990,
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,
25302,
2300,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
25,
5193,
30,
4033,
30,
261,
4654,
2300,
261,
261,
261,
12050,
96,
16506,
96,
900,
96,
7113,
13,
4654,
2300,
8618,
571,
296,
1336,
792,
11,
618,
1990,
262,
262,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
2
] |
/* Sleeping two seconds to give Windows time to * notice that the cache files in the customProfileDir * are now unlocked */ try {Thread.sleep(2000);} catch (InterruptedException e) {} | public void close() { Exception taskKillException = null; if (WindowsUtils.thisIsWindows()) { try { // try to kill with windows taskkill WindowsUtils.kill(cmdarray); } catch (Exception e) { taskKillException = e; } } super.close(); /* Sleeping two seconds to give Windows time to * notice that the cache files in the customProfileDir * are now unlocked */ try {Thread.sleep(2000);} catch (InterruptedException e) {} try { recursivelyDeleteDir(customProxyPACDir); } catch (RuntimeException e) { if (taskKillException != null) { e.printStackTrace(); System.err.print("Perhaps caused by: "); taskKillException.printStackTrace(); throw new RuntimeException("Couldn't delete custom IE " + "proxy directory, presumably because task kill failed; " + "see stderr!", e); } throw e; } } | 50930 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50930/13b471c65563ed945c399b0a68932cb37a9c3135/InternetExplorerCustomProxyLauncher.java/buggy/server/src/main/java/org/openqa/selenium/server/browserlaunchers/InternetExplorerCustomProxyLauncher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1746,
1435,
288,
3639,
1185,
1562,
19045,
503,
273,
446,
31,
3639,
309,
261,
10399,
1989,
18,
2211,
2520,
10399,
10756,
288,
5411,
775,
288,
7734,
368,
775,
358,
8673,
598,
9965,
1562,
16418,
7734,
8202,
1989,
18,
16418,
12,
4172,
1126,
1769,
5411,
289,
1044,
261,
503,
425,
13,
288,
7734,
1562,
19045,
503,
273,
425,
31,
5411,
289,
3639,
289,
3639,
2240,
18,
4412,
5621,
3639,
1748,
15129,
310,
2795,
3974,
358,
8492,
8202,
813,
358,
540,
380,
11690,
716,
326,
1247,
1390,
316,
326,
1679,
4029,
1621,
540,
380,
854,
2037,
25966,
540,
1195,
3639,
775,
288,
3830,
18,
19607,
12,
17172,
1769,
97,
1044,
261,
24485,
503,
425,
13,
2618,
3639,
775,
288,
5411,
8536,
2613,
1621,
12,
3662,
3886,
52,
2226,
1621,
1769,
3639,
289,
1044,
261,
11949,
425,
13,
288,
5411,
309,
261,
4146,
19045,
503,
480,
446,
13,
288,
7734,
425,
18,
1188,
6332,
5621,
7734,
2332,
18,
370,
18,
1188,
2932,
2173,
19312,
15848,
635,
30,
315,
1769,
7734,
1562,
19045,
503,
18,
1188,
6332,
5621,
7734,
604,
394,
3235,
2932,
16342,
1404,
1430,
1679,
10897,
315,
397,
13491,
315,
5656,
1867,
16,
4075,
379,
6906,
2724,
1562,
8673,
2535,
31,
315,
397,
13491,
315,
5946,
4514,
5,
3113,
425,
1769,
5411,
289,
5411,
604,
425,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1746,
1435,
288,
3639,
1185,
1562,
19045,
503,
273,
446,
31,
3639,
309,
261,
10399,
1989,
18,
2211,
2520,
10399,
10756,
288,
5411,
775,
288,
7734,
368,
775,
358,
8673,
598,
9965,
1562,
16418,
7734,
8202,
1989,
18,
16418,
12,
4172,
1126,
1769,
5411,
289,
1044,
261,
503,
425,
13,
288,
7734,
1562,
19045,
503,
273,
425,
31,
5411,
289,
3639,
289,
3639,
2240,
18,
4412,
5621,
3639,
1748,
15129,
310,
2795,
3974,
358,
8492,
8202,
813,
358,
540,
380,
11690,
716,
326,
1247,
1390,
316,
326,
1679,
4029,
1621,
540,
380,
854,
2037,
25966,
540,
1195,
3639,
775,
288,
3830,
18,
19607,
12,
17172,
1769,
97,
1044,
261,
24485,
503,
425,
13,
2618,
3639,
775,
2
] |
|
public void init(int i) { add(new Beamform(i, numChannels)); add(new BeamFirFilter(mfSize, numPostDec2, 1)); add(new Magnitude()); add(new Detector(i, numPostDec2, targetBeam, targetSamplePostDec, cfarThreshold)); } | public void init() { add(new Beamform(i+k, numChannels)); add(new BeamFirFilter(mfSize, numPostDec2, 1)); add(new Magnitude()); add(new Detector(i+k, numPostDec2, targetBeam, targetSamplePostDec, cfarThreshold)); } | public void init(int i) { add(new Beamform(i, numChannels)); // Need to replace this fir with //fft -> elWiseMult -> ifft add(new BeamFirFilter(mfSize, numPostDec2, 1)); add(new Magnitude()); // with a more sophisticated detector, we need // someplace to store the data until we can find // the targets... add(new Detector(i, numPostDec2, targetBeam, targetSamplePostDec, cfarThreshold)); } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/637128b82e93c93fd0bdfbf566449b3282741fcf/BeamFormer.java/buggy/streams/apps/benchmarks/beamformer/streamit/BeamFormer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1208,
12,
474,
277,
13,
288,
9506,
225,
527,
12,
2704,
605,
3820,
687,
12,
77,
16,
9944,
282,
818,
10585,
10019,
9506,
225,
368,
12324,
358,
1453,
333,
284,
481,
598,
30306,
368,
25174,
317,
415,
59,
784,
5049,
317,
309,
1222,
9506,
225,
527,
12,
2704,
225,
605,
3820,
42,
481,
1586,
12,
16126,
1225,
16,
15106,
818,
3349,
1799,
22,
16,
6862,
1082,
404,
10019,
9506,
225,
527,
12,
2704,
12342,
10754,
10663,
9506,
225,
368,
598,
279,
1898,
272,
23169,
5846,
690,
13826,
16,
732,
1608,
9506,
225,
368,
2690,
964,
358,
1707,
326,
501,
3180,
732,
848,
1104,
9506,
225,
368,
326,
5774,
2777,
9506,
225,
527,
12,
2704,
22198,
12,
77,
16,
25083,
282,
818,
3349,
1799,
22,
16,
25083,
282,
1018,
1919,
301,
16,
25083,
282,
1018,
8504,
3349,
1799,
16,
25083,
282,
6080,
297,
7614,
10019,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1875,
202,
482,
918,
1208,
12,
474,
277,
13,
288,
9506,
225,
527,
12,
2704,
605,
3820,
687,
12,
77,
16,
9944,
282,
818,
10585,
10019,
9506,
225,
368,
12324,
358,
1453,
333,
284,
481,
598,
30306,
368,
25174,
317,
415,
59,
784,
5049,
317,
309,
1222,
9506,
225,
527,
12,
2704,
225,
605,
3820,
42,
481,
1586,
12,
16126,
1225,
16,
15106,
818,
3349,
1799,
22,
16,
6862,
1082,
404,
10019,
9506,
225,
527,
12,
2704,
12342,
10754,
10663,
9506,
225,
368,
598,
279,
1898,
272,
23169,
5846,
690,
13826,
16,
732,
1608,
9506,
225,
368,
2690,
964,
358,
1707,
326,
501,
3180,
732,
848,
1104,
9506,
225,
368,
326,
5774,
2777,
9506,
225,
527,
12,
2704,
22198,
2
] |
public int doAfterBody() throws JspException { BodyContent b = getBodyContent(); if(invocationCount > 0) { if(b != null) { JspWriter out = b.getEnclosingWriter(); try { out.write(b.getString()); } catch (IOException e) { throw new GrailsTagException("I/O error writing body of tag ["+getName()+"]: " + e.getMessage(),e); } b.clearBody(); } } invocationCount--; setCurrentArgument(); if(invocationCount <= 0) { return SKIP_BODY; } else return EVAL_BODY_BUFFERED; } | 47932 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47932/7a79ea8c6c56ff57420358f40d05803a147feb7b/JspInvokeGrailsTagLibTag.java/clean/grails/src/web/org/codehaus/groovy/grails/web/taglib/jsp/JspInvokeGrailsTagLibTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
474,
2896,
4436,
2250,
1435,
15069,
21796,
503,
95,
2250,
1350,
70,
33,
588,
2250,
1350,
5621,
430,
12,
5768,
4431,
1380,
34,
20,
15329,
430,
12,
70,
5,
33,
2011,
15329,
21796,
2289,
659,
33,
70,
18,
588,
21594,
2289,
5621,
698,
95,
659,
18,
2626,
12,
70,
18,
588,
780,
10663,
97,
14683,
12,
14106,
73,
15329,
12849,
2704,
14571,
14573,
1805,
503,
2932,
45,
19,
51,
1636,
14345,
3432,
792,
2692,
9614,
15,
17994,
1435,
9078,
65,
2773,
15,
73,
18,
24906,
9334,
73,
1769,
97,
70,
18,
8507,
2250,
5621,
9090,
5768,
4431,
1380,
413,
31,
542,
3935,
1379,
5621,
430,
12,
5768,
4431,
1380,
32,
33,
20,
15329,
2463,
22589,
67,
16691,
31,
97,
292,
550,
851,
41,
2669,
67,
16691,
67,
11302,
2056,
31,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
474,
2896,
4436,
2250,
1435,
15069,
21796,
503,
95,
2250,
1350,
70,
33,
588,
2250,
1350,
5621,
430,
12,
5768,
4431,
1380,
34,
20,
15329,
430,
12,
70,
5,
33,
2011,
15329,
21796,
2289,
659,
33,
70,
18,
588,
21594,
2289,
5621,
698,
95,
659,
18,
2626,
12,
70,
18,
588,
780,
10663,
97,
14683,
12,
14106,
73,
15329,
12849,
2704,
14571,
14573,
1805,
503,
2932,
45,
19,
51,
1636,
14345,
3432,
792,
2692,
9614,
15,
17994,
1435,
9078,
65,
2773,
15,
73,
18,
24906,
9334,
73,
1769,
97,
70,
18,
8507,
2250,
5621,
9090,
5768,
4431,
1380,
413,
31,
542,
3935,
1379,
5621,
430,
12,
5768,
4431,
1380,
32,
33,
20,
15329,
2463,
22589,
67,
16691,
31,
2
] |
||
protected void invoke_constructor_this(Class[] parameterTypes) { invoke_constructor_helper(cg.getClassName(), parameterTypes); | protected void invoke_constructor_this() { invoke_constructor_this(TYPES_EMPTY); | protected void invoke_constructor_this(Class[] parameterTypes) { invoke_constructor_helper(cg.getClassName(), parameterTypes); } | 1154 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1154/2f17c9575251f802152dbb59c50b63f86c3f4499/CodeGenerator.java/buggy/src/proxy/net/sf/cglib/CodeGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4356,
67,
12316,
67,
2211,
12,
797,
8526,
20173,
13,
288,
3639,
4356,
67,
12316,
67,
4759,
12,
26275,
18,
588,
3834,
9334,
20173,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4356,
67,
12316,
67,
2211,
12,
797,
8526,
20173,
13,
288,
3639,
4356,
67,
12316,
67,
4759,
12,
26275,
18,
588,
3834,
9334,
20173,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
camera.setFocus(camera.getFocus() + step); | Camera camera = CameraUtility.getCamera(viewer); camera.setFocus(camera.getFocus() + step); | public void actionPerformed(ActionEvent e) { camera.setFocus(camera.getFocus() + step); viewer.render(); } | 25476 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25476/67cf8f75d16e2d624303a102f45a42e1fe760667/ShiftFocus.java/buggy/src-ui/de/jreality/ui/viewerapp/actions/camera/ShiftFocus.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
202,
26426,
18,
542,
9233,
12,
26426,
18,
588,
9233,
1435,
397,
2235,
1769,
202,
202,
25256,
18,
5902,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
202,
26426,
18,
542,
9233,
12,
26426,
18,
588,
9233,
1435,
397,
2235,
1769,
202,
202,
25256,
18,
5902,
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
] |
assertEquals("selectionEquals - " + message, ((IStructuredSelection)selection).toList(), expectedList); | assertEquals("selectionEquals - " + message, expectedList, ((IStructuredSelection)selection).toList()); | protected void assertSelectionEquals(String message, TestElement expected) { ISelection selection = fViewer.getSelection(); assertTrue(selection instanceof IStructuredSelection); List expectedList = new ArrayList(); expectedList.add(expected); assertEquals("selectionEquals - " + message, ((IStructuredSelection)selection).toList(), expectedList); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c71abf2eac6b2fb1dc1634a623319ffbecc69de2/AbstractTreeViewerTest.java/clean/tests/org.eclipse.ui.tests/Eclipse JFace Tests/org/eclipse/jface/tests/viewers/AbstractTreeViewerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1815,
6233,
8867,
12,
780,
883,
16,
7766,
1046,
2665,
13,
288,
202,
565,
467,
6233,
4421,
273,
284,
18415,
18,
588,
6233,
5621,
202,
565,
1815,
5510,
12,
10705,
1276,
467,
30733,
6233,
1769,
202,
565,
987,
2665,
682,
273,
394,
2407,
5621,
202,
565,
2665,
682,
18,
1289,
12,
3825,
1769,
202,
565,
1815,
8867,
2932,
10705,
8867,
300,
315,
397,
883,
16,
14015,
45,
30733,
6233,
13,
10705,
2934,
869,
682,
9334,
2665,
682,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1117,
918,
1815,
6233,
8867,
12,
780,
883,
16,
7766,
1046,
2665,
13,
288,
202,
565,
467,
6233,
4421,
273,
284,
18415,
18,
588,
6233,
5621,
202,
565,
1815,
5510,
12,
10705,
1276,
467,
30733,
6233,
1769,
202,
565,
987,
2665,
682,
273,
394,
2407,
5621,
202,
565,
2665,
682,
18,
1289,
12,
3825,
1769,
202,
565,
1815,
8867,
2932,
10705,
8867,
300,
315,
397,
883,
16,
14015,
45,
30733,
6233,
13,
10705,
2934,
869,
682,
9334,
2665,
682,
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
] |
{ } | { return null; } | public java.sql.ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException { // XXX-Not Implemented } | 49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/0c8299478c05542a0f240973829223c7dae7e4dd/DatabaseMetaData.java/buggy/postgresql/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
28782,
1999,
3004,
12,
780,
6222,
16,
514,
1963,
16,
514,
1014,
16,
509,
2146,
16,
1250,
8413,
13,
1216,
6483,
202,
95,
202,
202,
759,
11329,
17,
1248,
18788,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
28782,
1999,
3004,
12,
780,
6222,
16,
514,
1963,
16,
514,
1014,
16,
509,
2146,
16,
1250,
8413,
13,
1216,
6483,
202,
95,
202,
202,
759,
11329,
17,
1248,
18788,
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
] |
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 100: ResultType ::= void // case 100: { //#line 675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 101: FormalParameterList ::= LastFormalParameter // case 101: { //#line 695 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 102: FormalParameterList ::= FormalParameters , LastFormalParameter // case 102: { //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 103: FormalParameters ::= FormalParameter // case 103: { //#line 709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 711 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 104: FormalParameters ::= FormalParameters , FormalParameter // case 104: { //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 105: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 105: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 107: VariableModifiers ::= VariableModifiers VariableModifier // case 107: { //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 735 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 108: VariableModifier ::= final // case 108: { //#line 741 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 109: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 109: { //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 749 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 111: MethodModifiers ::= MethodModifiers MethodModifier // case 111: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 112: MethodModifier ::= public // case 112: { //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 113: MethodModifier ::= protected // case 113: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 114: MethodModifier ::= private // case 114: { //#line 781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 115: MethodModifier ::= abstract // case 115: { //#line 786 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 116: MethodModifier ::= static // case 116: { //#line 791 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 117: MethodModifier ::= final // case 117: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 118: MethodModifier ::= native // case 118: { //#line 806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 119: MethodModifier ::= strictfp // case 119: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 120: Throws ::= throws ExceptionTypeList // case 120: { //#line 815 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 817 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 121: ExceptionTypeList ::= ExceptionType // case 121: { //#line 821 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 823 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 122: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 122: { //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 830 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 125: MethodBody ::= ; // case 125: setResult(null); break; // // Rule 127: StaticInitializer ::= static Block // case 127: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 128: SimpleTypeName ::= identifier // case 128: { //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 869 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 130: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 130: { //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 876 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 131: ConstructorModifier ::= public // case 131: { //#line 884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 132: ConstructorModifier ::= protected // case 132: { //#line 889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 133: ConstructorModifier ::= private // case 133: { //#line 894 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 134: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 134: { //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 900 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; l = new TypedList(new LinkedList(), Stmt.class, false); if (ExplicitConstructorInvocationopt == null) { l.add(nf.SuperCall(pos(), Collections.EMPTY_LIST)); } else { l.add(ExplicitConstructorInvocationopt); } l.addAll(BlockStatementsopt); setResult(nf.Block(pos(), l)); break; } // // Rule 135: Arguments ::= ( ArgumentListopt ) // case 135: { //#line 933 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 935 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 138: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 138: { //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 139: InterfaceModifier ::= public // case 139: { //#line 961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 140: InterfaceModifier ::= protected // case 140: { //#line 966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 141: InterfaceModifier ::= private // case 141: { //#line 971 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 142: InterfaceModifier ::= abstract // case 142: { //#line 976 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 143: InterfaceModifier ::= static // case 143: { //#line 981 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 144: InterfaceModifier ::= strictfp // case 144: { //#line 986 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 145: ExtendsInterfaces ::= extends InterfaceType // case 145: { //#line 990 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 146: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 146: { //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 999 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 147: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 147: { //#line 1009 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 149: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 149: { //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1018 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 151: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 151: { //#line 1024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1026 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= ClassDeclaration // case 152: { //#line 1031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1033 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 153: { //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= ; // case 154: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 155: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 155: { //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 157: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 157: { //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1073 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 158: ConstantModifier ::= public // case 158: { //#line 1081 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 159: ConstantModifier ::= static // case 159: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 160: ConstantModifier ::= final // case 160: { //#line 1091 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 162: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 162: { //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 163: AbstractMethodModifier ::= public // case 163: { //#line 1108 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 164: AbstractMethodModifier ::= abstract // case 164: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 165: SimpleName ::= identifier // case 165: { //#line 1169 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 166: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 166: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 167: VariableInitializers ::= VariableInitializer // case 167: { //#line 1206 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 168: VariableInitializers ::= VariableInitializers , VariableInitializer // case 168: { //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 169: Block ::= { BlockStatementsopt } // case 169: { //#line 1234 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 170: BlockStatements ::= BlockStatement // case 170: { //#line 1240 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1242 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 171: BlockStatements ::= BlockStatements BlockStatement // case 171: { //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1249 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 173: BlockStatement ::= ClassDeclaration // case 173: { //#line 1255 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 174: BlockStatement ::= Statement // case 174: { //#line 1262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 176: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 176: { //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1274 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 200: IfThenStatement ::= if ( Expression ) Statement // case 200: { //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 201: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 201: { //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1343 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 202: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 202: { //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 203: EmptyStatement ::= ; // case 203: { //#line 1355 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 204: LabeledStatement ::= identifier : Statement // case 204: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1361 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 205: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 205: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 206: ExpressionStatement ::= StatementExpression ; // case 206: { //#line 1370 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1372 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 214: AssertStatement ::= assert Expression ; // case 214: { //#line 1393 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1395 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 215: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 215: { //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1400 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 216: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 216: { //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 217: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 217: { //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 219: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 219: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 220: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 220: { //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1427 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 221: SwitchLabels ::= SwitchLabel // case 221: { //#line 1434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1436 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabels SwitchLabel // case 222: { //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1443 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 223: SwitchLabel ::= case ConstantExpression : // case 223: { //#line 1448 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1450 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 224: SwitchLabel ::= default : // case 224: { //#line 1457 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 225: WhileStatement ::= while ( Expression ) Statement // case 225: { //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 226: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 226: { //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1472 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 227: DoStatement ::= do Statement while ( Expression ) ; // case 227: { //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1478 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 230: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 230: { //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1487 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 231: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 231: { //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1493 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 233: ForInit ::= LocalVariableDeclaration // case 233: { //#line 1498 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 235: StatementExpressionList ::= StatementExpression // case 235: { //#line 1508 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1510 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 236: { //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 237: BreakStatement ::= break identifieropt ; // case 237: { //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1527 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 238: ContinueStatement ::= continue identifieropt ; // case 238: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 239: ReturnStatement ::= return Expressionopt ; // case 239: { //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1543 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 240: ThrowStatement ::= throw Expression ; // case 240: { //#line 1547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 241: TryStatement ::= try Block Catches // case 241: { //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1561 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 242: TryStatement ::= try Block Catchesopt Finally // case 242: { //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1566 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 243: Catches ::= CatchClause // case 243: { //#line 1570 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1572 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 244: Catches ::= Catches CatchClause // case 244: { //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1579 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 245: CatchClause ::= catch ( FormalParameter ) Block // case 245: { //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 246: Finally ::= finally Block // case 246: { //#line 1590 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1592 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 250: PrimaryNoNewArray ::= Type . class // case 250: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 251: PrimaryNoNewArray ::= void . class // case 251: { //#line 1631 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 252: PrimaryNoNewArray ::= this // case 252: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 253: PrimaryNoNewArray ::= ClassName . this // case 253: { //#line 1640 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1642 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 254: PrimaryNoNewArray ::= ( Expression ) // case 254: { //#line 1645 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1647 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 259: Literal ::= IntegerLiteral$IntegerLiteral // case 259: { //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1657 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 260: Literal ::= LongLiteral$LongLiteral // case 260: { //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1663 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 261: Literal ::= FloatingPointLiteral$FloatLiteral // case 261: { //#line 1667 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1669 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 262: Literal ::= DoubleLiteral$DoubleLiteral // case 262: { //#line 1673 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 263: Literal ::= BooleanLiteral // case 263: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 264: Literal ::= CharacterLiteral$CharacterLiteral // case 264: { //#line 1684 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 265: Literal ::= StringLiteral$str // case 265: { //#line 1690 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1692 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 266: Literal ::= null // case 266: { //#line 1698 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 267: BooleanLiteral ::= true$trueLiteral // case 267: { //#line 1702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 268: BooleanLiteral ::= false$falseLiteral // case 268: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: ArgumentList ::= Expression // case 269: { //#line 1722 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1724 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 270: ArgumentList ::= ArgumentList , Expression // case 270: { //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1731 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 271: DimExprs ::= DimExpr // case 271: { //#line 1765 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1767 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 272: DimExprs ::= DimExprs DimExpr // case 272: { //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1774 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 273: DimExpr ::= [ Expression ] // case 273: { //#line 1779 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 274: Dims ::= [ ] // case 274: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 275: Dims ::= Dims [ ] // case 275: { //#line 1790 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1792 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 276: FieldAccess ::= Primary . identifier // case 276: { //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 277: FieldAccess ::= super . identifier // case 277: { //#line 1801 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= ClassName . super$sup . identifier // case 278: { //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1808 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 279: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 279: { //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1814 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 281: PostfixExpression ::= ExpressionName // case 281: { //#line 1837 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1839 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 284: PostIncrementExpression ::= PostfixExpression ++ // case 284: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 285: PostDecrementExpression ::= PostfixExpression -- // case 285: { //#line 1851 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1853 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 288: UnaryExpression ::= + UnaryExpression // case 288: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 289: UnaryExpression ::= - UnaryExpression // case 289: { //#line 1864 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1866 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 291: PreIncrementExpression ::= ++ UnaryExpression // case 291: { //#line 1871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 292: PreDecrementExpression ::= -- UnaryExpression // case 292: { //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1879 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 294: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 294: { //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1886 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 295: { //#line 1889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1891 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 298: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 298: { //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1905 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 299: { //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1910 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 300: { //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 302: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 302: { //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 303: { //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1927 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 305: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 305: { //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1934 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 306: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 307: { //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1945 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 309: RelationalExpression ::= RelationalExpression < ShiftExpression // case 309: { //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression > ShiftExpression // case 310: { //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1958 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 311: { //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1963 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 312: { //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1968 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 314: EqualityExpression ::= EqualityExpression == RelationalExpression // case 314: { //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1984 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression != RelationalExpression // case 315: { //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1989 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 317: AndExpression ::= AndExpression & EqualityExpression // case 317: { //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1996 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 319: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 319: { //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 321: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 321: { //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2010 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 323: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 323: { //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 325: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 325: { //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 327: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 327: { //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 330: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 330: { //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 331: LeftHandSide ::= ExpressionName // case 331: { //#line 2044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2046 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 334: AssignmentOperator ::= = // case 334: { //#line 2054 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 335: AssignmentOperator ::= *= // case 335: { //#line 2059 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 336: AssignmentOperator ::= /= // case 336: { //#line 2064 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= %= // case 337: { //#line 2069 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= += // case 338: { //#line 2074 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= -= // case 339: { //#line 2079 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= <<= // case 340: { //#line 2084 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= > > = // case 341: { //#line 2089 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > > = // case 342: { //#line 2095 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= &= // case 343: { //#line 2101 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= ^= // case 344: { //#line 2106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= |= // case 345: { //#line 2111 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 348: Dimsopt ::= $Empty // case 348: { //#line 2124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 350: Catchesopt ::= $Empty // case 350: { //#line 2131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 352: identifieropt ::= $Empty // case 352: setResult(null); break; // // Rule 353: identifieropt ::= identifier // case 353: { //#line 2138 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2140 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 354: ForUpdateopt ::= $Empty // case 354: { //#line 2146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 356: Expressionopt ::= $Empty // case 356: setResult(null); break; // // Rule 358: ForInitopt ::= $Empty // case 358: { //#line 2157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 360: SwitchLabelsopt ::= $Empty // case 360: { //#line 2164 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 362: SwitchBlockStatementGroupsopt ::= $Empty // case 362: { //#line 2171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 364: VariableModifiersopt ::= $Empty // case 364: { //#line 2178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 366: VariableInitializersopt ::= $Empty // case 366: setResult(null); break; // // Rule 368: AbstractMethodModifiersopt ::= $Empty // case 368: { //#line 2208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 370: ConstantModifiersopt ::= $Empty // case 370: { //#line 2215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 372: InterfaceMemberDeclarationsopt ::= $Empty // case 372: { //#line 2222 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 374: ExtendsInterfacesopt ::= $Empty // case 374: { //#line 2229 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 376: InterfaceModifiersopt ::= $Empty // case 376: { //#line 2236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 378: ClassBodyopt ::= $Empty // case 378: setResult(null); break; // // Rule 380: Argumentsopt ::= $Empty // case 380: setResult(null); break; // // Rule 381: Argumentsopt ::= Arguments // case 381: throw new Error("No action specified for rule " + 381); // // Rule 382: ,opt ::= $Empty // case 382: setResult(null); break; // // Rule 384: ArgumentListopt ::= $Empty // case 384: { //#line 2266 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 386: BlockStatementsopt ::= $Empty // case 386: { //#line 2273 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 388: ExplicitConstructorInvocationopt ::= $Empty // case 388: setResult(null); break; // // Rule 390: ConstructorModifiersopt ::= $Empty // case 390: { //#line 2284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 392: ...opt ::= $Empty // case 392: setResult(null); break; // // Rule 394: FormalParameterListopt ::= $Empty // case 394: { //#line 2295 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 396: Throwsopt ::= $Empty // case 396: { //#line 2302 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 398: MethodModifiersopt ::= $Empty // case 398: { //#line 2309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 400: FieldModifiersopt ::= $Empty // case 400: { //#line 2316 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 402: ClassBodyDeclarationsopt ::= $Empty // case 402: { //#line 2323 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 404: Interfacesopt ::= $Empty // case 404: { //#line 2330 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 406: Superopt ::= $Empty // case 406: { //#line 2337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 408: ClassModifiersopt ::= $Empty // case 408: { //#line 2348 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 410: TypeDeclarationsopt ::= $Empty // case 410: { //#line 2360 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 412: ImportDeclarationsopt ::= $Empty // case 412: { //#line 2367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 414: PackageDeclarationopt ::= $Empty // case 414: setResult(null); break; // // Rule 416: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 416: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 417: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 734 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: PackageDeclaration ::= package PackageName ; // case 418: { //#line 740 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 742 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 419: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 419: { //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 748 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 421: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 421: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 422: X10ClassModifier ::= ClassModifier // case 422: { //#line 769 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 423: X10ClassModifier ::= safe // case 423: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 424: PropertyList ::= ( Properties WhereClauseopt ) // case 424: { //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 782 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 425: PropertyList ::= ( WhereClause ) // case 425: { //#line 787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 426: Properties ::= Property // case 426: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 427: Properties ::= Properties , Property // case 427: { //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 805 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 428: Property ::= Type identifier // case 428: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 813 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 429: MethodDeclaration ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt MethodBody // case 429: { //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(6); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, MethodBody)); break; } // // Rule 430: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 430: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 431: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 431: { //#line 855 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 857 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 432: { //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 862 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 433: { //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 434: { //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 435: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 435: { //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 890 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 436: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 436: { //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 437: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 930 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 439: { //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 440: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 440: { //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 441: { //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 949 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 443: AssignPropertyCall ::= property ( ArgumentList ) // case 443: { //#line 954 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 444: Type ::= DataType // case 444: { //#line 965 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 967 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 445: Type ::= nullable < Type > DepParametersopt // case 445: { //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 972 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 446: Type ::= future < Type > // case 446: { //#line 978 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 980 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 450: PrimitiveType ::= NumericType DepParametersopt // case 450: { //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 451: PrimitiveType ::= boolean DepParametersopt // case 451: { //#line 1003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1005 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 456: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 456: { //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 457: DepParameters ::= ( DepParameterExpr ) // case 457: { //#line 1036 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 458: DepParameterExpr ::= ArgumentList WhereClauseopt // case 458: { //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 459: DepParameterExpr ::= WhereClause // case 459: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1049 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 460: WhereClause ::= : ConstExpression // case 460: { //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1055 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 461: ConstPrimary ::= Literal // case 461: { //#line 1060 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1062 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 462: ConstPrimary ::= Type . class // case 462: { //#line 1065 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1067 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 463: ConstPrimary ::= void . class // case 463: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 464: ConstPrimary ::= this // case 464: { //#line 1092 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 465: ConstPrimary ::= here // case 465: { //#line 1097 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 466: ConstPrimary ::= ClassName . this // case 466: { //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1102 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 467: ConstPrimary ::= ( ConstExpression ) // case 467: { //#line 1105 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1107 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 469: ConstPrimary ::= self // case 469: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 470: ConstPostfixExpression ::= ConstPrimary // case 470: { //#line 1119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 471: ConstPostfixExpression ::= ExpressionName // case 471: { //#line 1124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 472: ConstUnaryExpression ::= ConstPostfixExpression // case 472: { //#line 1129 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 473: ConstUnaryExpression ::= + ConstUnaryExpression // case 473: { //#line 1134 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 474: ConstUnaryExpression ::= - ConstUnaryExpression // case 474: { //#line 1139 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= ! ConstUnaryExpression // case 475: { //#line 1144 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 476: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 476: { //#line 1150 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 477: { //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 478: { //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1162 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 479: { //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1167 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 480: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 480: { //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1173 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 481: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 481: { //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 482: { //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1183 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstRelationalExpression ::= ConstAdditiveExpression // case 483: { //#line 1188 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1190 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 484: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 484: { //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1195 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 485: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 486: { //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1205 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 487: { //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1210 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 488: ConstEqualityExpression ::= ConstRelationalExpression // case 488: { //#line 1214 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1216 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 489: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 489: { //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1221 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 490: { //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1226 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 491: ConstAndExpression ::= ConstEqualityExpression // case 491: { //#line 1230 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1232 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 492: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 492: { //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1237 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 493: ConstExclusiveOrExpression ::= ConstAndExpression // case 493: { //#line 1241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 494: { //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 495: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 495: { //#line 1252 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1254 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 496: { //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1259 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 497: ConstExpression ::= ConstInclusiveOrExpression // case 497: { //#line 1263 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1265 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 498: { //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1270 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 499: ConstFieldAccess ::= ConstPrimary . identifier // case 499: { //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 500: ConstFieldAccess ::= super . identifier // case 500: { //#line 1280 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= ClassName . super$sup . identifier // case 501: { //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1287 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 503: X10ArrayType ::= Type [ . ] // case 503: { //#line 1303 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1305 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 504: X10ArrayType ::= Type value [ . ] // case 504: { //#line 1308 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1310 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 505: X10ArrayType ::= Type [ DepParameterExpr ] // case 505: { //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1315 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 506: X10ArrayType ::= Type value [ DepParameterExpr ] // case 506: { //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1320 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 507: ObjectKind ::= value // case 507: throw new Error("No action specified for rule " + 507); // // Rule 508: ObjectKind ::= reference // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: MethodModifier ::= atomic // case 509: { //#line 1334 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 510: MethodModifier ::= extern // case 510: { //#line 1339 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 511: MethodModifier ::= safe // case 511: { //#line 1344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 512: MethodModifier ::= sequential // case 512: { //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 513: MethodModifier ::= local // case 513: { //#line 1354 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 514: MethodModifier ::= nonblocking // case 514: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 516: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 516: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1377 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 518: { //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 519: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 519: { //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 520: ThisClause ::= this DepParameters // case 520: { //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1408 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 521: Super ::= extends DataType // case 521: { //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 522: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 522: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 523: MethodDeclarator ::= MethodDeclarator [ ] // case 523: { //#line 1430 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1432 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 524: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 524: { //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1440 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 525: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 525: { //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 526: { //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1482 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 527: { //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1488 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 528: { //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1497 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 529: { //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 530: { //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1507 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 531: Valueopt ::= $Empty // case 531: setResult(null); break; // // Rule 532: Valueopt ::= value // case 532: { //#line 1516 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 535: ArrayBaseType ::= nullable < Type > // case 535: { //#line 1523 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 536: ArrayBaseType ::= future < Type > // case 536: { //#line 1528 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1530 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= ( Type ) // case 537: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 538: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 538: { //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 539: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 539: { //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1548 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 556: NowStatement ::= now ( Clock ) Statement // case 556: { //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1576 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 557: ClockedClause ::= clocked ( ClockList ) // case 557: { //#line 1580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1582 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 558: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 558: { //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 559: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 559: { //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1598 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 560: WhenStatement ::= when ( Expression ) Statement // case 560: { //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1607 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 561: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 561: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 562: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 562: { //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1619 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 563: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1629 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 564: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1639 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 565: FinishStatement ::= finish Statement // case 565: { //#line 1646 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 566: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 566: { //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 567: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 567: { //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 568: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 568: { //#line 1668 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1670 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 569: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 569: { //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1676 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 570: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 571: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 571: { //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1688 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 572: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1699 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 573: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 574: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 574: { //#line 1716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 575: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 575: { //#line 1723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 577: NextStatement ::= next ; // case 577: { //#line 1733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 578: AwaitStatement ::= await Expression ; // case 578: { //#line 1737 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1739 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 579: ClockList ::= Clock // case 579: { //#line 1743 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1745 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 580: ClockList ::= ClockList , Clock // case 580: { //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1752 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 581: Clock ::= Expression // case 581: { //#line 1758 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1760 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 582: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 582: { //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 583: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 583: { //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1777 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: RelationalExpression ::= RelationalExpression instanceof Type // case 584: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 585: IdentifierList ::= identifier // case 585: { //#line 1795 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1797 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 586: IdentifierList ::= IdentifierList , identifier // case 586: { //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1804 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 587: Primary ::= here // case 587: { //#line 1811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 590: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 590: { //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1829 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 591: RegionExpressionList ::= RegionExpression // case 591: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 592: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 592: { //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1854 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 593: Primary ::= [ RegionExpressionList ] // case 593: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 594: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 594: { //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 595: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 595: { //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 596: FieldModifier ::= mutable // case 596: { //#line 1892 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 597: FieldModifier ::= const // case 597: { //#line 1897 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 598: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 598: throw new Error("No action specified for rule " + 598); // // Rule 599: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: MethodModifier ::= synchronized // case 607: { //#line 1928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"synchronized\" is an invalid X10 Method Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.SYNCHRONIZED); break; } // // Rule 608: FieldModifier ::= volatile // case 608: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"volatile\" is an invalid X10 Field Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.VOLATILE); break; } // // Rule 609: SynchronizedStatement ::= synchronized ( Expression ) Block // case 609: { //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1946 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "Synchronized Statement is invalid in X10", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 610: ThisClauseopt ::= $Empty // case 610: setResult(null); break; // // Rule 612: PlaceTypeSpecifieropt ::= $Empty // case 612: setResult(null); break; // // Rule 614: DepParametersopt ::= $Empty // case 614: setResult(null); break; // // Rule 616: PropertyListopt ::= $Empty // case 616: setResult(null); break; // // Rule 618: WhereClauseopt ::= $Empty // case 618: setResult(null); break; // // Rule 620: ObjectKindopt ::= $Empty // case 620: setResult(null); break; // // Rule 622: ArrayInitializeropt ::= $Empty // case 622: setResult(null); break; // // Rule 624: PlaceExpressionSingleListopt ::= $Empty // case 624: setResult(null); break; // // Rule 626: ArgumentListopt ::= $Empty // case 626: setResult(null); break; // // Rule 628: X10ClassModifiersopt ::= $Empty // case 628: { //#line 1992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 630: DepParametersopt ::= $Empty // case 630: setResult(null); break; // // Rule 632: Unsafeopt ::= $Empty // case 632: setResult(null); break; // // Rule 633: Unsafeopt ::= unsafe // case 633: { //#line 2004 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 634: ParamIdopt ::= $Empty // case 634: setResult(null); break; // // Rule 635: ParamIdopt ::= identifier // case 635: { //#line 2011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2013 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 636: ClockedClauseopt ::= $Empty // case 636: { //#line 2019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; } | 1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/f8e1720cd66996a6339b992bf154aa0d019240a3/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
21036,
493,
33,
21036,
263,
1068,
548,
5411,
368,
5411,
648,
404,
30,
288,
7734,
368,
7,
1369,
1666,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
1759,
89,
98,
21,
19,
1252,
19,
92,
2163,
19,
71,
6904,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
7734,
1770,
21036,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
7734,
368,
7,
1369,
1725,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
1759,
89,
98,
21,
19,
1252,
19,
92,
2163,
19,
71,
6904,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
10792,
21582,
12,
2704,
1770,
12,
82,
74,
16,
4766,
1377,
3742,
16,
4766,
1377,
949,
12,
588,
3910,
6952,
9334,
16609,
6952,
1435,
3631,
4766,
1377,
21036,
16,
4766,
1377,
10971,
10019,
10792,
898,
31,
5411,
289,
5397,
368,
5411,
368,
6781,
576,
30,
225,
7508,
461,
493,
33,
7508,
461,
263,
1068,
548,
5411,
368,
5411,
648,
576,
30,
288,
7734,
368,
7,
1369,
2872,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
1759,
89,
98,
21,
19,
1252,
19,
92,
2163,
19,
71,
6904,
19,
92,
2163,
18,
9576,
19,
4816,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
21036,
493,
33,
21036,
263,
1068,
548,
5411,
368,
5411,
648,
404,
30,
288,
7734,
368,
7,
1369,
1666,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
1759,
89,
98,
21,
19,
1252,
19,
92,
2163,
19,
71,
6904,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
7734,
1770,
21036,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
7734,
368,
7,
1369,
1725,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
2
] |
||
if (FusionState.getFusionState(node.edges[0]).getPeekBufferSize() != 0) { | if (FusionState.getFusionState(node.edges[0]).getRemaining(node, true) > 0) { | private boolean setNecessary() { if (node.isDuplicateSplitter() && node.ways > 0) { //check that all the down stream buffersize are equal for both init and steady, //there is no peek buffer for immediate downstream int bufferSizeSteady = FusionState.getFusionState(node.edges[0]).getBufferSize(node, false); int bufferSizeInit = FusionState.getFusionState(node.edges[0]).getBufferSize(node, true); //make sure that the downstream buffersizes equal the buffer size incoming to this splitter if (this.getBufferSize(null, true) != bufferSizeInit) { //System.out.println("Splitter buffer size not equal to downstream buffersize (init)"); return true; } if (this.getBufferSize(null, false) != bufferSizeSteady) { //System.out.println("Splitter buffer size not equal to downstream buffersize (steady) " + return true; } //make sure that we have a filter if (!node.edges[0].isFilter()) { //System.out.println("Downstream not filter"); return true; } if (FusionState.getFusionState(node.edges[0]).getPeekBufferSize() != 0) { //System.out.println("Downstream peek buffer > 0"); return true; } for (int i = 1; i < node.ways; i++) { //make sure that there is a filter connected if (!node.edges[i].isFilter()) { //System.out.println("Downstream not filter"); return true; } //check the peek buffer, it must be zero if (FusionState.getFusionState(node.edges[0]).getPeekBufferSize() != 0) { //System.out.println("Downstream peek buffer > 0"); return true; } //if all buffer size's are equal, good if (bufferSizeSteady != FusionState.getFusionState(node.edges[i]).getBufferSize(node, false)) { //System.out.println("Unequal buffer sizes of children (steady)"); return true; } if (bufferSizeInit != FusionState.getFusionState(node.edges[i]).getBufferSize(node, true)) { //System.out.println("Unequal buffer sizes of children (init)"); return true; } } //got here, so everything passed! it is not true that this splitter needs to be generated return false; } //not a duplicate splitter return true; } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/ec8db6f914c3e0d6fe36afd136f4197d6f3f842e/SplitterFusionState.java/buggy/streams/src/at/dms/kjc/rstream/SplitterFusionState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
444,
23961,
1435,
377,
288,
202,
430,
261,
2159,
18,
291,
11826,
26738,
1435,
597,
756,
18,
3052,
405,
374,
13,
288,
202,
565,
368,
1893,
716,
777,
326,
2588,
1407,
9664,
554,
854,
3959,
364,
3937,
1208,
471,
384,
684,
93,
16,
3196,
565,
368,
18664,
353,
1158,
8032,
1613,
364,
14483,
18186,
3196,
565,
509,
16939,
510,
684,
93,
273,
478,
7063,
1119,
18,
588,
42,
7063,
1119,
12,
2159,
18,
8746,
63,
20,
65,
2934,
588,
15384,
12,
2159,
16,
629,
1769,
202,
565,
509,
16939,
2570,
273,
478,
7063,
1119,
18,
588,
42,
7063,
1119,
12,
2159,
18,
8746,
63,
20,
65,
2934,
588,
15384,
12,
2159,
16,
638,
1769,
202,
565,
368,
6540,
3071,
716,
326,
18186,
9664,
3128,
3959,
326,
1613,
963,
6935,
358,
333,
21553,
202,
565,
309,
261,
2211,
18,
588,
15384,
12,
2011,
16,
638,
13,
480,
225,
16939,
2570,
13,
288,
202,
202,
759,
3163,
18,
659,
18,
8222,
2932,
26738,
1613,
963,
486,
3959,
358,
18186,
9664,
554,
261,
2738,
2225,
1769,
202,
202,
2463,
638,
31,
202,
565,
289,
202,
565,
309,
261,
2211,
18,
588,
15384,
12,
2011,
16,
629,
13,
480,
225,
16939,
510,
684,
93,
13,
288,
202,
202,
759,
3163,
18,
659,
18,
8222,
2932,
26738,
1613,
963,
486,
3959,
358,
18186,
9664,
554,
261,
334,
684,
93,
13,
315,
397,
3196,
202,
2463,
638,
31,
202,
565,
289,
202,
565,
368,
6540,
3071,
716,
732,
1240,
279,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
444,
23961,
1435,
377,
288,
202,
430,
261,
2159,
18,
291,
11826,
26738,
1435,
597,
756,
18,
3052,
405,
374,
13,
288,
202,
565,
368,
1893,
716,
777,
326,
2588,
1407,
9664,
554,
854,
3959,
364,
3937,
1208,
471,
384,
684,
93,
16,
3196,
565,
368,
18664,
353,
1158,
8032,
1613,
364,
14483,
18186,
3196,
565,
509,
16939,
510,
684,
93,
273,
478,
7063,
1119,
18,
588,
42,
7063,
1119,
12,
2159,
18,
8746,
63,
20,
65,
2934,
588,
15384,
12,
2159,
16,
629,
1769,
202,
565,
509,
16939,
2570,
273,
478,
7063,
1119,
18,
588,
42,
7063,
1119,
12,
2159,
18,
8746,
63,
20,
65,
2934,
588,
15384,
12,
2159,
16,
638,
1769,
202,
565,
2
] |
for(Entry<Long,byte[]> e : updateMap.entrySet()){ dataSpace.put(e.getKey(),new SoftReference<byte[]>(e.getValue())); | for (Entry<Long, byte[]> e : updateMap.entrySet()) { dataSpace.put(e.getKey(), new SoftReference<byte[]>(e .getValue())); | public void atomicUpdate(boolean clear, Map<String, Long> newNames, Set<Long> deleteSet, Map<Long, byte[]> updateMap, Set insertIDs) { synchronized (dataSpace) { synchronized (nameSpace) { for(Entry<Long,byte[]> e : updateMap.entrySet()){ dataSpace.put(e.getKey(),new SoftReference<byte[]>(e.getValue())); } nameSpace.putAll(newNames); for (Long id : deleteSet) { dataSpace.remove(id); } } } // asynchronously update the persistant storage // IMPORTANT: This update record will pin the objects in memory and thus // in the cache until it is complete This is VERY important so that things // don't get cleaned out of the cache until they have been persisted. // It is acceptable to lose transactions, if the entire system dies, but that // is the only time. Even in this case those lost must be atomic (all or nothing.) Long[] nameIDs = new Long[newNames.values().size()]; String[] names = new String[newNames.keySet().size()]; int i=0; for(Entry<String,Long> e : newNames.entrySet()){ nameIDs[i] = e.getValue(); names[i++] = e.getKey(); } Long[] deleteIDs = new Long[deleteSet.size()]; i=0; for(Long l : deleteSet){ deleteIDs[i++] = l; } Long[] updateIDs = new Long[updateMap.entrySet().size()]; byte[][] updateData = new byte[updateMap.entrySet().size()][]; i=0; for(Entry<Long,byte[]> e : updateMap.entrySet()){ updateIDs[i] = e.getKey(); updateData[i++]= e.getValue(); } Set<Long> insertSet = new HashSet<Long>(insertIDs); diskUpdateQueue.add(new DiskUpdateRecord(updateIDs,updateData, nameIDs,names,deleteIDs,id,insertSet)); } | 55380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55380/987e5fd762c50fabd2d33a1688473f28f21457f4/PersistantInMemoryDataSpace.java/clean/src/com/sun/gi/objectstore/tso/dataspace/PersistantInMemoryDataSpace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7960,
1891,
12,
6494,
2424,
16,
1635,
32,
780,
16,
3407,
34,
394,
1557,
16,
1082,
202,
694,
32,
3708,
34,
1430,
694,
16,
1635,
32,
3708,
16,
1160,
8526,
34,
1089,
863,
16,
1000,
2243,
5103,
13,
288,
202,
202,
22043,
261,
892,
3819,
13,
288,
1082,
202,
22043,
261,
529,
3819,
13,
288,
9506,
202,
1884,
12,
1622,
32,
3708,
16,
7229,
8526,
34,
425,
294,
1089,
863,
18,
4099,
694,
10756,
95,
6862,
202,
892,
3819,
18,
458,
12,
73,
18,
588,
653,
9334,
2704,
12438,
2404,
32,
7229,
8526,
34,
12,
73,
18,
24805,
1435,
10019,
9506,
202,
97,
9506,
202,
529,
3819,
18,
458,
1595,
12,
2704,
1557,
1769,
9506,
202,
1884,
261,
3708,
612,
294,
1430,
694,
13,
288,
6862,
202,
892,
3819,
18,
4479,
12,
350,
1769,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
759,
14952,
1089,
326,
3898,
970,
2502,
202,
202,
759,
21840,
6856,
30,
1220,
1089,
1409,
903,
7092,
326,
2184,
316,
3778,
471,
12493,
202,
202,
759,
316,
326,
1247,
3180,
518,
353,
3912,
225,
1220,
353,
6422,
61,
10802,
1427,
716,
9198,
202,
202,
759,
2727,
1404,
336,
9426,
596,
434,
326,
1247,
3180,
2898,
1240,
2118,
14249,
18,
202,
202,
759,
2597,
353,
14206,
358,
29612,
8938,
16,
309,
326,
7278,
2619,
27890,
16,
1496,
716,
202,
202,
759,
353,
326,
1338,
813,
18,
225,
25067,
316,
333,
648,
5348,
13557,
1297,
506,
7960,
261,
454,
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,
7960,
1891,
12,
6494,
2424,
16,
1635,
32,
780,
16,
3407,
34,
394,
1557,
16,
1082,
202,
694,
32,
3708,
34,
1430,
694,
16,
1635,
32,
3708,
16,
1160,
8526,
34,
1089,
863,
16,
1000,
2243,
5103,
13,
288,
202,
202,
22043,
261,
892,
3819,
13,
288,
1082,
202,
22043,
261,
529,
3819,
13,
288,
9506,
202,
1884,
12,
1622,
32,
3708,
16,
7229,
8526,
34,
425,
294,
1089,
863,
18,
4099,
694,
10756,
95,
6862,
202,
892,
3819,
18,
458,
12,
73,
18,
588,
653,
9334,
2704,
12438,
2404,
32,
7229,
8526,
34,
12,
73,
18,
24805,
1435,
10019,
9506,
202,
97,
9506,
202,
529,
3819,
18,
458,
1595,
12,
2704,
1557,
1769,
9506,
2
] |
throw new IllegalArgumentException( Messages.getString( "error.invalid.classifier", new Object[]{ eClass.getName( ) }, Locale.getDefault( ) ) ); | throw new IllegalArgumentException( "The class '" + eClass.getName( ) + "' is not a valid classifier" ); | public EObject create( EClass eClass ) { switch ( eClass.getClassifierID( ) ) { case TypePackage.BAR_SERIES : return createBarSeries( ); case TypePackage.LINE_SERIES : return createLineSeries( ); case TypePackage.PIE_SERIES : return createPieSeries( ); case TypePackage.SCATTER_SERIES : return createScatterSeries( ); case TypePackage.STOCK_SERIES : return createStockSeries( ); default : throw new IllegalArgumentException( Messages.getString( "error.invalid.classifier", //$NON-NLS-1$ new Object[]{ eClass.getName( ) }, Locale.getDefault( ) ) ); } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/bdab78403751f288b76844a99f50b999c34fb491/TypeFactoryImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/TypeFactoryImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8091,
752,
12,
8233,
425,
797,
262,
202,
95,
202,
202,
9610,
261,
425,
797,
18,
588,
13860,
734,
12,
262,
262,
202,
202,
95,
1082,
202,
3593,
1412,
2261,
18,
21908,
67,
2123,
8805,
294,
9506,
202,
2463,
752,
5190,
6485,
12,
11272,
1082,
202,
3593,
1412,
2261,
18,
5997,
67,
2123,
8805,
294,
9506,
202,
2463,
752,
1670,
6485,
12,
11272,
1082,
202,
3593,
1412,
2261,
18,
24414,
67,
2123,
8805,
294,
9506,
202,
2463,
752,
52,
1385,
6485,
12,
11272,
1082,
202,
3593,
1412,
2261,
18,
2312,
789,
2560,
67,
2123,
8805,
294,
9506,
202,
2463,
752,
1541,
9293,
6485,
12,
11272,
1082,
202,
3593,
1412,
2261,
18,
31487,
3507,
67,
2123,
8805,
294,
9506,
202,
2463,
752,
17821,
6485,
12,
11272,
1082,
202,
1886,
294,
9506,
202,
12849,
394,
2754,
12,
4838,
18,
588,
780,
12,
315,
1636,
18,
5387,
18,
1106,
1251,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
25083,
202,
2704,
1033,
63,
7073,
6862,
1082,
202,
73,
797,
18,
17994,
12,
262,
25083,
202,
5779,
25083,
202,
3916,
18,
588,
1868,
12,
262,
262,
11272,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8091,
752,
12,
8233,
425,
797,
262,
202,
95,
202,
202,
9610,
261,
425,
797,
18,
588,
13860,
734,
12,
262,
262,
202,
202,
95,
1082,
202,
3593,
1412,
2261,
18,
21908,
67,
2123,
8805,
294,
9506,
202,
2463,
752,
5190,
6485,
12,
11272,
1082,
202,
3593,
1412,
2261,
18,
5997,
67,
2123,
8805,
294,
9506,
202,
2463,
752,
1670,
6485,
12,
11272,
1082,
202,
3593,
1412,
2261,
18,
24414,
67,
2123,
8805,
294,
9506,
202,
2463,
752,
52,
1385,
6485,
12,
11272,
1082,
202,
3593,
1412,
2261,
18,
2312,
789,
2560,
67,
2123,
8805,
294,
9506,
202,
2463,
752,
1541,
9293,
6485,
12,
11272,
1082,
202,
3593,
1412,
2261,
18,
31487,
3507,
67,
2123,
8805,
2
] |
if (value == null) return null; | if (value == null) { return null; } | public FontData[] getValue() { if (value == null) return null; if (parsedValue == null) { parsedValue = JFaceResources.getFontRegistry().filterData( StringConverter.asFontDataArray(value), Workbench.getInstance().getDisplay()); } return parsedValue; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/FontDefinition.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/FontDefinition.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10063,
751,
8526,
2366,
1435,
288,
3639,
309,
261,
1132,
422,
446,
13,
5411,
327,
446,
31,
3639,
309,
261,
10817,
620,
422,
446,
13,
288,
5411,
2707,
620,
273,
804,
11824,
3805,
18,
588,
5711,
4243,
7675,
2188,
751,
12,
10792,
514,
5072,
18,
345,
5711,
751,
1076,
12,
1132,
3631,
10792,
4147,
22144,
18,
588,
1442,
7675,
588,
4236,
10663,
3639,
289,
3639,
327,
2707,
620,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10063,
751,
8526,
2366,
1435,
288,
3639,
309,
261,
1132,
422,
446,
13,
5411,
327,
446,
31,
3639,
309,
261,
10817,
620,
422,
446,
13,
288,
5411,
2707,
620,
273,
804,
11824,
3805,
18,
588,
5711,
4243,
7675,
2188,
751,
12,
10792,
514,
5072,
18,
345,
5711,
751,
1076,
12,
1132,
3631,
10792,
4147,
22144,
18,
588,
1442,
7675,
588,
4236,
10663,
3639,
289,
3639,
327,
2707,
620,
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
] |
dlog.debug("Constructor() " + searchService); this.searchService = searchService; | dlog.debug("Constructor()"); | public SearchReloadNotificationAction(SearchService searchService) { dlog.debug("Constructor() " + searchService); this.searchService = searchService; } | 51480 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51480/4974e4d5f3acc4e78da24df0ceb0d12f985f8844/SearchReloadNotificationAction.java/buggy/search-impl/impl/src/java/org/sakaiproject/search/component/service/impl/SearchReloadNotificationAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5167,
13013,
4386,
1803,
12,
2979,
1179,
1623,
1179,
13,
202,
95,
202,
202,
72,
1330,
18,
4148,
2932,
6293,
1435,
315,
397,
1623,
1179,
1769,
202,
202,
2211,
18,
3072,
1179,
273,
1623,
1179,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
5167,
13013,
4386,
1803,
12,
2979,
1179,
1623,
1179,
13,
202,
95,
202,
202,
72,
1330,
18,
4148,
2932,
6293,
1435,
315,
397,
1623,
1179,
1769,
202,
202,
2211,
18,
3072,
1179,
273,
1623,
1179,
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
] |
IMylarStructureBridge bridge = (IMylarStructureBridge)object; | IMylarStructureBridge bridge = (IMylarStructureBridge) object; | private static void readBridge(IConfigurationElement element) { try{ Object object = element.createExecutableExtension(MylarPlugin.ELEMENT_STRUCTURE_BRIDGE_CLASS); if (object instanceof IMylarStructureBridge) { IMylarStructureBridge bridge = (IMylarStructureBridge)object; MylarPlugin.getDefault().internalAddBridge(bridge); if (element.getAttribute(MylarPlugin.ELEMENT_STRUCTURE_BRIDGE_PARENT) != null) { Object parent = element.createExecutableExtension(MylarPlugin.ELEMENT_STRUCTURE_BRIDGE_PARENT); if (parent instanceof IMylarStructureBridge) { ((IMylarStructureBridge)bridge).setParentBridge(((IMylarStructureBridge)parent));// ((IMylarStructureBridge)parent).addChildBridge(((IMylarStructureBridge)bridge)); } else { MylarPlugin.log("Could not load parent bridge: " + parent.getClass().getCanonicalName() + " must implement " + IMylarStructureBridge.class.getCanonicalName(), thisReader); } } String iconPath = element.getAttribute(MylarPlugin.ELEMENT_STRUCTURE_BRIDGE_SEARCH_ICON); if (iconPath != null) { ImageDescriptor descriptor = AbstractUIPlugin.imageDescriptorFromPlugin(element.getNamespace(), iconPath); if (descriptor != null) { MylarPlugin.getDefault().setActiveSearchIcon(bridge, descriptor); } } String label = element.getAttribute(MylarPlugin.ELEMENT_STRUCTURE_BRIDGE_SEARCH_LABEL); if (label != null) { MylarPlugin.getDefault().setActiveSearchLabel(bridge, label); } } else { MylarPlugin.log("Could not load bridge: " + object.getClass().getCanonicalName() + " must implement " + IMylarStructureBridge.class.getCanonicalName(), thisReader); } } catch (CoreException e){ MylarPlugin.log(e, "Could not load bridge extension"); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/679ce7169ba0efad3075c761ad610c7320d9c69a/MylarPlugin.java/clean/org.eclipse.mylyn.context.core/src/org/eclipse/mylyn/core/MylarPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
760,
918,
855,
13691,
12,
45,
1750,
1046,
930,
13,
288,
1082,
202,
698,
95,
9506,
202,
921,
733,
273,
930,
18,
2640,
17709,
3625,
12,
12062,
7901,
3773,
18,
10976,
67,
13915,
4830,
67,
7192,
734,
7113,
67,
5237,
1769,
9506,
202,
430,
261,
1612,
1276,
6246,
93,
7901,
6999,
13691,
13,
288,
6862,
202,
3445,
93,
7901,
6999,
13691,
10105,
273,
261,
3445,
93,
7901,
6999,
13691,
13,
1612,
31,
6862,
202,
12062,
7901,
3773,
18,
588,
1868,
7675,
7236,
986,
13691,
12,
18337,
1769,
6862,
202,
430,
261,
2956,
18,
588,
1499,
12,
12062,
7901,
3773,
18,
10976,
67,
13915,
4830,
67,
7192,
734,
7113,
67,
14943,
13,
480,
446,
13,
288,
25083,
202,
921,
982,
273,
930,
18,
2640,
17709,
3625,
12,
12062,
7901,
3773,
18,
10976,
67,
13915,
4830,
67,
7192,
734,
7113,
67,
14943,
1769,
25083,
202,
430,
261,
2938,
1276,
6246,
93,
7901,
6999,
13691,
13,
288,
6862,
1082,
202,
12443,
3445,
93,
7901,
6999,
13691,
13,
18337,
2934,
542,
3054,
13691,
12443,
12,
3445,
93,
7901,
6999,
13691,
13,
2938,
10019,
759,
6862,
1082,
202,
12443,
3445,
93,
7901,
6999,
13691,
13,
2938,
2934,
1289,
1763,
13691,
12443,
12,
3445,
93,
7901,
6999,
13691,
13,
18337,
10019,
25083,
202,
97,
469,
288,
6862,
1082,
202,
12062,
7901,
3773,
18,
1330,
2932,
4445,
486,
1262,
982,
10105,
30,
315,
397,
982,
18,
588,
797,
7675,
588,
15512,
461,
1435,
397,
315,
1297,
2348,
315,
397,
6246,
93,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
760,
918,
855,
13691,
12,
45,
1750,
1046,
930,
13,
288,
1082,
202,
698,
95,
9506,
202,
921,
733,
273,
930,
18,
2640,
17709,
3625,
12,
12062,
7901,
3773,
18,
10976,
67,
13915,
4830,
67,
7192,
734,
7113,
67,
5237,
1769,
9506,
202,
430,
261,
1612,
1276,
6246,
93,
7901,
6999,
13691,
13,
288,
6862,
202,
3445,
93,
7901,
6999,
13691,
10105,
273,
261,
3445,
93,
7901,
6999,
13691,
13,
1612,
31,
6862,
202,
12062,
7901,
3773,
18,
588,
1868,
7675,
7236,
986,
13691,
12,
18337,
1769,
6862,
202,
430,
261,
2956,
18,
588,
1499,
12,
12062,
7901,
3773,
18,
10976,
67,
13915,
4830,
67,
7192,
734,
7113,
67,
14943,
13,
480,
446,
13,
288,
25083,
2
] |
log.info("Creating a new Collection for " + INVENTORY_NAME); | LOG.info("Creating a new Collection for " + INVENTORY_NAME); | private void verifyInventory() throws NamingException, XMLDBException { Context ctx = new InitialContext(); XmlDbService xmlDbService = (XmlDbService) ctx.lookup(XmlDbService.class.getName()); Collection baseCol = xmlDbService.getBaseCollection(); log.info("Got base Collection " + baseCol); inventory = baseCol.getChildCollection(INVENTORY_NAME); if (inventory == null) { log.info("Creating a new Collection for " + INVENTORY_NAME); CollectionManagementService mgtService = XmlDbService.getCollectionManagementService(baseCol); log.info("got CollectionManagementService"); inventory = mgtService.createCollection(INVENTORY_NAME); log.info("Collection " + INVENTORY_NAME + " created."); } else { log.info("Found existing inventory collection "); } } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/259d390766d53777291ce24c97af4ea0fa6221d8/XmlDbClientService.java/buggy/thirdparty/jboss/src/samples/XmlDbClientService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3929,
15059,
1435,
1216,
26890,
16,
26014,
503,
288,
3639,
1772,
1103,
273,
394,
10188,
1042,
5621,
3639,
5714,
4331,
1179,
2025,
4331,
1179,
273,
261,
4432,
4331,
1179,
13,
1103,
18,
8664,
12,
4432,
4331,
1179,
18,
1106,
18,
17994,
10663,
3639,
2200,
1026,
914,
273,
2025,
4331,
1179,
18,
588,
2171,
2532,
5621,
3639,
613,
18,
1376,
2932,
15617,
1026,
2200,
315,
397,
1026,
914,
1769,
3639,
13086,
273,
1026,
914,
18,
588,
1763,
2532,
12,
706,
6465,
3964,
67,
1985,
1769,
3639,
309,
261,
26024,
422,
446,
13,
288,
5411,
2018,
18,
1376,
2932,
11092,
279,
394,
2200,
364,
315,
397,
2120,
6465,
3964,
67,
1985,
1769,
5411,
2200,
10998,
1179,
312,
4521,
1179,
273,
5714,
4331,
1179,
18,
588,
2532,
10998,
1179,
12,
1969,
914,
1769,
5411,
613,
18,
1376,
2932,
13212,
2200,
10998,
1179,
8863,
5411,
13086,
273,
312,
4521,
1179,
18,
2640,
2532,
12,
706,
6465,
3964,
67,
1985,
1769,
5411,
613,
18,
1376,
2932,
2532,
315,
397,
2120,
6465,
3964,
67,
1985,
397,
315,
2522,
1199,
1769,
3639,
289,
469,
288,
5411,
613,
18,
1376,
2932,
2043,
2062,
13086,
1849,
315,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3929,
15059,
1435,
1216,
26890,
16,
26014,
503,
288,
3639,
1772,
1103,
273,
394,
10188,
1042,
5621,
3639,
5714,
4331,
1179,
2025,
4331,
1179,
273,
261,
4432,
4331,
1179,
13,
1103,
18,
8664,
12,
4432,
4331,
1179,
18,
1106,
18,
17994,
10663,
3639,
2200,
1026,
914,
273,
2025,
4331,
1179,
18,
588,
2171,
2532,
5621,
3639,
613,
18,
1376,
2932,
15617,
1026,
2200,
315,
397,
1026,
914,
1769,
3639,
13086,
273,
1026,
914,
18,
588,
1763,
2532,
12,
706,
6465,
3964,
67,
1985,
1769,
3639,
309,
261,
26024,
422,
446,
13,
288,
5411,
2018,
18,
1376,
2932,
11092,
279,
394,
2200,
364,
315,
397,
2120,
6465,
3964,
67,
1985,
1769,
5411,
2200,
10998,
1179,
312,
4521,
2
] |
if (edit instanceof ElementChange) | if (edit instanceof DocumentEvent.ElementChange) | public boolean addEdit(UndoableEdit edit) { if (edit instanceof ElementChange) { ElementChange elEdit = (ElementChange) edit; changes.put(elEdit.getElement(), elEdit); } return super.addEdit(edit); } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/d03b7ded9dacd5a74a8420d7dade451079b17d89/AbstractDocument.java/buggy/libraries/javalib/javax/swing/text/AbstractDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
527,
4666,
12,
31224,
429,
4666,
3874,
13,
565,
288,
4202,
309,
261,
4619,
1276,
4319,
1133,
18,
1046,
3043,
13,
3639,
288,
1850,
3010,
3043,
415,
4666,
273,
261,
1046,
3043,
13,
3874,
31,
1850,
3478,
18,
458,
12,
292,
4666,
18,
21336,
9334,
415,
4666,
1769,
3639,
289,
1377,
327,
2240,
18,
1289,
4666,
12,
4619,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
527,
4666,
12,
31224,
429,
4666,
3874,
13,
565,
288,
4202,
309,
261,
4619,
1276,
4319,
1133,
18,
1046,
3043,
13,
3639,
288,
1850,
3010,
3043,
415,
4666,
273,
261,
1046,
3043,
13,
3874,
31,
1850,
3478,
18,
458,
12,
292,
4666,
18,
21336,
9334,
415,
4666,
1769,
3639,
289,
1377,
327,
2240,
18,
1289,
4666,
12,
4619,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return jjMoveStringLiteralDfa3_4(active0, 0x4000000000000L); | return jjMoveStringLiteralDfa3_4(active0, 0x800000000000L); | private final int jjMoveStringLiteralDfa2_4(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_4(0, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_4(1, active0); return 2; } switch(curChar) { case 111: return jjMoveStringLiteralDfa3_4(active0, 0x4000000000000L); case 115: return jjMoveStringLiteralDfa3_4(active0, 0x1000000000000L); default : break; } return jjStartNfa_4(1, active0);} | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/89173502837b4d67a69cd30d0b93cf47ed84c8cc/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
22,
67,
24,
12,
5748,
1592,
20,
16,
1525,
2695,
20,
15329,
282,
309,
261,
12443,
3535,
20,
12058,
1592,
20,
3719,
422,
374,
48,
13,
1377,
327,
10684,
1685,
50,
507,
67,
24,
12,
20,
16,
1592,
20,
1769,
565,
775,
288,
662,
2156,
273,
810,
67,
3256,
18,
896,
2156,
5621,
289,
282,
1044,
12,
6290,
18,
1594,
18,
14106,
425,
13,
288,
1377,
10684,
4947,
28565,
40,
507,
67,
24,
12,
21,
16,
2695,
20,
1769,
1377,
327,
576,
31,
282,
289,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
16344,
30,
540,
327,
10684,
7607,
28565,
40,
507,
23,
67,
24,
12,
3535,
20,
16,
374,
92,
28,
12648,
3784,
48,
1769,
1377,
648,
22821,
30,
540,
327,
10684,
7607,
28565,
40,
507,
23,
67,
24,
12,
3535,
20,
16,
374,
92,
21,
12648,
2787,
48,
1769,
1377,
805,
294,
540,
898,
31,
282,
289,
282,
327,
10684,
1685,
50,
507,
67,
24,
12,
21,
16,
2695,
20,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
22,
67,
24,
12,
5748,
1592,
20,
16,
1525,
2695,
20,
15329,
282,
309,
261,
12443,
3535,
20,
12058,
1592,
20,
3719,
422,
374,
48,
13,
1377,
327,
10684,
1685,
50,
507,
67,
24,
12,
20,
16,
1592,
20,
1769,
565,
775,
288,
662,
2156,
273,
810,
67,
3256,
18,
896,
2156,
5621,
289,
282,
1044,
12,
6290,
18,
1594,
18,
14106,
425,
13,
288,
1377,
10684,
4947,
28565,
40,
507,
67,
24,
12,
21,
16,
2695,
20,
1769,
1377,
327,
576,
31,
282,
289,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
16344,
30,
540,
327,
10684,
7607,
28565,
40,
507,
23,
67,
24,
12,
3535,
20,
16,
2
] |
getHighlighter().addHighlight(startPos, endPos, _listHighlightPainter); | _highlightManager.addHighlight(startPos, endPos, _listHighlightPainter); | public void selectItem(CompilerError error) { // Find corresponding index int i = _getIndexForError(error); _selectedIndex = i; _removeListHighlight(); int startPos = _errorListPositions[i].getOffset(); // end pos is either the end of the document (if this is the last error) // or the char where the next error starts int endPos; if (i + 1 >= (_numErrors)) { endPos = getDocument().getLength(); } else { endPos = _errorListPositions[i + 1].getOffset(); } try { _listHighlightTag = getHighlighter().addHighlight(startPos, endPos, _listHighlightPainter); // Scroll to make sure this item is visible Rectangle startRect = modelToView(startPos); Rectangle endRect = modelToView(endPos - 1); // Add the end rect onto the start rect to make a rectangle // that encompasses the entire error startRect.add(endRect); //System.err.println("scrll vis: " + startRect); scrollRectToVisible(startRect); } catch (BadLocationException badBadLocation) {} _resetEnabledStatus(); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/e782d4da2d7bff038017015047af677bda357a17/CompilerErrorPanel.java/buggy/drjava/src/edu/rice/cs/drjava/ui/CompilerErrorPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2027,
1180,
12,
9213,
668,
555,
13,
288,
1377,
368,
4163,
4656,
770,
1377,
509,
277,
273,
389,
588,
1016,
1290,
668,
12,
1636,
1769,
1377,
389,
8109,
1016,
273,
277,
31,
1377,
389,
4479,
682,
16205,
5621,
1377,
509,
16013,
273,
389,
1636,
682,
11024,
63,
77,
8009,
588,
2335,
5621,
1377,
368,
679,
949,
353,
3344,
326,
679,
434,
326,
1668,
261,
430,
333,
353,
326,
1142,
555,
13,
1377,
368,
578,
326,
1149,
1625,
326,
1024,
555,
2542,
1377,
509,
19809,
31,
1377,
309,
261,
77,
397,
404,
1545,
261,
67,
2107,
4229,
3719,
288,
3639,
19809,
273,
9956,
7675,
588,
1782,
5621,
1377,
289,
1377,
469,
288,
3639,
19809,
273,
389,
1636,
682,
11024,
63,
77,
397,
404,
8009,
588,
2335,
5621,
1377,
289,
1377,
775,
288,
3639,
389,
1098,
16205,
1805,
273,
1850,
7628,
2031,
23624,
7675,
1289,
16205,
12,
1937,
1616,
16,
4766,
3639,
19809,
16,
4766,
3639,
389,
1098,
16205,
15775,
1769,
3639,
368,
23134,
358,
1221,
3071,
333,
761,
353,
6021,
3639,
13264,
787,
6120,
273,
938,
774,
1767,
12,
1937,
1616,
1769,
3639,
13264,
679,
6120,
273,
938,
774,
1767,
12,
409,
1616,
300,
404,
1769,
3639,
368,
1436,
326,
679,
4917,
10170,
326,
787,
4917,
358,
1221,
279,
11845,
3639,
368,
716,
570,
2919,
428,
281,
326,
7278,
555,
3639,
787,
6120,
18,
1289,
12,
409,
6120,
1769,
3639,
368,
3163,
18,
370,
18,
8222,
2932,
1017,
1321,
80,
2281,
30,
315,
397,
787,
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,
2027,
1180,
12,
9213,
668,
555,
13,
288,
1377,
368,
4163,
4656,
770,
1377,
509,
277,
273,
389,
588,
1016,
1290,
668,
12,
1636,
1769,
1377,
389,
8109,
1016,
273,
277,
31,
1377,
389,
4479,
682,
16205,
5621,
1377,
509,
16013,
273,
389,
1636,
682,
11024,
63,
77,
8009,
588,
2335,
5621,
1377,
368,
679,
949,
353,
3344,
326,
679,
434,
326,
1668,
261,
430,
333,
353,
326,
1142,
555,
13,
1377,
368,
578,
326,
1149,
1625,
326,
1024,
555,
2542,
1377,
509,
19809,
31,
1377,
309,
261,
77,
397,
404,
1545,
261,
67,
2107,
4229,
3719,
288,
3639,
19809,
273,
9956,
7675,
588,
1782,
5621,
1377,
289,
1377,
469,
288,
3639,
19809,
273,
389,
1636,
2
] |
if (pasteAction != null && pasteAction.getStructuredSelection() != null) pasteAction.selectionChanged(pasteAction.getStructuredSelection()); | if (pasteAction != null && pasteAction.getStructuredSelection() != null) { pasteAction.selectionChanged(pasteAction.getStructuredSelection()); } | public void run() { List selectedResources = getSelectedResources(); IResource[] resources = (IResource[]) selectedResources .toArray(new IResource[selectedResources.size()]); // Get the file names and a string representation final int length = resources.length; int actualLength = 0; String[] fileNames = new String[length]; StringBuffer buf = new StringBuffer(); for (int i = 0; i < length; i++) { IPath location = resources[i].getLocation(); // location may be null. See bug 29491. if (location != null) fileNames[actualLength++] = location.toOSString(); if (i > 0) buf.append("\n"); //$NON-NLS-1$ buf.append(resources[i].getName()); } // was one or more of the locations null? if (actualLength < length) { String[] tempFileNames = fileNames; fileNames = new String[actualLength]; for (int i = 0; i < actualLength; i++) fileNames[i] = tempFileNames[i]; } setClipboard(resources, fileNames, buf.toString()); // update the enablement of the paste action // workaround since the clipboard does not suppot callbacks if (pasteAction != null && pasteAction.getStructuredSelection() != null) pasteAction.selectionChanged(pasteAction.getStructuredSelection()); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/CopyAction.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/CopyAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
987,
3170,
3805,
273,
16625,
3805,
5621,
3639,
467,
1420,
8526,
2703,
273,
261,
45,
1420,
63,
5717,
3170,
3805,
7734,
263,
31447,
12,
2704,
467,
1420,
63,
8109,
3805,
18,
1467,
1435,
19226,
3639,
368,
968,
326,
585,
1257,
471,
279,
533,
4335,
3639,
727,
509,
769,
273,
2703,
18,
2469,
31,
3639,
509,
3214,
1782,
273,
374,
31,
3639,
514,
8526,
27375,
273,
394,
514,
63,
2469,
15533,
3639,
6674,
1681,
273,
394,
6674,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
769,
31,
277,
27245,
288,
5411,
467,
743,
2117,
273,
2703,
63,
77,
8009,
588,
2735,
5621,
5411,
368,
2117,
2026,
506,
446,
18,
2164,
7934,
12899,
7616,
21,
18,
5411,
309,
261,
3562,
480,
446,
13,
7734,
27375,
63,
18672,
1782,
9904,
65,
273,
2117,
18,
869,
4618,
780,
5621,
5411,
309,
261,
77,
405,
374,
13,
7734,
1681,
18,
6923,
31458,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
1681,
18,
6923,
12,
4683,
63,
77,
8009,
17994,
10663,
3639,
289,
3639,
368,
1703,
1245,
578,
1898,
434,
326,
7838,
446,
35,
3639,
309,
261,
18672,
1782,
411,
769,
13,
288,
5411,
514,
8526,
18286,
1557,
273,
27375,
31,
5411,
27375,
273,
394,
514,
63,
18672,
1782,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3214,
1782,
31,
277,
27245,
7734,
27375,
63,
77,
65,
273,
18286,
1557,
63,
77,
15533,
3639,
289,
3639,
11440,
3169,
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,
987,
3170,
3805,
273,
16625,
3805,
5621,
3639,
467,
1420,
8526,
2703,
273,
261,
45,
1420,
63,
5717,
3170,
3805,
7734,
263,
31447,
12,
2704,
467,
1420,
63,
8109,
3805,
18,
1467,
1435,
19226,
3639,
368,
968,
326,
585,
1257,
471,
279,
533,
4335,
3639,
727,
509,
769,
273,
2703,
18,
2469,
31,
3639,
509,
3214,
1782,
273,
374,
31,
3639,
514,
8526,
27375,
273,
394,
514,
63,
2469,
15533,
3639,
6674,
1681,
273,
394,
6674,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
769,
31,
277,
27245,
288,
5411,
467,
743,
2117,
273,
2703,
63,
77,
8009,
588,
2735,
5621,
5411,
368,
2117,
2026,
506,
446,
18,
2164,
2
] |
runQueryCheckResult(q1, | assertQueryReturns(q1, | public void _testCubeWhichUsesSameSharedDimTwice() { RolapConnection conn = (RolapConnection) getConnection(); Schema schema = conn.getSchema(); final Cube salesCube = schema.lookupCube("Sales", true); // Create a second usage of the "Store" shared dimension called "Other // Store". Attach it to the "unit_sales" column (which has values [1, // 6] whereas store has values [1, 24]. schema.createDimension( salesCube, "<DimensionUsage name=\"Other Store\" source=\"Store\" foreignKey=\"unit_sales\" />"); Axis axis = executeAxis2("Sales", "[Other Store].members"); assertEquals(63, axis.positions.length); axis = executeAxis2("Sales", "[Store].members"); assertEquals(63, axis.positions.length); final String q1 = "select {[Measures].[Unit Sales]} on columns," + nl + " NON EMPTY {[Other Store].members} on rows" + nl + "from [Sales]"; runQueryCheckResult(q1, "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Measures].[Unit Sales]}" + nl + "Axis #2:" + nl + "{[Other Store].[All Other Stores]}" + nl + "{[Other Store].[All Other Stores].[Mexico]}" + nl + "{[Other Store].[All Other Stores].[USA]}" + nl + "{[Other Store].[All Other Stores].[Mexico].[Guerrero]}" + nl + "{[Other Store].[All Other Stores].[Mexico].[Jalisco]}" + nl + "{[Other Store].[All Other Stores].[Mexico].[Zacatecas]}" + nl + "{[Other Store].[All Other Stores].[USA].[CA]}" + nl + "{[Other Store].[All Other Stores].[USA].[WA]}" + nl + "{[Other Store].[All Other Stores].[Mexico].[Guerrero].[Acapulco]}" + nl + "{[Other Store].[All Other Stores].[Mexico].[Jalisco].[Guadalajara]}" + nl + "{[Other Store].[All Other Stores].[Mexico].[Zacatecas].[Camacho]}" + nl + "{[Other Store].[All Other Stores].[USA].[CA].[Beverly Hills]}" + nl + "{[Other Store].[All Other Stores].[USA].[WA].[Bellingham]}" + nl + "{[Other Store].[All Other Stores].[USA].[WA].[Bremerton]}" + nl + "{[Other Store].[All Other Stores].[Mexico].[Guerrero].[Acapulco].[Store 1]}" + nl + "{[Other Store].[All Other Stores].[Mexico].[Jalisco].[Guadalajara].[Store 5]}" + nl + "{[Other Store].[All Other Stores].[Mexico].[Zacatecas].[Camacho].[Store 4]}" + nl + "{[Other Store].[All Other Stores].[USA].[CA].[Beverly Hills].[Store 6]}" + nl + "{[Other Store].[All Other Stores].[USA].[WA].[Bellingham].[Store 2]}" + nl + "{[Other Store].[All Other Stores].[USA].[WA].[Bremerton].[Store 3]}" + nl + "Row #0: 266,773" + nl + "Row #1: 110,822" + nl + "Row #2: 155,951" + nl + "Row #3: 1,827" + nl + "Row #4: 14,915" + nl + "Row #5: 94,080" + nl + "Row #6: 222" + nl + "Row #7: 155,729" + nl + "Row #8: 1,827" + nl + "Row #9: 14,915" + nl + "Row #10: 94,080" + nl + "Row #11: 222" + nl + "Row #12: 39,362" + nl + "Row #13: 116,367" + nl + "Row #14: 1,827" + nl + "Row #15: 14,915" + nl + "Row #16: 94,080" + nl + "Row #17: 222" + nl + "Row #18: 39,362" + nl + "Row #19: 116,367" + nl); final String q2 = "select {[Measures].[Unit Sales]} on columns," + nl + " CrossJoin(" + nl + " {[Store].[USA], [Store].[USA].[CA], [Store].[USA].[OR].[Portland]}, " + nl + " {[Other Store].[USA], [Other Store].[USA].[CA], [Other Store].[USA].[OR].[Portland]}) on rows" + nl + "from [Sales]"; runQueryCheckResult(q2, "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Measures].[Unit Sales]}" + nl + "Axis #2:" + nl + "{[Store].[All Stores].[USA], [Other Store].[All Other Stores].[USA]}" + nl + "{[Store].[All Stores].[USA], [Other Store].[All Other Stores].[USA].[CA]}" + nl + "{[Store].[All Stores].[USA], [Other Store].[All Other Stores].[USA].[OR].[Portland]}" + nl + "{[Store].[All Stores].[USA].[CA], [Other Store].[All Other Stores].[USA]}" + nl + "{[Store].[All Stores].[USA].[CA], [Other Store].[All Other Stores].[USA].[CA]}" + nl + "{[Store].[All Stores].[USA].[CA], [Other Store].[All Other Stores].[USA].[OR].[Portland]}" + nl + "{[Store].[All Stores].[USA].[OR].[Portland], [Other Store].[All Other Stores].[USA]}" + nl + "{[Store].[All Stores].[USA].[OR].[Portland], [Other Store].[All Other Stores].[USA].[CA]}" + nl + "{[Store].[All Stores].[USA].[OR].[Portland], [Other Store].[All Other Stores].[USA].[OR].[Portland]}" + nl + "Row #0: 155,951" + nl + "Row #1: 222" + nl + "Row #2: (null)" + nl + "Row #3: 43,730" + nl + "Row #4: 66" + nl + "Row #5: (null)" + nl + "Row #6: 15,134" + nl + "Row #7: 24" + nl + "Row #8: (null)" + nl); Result result = runQuery(q2); final Cell cell = result.getCell(new int[] {0, 0}); String sql = cell.getDrillThroughSQL(false); // the following replacement is for databases in ANSI mode // using '"' to quote identifiers sql = sql.replace('"', '`'); String tableQualifier = "as "; //RolapConnection conn = (RolapConnection) getConnection(); String jdbc_url = conn.getConnectInfo().get("Jdbc"); if (jdbc_url.toLowerCase().indexOf("oracle") >= 0) { // " + tableQualifier + " tableQualifier = ""; } assertEquals("select `store`.`store_country` as `Store Country`," + " `time_by_day`.`the_year` as `Year`," + " `store_1`.`store_country` as `x0`," + " `sales_fact_1997`.`unit_sales` as `Unit Sales` " + "from `store` " + tableQualifier + "`store`," + " `sales_fact_1997` " + tableQualifier + "`sales_fact_1997`," + " `time_by_day` " + tableQualifier + "`time_by_day`," + " `store` " + tableQualifier + "`store_1` " + "where `sales_fact_1997`.`store_id` = `store`.`store_id`" + " and `store`.`store_country` = 'USA'" + " and `sales_fact_1997`.`time_id` = `time_by_day`.`time_id`" + " and `time_by_day`.`the_year` = 1997" + " and `sales_fact_1997`.`unit_sales` = `store_1`.`store_id`" + " and `store_1`.`store_country` = 'USA'", sql); } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/3041f930b5fc4bf6aa3339845b828801c1d8b366/BasicQueryTest.java/buggy/testsrc/main/mondrian/test/BasicQueryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
389,
3813,
39,
4895,
2888,
1354,
15128,
8650,
7887,
5225,
23539,
1812,
1435,
288,
3639,
11714,
438,
1952,
1487,
273,
261,
4984,
438,
1952,
13,
6742,
5621,
3639,
4611,
1963,
273,
1487,
18,
588,
3078,
5621,
3639,
727,
385,
4895,
272,
5408,
39,
4895,
273,
1963,
18,
8664,
39,
4895,
2932,
23729,
3113,
638,
1769,
3639,
368,
1788,
279,
2205,
4084,
434,
326,
315,
2257,
6,
5116,
4968,
2566,
315,
8290,
3639,
368,
4994,
9654,
8659,
518,
358,
326,
315,
4873,
67,
87,
5408,
6,
1057,
261,
12784,
711,
924,
306,
21,
16,
3639,
368,
1666,
65,
1625,
345,
1707,
711,
924,
306,
21,
16,
4248,
8009,
3639,
1963,
18,
2640,
8611,
12,
7734,
272,
5408,
39,
4895,
16,
7734,
3532,
8611,
5357,
508,
5189,
8290,
4994,
2412,
1084,
5189,
2257,
2412,
12962,
5189,
4873,
67,
87,
5408,
2412,
28505,
1769,
3639,
15509,
2654,
273,
1836,
6558,
22,
2932,
23729,
3113,
5158,
8290,
4994,
8009,
7640,
8863,
3639,
1815,
8867,
12,
4449,
16,
2654,
18,
12388,
18,
2469,
1769,
3639,
2654,
273,
1836,
6558,
22,
2932,
23729,
3113,
5158,
2257,
8009,
7640,
8863,
3639,
1815,
8867,
12,
4449,
16,
2654,
18,
12388,
18,
2469,
1769,
3639,
727,
514,
1043,
21,
273,
315,
4025,
288,
63,
23177,
1823,
8009,
63,
2802,
25996,
18322,
603,
2168,
10837,
397,
7741,
397,
5411,
315,
18708,
8984,
288,
63,
8290,
4994,
8009,
7640,
97,
603,
2595,
6,
397,
7741,
397,
5411,
315,
2080,
306,
23729,
4279,
31,
3639,
1815,
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,
389,
3813,
39,
4895,
2888,
1354,
15128,
8650,
7887,
5225,
23539,
1812,
1435,
288,
3639,
11714,
438,
1952,
1487,
273,
261,
4984,
438,
1952,
13,
6742,
5621,
3639,
4611,
1963,
273,
1487,
18,
588,
3078,
5621,
3639,
727,
385,
4895,
272,
5408,
39,
4895,
273,
1963,
18,
8664,
39,
4895,
2932,
23729,
3113,
638,
1769,
3639,
368,
1788,
279,
2205,
4084,
434,
326,
315,
2257,
6,
5116,
4968,
2566,
315,
8290,
3639,
368,
4994,
9654,
8659,
518,
358,
326,
315,
4873,
67,
87,
5408,
6,
1057,
261,
12784,
711,
924,
306,
21,
16,
3639,
368,
1666,
65,
1625,
345,
1707,
711,
924,
306,
21,
16,
4248,
8009,
3639,
1963,
18,
2640,
8611,
12,
7734,
272,
5408,
2
] |
fail("MessageFormatException expected as value doesn't exist."); | fail("Exception Expected."); | private void testShort(JMSMapMessage m) throws JMSException { //Try bad reads try { m.getBoolean("short"); fail("MessageFormatException expected as value doesn't exist."); } catch (MessageFormatException nfe) { //normal execution } try { m.getByte("short"); fail("MessageFormatException expected as value doesn't exist."); } catch (MessageFormatException nfe) { //normal execution } Assert.assertEquals(Short.MAX_VALUE, m.getShort("short")); //Try bad reads try { m.getChar("short"); fail("MessageFormatException expected as value doesn't exist."); } catch (MessageFormatException nfe) { //normal execution } Assert.assertEquals(Short.MAX_VALUE, m.getInt("short")); Assert.assertEquals(Short.MAX_VALUE, m.getLong("short")); //Try bad reads try { m.getFloat("short"); fail("MessageFormatException expected as value doesn't exist."); } catch (MessageFormatException nfe) { //normal execution } //Try bad reads try { m.getDouble("short"); fail("MessageFormatException expected as value doesn't exist."); } catch (MessageFormatException nfe) { //normal execution } //Try bad reads try { m.getBytes("short"); fail("MessageFormatException expected as value doesn't exist."); } catch (MessageFormatException nfe) { //normal execution } Assert.assertEquals("" + Short.MAX_VALUE, m.getString("short")); } | 45585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45585/dc3b5d32de80ec74031cc79dc32d982fd43c55ce/MapMessageTest.java/clean/qpid/java/client/src/test/java/org/apache/qpid/test/unit/basic/MapMessageTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1842,
4897,
12,
46,
3537,
863,
1079,
312,
13,
1216,
20343,
565,
288,
3639,
368,
7833,
5570,
6838,
3639,
775,
3639,
288,
5411,
312,
18,
588,
5507,
2932,
6620,
8863,
5411,
2321,
2932,
503,
13219,
1199,
1769,
3639,
289,
3639,
1044,
261,
1079,
9291,
25386,
13,
3639,
288,
5411,
368,
6130,
4588,
3639,
289,
3639,
775,
3639,
288,
5411,
312,
18,
588,
3216,
2932,
6620,
8863,
5411,
2321,
2932,
503,
13219,
1199,
1769,
3639,
289,
3639,
1044,
261,
1079,
9291,
25386,
13,
3639,
288,
5411,
368,
6130,
4588,
3639,
289,
3639,
5452,
18,
11231,
8867,
12,
4897,
18,
6694,
67,
4051,
16,
312,
18,
588,
4897,
2932,
6620,
7923,
1769,
3639,
368,
7833,
5570,
6838,
3639,
775,
3639,
288,
5411,
312,
18,
588,
2156,
2932,
6620,
8863,
5411,
2321,
2932,
503,
13219,
1199,
1769,
3639,
289,
3639,
1044,
261,
1079,
9291,
25386,
13,
3639,
288,
5411,
368,
6130,
4588,
3639,
289,
3639,
5452,
18,
11231,
8867,
12,
4897,
18,
6694,
67,
4051,
16,
312,
18,
588,
1702,
2932,
6620,
7923,
1769,
3639,
5452,
18,
11231,
8867,
12,
4897,
18,
6694,
67,
4051,
16,
312,
18,
588,
3708,
2932,
6620,
7923,
1769,
3639,
368,
7833,
5570,
6838,
3639,
775,
3639,
288,
5411,
312,
18,
588,
4723,
2932,
6620,
8863,
5411,
2321,
2932,
503,
13219,
1199,
1769,
3639,
289,
3639,
1044,
261,
1079,
9291,
25386,
13,
3639,
288,
5411,
368,
6130,
4588,
3639,
289,
3639,
368,
7833,
5570,
6838,
3639,
775,
3639,
288,
5411,
312,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1842,
4897,
12,
46,
3537,
863,
1079,
312,
13,
1216,
20343,
565,
288,
3639,
368,
7833,
5570,
6838,
3639,
775,
3639,
288,
5411,
312,
18,
588,
5507,
2932,
6620,
8863,
5411,
2321,
2932,
503,
13219,
1199,
1769,
3639,
289,
3639,
1044,
261,
1079,
9291,
25386,
13,
3639,
288,
5411,
368,
6130,
4588,
3639,
289,
3639,
775,
3639,
288,
5411,
312,
18,
588,
3216,
2932,
6620,
8863,
5411,
2321,
2932,
503,
13219,
1199,
1769,
3639,
289,
3639,
1044,
261,
1079,
9291,
25386,
13,
3639,
288,
5411,
368,
6130,
4588,
3639,
289,
3639,
5452,
18,
11231,
8867,
12,
4897,
18,
6694,
67,
4051,
16,
312,
18,
588,
4897,
2932,
6620,
7923,
1769,
3639,
368,
7833,
5570,
6838,
3639,
2
] |
FileWindow(JSDebugger db, String fileName, String text) { | FileWindow(Main db, String fileName, String text) { | FileWindow(JSDebugger db, String fileName, String text) { super(new File(fileName).getName(), true, true, true, true); this.db = db; breakpoints = (Hashtable)db.breakpointsMap.get(fileName); if(breakpoints == null) { breakpoints = new Hashtable(); db.breakpointsMap.put(fileName, breakpoints); } setUrl(fileName); currentPos = -1; textArea = new FileTextArea(this); textArea.setRows(24); textArea.setColumns(80); p = new JScrollPane(); fileHeader = new FileHeader(this); p.setViewportView(textArea); p.setRowHeaderView(fileHeader); setContentPane(p); pack(); setText(text); textArea.select(0); } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/3d11fc509c101d1e08d6e3bf1871ee5cc04b89ae/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1387,
3829,
12,
6479,
24113,
1319,
16,
514,
3968,
16,
514,
977,
13,
288,
202,
9565,
12,
2704,
1387,
12,
17812,
2934,
17994,
9334,
638,
16,
638,
16,
638,
16,
638,
1769,
202,
2211,
18,
1966,
273,
1319,
31,
202,
8820,
4139,
273,
261,
5582,
14544,
13,
1966,
18,
8820,
4139,
863,
18,
588,
12,
17812,
1769,
202,
430,
12,
8820,
4139,
422,
446,
13,
288,
202,
565,
23416,
273,
394,
18559,
5621,
202,
565,
1319,
18,
8820,
4139,
863,
18,
458,
12,
17812,
16,
23416,
1769,
202,
97,
202,
542,
1489,
12,
17812,
1769,
202,
2972,
1616,
273,
300,
21,
31,
202,
955,
5484,
273,
394,
1387,
1528,
5484,
12,
2211,
1769,
202,
955,
5484,
18,
542,
4300,
12,
3247,
1769,
202,
955,
5484,
18,
542,
3380,
12,
3672,
1769,
202,
84,
273,
394,
804,
26360,
5621,
202,
768,
1864,
273,
394,
1387,
1864,
12,
2211,
1769,
202,
84,
18,
542,
22743,
1767,
12,
955,
5484,
1769,
202,
84,
18,
542,
1999,
1864,
1767,
12,
768,
1864,
1769,
202,
542,
1350,
8485,
12,
84,
1769,
202,
2920,
5621,
202,
542,
1528,
12,
955,
1769,
202,
955,
5484,
18,
4025,
12,
20,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1387,
3829,
12,
6479,
24113,
1319,
16,
514,
3968,
16,
514,
977,
13,
288,
202,
9565,
12,
2704,
1387,
12,
17812,
2934,
17994,
9334,
638,
16,
638,
16,
638,
16,
638,
1769,
202,
2211,
18,
1966,
273,
1319,
31,
202,
8820,
4139,
273,
261,
5582,
14544,
13,
1966,
18,
8820,
4139,
863,
18,
588,
12,
17812,
1769,
202,
430,
12,
8820,
4139,
422,
446,
13,
288,
202,
565,
23416,
273,
394,
18559,
5621,
202,
565,
1319,
18,
8820,
4139,
863,
18,
458,
12,
17812,
16,
23416,
1769,
202,
97,
202,
542,
1489,
12,
17812,
1769,
202,
2972,
1616,
273,
300,
21,
31,
202,
955,
5484,
273,
394,
1387,
1528,
5484,
12,
2211,
1769,
202,
955,
5484,
18,
542,
2
] |
DateFormatter dateFormat; | DateFormatter dateFormat = null; | protected boolean formatValue( Object value, String formatStr, StyleDesign style, StringBuffer formattedStr ) { if ( value == null ) { return false; } assert style != null && formattedStr != null; assert context.getLocale( ) != null; if ( ( value instanceof Number ) ) { NumberFormatter numberFormat; if ( formatStr == null || formatStr.length( ) == 0 ) { numberFormat = style.getNumberFormatObject( ); //initial number-format for the first time if ( numberFormat == null ) { numberFormat = new NumberFormatter( context.getLocale( ) ); formatStr = style.getNumberFormat( ); if ( formatStr != null ) { numberFormat.applyPattern( formatStr ); } style.setNumberFormatObject( numberFormat ); } else { formatStr = numberFormat.getPattern( ); } } else //deal with value-of for text item { numberFormat = new NumberFormatter( context.getLocale( ) ); numberFormat.applyPattern( formatStr ); } formattedStr.append( numberFormat.format( ( (Number) value ) .doubleValue( ) ) ); } else if ( value instanceof Date ) { DateFormatter dateFormat; if ( formatStr == null || formatStr.length( ) == 0 ) { dateFormat = style.getDateFormatObject( ); //initial date-format for the first time if ( dateFormat == null ) { dateFormat = new DateFormatter( context.getLocale( ) ); formatStr = style.getDateTimeFormat( ); if ( formatStr != null ) { dateFormat.applyPattern( formatStr ); } style.setDateFormatObject( dateFormat ); } else { formatStr = dateFormat.getPattern( ); } } else //deal with value-of for text item { dateFormat = new DateFormatter( context.getLocale( ) ); dateFormat.applyPattern( formatStr ); } formattedStr.append( dateFormat.format( (Date) value ) ); } else if ( value instanceof String ) { StringFormatter stringFormat; if ( formatStr == null || formatStr.length( ) == 0 ) { stringFormat = style.getStringFormatObject( ); //initial string-format for the first time if ( stringFormat == null ) { stringFormat = new StringFormatter( ); //use default stringFormat stringFormat.setLocale( context.getLocale( ) ); //get format pattern from style formatStr = style.getStringFormat( ); if ( formatStr != null ) { stringFormat.applyPattern( formatStr ); } style.setStringFormatObject( stringFormat ); } else { formatStr = stringFormat.getPattern( ); } } else //deal with value-of for text item { stringFormat = new StringFormatter( ); stringFormat.setLocale( context.getLocale( ) ); stringFormat.applyPattern( formatStr ); } formattedStr.append( stringFormat.format( value.toString( ) ) ); } else { formattedStr.append( value.toString( ) ); return false; } if ( formatStr == null || formatStr.length( ) == 0 ) { return false; } return true; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/5e9b56cf7b8135282c03b97d8af0909f1c511509/StyledItemExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/StyledItemExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
740,
620,
12,
1033,
460,
16,
514,
740,
1585,
16,
1082,
202,
2885,
15478,
2154,
16,
6674,
4955,
1585,
262,
202,
95,
202,
202,
430,
261,
460,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
11231,
2154,
480,
446,
597,
4955,
1585,
480,
446,
31,
202,
202,
11231,
819,
18,
588,
3916,
12,
262,
480,
446,
31,
202,
202,
430,
261,
261,
460,
1276,
3588,
262,
262,
202,
202,
95,
1082,
202,
1854,
5074,
28239,
31,
1082,
202,
430,
261,
740,
1585,
422,
446,
747,
740,
1585,
18,
2469,
12,
262,
422,
374,
262,
1082,
202,
95,
9506,
202,
2696,
1630,
273,
2154,
18,
588,
1854,
1630,
921,
12,
11272,
9506,
202,
759,
6769,
1300,
17,
2139,
364,
326,
1122,
813,
9506,
202,
430,
261,
28239,
422,
446,
262,
9506,
202,
95,
6862,
202,
2696,
1630,
273,
394,
3588,
5074,
12,
819,
18,
588,
3916,
12,
262,
11272,
6862,
202,
2139,
1585,
273,
2154,
18,
588,
1854,
1630,
12,
11272,
6862,
202,
430,
261,
740,
1585,
480,
446,
262,
6862,
202,
95,
25083,
202,
2696,
1630,
18,
9010,
3234,
12,
740,
1585,
11272,
6862,
202,
97,
6862,
202,
4060,
18,
542,
1854,
1630,
921,
12,
28239,
11272,
9506,
202,
97,
9506,
202,
12107,
9506,
202,
95,
6862,
202,
2139,
1585,
273,
28239,
18,
588,
3234,
12,
11272,
9506,
202,
97,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
759,
323,
287,
598,
460,
17,
792,
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,
1250,
740,
620,
12,
1033,
460,
16,
514,
740,
1585,
16,
1082,
202,
2885,
15478,
2154,
16,
6674,
4955,
1585,
262,
202,
95,
202,
202,
430,
261,
460,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
11231,
2154,
480,
446,
597,
4955,
1585,
480,
446,
31,
202,
202,
11231,
819,
18,
588,
3916,
12,
262,
480,
446,
31,
202,
202,
430,
261,
261,
460,
1276,
3588,
262,
262,
202,
202,
95,
1082,
202,
1854,
5074,
28239,
31,
1082,
202,
430,
261,
740,
1585,
422,
446,
747,
740,
1585,
18,
2469,
12,
262,
422,
374,
262,
1082,
202,
95,
9506,
202,
2696,
1630,
273,
2154,
18,
588,
1854,
1630,
2
] |
return (m_state == ComponentManagerImpl.VALID); | return (m_state == InstanceManager.VALID); | public boolean isValid() { return (m_state == ComponentManagerImpl.VALID); } | 45948 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45948/d229001e440fb0347d56e6cc3a6e65308dcdb431/DependencyHandler.java/buggy/ipojo/src/main/java/org/apache/felix/ipojo/handlers/dependency/DependencyHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
4908,
1435,
288,
3639,
327,
261,
81,
67,
2019,
422,
5180,
1318,
18,
5063,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
4908,
1435,
288,
3639,
327,
261,
81,
67,
2019,
422,
5180,
1318,
18,
5063,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public Address getUsersMainAddress(int userID) throws EJBException,RemoteException{ try { return getAddressHome().findPrimaryUserAddress(userID); } catch (FinderException fe) { return null; } } | public Address getUsersMainAddress(int userID) throws EJBException, RemoteException { try { return getAddressHome().findPrimaryUserAddress(userID); } catch (FinderException fe) { return null; } } | public Address getUsersMainAddress(int userID) throws EJBException,RemoteException{ try { return getAddressHome().findPrimaryUserAddress(userID); } catch (FinderException fe) { return null; } } | 52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/21dcc2ab672cd5cc52a7f8a072e86fed3aa20ecc/UserBusinessBean.java/buggy/src/java/com/idega/user/business/UserBusinessBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5267,
27564,
6376,
1887,
12,
474,
16299,
13,
1216,
12157,
503,
16,
5169,
503,
95,
282,
202,
698,
288,
21114,
202,
2463,
14808,
8684,
7675,
4720,
6793,
1299,
1887,
12,
1355,
734,
1769,
282,
202,
97,
282,
202,
14683,
261,
8441,
503,
1656,
13,
288,
21114,
202,
2463,
446,
31,
282,
202,
97,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5267,
27564,
6376,
1887,
12,
474,
16299,
13,
1216,
12157,
503,
16,
5169,
503,
95,
282,
202,
698,
288,
21114,
202,
2463,
14808,
8684,
7675,
4720,
6793,
1299,
1887,
12,
1355,
734,
1769,
282,
202,
97,
282,
202,
14683,
261,
8441,
503,
1656,
13,
288,
21114,
202,
2463,
446,
31,
282,
202,
97,
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
] |
for (int idx = 0; idx < deltas.length; idx++) { IMarkerDelta delta = deltas[idx]; int kind = delta.getKind(); | for (int idx = 0; idx < deltas.length; idx++) { IMarkerDelta delta = deltas[idx]; int kind = delta.getKind(); | private static void examineDelta(IMarkerDelta[] deltas, List changes) { for (int idx = 0; idx < deltas.length; idx++) { IMarkerDelta delta = deltas[idx]; int kind = delta.getKind(); if (kind == IResourceDelta.CHANGED) { changes.add(deltas[idx].getMarker()); } } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
19707,
558,
9242,
12,
3445,
1313,
264,
9242,
8526,
20113,
16,
987,
3478,
13,
288,
3639,
364,
261,
474,
2067,
273,
374,
31,
2067,
411,
20113,
18,
2469,
31,
2067,
27245,
288,
5411,
467,
7078,
9242,
3622,
273,
20113,
63,
3465,
15533,
5411,
509,
3846,
273,
3622,
18,
588,
5677,
5621,
5411,
309,
261,
9224,
422,
467,
1420,
9242,
18,
24435,
13,
288,
7734,
3478,
18,
1289,
12,
3771,
9158,
63,
3465,
8009,
588,
7078,
10663,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
19707,
558,
9242,
12,
3445,
1313,
264,
9242,
8526,
20113,
16,
987,
3478,
13,
288,
3639,
364,
261,
474,
2067,
273,
374,
31,
2067,
411,
20113,
18,
2469,
31,
2067,
27245,
288,
5411,
467,
7078,
9242,
3622,
273,
20113,
63,
3465,
15533,
5411,
509,
3846,
273,
3622,
18,
588,
5677,
5621,
5411,
309,
261,
9224,
422,
467,
1420,
9242,
18,
24435,
13,
288,
7734,
3478,
18,
1289,
12,
3771,
9158,
63,
3465,
8009,
588,
7078,
10663,
5411,
289,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int originx = (myMap.getHeight() - 1) * (tileSize.width / 2); | int originx = (myMap.getHeight() - 1) * (tileSize.width / 2); | protected void paint(Graphics g, MapLayer layer, double zoom) { // TODO: Do this right so there is no overdraw. ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); boolean showGrid = ((modeFlags & PF_GRIDMODE) != 0); // Determine tile size and offset Dimension tileSize = getTileSize(zoom); int tsize_width_delta = tileSize.width / 2; int tsize_height_delta = tileSize.height / 2; // Determine area to draw from clipping rectangle Rectangle clipRect = g.getClipBounds(); clipRect.height += myMap.getTileHeightMax()*zoom - tileSize.height; int logical_row_max=(clipRect.y+clipRect.height)/(tsize_height_delta)+1; int originx = (myMap.getHeight() - 1) * (tileSize.width / 2); // Draw this map layer for(int logical_row = Math.max(clipRect.y/tsize_height_delta-1,0); logical_row<logical_row_max;logical_row++) { int x = Math.max(logical_row-(myMap.getHeight()-1),0); int y = Math.min(logical_row,myMap.getHeight()-1); int gx = Math.abs(originx - logical_row * tsize_width_delta); int gy = (logical_row * tsize_height_delta) /*- clipRect.y*/; Polygon gridPoly = createGridPolygon(gx, gy, 1); while (x <= Math.min(logical_row, myMap.getWidth() - 1) && y >= Math.max(logical_row-(myMap.getWidth() - 1), 0)) { Tile t = layer.getTileAt(x, y); if (t != null && t != myMap.getNullTile()) { t.draw(g, gx, gy, zoom); if (showGrid) { //TODO: create a system that the user can use to highlight tiles with certain properties (search) /*if ((t.getFlags() & Tile.T_IMPASSABLE) != 0) { g.setColor(Color.red); g.drawPolygon(gridPoly); }*/ } } x++; y--; gx += tileSize.width; gridPoly.translate(tileSize.width, 0); } } } | 6621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6621/4df9e0a272d41553877f43e9891410cfffd42dc4/IsoMapView.java/clean/tiled/view/IsoMapView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
12574,
12,
17558,
314,
16,
1635,
4576,
3018,
16,
1645,
7182,
13,
288,
3639,
368,
2660,
30,
2256,
333,
2145,
1427,
1915,
353,
1158,
1879,
9446,
18,
3639,
14015,
17558,
22,
40,
13,
75,
2934,
542,
14261,
7002,
12,
14261,
13368,
18,
3297,
67,
6856,
31119,
1360,
16,
29159,
22391,
18,
4051,
67,
6856,
31119,
67,
673,
1769,
3639,
1250,
2405,
6313,
273,
14015,
3188,
5094,
473,
453,
42,
67,
6997,
734,
7038,
13,
480,
374,
1769,
3639,
368,
10229,
4769,
963,
471,
1384,
3639,
13037,
4769,
1225,
273,
24738,
1225,
12,
14932,
1769,
3639,
509,
268,
1467,
67,
2819,
67,
9878,
273,
4769,
1225,
18,
2819,
342,
576,
31,
3639,
509,
268,
1467,
67,
4210,
67,
9878,
273,
4769,
1225,
18,
4210,
342,
576,
31,
3639,
368,
10229,
5091,
358,
3724,
628,
31686,
11845,
3639,
13264,
6807,
6120,
273,
314,
18,
588,
15339,
5694,
5621,
3639,
6807,
6120,
18,
4210,
1011,
3399,
863,
18,
588,
9337,
2686,
2747,
1435,
14,
14932,
300,
4769,
1225,
18,
4210,
31,
3639,
509,
6374,
67,
492,
67,
1896,
28657,
14161,
6120,
18,
93,
15,
14161,
6120,
18,
4210,
13176,
12,
88,
1467,
67,
4210,
67,
9878,
27921,
21,
31,
3639,
509,
4026,
92,
273,
261,
4811,
863,
18,
588,
2686,
1435,
300,
404,
13,
380,
261,
15368,
1225,
18,
2819,
342,
576,
1769,
3639,
368,
10184,
333,
852,
3018,
3639,
364,
12,
474,
6374,
67,
492,
273,
2361,
18,
1896,
12,
14161,
6120,
18,
93,
19,
88,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
12574,
12,
17558,
314,
16,
1635,
4576,
3018,
16,
1645,
7182,
13,
288,
3639,
368,
2660,
30,
2256,
333,
2145,
1427,
1915,
353,
1158,
1879,
9446,
18,
3639,
14015,
17558,
22,
40,
13,
75,
2934,
542,
14261,
7002,
12,
14261,
13368,
18,
3297,
67,
6856,
31119,
1360,
16,
29159,
22391,
18,
4051,
67,
6856,
31119,
67,
673,
1769,
3639,
1250,
2405,
6313,
273,
14015,
3188,
5094,
473,
453,
42,
67,
6997,
734,
7038,
13,
480,
374,
1769,
3639,
368,
10229,
4769,
963,
471,
1384,
3639,
13037,
4769,
1225,
273,
24738,
1225,
12,
14932,
1769,
3639,
509,
268,
1467,
67,
2819,
67,
9878,
273,
4769,
1225,
18,
2819,
342,
576,
31,
3639,
509,
268,
1467,
67,
4210,
2
] |
} default: { | default: | public String createInExpr(String expr, ColumnConstraint[] constraints) { if (constraints.length == 1) { final ColumnConstraint constraint = constraints[0]; Object key = constraint.getValue(); if (key != RolapUtil.sqlNullValue) { StringBuffer buf = new StringBuffer(64); buf.append(expr); buf.append(" = "); quoteValue(key, buf); return buf.toString(); } } int notNullCount = 0; StringBuffer sb = new StringBuffer(expr); sb.append(" in ("); for (int i = 0; i < constraints.length; i++) { final ColumnConstraint constraint = constraints[i]; Object key = constraint.getValue(); if (key == RolapUtil.sqlNullValue) { continue; } if (notNullCount > 0) { sb.append(", "); } ++notNullCount; quoteValue(key, sb); } sb.append(')'); if (notNullCount < constraints.length) { // There was at least one null. switch (notNullCount) { case 0: // Special case -- there were no values besides null. // Return, for example, "x is null". return expr + " is null"; case 1: { // Special case -- one not-null value, and null, for // example "(x is null or x = 1)". StringBuffer buf = new StringBuffer(64); buf.append('('); buf.append(expr); buf.append(" = "); quoteValue(constraints[0].getValue(), buf); buf.append(" or "); buf.append(expr); buf.append(" is null"); return buf.toString(); } default: { // Nulls and values, for example, // "(x in (1, 2) or x IS NULL)". StringBuffer buf = new StringBuffer(64); buf.append('('); buf.append(sb.toString()); buf.append(" or "); buf.append(expr); buf.append(" is null"); return buf.toString(); } } } else { // No nulls. Return, for example, "x in (1, 2, 3)". return sb.toString(); } } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/07361d134494edaf7e47eaedb40351c66d2a28b0/RolapStar.java/buggy/src/main/mondrian/rolap/RolapStar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
752,
382,
4742,
12,
780,
3065,
16,
4766,
565,
4753,
5806,
8526,
6237,
13,
288,
5411,
309,
261,
11967,
18,
2469,
422,
404,
13,
288,
7734,
727,
4753,
5806,
4954,
273,
6237,
63,
20,
15533,
7734,
1033,
498,
273,
4954,
18,
24805,
5621,
7734,
309,
261,
856,
480,
11714,
438,
1304,
18,
4669,
2041,
620,
13,
288,
10792,
6674,
1681,
273,
394,
6674,
12,
1105,
1769,
10792,
1681,
18,
6923,
12,
8638,
1769,
10792,
1681,
18,
6923,
2932,
273,
315,
1769,
10792,
3862,
620,
12,
856,
16,
1681,
1769,
10792,
327,
1681,
18,
10492,
5621,
7734,
289,
5411,
289,
5411,
509,
7713,
1380,
273,
374,
31,
5411,
6674,
2393,
273,
394,
6674,
12,
8638,
1769,
5411,
2393,
18,
6923,
2932,
316,
7566,
1769,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6237,
18,
2469,
31,
277,
27245,
288,
7734,
727,
4753,
5806,
4954,
273,
6237,
63,
77,
15533,
7734,
1033,
498,
273,
4954,
18,
24805,
5621,
7734,
309,
261,
856,
422,
11714,
438,
1304,
18,
4669,
2041,
620,
13,
288,
10792,
1324,
31,
7734,
289,
7734,
309,
261,
902,
2041,
1380,
405,
374,
13,
288,
10792,
2393,
18,
6923,
2932,
16,
315,
1769,
7734,
289,
7734,
965,
902,
2041,
1380,
31,
7734,
3862,
620,
12,
856,
16,
2393,
1769,
5411,
289,
5411,
2393,
18,
6923,
2668,
2506,
1769,
5411,
309,
261,
902,
2041,
1380,
411,
6237,
18,
2469,
13,
288,
7734,
368,
6149,
1703,
622,
4520,
1245,
446,
18,
7734,
1620,
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,
540,
1071,
514,
752,
382,
4742,
12,
780,
3065,
16,
4766,
565,
4753,
5806,
8526,
6237,
13,
288,
5411,
309,
261,
11967,
18,
2469,
422,
404,
13,
288,
7734,
727,
4753,
5806,
4954,
273,
6237,
63,
20,
15533,
7734,
1033,
498,
273,
4954,
18,
24805,
5621,
7734,
309,
261,
856,
480,
11714,
438,
1304,
18,
4669,
2041,
620,
13,
288,
10792,
6674,
1681,
273,
394,
6674,
12,
1105,
1769,
10792,
1681,
18,
6923,
12,
8638,
1769,
10792,
1681,
18,
6923,
2932,
273,
315,
1769,
10792,
3862,
620,
12,
856,
16,
1681,
1769,
10792,
327,
1681,
18,
10492,
5621,
7734,
289,
5411,
289,
5411,
509,
7713,
1380,
273,
374,
31,
5411,
6674,
2393,
273,
394,
6674,
12,
8638,
1769,
5411,
2
] |
performRequest(method, listener, timeout); | HttpClient client = HttpClientManager.getNewClient( timeout, timeout); try { HttpClientManager.executeMethodRedirecting(client, method); } catch (IOException failed) { listener.requestFailed(method, failed); return; } listener.requestComplete(method); | public void run() { performRequest(method, listener, timeout); } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/491d32a3608c2d3387f8d597fdd881a2e01340d7/DefaultHttpExecutor.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/http/DefaultHttpExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
16092,
691,
12,
2039,
16,
2991,
16,
2021,
1769,
6862,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
16092,
691,
12,
2039,
16,
2991,
16,
2021,
1769,
6862,
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
] |
final IConfigurationElement[] menuElements = element .getChildren(TAG_MENU); | private final SReference[] readActionsAndMenus( final IConfigurationElement element, final String id, final List warningsToLog, final LegacyLocationInfo locationInfo, final Expression visibleWhenExpression, final String viewId) { // Read its child elements. final IConfigurationElement[] actionElements = element .getChildren(TAG_ACTION); final SReference[] itemReferences = readActions(id, actionElements, warningsToLog, locationInfo, visibleWhenExpression, viewId); // Read out the menus and groups, if any. final IConfigurationElement[] menuElements = element .getChildren(TAG_MENU); if ((menuElements != null) && (menuElements.length > 0)) { final SReference[] menuAndGroupReferences = readMenusAndGroups( menuElements, id, warningsToLog, locationInfo, visibleWhenExpression); if ((itemReferences == null) || (itemReferences.length == 0)) { return menuAndGroupReferences; } final SReference[] references = new SReference[itemReferences.length + menuAndGroupReferences.length]; System.arraycopy(itemReferences, 0, references, 0, itemReferences.length); System.arraycopy(menuAndGroupReferences, 0, references, itemReferences.length, menuAndGroupReferences.length); return references; } // There were neither menus nor groups. return itemReferences; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5af242f9e1cef0507ee8fbeaa76acd846c7379b7/LegacyActionPersistence.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/LegacyActionPersistence.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
348,
2404,
8526,
855,
6100,
1876,
29755,
12,
1082,
202,
6385,
467,
1750,
1046,
930,
16,
727,
514,
612,
16,
1082,
202,
6385,
987,
5599,
774,
1343,
16,
727,
22781,
2735,
966,
2117,
966,
16,
1082,
202,
6385,
5371,
6021,
9434,
2300,
16,
727,
514,
1476,
548,
13,
288,
202,
202,
759,
2720,
2097,
1151,
2186,
18,
202,
202,
6385,
467,
1750,
1046,
8526,
1301,
3471,
273,
930,
9506,
202,
18,
588,
4212,
12,
7927,
67,
12249,
1769,
202,
202,
6385,
348,
2404,
8526,
761,
8221,
273,
855,
6100,
12,
350,
16,
1301,
3471,
16,
9506,
202,
12103,
774,
1343,
16,
2117,
966,
16,
6021,
9434,
2300,
16,
1476,
548,
1769,
202,
202,
759,
2720,
596,
326,
21374,
471,
3252,
16,
309,
1281,
18,
202,
202,
6385,
467,
1750,
1046,
8526,
3824,
3471,
273,
930,
9506,
202,
18,
588,
4212,
12,
7927,
67,
29227,
1769,
202,
202,
430,
14015,
5414,
3471,
480,
446,
13,
597,
261,
5414,
3471,
18,
2469,
405,
374,
3719,
288,
1082,
202,
6385,
348,
2404,
8526,
3824,
1876,
1114,
8221,
273,
855,
29755,
1876,
3621,
12,
6862,
202,
5414,
3471,
16,
612,
16,
5599,
774,
1343,
16,
2117,
966,
16,
6862,
202,
8613,
9434,
2300,
1769,
1082,
202,
430,
14015,
1726,
8221,
422,
446,
13,
747,
261,
1726,
8221,
18,
2469,
422,
374,
3719,
288,
9506,
202,
2463,
3824,
1876,
1114,
8221,
31,
1082,
202,
97,
1082,
202,
6385,
348,
2404,
8526,
5351,
273,
394,
348,
2404,
63,
1726,
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,
727,
348,
2404,
8526,
855,
6100,
1876,
29755,
12,
1082,
202,
6385,
467,
1750,
1046,
930,
16,
727,
514,
612,
16,
1082,
202,
6385,
987,
5599,
774,
1343,
16,
727,
22781,
2735,
966,
2117,
966,
16,
1082,
202,
6385,
5371,
6021,
9434,
2300,
16,
727,
514,
1476,
548,
13,
288,
202,
202,
759,
2720,
2097,
1151,
2186,
18,
202,
202,
6385,
467,
1750,
1046,
8526,
1301,
3471,
273,
930,
9506,
202,
18,
588,
4212,
12,
7927,
67,
12249,
1769,
202,
202,
6385,
348,
2404,
8526,
761,
8221,
273,
855,
6100,
12,
350,
16,
1301,
3471,
16,
9506,
202,
12103,
774,
1343,
16,
2117,
966,
16,
6021,
9434,
2300,
16,
1476,
548,
1769,
202,
202,
759,
2720,
2
] |
|
showMessage("Action 1 executed"); } | showMessage("Action 1 executed"); } | public void run() { showMessage("Action 1 executed"); // TODO open declarations action ... use annotations } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/b811a0479b1c2c7ce6e95c22d0b6d0585297b95e/DOMAST.java/buggy/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/DOMAST/DOMAST.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
4500,
1079,
2932,
1803,
404,
7120,
8863,
368,
2660,
1696,
12312,
1301,
1372,
999,
5617,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
4500,
1079,
2932,
1803,
404,
7120,
8863,
368,
2660,
1696,
12312,
1301,
1372,
999,
5617,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ((vfsResource.getFlags() & CmsResource.FLAG_INTERNAL) == CmsResource.FLAG_INTERNAL) { continue; } | public Set getExportResources(CmsObject cms) throws CmsException { Set resources = new HashSet(); // now get all resources matching the export resource patterns. // since the long min and max value // do not work with the sql timestamp function in the driver, we must calculate // some different, but usable start and endtime values first //starttime to 01.01.1970 long starttime = 0; // endtime to now plus one week long endtime = System.currentTimeMillis() + 604800000; Iterator itExpRes = m_exportResources.iterator(); while (itExpRes.hasNext()) { String exportRes = (String)itExpRes.next(); List vfsResources = cms.getResourcesInTimeRange(exportRes, starttime, endtime); // loop through the list and create the list of CmsPublishedResources Iterator itRes = vfsResources.iterator(); while (itRes.hasNext()) { CmsResource vfsResource = (CmsResource)itRes.next(); if ((vfsResource.getFlags() & CmsResource.FLAG_INTERNAL) == CmsResource.FLAG_INTERNAL) { // skip internal files continue; } CmsPublishedResource resource = new CmsPublishedResource(vfsResource); resources.add(resource); } } return resources; } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/af4227597144068c14a9a5948326ec275c64e8ae/CmsStaticExportExportRule.java/clean/src/org/opencms/staticexport/CmsStaticExportExportRule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1000,
29566,
3805,
12,
4747,
921,
6166,
13,
1216,
11228,
288,
3639,
1000,
2703,
273,
394,
6847,
5621,
3639,
368,
2037,
336,
777,
2703,
3607,
326,
3359,
1058,
6884,
18,
540,
368,
3241,
326,
1525,
1131,
471,
943,
460,
3639,
368,
741,
486,
1440,
598,
326,
1847,
2858,
445,
316,
326,
3419,
16,
732,
1297,
4604,
540,
368,
2690,
3775,
16,
1496,
15603,
787,
471,
31361,
924,
1122,
3639,
368,
1937,
957,
358,
8743,
18,
1611,
18,
3657,
7301,
3639,
1525,
23437,
273,
374,
31,
3639,
368,
31361,
358,
2037,
8737,
1245,
4860,
3639,
1525,
31361,
273,
2332,
18,
2972,
28512,
1435,
397,
1666,
3028,
28,
11706,
31,
3639,
4498,
518,
2966,
607,
273,
312,
67,
6530,
3805,
18,
9838,
5621,
3639,
1323,
261,
305,
2966,
607,
18,
5332,
2134,
10756,
288,
5411,
514,
3359,
607,
273,
261,
780,
13,
305,
2966,
607,
18,
4285,
5621,
5411,
987,
20682,
3805,
273,
6166,
18,
588,
3805,
382,
950,
2655,
12,
6530,
607,
16,
23437,
16,
31361,
1769,
5411,
368,
2798,
3059,
326,
666,
471,
752,
326,
666,
434,
2149,
16451,
3805,
5411,
4498,
518,
607,
273,
20682,
3805,
18,
9838,
5621,
5411,
1323,
261,
305,
607,
18,
5332,
2134,
10756,
288,
7734,
7630,
20682,
1420,
273,
261,
4747,
1420,
13,
305,
607,
18,
4285,
5621,
7734,
309,
14015,
90,
2556,
1420,
18,
588,
5094,
1435,
473,
7630,
18,
9651,
67,
14005,
13,
422,
7630,
18,
9651,
67,
14005,
13,
288,
10792,
368,
2488,
2713,
1390,
10792,
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,
1000,
29566,
3805,
12,
4747,
921,
6166,
13,
1216,
11228,
288,
3639,
1000,
2703,
273,
394,
6847,
5621,
3639,
368,
2037,
336,
777,
2703,
3607,
326,
3359,
1058,
6884,
18,
540,
368,
3241,
326,
1525,
1131,
471,
943,
460,
3639,
368,
741,
486,
1440,
598,
326,
1847,
2858,
445,
316,
326,
3419,
16,
732,
1297,
4604,
540,
368,
2690,
3775,
16,
1496,
15603,
787,
471,
31361,
924,
1122,
3639,
368,
1937,
957,
358,
8743,
18,
1611,
18,
3657,
7301,
3639,
1525,
23437,
273,
374,
31,
3639,
368,
31361,
358,
2037,
8737,
1245,
4860,
3639,
1525,
31361,
273,
2332,
18,
2972,
28512,
1435,
397,
1666,
3028,
28,
11706,
31,
3639,
4498,
518,
2966,
607,
273,
312,
67,
6530,
2
] |
|
else if (kind.equalsIgnoreCase(WEB_KUNSTSTOFF)) | else if (kind.equalsIgnoreCase(WEB_KUNSTSTOFF)) | protected Packager getPackager() throws Exception { if (kind.equalsIgnoreCase(STANDARD)) return new StdPackager(output, packagerListener); else if (kind.equalsIgnoreCase(STANDARD_KUNSTSTOFF)) return new StdKunststoffPackager(output, packagerListener); else if (kind.equalsIgnoreCase(WEB)) return new WebPackager(output, packagerListener); else if (kind.equalsIgnoreCase(WEB_KUNSTSTOFF)) return new WebKunststoffPackager(output, packagerListener); else throw new Exception("unknown installer kind"); } | 58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/47db88bfea6b64e47a33aa3c937b2ce6e8640d56/Compiler.java/buggy/izpack-src/trunk/src/lib/com/izforge/izpack/compiler/Compiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
7930,
6817,
30401,
6817,
1435,
1216,
1185,
225,
288,
565,
309,
261,
9224,
18,
14963,
5556,
12,
882,
18264,
3719,
1377,
327,
394,
6276,
4420,
6817,
12,
2844,
16,
2298,
6817,
2223,
1769,
565,
469,
1377,
309,
261,
9224,
18,
14963,
5556,
12,
882,
18264,
67,
47,
2124,
882,
882,
8797,
3719,
1377,
327,
394,
6276,
47,
23412,
334,
3674,
4420,
6817,
12,
2844,
16,
2298,
6817,
2223,
1769,
565,
469,
1377,
309,
261,
9224,
18,
14963,
5556,
12,
14778,
3719,
1377,
327,
394,
2999,
4420,
6817,
12,
2844,
16,
2298,
6817,
2223,
1769,
565,
469,
1377,
309,
261,
9224,
18,
14963,
5556,
12,
14778,
67,
47,
2124,
882,
882,
8797,
3719,
1377,
327,
394,
2999,
47,
23412,
334,
3674,
4420,
6817,
12,
2844,
16,
2298,
6817,
2223,
1769,
565,
469,
1377,
604,
394,
1185,
2932,
8172,
16050,
3846,
8863,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
7930,
6817,
30401,
6817,
1435,
1216,
1185,
225,
288,
565,
309,
261,
9224,
18,
14963,
5556,
12,
882,
18264,
3719,
1377,
327,
394,
6276,
4420,
6817,
12,
2844,
16,
2298,
6817,
2223,
1769,
565,
469,
1377,
309,
261,
9224,
18,
14963,
5556,
12,
882,
18264,
67,
47,
2124,
882,
882,
8797,
3719,
1377,
327,
394,
6276,
47,
23412,
334,
3674,
4420,
6817,
12,
2844,
16,
2298,
6817,
2223,
1769,
565,
469,
1377,
309,
261,
9224,
18,
14963,
5556,
12,
14778,
3719,
1377,
327,
394,
2999,
4420,
6817,
12,
2844,
16,
2298,
6817,
2223,
1769,
565,
469,
1377,
309,
261,
9224,
18,
14963,
5556,
12,
14778,
67,
47,
2124,
882,
882,
8797,
3719,
1377,
327,
394,
2999,
47,
2
] |
contributeToActionBars(); | contributeToActionBars(); | public void createPartControl(Composite parent) { // Access the menu service menuSvc = (IMenuService) getSite().getService(IMenuService.class); viewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); viewer.setContentProvider(new ViewContentProvider()); viewer.setLabelProvider(new ViewLabelProvider()); viewer.setSorter(new NameSorter()); viewer.setInput(getViewSite()); makeActions(); hookContextMenu(); hookDoubleClickAction(); contributeToActionBars(); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e8f0a1fd7574026408eaf4f59c4c4d476215dd65/MenuContributionHarness.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/workbenchpart/MenuContributionHarness.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
1988,
3367,
12,
9400,
982,
13,
288,
202,
202,
759,
5016,
326,
3824,
1156,
202,
202,
5414,
17444,
273,
261,
3445,
2104,
1179,
13,
11021,
7675,
588,
1179,
12,
3445,
2104,
1179,
18,
1106,
1769,
202,
202,
25256,
273,
394,
3555,
18415,
12,
2938,
16,
348,
8588,
18,
26588,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
348,
8588,
18,
58,
67,
2312,
14555,
1769,
202,
202,
25256,
18,
542,
1350,
2249,
12,
2704,
4441,
1350,
2249,
10663,
202,
202,
25256,
18,
542,
2224,
2249,
12,
2704,
4441,
2224,
2249,
10663,
202,
202,
25256,
18,
542,
24952,
12,
2704,
1770,
24952,
10663,
202,
202,
25256,
18,
542,
1210,
12,
588,
1767,
4956,
10663,
202,
202,
6540,
6100,
5621,
202,
202,
4476,
27315,
5621,
202,
202,
4476,
5265,
6563,
1803,
5621,
202,
202,
591,
887,
774,
1803,
5190,
87,
5621,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
752,
1988,
3367,
12,
9400,
982,
13,
288,
202,
202,
759,
5016,
326,
3824,
1156,
202,
202,
5414,
17444,
273,
261,
3445,
2104,
1179,
13,
11021,
7675,
588,
1179,
12,
3445,
2104,
1179,
18,
1106,
1769,
202,
202,
25256,
273,
394,
3555,
18415,
12,
2938,
16,
348,
8588,
18,
26588,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
348,
8588,
18,
58,
67,
2312,
14555,
1769,
202,
202,
25256,
18,
542,
1350,
2249,
12,
2704,
4441,
1350,
2249,
10663,
202,
202,
25256,
18,
542,
2224,
2249,
12,
2704,
4441,
2224,
2249,
10663,
202,
202,
25256,
18,
542,
24952,
12,
2704,
1770,
24952,
10663,
202,
202,
25256,
18,
542,
1210,
12,
588,
1767,
4956,
10663,
2
] |
System.err.println("[FAULT] " + this.owner.getID() + | logger.info("[FAULT] " + this.owner.getID() + | public int sendRequest(Request r, UniversalBody destination) throws RenegotiateSessionException { try { this.onSendRequestBefore(r); int res; res = r.send(destination); this.onSendRequestAfter(r, res, destination); return res; } catch (IOException e) { System.err.println("[FAULT] " + this.owner.getID() + " : FAILURE OF " + destination.getID() + " SUSPECTED ON REQUEST SENDING : " + e.getMessage()); UniversalBody newDestination = this.communicationFailed(destination.getID(), destination, e); return this.sendRequest(r, newDestination); } catch (RenegotiateSessionException e1) { throw e1; } } | 58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/b795b1a8176636c1fee4321a2e62c8ff755b8408/HalfFTManagerCIC.java/buggy/src/org/objectweb/proactive/core/body/ft/protocols/cic/HalfFTManagerCIC.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
12413,
12,
691,
436,
16,
27705,
2250,
2929,
13,
3639,
1216,
25921,
27445,
3840,
2157,
503,
288,
3639,
775,
288,
5411,
333,
18,
265,
3826,
691,
4649,
12,
86,
1769,
5411,
509,
400,
31,
5411,
400,
273,
436,
18,
4661,
12,
10590,
1769,
5411,
333,
18,
265,
3826,
691,
4436,
12,
86,
16,
400,
16,
2929,
1769,
5411,
327,
400,
31,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
1194,
18,
1376,
2932,
63,
2636,
65,
315,
397,
333,
18,
8443,
18,
588,
734,
1435,
397,
7734,
315,
294,
24077,
15932,
315,
397,
2929,
18,
588,
734,
1435,
397,
7734,
315,
348,
3378,
23615,
6229,
12492,
348,
12280,
294,
315,
397,
425,
18,
24906,
10663,
5411,
27705,
2250,
394,
5683,
273,
333,
18,
5702,
17261,
2925,
12,
10590,
18,
588,
734,
9334,
10792,
2929,
16,
425,
1769,
5411,
327,
333,
18,
4661,
691,
12,
86,
16,
394,
5683,
1769,
3639,
289,
1044,
261,
16290,
27445,
3840,
2157,
503,
425,
21,
13,
288,
5411,
604,
425,
21,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
12413,
12,
691,
436,
16,
27705,
2250,
2929,
13,
3639,
1216,
25921,
27445,
3840,
2157,
503,
288,
3639,
775,
288,
5411,
333,
18,
265,
3826,
691,
4649,
12,
86,
1769,
5411,
509,
400,
31,
5411,
400,
273,
436,
18,
4661,
12,
10590,
1769,
5411,
333,
18,
265,
3826,
691,
4436,
12,
86,
16,
400,
16,
2929,
1769,
5411,
327,
400,
31,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
1194,
18,
1376,
2932,
63,
2636,
65,
315,
397,
333,
18,
8443,
18,
588,
734,
1435,
397,
7734,
315,
294,
24077,
15932,
315,
397,
2929,
18,
588,
734,
1435,
397,
7734,
315,
348,
3378,
23615,
6229,
12492,
348,
12280,
294,
315,
397,
425,
18,
24906,
10663,
2
] |
handleProblem( IProblem.SEMANTIC_NAME_NOT_FOUND, current.getImage() ); | handleProblem( IProblem.SEMANTIC_NAME_NOT_FOUND, image ); | public IASTSimpleTypeSpecifier createSimpleTypeSpecifier( IASTScope scope, Type kind, ITokenDuple typeName, boolean isShort, boolean isLong, boolean isSigned, boolean isUnsigned, boolean isTypename, boolean isComplex, boolean isImaginary) throws ASTSemanticException { TypeInfo.eType type = null; if( kind == IASTSimpleTypeSpecifier.Type.CLASS_OR_TYPENAME ) type = TypeInfo.t_type; else if( kind == IASTSimpleTypeSpecifier.Type.BOOL ) type = TypeInfo.t_bool; else if( kind == IASTSimpleTypeSpecifier.Type.CHAR ) type = TypeInfo.t_char; else if( kind == IASTSimpleTypeSpecifier.Type.DOUBLE ||kind == IASTSimpleTypeSpecifier.Type.FLOAT ) type = TypeInfo.t_double; else if( kind == IASTSimpleTypeSpecifier.Type.INT ) type = TypeInfo.t_int; else if( kind == IASTSimpleTypeSpecifier.Type.VOID ) type = TypeInfo.t_void; else if( kind == IASTSimpleTypeSpecifier.Type.WCHAR_T) type = TypeInfo.t_wchar_t; else if( kind == IASTSimpleTypeSpecifier.Type._BOOL ) type = TypeInfo.t__Bool; List references = new ArrayList(); ISymbol s = pst.newSymbol( "", type ); //$NON-NLS-1$ if( kind == IASTSimpleTypeSpecifier.Type.CLASS_OR_TYPENAME ) { // lookup the duple Iterator i = typeName.iterator(); IToken first = typeName.getFirstToken(); ISymbol typeSymbol = getScopeToSearchUpon( scope, first, i ); while( i.hasNext() ) { IToken current = (IToken)i.next(); if( current.getType() == IToken.tCOLONCOLON ) continue; try { if( current != typeName.getLastToken() ) typeSymbol = ((IContainerSymbol)typeSymbol).lookupNestedNameSpecifier( current.getImage()); else typeSymbol = ((IContainerSymbol)typeSymbol).lookup( current.getImage()); if( typeSymbol != null ) addReference( references, createReference( typeSymbol, current.getImage(), current.getOffset() )); else handleProblem( IProblem.SEMANTIC_NAME_NOT_FOUND, current.getImage() ); } catch (ParserSymbolTableException e) { handleProblem( e.createProblemID(), current.getImage() ); } } s.setTypeSymbol( typeSymbol ); } s.getTypeInfo().setBit( isLong, TypeInfo.isLong ); s.getTypeInfo().setBit( isShort, TypeInfo.isShort); s.getTypeInfo().setBit( isUnsigned, TypeInfo.isUnsigned ); s.getTypeInfo().setBit( isComplex, TypeInfo.isComplex ); s.getTypeInfo().setBit( isImaginary, TypeInfo.isImaginary ); s.getTypeInfo().setBit( isSigned, TypeInfo.isSigned ); return new ASTSimpleTypeSpecifier( s, false, typeName.toString(), references ); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/51131345dbaa12f210adc03b3ad05a951d937464/CompleteParseASTFactory.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
9053,
5784,
559,
21416,
752,
5784,
559,
21416,
12,
3639,
467,
9053,
3876,
2146,
16,
3639,
1412,
3846,
16,
3639,
467,
1345,
40,
2268,
8173,
16,
3639,
1250,
353,
4897,
16,
3639,
1250,
353,
3708,
16,
3639,
1250,
353,
12294,
16,
3639,
1250,
353,
13290,
16,
1250,
353,
18488,
1069,
16,
1250,
353,
12795,
16,
1250,
353,
26698,
2101,
13,
1216,
9183,
13185,
9941,
503,
565,
288,
377,
202,
17305,
18,
73,
559,
618,
273,
446,
31,
377,
202,
377,
202,
430,
12,
3846,
422,
467,
9053,
5784,
559,
21416,
18,
559,
18,
5237,
67,
916,
67,
5538,
52,
21150,
262,
377,
202,
202,
723,
273,
1412,
966,
18,
88,
67,
723,
31,
202,
565,
469,
309,
12,
3846,
422,
467,
9053,
5784,
559,
21416,
18,
559,
18,
19040,
262,
540,
202,
723,
273,
1412,
966,
18,
88,
67,
6430,
31,
3639,
469,
309,
12,
3846,
422,
467,
9053,
5784,
559,
21416,
18,
559,
18,
7305,
262,
1082,
202,
723,
273,
1412,
966,
18,
88,
67,
3001,
31,
202,
202,
12107,
309,
12,
3846,
422,
467,
9053,
5784,
559,
21416,
18,
559,
18,
17088,
747,
9224,
422,
467,
9053,
5784,
559,
21416,
18,
559,
18,
15640,
225,
262,
1875,
202,
723,
273,
1412,
966,
18,
88,
67,
9056,
31,
202,
202,
12107,
309,
12,
3846,
422,
467,
9053,
5784,
559,
21416,
18,
559,
18,
3217,
262,
1082,
202,
723,
273,
1412,
966,
18,
88,
67,
474,
31,
202,
202,
12107,
309,
12,
3846,
422,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
9053,
5784,
559,
21416,
752,
5784,
559,
21416,
12,
3639,
467,
9053,
3876,
2146,
16,
3639,
1412,
3846,
16,
3639,
467,
1345,
40,
2268,
8173,
16,
3639,
1250,
353,
4897,
16,
3639,
1250,
353,
3708,
16,
3639,
1250,
353,
12294,
16,
3639,
1250,
353,
13290,
16,
1250,
353,
18488,
1069,
16,
1250,
353,
12795,
16,
1250,
353,
26698,
2101,
13,
1216,
9183,
13185,
9941,
503,
565,
288,
377,
202,
17305,
18,
73,
559,
618,
273,
446,
31,
377,
202,
377,
202,
430,
12,
3846,
422,
467,
9053,
5784,
559,
21416,
18,
559,
18,
5237,
67,
916,
67,
5538,
52,
21150,
262,
377,
202,
202,
723,
273,
1412,
966,
18,
88,
67,
723,
31,
202,
565,
469,
2
] |
private static WorkflowDescriptor load(InputStream is, URL url) throws SAXException, IOException, InvalidWorkflowDescriptorException { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); dbf.setValidating(true); DocumentBuilder db = null; try { db = dbf.newDocumentBuilder(); db.setEntityResolver(new DTDEntityResolver()); } catch (ParserConfigurationException e) { log.fatal("Could not load workflow file", e); } db.setErrorHandler(new WorkflowErrorHandler(url)); Document doc = db.parse(is); Element root = (Element) doc.getElementsByTagName("workflow").item(0); WorkflowDescriptor descriptor = new WorkflowDescriptor(root); descriptor.validate(); return descriptor; | public static WorkflowDescriptor load(final InputStream is) throws SAXException, IOException, InvalidWorkflowDescriptorException { return load(is, null); | private static WorkflowDescriptor load(InputStream is, URL url) throws SAXException, IOException, InvalidWorkflowDescriptorException { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); dbf.setValidating(true); DocumentBuilder db = null; try { db = dbf.newDocumentBuilder(); db.setEntityResolver(new DTDEntityResolver()); } catch (ParserConfigurationException e) { log.fatal("Could not load workflow file", e); } db.setErrorHandler(new WorkflowErrorHandler(url)); Document doc = db.parse(is); Element root = (Element) doc.getElementsByTagName("workflow").item(0); WorkflowDescriptor descriptor = new WorkflowDescriptor(root); descriptor.validate(); return descriptor; } | 7621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7621/4c41edce1cb52c59a232efb4c9d5ba120d2558ba/WorkflowLoader.java/buggy/src/java/com/opensymphony/workflow/loader/WorkflowLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
11363,
3187,
1262,
12,
4348,
353,
16,
1976,
880,
13,
1216,
14366,
16,
1860,
16,
1962,
8484,
3187,
503,
288,
3639,
30236,
1319,
74,
273,
30236,
18,
2704,
1442,
5621,
3639,
1319,
74,
18,
542,
3402,
10155,
12,
3767,
1769,
3639,
1319,
74,
18,
542,
31496,
12,
3767,
1769,
3639,
4319,
1263,
1319,
273,
446,
31,
3639,
775,
288,
5411,
1319,
273,
1319,
74,
18,
2704,
2519,
1263,
5621,
5411,
1319,
18,
542,
1943,
4301,
12,
2704,
10696,
1639,
1628,
4301,
10663,
3639,
289,
1044,
261,
2678,
10737,
425,
13,
288,
5411,
613,
18,
30709,
2932,
4445,
486,
1262,
6095,
585,
3113,
425,
1769,
3639,
289,
3639,
1319,
18,
542,
17729,
12,
2704,
11363,
17729,
12,
718,
10019,
3639,
4319,
997,
273,
1319,
18,
2670,
12,
291,
1769,
3639,
3010,
1365,
273,
261,
1046,
13,
997,
18,
588,
3471,
10401,
2932,
13815,
20387,
1726,
12,
20,
1769,
3639,
11363,
3187,
4950,
273,
394,
11363,
3187,
12,
3085,
1769,
3639,
4950,
18,
5662,
5621,
3639,
327,
4950,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
11363,
3187,
1262,
12,
4348,
353,
16,
1976,
880,
13,
1216,
14366,
16,
1860,
16,
1962,
8484,
3187,
503,
288,
3639,
30236,
1319,
74,
273,
30236,
18,
2704,
1442,
5621,
3639,
1319,
74,
18,
542,
3402,
10155,
12,
3767,
1769,
3639,
1319,
74,
18,
542,
31496,
12,
3767,
1769,
3639,
4319,
1263,
1319,
273,
446,
31,
3639,
775,
288,
5411,
1319,
273,
1319,
74,
18,
2704,
2519,
1263,
5621,
5411,
1319,
18,
542,
1943,
4301,
12,
2704,
10696,
1639,
1628,
4301,
10663,
3639,
289,
1044,
261,
2678,
10737,
425,
13,
288,
5411,
613,
18,
30709,
2932,
4445,
486,
1262,
6095,
585,
3113,
425,
1769,
3639,
289,
3639,
1319,
18,
542,
17729,
12,
2704,
11363,
17729,
12,
2
] |
if(mDataSource.fileExists(additonalFileName)) { if(mDataTarget.fileExists(additonalFileName)) mDataTarget.deleteFile(additonalFileName); | if(mDataTarget.fileExists(additonalFileName)) mDataTarget.deleteFile(additonalFileName); if(mDataSource.fileExists(additonalFileName)) { | public void updateDayProgramsFor(Channel channel, String level) throws UpdateException { Date date = new Date(); int daysWithNoData = 0; while (daysWithNoData < MAX_DAYS_WITHOUT_DATA) { String completeFileName = DayProgramFile.getProgramFileName(date, channel.getCountry(), channel.getId(), level); // Check which version is on the source // version -1 means there is no version int versionAtSource = -1; if (mDataSource.fileExists(completeFileName)) { versionAtSource = 1; boolean finished = false; do { String updateFileName = DayProgramFile.getProgramFileName(date, channel.getCountry(), channel.getId(), level, versionAtSource); if (mDataSource.fileExists(updateFileName)) { // There is an update file for the current version // -> The version of the complete file must be at least one higher versionAtSource++; } else { finished = true; } } while (! finished); } if (versionAtSource == -1) { daysWithNoData++; } else { daysWithNoData = 0; // Check which version is on the mirror // version -1 means there is no version int versionOnMirror = -1; if (fileIsOnMirror(completeFileName)) { versionOnMirror = 1; boolean finished = false; do { String updateFileName = DayProgramFile.getProgramFileName(date, channel.getCountry(), channel.getId(), level, versionOnMirror); if (fileIsOnMirror(updateFileName)) { // There is an update file for the current version // -> The version of the complete file must be at least one higher versionOnMirror++; } else { finished = true; } } while (! finished); } // Check whether the mirror needs an update if (versionOnMirror < versionAtSource) { String additonalFileName = null; if (versionOnMirror == -1) { mLog.fine("Adding version " + versionAtSource + ": " + completeFileName); } else { mLog.fine("Updating from version " + versionOnMirror + " to " + versionAtSource + ": " + completeFileName); } int index = completeFileName.indexOf("_update_"); if(index != -1) additonalFileName = completeFileName.substring(0,index) + completeFileName.substring(index+8,completeFileName.indexOf(".prog.gz")) + "_additional.prog.gz"; else additonalFileName = completeFileName.substring(0,completeFileName.indexOf(".prog.gz")) + "_additional.prog.gz"; if(mDataSource.fileExists(additonalFileName)) { if(mDataTarget.fileExists(additonalFileName)) mDataTarget.deleteFile(additonalFileName); mLog.fine("Adding additonal file: " + additonalFileName); byte[] data = mDataSource.loadFile(additonalFileName); mDataTarget.writeFile(additonalFileName, data); } // Update the mirror byte[] data = mDataSource.loadFile(completeFileName); mDataTarget.writeFile(completeFileName, data); for (int version = 0; version < versionAtSource; version++) { String updateFileName = DayProgramFile.getProgramFileName(date, channel.getCountry(), channel.getId(), level, version); data = mDataSource.loadFile(updateFileName); mDataTarget.writeFile(updateFileName, data); } } else { mLog.fine("File already up to date (version " + versionOnMirror + "): " + completeFileName); } } // Go on with the next day date = date.addDays(1); } } | 9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/ebf8030c8f02fd391ff2b83b17ae758c14fe043c/MirrorUpdater.java/buggy/tvbrowser/src/primarydatamanager/mirrorupdater/MirrorUpdater.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1089,
4245,
9459,
28388,
12,
2909,
1904,
16,
514,
1801,
13,
565,
1216,
2315,
503,
225,
288,
565,
2167,
1509,
273,
394,
2167,
5621,
565,
509,
4681,
1190,
2279,
751,
273,
374,
31,
3639,
1323,
261,
9810,
1190,
2279,
751,
411,
4552,
67,
31551,
67,
9147,
5069,
67,
4883,
13,
288,
1377,
514,
3912,
4771,
273,
13735,
9459,
812,
18,
588,
9459,
4771,
12,
712,
16,
3639,
1904,
18,
588,
8142,
9334,
1904,
18,
26321,
9334,
1801,
1769,
2868,
368,
2073,
1492,
1177,
353,
603,
326,
1084,
1377,
368,
1177,
300,
21,
4696,
1915,
353,
1158,
1177,
1377,
509,
1177,
861,
1830,
273,
300,
21,
31,
1377,
309,
261,
81,
8597,
18,
768,
4002,
12,
6226,
4771,
3719,
288,
3639,
1177,
861,
1830,
273,
404,
31,
3639,
1250,
6708,
273,
629,
31,
3639,
741,
288,
1850,
514,
1089,
4771,
273,
13735,
9459,
812,
18,
588,
9459,
4771,
12,
712,
16,
5411,
1904,
18,
588,
8142,
9334,
1904,
18,
26321,
9334,
1801,
16,
1177,
861,
1830,
1769,
1850,
309,
261,
81,
8597,
18,
768,
4002,
12,
2725,
4771,
3719,
288,
5411,
368,
6149,
353,
392,
1089,
585,
364,
326,
783,
1177,
5411,
368,
317,
1021,
1177,
434,
326,
3912,
585,
1297,
506,
622,
4520,
1245,
10478,
5411,
1177,
861,
1830,
9904,
31,
1850,
289,
469,
288,
5411,
6708,
273,
638,
31,
1850,
289,
3639,
289,
1323,
16051,
6708,
1769,
1377,
289,
5411,
309,
261,
1589,
861,
1830,
422,
300,
21,
13,
288,
3639,
4681,
1190,
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,
1089,
4245,
9459,
28388,
12,
2909,
1904,
16,
514,
1801,
13,
565,
1216,
2315,
503,
225,
288,
565,
2167,
1509,
273,
394,
2167,
5621,
565,
509,
4681,
1190,
2279,
751,
273,
374,
31,
3639,
1323,
261,
9810,
1190,
2279,
751,
411,
4552,
67,
31551,
67,
9147,
5069,
67,
4883,
13,
288,
1377,
514,
3912,
4771,
273,
13735,
9459,
812,
18,
588,
9459,
4771,
12,
712,
16,
3639,
1904,
18,
588,
8142,
9334,
1904,
18,
26321,
9334,
1801,
1769,
2868,
368,
2073,
1492,
1177,
353,
603,
326,
1084,
1377,
368,
1177,
300,
21,
4696,
1915,
353,
1158,
1177,
1377,
509,
1177,
861,
1830,
273,
300,
21,
31,
1377,
309,
261,
81,
8597,
18,
768,
4002,
12,
6226,
2
] |
results = launcher.runHTMLSuite((String) values.get(0), (String) values.get(1), (String) values.get(2), output, timeout); | try { results = launcher.runHTMLSuite((String) values.get(0), (String) values.get(1), (String) values.get(2), output, timeout); } catch (IOException e) { e.printStackTrace(); results = e.toString(); } | public String doCommand(String cmd, Vector values, String sessionId, HttpResponse res) throws IOException { String results; // handle special commands if ("getNewBrowserSession".equals(cmd)) { results = "OK," + getNewBrowserSession((String)values.get(0), (String)values.get(1)); } else if ("testComplete".equals(cmd)) { BrowserLauncher launcher = getLauncher(sessionId); if (launcher == null) { results = "ERROR: No launcher found for sessionId " + sessionId; } else { launcher.close(); // finally, if the command was testComplete, remove the queue if ("testComplete".equals(cmd)) { clearQueue(sessionId); } results = "OK"; } } else if ("shutDown".equals(cmd)) { System.out.println("Shutdown command received"); if (res != null) { res.getOutputStream().write("OK".getBytes()); res.commit(); } AsyncExecute.sleepTight(3000); System.exit(0); results = null; } else if ("isPostSupported".equals(cmd)) { // We don't support POST results = "OK,false"; } else if ("addStaticContent".equals(cmd)) { File dir = new File((String) values.get(0)); if (dir.exists()) { server.addNewStaticContent(dir); results = "OK"; } else { results = "ERROR: dir does not exist - " + dir.getAbsolutePath(); } } else if ("runHTMLSuite".equals(cmd)) { HTMLLauncher launcher = new HTMLLauncher(server); File output = null; if (values.size() < 3) { results = "ERROR: Not enough arguments (browser, browserURL, suiteURL, [outputFile])"; } else { if (values.size() > 3) { output = new File((String)values.get(3)); } // TODO User Configurable timeout long timeout = 1000 * 60 * 30; results = launcher.runHTMLSuite((String) values.get(0), (String) values.get(1), (String) values.get(2), output, timeout); } } else { SeleneseQueue queue = getQueue(sessionId); results = queue.doCommand(cmd, (String)values.get(0), (String)values.get(1)); } System.out.println("Got result: " + results); return results; } | 4718 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4718/8ab7aec641e88d0b0f25bab18582377334ca8182/SeleniumDriverResourceHandler.java/clean/server/src/main/java/org/openqa/selenium/server/SeleniumDriverResourceHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
741,
2189,
12,
780,
1797,
16,
5589,
924,
16,
514,
10338,
16,
9476,
400,
13,
1216,
1860,
288,
3639,
514,
1686,
31,
3639,
368,
1640,
4582,
4364,
3639,
309,
7566,
588,
1908,
9132,
2157,
9654,
14963,
12,
4172,
3719,
288,
5411,
1686,
273,
315,
3141,
10837,
397,
12654,
9132,
2157,
12443,
780,
13,
2372,
18,
588,
12,
20,
3631,
261,
780,
13,
2372,
18,
588,
12,
21,
10019,
3639,
289,
469,
309,
7566,
3813,
6322,
9654,
14963,
12,
4172,
3719,
288,
5411,
15408,
28820,
26618,
273,
9014,
4760,
264,
12,
3184,
548,
1769,
5411,
309,
261,
20738,
264,
422,
446,
13,
288,
7734,
1686,
273,
315,
3589,
30,
2631,
26618,
1392,
364,
10338,
315,
397,
10338,
31,
2398,
289,
469,
288,
7734,
26618,
18,
4412,
5621,
7734,
368,
3095,
16,
309,
326,
1296,
1703,
1842,
6322,
16,
1206,
326,
2389,
7734,
309,
7566,
3813,
6322,
9654,
14963,
12,
4172,
3719,
288,
10792,
2424,
3183,
12,
3184,
548,
1769,
7734,
289,
7734,
1686,
273,
315,
3141,
14432,
5411,
289,
3639,
289,
469,
309,
7566,
674,
322,
4164,
9654,
14963,
12,
4172,
3719,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
10961,
1296,
5079,
8863,
5411,
309,
261,
455,
480,
446,
13,
288,
7734,
400,
18,
588,
4632,
7675,
2626,
2932,
3141,
9654,
588,
2160,
10663,
7734,
400,
18,
7371,
5621,
5411,
289,
5411,
9672,
5289,
18,
19607,
56,
750,
12,
23,
3784,
1769,
5411,
2332,
18,
8593,
12,
20,
1769,
5411,
1686,
273,
446,
31,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
741,
2189,
12,
780,
1797,
16,
5589,
924,
16,
514,
10338,
16,
9476,
400,
13,
1216,
1860,
288,
3639,
514,
1686,
31,
3639,
368,
1640,
4582,
4364,
3639,
309,
7566,
588,
1908,
9132,
2157,
9654,
14963,
12,
4172,
3719,
288,
5411,
1686,
273,
315,
3141,
10837,
397,
12654,
9132,
2157,
12443,
780,
13,
2372,
18,
588,
12,
20,
3631,
261,
780,
13,
2372,
18,
588,
12,
21,
10019,
3639,
289,
469,
309,
7566,
3813,
6322,
9654,
14963,
12,
4172,
3719,
288,
5411,
15408,
28820,
26618,
273,
9014,
4760,
264,
12,
3184,
548,
1769,
5411,
309,
261,
20738,
264,
422,
446,
13,
288,
7734,
1686,
273,
315,
3589,
30,
2631,
26618,
1392,
364,
10338,
315,
397,
10338,
2
] |
String ldml_identity = " if (orderedSet.size() > 0) { String firstPath = (String) orderedSet.iterator().next(); String firstFullPath = getFullXPath(firstPath); XPathParts parts = new XPathParts(null,null).set(firstFullPath); if (firstFullPath.indexOf("/identity") >= 0) { ldml_identity = parts.toString(2); } else { ldml_identity = parts.toString(1) + "/identity"; | Set identitySet = new TreeSet(ldmlComparator); if (isSupplemental()) { identitySet.add(" identitySet.add(" } else { String ldml_identity = " if (orderedSet.size() > 0) { String firstPath = (String) orderedSet.iterator().next(); String firstFullPath = getFullXPath(firstPath); XPathParts parts = new XPathParts(null,null).set(firstFullPath); if (firstFullPath.indexOf("/identity") >= 0) { ldml_identity = parts.toString(2); } else { ldml_identity = parts.toString(1) + "/identity"; } | public CLDRFile write(PrintWriter pw) { Set orderedSet = new TreeSet(ldmlComparator); CollectionUtilities.addAll(dataSource.iterator(), orderedSet); pw.println("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"); pw.println("<!DOCTYPE ldml SYSTEM \"http://www.unicode.org/cldr/dtd/" + GEN_VERSION + "/ldml.dtd\">"); /*<identity><version number="1.2"/><generation date="2004-08-27"/><language type="en"/> */ // if ldml has any attributes, get them. String ldml_identity = "//ldml/identity"; if (orderedSet.size() > 0) { String firstPath = (String) orderedSet.iterator().next(); //Value firstValue = (Value) getXpath_value().get(firstPath); String firstFullPath = getFullXPath(firstPath); XPathParts parts = new XPathParts(null,null).set(firstFullPath); if (firstFullPath.indexOf("/identity") >= 0) { ldml_identity = parts.toString(2); } else { ldml_identity = parts.toString(1) + "/identity"; } } Set identitySet = new TreeSet(ldmlComparator); identitySet.add(ldml_identity + "/version[@number=\"$Revision$\"]"); identitySet.add(ldml_identity + "/generation[@date=\"$Date$\"]"); LocaleIDParser lip = new LocaleIDParser(); lip.set(dataSource.getLocaleID()); identitySet.add(ldml_identity + "/language[@type=\"" + lip.getLanguage() + "\"]"); if (lip.getScript().length() != 0) { identitySet.add(ldml_identity + "/script[@type=\"" + lip.getScript() + "\"]"); } if (lip.getRegion().length() != 0) { identitySet.add(ldml_identity + "/territory[@type=\"" + lip.getRegion() + "\"]"); } String[] variants = lip.getVariants(); for (int i = 0; i < variants.length; ++i) { identitySet.add(ldml_identity + "/variant[@type=\"" + variants[i] + "\"]"); } // now do the rest XPathParts.writeComment(pw, 0, dataSource.getXpathComments().getInitialComment(), false); XPathParts.Comments tempComments = (XPathParts.Comments) dataSource.getXpathComments().clone(); MapComparator modAttComp = attributeOrdering; if (HACK_ORDER) modAttComp = new MapComparator() .add("alt").add("draft").add(modAttComp.getOrder()); XPathParts last = new XPathParts(attributeOrdering, defaultSuppressionMap); XPathParts current = new XPathParts(attributeOrdering, defaultSuppressionMap); XPathParts lastFiltered = new XPathParts(attributeOrdering, defaultSuppressionMap); XPathParts currentFiltered = new XPathParts(attributeOrdering, defaultSuppressionMap); for (Iterator it2 = identitySet.iterator(); it2.hasNext();) { String xpath = (String)it2.next(); currentFiltered.set(xpath); current.set(xpath); current.writeDifference(pw, currentFiltered, last, lastFiltered, "", tempComments); // exchange pairs of parts XPathParts temp = current; current = last; last = temp; temp = currentFiltered; currentFiltered = lastFiltered; lastFiltered = temp; } for (Iterator it2 = orderedSet.iterator(); it2.hasNext();) { String xpath = (String)it2.next(); //Value v = (Value) getXpath_value().get(xpath); currentFiltered.set(xpath); if (currentFiltered.getElement(1).equals("identity")) continue; current.set(getFullXPath(xpath)); current.writeDifference(pw, currentFiltered, last, lastFiltered, getStringValue(xpath), tempComments); // exchange pairs of parts XPathParts temp = current; current = last; last = temp; temp = currentFiltered; currentFiltered = lastFiltered; lastFiltered = temp; } current.clear().writeDifference(pw, null, last, lastFiltered, null, tempComments); String finalComment = dataSource.getXpathComments().getFinalComment(); // write comments that no longer have a base List x = tempComments.extractCommentsWithoutBase(); if (x.size() != 0) { String extras = "Comments without bases" + XPathParts.NEWLINE; for (Iterator it = x.iterator(); it.hasNext();) { String key = (String) it.next(); //Log.logln("Writing extra comment: " + key); extras += XPathParts.NEWLINE + key; } finalComment += XPathParts.NEWLINE + extras; } XPathParts.writeComment(pw, 0, finalComment, true); return this; } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/08942cba9cf1598145481ff1b4be0d82c17d0a39/CLDRFile.java/clean/tools/java/org/unicode/cldr/util/CLDRFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14934,
6331,
812,
1045,
12,
5108,
2289,
8772,
13,
288,
202,
202,
694,
5901,
694,
273,
394,
19461,
12,
1236,
781,
5559,
1769,
202,
202,
2532,
11864,
18,
1289,
1595,
12,
892,
1830,
18,
9838,
9334,
5901,
694,
1769,
202,
202,
14921,
18,
8222,
2932,
12880,
2902,
1177,
5189,
21,
18,
20,
2412,
2688,
5189,
5159,
17,
28,
2412,
21551,
1769,
202,
202,
14921,
18,
8222,
2932,
5586,
29824,
16916,
781,
18786,
1239,
2505,
2207,
5591,
18,
9124,
18,
3341,
19,
830,
3069,
19,
31834,
4898,
397,
611,
1157,
67,
5757,
397,
2206,
1236,
781,
18,
31834,
21121,
1769,
202,
202,
20308,
32,
10781,
4438,
1589,
1300,
1546,
21,
18,
22,
6,
19,
4438,
25514,
1509,
1546,
6976,
24,
17,
6840,
17,
5324,
6,
19,
4438,
4923,
618,
1546,
275,
6,
21259,
1082,
1195,
202,
202,
759,
309,
16916,
781,
711,
1281,
1677,
16,
336,
2182,
18,
9506,
202,
780,
16916,
781,
67,
10781,
273,
16177,
1236,
781,
19,
10781,
14432,
202,
202,
430,
261,
9885,
694,
18,
1467,
1435,
405,
374,
13,
288,
1082,
202,
780,
1122,
743,
273,
261,
780,
13,
5901,
694,
18,
9838,
7675,
4285,
5621,
1082,
202,
759,
620,
1122,
620,
273,
261,
620,
13,
6538,
803,
67,
1132,
7675,
588,
12,
3645,
743,
1769,
1082,
202,
780,
1122,
24173,
273,
10208,
14124,
12,
3645,
743,
1769,
1082,
202,
14124,
4305,
2140,
273,
394,
10172,
4305,
12,
2011,
16,
2011,
2934,
542,
12,
3645,
24173,
1769,
1082,
202,
430,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14934,
6331,
812,
1045,
12,
5108,
2289,
8772,
13,
288,
202,
202,
694,
5901,
694,
273,
394,
19461,
12,
1236,
781,
5559,
1769,
202,
202,
2532,
11864,
18,
1289,
1595,
12,
892,
1830,
18,
9838,
9334,
5901,
694,
1769,
202,
202,
14921,
18,
8222,
2932,
12880,
2902,
1177,
5189,
21,
18,
20,
2412,
2688,
5189,
5159,
17,
28,
2412,
21551,
1769,
202,
202,
14921,
18,
8222,
2932,
5586,
29824,
16916,
781,
18786,
1239,
2505,
2207,
5591,
18,
9124,
18,
3341,
19,
830,
3069,
19,
31834,
4898,
397,
611,
1157,
67,
5757,
397,
2206,
1236,
781,
18,
31834,
21121,
1769,
202,
202,
20308,
32,
10781,
4438,
1589,
1300,
1546,
21,
18,
22,
6,
19,
4438,
25514,
1509,
2
] |
public RubyArray coerce(RubyNumeric other) { | public IRubyObject coerce(IRubyObject other) { | public RubyArray coerce(RubyNumeric other) { if (getMetaClass() == other.getMetaClass()) { return getRuntime().newArray(other, this); } return getRuntime().newArray( RubyFloat.newFloat(getRuntime(), other.getDoubleValue()), RubyFloat.newFloat(getRuntime(), getDoubleValue())); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/ae3178fbb3656e01c3d379a6255e1af956725271/RubyNumeric.java/clean/src/org/jruby/RubyNumeric.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
12270,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
309,
261,
588,
2781,
797,
1435,
422,
1308,
18,
588,
2781,
797,
10756,
288,
5411,
327,
18814,
7675,
2704,
1076,
12,
3011,
16,
333,
1769,
3639,
289,
10402,
327,
18814,
7675,
2704,
1076,
12,
7734,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
9334,
1308,
18,
588,
5265,
620,
1435,
3631,
7734,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
9334,
16097,
620,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
12270,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
309,
261,
588,
2781,
797,
1435,
422,
1308,
18,
588,
2781,
797,
10756,
288,
5411,
327,
18814,
7675,
2704,
1076,
12,
3011,
16,
333,
1769,
3639,
289,
10402,
327,
18814,
7675,
2704,
1076,
12,
7734,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
9334,
1308,
18,
588,
5265,
620,
1435,
3631,
7734,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
9334,
16097,
620,
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
] |
public void finished(boolean aborted, int errors, int warnings) { | public void finished(boolean aborted, int errors, int warnings, final CompileContext compileContext) { | protected void doAction(DataContext dataContext, final Project project) { ProfilingUtil.operationStarted("make"); CompilerManager.getInstance(project).rebuild(new CompileStatusNotification() { public void finished(boolean aborted, int errors, int warnings) { if (!aborted && LvcsConfiguration.getInstance().ADD_LABEL_ON_PROJECT_COMPILATION) { String text = getTemplatePresentation().getText(); LocalVcs.getInstance(project).addLabel( errors == 0 ? CompilerBundle.message("rebuild.lvcs.label.no.errors", text) : CompilerBundle .message("rebuild.lvcs.label.with.errors", text), "" ); } } }); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/03b7b20a5ae77fcfc35b774e509cd78e989f460f/CompileProjectAction.java/buggy/compiler/impl/com/intellij/compiler/actions/CompileProjectAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
741,
1803,
12,
751,
1042,
501,
1042,
16,
727,
5420,
1984,
13,
288,
565,
1186,
74,
4973,
1304,
18,
7624,
9217,
2932,
6540,
8863,
565,
12972,
1318,
18,
588,
1442,
12,
4406,
2934,
266,
3510,
12,
2704,
16143,
1482,
4386,
1435,
288,
1377,
1071,
918,
6708,
12,
6494,
18166,
16,
509,
1334,
16,
509,
5599,
16,
727,
16143,
1042,
4074,
1042,
13,
288,
3639,
309,
16051,
18623,
329,
597,
511,
18982,
1750,
18,
588,
1442,
7675,
8355,
67,
13545,
67,
673,
67,
17147,
67,
31075,
48,
2689,
13,
288,
1850,
514,
977,
273,
10646,
6351,
367,
7675,
588,
1528,
5621,
1850,
3566,
58,
2143,
18,
588,
1442,
12,
4406,
2934,
1289,
2224,
12,
5411,
1334,
422,
374,
692,
12972,
3405,
18,
2150,
2932,
266,
3510,
18,
3070,
2143,
18,
1925,
18,
2135,
18,
4324,
3113,
977,
13,
294,
12972,
3405,
263,
2150,
2932,
266,
3510,
18,
3070,
2143,
18,
1925,
18,
1918,
18,
4324,
3113,
977,
3631,
5411,
1408,
1850,
11272,
3639,
289,
1377,
289,
565,
15549,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
741,
1803,
12,
751,
1042,
501,
1042,
16,
727,
5420,
1984,
13,
288,
565,
1186,
74,
4973,
1304,
18,
7624,
9217,
2932,
6540,
8863,
565,
12972,
1318,
18,
588,
1442,
12,
4406,
2934,
266,
3510,
12,
2704,
16143,
1482,
4386,
1435,
288,
1377,
1071,
918,
6708,
12,
6494,
18166,
16,
509,
1334,
16,
509,
5599,
16,
727,
16143,
1042,
4074,
1042,
13,
288,
3639,
309,
16051,
18623,
329,
597,
511,
18982,
1750,
18,
588,
1442,
7675,
8355,
67,
13545,
67,
673,
67,
17147,
67,
31075,
48,
2689,
13,
288,
1850,
514,
977,
273,
10646,
6351,
367,
7675,
588,
1528,
5621,
1850,
3566,
58,
2143,
18,
588,
1442,
12,
4406,
2934,
1289,
2224,
12,
5411,
1334,
422,
2
] |
public void reset(XMLComponentManager componentManager) throws XMLConfigurationException { // sax features try { fValidation = componentManager.getFeature(VALIDATION); } catch (XMLConfigurationException e) { fValidation = false; } try { fDTDValidation = !(componentManager.getFeature(Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE)); } catch (XMLConfigurationException e) { // must be in a schema-less configuration! fDTDValidation = true; } // Xerces features try { fWarnDuplicateAttdef = componentManager.getFeature(WARN_ON_DUPLICATE_ATTDEF); } catch (XMLConfigurationException e) { fWarnDuplicateAttdef = false; } // get needed components fErrorReporter = (XMLErrorReporter)componentManager.getProperty(Constants.XERCES_PROPERTY_PREFIX+Constants.ERROR_REPORTER_PROPERTY); fSymbolTable = (SymbolTable)componentManager.getProperty(Constants.XERCES_PROPERTY_PREFIX+Constants.SYMBOL_TABLE_PROPERTY); try { fGrammarPool= (XMLGrammarPool)componentManager.getProperty(GRAMMAR_POOL); } catch (XMLConfigurationException e) { fGrammarPool = null; } try { fValidator = (XMLDTDValidator)componentManager.getProperty(DTD_VALIDATOR); } catch (XMLConfigurationException e) { fValidator = null; } catch (ClassCastException e) { fValidator = null; } // we get our grammarBucket from the validator... if(fValidator != null) { fGrammarBucket = fValidator.getGrammarBucket(); } else { fGrammarBucket = null; } reset(); } // reset(XMLComponentManager) | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/71f188a87af02b1443da35630abaf703fd737e8b/XMLDTDProcessor.java/buggy/src/org/apache/xerces/impl/dtd/XMLDTDProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
6208,
12,
4201,
1841,
1318,
4652,
1318,
13,
15069,
4201,
10737,
95,
759,
87,
651,
7139,
698,
95,
74,
4354,
33,
4652,
1318,
18,
588,
4595,
12,
5063,
2689,
1769,
97,
14683,
12,
4201,
10737,
73,
15329,
74,
4354,
33,
5743,
31,
97,
698,
95,
74,
25728,
4354,
33,
5,
12,
4652,
1318,
18,
588,
4595,
12,
2918,
18,
60,
654,
1441,
55,
67,
18257,
67,
6307,
15,
2918,
18,
14233,
67,
5063,
2689,
67,
18257,
10019,
97,
14683,
12,
4201,
10737,
73,
15329,
759,
11926,
2196,
267,
345,
1243,
17,
2656,
7025,
5,
74,
25728,
4354,
33,
3767,
31,
97,
759,
60,
264,
764,
7139,
698,
95,
74,
3160,
11826,
3075,
536,
33,
4652,
1318,
18,
588,
4595,
12,
27999,
67,
673,
67,
30387,
26042,
67,
789,
56,
12904,
1769,
97,
14683,
12,
4201,
10737,
73,
15329,
74,
3160,
11826,
3075,
536,
33,
5743,
31,
97,
759,
588,
17471,
8119,
74,
668,
13289,
28657,
4201,
668,
13289,
13,
4652,
1318,
18,
588,
1396,
12,
2918,
18,
60,
654,
1441,
55,
67,
9900,
67,
6307,
15,
2918,
18,
3589,
67,
28879,
916,
2560,
67,
9900,
1769,
74,
5335,
1388,
28657,
5335,
1388,
13,
4652,
1318,
18,
588,
1396,
12,
2918,
18,
60,
654,
1441,
55,
67,
9900,
67,
6307,
15,
2918,
18,
22093,
67,
7775,
67,
9900,
1769,
698,
95,
74,
18576,
2864,
28657,
4201,
18576,
2864,
13,
4652,
1318,
18,
588,
1396,
12,
15370,
19772,
67,
20339,
1769,
97,
14683,
12,
4201,
10737,
73,
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,
6459,
6208,
12,
4201,
1841,
1318,
4652,
1318,
13,
15069,
4201,
10737,
95,
759,
87,
651,
7139,
698,
95,
74,
4354,
33,
4652,
1318,
18,
588,
4595,
12,
5063,
2689,
1769,
97,
14683,
12,
4201,
10737,
73,
15329,
74,
4354,
33,
5743,
31,
97,
698,
95,
74,
25728,
4354,
33,
5,
12,
4652,
1318,
18,
588,
4595,
12,
2918,
18,
60,
654,
1441,
55,
67,
18257,
67,
6307,
15,
2918,
18,
14233,
67,
5063,
2689,
67,
18257,
10019,
97,
14683,
12,
4201,
10737,
73,
15329,
759,
11926,
2196,
267,
345,
1243,
17,
2656,
7025,
5,
74,
25728,
4354,
33,
3767,
31,
97,
759,
60,
264,
764,
7139,
698,
95,
74,
3160,
11826,
3075,
536,
33,
4652,
1318,
18,
2
] |
||
if (!savePool(qpoolbean)) { throw new RuntimeException("failed to populateItemBean."); | String currentName= qpoolbean.getCurrentPool().getDisplayName(); QuestionPoolService delegate = new QuestionPoolService(); ArrayList qplist = delegate.getBasicInfoOfAllPools(AgentFacade.getAgentString()); Iterator iter = qplist.iterator(); boolean nameDup=false; int count=0; try { while(iter.hasNext()){ QuestionPoolFacade pool = (QuestionPoolFacade) iter.next(); if ((pool.getDisplayName().trim()).equals(currentName)){ if(((qpoolbean.getAddOrEdit()).equals("add"))|| (count==1)) { nameDup=true; break; } else{ count++; } } } if(nameDup){ FacesContext context = FacesContext.getCurrentInstance(); String error=ContextUtil.getLocalizedString("org.sakaiproject.tool.assessment.bundle.QuestionPoolMessages","duplicateName_error"); context.addMessage(null,new FacesMessage(error)); qpoolbean.setOutcomeEdit("editPool"); qpoolbean.setOutcome("addPool"); } else{ if (!savePool(qpoolbean)){ throw new RuntimeException("failed to populateItemBean."); } } | public void processAction(ActionEvent ae) throws AbortProcessingException { log.info("PoolSaveListener :"); QuestionPoolBean qpoolbean= (QuestionPoolBean) cu.lookupBean("questionpool"); if (!savePool(qpoolbean)) { throw new RuntimeException("failed to populateItemBean."); } } | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/f8106bce98031a05210bd6a8ff9240c9c79c5983/PoolSaveListener.java/clean/samigo/tool/src/java/org/sakaiproject/tool/assessment/ui/listener/questionpool/PoolSaveListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1207,
1803,
12,
1803,
1133,
14221,
13,
1216,
14263,
23684,
225,
288,
565,
613,
18,
1376,
2932,
2864,
4755,
2223,
294,
8863,
565,
18267,
2864,
3381,
225,
1043,
6011,
14496,
33,
261,
11665,
2864,
3381,
13,
15985,
18,
8664,
3381,
2932,
4173,
6011,
8863,
565,
309,
16051,
5688,
2864,
12,
85,
6011,
14496,
3719,
565,
288,
1377,
604,
394,
3235,
2932,
7307,
358,
6490,
1180,
3381,
1199,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1207,
1803,
12,
1803,
1133,
14221,
13,
1216,
14263,
23684,
225,
288,
565,
613,
18,
1376,
2932,
2864,
4755,
2223,
294,
8863,
565,
18267,
2864,
3381,
225,
1043,
6011,
14496,
33,
261,
11665,
2864,
3381,
13,
15985,
18,
8664,
3381,
2932,
4173,
6011,
8863,
565,
309,
16051,
5688,
2864,
12,
85,
6011,
14496,
3719,
565,
288,
1377,
604,
394,
3235,
2932,
7307,
358,
6490,
1180,
3381,
1199,
1769,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String fixedExemplar1 = CollectionUtilities.prettyPrint(overlap, col, col, true); | String fixedExemplar1 = CollectionUtilities.prettyPrint(overlap, true, null, null, col, col); | public CheckCLDR _check(String path, String fullPath, String value, XPathParts pathParts, XPathParts fullPathParts, List result) { if (path.indexOf("/exemplarCharacters") < 0) return this; checkExemplar(value, result); if (path.indexOf("auxiliary") >= 0) { UnicodeSet exemplar1 = new UnicodeSet(value); UnicodeSet exemplar2 = getResolvedCldrFileToCheck().getExemplarSet("auxiliary"); if (exemplar2.containsSome(exemplar1)) { UnicodeSet overlap = new UnicodeSet(exemplar1).retainAll(exemplar2).removeAll(HangulSyllables); if (overlap.size() != 0) { String fixedExemplar1 = CollectionUtilities.prettyPrint(overlap, col, col, true); result.add(new CheckStatus().setType(CheckStatus.warningType) .setMessage("Auxilliary overlaps with main {0}", new Object[]{fixedExemplar1})); } } } return this; } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/f7760c4bd765cf58c6163fd24ecca924c91aed4f/CheckExemplars.java/clean/tools/java/org/unicode/cldr/test/CheckExemplars.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2073,
5017,
6331,
389,
1893,
12,
780,
589,
16,
514,
11225,
16,
514,
460,
16,
10172,
4305,
25628,
16,
10172,
4305,
11225,
4305,
16,
987,
563,
13,
288,
202,
202,
430,
261,
803,
18,
31806,
2932,
19,
338,
351,
412,
297,
11600,
7923,
411,
374,
13,
327,
333,
31,
3639,
866,
424,
351,
412,
297,
12,
1132,
16,
563,
1769,
3639,
309,
261,
803,
18,
31806,
2932,
18196,
20606,
7923,
1545,
374,
13,
288,
540,
202,
16532,
694,
431,
351,
412,
297,
21,
273,
394,
9633,
694,
12,
1132,
1769,
540,
202,
16532,
694,
431,
351,
412,
297,
22,
273,
336,
12793,
39,
14796,
812,
18126,
7675,
588,
424,
351,
412,
297,
694,
2932,
18196,
20606,
8863,
540,
202,
430,
261,
338,
351,
412,
297,
22,
18,
12298,
17358,
12,
338,
351,
412,
297,
21,
3719,
288,
540,
202,
202,
16532,
694,
7227,
273,
394,
9633,
694,
12,
338,
351,
412,
297,
21,
2934,
1349,
530,
1595,
12,
338,
351,
412,
297,
22,
2934,
4479,
1595,
12,
44,
539,
332,
10876,
2906,
1538,
1769,
540,
202,
202,
430,
261,
17946,
18,
1467,
1435,
480,
374,
13,
288,
540,
1082,
202,
780,
5499,
424,
351,
412,
297,
21,
273,
2200,
11864,
18,
19073,
5108,
12,
17946,
16,
638,
16,
446,
16,
446,
16,
645,
16,
645,
1769,
540,
202,
377,
202,
2088,
18,
1289,
12,
2704,
2073,
1482,
7675,
542,
559,
12,
1564,
1482,
18,
8551,
559,
13,
540,
202,
377,
202,
18,
542,
1079,
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,
2073,
5017,
6331,
389,
1893,
12,
780,
589,
16,
514,
11225,
16,
514,
460,
16,
10172,
4305,
25628,
16,
10172,
4305,
11225,
4305,
16,
987,
563,
13,
288,
202,
202,
430,
261,
803,
18,
31806,
2932,
19,
338,
351,
412,
297,
11600,
7923,
411,
374,
13,
327,
333,
31,
3639,
866,
424,
351,
412,
297,
12,
1132,
16,
563,
1769,
3639,
309,
261,
803,
18,
31806,
2932,
18196,
20606,
7923,
1545,
374,
13,
288,
540,
202,
16532,
694,
431,
351,
412,
297,
21,
273,
394,
9633,
694,
12,
1132,
1769,
540,
202,
16532,
694,
431,
351,
412,
297,
22,
273,
336,
12793,
39,
14796,
812,
18126,
7675,
588,
424,
351,
412,
297,
694,
2932,
18196,
20606,
2
] |
public ASTField(IASTScope scope, String name, boolean isAuto, IASTInitializerClause initializerClause, IASTExpression bitfieldExpression, IASTAbstractDeclaration abstractDeclaration, boolean isMutable, boolean isExtern, boolean isRegister, boolean isStatic, int startingOffset, int nameOffset, IASTExpression constructorExpression, ASTAccessVisibility visibility) | public ASTField(IASTScope scope, String name, boolean isAuto, IASTInitializerClause initializerClause, IASTExpression bitfieldExpression, IASTAbstractDeclaration abstractDeclaration, boolean isMutable, boolean isExtern, boolean isRegister, boolean isStatic, int startingOffset, int nameOffset, int nameEndOffset, IASTExpression constructorExpression, ASTAccessVisibility visibility) | public ASTField(IASTScope scope, String name, boolean isAuto, IASTInitializerClause initializerClause, IASTExpression bitfieldExpression, IASTAbstractDeclaration abstractDeclaration, boolean isMutable, boolean isExtern, boolean isRegister, boolean isStatic, int startingOffset, int nameOffset, IASTExpression constructorExpression, ASTAccessVisibility visibility) { super( scope, name, isAuto, initializerClause, bitfieldExpression, abstractDeclaration, isMutable, isExtern, isRegister, isStatic, startingOffset, nameOffset, constructorExpression ); this.visibility = visibility; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/e95da4dadebf96c72bbb248f97571b58e92fb39c/ASTField.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/ASTField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9183,
974,
12,
45,
9053,
3876,
2146,
16,
514,
508,
16,
1250,
27079,
16,
467,
9053,
14729,
7044,
12562,
7044,
16,
467,
9053,
2300,
2831,
1518,
2300,
16,
467,
9053,
7469,
6094,
8770,
6094,
16,
1250,
15707,
3050,
16,
1250,
353,
29764,
16,
1250,
353,
3996,
16,
1250,
16116,
16,
509,
5023,
2335,
16,
509,
508,
2335,
16,
509,
508,
1638,
2335,
16,
467,
9053,
2300,
3885,
2300,
16,
9183,
1862,
10135,
9478,
13,
565,
288,
3639,
2240,
12,
5411,
2146,
16,
5411,
508,
16,
5411,
27079,
16,
5411,
12562,
7044,
16,
5411,
2831,
1518,
2300,
16,
5411,
8770,
6094,
16,
5411,
15707,
3050,
16,
5411,
353,
29764,
16,
5411,
353,
3996,
16,
5411,
16116,
16,
5023,
2335,
16,
508,
2335,
16,
3885,
2300,
11272,
202,
202,
2211,
18,
14422,
273,
9478,
31,
377,
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,
9183,
974,
12,
45,
9053,
3876,
2146,
16,
514,
508,
16,
1250,
27079,
16,
467,
9053,
14729,
7044,
12562,
7044,
16,
467,
9053,
2300,
2831,
1518,
2300,
16,
467,
9053,
7469,
6094,
8770,
6094,
16,
1250,
15707,
3050,
16,
1250,
353,
29764,
16,
1250,
353,
3996,
16,
1250,
16116,
16,
509,
5023,
2335,
16,
509,
508,
2335,
16,
509,
508,
1638,
2335,
16,
467,
9053,
2300,
3885,
2300,
16,
9183,
1862,
10135,
9478,
13,
565,
288,
3639,
2240,
12,
5411,
2146,
16,
5411,
508,
16,
5411,
27079,
16,
5411,
12562,
7044,
16,
5411,
2831,
1518,
2300,
16,
5411,
8770,
6094,
16,
5411,
15707,
3050,
16,
5411,
353,
29764,
16,
5411,
353,
3996,
16,
5411,
16116,
16,
5023,
2
] |
nilClass.defineMethod("type", getMethodType()); nilClass.defineMethod("to_i", getMethodToI()); nilClass.defineMethod("to_s", getMethodToS()); nilClass.defineMethod("to_a", getMethodToA()); nilClass.defineMethod("inspect", getMethodInspect()); | nilClass.defineMethod("type", getMethod("m_type")); nilClass.defineMethod("to_i", getMethod("m_to_")); nilClass.defineMethod("to_s", getMethod("m_to_s")); nilClass.defineMethod("to_a", getMethod("m_to_a")); nilClass.defineMethod("inspect", getMethod("m_inspect")); | public static RubyClass createNilClass(Ruby ruby) { RubyClass nilClass = ruby.defineClass("NilClass", ruby.getObjectClass()); nilClass.defineMethod("type", getMethodType()); nilClass.defineMethod("to_i", getMethodToI()); nilClass.defineMethod("to_s", getMethodToS()); nilClass.defineMethod("to_a", getMethodToA()); nilClass.defineMethod("inspect", getMethodInspect()); nilClass.defineMethod("&", getMethodAnd()); nilClass.defineMethod("|", getMethodOr()); nilClass.defineMethod("^", getMethodXor()); nilClass.defineMethod("nil?", DefaultCallbackMethods.getMethodTrue()); nilClass.getRubyClass().undefMethod("new"); ruby.defineGlobalConstant("NIL", ruby.getNil()); return nilClass; } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/60d09f0d06e157ff7d9bb828d89273706e4e2798/RbNilClass.java/clean/org/jruby/core/RbNilClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
12616,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
515,
797,
273,
22155,
18,
11255,
797,
2932,
12616,
797,
3113,
22155,
18,
588,
921,
797,
10663,
7734,
515,
797,
18,
11255,
1305,
2932,
723,
3113,
6272,
559,
10663,
3639,
515,
797,
18,
11255,
1305,
2932,
869,
67,
77,
3113,
6272,
774,
45,
10663,
3639,
515,
797,
18,
11255,
1305,
2932,
869,
67,
87,
3113,
6272,
774,
55,
10663,
3639,
515,
797,
18,
11255,
1305,
2932,
869,
67,
69,
3113,
6272,
774,
37,
10663,
3639,
515,
797,
18,
11255,
1305,
2932,
12009,
3113,
6272,
12073,
10663,
7734,
515,
797,
18,
11255,
1305,
2932,
10,
3113,
6272,
1876,
10663,
3639,
515,
797,
18,
11255,
1305,
2932,
96,
3113,
6272,
1162,
10663,
3639,
515,
797,
18,
11255,
1305,
2932,
66,
3113,
6272,
60,
280,
10663,
3639,
515,
797,
18,
11255,
1305,
2932,
20154,
35,
3113,
2989,
2428,
4712,
18,
588,
1305,
5510,
10663,
7734,
515,
797,
18,
588,
54,
10340,
797,
7675,
318,
536,
1305,
2932,
2704,
8863,
7734,
22155,
18,
11255,
5160,
6902,
2932,
50,
2627,
3113,
22155,
18,
588,
12616,
10663,
7734,
327,
515,
797,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
12616,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
515,
797,
273,
22155,
18,
11255,
797,
2932,
12616,
797,
3113,
22155,
18,
588,
921,
797,
10663,
7734,
515,
797,
18,
11255,
1305,
2932,
723,
3113,
6272,
559,
10663,
3639,
515,
797,
18,
11255,
1305,
2932,
869,
67,
77,
3113,
6272,
774,
45,
10663,
3639,
515,
797,
18,
11255,
1305,
2932,
869,
67,
87,
3113,
6272,
774,
55,
10663,
3639,
515,
797,
18,
11255,
1305,
2932,
869,
67,
69,
3113,
6272,
774,
37,
10663,
3639,
515,
797,
18,
11255,
1305,
2932,
12009,
3113,
6272,
12073,
10663,
7734,
515,
797,
18,
11255,
1305,
2932,
10,
3113,
6272,
1876,
10663,
3639,
515,
797,
18,
2
] |
} else if (block instanceof RubyMethod) { block = ((RubyMethod)block).to_proc(); } else if (!(block instanceof RubyProc)) { throw new TypeError(runtime, "wrong argument type " + block.getMetaClass().getName() + " (expected Proc)"); | } if (!(proc instanceof RubyProc)) { proc = proc.convertToType("Proc", "to_proc", false); if (!(proc instanceof RubyProc)) { throw new TypeError(runtime, "wrong argument type " + proc.getMetaClass().getName() + " (expected Proc)"); } | public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { threadContext.getIterStack().push(Iter.ITER_NOT); try { eval(iVisited.getIterNode()); return; } finally { threadContext.getIterStack().pop(); } } else if (block instanceof RubyMethod) { block = ((RubyMethod)block).to_proc(); } else if (!(block instanceof RubyProc)) { throw new TypeError(runtime, "wrong argument type " + block.getMetaClass().getName() + " (expected Proc)"); } Block oldBlock = (Block) threadContext.getBlockStack().peek(); threadContext.getBlockStack().push(((RubyProc) block).getBlock()); threadContext.getIterStack().push(Iter.ITER_PRE); threadContext.getCurrentFrame().setIter(Iter.ITER_PRE); try { eval(iVisited.getIterNode()); } finally { threadContext.getIterStack().pop(); threadContext.getBlockStack().setCurrent(oldBlock); } } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/50d6342dd5da06c42d25bc955addce6aaa0e6b97/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
1768,
6433,
907,
12,
1768,
6433,
907,
277,
30019,
13,
288,
3639,
15908,
10340,
921,
1203,
273,
5302,
12,
77,
30019,
18,
588,
2250,
907,
10663,
3639,
309,
261,
2629,
18,
291,
12616,
10756,
288,
5411,
2650,
1042,
18,
588,
2360,
2624,
7675,
6206,
12,
2360,
18,
11844,
67,
4400,
1769,
5411,
775,
288,
7734,
5302,
12,
77,
30019,
18,
588,
2360,
907,
10663,
7734,
327,
31,
5411,
289,
3095,
288,
7734,
2650,
1042,
18,
588,
2360,
2624,
7675,
5120,
5621,
5411,
289,
3639,
289,
469,
309,
261,
2629,
1276,
19817,
1305,
13,
288,
5411,
1203,
273,
14015,
54,
10340,
1305,
13,
2629,
2934,
869,
67,
9381,
5621,
3639,
289,
469,
309,
16051,
12,
2629,
1276,
19817,
15417,
3719,
288,
5411,
604,
394,
3580,
12,
9448,
16,
315,
21530,
1237,
618,
315,
397,
1203,
18,
588,
2781,
797,
7675,
17994,
1435,
397,
315,
261,
3825,
18470,
2225,
1769,
3639,
289,
3639,
3914,
1592,
1768,
273,
261,
1768,
13,
2650,
1042,
18,
588,
1768,
2624,
7675,
347,
3839,
5621,
3639,
2650,
1042,
18,
588,
1768,
2624,
7675,
6206,
12443,
12,
54,
10340,
15417,
13,
1203,
2934,
588,
1768,
10663,
3639,
2650,
1042,
18,
588,
2360,
2624,
7675,
6206,
12,
2360,
18,
11844,
67,
3670,
1769,
3639,
2650,
1042,
18,
588,
3935,
3219,
7675,
542,
2360,
12,
2360,
18,
11844,
67,
3670,
1769,
3639,
775,
288,
5411,
5302,
12,
77,
30019,
18,
588,
2360,
907,
10663,
3639,
289,
3095,
288,
5411,
2650,
1042,
18,
588,
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,
3757,
1768,
6433,
907,
12,
1768,
6433,
907,
277,
30019,
13,
288,
3639,
15908,
10340,
921,
1203,
273,
5302,
12,
77,
30019,
18,
588,
2250,
907,
10663,
3639,
309,
261,
2629,
18,
291,
12616,
10756,
288,
5411,
2650,
1042,
18,
588,
2360,
2624,
7675,
6206,
12,
2360,
18,
11844,
67,
4400,
1769,
5411,
775,
288,
7734,
5302,
12,
77,
30019,
18,
588,
2360,
907,
10663,
7734,
327,
31,
5411,
289,
3095,
288,
7734,
2650,
1042,
18,
588,
2360,
2624,
7675,
5120,
5621,
5411,
289,
3639,
289,
469,
309,
261,
2629,
1276,
19817,
1305,
13,
288,
5411,
1203,
273,
14015,
54,
10340,
1305,
13,
2629,
2934,
869,
67,
9381,
5621,
3639,
289,
469,
309,
16051,
12,
2629,
2
] |
f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, 32); | f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, NAME_SIZE); | public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { Vector v = new Vector(); // The new ResultSet tuple stuff Field f[] = new Field[18]; // The field descriptors for the new ResultSet f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, 32); f[4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[5] = new Field(connection, "TYPE_NAME", iVarcharOid, 32); f[6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, 32); f[8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, 32); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, 32); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, 32); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid, 4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, 32); StringBuffer sql = new StringBuffer(512); /* Build a >= 7.1 SQL statement to list all columns */ sql.append("select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid, " : "a.oid, ") + " c.relname, " + " a.attname, " + " a.atttypid, " + " a.attnum, " + " a.attnotnull, " + " a.attlen, " + " a.atttypmod, " + " d.adsrc, " + " t.typname, " + /* Use the new col_description in 7.2 or an additional outer join in 7.1 */ (connection.haveMinimumServerVersion("7.2") ? "col_description(a.attrelid, a.attnum) " : "e.description ") + "from" + " (" + " (pg_class c inner join pg_attribute a on" + " (" + " a.attrelid=c.oid"); if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) { sql.append(" and c.relname like \'" + tableNamePattern.toLowerCase() + "\'"); } if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) { sql.append(" and a.attname like \'" + columnNamePattern.toLowerCase() + "\'"); } sql.append( " and a.attnum > 0" + " )" + " ) inner join pg_type t on" + " (" + " t.oid = a.atttypid" + " )" + " )" + " left outer join pg_attrdef d on" + " (" + " c.oid = d.adrelid" + " and a.attnum = d.adnum" + " ) "); if (!connection.haveMinimumServerVersion("7.2")) { /* Only for 7.1 */ sql.append( " left outer join pg_description e on" + " (" + " e.objoid = a.oid" + " ) "); } sql.append("order by" + " c.relname, a.attnum"); java.sql.ResultSet r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[18][0]; String nullFlag = r.getString(6); String typname = r.getString(10); tuple[0] = null; // Catalog name, not supported tuple[1] = null; // Schema name, not supported tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else { tuple[6] = r.getBytes(7); } tuple[7] = null; // Buffer length // Decimal digits = scale // From the source (see e.g. backend/utils/adt/format_type.c, // function numeric()) the scale and precision can be calculated // from the typmod value. if (typname.equals("numeric") || typname.equals("decimal")) { int attypmod = r.getInt(8) - VARHDRSZ; tuple[8] = Integer.toString(attypmod & 0xffff).getBytes(); tuple[9] = Integer.toString( ( attypmod >> 16 ) & 0xffff ).getBytes(); } else { tuple[8] = "0".getBytes(); tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal } tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[11] = r.getBytes(11); // Description (if any) tuple[12] = r.getBytes(9); // Column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes(); // Is nullable v.addElement(tuple); } r.close(); return connection.getResultSet(null, f, v, "OK", 1); } | 52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/62da2fa0e1cb3cf1df8d633f785e391c35477f7e/AbstractJdbc1DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
2643,
15533,
202,
202,
759,
1021,
652,
14215,
364,
326,
394,
10842,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
4883,
67,
2399,
3113,
277,
1702,
22,
19105,
16,
576,
1769,
202,
202,
74,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
315,
2399,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
26,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
4574,
3113,
277,
1702,
24,
19105,
16,
1059,
1769,
202,
202,
74,
63,
27,
65,
273,
394,
2286,
12,
4071,
16,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
2643,
15533,
202,
202,
759,
1021,
652,
14215,
364,
326,
394,
10842,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
2
] |
if (tryStackTop > 0) { --tryStackTop; | int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { | static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { return execWithNewDomain(cx, scope, thisObj, args, argsDbl, argShift, argCount, fnOrScript, idata); } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals; final int STACK_SHFT = TRY_STACK_SHFT + idata.itsMaxTryDepth;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[TRY_STACK_SHFT <= i < STACK_SHFT]: stack of try scopes// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[TRY_STACK_SHFT <= i < STACK_SHFT]: stack of try block pc, stored as doubles// sDbl[any other i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Context.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int tryStackTop = 0; // add TRY_STACK_SHFT to get real index int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!f.itsUseDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { scope = ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Context.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; byte[] iCode = idata.itsICode; String[] strings = idata.itsStringTable; int pc = 0; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; Loop: for (;;) { try { switch (iCode[pc] & 0xff) { // Back indent to ease imlementation reading case ENDTRY : tryStackTop--; break; case TokenStream.TRY : sDbl[TRY_STACK_SHFT + tryStackTop] = (double)pc; ++tryStackTop; // Skip starting pc of catch/finally blocks and with depth pc += 6; break; case TokenStream.CATCH: { // See comments in generateICodeFromTree: the following code should // be executed inside try/catch inside main loop, not in the loop catch // block itself if (javaException == null) Context.codeBug(); int pcTry = -1; int pcNew = -1; boolean doCatch = false; if (tryStackTop > 0) { // Decrease tryStackTop even if catch or finally would not // be processed to properly deal with exceptions thrown // by debuggerFrame.onExceptionThrown or cx.observeInstructionCount --tryStackTop; final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof WrappedException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script pcTry = (int)sDbl[TRY_STACK_SHFT + tryStackTop]; if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError int catch_offset = getShort(iCode, pcTry + 1); if (catch_offset != 0) { // Has catch block doCatch = true; pcNew = pcTry + catch_offset; } } if (pcNew < 0) { int finally_offset = getShort(iCode, pcTry + 3); if (finally_offset != 0) { // has finally block pcNew = pcTry + finally_offset; } } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcNew < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = getIndex(iCode, pcTry + 5); while (tryWithDepth != withDepth) { if (scope == null) Context.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } // make stack to contain single exception object stackTop = STACK_SHFT; if (doCatch) { stack[stackTop] = ScriptRuntime.getCatchObject(cx, scope, javaException); } else { // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // Notify instruction observer if necessary // and point pc and pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = pcNew; continue Loop; } case TokenStream.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; javaException = new JavaScriptException(value); if (instructionThreshold != 0) { instructionCount += pc + 1 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getJavaCatchPC(iCode); continue Loop; } case TokenStream.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IFNE : { Object val = stack[stackTop]; boolean valBln; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; } pc += 2; break; } case TokenStream.IFEQ : { boolean valBln; Object val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; } pc += 2; break; } case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; case GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; case RETSUB : { int slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } int newPC; Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; newPC = getJavaCatchPC(iCode); } else { // Normal return from GOSUB newPC = (int)sDbl[LOCAL_SHFT + slot]; } pcPrevBranch = pc = newPC; continue Loop; } case TokenStream.POP : stack[stackTop] = null; stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case RETURN_UNDEF_ICODE : result = undefined; break Loop; case END_ICODE: break Loop; case TokenStream.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case TokenStream.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case TokenStream.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case TokenStream.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case TokenStream.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case TokenStream.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case TokenStream.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case TokenStream.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case TokenStream.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case TokenStream.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case TokenStream.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; } case TokenStream.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case TokenStream.BINDNAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case TokenStream.GETBASE : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; } case TokenStream.SETNAME : { String name = strings[getIndex(iCode, pc + 1)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; // what about class cast exception here for lhs? Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case TokenStream.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); break; } case TokenStream.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case TokenStream.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; } case TokenStream.PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; } case TokenStream.ELEMINC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; } case TokenStream.ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; } case TokenStream.GETTHIS : { Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis(lhs); break; } case TokenStream.NEWTEMP : { int slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; } case TokenStream.USETEMP : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; } case TokenStream.CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc + 1] & 0xFF; boolean isNew = (iCode[pc + 2] != 0); int sourceLine = getShort(iCode, pc + 3); String sourceName = strings[getIndex(iCode, pc + 5)]; int count = getIndex(iCode, pc + 7); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, sourceName, sourceLine); pc += 8; instructionCount = cx.instructionCount; break; } case TokenStream.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; int count = getIndex(iCode, pc + 3); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc + 1)]; if (lhs == null) lhs = undefined; } throw NativeGlobal.typeError1 ("msg.isnt.function", ScriptRuntime.toString(lhs), calleeScope); } pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 3); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc + 1)]; if (lhs == null) lhs = undefined; } throw NativeGlobal.typeError1 ("msg.isnt.function", ScriptRuntime.toString(lhs), scope); } pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case TokenStream.TYPEOFNAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case TokenStream.STRING : stack[++stackTop] = strings[getIndex(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case TokenStream.NAMEINC : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.postIncrement(scope, name); pc += 2; break; } case TokenStream.NAMEDEC : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.postDecrement(scope, name); pc += 2; break; } case TokenStream.SETVAR : { int slot = (iCode[++pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.GETVAR : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } break; } case TokenStream.VARINC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; val = doubleWrap(ScriptRuntime.toNumber(val) + 1.0); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.VARDEC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; val = doubleWrap(ScriptRuntime.toNumber(val) - 1.0); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; break; } case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : { int slot = (iCode[++pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; } case TokenStream.ENUMNEXT : { int slot = (iCode[++pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime.nextEnum(val); break; } case TokenStream.GETPROTO : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; } case TokenStream.GETPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; } case TokenStream.GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; } case TokenStream.SETPROTO : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; } case TokenStream.SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; } case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : { int i = getIndex(iCode, pc + 1); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case TokenStream.REGEXP : { int i = getIndex(iCode, pc + 1); stack[++stackTop] = idata.itsRegExpLiterals[i]; pc += 2; break; } case SOURCEFILE_ICODE : cx.interpreterSourceFile = idata.itsSourceFile; break; case LINE_ICODE : { int line = getShort(iCode, pc + 1); cx.interpreterLine = line; if (debuggerFrame != null) { debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException ("Unknown icode : "+(iCode[pc] & 0xff)+" @ pc : "+pc); } // end of interpreter switch } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } pc = getJavaCatchPC(iCode); javaException = ex; continue Loop; } } if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/6a3aad39893ddaa41cb407b4e989ce970c014ab2/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
327,
1196,
1190,
1908,
3748,
12,
71,
92,
16,
2146,
16,
15261,
16,
19694,
833,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
16,
19694,
2295,
1162,
3651,
16,
612,
396,
1769,
3639,
289,
3639,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
11599,
18,
2290,
48,
67,
23464,
47,
31,
3639,
727,
22780,
3109,
273,
22243,
18,
1336,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
374,
31,
3639,
727,
509,
943,
5555,
273,
612,
396,
18,
1282,
2747,
5555,
31,
3639,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
67,
2664,
4464,
397,
943,
5555,
31,
3639,
727,
509,
4235,
61,
67,
21971,
67,
2664,
4464,
273,
15234,
67,
2664,
4464,
397,
612,
396,
18,
1282,
2747,
1333,
1031,
31,
3639,
727,
509,
11464,
67,
2664,
4464,
273,
4235,
61,
67,
21971,
67,
2664,
4464,
397,
612,
396,
18,
1282,
2747,
7833,
6148,
31,
759,
2110,
63,
7716,
67,
2664,
4464,
1648,
277,
411,
15234,
67,
2664,
4464,
14542,
3152,
759,
2110,
63,
14922,
67,
2664,
4464,
1648,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
327,
1196,
1190,
1908,
3748,
12,
71,
92,
16,
2146,
16,
15261,
16,
19694,
833,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
16,
19694,
2295,
1162,
3651,
16,
612,
396,
1769,
3639,
289,
3639,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
2
] |
case 491 : if (DEBUG) { System.out.println("EnumConstants ::= EnumConstants COMMA EnumConstant"); } | case 492 : if (DEBUG) { System.out.println("EnumConstants ::= EnumConstants COMMA EnumConstant"); } | protected void consumeRule(int act) { switch ( act ) { case 26 : if (DEBUG) { System.out.println("Type ::= PrimitiveType"); } //$NON-NLS-1$ consumePrimitiveType(); break; case 40 : if (DEBUG) { System.out.println("ReferenceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeReferenceType(); break; case 44 : if (DEBUG) { System.out.println("ClassOrInterface ::= Name"); } //$NON-NLS-1$ consumeClassOrInterfaceName(); break; case 45 : if (DEBUG) { System.out.println("ClassOrInterface ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeClassOrInterface(); break; case 46 : if (DEBUG) { System.out.println("GenericType ::= ClassOrInterface TypeArguments"); } //$NON-NLS-1$ consumeGenericType(); break; case 47 : if (DEBUG) { System.out.println("ArrayTypeWithTypeArgumentsName ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeArrayTypeWithTypeArgumentsName(); break; case 48 : if (DEBUG) { System.out.println("ArrayType ::= PrimitiveType Dims"); } //$NON-NLS-1$ consumePrimitiveArrayType(); break; case 49 : if (DEBUG) { System.out.println("ArrayType ::= Name Dims"); } //$NON-NLS-1$ consumeNameArrayType(); break; case 50 : if (DEBUG) { System.out.println("ArrayType ::= ArrayTypeWithTypeArgumentsName Dims"); } //$NON-NLS-1$ consumeGenericTypeNameArrayType(); break; case 51 : if (DEBUG) { System.out.println("ArrayType ::= GenericType Dims"); } //$NON-NLS-1$ consumeGenericTypeArrayType(); break; case 56 : if (DEBUG) { System.out.println("QualifiedName ::= Name DOT SimpleName"); } //$NON-NLS-1$ consumeQualifiedName(); break; case 57 : if (DEBUG) { System.out.println("CompilationUnit ::= EnterCompilationUnit..."); } //$NON-NLS-1$ consumeCompilationUnit(); break; case 58 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration"); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 59 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 60 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 61 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 62 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 63 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= TypeDeclarations"); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 64 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 65 : if (DEBUG) { System.out.println("InternalCompilationUnit ::="); } //$NON-NLS-1$ consumeEmptyInternalCompilationUnit(); break; case 66 : if (DEBUG) { System.out.println("ReduceImports ::="); } //$NON-NLS-1$ consumeReduceImports(); break; case 67 : if (DEBUG) { System.out.println("EnterCompilationUnit ::="); } //$NON-NLS-1$ consumeEnterCompilationUnit(); break; case 78 : if (DEBUG) { System.out.println("CatchHeader ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeCatchHeader(); break; case 80 : if (DEBUG) { System.out.println("ImportDeclarations ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeImportDeclarations(); break; case 82 : if (DEBUG) { System.out.println("TypeDeclarations ::= TypeDeclarations TypeDeclaration"); } //$NON-NLS-1$ consumeTypeDeclarations(); break; case 83 : if (DEBUG) { System.out.println("PackageDeclaration ::= PackageDeclarationName SEMICOLON"); } //$NON-NLS-1$ consumePackageDeclaration(); break; case 84 : if (DEBUG) { System.out.println("PackageDeclarationName ::= Modifiers package..."); } //$NON-NLS-1$ consumePackageDeclarationNameWithModifiers(); break; case 85 : if (DEBUG) { System.out.println("PackageDeclarationName ::= package Name"); } //$NON-NLS-1$ consumePackageDeclarationName(); break; case 90 : if (DEBUG) { System.out.println("SingleTypeImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 91 : if (DEBUG) { System.out.println("SingleTypeImportDeclarationName ::= import Name"); } //$NON-NLS-1$ consumeSingleTypeImportDeclarationName(); break; case 92 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 93 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclarationName ::= import Name DOT..."); } //$NON-NLS-1$ consumeTypeImportOnDemandDeclarationName(); break; case 96 : if (DEBUG) { System.out.println("TypeDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyTypeDeclaration(); break; case 100 : if (DEBUG) { System.out.println("Modifiers ::= Modifiers Modifier"); } //$NON-NLS-1$ consumeModifiers2(); break; case 112 : if (DEBUG) { System.out.println("Modifier ::= Annotation"); } //$NON-NLS-1$ consumeAnnotationAsModifier(); break; case 113 : if (DEBUG) { System.out.println("ClassDeclaration ::= ClassHeader ClassBody"); } //$NON-NLS-1$ consumeClassDeclaration(); break; case 114 : if (DEBUG) { System.out.println("ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt..."); } //$NON-NLS-1$ consumeClassHeader(); break; case 115 : if (DEBUG) { System.out.println("ClassHeaderName ::= ClassHeaderName1 TypeParameters"); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 117 : if (DEBUG) { System.out.println("ClassHeaderName1 ::= Modifiersopt class Identifier"); } //$NON-NLS-1$ consumeClassHeaderName1(); break; case 118 : if (DEBUG) { System.out.println("ClassHeaderExtends ::= extends ClassType"); } //$NON-NLS-1$ consumeClassHeaderExtends(); break; case 119 : if (DEBUG) { System.out.println("ClassHeaderImplements ::= implements InterfaceTypeList"); } //$NON-NLS-1$ consumeClassHeaderImplements(); break; case 121 : if (DEBUG) { System.out.println("InterfaceTypeList ::= InterfaceTypeList COMMA..."); } //$NON-NLS-1$ consumeInterfaceTypeList(); break; case 122 : if (DEBUG) { System.out.println("InterfaceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeInterfaceType(); break; case 125 : if (DEBUG) { System.out.println("ClassBodyDeclarations ::= ClassBodyDeclarations..."); } //$NON-NLS-1$ consumeClassBodyDeclarations(); break; case 129 : if (DEBUG) { System.out.println("ClassBodyDeclaration ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 130 : if (DEBUG) { System.out.println("Diet ::="); } //$NON-NLS-1$ consumeDiet(); break; case 131 : if (DEBUG) { System.out.println("Initializer ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 138 : if (DEBUG) { System.out.println("ClassMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyClassMemberDeclaration(); break; case 141 : if (DEBUG) { System.out.println("FieldDeclaration ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFieldDeclaration(); break; case 143 : if (DEBUG) { System.out.println("VariableDeclarators ::= VariableDeclarators COMMA..."); } //$NON-NLS-1$ consumeVariableDeclarators(); break; case 146 : if (DEBUG) { System.out.println("EnterVariable ::="); } //$NON-NLS-1$ consumeEnterVariable(); break; case 147 : if (DEBUG) { System.out.println("ExitVariableWithInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithInitialization(); break; case 148 : if (DEBUG) { System.out.println("ExitVariableWithoutInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithoutInitialization(); break; case 149 : if (DEBUG) { System.out.println("ForceNoDiet ::="); } //$NON-NLS-1$ consumeForceNoDiet(); break; case 150 : if (DEBUG) { System.out.println("RestoreDiet ::="); } //$NON-NLS-1$ consumeRestoreDiet(); break; case 155 : if (DEBUG) { System.out.println("MethodDeclaration ::= MethodHeader MethodBody"); } //$NON-NLS-1$ // set to true to consume a method with a body consumeMethodDeclaration(true); break; case 156 : if (DEBUG) { System.out.println("AbstractMethodDeclaration ::= MethodHeader SEMICOLON"); } //$NON-NLS-1$ // set to false to consume a method without body consumeMethodDeclaration(false); break; case 157 : if (DEBUG) { System.out.println("MethodHeader ::= MethodHeaderName FormalParameterListopt"); } //$NON-NLS-1$ consumeMethodHeader(); break; case 158 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt TypeParameters Type..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(); break; case 159 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt Type Identifier LPAREN"); } //$NON-NLS-1$ consumeMethodHeaderName(); break; case 160 : if (DEBUG) { System.out.println("MethodHeaderRightParen ::= RPAREN"); } //$NON-NLS-1$ consumeMethodHeaderRightParen(); break; case 161 : if (DEBUG) { System.out.println("MethodHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeMethodHeaderExtendedDims(); break; case 162 : if (DEBUG) { System.out.println("MethodHeaderThrowsClause ::= throws ClassTypeList"); } //$NON-NLS-1$ consumeMethodHeaderThrowsClause(); break; case 163 : if (DEBUG) { System.out.println("ConstructorHeader ::= ConstructorHeaderName..."); } //$NON-NLS-1$ consumeConstructorHeader(); break; case 164 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt TypeParameters..."); } //$NON-NLS-1$ consumeConstructorHeaderNameWithTypeParameters(); break; case 165 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt Identifier LPAREN"); } //$NON-NLS-1$ consumeConstructorHeaderName(); break; case 167 : if (DEBUG) { System.out.println("FormalParameterList ::= FormalParameterList COMMA..."); } //$NON-NLS-1$ consumeFormalParameterList(); break; case 168 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFormalParameter(false); break; case 169 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type ELLIPSIS..."); } //$NON-NLS-1$ consumeFormalParameter(true); break; case 171 : if (DEBUG) { System.out.println("ClassTypeList ::= ClassTypeList COMMA ClassTypeElt"); } //$NON-NLS-1$ consumeClassTypeList(); break; case 172 : if (DEBUG) { System.out.println("ClassTypeElt ::= ClassType"); } //$NON-NLS-1$ consumeClassTypeElt(); break; case 173 : if (DEBUG) { System.out.println("MethodBody ::= NestedMethod LBRACE BlockStatementsopt..."); } //$NON-NLS-1$ consumeMethodBody(); break; case 174 : if (DEBUG) { System.out.println("NestedMethod ::="); } //$NON-NLS-1$ consumeNestedMethod(); break; case 175 : if (DEBUG) { System.out.println("StaticInitializer ::= StaticOnly Block"); } //$NON-NLS-1$ consumeStaticInitializer(); break; case 176 : if (DEBUG) { System.out.println("StaticOnly ::= static"); } //$NON-NLS-1$ consumeStaticOnly(); break; case 177 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader MethodBody"); } //$NON-NLS-1$ consumeConstructorDeclaration() ; break; case 178 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader SEMICOLON"); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration() ; break; case 179 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= this LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0, THIS_CALL); break; case 180 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments this"); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,THIS_CALL); break; case 181 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= super LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0,SUPER_CALL); break; case 182 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,SUPER_CALL); break; case 183 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT super..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, SUPER_CALL); break; case 184 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, SUPER_CALL); break; case 185 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT super LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, SUPER_CALL); break; case 186 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, SUPER_CALL); break; case 187 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT this..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, THIS_CALL); break; case 188 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, THIS_CALL); break; case 189 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT this LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, THIS_CALL); break; case 190 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, THIS_CALL); break; case 191 : if (DEBUG) { System.out.println("InterfaceDeclaration ::= InterfaceHeader InterfaceBody"); } //$NON-NLS-1$ consumeInterfaceDeclaration(); break; case 192 : if (DEBUG) { System.out.println("InterfaceHeader ::= InterfaceHeaderName..."); } //$NON-NLS-1$ consumeInterfaceHeader(); break; case 193 : if (DEBUG) { System.out.println("InterfaceHeaderName ::= InterfaceHeaderName1..."); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 195 : if (DEBUG) { System.out.println("InterfaceHeaderName1 ::= Modifiersopt interface..."); } //$NON-NLS-1$ consumeInterfaceHeaderName1(); break; case 197 : if (DEBUG) { System.out.println("InterfaceHeaderExtends ::= extends InterfaceTypeList"); } //$NON-NLS-1$ consumeInterfaceHeaderExtends(); break; case 200 : if (DEBUG) { System.out.println("InterfaceMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarations(); break; case 201 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclaration(); break; case 204 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= InvalidMethodDeclaration"); } //$NON-NLS-1$ ignoreMethodBody(); break; case 205 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(true); break; case 206 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(false); break; case 213 : if (DEBUG) { System.out.println("PushLeftBrace ::="); } //$NON-NLS-1$ consumePushLeftBrace(); break; case 214 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace ,opt RBRACE"); } //$NON-NLS-1$ consumeEmptyArrayInitializer(); break; case 215 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 216 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 218 : if (DEBUG) { System.out.println("VariableInitializers ::= VariableInitializers COMMA..."); } //$NON-NLS-1$ consumeVariableInitializers(); break; case 219 : if (DEBUG) { System.out.println("Block ::= OpenBlock LBRACE BlockStatementsopt RBRACE"); } //$NON-NLS-1$ consumeBlock(); break; case 220 : if (DEBUG) { System.out.println("OpenBlock ::="); } //$NON-NLS-1$ consumeOpenBlock() ; break; case 222 : if (DEBUG) { System.out.println("BlockStatements ::= BlockStatements BlockStatement"); } //$NON-NLS-1$ consumeBlockStatements() ; break; case 226 : if (DEBUG) { System.out.println("BlockStatement ::= InvalidInterfaceDeclaration"); } //$NON-NLS-1$ ignoreInterfaceDeclaration(); break; case 227 : if (DEBUG) { System.out.println("LocalVariableDeclarationStatement ::=..."); } //$NON-NLS-1$ consumeLocalVariableDeclarationStatement(); break; case 228 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Type PushModifiers..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 229 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Modifiers Type..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 230 : if (DEBUG) { System.out.println("PushModifiers ::="); } //$NON-NLS-1$ consumePushModifiers(); break; case 231 : if (DEBUG) { System.out.println("PushRealModifiers ::="); } //$NON-NLS-1$ consumePushRealModifiers(); break; case 257 : if (DEBUG) { System.out.println("EmptyStatement ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyStatement(); break; case 258 : if (DEBUG) { System.out.println("LabeledStatement ::= Identifier COLON Statement"); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 259 : if (DEBUG) { System.out.println("LabeledStatementNoShortIf ::= Identifier COLON..."); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 260 : if (DEBUG) { System.out.println("ExpressionStatement ::= StatementExpression SEMICOLON"); } //$NON-NLS-1$ consumeExpressionStatement(); break; case 269 : if (DEBUG) { System.out.println("IfThenStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfNoElse(); break; case 270 : if (DEBUG) { System.out.println("IfThenElseStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 271 : if (DEBUG) { System.out.println("IfThenElseStatementNoShortIf ::= if LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 272 : if (DEBUG) { System.out.println("SwitchStatement ::= switch LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementSwitch() ; break; case 273 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE RBRACE"); } //$NON-NLS-1$ consumeEmptySwitchBlock() ; break; case 276 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlock() ; break; case 278 : if (DEBUG) { System.out.println("SwitchBlockStatements ::= SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlockStatements() ; break; case 279 : if (DEBUG) { System.out.println("SwitchBlockStatement ::= SwitchLabels BlockStatements"); } //$NON-NLS-1$ consumeSwitchBlockStatement() ; break; case 281 : if (DEBUG) { System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); } //$NON-NLS-1$ consumeSwitchLabels() ; break; case 282 : if (DEBUG) { System.out.println("SwitchLabel ::= case ConstantExpression COLON"); } //$NON-NLS-1$ consumeCaseLabel(); break; case 283 : if (DEBUG) { System.out.println("SwitchLabel ::= default COLON"); } //$NON-NLS-1$ consumeDefaultLabel(); break; case 284 : if (DEBUG) { System.out.println("WhileStatement ::= while LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 285 : if (DEBUG) { System.out.println("WhileStatementNoShortIf ::= while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 286 : if (DEBUG) { System.out.println("DoStatement ::= do Statement while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementDo() ; break; case 287 : if (DEBUG) { System.out.println("ForStatement ::= for LPAREN ForInitopt SEMICOLON..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 288 : if (DEBUG) { System.out.println("ForStatementNoShortIf ::= for LPAREN ForInitopt..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 289 : if (DEBUG) { System.out.println("ForInit ::= StatementExpressionList"); } //$NON-NLS-1$ consumeForInit() ; break; case 293 : if (DEBUG) { System.out.println("StatementExpressionList ::= StatementExpressionList..."); } //$NON-NLS-1$ consumeStatementExpressionList() ; break; case 294 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression SEMICOLON"); } //$NON-NLS-1$ consumeSimpleAssertStatement() ; break; case 295 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression COLON Expression"); } //$NON-NLS-1$ consumeAssertStatement() ; break; case 296 : if (DEBUG) { System.out.println("BreakStatement ::= break SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreak() ; break; case 297 : if (DEBUG) { System.out.println("BreakStatement ::= break Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreakWithLabel() ; break; case 298 : if (DEBUG) { System.out.println("ContinueStatement ::= continue SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinue() ; break; case 299 : if (DEBUG) { System.out.println("ContinueStatement ::= continue Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinueWithLabel() ; break; case 300 : if (DEBUG) { System.out.println("ReturnStatement ::= return Expressionopt SEMICOLON"); } //$NON-NLS-1$ consumeStatementReturn() ; break; case 301 : if (DEBUG) { System.out.println("ThrowStatement ::= throw Expression SEMICOLON"); } //$NON-NLS-1$ consumeStatementThrow(); break; case 302 : if (DEBUG) { System.out.println("SynchronizedStatement ::= OnlySynchronized LPAREN..."); } //$NON-NLS-1$ consumeStatementSynchronized(); break; case 303 : if (DEBUG) { System.out.println("OnlySynchronized ::= synchronized"); } //$NON-NLS-1$ consumeOnlySynchronized(); break; case 304 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catches"); } //$NON-NLS-1$ consumeStatementTry(false); break; case 305 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catchesopt Finally"); } //$NON-NLS-1$ consumeStatementTry(true); break; case 307 : if (DEBUG) { System.out.println("ExitTryBlock ::="); } //$NON-NLS-1$ consumeExitTryBlock(); break; case 309 : if (DEBUG) { System.out.println("Catches ::= Catches CatchClause"); } //$NON-NLS-1$ consumeCatches(); break; case 310 : if (DEBUG) { System.out.println("CatchClause ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeStatementCatch() ; break; case 312 : if (DEBUG) { System.out.println("PushLPAREN ::= LPAREN"); } //$NON-NLS-1$ consumeLeftParen(); break; case 313 : if (DEBUG) { System.out.println("PushRPAREN ::= RPAREN"); } //$NON-NLS-1$ consumeRightParen(); break; case 318 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayThis(); break; case 319 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Expression_NotName..."); } //$NON-NLS-1$ consumePrimaryNoNewArray(); break; case 320 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Name PushRPAREN"); } //$NON-NLS-1$ consumePrimaryNoNewArrayWithName(); break; case 323 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameThis(); break; case 324 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT super"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameSuper(); break; case 325 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayName(); break; case 326 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayArrayType(); break; case 327 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveArrayType(); break; case 328 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveType(); break; case 331 : if (DEBUG) { System.out.println("AllocationHeader ::= new ClassType LPAREN..."); } //$NON-NLS-1$ consumeAllocationHeader(); break; case 332 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionWithTypeArguments(); break; case 333 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new ClassType LPAREN"); } //$NON-NLS-1$ consumeClassInstanceCreationExpression(); break; case 334 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 335 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 336 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 337 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 338 : if (DEBUG) { System.out.println("ClassInstanceCreationExpressionName ::= Name DOT"); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionName() ; break; case 339 : if (DEBUG) { System.out.println("ClassBodyopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 341 : if (DEBUG) { System.out.println("ClassBodySimpleNameopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 343 : if (DEBUG) { System.out.println("EnterAnonymousClassBodySimpleName ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBodySimpleName(); break; case 344 : if (DEBUG) { System.out.println("EnterAnonymousClassBody ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBody(); break; case 346 : if (DEBUG) { System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); } //$NON-NLS-1$ consumeArgumentList(); break; case 347 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new PrimitiveType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 348 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new ClassOrInterfaceType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 349 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 350 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new PrimitiveType"); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 351 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 352 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 354 : if (DEBUG) { System.out.println("DimWithOrWithOutExprs ::= DimWithOrWithOutExprs..."); } //$NON-NLS-1$ consumeDimWithOrWithOutExprs(); break; case 356 : if (DEBUG) { System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeDimWithOrWithOutExpr(); break; case 357 : if (DEBUG) { System.out.println("Dims ::= DimsLoop"); } //$NON-NLS-1$ consumeDims(); break; case 360 : if (DEBUG) { System.out.println("OneDimLoop ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeOneDimLoop(); break; case 361 : if (DEBUG) { System.out.println("FieldAccess ::= Primary DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(false); break; case 362 : if (DEBUG) { System.out.println("FieldAccess ::= super DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(true); break; case 363 : if (DEBUG) { System.out.println("MethodInvocation ::= Name LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeMethodInvocationName(); break; case 364 : if (DEBUG) { System.out.println("MethodInvocation ::= Name DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationNameWithTypeArguments(); break; case 365 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationPrimaryWithTypeArguments(); break; case 366 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationPrimary(); break; case 367 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationSuperWithTypeArguments(); break; case 368 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationSuper(); break; case 369 : if (DEBUG) { System.out.println("ArrayAccess ::= Name LBRACKET Expression RBRACKET"); } //$NON-NLS-1$ consumeArrayAccess(true); break; case 370 : if (DEBUG) { System.out.println("ArrayAccess ::= PrimaryNoNewArray LBRACKET Expression..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 371 : if (DEBUG) { System.out.println("ArrayAccess ::= ArrayCreationWithArrayInitializer..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 373 : if (DEBUG) { System.out.println("PostfixExpression ::= Name"); } //$NON-NLS-1$ consumePostfixExpression(); break; case 376 : if (DEBUG) { System.out.println("PostIncrementExpression ::= PostfixExpression PLUS_PLUS"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,true); break; case 377 : if (DEBUG) { System.out.println("PostDecrementExpression ::= PostfixExpression..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,true); break; case 378 : if (DEBUG) { System.out.println("PushPosition ::="); } //$NON-NLS-1$ consumePushPosition(); break; case 381 : if (DEBUG) { System.out.println("UnaryExpression ::= PLUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 382 : if (DEBUG) { System.out.println("UnaryExpression ::= MINUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 384 : if (DEBUG) { System.out.println("PreIncrementExpression ::= PLUS_PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,false); break; case 385 : if (DEBUG) { System.out.println("PreDecrementExpression ::= MINUS_MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,false); break; case 387 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= TWIDDLE PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 388 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= NOT PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 390 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN PrimitiveType Dimsopt..."); } //$NON-NLS-1$ consumeCastExpressionWithPrimitiveType(); break; case 391 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithGenericsArray(); break; case 392 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithQualifiedGenericsArray(); break; case 393 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionLL1(); break; case 394 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name Dims PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionWithNameArray(); break; case 395 : if (DEBUG) { System.out.println("OnlyTypeArgumentsForCastExpression ::= OnlyTypeArguments"); } //$NON-NLS-1$ consumeOnlyTypeArgumentsForCastExpression(); break; case 396 : if (DEBUG) { System.out.println("InsideCastExpression ::="); } //$NON-NLS-1$ consumeInsideCastExpression(); break; case 397 : if (DEBUG) { System.out.println("InsideCastExpressionLL1 ::="); } //$NON-NLS-1$ consumeInsideCastExpressionLL1(); break; case 398 : if (DEBUG) { System.out.println("InsideCastExpressionWithQualifiedGenerics ::="); } //$NON-NLS-1$ consumeInsideCastExpressionWithQualifiedGenerics(); break; case 400 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 401 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 402 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 404 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression PLUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 405 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression MINUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 407 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 408 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 409 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 411 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 412 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression GREATER..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 413 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS_EQUAL"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 414 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 416 : if (DEBUG) { System.out.println("InstanceofExpression ::= InstanceofExpression instanceof"); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 418 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 419 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 421 : if (DEBUG) { System.out.println("AndExpression ::= AndExpression AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 423 : if (DEBUG) { System.out.println("ExclusiveOrExpression ::= ExclusiveOrExpression XOR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 425 : if (DEBUG) { System.out.println("InclusiveOrExpression ::= InclusiveOrExpression OR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 427 : if (DEBUG) { System.out.println("ConditionalAndExpression ::= ConditionalAndExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 429 : if (DEBUG) { System.out.println("ConditionalOrExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 431 : if (DEBUG) { System.out.println("ConditionalExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 434 : if (DEBUG) { System.out.println("Assignment ::= PostfixExpression AssignmentOperator..."); } //$NON-NLS-1$ consumeAssignment(); break; case 436 : if (DEBUG) { System.out.println("Assignment ::= InvalidArrayInitializerAssignement"); } //$NON-NLS-1$ ignoreExpressionAssignment(); break; case 437 : if (DEBUG) { System.out.println("AssignmentOperator ::= EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(EQUAL); break; case 438 : if (DEBUG) { System.out.println("AssignmentOperator ::= MULTIPLY_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MULTIPLY); break; case 439 : if (DEBUG) { System.out.println("AssignmentOperator ::= DIVIDE_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(DIVIDE); break; case 440 : if (DEBUG) { System.out.println("AssignmentOperator ::= REMAINDER_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(REMAINDER); break; case 441 : if (DEBUG) { System.out.println("AssignmentOperator ::= PLUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(PLUS); break; case 442 : if (DEBUG) { System.out.println("AssignmentOperator ::= MINUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MINUS); break; case 443 : if (DEBUG) { System.out.println("AssignmentOperator ::= LEFT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(LEFT_SHIFT); break; case 444 : if (DEBUG) { System.out.println("AssignmentOperator ::= RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(RIGHT_SHIFT); break; case 445 : if (DEBUG) { System.out.println("AssignmentOperator ::= UNSIGNED_RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(UNSIGNED_RIGHT_SHIFT); break; case 446 : if (DEBUG) { System.out.println("AssignmentOperator ::= AND_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(AND); break; case 447 : if (DEBUG) { System.out.println("AssignmentOperator ::= XOR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(XOR); break; case 448 : if (DEBUG) { System.out.println("AssignmentOperator ::= OR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(OR); break; case 452 : if (DEBUG) { System.out.println("Expressionopt ::="); } //$NON-NLS-1$ consumeEmptyExpression(); break; case 457 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyClassBodyDeclarationsopt(); break; case 458 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeClassBodyDeclarationsopt(); break; case 459 : if (DEBUG) { System.out.println("Modifiersopt ::="); } //$NON-NLS-1$ consumeDefaultModifiers(); break; case 460 : if (DEBUG) { System.out.println("Modifiersopt ::= Modifiers"); } //$NON-NLS-1$ consumeModifiers(); break; case 461 : if (DEBUG) { System.out.println("BlockStatementsopt ::="); } //$NON-NLS-1$ consumeEmptyBlockStatementsopt(); break; case 463 : if (DEBUG) { System.out.println("Dimsopt ::="); } //$NON-NLS-1$ consumeEmptyDimsopt(); break; case 465 : if (DEBUG) { System.out.println("ArgumentListopt ::="); } //$NON-NLS-1$ consumeEmptyArgumentListopt(); break; case 469 : if (DEBUG) { System.out.println("FormalParameterListopt ::="); } //$NON-NLS-1$ consumeFormalParameterListopt(); break; case 473 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclarationsopt(); break; case 474 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarationsopt(); break; case 475 : if (DEBUG) { System.out.println("NestedType ::="); } //$NON-NLS-1$ consumeNestedType(); break; case 476 : if (DEBUG) { System.out.println("ForInitopt ::="); } //$NON-NLS-1$ consumeEmptyForInitopt(); break; case 478 : if (DEBUG) { System.out.println("ForUpdateopt ::="); } //$NON-NLS-1$ consumeEmptyForUpdateopt(); break; case 482 : if (DEBUG) { System.out.println("Catchesopt ::="); } //$NON-NLS-1$ consumeEmptyCatchesopt(); break; case 484 : if (DEBUG) { System.out.println("EnumDeclaration ::= EnumHeader ClassHeaderImplementsopt"); } //$NON-NLS-1$ consumeEnumDeclaration(); break; case 485 : if (DEBUG) { System.out.println("EnumHeader ::= Modifiersopt enum Identifier"); } //$NON-NLS-1$ consumeEnumHeader(); break; case 486 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumBodyDeclarationsopt RBRACE"); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 487 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE COMMA EnumBodyDeclarationsopt..."); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 488 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants COMMA..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 489 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 491 : if (DEBUG) { System.out.println("EnumConstants ::= EnumConstants COMMA EnumConstant"); } //$NON-NLS-1$ consumeEnumConstants(); break; case 492 : if (DEBUG) { System.out.println("EnumConstantHeader ::= Identifier Argumentsopt"); } //$NON-NLS-1$ consumeEnumConstantHeader(); break; case 493 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader ClassBody"); } //$NON-NLS-1$ consumeEnumConstantWithClassBody(); break; case 494 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader"); } //$NON-NLS-1$ consumeEnumConstantNoClassBody(); break; case 495 : if (DEBUG) { System.out.println("Arguments ::= LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeArguments(); break; case 496 : if (DEBUG) { System.out.println("Argumentsopt ::="); } //$NON-NLS-1$ consumeEmptyArguments(); break; case 498 : if (DEBUG) { System.out.println("EnumDeclarations ::= SEMICOLON ClassBodyDeclarationsopt"); } //$NON-NLS-1$ consumeEnumDeclarations(); break; case 499 : if (DEBUG) { System.out.println("EnumBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyEnumDeclarations(); break; case 501 : if (DEBUG) { System.out.println("EnhancedForStatement ::= EnhancedForStatementHeader..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 502 : if (DEBUG) { System.out.println("EnhancedForStatementNoShortIf ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 503 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Type..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(false); break; case 504 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Modifiers Type"); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(true); break; case 505 : if (DEBUG) { System.out.println("SingleStaticImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 506 : if (DEBUG) { System.out.println("SingleStaticImportDeclarationName ::= import static Name"); } //$NON-NLS-1$ consumeSingleStaticImportDeclarationName(); break; case 507 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 508 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclarationName ::= import static..."); } //$NON-NLS-1$ consumeStaticImportOnDemandDeclarationName(); break; case 509 : if (DEBUG) { System.out.println("TypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeTypeArguments(); break; case 510 : if (DEBUG) { System.out.println("OnlyTypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeOnlyTypeArguments(); break; case 512 : if (DEBUG) { System.out.println("TypeArgumentList1 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList1(); break; case 514 : if (DEBUG) { System.out.println("TypeArgumentList ::= TypeArgumentList COMMA TypeArgument"); } //$NON-NLS-1$ consumeTypeArgumentList(); break; case 515 : if (DEBUG) { System.out.println("TypeArgument ::= ReferenceType"); } //$NON-NLS-1$ consumeTypeArgument(); break; case 519 : if (DEBUG) { System.out.println("ReferenceType1 ::= ReferenceType GREATER"); } //$NON-NLS-1$ consumeReferenceType1(); break; case 520 : if (DEBUG) { System.out.println("ReferenceType1 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType1(); break; case 522 : if (DEBUG) { System.out.println("TypeArgumentList2 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList2(); break; case 525 : if (DEBUG) { System.out.println("ReferenceType2 ::= ReferenceType RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType2(); break; case 526 : if (DEBUG) { System.out.println("ReferenceType2 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType2(); break; case 528 : if (DEBUG) { System.out.println("TypeArgumentList3 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList3(); break; case 531 : if (DEBUG) { System.out.println("ReferenceType3 ::= ReferenceType UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType3(); break; case 532 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION"); } //$NON-NLS-1$ consumeWildcard(); break; case 533 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION WildcardBounds"); } //$NON-NLS-1$ consumeWildcardWithBounds(); break; case 534 : if (DEBUG) { System.out.println("WildcardBounds ::= extends ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsExtends(); break; case 535 : if (DEBUG) { System.out.println("WildcardBounds ::= super ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsSuper(); break; case 536 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION GREATER"); } //$NON-NLS-1$ consumeWildcard1(); break; case 537 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION WildcardBounds1"); } //$NON-NLS-1$ consumeWildcard1WithBounds(); break; case 538 : if (DEBUG) { System.out.println("WildcardBounds1 ::= extends ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Extends(); break; case 539 : if (DEBUG) { System.out.println("WildcardBounds1 ::= super ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Super(); break; case 540 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard2(); break; case 541 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION WildcardBounds2"); } //$NON-NLS-1$ consumeWildcard2WithBounds(); break; case 542 : if (DEBUG) { System.out.println("WildcardBounds2 ::= extends ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Extends(); break; case 543 : if (DEBUG) { System.out.println("WildcardBounds2 ::= super ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Super(); break; case 544 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard3(); break; case 545 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION WildcardBounds3"); } //$NON-NLS-1$ consumeWildcard3WithBounds(); break; case 546 : if (DEBUG) { System.out.println("WildcardBounds3 ::= extends ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Extends(); break; case 547 : if (DEBUG) { System.out.println("WildcardBounds3 ::= super ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Super(); break; case 548 : if (DEBUG) { System.out.println("TypeParameterHeader ::= Identifier"); } //$NON-NLS-1$ consumeTypeParameterHeader(); break; case 549 : if (DEBUG) { System.out.println("TypeParameters ::= LESS TypeParameterList1"); } //$NON-NLS-1$ consumeTypeParameters(); break; case 551 : if (DEBUG) { System.out.println("TypeParameterList ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList(); break; case 553 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtends(); break; case 554 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtendsAndBounds(); break; case 556 : if (DEBUG) { System.out.println("AdditionalBoundList ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList(); break; case 557 : if (DEBUG) { System.out.println("AdditionalBound ::= AND ReferenceType"); } //$NON-NLS-1$ consumeAdditionalBound(); break; case 559 : if (DEBUG) { System.out.println("TypeParameterList1 ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList1(); break; case 560 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader GREATER"); } //$NON-NLS-1$ consumeTypeParameter1(); break; case 561 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtends(); break; case 562 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtendsAndBounds(); break; case 564 : if (DEBUG) { System.out.println("AdditionalBoundList1 ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList1(); break; case 565 : if (DEBUG) { System.out.println("AdditionalBound1 ::= AND ReferenceType1"); } //$NON-NLS-1$ consumeAdditionalBound1(); break; case 571 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 572 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 575 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= TWIDDLE..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 576 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= NOT PushPosition"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 579 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 580 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name MULTIPLY..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MULTIPLY); break; case 581 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 582 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name DIVIDE..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.DIVIDE); break; case 583 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 584 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name REMAINDER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.REMAINDER); break; case 586 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 587 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name PLUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.PLUS); break; case 588 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 589 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name MINUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MINUS); break; case 591 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 592 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LEFT_SHIFT); break; case 593 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 594 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.RIGHT_SHIFT); break; case 595 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 596 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name UNSIGNED_RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 598 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 599 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS); break; case 600 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 601 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER); break; case 602 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 603 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS_EQUAL); break; case 604 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 605 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER_EQUAL); break; case 607 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::= Name instanceof..."); } //$NON-NLS-1$ consumeInstanceOfExpressionWithName(OperatorIds.INSTANCEOF); break; case 608 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::=..."); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 610 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 611 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.EQUAL_EQUAL); break; case 612 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 613 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.NOT_EQUAL); break; case 615 : if (DEBUG) { System.out.println("AndExpression_NotName ::= AndExpression_NotName AND..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 616 : if (DEBUG) { System.out.println("AndExpression_NotName ::= Name AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND); break; case 618 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 619 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::= Name XOR AndExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.XOR); break; case 621 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 622 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::= Name OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR); break; case 624 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 625 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::= Name AND_AND..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND_AND); break; case 627 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 628 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::= Name OR_OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR_OR); break; case 630 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 631 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::= Name QUESTION..."); } //$NON-NLS-1$ consumeConditionalExpressionWithName(OperatorIds.QUESTIONCOLON) ; break; case 635 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::= Modifiers AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 636 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::= AT PushModifiers..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 637 : if (DEBUG) { System.out.println("AnnotationTypeDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclaration() ; break; case 639 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyAnnotationTypeMemberDeclarationsopt() ; break; case 642 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarations() ; break; case 643 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationHeader ::= Modifiersopt"); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarationHeader() ; break; case 644 : if (DEBUG) { System.out.println("AnnotationTypeMemberHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeAnnotationTypeMemberHeaderExtendedDims() ; break; case 645 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclaration() ; break; case 648 : if (DEBUG) { System.out.println("DefaultValueopt ::="); } //$NON-NLS-1$ consumeEmptyDefaultValue() ; break; case 654 : if (DEBUG) { System.out.println("NormalAnnotation ::= AT Name LPAREN MemberValuePairsopt"); } //$NON-NLS-1$ consumeNormalAnnotation() ; break; case 655 : if (DEBUG) { System.out.println("MemberValuePairsopt ::="); } //$NON-NLS-1$ consumeEmptyMemberValuePairsopt() ; break; case 658 : if (DEBUG) { System.out.println("MemberValuePairs ::= MemberValuePairs COMMA..."); } //$NON-NLS-1$ consumeMemberValuePairs() ; break; case 659 : if (DEBUG) { System.out.println("MemberValuePair ::= SimpleName EQUAL MemberValue"); } //$NON-NLS-1$ consumeMemberValuePair() ; break; case 661 : if (DEBUG) { System.out.println("MemberValue ::= Name"); } //$NON-NLS-1$ consumeMemberValueAsName() ; break; case 664 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 665 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 666 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 667 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 669 : if (DEBUG) { System.out.println("MemberValues ::= MemberValues COMMA MemberValue"); } //$NON-NLS-1$ consumeMemberValues() ; break; case 670 : if (DEBUG) { System.out.println("MarkerAnnotation ::= AT Name"); } //$NON-NLS-1$ consumeMarkerAnnotation() ; break; case 671 : if (DEBUG) { System.out.println("SingleMemberAnnotation ::= AT Name LPAREN MemberValue..."); } //$NON-NLS-1$ consumeSingleMemberAnnotation() ; break; }} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/824f8fe833a1ba72b3abeaae68c054814da34c63/Parser.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
10659,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
9840,
559,
5621,
26924,
202,
8820,
31,
377,
648,
8063,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
2404,
559,
493,
33,
1659,
1162,
1358,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
2404,
559,
5621,
565,
1082,
202,
8820,
31,
377,
648,
13291,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
1770,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
797,
1162,
24730,
5621,
565,
1082,
202,
8820,
31,
377,
648,
12292,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
7928,
559,
15772,
1770,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
797,
1162,
1358,
5621,
565,
1082,
202,
8820,
31,
377,
648,
17077,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
30982,
493,
33,
1659,
1162,
1358,
1412,
4628,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
30982,
5621,
565,
1082,
202,
8820,
31,
377,
648,
17495,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
27182,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
10659,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
9840,
559,
5621,
26924,
202,
8820,
31,
377,
648,
8063,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
2404,
559,
493,
33,
1659,
1162,
1358,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
2404,
559,
5621,
565,
1082,
202,
8820,
31,
377,
648,
13291,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
2
] |
return new URLConnection(url) { GetMethod get; public void connect() throws IOException { String userinfo = url.getUserInfo(); HttpClient client = new HttpClient(); if (userinfo != null) { int separatorPosition = userinfo.indexOf(":"); String username = userinfo.substring(0, separatorPosition); String password = userinfo.substring(separatorPosition + 1); client.getState().setCredentials( new AuthScope(url.getHost(), 80), new UsernamePasswordCredentials(username, password) ); } get = new GetMethod(url.toString()); get.setDoAuthentication(true); client.executeMethod(get); } public InputStream getInputStream() throws IOException { if (get == null) connect(); return get.getResponseBodyAsStream(); } /** * This method will be called by URLConnection.getLastModified(), * URLConnection.getContentLength(), etc. */ public String getHeaderField(String name) { if (get == null) try { connect(); Header[] headers = get.getResponseHeaders(); for (int i = headers.length - 1; i >= 0; i--) { if (headers[i].getName().equalsIgnoreCase(name)) { return headers[i].getValue(); } } } catch (IOException e) { throw new OXFException(e); } return null; } }; | return new HTTPURLConnection(url); | protected URLConnection openConnection(URL url) throws IOException { return new URLConnection(url) { GetMethod get; public void connect() throws IOException { String userinfo = url.getUserInfo(); HttpClient client = new HttpClient(); if (userinfo != null) { // Set username and password int separatorPosition = userinfo.indexOf(":"); String username = userinfo.substring(0, separatorPosition); String password = userinfo.substring(separatorPosition + 1); client.getState().setCredentials( new AuthScope(url.getHost(), 80), new UsernamePasswordCredentials(username, password) ); } // Connect get = new GetMethod(url.toString()); get.setDoAuthentication(true); client.executeMethod(get); } public InputStream getInputStream() throws IOException { if (get == null) connect(); return get.getResponseBodyAsStream(); } /** * This method will be called by URLConnection.getLastModified(), * URLConnection.getContentLength(), etc. */ public String getHeaderField(String name) { if (get == null) try { connect(); Header[] headers = get.getResponseHeaders(); for (int i = headers.length - 1; i >= 0; i--) { if (headers[i].getName().equalsIgnoreCase(name)) { return headers[i].getValue(); } } } catch (IOException e) { throw new OXFException(e); } return null; } }; } | 52783 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52783/004d79cc4ce56b40a3734af93bfc52ae0e1b1153/HTTPHandler.java/buggy/src/java/org/orbeon/oxf/resources/handler/HTTPHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1976,
1952,
24982,
12,
1785,
880,
13,
1216,
1860,
288,
3639,
327,
394,
1976,
1952,
12,
718,
13,
288,
5411,
968,
1305,
336,
31,
5411,
1071,
918,
3077,
1435,
1216,
1860,
288,
7734,
514,
18297,
273,
880,
18,
588,
21015,
5621,
7734,
16308,
1004,
273,
394,
16308,
5621,
7734,
309,
261,
31271,
480,
446,
13,
288,
10792,
368,
1000,
2718,
471,
2201,
10792,
509,
4182,
2555,
273,
18297,
18,
31806,
2932,
2773,
1769,
10792,
514,
2718,
273,
18297,
18,
28023,
12,
20,
16,
4182,
2555,
1769,
10792,
514,
2201,
273,
18297,
18,
28023,
12,
11287,
2555,
397,
404,
1769,
10792,
1004,
18,
588,
1119,
7675,
542,
6163,
12,
13491,
394,
3123,
3876,
12,
718,
18,
588,
2594,
9334,
8958,
3631,
13491,
394,
11313,
3913,
6163,
12,
5053,
16,
2201,
13,
10792,
11272,
7734,
289,
7734,
368,
8289,
7734,
336,
273,
394,
968,
1305,
12,
718,
18,
10492,
10663,
7734,
336,
18,
542,
3244,
6492,
12,
3767,
1769,
7734,
1004,
18,
8837,
1305,
12,
588,
1769,
5411,
289,
5411,
1071,
5037,
14424,
1435,
1216,
1860,
288,
7734,
309,
261,
588,
422,
446,
13,
3077,
5621,
7734,
327,
336,
18,
588,
23269,
17052,
5621,
5411,
289,
5411,
1783,
2398,
380,
1220,
707,
903,
506,
2566,
635,
1976,
1952,
18,
588,
14747,
9334,
2398,
380,
1976,
1952,
18,
588,
1350,
1782,
9334,
5527,
18,
2398,
1195,
5411,
1071,
514,
7911,
974,
12,
780,
508,
13,
288,
7734,
309,
261,
588,
422,
446,
13,
775,
288,
10792,
3077,
5621,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1976,
1952,
24982,
12,
1785,
880,
13,
1216,
1860,
288,
3639,
327,
394,
1976,
1952,
12,
718,
13,
288,
5411,
968,
1305,
336,
31,
5411,
1071,
918,
3077,
1435,
1216,
1860,
288,
7734,
514,
18297,
273,
880,
18,
588,
21015,
5621,
7734,
16308,
1004,
273,
394,
16308,
5621,
7734,
309,
261,
31271,
480,
446,
13,
288,
10792,
368,
1000,
2718,
471,
2201,
10792,
509,
4182,
2555,
273,
18297,
18,
31806,
2932,
2773,
1769,
10792,
514,
2718,
273,
18297,
18,
28023,
12,
20,
16,
4182,
2555,
1769,
10792,
514,
2201,
273,
18297,
18,
28023,
12,
11287,
2555,
397,
404,
1769,
10792,
1004,
18,
588,
1119,
7675,
542,
6163,
12,
13491,
394,
3123,
3876,
12,
718,
18,
588,
2594,
2
] |
onMatch = DENY; | on_match = DENY; | public void setOnMatch(String action) { if ("NEUTRAL".equals(action)) { onMatch = NEUTRAL; } else if ("ACCEPT".equals(action)) { onMatch = ACCEPT; } else if ("DENY".equals(action)) { onMatch = DENY; } } | 51675 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51675/7e755b8978a294df3e6d9708c2e25dcac0c5d6c8/AbstractEvalutatorFilter.java/buggy/logback-core/src/main/java/ch/qos/logback/core/filter/AbstractEvalutatorFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
22131,
2060,
12,
780,
1301,
13,
288,
565,
309,
7566,
5407,
1693,
54,
1013,
9654,
14963,
12,
1128,
3719,
288,
1377,
603,
2060,
273,
12901,
1693,
54,
1013,
31,
565,
289,
469,
309,
7566,
21417,
9654,
14963,
12,
1128,
3719,
288,
1377,
603,
2060,
273,
29749,
31,
565,
289,
469,
309,
7566,
13296,
61,
9654,
14963,
12,
1128,
3719,
288,
1377,
603,
67,
1916,
273,
463,
1157,
61,
31,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
22131,
2060,
12,
780,
1301,
13,
288,
565,
309,
7566,
5407,
1693,
54,
1013,
9654,
14963,
12,
1128,
3719,
288,
1377,
603,
2060,
273,
12901,
1693,
54,
1013,
31,
565,
289,
469,
309,
7566,
21417,
9654,
14963,
12,
1128,
3719,
288,
1377,
603,
2060,
273,
29749,
31,
565,
289,
469,
309,
7566,
13296,
61,
9654,
14963,
12,
1128,
3719,
288,
1377,
603,
67,
1916,
273,
463,
1157,
61,
31,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new DateTime(startYear, startMonth, startDay, startHour, startMinute, startSecond, 0); | return new DateTime(startYear, startMonth, startDay, startHour, startMinute, 0, 0); | protected DateTime getStartDate() { return new DateTime(startYear, startMonth, startDay, startHour, startMinute, startSecond, 0); } | 18469 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/18469/10ddbe8c00ce75d2b33297a07f7b6fbfaa698010/AbstractEventAction.java/clean/src/java/com/atlassian/confluence/extra/calendar/action/AbstractEventAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3716,
8635,
1626,
1435,
565,
288,
3639,
327,
394,
3716,
12,
1937,
5593,
16,
787,
5445,
16,
787,
4245,
16,
787,
13433,
16,
787,
18329,
16,
374,
16,
374,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3716,
8635,
1626,
1435,
565,
288,
3639,
327,
394,
3716,
12,
1937,
5593,
16,
787,
5445,
16,
787,
4245,
16,
787,
13433,
16,
787,
18329,
16,
374,
16,
374,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
list = new TableViewer(content, (multi ? SWT.MULTI : SWT.SINGLE) | list = new ItemsTableViewer(content, (multi ? SWT.MULTI : SWT.SINGLE) | protected Control createDialogArea(Composite parent) { Composite dialogArea = (Composite) super.createDialogArea(parent); Composite content = new Composite(dialogArea, SWT.NONE); GridData gd = new GridData(GridData.FILL_BOTH); content.setLayoutData(gd); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.marginWidth = 0; layout.marginHeight = 0; content.setLayout(layout); Control header = createHeader(content); gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = 2; header.setLayoutData(gd); pattern = new Text(content, SWT.SINGLE | SWT.BORDER); gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = 2; pattern.setLayoutData(gd); Label listLabel = new Label(content, SWT.NONE); listLabel .setText(WorkbenchMessages.FilteredItemsSelectionDialog_listLabel); listLabel.addTraverseListener(new TraverseListener() { public void keyTraversed(TraverseEvent e) { if (e.detail == SWT.TRAVERSE_MNEMONIC && e.doit) { e.detail = SWT.TRAVERSE_NONE; list.getTable().setFocus(); } } }); progressLabel = new Label(content, SWT.RIGHT); gd = new GridData(GridData.FILL_HORIZONTAL); progressLabel.setLayoutData(gd); list = new TableViewer(content, (multi ? SWT.MULTI : SWT.SINGLE) | SWT.BORDER | SWT.V_SCROLL); contentProvider = new ContentProvider(createFilter(), this.history); list.setContentProvider(contentProvider); list.setLabelProvider(getItemsListLabelProvider()); list.setInput(new Object[0]); gd = new GridData(GridData.FILL_BOTH); gd.horizontalSpan = 2; list.getTable().setLayoutData(gd); createPopupMenu(); pattern.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { setFilter(createFilter()); } }); pattern.addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent e) { if (e.keyCode == SWT.ARROW_DOWN) { if (pattern.getCaretPosition() == pattern.getCharCount() && list.getTable().getItemCount() > 0) { list.getTable().setFocus(); } } } }); list.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { StructuredSelection selection = (StructuredSelection) event .getSelection(); handleSelected(selection); } }); list.addDoubleClickListener(new IDoubleClickListener() { public void doubleClick(DoubleClickEvent event) { okPressed(); } }); list.getTable().addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent e) { if (e.keyCode == SWT.ARROW_UP) { StructuredSelection selection = (StructuredSelection) list .getSelection(); if (selection.size() == 1) { Object element = selection.getFirstElement(); if (element.equals(list.getElementAt(0))) { pattern.setFocus(); } } } } }); // details field details = new TableViewer(content, SWT.BORDER); detailsContentProvider = new DetailsContentProvider(); details.setContentProvider(detailsContentProvider); detailsContentProvider.setElements(new Object[0]); details.setLabelProvider(getDetailsLabelProvider()); details.setInput(new Object[0]); gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = 2; gd.heightHint = listLabel.getSize().y; details.getTable().setLayoutData(gd); applyDialogFont(content); restoreDialog(getDialogSettings()); return dialogArea; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/1663bf19893c50fb6c66f6e2fee4bc87c54134c3/FilteredItemsSelectionDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredItemsSelectionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
202,
9400,
6176,
5484,
273,
261,
9400,
13,
2240,
18,
2640,
6353,
5484,
12,
2938,
1769,
202,
202,
9400,
913,
273,
394,
14728,
12,
12730,
5484,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
1745,
18,
542,
3744,
751,
12,
19016,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
2107,
3380,
273,
576,
31,
202,
202,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
6741,
18,
10107,
2686,
273,
374,
31,
202,
202,
1745,
18,
542,
3744,
12,
6741,
1769,
202,
202,
3367,
1446,
273,
752,
1864,
12,
1745,
1769,
202,
202,
19016,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
1769,
202,
202,
19016,
18,
18396,
6952,
273,
576,
31,
202,
202,
3374,
18,
542,
3744,
751,
12,
19016,
1769,
202,
202,
4951,
273,
394,
3867,
12,
1745,
16,
348,
8588,
18,
20184,
571,
348,
8588,
18,
38,
7954,
1769,
202,
202,
19016,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
1769,
202,
202,
19016,
18,
18396,
6952,
273,
576,
31,
202,
202,
4951,
18,
542,
3744,
751,
12,
19016,
1769,
202,
202,
2224,
666,
2224,
273,
394,
5287,
12,
1745,
16,
348,
8588,
18,
9826,
1769,
202,
202,
1098,
2224,
9506,
202,
18,
542,
1528,
12,
2421,
22144,
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,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
202,
9400,
6176,
5484,
273,
261,
9400,
13,
2240,
18,
2640,
6353,
5484,
12,
2938,
1769,
202,
202,
9400,
913,
273,
394,
14728,
12,
12730,
5484,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
1745,
18,
542,
3744,
751,
12,
19016,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
2107,
3380,
273,
576,
31,
202,
202,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
6741,
18,
10107,
2686,
273,
374,
31,
202,
202,
1745,
18,
542,
3744,
12,
6741,
1769,
2
] |
sources.remove( sources.get( namingListener ) ); | Object obj = sources.get( namingListener ); if ( obj == null ) { return; } if ( obj instanceof EventSourceRecord ) { sources.remove( namingListener ); } else if ( obj instanceof List ) { List list = ( List ) obj; for ( int ii = 0; ii < list.size(); ii++ ) { EventSourceRecord rec = ( EventSourceRecord ) list.get( ii ); if ( rec.getEventContext() == ctx ) { list.remove( ii ); } } if ( list.isEmpty() ) { sources.remove( namingListener ); } } | public void removeNamingListener( NamingListener namingListener ) { sources.remove( sources.get( namingListener ) ); } | 17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/19f3ecccfd12b1b941554a0358b5d02f3215b0fd/EventService.java/buggy/core/src/main/java/org/apache/ldap/server/event/EventService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
24102,
2223,
12,
18884,
2223,
14634,
2223,
262,
565,
288,
3639,
1033,
1081,
273,
5550,
18,
588,
12,
14634,
2223,
11272,
225,
309,
261,
1081,
422,
446,
262,
288,
327,
31,
289,
225,
309,
261,
1081,
1276,
2587,
1830,
2115,
262,
288,
5550,
18,
4479,
12,
14634,
2223,
11272,
289,
469,
309,
261,
1081,
1276,
987,
262,
288,
987,
666,
273,
261,
987,
262,
1081,
31,
225,
364,
261,
509,
6072,
273,
374,
31,
6072,
411,
666,
18,
1467,
5621,
6072,
9904,
262,
288,
2587,
1830,
2115,
1950,
273,
261,
2587,
1830,
2115,
262,
666,
18,
588,
12,
6072,
11272,
309,
261,
1950,
18,
588,
1133,
1042,
1435,
422,
1103,
262,
288,
666,
18,
4479,
12,
6072,
11272,
289,
289,
225,
309,
261,
666,
18,
291,
1921,
1435,
262,
288,
5550,
18,
4479,
12,
14634,
2223,
11272,
289,
289,
377,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
24102,
2223,
12,
18884,
2223,
14634,
2223,
262,
565,
288,
3639,
1033,
1081,
273,
5550,
18,
588,
12,
14634,
2223,
11272,
225,
309,
261,
1081,
422,
446,
262,
288,
327,
31,
289,
225,
309,
261,
1081,
1276,
2587,
1830,
2115,
262,
288,
5550,
18,
4479,
12,
14634,
2223,
11272,
289,
469,
309,
261,
1081,
1276,
987,
262,
288,
987,
666,
273,
261,
987,
262,
1081,
31,
225,
364,
261,
509,
6072,
273,
374,
31,
6072,
411,
666,
18,
1467,
5621,
6072,
9904,
262,
288,
2587,
1830,
2115,
1950,
273,
261,
2587,
1830,
2115,
262,
666,
18,
588,
12,
6072,
11272,
309,
261,
1950,
18,
588,
1133,
1042,
1435,
422,
1103,
262,
288,
666,
18,
4479,
2
] |
this.immediate = immediate; } | this.immediate = immediate; } | public void setImmediate(boolean immediate) { this.immediate = immediate; } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/clean/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
22651,
12,
6494,
14483,
13,
288,
202,
202,
2211,
18,
381,
6785,
273,
14483,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
22651,
12,
6494,
14483,
13,
288,
202,
202,
2211,
18,
381,
6785,
273,
14483,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
opt.w.print(", URL=\"" + classToUrl(entry.getKey().toString())); | opt.w.print(", URL=\"" + classToUrl(entry.getKey().toString()) + "\""); | public void printExtraClasses() { Collection myClassInfos = classnames.entrySet(); Iterator iter = myClassInfos.iterator(); while (iter.hasNext()) { Map.Entry entry = (Entry) iter.next(); ClassInfo info = (ClassInfo) entry.getValue(); if (! info.nodePrinted) { String r = entry.getKey().toString(); opt.w.println("\t// " + r); if (!opt.showQualified) { // Create readable string by stripping leading path int dotpos = r.lastIndexOf('.'); if (dotpos != -1) r = r.substring(dotpos + 1, r.length()); } opt.w.print("\t" + info.name + "[label=\"" + r + "\""); opt.w.print(", fontname=\"" + opt.nodeFontName + "\""); if (opt.nodeFillColor != null) opt.w.print(", style=filled, fillcolor=\"" + opt.nodeFillColor + "\""); opt.w.print(", fontcolor=\"" + opt.nodeFontColor + "\""); opt.w.print(", fontsize=" + opt.nodeFontSize); opt.w.print(", URL=\"" + classToUrl(entry.getKey().toString())); opt.w.println("]"); } } } | 47201 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47201/fdf2b8c04173a30619d8306169245f9edbacb00a/ClassInfo.java/buggy/src/org/umlgraph/doclet/ClassInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1172,
7800,
4818,
1435,
288,
202,
202,
2532,
3399,
797,
7655,
273,
667,
1973,
18,
4099,
694,
5621,
202,
202,
3198,
1400,
273,
3399,
797,
7655,
18,
9838,
5621,
202,
202,
17523,
261,
2165,
18,
5332,
2134,
10756,
288,
1082,
202,
863,
18,
1622,
1241,
273,
261,
1622,
13,
1400,
18,
4285,
5621,
1082,
202,
19455,
1123,
273,
261,
19455,
13,
1241,
18,
24805,
5621,
1082,
202,
430,
16051,
1123,
18,
2159,
5108,
329,
13,
288,
9506,
202,
780,
436,
273,
1241,
18,
588,
653,
7675,
10492,
5621,
9506,
202,
3838,
18,
91,
18,
8222,
31458,
88,
759,
315,
397,
436,
1769,
9506,
202,
430,
16051,
3838,
18,
4500,
8708,
13,
288,
6862,
202,
759,
1788,
7471,
533,
635,
2569,
1382,
7676,
589,
6862,
202,
474,
3928,
917,
273,
436,
18,
2722,
31985,
2668,
1093,
1769,
6862,
202,
430,
261,
9811,
917,
480,
300,
21,
13,
25083,
202,
86,
273,
436,
18,
28023,
12,
9811,
917,
397,
404,
16,
436,
18,
2469,
10663,
9506,
202,
97,
9506,
202,
3838,
18,
91,
18,
1188,
31458,
88,
6,
397,
1123,
18,
529,
397,
5158,
1925,
13186,
397,
436,
397,
11143,
1769,
9506,
202,
3838,
18,
91,
18,
1188,
2932,
16,
3512,
529,
13186,
397,
2153,
18,
2159,
5711,
461,
397,
11143,
1769,
9506,
202,
430,
261,
3838,
18,
2159,
8026,
2957,
480,
446,
13,
6862,
202,
3838,
18,
91,
18,
1188,
2932,
16,
2154,
33,
13968,
16,
3636,
3266,
13186,
397,
2153,
18,
2159,
8026,
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,
1172,
7800,
4818,
1435,
288,
202,
202,
2532,
3399,
797,
7655,
273,
667,
1973,
18,
4099,
694,
5621,
202,
202,
3198,
1400,
273,
3399,
797,
7655,
18,
9838,
5621,
202,
202,
17523,
261,
2165,
18,
5332,
2134,
10756,
288,
1082,
202,
863,
18,
1622,
1241,
273,
261,
1622,
13,
1400,
18,
4285,
5621,
1082,
202,
19455,
1123,
273,
261,
19455,
13,
1241,
18,
24805,
5621,
1082,
202,
430,
16051,
1123,
18,
2159,
5108,
329,
13,
288,
9506,
202,
780,
436,
273,
1241,
18,
588,
653,
7675,
10492,
5621,
9506,
202,
3838,
18,
91,
18,
8222,
31458,
88,
759,
315,
397,
436,
1769,
9506,
202,
430,
16051,
3838,
18,
4500,
8708,
13,
288,
6862,
202,
759,
2
] |
private boolean isRightFile(final VirtualFile file) { | protected boolean isRightFile(final VirtualFile file) { | private boolean isRightFile(final VirtualFile file) { return file.equals(myRootElement.getRoot().getFile().getVirtualFile()); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/d025c708f49439bff5bea74c8d3ba41610e4cc19/DomModelTreeView.java/clean/dom/openapi/src/com/intellij/util/xml/tree/DomModelTreeView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
353,
4726,
812,
12,
6385,
7269,
812,
585,
13,
288,
565,
327,
585,
18,
14963,
12,
4811,
2375,
1046,
18,
588,
2375,
7675,
29925,
7675,
588,
6466,
812,
10663,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1250,
353,
4726,
812,
12,
6385,
7269,
812,
585,
13,
288,
565,
327,
585,
18,
14963,
12,
4811,
2375,
1046,
18,
588,
2375,
7675,
29925,
7675,
588,
6466,
812,
10663,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID()); if (log.isTraceEnabled()) { log.trace(ref.getMessageID() + " removed (or reference count decremented) on disk"); } | if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + messageId + " on disk"); } pm.removeMessage(messageId); if (log.isTraceEnabled()) { log.trace(messageId + " removed (or reference count decremented) on disk"); } | public void remove(MessageReference ref) throws Throwable { super.remove(ref); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID()); if (log.isTraceEnabled()) { log.trace(ref.getMessageID() + " removed (or reference count decremented) on disk"); } } } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/a5dcdbe81fad0d621475c0e0b8dc71d96874bb13/PersistentMessageStore.java/clean/src/main/org/jboss/messaging/core/message/PersistentMessageStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1206,
12,
1079,
2404,
1278,
13,
1216,
4206,
282,
288,
1377,
2240,
18,
4479,
12,
1734,
1769,
1377,
309,
261,
1734,
18,
291,
1971,
2214,
10756,
1377,
288,
540,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
288,
613,
18,
5129,
2932,
2764,
13767,
261,
280,
15267,
310,
2114,
1056,
13,
315,
397,
1278,
18,
24906,
734,
1435,
397,
315,
603,
4234,
8863,
289,
540,
7430,
18,
4479,
1079,
12443,
780,
13,
1734,
18,
24906,
734,
10663,
540,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
288,
613,
18,
5129,
12,
1734,
18,
24906,
734,
1435,
397,
315,
3723,
261,
280,
2114,
1056,
15267,
329,
13,
603,
4234,
8863,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
1071,
918,
1206,
12,
1079,
2404,
1278,
13,
1216,
4206,
282,
288,
1377,
2240,
18,
4479,
12,
1734,
1769,
1377,
309,
261,
1734,
18,
291,
1971,
2214,
10756,
1377,
288,
540,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
288,
613,
18,
5129,
2932,
2764,
13767,
261,
280,
15267,
310,
2114,
1056,
13,
315,
397,
1278,
18,
24906,
734,
1435,
397,
315,
603,
4234,
8863,
289,
540,
7430,
18,
4479,
1079,
12443,
780,
13,
1734,
18,
24906,
734,
10663,
540,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
288,
613,
18,
5129,
12,
1734,
18,
24906,
734,
1435,
397,
315,
3723,
261,
280,
2114,
1056,
15267,
329,
13,
603,
4234,
8863,
289,
1377,
289,
282,
289,
2,
-100,
-100
] |
if (p.peekNextToken("subdivs")) | boolean hasTesselationArguments = false; if (p.peekNextToken("subdivs")) { | private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); String[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new String[n]; for (int i = 0; i < n; i++) shaders[i] = p.getNextToken(); multiShader = true; } else { p.checkNextToken("shader"); shaders = new String[] { p.getNextToken() }; } Matrix4 transform = null; if (p.peekNextToken("transform")) transform = parseMatrix(); p.checkNextToken("type"); if (p.peekNextToken("mesh")) { UI.printWarning("[API] Deprecated object type: mesh"); p.checkNextToken("name"); String name = p.getNextToken(); UI.printInfo("[API] Reading mesh: %s ...", name); int numVertices = p.getNextInt(); int numTriangles = p.getNextInt(); float[] points = new float[numVertices * 3]; float[] normals = new float[numVertices * 3]; float[] uvs = new float[numVertices * 2]; for (int i = 0; i < numVertices; i++) { p.checkNextToken("v"); points[3 * i + 0] = p.getNextFloat(); points[3 * i + 1] = p.getNextFloat(); points[3 * i + 2] = p.getNextFloat(); normals[3 * i + 0] = p.getNextFloat(); normals[3 * i + 1] = p.getNextFloat(); normals[3 * i + 2] = p.getNextFloat(); uvs[2 * i + 0] = p.getNextFloat(); uvs[2 * i + 1] = p.getNextFloat(); } int[] triangles = new int[numTriangles * 3]; for (int i = 0; i < numTriangles; i++) { p.checkNextToken("t"); triangles[i * 3 + 0] = p.getNextInt(); triangles[i * 3 + 1] = p.getNextInt(); triangles[i * 3 + 2] = p.getNextInt(); } // create geometry api.parameter("triangles", triangles); api.parameter("points", "point", "vertex", points); api.parameter("normals", "vector", "vertex", normals); api.parameter("uvs", "texcoord", "vertex", uvs); api.geometry(name, new Mesh()); // create instance api.parameter("shaders", shaders); if (transform != null) api.parameter("transform", transform); api.instance(name + ".instance", name); } else if (p.peekNextToken("flat-mesh")) { UI.printWarning("[API] Deprecated object type: flat-mesh"); p.checkNextToken("name"); String name = p.getNextToken(); UI.printInfo("[API] Reading flat mesh: %s ...", name); int numVertices = p.getNextInt(); int numTriangles = p.getNextInt(); float[] points = new float[numVertices * 3]; float[] uvs = new float[numVertices * 2]; for (int i = 0; i < numVertices; i++) { p.checkNextToken("v"); points[3 * i + 0] = p.getNextFloat(); points[3 * i + 1] = p.getNextFloat(); points[3 * i + 2] = p.getNextFloat(); p.getNextFloat(); p.getNextFloat(); p.getNextFloat(); uvs[2 * i + 0] = p.getNextFloat(); uvs[2 * i + 1] = p.getNextFloat(); } int[] triangles = new int[numTriangles * 3]; for (int i = 0; i < numTriangles; i++) { p.checkNextToken("t"); triangles[i * 3 + 0] = p.getNextInt(); triangles[i * 3 + 1] = p.getNextInt(); triangles[i * 3 + 2] = p.getNextInt(); } // create geometry api.parameter("triangles", triangles); api.parameter("points", "point", "vertex", points); api.parameter("uvs", "texcoord", "vertex", uvs); api.geometry(name, new Mesh()); // create instance api.parameter("shaders", shaders); if (transform != null) api.parameter("transform", transform); api.instance(name + ".instance", name); } else if (p.peekNextToken("sphere")) { UI.printInfo("[API] Reading sphere ..."); String name = api.getUniqueName("sphere"); api.geometry(name, new Sphere()); if (transform != null) api.parameter("transform", transform); else if (p.peekNextToken("c")) { float x = p.getNextFloat(); float y = p.getNextFloat(); float z = p.getNextFloat(); p.checkNextToken("r"); float radius = p.getNextFloat(); api.parameter("transform", Matrix4.translation(x, y, z).multiply(Matrix4.scale(radius))); } else api.parameter("transform", parseMatrix()); api.parameter("shaders", shaders); api.instance(name + ".instance", name); } else if (p.peekNextToken("banchoff")) { UI.printInfo("[API] Reading banchoff ..."); String name = api.getUniqueName("banchoff"); api.geometry(name, new BanchoffSurface()); api.parameter("transform", transform); api.parameter("shaders", shaders); api.instance(name + ".instance", name); } else if (p.peekNextToken("torus")) { UI.printInfo("[API] Reading torus ..."); p.checkNextToken("r"); api.parameter("radiusInner", p.getNextFloat()); api.parameter("radiusOuter", p.getNextFloat()); String name = api.getUniqueName("torus"); api.geometry(name, new Torus()); api.parameter("transform", transform); api.parameter("shaders", shaders); api.instance(name + ".instance", name); } else if (p.peekNextToken("plane")) { UI.printInfo("[API] Reading plane ..."); p.checkNextToken("p"); api.parameter("center", parsePoint()); if (p.peekNextToken("n")) { api.parameter("normal", parseVector()); } else { p.checkNextToken("p"); api.parameter("point1", parsePoint()); p.checkNextToken("p"); api.parameter("point2", parsePoint()); } String name = api.getUniqueName("plane"); api.geometry(name, new Plane()); api.parameter("shaders", shaders); if (transform != null) api.parameter("transform", transform); api.instance(name + ".instance", name); } else if (p.peekNextToken("cornellbox")) { UI.printInfo("[API] Reading cornell box ..."); if (transform != null) UI.printWarning("[API] Instancing is not supported on cornell box -- ignoring transform"); p.checkNextToken("corner0"); api.parameter("corner0", parsePoint()); p.checkNextToken("corner1"); api.parameter("corner1", parsePoint()); p.checkNextToken("left"); api.parameter("leftColor", parseColor()); p.checkNextToken("right"); api.parameter("rightColor", parseColor()); p.checkNextToken("top"); api.parameter("topColor", parseColor()); p.checkNextToken("bottom"); api.parameter("bottomColor", parseColor()); p.checkNextToken("back"); api.parameter("backColor", parseColor()); p.checkNextToken("emit"); api.parameter("radiance", parseColor()); if (p.peekNextToken("samples")) api.parameter("samples", p.getNextInt()); CornellBox box = new CornellBox(); box.init(api.getUniqueName("cornellbox"), api); } else if (p.peekNextToken("generic-mesh")) { p.checkNextToken("name"); String name = p.getNextToken(); UI.printInfo("[API] Reading generic mesh: %s ... ", name); // parse vertices p.checkNextToken("points"); int np = p.getNextInt(); api.parameter("points", "point", "vertex", parseFloatArray(np * 3)); // parse triangle indices p.checkNextToken("triangles"); int nt = p.getNextInt(); api.parameter("triangles", parseIntArray(nt * 3)); // parse normals p.checkNextToken("normals"); if (p.peekNextToken("vertex")) api.parameter("normals", "vector", "vertex", parseFloatArray(np * 3)); else if (p.peekNextToken("facevarying")) api.parameter("normals", "vector", "facevarying", parseFloatArray(nt * 9)); else p.checkNextToken("none"); // parse texture coordinates p.checkNextToken("uvs"); if (p.peekNextToken("vertex")) api.parameter("uvs", "texcoord", "vertex", parseFloatArray(np * 2)); else if (p.peekNextToken("facevarying")) api.parameter("uvs", "texcoord", "facevarying", parseFloatArray(nt * 6)); else p.checkNextToken("none"); if (multiShader) { p.checkNextToken("face_shaders"); api.parameter("faceshaders", parseIntArray(nt)); } api.geometry(name, new Mesh()); api.parameter("shaders", shaders); if (transform != null) api.parameter("transform", transform); api.instance(name + ".instance", name); } else if (p.peekNextToken("hair")) { p.checkNextToken("name"); String name = p.getNextToken(); UI.printInfo("[API] Reading hair curves: %s ... ", name); p.checkNextToken("segments"); api.parameter("segments", p.getNextInt()); p.checkNextToken("width"); api.parameter("width", p.getNextFloat()); p.checkNextToken("points"); api.parameter("points", "point", "vertex", parseFloatArray(p.getNextInt())); api.geometry(name, new Hair()); api.parameter("shaders", shaders); if (transform != null) api.parameter("transform", transform); api.instance(name + ".instance", name); } else if (p.peekNextToken("janino-tesselatable")) { p.checkNextToken("name"); String name = p.getNextToken(); UI.printInfo("[API] Reading procedural primitive: %s ... ", name); String code = p.getNextCodeBlock(); try { Tesselatable tess = (Tesselatable) ClassBodyEvaluator.createFastClassBodyEvaluator(new Scanner(null, new StringReader(code)), Tesselatable.class, ClassLoader.getSystemClassLoader()); api.geometry(name, tess); } catch (CompileException e) { UI.printDetailed("[API] Compiling: %s", code); UI.printError("[API] %s", e.getMessage()); e.printStackTrace(); name = null; } catch (ParseException e) { UI.printDetailed("[API] Compiling: %s", code); UI.printError("[API] %s", e.getMessage()); e.printStackTrace(); name = null; } catch (ScanException e) { UI.printDetailed("[API] Compiling: %s", code); UI.printError("[API] %s", e.getMessage()); e.printStackTrace(); name = null; } catch (IOException e) { UI.printDetailed("[API] Compiling: %s", code); UI.printError("[API] %s", e.getMessage()); e.printStackTrace(); name = null; } if (name != null) { api.parameter("shaders", shaders); if (transform != null) api.parameter("transform", transform); api.instance(name + ".instance", name); } } else if (p.peekNextToken("teapot")) { String name; if (p.peekNextToken("name")) name = p.getNextToken(); else name = api.getUniqueName("teapot"); UI.printInfo("[API] Reading teapot: %s ... ", name); if (p.peekNextToken("subdivs")) api.parameter("subdivs", p.getNextInt()); if (p.peekNextToken("smooth")) api.parameter("smooth", p.getNextBoolean()); api.geometry(name, new Teapot()); api.parameter("shaders", shaders); if (transform != null) api.parameter("transform", transform); api.instance(name + ".instance", name); } else if (p.peekNextToken("gumbo")) { String name; if (p.peekNextToken("name")) name = p.getNextToken(); else name = api.getUniqueName("gumbo"); UI.printInfo("[API] Reading gumbo: %s ... ", name); if (p.peekNextToken("subdivs")) api.parameter("subdivs", p.getNextInt()); if (p.peekNextToken("smooth")) api.parameter("smooth", p.getNextBoolean()); api.geometry(name, new Gumbo()); api.parameter("shaders", shaders); if (transform != null) api.parameter("transform", transform); api.instance(name + ".instance", name); } else if (p.peekNextToken("julia")) { String name; if (p.peekNextToken("name")) name = p.getNextToken(); else name = api.getUniqueName("julia"); UI.printInfo("[API] Reading julia fractal: %s ... ", name); if (p.peekNextToken("q")) { api.parameter("cw", p.getNextFloat()); api.parameter("cx", p.getNextFloat()); api.parameter("cy", p.getNextFloat()); api.parameter("cz", p.getNextFloat()); } if (p.peekNextToken("iterations")) api.parameter("iterations", p.getNextInt()); if (p.peekNextToken("epsilon")) api.parameter("epsilon", p.getNextFloat()); api.geometry(name, new JuliaFractal()); api.parameter("shaders", shaders); if (transform != null) api.parameter("transform", transform); api.instance(name + ".instance", name); } else UI.printWarning("[API] Unrecognized object type: %s", p.getNextToken()); p.checkNextToken("}"); } | 51147 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51147/f92221f46d90320076ad1b6bfd804b5ceab06b32/SCParser.java/clean/src/org/sunflow/core/parser/SCParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
921,
1768,
12,
29636,
2426,
2557,
1536,
13,
1216,
27990,
16,
1860,
288,
3639,
293,
18,
1893,
9399,
2932,
95,
8863,
3639,
514,
8526,
699,
361,
414,
273,
446,
31,
3639,
1250,
3309,
19396,
273,
629,
31,
3639,
309,
261,
84,
18,
347,
3839,
9399,
2932,
674,
361,
414,
6,
3719,
288,
5411,
509,
290,
273,
293,
18,
588,
2134,
1702,
5621,
5411,
699,
361,
414,
273,
394,
514,
63,
82,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
290,
31,
277,
27245,
7734,
699,
361,
414,
63,
77,
65,
273,
293,
18,
588,
9399,
5621,
5411,
3309,
19396,
273,
638,
31,
3639,
289,
469,
288,
5411,
293,
18,
1893,
9399,
2932,
674,
1143,
8863,
5411,
699,
361,
414,
273,
394,
514,
8526,
288,
293,
18,
588,
9399,
1435,
289,
31,
3639,
289,
3639,
7298,
24,
2510,
273,
446,
31,
3639,
309,
261,
84,
18,
347,
3839,
9399,
2932,
6547,
6,
3719,
5411,
2510,
273,
1109,
4635,
5621,
3639,
293,
18,
1893,
9399,
2932,
723,
8863,
3639,
309,
261,
84,
18,
347,
3839,
9399,
2932,
15557,
6,
3719,
288,
5411,
6484,
18,
1188,
6210,
2932,
63,
2557,
65,
9336,
733,
618,
30,
6986,
8863,
5411,
293,
18,
1893,
9399,
2932,
529,
8863,
5411,
514,
508,
273,
293,
18,
588,
9399,
5621,
5411,
6484,
18,
1188,
966,
2932,
63,
2557,
65,
31941,
6986,
30,
738,
87,
1372,
3113,
508,
1769,
5411,
509,
818,
13371,
273,
293,
18,
588,
2134,
1702,
5621,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
921,
1768,
12,
29636,
2426,
2557,
1536,
13,
1216,
27990,
16,
1860,
288,
3639,
293,
18,
1893,
9399,
2932,
95,
8863,
3639,
514,
8526,
699,
361,
414,
273,
446,
31,
3639,
1250,
3309,
19396,
273,
629,
31,
3639,
309,
261,
84,
18,
347,
3839,
9399,
2932,
674,
361,
414,
6,
3719,
288,
5411,
509,
290,
273,
293,
18,
588,
2134,
1702,
5621,
5411,
699,
361,
414,
273,
394,
514,
63,
82,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
290,
31,
277,
27245,
7734,
699,
361,
414,
63,
77,
65,
273,
293,
18,
588,
9399,
5621,
5411,
3309,
19396,
273,
638,
31,
3639,
289,
469,
288,
5411,
293,
18,
1893,
9399,
2932,
2
] |
AST tmp192_AST = null; tmp192_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp192_AST); | AST tmp197_AST = null; tmp197_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp197_AST); | public final void comparisonExpr() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST comparisonExpr_AST = null; rangeExpr(); astFactory.addASTChild(currentAST, returnAST); { switch ( LA(1)) { case EQ: case NEQ: case GT: case GTEQ: case LT: case LTEQ: { { { switch ( LA(1)) { case EQ: { AST tmp185_AST = null; tmp185_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp185_AST); match(EQ); break; } case NEQ: { AST tmp186_AST = null; tmp186_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp186_AST); match(NEQ); break; } case GT: { AST tmp187_AST = null; tmp187_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp187_AST); match(GT); break; } case GTEQ: { AST tmp188_AST = null; tmp188_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp188_AST); match(GTEQ); break; } case LT: { AST tmp189_AST = null; tmp189_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp189_AST); match(LT); break; } case LTEQ: { AST tmp190_AST = null; tmp190_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp190_AST); match(LTEQ); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } rangeExpr(); astFactory.addASTChild(currentAST, returnAST); } break; } case ANDEQ: case OREQ: { { { switch ( LA(1)) { case ANDEQ: { AST tmp191_AST = null; tmp191_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp191_AST); match(ANDEQ); break; } case OREQ: { AST tmp192_AST = null; tmp192_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp192_AST); match(OREQ); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } rangeExpr(); astFactory.addASTChild(currentAST, returnAST); } break; } case EOF: case RPAREN: case RCURLY: case COMMA: case LITERAL_empty: case LITERAL_for: case LITERAL_let: case LITERAL_where: case LITERAL_return: case LITERAL_order: case LITERAL_ascending: case LITERAL_descending: case LITERAL_else: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case RPPAREN: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } comparisonExpr_AST = (AST)currentAST.root; returnAST = comparisonExpr_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ca3671ce7c752480b17278b434be7f75e3ec7d57/XPathParser2.java/buggy/src/org/exist/parser/XPathParser2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
5826,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
5826,
4742,
67,
9053,
273,
446,
31,
9506,
202,
3676,
4742,
5621,
202,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
202,
202,
95,
202,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
22426,
30,
202,
202,
3593,
12901,
53,
30,
202,
202,
3593,
19688,
30,
202,
202,
3593,
611,
1448,
53,
30,
202,
202,
3593,
11807,
30,
202,
202,
3593,
511,
1448,
53,
30,
202,
202,
95,
1082,
202,
95,
1082,
202,
95,
1082,
202,
9610,
261,
2928,
12,
21,
3719,
288,
1082,
202,
3593,
22426,
30,
1082,
202,
95,
9506,
202,
9053,
1853,
30489,
67,
9053,
273,
446,
31,
9506,
202,
5645,
30489,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
9506,
202,
689,
1733,
18,
6540,
9053,
2375,
12,
2972,
9053,
16,
1853,
30489,
67,
9053,
1769,
9506,
202,
1916,
12,
27247,
1769,
9506,
202,
8820,
31,
1082,
202,
97,
1082,
202,
3593,
12901,
53,
30,
1082,
202,
95,
9506,
202,
9053,
1853,
2643,
26,
67,
9053,
273,
446,
31,
9506,
202,
5645,
2643,
26,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
9506,
202,
689,
1733,
18,
6540,
9053,
2375,
12,
2972,
9053,
16,
1853,
2643,
26,
67,
9053,
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,
482,
727,
918,
5826,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
5826,
4742,
67,
9053,
273,
446,
31,
9506,
202,
3676,
4742,
5621,
202,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
202,
202,
95,
202,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
22426,
30,
202,
202,
3593,
12901,
53,
30,
202,
202,
3593,
19688,
30,
202,
202,
3593,
611,
1448,
53,
30,
202,
202,
3593,
11807,
30,
202,
202,
3593,
511,
1448,
53,
30,
202,
202,
95,
1082,
202,
95,
1082,
202,
95,
2
] |
Subsets and Splits