rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
source, startPosition, withoutUnicodeBuffer,
|
this.source, this.startPosition, this.withoutUnicodeBuffer,
|
public final int getNextChar() { try { if (((currentCharacter = source[currentPosition++]) == '\\') && (source[currentPosition] == 'u')) { //-------------unicode traitement ------------ int c1, c2, c3, c4; int unicodeSize = 6; currentPosition++; while (source[currentPosition] == 'u') { currentPosition++; unicodeSize++; } if (((c1 = Character.getNumericValue(source[currentPosition++])) > 15 || c1 < 0) || ((c2 = Character.getNumericValue(source[currentPosition++])) > 15 || c2 < 0) || ((c3 = Character.getNumericValue(source[currentPosition++])) > 15 || c3 < 0) || ((c4 = Character.getNumericValue(source[currentPosition++])) > 15 || c4 < 0)) { return -1; } currentCharacter = (char) (((c1 * 16 + c2) * 16 + c3) * 16 + c4); unicodeAsBackSlash = currentCharacter == '\\'; //need the unicode buffer if (withoutUnicodePtr == 0) { //buffer all the entries that have been left aside.... withoutUnicodePtr = currentPosition - unicodeSize - startPosition; System.arraycopy( source, startPosition, withoutUnicodeBuffer, 1, withoutUnicodePtr); } //fill the buffer with the char withoutUnicodeBuffer[++withoutUnicodePtr] = currentCharacter; return currentCharacter; } //-------------end unicode traitement-------------- else { unicodeAsBackSlash = false; if (withoutUnicodePtr != 0) { withoutUnicodeBuffer[++withoutUnicodePtr] = currentCharacter; } return currentCharacter; } } catch (IndexOutOfBoundsException e) { return -1; }}
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/bd0b42da240c9e3160dab0f23f741fededbd0813/Scanner.java/clean/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
727,
509,
6927,
2156,
1435,
288,
202,
698,
288,
202,
202,
430,
261,
12443,
2972,
7069,
273,
1084,
63,
2972,
2555,
9904,
5717,
422,
5282,
13,
1082,
202,
10,
10,
261,
3168,
63,
2972,
2555,
65,
422,
296,
89,
26112,
288,
1082,
202,
759,
16982,
9124,
13517,
820,
300,
13849,
1082,
202,
474,
276,
21,
16,
276,
22,
16,
276,
23,
16,
276,
24,
31,
1082,
202,
474,
5252,
1225,
273,
1666,
31,
1082,
202,
2972,
2555,
9904,
31,
1082,
202,
17523,
261,
3168,
63,
2972,
2555,
65,
422,
296,
89,
6134,
288,
9506,
202,
2972,
2555,
9904,
31,
9506,
202,
9124,
1225,
9904,
31,
1082,
202,
97,
1082,
202,
430,
261,
12443,
71,
21,
273,
6577,
18,
588,
9902,
620,
12,
3168,
63,
2972,
2555,
9904,
22643,
405,
4711,
9506,
202,
20081,
276,
21,
411,
374,
13,
9506,
202,
20081,
14015,
71,
22,
273,
6577,
18,
588,
9902,
620,
12,
3168,
63,
2972,
2555,
9904,
22643,
405,
4711,
747,
276,
22,
411,
374,
13,
9506,
202,
20081,
14015,
71,
23,
273,
6577,
18,
588,
9902,
620,
12,
3168,
63,
2972,
2555,
9904,
22643,
405,
4711,
747,
276,
23,
411,
374,
13,
9506,
202,
20081,
14015,
71,
24,
273,
6577,
18,
588,
9902,
620,
12,
3168,
63,
2972,
2555,
9904,
22643,
405,
4711,
747,
276,
24,
411,
374,
3719,
288,
9506,
202,
2463,
300,
21,
31,
1082,
202,
97,
1082,
202,
2972,
7069,
273,
261,
3001,
13,
261,
12443,
71,
21,
380,
2872,
397,
276,
22,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
727,
509,
6927,
2156,
1435,
288,
202,
698,
288,
202,
202,
430,
261,
12443,
2972,
7069,
273,
1084,
63,
2972,
2555,
9904,
5717,
422,
5282,
13,
1082,
202,
10,
10,
261,
3168,
63,
2972,
2555,
65,
422,
296,
89,
26112,
288,
1082,
202,
759,
16982,
9124,
13517,
820,
300,
13849,
1082,
202,
474,
276,
21,
16,
276,
22,
16,
276,
23,
16,
276,
24,
31,
1082,
202,
474,
5252,
1225,
273,
1666,
31,
1082,
202,
2972,
2555,
9904,
31,
1082,
202,
17523,
261,
3168,
63,
2972,
2555,
65,
422,
296,
89,
6134,
288,
9506,
202,
2972,
2555,
9904,
31,
9506,
202,
9124,
1225,
9904,
31,
1082,
202,
97,
1082,
202,
430,
261,
12443,
71,
21,
273,
6577,
18,
2
] |
} catch (SQLException e1) {
|
} catch (SQLException e1) {
|
protected void doDiskUpdate(DiskUpdateRecord rec) { for(int i=0;i<rec.newNames.length;i++){ try { insertNameStmnt.setString(1,rec.newNames[i]); insertNameStmnt.setLong(2,rec.newNameIDs[i]); insertNameStmnt.execute(); } catch (SQLException e1) { e1.printStackTrace(); } } for(int i=0;i<rec.updateData.length;i++){ try { if (rec.insertSet.contains(rec.updateIDs[i])){ // new insertObjStmnt.setLong(1,rec.updateIDs[i]); insertObjStmnt.setBytes(2,rec.updateData[i]); insertObjStmnt.execute(); } else { // update updateObjStmnt.setBytes(1,rec.updateData[i]); updateObjStmnt.setLong(2,rec.updateIDs[i]); updateObjStmnt.execute(); } } catch (SQLException e1) { e1.printStackTrace(); } } for(Long delid : rec.deleteIDs){ try { deleteObjStmnt.setLong(1,delid); deleteObjStmnt.execute(); } catch (SQLException e1) { e1.printStackTrace(); } } try { updateInfoStmnt.setLong(1,rec.nextID); updateInfoStmnt.setLong(2,appID); updateInfoStmnt.execute(); } catch (SQLException e1) { e1.printStackTrace(); } try { updateConn.commit(); } catch (SQLException e1) { e1.printStackTrace(); } }
|
48631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48631/987e5fd762c50fabd2d33a1688473f28f21457f4/PersistantInMemoryDataSpace.java/buggy/src/com/sun/gi/objectstore/tso/dataspace/PersistantInMemoryDataSpace.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
741,
6247,
1891,
12,
6247,
1891,
2115,
1950,
13,
288,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
3927,
18,
2704,
1557,
18,
2469,
31,
77,
27245,
95,
1082,
202,
698,
288,
9506,
202,
6387,
461,
510,
21818,
18,
542,
780,
12,
21,
16,
3927,
18,
2704,
1557,
63,
77,
19226,
9506,
202,
6387,
461,
510,
21818,
18,
542,
3708,
12,
22,
16,
3927,
18,
2704,
461,
5103,
63,
77,
19226,
9506,
202,
6387,
461,
510,
21818,
18,
8837,
5621,
1082,
202,
97,
1044,
261,
23116,
425,
21,
13,
288,
6862,
9506,
202,
73,
21,
18,
1188,
6332,
5621,
1082,
202,
97,
6862,
202,
97,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
3927,
18,
2725,
751,
18,
2469,
31,
77,
27245,
95,
1082,
202,
698,
288,
9506,
202,
430,
261,
3927,
18,
6387,
694,
18,
12298,
12,
3927,
18,
2725,
5103,
63,
77,
22643,
95,
368,
394,
6862,
202,
6387,
2675,
510,
21818,
18,
542,
3708,
12,
21,
16,
3927,
18,
2725,
5103,
63,
77,
19226,
6862,
202,
6387,
2675,
510,
21818,
18,
542,
2160,
12,
22,
16,
3927,
18,
2725,
751,
63,
77,
19226,
6862,
202,
6387,
2675,
510,
21818,
18,
8837,
5621,
9506,
202,
97,
469,
288,
368,
1089,
6862,
202,
2725,
2675,
510,
21818,
18,
542,
2160,
12,
21,
16,
3927,
18,
2725,
751,
63,
77,
19226,
6862,
202,
2725,
2675,
510,
21818,
18,
542,
3708,
12,
22,
16,
3927,
18,
2725,
5103,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
741,
6247,
1891,
12,
6247,
1891,
2115,
1950,
13,
288,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
3927,
18,
2704,
1557,
18,
2469,
31,
77,
27245,
95,
1082,
202,
698,
288,
9506,
202,
6387,
461,
510,
21818,
18,
542,
780,
12,
21,
16,
3927,
18,
2704,
1557,
63,
77,
19226,
9506,
202,
6387,
461,
510,
21818,
18,
542,
3708,
12,
22,
16,
3927,
18,
2704,
461,
5103,
63,
77,
19226,
9506,
202,
6387,
461,
510,
21818,
18,
8837,
5621,
1082,
202,
97,
1044,
261,
23116,
425,
21,
13,
288,
6862,
9506,
202,
73,
21,
18,
1188,
6332,
5621,
1082,
202,
97,
6862,
202,
97,
202,
202,
1884,
12,
474,
277,
33,
2
] |
IASTVariable x = (IASTVariable) i.next(); Iterator references = callback.getReferences().iterator(); assertEquals( callback.getReferences().size(), 2 ); assertEquals( ((IASTReference)references.next()).getReferencedElement(), pa ); assertEquals( ((IASTReference)references.next()).getReferencedElement(), f1 );
|
IASTVariable x = (IASTVariable) i.next(); assertAllReferences( 2, createTaskList( new Task( f1 ), new Task( pa ) ) );
|
public void testPostfixSubscript() throws Exception { Iterator i = parse ("int pa[10]; \n int f(int ia){} \n int f(void); \n int x = f(pa[1]);").getDeclarations(); IASTVariable pa = (IASTVariable) i.next(); IASTFunction f1 = (IASTFunction) i.next(); IASTFunction f2 = (IASTFunction) i.next(); IASTVariable x = (IASTVariable) i.next(); Iterator references = callback.getReferences().iterator(); assertEquals( callback.getReferences().size(), 2 ); assertEquals( ((IASTReference)references.next()).getReferencedElement(), pa ); assertEquals( ((IASTReference)references.next()).getReferencedElement(), f1 ); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/02c194aaf46b86d6f7a904d6f531e535d47002ba/CompleteParseASTExpressionTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompleteParseASTExpressionTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
24505,
1676,
4263,
1435,
1216,
1185,
202,
95,
202,
202,
3198,
277,
273,
1109,
7566,
474,
6790,
63,
2163,
15533,
521,
82,
509,
284,
12,
474,
20389,
13,
2916,
521,
82,
509,
284,
12,
6459,
1769,
521,
82,
509,
619,
273,
284,
12,
8774,
63,
21,
65,
12171,
2934,
588,
21408,
5621,
202,
202,
45,
9053,
3092,
6790,
225,
273,
261,
45,
9053,
3092,
13,
277,
18,
4285,
5621,
202,
202,
45,
9053,
2083,
284,
21,
273,
261,
45,
9053,
2083,
13,
277,
18,
4285,
5621,
202,
202,
45,
9053,
2083,
284,
22,
273,
261,
45,
9053,
2083,
13,
277,
18,
4285,
5621,
202,
202,
45,
9053,
3092,
619,
225,
273,
261,
45,
9053,
3092,
13,
277,
18,
4285,
5621,
202,
202,
3198,
5351,
273,
1348,
18,
588,
8221,
7675,
9838,
5621,
202,
202,
11231,
8867,
12,
1348,
18,
588,
8221,
7675,
1467,
9334,
576,
11272,
202,
202,
11231,
8867,
12,
14015,
45,
9053,
2404,
13,
14353,
18,
4285,
1435,
2934,
588,
22344,
1046,
9334,
6790,
11272,
202,
202,
11231,
8867,
12,
14015,
45,
9053,
2404,
13,
14353,
18,
4285,
1435,
2934,
588,
22344,
1046,
9334,
284,
21,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
1842,
24505,
1676,
4263,
1435,
1216,
1185,
202,
95,
202,
202,
3198,
277,
273,
1109,
7566,
474,
6790,
63,
2163,
15533,
521,
82,
509,
284,
12,
474,
20389,
13,
2916,
521,
82,
509,
284,
12,
6459,
1769,
521,
82,
509,
619,
273,
284,
12,
8774,
63,
21,
65,
12171,
2934,
588,
21408,
5621,
202,
202,
45,
9053,
3092,
6790,
225,
273,
261,
45,
9053,
3092,
13,
277,
18,
4285,
5621,
202,
202,
45,
9053,
2083,
284,
21,
273,
261,
45,
9053,
2083,
13,
277,
18,
4285,
5621,
202,
202,
45,
9053,
2083,
284,
22,
273,
261,
45,
9053,
2083,
13,
277,
18,
4285,
5621,
202,
202,
45,
9053,
3092,
619,
225,
273,
261,
45,
9053,
2
] |
g.setColor(bg.darker()); if (mnemIndex != -1) BasicGraphicsUtils.drawStringUnderlineCharAt(g, title, mnemIndex, textRect.x + 1, textRect.y + 1); else g.drawString(title, textRect.x + 1, textRect.y + 1);
|
g.setColor(bg.darker()); if (mnemIndex != -1) BasicGraphicsUtils.drawStringUnderlineCharAt(g, title, mnemIndex, textRect.x + 1, textRect.y + 1); else g.drawString(title, textRect.x + 1, textRect.y + 1);
|
protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) { View textView = getTextViewForTab(tabIndex); if (textView != null) { textView.paint(g, textRect); return; } Color fg = tabPane.getForegroundAt(tabIndex); if (fg == null) fg = tabPane.getForeground(); Color bg = tabPane.getBackgroundAt(tabIndex); if (bg == null) bg = tabPane.getBackground(); Color saved_color = g.getColor(); Font f = g.getFont(); g.setFont(font); if (tabPane.isEnabledAt(tabIndex)) { g.setColor(fg); int mnemIndex = tabPane.getDisplayedMnemonicIndexAt(tabIndex); if (mnemIndex != -1) BasicGraphicsUtils.drawStringUnderlineCharAt(g, title, mnemIndex, textRect.x, textRect.y + metrics.getAscent()); else g.drawString(title, textRect.x, textRect.y + metrics.getAscent()); } else { g.setColor(bg.brighter()); int mnemIndex = tabPane.getDisplayedMnemonicIndexAt(tabIndex); if (mnemIndex != -1) BasicGraphicsUtils.drawStringUnderlineCharAt(g, title, mnemIndex, textRect.x, textRect.y); else g.drawString(title, textRect.x, textRect.y); g.setColor(bg.darker()); if (mnemIndex != -1) BasicGraphicsUtils.drawStringUnderlineCharAt(g, title, mnemIndex, textRect.x + 1, textRect.y + 1); else g.drawString(title, textRect.x + 1, textRect.y + 1); } g.setColor(saved_color); g.setFont(f); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTabbedPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
12574,
1528,
12,
17558,
314,
16,
509,
3246,
12420,
16,
10063,
3512,
16,
21821,
10063,
5653,
4309,
16,
509,
3246,
1016,
16,
514,
2077,
16,
21821,
13264,
977,
6120,
16,
1250,
20956,
13,
225,
288,
565,
4441,
977,
1767,
273,
6701,
1767,
1290,
5661,
12,
7032,
1016,
1769,
565,
309,
261,
955,
1767,
480,
446,
13,
1377,
288,
202,
955,
1767,
18,
84,
1598,
12,
75,
16,
977,
6120,
1769,
202,
2463,
31,
1377,
289,
565,
5563,
10186,
273,
3246,
8485,
18,
588,
23206,
861,
12,
7032,
1016,
1769,
565,
309,
261,
2137,
422,
446,
13,
1377,
10186,
273,
3246,
8485,
18,
588,
23206,
5621,
565,
5563,
7611,
273,
3246,
8485,
18,
588,
8199,
861,
12,
7032,
1016,
1769,
565,
309,
261,
12370,
422,
446,
13,
1377,
7611,
273,
3246,
8485,
18,
588,
8199,
5621,
565,
5563,
5198,
67,
3266,
273,
314,
18,
588,
2957,
5621,
565,
10063,
284,
273,
314,
18,
588,
5711,
5621,
565,
314,
18,
542,
5711,
12,
5776,
1769,
565,
309,
261,
7032,
8485,
18,
291,
1526,
861,
12,
7032,
1016,
3719,
1377,
288,
202,
75,
18,
542,
2957,
12,
2137,
1769,
202,
474,
12883,
351,
1016,
273,
3246,
8485,
18,
588,
4236,
329,
29668,
20918,
1016,
861,
12,
7032,
1016,
1769,
202,
430,
261,
13607,
351,
1016,
480,
300,
21,
13,
202,
225,
7651,
17558,
1989,
18,
9446,
780,
14655,
1369,
2156,
861,
12,
75,
16,
2077,
16,
12883,
351,
1016,
16,
202,
4766,
9079,
977,
6120,
18,
92,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
12574,
1528,
12,
17558,
314,
16,
509,
3246,
12420,
16,
10063,
3512,
16,
21821,
10063,
5653,
4309,
16,
509,
3246,
1016,
16,
514,
2077,
16,
21821,
13264,
977,
6120,
16,
1250,
20956,
13,
225,
288,
565,
4441,
977,
1767,
273,
6701,
1767,
1290,
5661,
12,
7032,
1016,
1769,
565,
309,
261,
955,
1767,
480,
446,
13,
1377,
288,
202,
955,
1767,
18,
84,
1598,
12,
75,
16,
977,
6120,
1769,
202,
2463,
31,
1377,
289,
565,
5563,
10186,
273,
3246,
8485,
18,
588,
23206,
861,
12,
7032,
1016,
1769,
565,
309,
261,
2137,
422,
446,
13,
1377,
10186,
273,
3246,
8485,
18,
588,
23206,
5621,
565,
5563,
7611,
273,
3246,
8485,
18,
588,
8199,
861,
12,
2
] |
copyPath = PathUtil.append(myRepositoryRoot, copyPath);
|
copyPath = PathUtil.encode(copyPath); copyPath = myRepository.getFullPath(copyPath);
|
public void addFile(String path, String copyPath, long copyRevision) throws SVNException { path = PathUtil.encode(path); // checkout parent collection. DAVResource parentResource = (DAVResource) myDirsStack.peek(); if (parentResource.getWorkingURL() == null) { String filePath = PathUtil.append(parentResource.getURL(), PathUtil.tail(path)); DAVResponse responce = DAVUtil.getResourceProperties(myConnection, filePath, null, DAVElement.STARTING_PROPERTIES, true); if (responce != null) { throw new SVNException("File '" + filePath + "' already exists"); } } checkoutResource(parentResource); String wPath = parentResource.getWorkingURL(); // create child resource. DAVResource newFile = new DAVResource(myCommitMediator, myConnection, path, -1); newFile.setWorkingURL(PathUtil.append(wPath, PathUtil.tail(path))); // put to have working URL to make PUT or PROPPATCH later (in closeFile()) myCurrentFile = newFile; myPathsMap.put(myCurrentFile.getURL(), myCurrentFile.getPath()); if (copyPath != null) { copyPath = PathUtil.append(myRepositoryRoot, copyPath); // not implemented yet. DAVBaselineInfo info = DAVUtil.getBaselineInfo(myConnection, copyPath, copyRevision, false, false, null); copyPath = PathUtil.append(info.baselineBase, info.baselinePath); // do "COPY" copyPath to parents working url ? wPath = myLocation.getProtocol() + "://" + myLocation.getHost() + ":" + myLocation.getPort() + newFile.getWorkingURL(); DAVStatus status = myConnection.doCopy(copyPath, wPath); if (status.getResponseCode() != 201 && status.getResponseCode() != 204) { throw new SVNException("COPY failed: " + status); } } }
|
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/e6f73006295e39445d36ffed9f41c7b3c1c2614d/DAVCommitEditor.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/io/dav/DAVCommitEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
18671,
12,
780,
589,
16,
514,
1610,
743,
16,
1525,
1610,
7939,
13,
1216,
29537,
50,
503,
288,
3639,
589,
273,
2666,
1304,
18,
3015,
12,
803,
1769,
3639,
368,
13926,
982,
1849,
18,
3639,
463,
5856,
1420,
982,
1420,
273,
261,
17735,
1420,
13,
3399,
9872,
2624,
18,
347,
3839,
5621,
3639,
309,
261,
2938,
1420,
18,
588,
14836,
1785,
1435,
422,
446,
13,
288,
540,
202,
780,
4612,
273,
2666,
1304,
18,
6923,
12,
2938,
1420,
18,
588,
1785,
9334,
2666,
1304,
18,
13101,
12,
803,
10019,
377,
202,
202,
17735,
1064,
7899,
311,
273,
463,
5856,
1304,
18,
588,
1420,
2297,
12,
4811,
1952,
16,
4612,
16,
446,
16,
463,
5856,
1046,
18,
7570,
1360,
67,
17421,
16,
638,
1769,
377,
202,
202,
430,
261,
455,
500,
311,
480,
446,
13,
288,
377,
1082,
202,
12849,
394,
29537,
50,
503,
2932,
812,
2119,
225,
397,
4612,
397,
2491,
1818,
1704,
8863,
1377,
202,
202,
97,
3639,
289,
3639,
13926,
1420,
12,
2938,
1420,
1769,
3639,
514,
341,
743,
273,
982,
1420,
18,
588,
14836,
1785,
5621,
3639,
368,
752,
1151,
1058,
18,
3639,
463,
5856,
1420,
20592,
273,
394,
463,
5856,
1420,
12,
4811,
5580,
13265,
10620,
16,
3399,
1952,
16,
589,
16,
300,
21,
1769,
3639,
20592,
18,
542,
14836,
1785,
12,
743,
1304,
18,
6923,
12,
91,
743,
16,
2666,
1304,
18,
13101,
12,
803,
3719,
1769,
3639,
368,
1378,
358,
1240,
5960,
1976,
358,
1221,
11443,
578,
4629,
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,
18671,
12,
780,
589,
16,
514,
1610,
743,
16,
1525,
1610,
7939,
13,
1216,
29537,
50,
503,
288,
3639,
589,
273,
2666,
1304,
18,
3015,
12,
803,
1769,
3639,
368,
13926,
982,
1849,
18,
3639,
463,
5856,
1420,
982,
1420,
273,
261,
17735,
1420,
13,
3399,
9872,
2624,
18,
347,
3839,
5621,
3639,
309,
261,
2938,
1420,
18,
588,
14836,
1785,
1435,
422,
446,
13,
288,
540,
202,
780,
4612,
273,
2666,
1304,
18,
6923,
12,
2938,
1420,
18,
588,
1785,
9334,
2666,
1304,
18,
13101,
12,
803,
10019,
377,
202,
202,
17735,
1064,
7899,
311,
273,
463,
5856,
1304,
18,
588,
1420,
2297,
12,
4811,
1952,
16,
4612,
16,
446,
16,
463,
5856,
1046,
18,
2
] |
ruby.getCRef().push(module);
|
ruby.getCRef().push(module);
|
public RubyObject setupModule(Ruby ruby, RubyModule module) { // Node node = n; String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); // TMP_PROTECT; ruby.getRubyFrame().tmpPush(); ruby.pushClass(); ruby.setRubyClass(module); ruby.setCBase(module); //CHAD ruby.getScope().push(); RubyVarmap.push(ruby); if (getTable() != null) { ruby.getScope().setLocalValues(new ArrayList(Collections.nCopies(getTable().size(), ruby.getNil()))); ruby.getScope().setLocalNames(getTable()); } else { ruby.getScope().setLocalValues(null); ruby.getScope().setLocalNames(null); } // +++ // if (ruby.getCRef() != null) { ruby.getCRef().push(module); // } else { // ruby.setCRef(new CRefNode(module, null)); // } // --- ruby.getRubyFrame().setCbase(ruby.getCRef()); // PUSH_TAG(PROT_NONE); RubyObject result = null; // if (( state = EXEC_TAG()) == 0 ) { // if (trace_func) { // call_trace_func("class", file, line, ruby_class, // ruby_frame->last_func, ruby_frame->last_class ); // } result = getNextNode() != null ? getNextNode().eval(ruby, ruby.getRubyClass()) : ruby.getNil(); // } // POP_TAG(); ruby.getCRef().pop(); RubyVarmap.pop(ruby); ruby.getScope().pop(); ruby.popClass(); ruby.getRubyFrame().tmpPop(); // if (trace_func){ // call_trace_func("end", file, line, 0, ruby_frame->last_func, ruby_frame->last_class ); // } // if (state != 0){ // JUMP_TAG(state); // } return result; }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/7798138390a306a202dcec9bde45928dae2e852e/ScopeNode.java/clean/org/jruby/nodes/ScopeNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
3875,
3120,
12,
54,
10340,
22155,
16,
19817,
3120,
1605,
13,
288,
202,
202,
759,
2029,
756,
273,
290,
31,
202,
202,
780,
585,
273,
22155,
18,
588,
31150,
5621,
202,
202,
474,
980,
273,
22155,
18,
588,
1830,
1670,
5621,
202,
202,
759,
399,
4566,
67,
3373,
1448,
1268,
31,
202,
202,
27768,
18,
588,
54,
10340,
3219,
7675,
5645,
7621,
5621,
202,
202,
27768,
18,
6206,
797,
5621,
202,
202,
27768,
18,
542,
54,
10340,
797,
12,
2978,
1769,
202,
202,
27768,
18,
542,
39,
2171,
12,
2978,
1769,
368,
1792,
1880,
202,
202,
27768,
18,
588,
3876,
7675,
6206,
5621,
202,
202,
54,
10340,
1537,
1458,
18,
6206,
12,
27768,
1769,
202,
202,
430,
261,
588,
1388,
1435,
480,
446,
13,
288,
5411,
22155,
18,
588,
3876,
7675,
542,
2042,
1972,
12,
2704,
2407,
12,
15150,
18,
82,
15670,
12,
588,
1388,
7675,
1467,
9334,
22155,
18,
588,
12616,
1435,
3719,
1769,
1082,
202,
27768,
18,
588,
3876,
7675,
542,
2042,
1557,
12,
588,
1388,
10663,
202,
202,
97,
469,
288,
1082,
202,
27768,
18,
588,
3876,
7675,
542,
2042,
1972,
12,
2011,
1769,
1082,
202,
27768,
18,
588,
3876,
7675,
542,
2042,
1557,
12,
2011,
1769,
202,
202,
97,
202,
202,
759,
965,
15,
202,
202,
759,
309,
261,
27768,
18,
588,
39,
1957,
1435,
480,
446,
13,
288,
202,
202,
27768,
18,
588,
39,
1957,
7675,
6206,
12,
2978,
1769,
202,
202,
759,
289,
469,
288,
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,
19817,
921,
3875,
3120,
12,
54,
10340,
22155,
16,
19817,
3120,
1605,
13,
288,
202,
202,
759,
2029,
756,
273,
290,
31,
202,
202,
780,
585,
273,
22155,
18,
588,
31150,
5621,
202,
202,
474,
980,
273,
22155,
18,
588,
1830,
1670,
5621,
202,
202,
759,
399,
4566,
67,
3373,
1448,
1268,
31,
202,
202,
27768,
18,
588,
54,
10340,
3219,
7675,
5645,
7621,
5621,
202,
202,
27768,
18,
6206,
797,
5621,
202,
202,
27768,
18,
542,
54,
10340,
797,
12,
2978,
1769,
202,
202,
27768,
18,
542,
39,
2171,
12,
2978,
1769,
368,
1792,
1880,
202,
202,
27768,
18,
588,
3876,
7675,
6206,
5621,
202,
202,
54,
10340,
1537,
1458,
18,
6206,
12,
27768,
1769,
2
] |
jjAddStates(52, 53);
|
jjAddStates(46, 47);
|
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 30; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x3ff000000000000L & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(5); } else if (curChar == 36) { if (kind > 13) kind = 13; jjCheckNAddTwoStates(13, 14); } else if (curChar == 45) jjCheckNAdd(5); else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; break; case 30: if ((0x3ff000000000000L & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } else if ((0x2400L & l) != 0L) { if (kind > 49) kind = 49; } else if ((0x100000200L & l) != 0L) jjCheckNAddStates(40, 42); if (curChar == 13) jjstateSet[jjnewStateCnt++] = 26; break; case 22: case 7: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 28: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 0: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0xfffffff7ffffffffL & l) != 0L && kind > 16) kind = 16; break; case 2: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 0; break; case 4: if (curChar == 45) jjCheckNAdd(5); break; case 5: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(5); break; case 10: if (curChar == 36 && kind > 13) kind = 13; break; case 12: if (curChar == 36) jjCheckNAddTwoStates(13, 14); break; case 14: if (curChar == 33 && kind > 14) kind = 14; break; case 15: if (curChar != 36) break; if (kind > 13) kind = 13; jjCheckNAddTwoStates(13, 14); break; case 18: if ((0x100000200L & l) != 0L) jjAddStates(43, 45); break; case 19: if ((0x2400L & l) != 0L && kind > 46) kind = 46; break; case 20: if (curChar == 10 && kind > 46) kind = 46; break; case 21: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 20; break; case 24: if ((0x100000200L & l) != 0L) jjCheckNAddStates(40, 42); break; case 25: if ((0x2400L & l) != 0L && kind > 49) kind = 49; break; case 26: if (curChar == 10 && kind > 49) kind = 49; break; case 27: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 26; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } else if (curChar == 92) jjCheckNAddStates(46, 49); if (curChar == 101) jjAddStates(50, 51); break; case 30: case 7: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 22: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } if (curChar == 108) jjstateSet[jjnewStateCnt++] = 28; else if (curChar == 110) jjstateSet[jjnewStateCnt++] = 17; break; case 28: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } if (curChar == 115) jjstateSet[jjnewStateCnt++] = 23; break; case 23: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } if (curChar == 101) { if (kind > 49) kind = 49; jjAddStates(40, 42); } break; case 1: if (kind > 16) kind = 16; break; case 6: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 8: if (curChar == 92) jjCheckNAddStates(46, 49); break; case 9: if (curChar == 92) jjCheckNAddTwoStates(9, 10); break; case 11: if (curChar == 92) jjCheckNAddTwoStates(11, 12); break; case 13: if (curChar == 92) jjAddStates(52, 53); break; case 16: if (curChar == 101) jjAddStates(50, 51); break; case 17: if (curChar != 100) break; if (kind > 46) kind = 46; jjAddStates(43, 45); break; case 29: if (curChar == 108) jjstateSet[jjnewStateCnt++] = 28; break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 16) kind = 16; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 30 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
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,
50,
507,
67,
24,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
5196,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
741,
540,
288,
5411,
1620,
12,
78,
78,
2019,
694,
63,
413,
77,
5717,
5411,
288,
9079,
648,
890,
30,
5375,
309,
14015,
20,
92,
23,
1403,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5375,
288,
5397,
309,
261,
9224,
405,
18106,
13,
13491,
3846,
273,
18106,
31,
5397,
10684,
1564,
50,
986,
12,
25,
1769,
5375,
289,
5375,
469,
309,
261,
1397,
2156,
422,
6580,
13,
5375,
288,
5397,
309,
261,
9224,
405,
5958,
13,
13491,
3846,
273,
5958,
31,
5397,
10684,
1564,
50,
986,
11710,
7629,
12,
3437,
16,
5045,
1769,
5375,
289,
5375,
469,
309,
261,
1397,
2156,
422,
12292,
13,
5397,
10684,
1564,
50,
986,
12,
25,
1769,
5375,
469,
309,
261,
1397,
2156,
422,
13191,
13,
5397,
10684,
2019,
694,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
24,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
5196,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
2
] |
return sourceInfo;
|
return fsource.sourceInfo();
|
SourceInfo sourceInfo() { return sourceInfo; }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/1e8e9be6240bd419cb4ce7800a26a09d70dd4e27/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4998,
966,
1084,
966,
1435,
288,
5411,
327,
2662,
552,
18,
3168,
966,
5621,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4998,
966,
1084,
966,
1435,
288,
5411,
327,
2662,
552,
18,
3168,
966,
5621,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (setter!=null && target!=null)
|
if (setter!=null && target!=null) {
|
public void set(Object root, Object singleArg) { Method setter = getSetter(); Object target = getLeafTarget(root); if (setter!=null && target!=null) try { setter.invoke(target, new Object[] {singleArg}); } catch (IllegalArgumentException e) { // TODO Auto-generated catch block } catch (IllegalAccessException e) { } catch (InvocationTargetException e) { } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/9d125503204eb791fd5d7ba10d10960ac0bbffba/PropertyHelper.java/buggy/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/beans/PropertyHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
12,
921,
1365,
16,
1033,
2202,
4117,
13,
288,
202,
202,
1305,
7794,
273,
336,
8465,
5621,
202,
202,
921,
1018,
273,
336,
9858,
2326,
12,
3085,
1769,
202,
202,
430,
261,
18062,
5,
33,
2011,
597,
1018,
5,
33,
2011,
13,
1082,
202,
698,
288,
9506,
202,
18062,
18,
14407,
12,
3299,
16,
394,
1033,
8526,
288,
7526,
4117,
22938,
1082,
202,
97,
1044,
261,
31237,
425,
13,
288,
9506,
202,
759,
2660,
8064,
17,
11168,
1044,
1203,
6862,
1082,
202,
97,
1044,
261,
12195,
9773,
425,
13,
288,
1082,
202,
97,
1044,
261,
9267,
14950,
425,
13,
288,
1082,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
12,
921,
1365,
16,
1033,
2202,
4117,
13,
288,
202,
202,
1305,
7794,
273,
336,
8465,
5621,
202,
202,
921,
1018,
273,
336,
9858,
2326,
12,
3085,
1769,
202,
202,
430,
261,
18062,
5,
33,
2011,
597,
1018,
5,
33,
2011,
13,
1082,
202,
698,
288,
9506,
202,
18062,
18,
14407,
12,
3299,
16,
394,
1033,
8526,
288,
7526,
4117,
22938,
1082,
202,
97,
1044,
261,
31237,
425,
13,
288,
9506,
202,
759,
2660,
8064,
17,
11168,
1044,
1203,
6862,
1082,
202,
97,
1044,
261,
12195,
9773,
425,
13,
288,
1082,
202,
97,
1044,
261,
9267,
14950,
425,
13,
288,
1082,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static String decode(String s) throws IllegalArgumentException, FormatException { // Check preconditions MandatoryArgumentChecker.check("s", s); // If the string is empty, return the original string int length = s.length(); if (length == 0) { return s; } // Avoid calls to charAt() method. char[] string = s.toCharArray(); // Loop through the string FastStringBuffer buffer = new FastStringBuffer(length * 2); int index = 0; while (index < length) { // Get the character char c = string[index]; int charAsInt = (int) c; // Encoded character must be ASCII if (charAsInt > 127) { throw new FormatException(s, "Character at position " + index + " has invalid value " + charAsInt + '.'); // Special case: Recognize plus sign as a space } else if (c == '+') { buffer.append(' '); // Catch encoded characters } else if (c == '%') { ByteArrayOutputStream baos = new ByteArrayOutputStream(); while (index < length && string[index] == '%') { if (index >= length - 2) { throw new FormatException(s, "Character at position " + index + " has invalid value " + charAsInt + '.'); } charAsInt = (int) string[++index]; int decodedValue = 0; decodedValue += digit(charAsInt, s, index); decodedValue *= 16; charAsInt = (int) string[++index]; decodedValue += digit(charAsInt, s, index); baos.write((int) decodedValue); index++; } try { buffer.append(baos.toString("UTF-8")); } catch (UnsupportedEncodingException uee) { Utils.logProgrammingError(uee); } // Back to the last position index--; // Catch invalid characters } else if (!VALID_ENCODED_CHAR[c]) { throw new FormatException(s, "Character at position " + index + " has invalid value " + charAsInt + '.'); // Append the character } else { buffer.append(c); } // Proceed to the next character index++; } return buffer.toString(); }
|
45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/8853e957f7d3502ea284d2d42414f26b23015c15/URLEncoding.java/clean/src/java-common/org/xins/common/text/URLEncoding.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
514,
2495,
12,
780,
272,
13,
282,
1216,
2754,
16,
4077,
503,
288,
1377,
368,
2073,
675,
6381,
1377,
490,
10018,
1379,
8847,
18,
1893,
2932,
87,
3113,
272,
1769,
1377,
368,
971,
326,
533,
353,
1008,
16,
327,
326,
2282,
533,
1377,
509,
769,
273,
272,
18,
2469,
5621,
1377,
309,
261,
2469,
422,
374,
13,
288,
540,
327,
272,
31,
1377,
289,
1377,
368,
17843,
4097,
358,
4459,
1435,
707,
18,
1377,
1149,
8526,
533,
273,
272,
18,
869,
15936,
5621,
1377,
368,
9720,
3059,
326,
533,
1377,
9545,
780,
1892,
1613,
273,
394,
9545,
780,
1892,
12,
2469,
380,
576,
1769,
1377,
509,
770,
273,
374,
31,
1377,
1323,
261,
1615,
411,
769,
13,
288,
540,
368,
968,
326,
3351,
540,
1149,
276,
273,
533,
63,
1615,
15533,
540,
509,
1149,
31720,
273,
261,
474,
13,
276,
31,
540,
368,
23306,
3351,
1297,
506,
11768,
540,
309,
261,
3001,
31720,
405,
12331,
13,
288,
5411,
604,
394,
4077,
503,
12,
87,
16,
315,
7069,
622,
1754,
315,
397,
770,
397,
315,
711,
2057,
460,
315,
397,
1149,
31720,
397,
2611,
1769,
540,
368,
13409,
648,
30,
7776,
4198,
554,
8737,
1573,
487,
279,
3476,
540,
289,
469,
309,
261,
71,
422,
15126,
6134,
288,
5411,
1613,
18,
6923,
2668,
28005,
540,
368,
21984,
3749,
3949,
540,
289,
469,
309,
261,
71,
422,
1995,
6134,
288,
5411,
11559,
17548,
273,
394,
11559,
5621,
5411,
1323,
261,
1615,
411,
769,
597,
533,
63,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
514,
2495,
12,
780,
272,
13,
282,
1216,
2754,
16,
4077,
503,
288,
1377,
368,
2073,
675,
6381,
1377,
490,
10018,
1379,
8847,
18,
1893,
2932,
87,
3113,
272,
1769,
1377,
368,
971,
326,
533,
353,
1008,
16,
327,
326,
2282,
533,
1377,
509,
769,
273,
272,
18,
2469,
5621,
1377,
309,
261,
2469,
422,
374,
13,
288,
540,
327,
272,
31,
1377,
289,
1377,
368,
17843,
4097,
358,
4459,
1435,
707,
18,
1377,
1149,
8526,
533,
273,
272,
18,
869,
15936,
5621,
1377,
368,
9720,
3059,
326,
533,
1377,
9545,
780,
1892,
1613,
273,
394,
9545,
780,
1892,
12,
2469,
380,
576,
1769,
1377,
509,
770,
273,
374,
31,
1377,
1323,
261,
1615,
411,
769,
2
] |
||
validatePage(); setErrorMessage(null); setMessage(null); setControl(topLevel); }
|
validatePage(); setErrorMessage(null); setMessage(null); setControl(topLevel); }
|
public void createControl(Composite parent) { initializeDialogUnits(parent); // top level group Composite topLevel = new Composite(parent, SWT.NONE); topLevel.setLayout(new GridLayout()); topLevel.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL)); topLevel.setFont(parent.getFont()); PlatformUI.getWorkbench().getHelpSystem().setHelp(topLevel, IIDEHelpContextIds.NEW_FILE_WIZARD_PAGE); // resource and container group resourceGroup = new ResourceAndContainerGroup( topLevel, this, getNewFileLabel(), IDEWorkbenchMessages.WizardNewFileCreationPage_file, false, SIZING_CONTAINER_GROUP_HEIGHT); resourceGroup.setAllowExistingResources(false); initialPopulateContainerNameField(); createAdvancedControls(topLevel); if (initialFileName != null) { resourceGroup.setResource(initialFileName); } validatePage(); // Show description on opening setErrorMessage(null); setMessage(null); setControl(topLevel); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/6acf364392177fabaa2905c86fa45a3dac0a3db3/WizardNewFileCreationPage.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewFileCreationPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
3367,
12,
9400,
982,
13,
288,
3639,
4046,
6353,
7537,
12,
2938,
1769,
3639,
368,
1760,
1801,
1041,
3639,
14728,
21289,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
21289,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
3639,
21289,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
21654,
10109,
67,
26439,
67,
29818,
7734,
571,
7145,
751,
18,
44,
20344,
67,
26439,
67,
29818,
10019,
3639,
21289,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
3639,
11810,
5370,
18,
588,
2421,
22144,
7675,
588,
6696,
3163,
7675,
542,
6696,
12,
3669,
2355,
16,
9506,
202,
45,
10385,
6696,
1042,
2673,
18,
12917,
67,
3776,
67,
59,
6867,
8085,
67,
11219,
1769,
3639,
368,
1058,
471,
1478,
1041,
3639,
1058,
1114,
273,
394,
2591,
1876,
2170,
1114,
12,
7734,
21289,
16,
7734,
333,
16,
7734,
12654,
812,
2224,
9334,
7734,
1599,
41,
2421,
22144,
5058,
18,
27130,
1908,
812,
9906,
1964,
67,
768,
16,
629,
16,
5705,
62,
1360,
67,
21395,
67,
8468,
67,
14595,
1769,
3639,
1058,
1114,
18,
542,
7009,
9895,
3805,
12,
5743,
1769,
3639,
2172,
19097,
2170,
461,
974,
5621,
3639,
752,
23618,
16795,
12,
3669,
2355,
1769,
3639,
309,
261,
6769,
4771,
480,
446,
13,
288,
1082,
202,
3146,
1114,
18,
542,
1420,
12,
6769,
4771,
1769,
202,
202,
97,
3639,
1954,
1964,
5621,
3639,
368,
9674,
2477,
603,
10890,
3639,
9967,
1079,
12,
2011,
1769,
3639,
15227,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
3367,
12,
9400,
982,
13,
288,
3639,
4046,
6353,
7537,
12,
2938,
1769,
3639,
368,
1760,
1801,
1041,
3639,
14728,
21289,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
21289,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
3639,
21289,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
21654,
10109,
67,
26439,
67,
29818,
7734,
571,
7145,
751,
18,
44,
20344,
67,
26439,
67,
29818,
10019,
3639,
21289,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
3639,
11810,
5370,
18,
588,
2421,
22144,
7675,
588,
6696,
3163,
7675,
542,
6696,
12,
3669,
2355,
16,
9506,
202,
45,
10385,
6696,
1042,
2673,
18,
12917,
67,
3776,
67,
2
] |
UndoableEdit edit = new CleanUpEdit(atomCoordsMap);
|
UndoableEdit edit = new CleanUpEdit(atomCoordsMap, jcpPanel);
|
public void actionPerformed(ActionEvent e) { HashMap atomCoordsMap = new HashMap(); logger.info("Going to performe a clean up..."); if (jcpPanel.getJChemPaintModel() != null) { if (diagramGenerator == null) diagramGenerator = new StructureDiagramGenerator(); JChemPaintModel jcpmodel = jcpPanel.getJChemPaintModel(); Renderer2DModel renderModel = jcpmodel.getRendererModel(); double bondLength = renderModel.getBondLength() / renderModel.getScaleFactor(); diagramGenerator.setBondLength(bondLength * 2.0); // FIXME this extra factor should not be necessary logger.debug("getting ChemModel"); org.openscience.cdk.interfaces.ChemModel model = jcpmodel.getChemModel(); logger.debug("got ChemModel"); org.openscience.cdk.interfaces.SetOfMolecules som = model.getSetOfMolecules(); if (som != null) { logger.debug("no mols in som: ", som.getMoleculeCount()); SetOfMolecules newsom = new SetOfMolecules(); Molecule[] mols = som.getMolecules(); for (int i = 0; i < mols.length; i++) { Molecule molecule = mols[i]; Molecule cleanedMol = relayoutMolecule(mols[i]); newsom.addMolecule(cleanedMol); org.openscience.cdk.interfaces.Atom[] atoms = molecule.getAtoms(); org.openscience.cdk.interfaces.Atom[] newAtoms = cleanedMol.getAtoms(); for (int j=0; j<atoms.length; j++) { Point2d oldCoord = atoms[j].getPoint2d(); Point2d newCoord = newAtoms[j].getPoint2d(); if (!oldCoord.equals(newCoord)) { Point2d[] coords = new Point2d[2]; coords[0] = newCoord; coords[1] = oldCoord; atomCoordsMap.put(newAtoms[j], coords); } } } model.setSetOfMolecules(newsom); UndoableEdit edit = new CleanUpEdit(atomCoordsMap); jcpPanel.getUndoSupport().postEdit(edit); } org.openscience.cdk.interfaces.SetOfReactions reactionSet = model.getSetOfReactions(); if (reactionSet != null) { SetOfReactions newSet = new SetOfReactions(); // FIXME, this does not preserve reactionset properties! org.openscience.cdk.interfaces.Reaction[] reactions = reactionSet.getReactions(); for (int j = 0; j < reactions.length; j++) { org.openscience.cdk.interfaces.Reaction reaction = reactions[j]; Reaction newReaction = new Reaction(); // FIXME, this does not preserve reaction properties! Molecule[] reactants = reaction.getReactants().getMolecules(); for (int i = 0; i < reactants.length; i++) { newReaction.addReactant(relayoutMolecule(reactants[i])); } Molecule[] products = reaction.getProducts().getMolecules(); for (int i = 0; i < products.length; i++) { newReaction.addProduct(relayoutMolecule(products[i])); } newSet.addReaction(newReaction); } model.setSetOfReactions(newSet); } jcpmodel.getRendererModel().setSelectedPart(new AtomContainer()); jcpmodel.fireChange(); jcpPanel.scaleAndCenterMolecule(jcpmodel.getChemModel()); jcpPanel.repaint(); } }
|
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/110851a6da4a4800313049c921f0d2e2295c6e2f/CleanupAction.java/buggy/src/org/openscience/cdk/applications/jchempaint/action/CleanupAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
202,
95,
202,
3639,
4317,
3179,
13089,
863,
273,
394,
4317,
5621,
3639,
1194,
18,
1376,
2932,
5741,
310,
358,
3073,
73,
279,
2721,
731,
7070,
1769,
202,
202,
430,
261,
78,
4057,
5537,
18,
588,
46,
20200,
12699,
1488,
1435,
480,
446,
13,
202,
202,
95,
1082,
202,
430,
261,
12264,
1940,
3908,
422,
446,
13,
19750,
3908,
273,
394,
13348,
14058,
1940,
3908,
5621,
1082,
202,
46,
20200,
12699,
1488,
525,
4057,
2284,
273,
525,
4057,
5537,
18,
588,
46,
20200,
12699,
1488,
5621,
1082,
202,
6747,
22,
40,
1488,
1743,
1488,
273,
525,
4057,
2284,
18,
588,
6747,
1488,
5621,
1082,
202,
9056,
8427,
1782,
273,
1743,
1488,
18,
588,
9807,
1782,
1435,
342,
1743,
1488,
18,
588,
5587,
6837,
5621,
1082,
202,
12264,
1940,
3908,
18,
542,
9807,
1782,
12,
26425,
1782,
380,
576,
18,
20,
1769,
1082,
202,
759,
9852,
333,
2870,
5578,
1410,
486,
506,
4573,
1082,
202,
4901,
18,
4148,
2932,
588,
1787,
26542,
1488,
8863,
1082,
202,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
20200,
1488,
938,
273,
525,
4057,
2284,
18,
588,
20200,
1488,
5621,
1082,
202,
4901,
18,
4148,
2932,
13212,
26542,
1488,
8863,
1082,
202,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
694,
951,
49,
29466,
4737,
273,
938,
18,
588,
694,
951,
49,
29466,
5621,
1082,
202,
430,
261,
87,
362,
480,
446,
13,
1082,
202,
95,
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,
202,
95,
202,
3639,
4317,
3179,
13089,
863,
273,
394,
4317,
5621,
3639,
1194,
18,
1376,
2932,
5741,
310,
358,
3073,
73,
279,
2721,
731,
7070,
1769,
202,
202,
430,
261,
78,
4057,
5537,
18,
588,
46,
20200,
12699,
1488,
1435,
480,
446,
13,
202,
202,
95,
1082,
202,
430,
261,
12264,
1940,
3908,
422,
446,
13,
19750,
3908,
273,
394,
13348,
14058,
1940,
3908,
5621,
1082,
202,
46,
20200,
12699,
1488,
525,
4057,
2284,
273,
525,
4057,
5537,
18,
588,
46,
20200,
12699,
1488,
5621,
1082,
202,
6747,
22,
40,
1488,
1743,
1488,
273,
525,
4057,
2284,
18,
588,
6747,
1488,
5621,
1082,
202,
9056,
8427,
1782,
273,
2
] |
this(tag, 0, value, null);
|
tagClass = tag & 0xC0; this.tag = tag & 0x1F; constructed = (tag & CONSTRUCTED) == CONSTRUCTED; this.length = length; this.value = value; if (encoded != null) this.encoded = (byte[]) encoded.clone();
|
public DERValue(int tag, Object value) { this(tag, 0, value, null); }
|
25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/b56b0f1768429005c2413ce50995d9a217f69c35/DERValue.java/buggy/libjava/gnu/java/security/der/DERValue.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
21801,
620,
12,
474,
1047,
16,
1033,
460,
13,
225,
288,
565,
1047,
797,
273,
1047,
473,
374,
14626,
20,
31,
333,
18,
2692,
273,
1047,
473,
374,
92,
21,
42,
31,
15688,
273,
261,
2692,
473,
3492,
13915,
2056,
13,
422,
3492,
13915,
2056,
31,
333,
18,
2469,
273,
769,
31,
333,
18,
1132,
273,
460,
31,
309,
261,
10787,
480,
446,
13,
333,
18,
10787,
273,
261,
7229,
63,
5717,
3749,
18,
14056,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
21801,
620,
12,
474,
1047,
16,
1033,
460,
13,
225,
288,
565,
1047,
797,
273,
1047,
473,
374,
14626,
20,
31,
333,
18,
2692,
273,
1047,
473,
374,
92,
21,
42,
31,
15688,
273,
261,
2692,
473,
3492,
13915,
2056,
13,
422,
3492,
13915,
2056,
31,
333,
18,
2469,
273,
769,
31,
333,
18,
1132,
273,
460,
31,
309,
261,
10787,
480,
446,
13,
333,
18,
10787,
273,
261,
7229,
63,
5717,
3749,
18,
14056,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
m_mapper = new Mapper(); return m_mapper;
|
m_mapper = mapper;
|
public Mapper createMapper() throws TaskException { if( m_mapper != null ) { throw new TaskException( "Cannot define more than one mapper" ); } m_mapper = new Mapper(); return m_mapper; }
|
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/dd4d75e8369456aff82ac26432a7396fcee47fd5/Native2Ascii.java/clean/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/text/Native2Ascii.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19273,
752,
4597,
1435,
3639,
1216,
3837,
503,
565,
288,
3639,
309,
12,
312,
67,
13919,
480,
446,
262,
3639,
288,
5411,
604,
394,
3837,
503,
12,
315,
4515,
4426,
1898,
2353,
1245,
5815,
6,
11272,
3639,
289,
3639,
312,
67,
13919,
273,
394,
19273,
5621,
3639,
327,
312,
67,
13919,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19273,
752,
4597,
1435,
3639,
1216,
3837,
503,
565,
288,
3639,
309,
12,
312,
67,
13919,
480,
446,
262,
3639,
288,
5411,
604,
394,
3837,
503,
12,
315,
4515,
4426,
1898,
2353,
1245,
5815,
6,
11272,
3639,
289,
3639,
312,
67,
13919,
273,
394,
19273,
5621,
3639,
327,
312,
67,
13919,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (visualiser != null) { VisualiserUpdateJob.getInstance().schedule();
|
if (visualiser != null && visualiser.getSite() != null) { if(visualiser.getSite().getPage().isPartVisible(visualiser)) { VisualiserUpdateJob.getInstance().schedule(); } else { visualiser.setNeedsUpdating(); }
|
public static void refresh() { if (visualiser != null) { VisualiserUpdateJob.getInstance().schedule(); } }
|
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/dfdbaecf471518874019ec2e3570003ee574863b/VisualiserPlugin.java/buggy/org.eclipse.contribution.visualiser/src/org/eclipse/contribution/visualiser/VisualiserPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
4460,
1435,
288,
202,
202,
430,
261,
26671,
15914,
480,
446,
13,
288,
1082,
1875,
1875,
26832,
15914,
1891,
2278,
18,
588,
1442,
7675,
10676,
5621,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
4460,
1435,
288,
202,
202,
430,
261,
26671,
15914,
480,
446,
13,
288,
1082,
1875,
1875,
26832,
15914,
1891,
2278,
18,
588,
1442,
7675,
10676,
5621,
202,
202,
97,
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
] |
category = argument;
|
categoryString = argument; else if (option.equals("-designation")) designationString = argument;
|
protected void handleOptionWithArgument(String option, String argument) throws IOException { if (option.equals("-priority")) { priority = parsePriority(argument); } else if (option.equals("-first")) firstAsString = argument; else if (option.equals("-last")) lastAsString = argument; else if (option.equals("-fixed")) fixedAsString = argument; else if (option.equals("-after")) afterAsString = argument; else if (option.equals("-before")) beforeAsString = argument; else if (option.equals("-present")) presentAsString = argument; else if (option.equals("-absent")) absentAsString = argument; else if (option.equals("-category")) category = argument; else if (option.equals("-class")) className = Pattern.compile(argument); else if (option.equals("-bugPattern")) bugPattern = Pattern.compile(argument); else if (option.equals("-annotation")) annotation = argument; else if (option.equals("-include")) { try { includeFilter = new edu.umd.cs.findbugs.filter.Filter(argument); } catch (FilterException e) { throw new IllegalArgumentException("Error processing include file: " + argument, e); } } else if (option.equals("-exclude")) { try { excludeFilter = new edu.umd.cs.findbugs.filter.Filter(argument); } catch (FilterException e) { throw new IllegalArgumentException("Error processing include file: " + argument, e); } } else throw new IllegalArgumentException("can't handle command line argument of " + option); }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/111818f59face771ce3d0fe8bfdc41db583d63ad/Filter.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/workflow/Filter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
1640,
1895,
1190,
1379,
12,
780,
1456,
16,
514,
1237,
13,
1216,
1860,
288,
1082,
202,
430,
261,
3482,
18,
14963,
2932,
17,
8457,
6,
3719,
288,
9506,
202,
8457,
273,
1109,
8183,
12,
3446,
1769,
1082,
202,
97,
25083,
202,
12107,
309,
261,
3482,
18,
14963,
2932,
17,
3645,
6,
3719,
4697,
202,
3645,
8092,
273,
1237,
31,
1082,
202,
12107,
309,
261,
3482,
18,
14963,
2932,
17,
2722,
6,
3719,
4697,
202,
2722,
8092,
273,
1237,
31,
1082,
202,
12107,
309,
261,
3482,
18,
14963,
2932,
17,
12429,
6,
3719,
4697,
202,
12429,
8092,
273,
1237,
31,
1082,
202,
12107,
309,
261,
3482,
18,
14963,
2932,
17,
5205,
6,
3719,
4697,
202,
5205,
8092,
273,
1237,
31,
1082,
202,
12107,
309,
261,
3482,
18,
14963,
2932,
17,
5771,
6,
3719,
4697,
202,
5771,
8092,
273,
1237,
31,
1082,
202,
12107,
309,
261,
3482,
18,
14963,
2932,
17,
6706,
6,
3719,
4697,
202,
6706,
8092,
273,
1237,
31,
1082,
202,
12107,
309,
261,
3482,
18,
14963,
2932,
17,
5113,
319,
6,
3719,
4697,
202,
5113,
319,
8092,
273,
1237,
31,
25083,
202,
12107,
309,
261,
3482,
18,
14963,
2932,
17,
4743,
6,
3719,
9506,
202,
4743,
273,
1237,
31,
1082,
202,
12107,
309,
261,
3482,
18,
14963,
2932,
17,
1106,
6,
3719,
6862,
202,
12434,
273,
6830,
18,
11100,
12,
3446,
1769,
1082,
202,
12107,
309,
261,
3482,
18,
14963,
2932,
17,
925,
3234,
6,
3719,
6862,
202,
925,
3234,
273,
6830,
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,
1117,
918,
1640,
1895,
1190,
1379,
12,
780,
1456,
16,
514,
1237,
13,
1216,
1860,
288,
1082,
202,
430,
261,
3482,
18,
14963,
2932,
17,
8457,
6,
3719,
288,
9506,
202,
8457,
273,
1109,
8183,
12,
3446,
1769,
1082,
202,
97,
25083,
202,
12107,
309,
261,
3482,
18,
14963,
2932,
17,
3645,
6,
3719,
4697,
202,
3645,
8092,
273,
1237,
31,
1082,
202,
12107,
309,
261,
3482,
18,
14963,
2932,
17,
2722,
6,
3719,
4697,
202,
2722,
8092,
273,
1237,
31,
1082,
202,
12107,
309,
261,
3482,
18,
14963,
2932,
17,
12429,
6,
3719,
4697,
202,
12429,
8092,
273,
1237,
31,
1082,
202,
12107,
309,
261,
3482,
18,
14963,
2932,
17,
5205,
6,
3719,
4697,
202,
5205,
2
] |
String prop = st.nextToken(); boolean value = jEdit.getBooleanProperty(prop); if(value)
|
if(!jEdit.isMainThread())
|
void activatePluginIfNecessary() { if(!(plugin instanceof EditPlugin.Deferred && plugin != null)) return; String className = plugin.getClassName(); // default for plugins that don't specify this property (ie, // 4.1-style plugins) is to load them on startup String activate = jEdit.getProperty("plugin." + className + ".activate","startup"); // if at least one property listed here is true, load the // plugin boolean load = false; StringTokenizer st = new StringTokenizer(activate); while(st.hasMoreTokens()) { String prop = st.nextToken(); boolean value = jEdit.getBooleanProperty(prop); if(value) { Log.log(Log.DEBUG,this,"Activating " + className + " because of " + prop); load = true; break; } } if(load) activatePlugin(); } //}}}
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/2f00b782b6992b54795b88891a1e10c4f16afeb0/PluginJAR.java/buggy/org/gjt/sp/jedit/PluginJAR.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
10235,
3773,
26034,
1435,
202,
95,
202,
202,
430,
12,
5,
12,
4094,
1276,
15328,
3773,
18,
16886,
597,
1909,
480,
446,
3719,
1082,
202,
2463,
31,
202,
202,
780,
2658,
273,
1909,
18,
588,
3834,
5621,
202,
202,
759,
805,
364,
4799,
716,
2727,
1404,
4800,
333,
1272,
261,
1385,
16,
202,
202,
759,
1059,
18,
21,
17,
4060,
4799,
13,
353,
358,
1262,
2182,
603,
11850,
202,
202,
780,
10235,
273,
525,
4666,
18,
588,
1396,
2932,
4094,
1199,
1082,
202,
15,
2658,
397,
3552,
10014,
15937,
23939,
8863,
202,
202,
759,
309,
622,
4520,
1245,
1272,
12889,
2674,
353,
638,
16,
1262,
326,
202,
202,
759,
1909,
202,
202,
6494,
1262,
273,
629,
31,
202,
202,
780,
10524,
384,
273,
394,
16370,
12,
10014,
1769,
202,
202,
17523,
12,
334,
18,
5332,
7417,
5157,
10756,
202,
202,
95,
1082,
202,
780,
2270,
273,
384,
18,
4285,
1345,
5621,
1082,
202,
6494,
460,
273,
525,
4666,
18,
588,
5507,
1396,
12,
5986,
1769,
1082,
202,
430,
12,
1132,
13,
1082,
202,
95,
9506,
202,
1343,
18,
1330,
12,
1343,
18,
9394,
16,
2211,
10837,
12241,
1776,
315,
6862,
202,
15,
2658,
397,
315,
2724,
434,
315,
397,
2270,
1769,
9506,
202,
945,
273,
638,
31,
9506,
202,
8820,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
12,
945,
13,
1082,
202,
10014,
3773,
5621,
202,
97,
368,
9090,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
10235,
3773,
26034,
1435,
202,
95,
202,
202,
430,
12,
5,
12,
4094,
1276,
15328,
3773,
18,
16886,
597,
1909,
480,
446,
3719,
1082,
202,
2463,
31,
202,
202,
780,
2658,
273,
1909,
18,
588,
3834,
5621,
202,
202,
759,
805,
364,
4799,
716,
2727,
1404,
4800,
333,
1272,
261,
1385,
16,
202,
202,
759,
1059,
18,
21,
17,
4060,
4799,
13,
353,
358,
1262,
2182,
603,
11850,
202,
202,
780,
10235,
273,
525,
4666,
18,
588,
1396,
2932,
4094,
1199,
1082,
202,
15,
2658,
397,
3552,
10014,
15937,
23939,
8863,
202,
202,
759,
309,
622,
4520,
1245,
1272,
12889,
2674,
353,
638,
16,
1262,
326,
202,
202,
759,
1909,
202,
202,
6494,
1262,
273,
629,
2
] |
sendUdpMessage(msg);
|
sendUdpMessage(msg, true);
|
void sendMultipleUdpMessages(Message msg, Vector dests) { Address dest; for(int i=0; i < dests.size(); i++) { dest=(Address)dests.elementAt(i); msg.setDest(dest); try { sendUdpMessage(msg); } catch(Exception e) { if(log.isDebugEnabled()) log.debug("exception=" + e); } } }
|
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/0241160e85bebfa369278958432470ab60cbba10/UDP.java/clean/src/org/jgroups/protocols/UDP.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1366,
8438,
57,
9295,
5058,
12,
1079,
1234,
16,
5589,
1570,
87,
13,
288,
3639,
5267,
1570,
31,
3639,
364,
12,
474,
277,
33,
20,
31,
277,
411,
1570,
87,
18,
1467,
5621,
277,
27245,
288,
5411,
1570,
28657,
1887,
13,
10488,
87,
18,
2956,
861,
12,
77,
1769,
5411,
1234,
18,
542,
9378,
12,
10488,
1769,
5411,
775,
288,
7734,
1366,
57,
9295,
1079,
12,
3576,
16,
638,
1769,
5411,
289,
5411,
1044,
12,
503,
425,
13,
288,
7734,
309,
12,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
2932,
4064,
1546,
397,
425,
1769,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1366,
8438,
57,
9295,
5058,
12,
1079,
1234,
16,
5589,
1570,
87,
13,
288,
3639,
5267,
1570,
31,
3639,
364,
12,
474,
277,
33,
20,
31,
277,
411,
1570,
87,
18,
1467,
5621,
277,
27245,
288,
5411,
1570,
28657,
1887,
13,
10488,
87,
18,
2956,
861,
12,
77,
1769,
5411,
1234,
18,
542,
9378,
12,
10488,
1769,
5411,
775,
288,
7734,
1366,
57,
9295,
1079,
12,
3576,
16,
638,
1769,
5411,
289,
5411,
1044,
12,
503,
425,
13,
288,
7734,
309,
12,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
2932,
4064,
1546,
397,
425,
1769,
5411,
289,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
init( ); Chart chart = null; Serializer serializer = null; File chartFile = new File( "testChart.chart" ); try { serializer = SerializerImpl.instance( ); if ( chartFile.exists( ) ) { chart = serializer.read( new FileInputStream( chartFile ) ); } } catch ( Exception e ) { WizardBase.displayException( e ); } ChartWizard chartWizard = new ChartWizard( ); ChartWizardContext context = new ChartWizardContext( chart ); /* * Used to fetch data. Default implementation of <code>IDataServiceProvider</code>. * * @see the implementation for BIRT, <code>org.eclipse.birt.chart.reportitem.ReportDataServiceProvider</code> * */ context.setDataServiceProvider( new DefaultDataServiceProviderImpl( ) ); /* * Used to invoke some builders outside. Default implementation of * <code>IUIServiceProvider</code>. * * @see the implementation for BIRT, <code>org.eclipse.birt.chart.reportitem.ChartReportItemBuilderImpl</code> * */ context.setUIServiceProvider( new DefaultUIServiceProviderImpl( ) ); context = (ChartWizardContext) chartWizard.open( context ); if ( context != null ) { chart = context.getModel( ); try { serializer.write( chart, new FileOutputStream( chartFile ) ); } catch ( Exception e ) { WizardBase.displayException( e ); } } else { System.out.println( "Wizard was cancelled!" ); }
|
new ChartWizardLauncher( ).launch( );
|
public static void main( String[] args ) { init( ); Chart chart = null; Serializer serializer = null; File chartFile = new File( "testChart.chart" ); //$NON-NLS-1$ // Reads the chart model try { serializer = SerializerImpl.instance( ); if ( chartFile.exists( ) ) { chart = serializer.read( new FileInputStream( chartFile ) ); } } catch ( Exception e ) { WizardBase.displayException( e ); } // Configures the chart wizard. ChartWizard chartWizard = new ChartWizard( ); ChartWizardContext context = new ChartWizardContext( chart ); /* * Used to fetch data. Default implementation of <code>IDataServiceProvider</code>. * * @see the implementation for BIRT, <code>org.eclipse.birt.chart.reportitem.ReportDataServiceProvider</code> * */ context.setDataServiceProvider( new DefaultDataServiceProviderImpl( ) ); /* * Used to invoke some builders outside. Default implementation of * <code>IUIServiceProvider</code>. * * @see the implementation for BIRT, <code>org.eclipse.birt.chart.reportitem.ChartReportItemBuilderImpl</code> * */ context.setUIServiceProvider( new DefaultUIServiceProviderImpl( ) ); // Opens the wizard context = (ChartWizardContext) chartWizard.open( context ); // Writes the chart model if ( context != null ) { chart = context.getModel( ); try { serializer.write( chart, new FileOutputStream( chartFile ) ); } catch ( Exception e ) { WizardBase.displayException( e ); } } else { System.out.println( "Wizard was cancelled!" ); //$NON-NLS-1$ } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/de9f1af96de3805bd8acbf2319663820c7784853/ChartWizardLauncher.java/clean/chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/builder/ChartWizardLauncher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
514,
8526,
833,
262,
202,
95,
202,
202,
2738,
12,
11272,
202,
202,
7984,
4980,
273,
446,
31,
202,
202,
6306,
6340,
273,
446,
31,
202,
202,
812,
4980,
812,
273,
394,
1387,
12,
315,
3813,
7984,
18,
11563,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
759,
29185,
326,
4980,
938,
202,
202,
698,
202,
202,
95,
1082,
202,
15663,
273,
15348,
2828,
18,
1336,
12,
11272,
1082,
202,
430,
261,
4980,
812,
18,
1808,
12,
262,
262,
1082,
202,
95,
9506,
202,
11563,
273,
6340,
18,
896,
12,
394,
11907,
12,
4980,
812,
262,
11272,
1082,
202,
97,
202,
202,
97,
202,
202,
14683,
261,
1185,
425,
262,
202,
202,
95,
1082,
202,
27130,
2171,
18,
5417,
503,
12,
425,
11272,
202,
202,
97,
202,
202,
759,
1903,
1823,
326,
4980,
24204,
18,
202,
202,
7984,
27130,
4980,
27130,
273,
394,
14804,
27130,
12,
11272,
202,
202,
7984,
27130,
1042,
819,
273,
394,
14804,
27130,
1042,
12,
4980,
11272,
202,
202,
20308,
1082,
380,
10286,
358,
2158,
501,
18,
2989,
4471,
434,
411,
710,
34,
734,
396,
16300,
1757,
710,
18652,
1082,
380,
1875,
380,
632,
5946,
326,
4471,
364,
605,
7937,
56,
16,
411,
710,
34,
3341,
18,
20416,
18,
70,
2714,
18,
11563,
18,
6006,
1726,
18,
4820,
751,
16300,
1757,
710,
34,
1082,
380,
1875,
1195,
202,
202,
2472,
18,
542,
751,
16300,
12,
394,
2989,
751,
16300,
2828,
12,
262,
11272,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
514,
8526,
833,
262,
202,
95,
202,
202,
2738,
12,
11272,
202,
202,
7984,
4980,
273,
446,
31,
202,
202,
6306,
6340,
273,
446,
31,
202,
202,
812,
4980,
812,
273,
394,
1387,
12,
315,
3813,
7984,
18,
11563,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
759,
29185,
326,
4980,
938,
202,
202,
698,
202,
202,
95,
1082,
202,
15663,
273,
15348,
2828,
18,
1336,
12,
11272,
1082,
202,
430,
261,
4980,
812,
18,
1808,
12,
262,
262,
1082,
202,
95,
9506,
202,
11563,
273,
6340,
18,
896,
12,
394,
11907,
12,
4980,
812,
262,
11272,
1082,
202,
97,
202,
202,
97,
202,
202,
14683,
261,
1185,
425,
2
] |
if (Error.class.isAssignableFrom(exc[ i]) || RuntimeException.class.isAssignableFrom(exc[ i]))
|
if (Error.class.isAssignableFrom(exc[i]) || RuntimeException.class.isAssignableFrom(exc[i]))
|
ProxySignature(Method method) { this.method = method; Class[] exc = method.getExceptionTypes(); int i = exc.length; while (--i >= 0) { // discard unchecked exceptions if (Error.class.isAssignableFrom(exc[ i]) || RuntimeException.class.isAssignableFrom(exc[ i])) continue; exceptions.add(exc[ i]); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2603223e734189dc0e07a63b224a1770507e0fa5/Proxy.java/buggy/core/src/classpath/java/java/lang/reflect/Proxy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
7659,
5374,
12,
1305,
707,
13,
288,
5411,
333,
18,
2039,
273,
707,
31,
5411,
1659,
8526,
3533,
273,
707,
18,
588,
503,
2016,
5621,
5411,
509,
277,
273,
3533,
18,
2469,
31,
5411,
1323,
261,
413,
77,
1545,
374,
13,
288,
7734,
368,
10388,
22893,
4798,
7734,
309,
261,
668,
18,
1106,
18,
291,
7961,
1265,
12,
10075,
63,
277,
5717,
13491,
747,
3235,
18,
1106,
18,
291,
7961,
1265,
12,
10075,
63,
277,
22643,
13491,
1324,
31,
7734,
4798,
18,
1289,
12,
10075,
63,
277,
19226,
5411,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
7659,
5374,
12,
1305,
707,
13,
288,
5411,
333,
18,
2039,
273,
707,
31,
5411,
1659,
8526,
3533,
273,
707,
18,
588,
503,
2016,
5621,
5411,
509,
277,
273,
3533,
18,
2469,
31,
5411,
1323,
261,
413,
77,
1545,
374,
13,
288,
7734,
368,
10388,
22893,
4798,
7734,
309,
261,
668,
18,
1106,
18,
291,
7961,
1265,
12,
10075,
63,
277,
5717,
13491,
747,
3235,
18,
1106,
18,
291,
7961,
1265,
12,
10075,
63,
277,
22643,
13491,
1324,
31,
7734,
4798,
18,
1289,
12,
10075,
63,
277,
19226,
5411,
289,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void mT69() throws RecognitionException { try { ruleNestingLevel++; int _type = T69; int _start = getCharIndex(); int _line = getLine(); int _charPosition = getCharPositionInLine(); int _channel = Token.DEFAULT_CHANNEL; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:49:7: ( '&&' ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:49:7: '&&' { match("&&"); if (failed) return ; } if ( backtracking==0 ) { if ( token==null && ruleNestingLevel==1 ) { emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1); } } } finally { ruleNestingLevel--; } }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/b99d41f54ef70aa0e75d0c3121bc025256c35f4f/DRLLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21115,
8148,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
509,
389,
723,
273,
399,
8148,
31,
5411,
509,
389,
1937,
273,
23577,
1016,
5621,
5411,
509,
389,
1369,
273,
9851,
5621,
5411,
509,
389,
3001,
2555,
273,
23577,
2555,
382,
1670,
5621,
5411,
509,
389,
4327,
273,
3155,
18,
5280,
67,
15814,
31,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
7616,
30,
27,
30,
261,
5183,
26045,
262,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
7616,
30,
27,
30,
5183,
26045,
5411,
288,
5411,
845,
2932,
10,
10,
8863,
309,
261,
7307,
13,
327,
274,
5411,
289,
5411,
309,
261,
6888,
631,
20,
262,
288,
8227,
309,
261,
1147,
631,
2011,
597,
1720,
50,
10100,
2355,
631,
21,
262,
288,
12900,
3626,
24899,
723,
16,
67,
1369,
16,
67,
3001,
2555,
16,
67,
4327,
16,
67,
1937,
16,
588,
2156,
1016,
1435,
17,
21,
1769,
8227,
289,
21394,
289,
565,
289,
3639,
3095,
288,
5411,
1720,
50,
10100,
2355,
413,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21115,
8148,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
509,
389,
723,
273,
399,
8148,
31,
5411,
509,
389,
1937,
273,
23577,
1016,
5621,
5411,
509,
389,
1369,
273,
9851,
5621,
5411,
509,
389,
3001,
2555,
273,
23577,
2555,
382,
1670,
5621,
5411,
509,
389,
4327,
273,
3155,
18,
5280,
67,
15814,
31,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
7616,
30,
27,
30,
261,
5183,
26045,
262,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
2
] |
||
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/eclipse/ws6/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:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/eclipse/ws6/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:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 99: MethodDeclaration ::= MethodHeader MethodBody // case 99: { //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodHeader = (MethodDecl) getRhsSym(1); //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block MethodBody = (Block) getRhsSym(2); //#line 669 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" JPGPosition old_pos = (JPGPosition) MethodHeader.position(); setResult(MethodHeader.body(MethodBody) .position(pos(old_pos.getLeftIToken().getTokenIndex(), getRightSpan()))); break; } // // Rule 101: ResultType ::= void // case 101: { //#line 680 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 102: FormalParameterList ::= LastFormalParameter // case 102: { //#line 700 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 702 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 103: FormalParameterList ::= FormalParameters , LastFormalParameter // case 103: { //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 709 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 104: FormalParameters ::= FormalParameter // case 104: { //#line 714 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 716 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 105: FormalParameters ::= FormalParameters , FormalParameter // case 105: { //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 723 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 106: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 106: { //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 730 "C:/eclipse/ws6/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 108: VariableModifiers ::= VariableModifiers VariableModifier // case 108: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 109: VariableModifier ::= final // case 109: { //#line 746 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 110: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 110: { //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 754 "C:/eclipse/ws6/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 112: MethodModifiers ::= MethodModifiers MethodModifier // case 112: { //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 113: MethodModifier ::= public // case 113: { //#line 776 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 114: MethodModifier ::= protected // case 114: { //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 115: MethodModifier ::= private // case 115: { //#line 786 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 116: MethodModifier ::= abstract // case 116: { //#line 791 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 117: MethodModifier ::= static // case 117: { //#line 796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 118: MethodModifier ::= final // case 118: { //#line 801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 119: MethodModifier ::= native // case 119: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 120: MethodModifier ::= strictfp // case 120: { //#line 816 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 121: Throws ::= throws ExceptionTypeList // case 121: { //#line 820 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 822 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 122: ExceptionTypeList ::= ExceptionType // case 122: { //#line 826 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 828 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 123: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 123: { //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 126: MethodBody ::= ; // case 126: setResult(null); break; // // Rule 128: StaticInitializer ::= static Block // case 128: { //#line 855 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 857 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 129: SimpleTypeName ::= identifier // case 129: { //#line 872 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 131: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 131: { //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 881 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 132: ConstructorModifier ::= public // case 132: { //#line 889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 133: ConstructorModifier ::= protected // case 133: { //#line 894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 134: ConstructorModifier ::= private // case 134: { //#line 899 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 135: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 135: { //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; if (ExplicitConstructorInvocationopt == null) l = BlockStatementsopt; else { l = new TypedList(new LinkedList(), Stmt.class, false); l.add(ExplicitConstructorInvocationopt); l.addAll(BlockStatementsopt); } setResult(nf.Block(pos(), l)); break; } // // Rule 136: Arguments ::= ( ArgumentListopt ) // case 136: { //#line 936 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 938 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 139: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 139: { //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 140: InterfaceModifier ::= public // case 140: { //#line 964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 141: InterfaceModifier ::= protected // case 141: { //#line 969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 142: InterfaceModifier ::= private // case 142: { //#line 974 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 143: InterfaceModifier ::= abstract // case 143: { //#line 979 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 144: InterfaceModifier ::= static // case 144: { //#line 984 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 145: InterfaceModifier ::= strictfp // case 145: { //#line 989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 146: ExtendsInterfaces ::= extends InterfaceType // case 146: { //#line 993 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 995 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 147: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 147: { //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 148: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 148: { //#line 1012 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1014 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 150: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 150: { //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 152: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= ClassDeclaration // case 153: { //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1036 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 154: { //#line 1041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 155: InterfaceMemberDeclaration ::= ; // case 155: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 156: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 156: { //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1056 "C:/eclipse/ws6/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 158: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 158: { //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1076 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 159: ConstantModifier ::= public // case 159: { //#line 1084 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 160: ConstantModifier ::= static // case 160: { //#line 1089 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 161: ConstantModifier ::= final // case 161: { //#line 1094 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 163: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 163: { //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1103 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 164: AbstractMethodModifier ::= public // case 164: { //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 165: AbstractMethodModifier ::= abstract // case 165: { //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 166: SimpleName ::= identifier // case 166: { //#line 1172 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 167: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 167: { //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1203 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 168: VariableInitializers ::= VariableInitializer // case 168: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 169: VariableInitializers ::= VariableInitializers , VariableInitializer // case 169: { //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 170: Block ::= { BlockStatementsopt } // case 170: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 171: BlockStatements ::= BlockStatement // case 171: { //#line 1243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1245 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 172: BlockStatements ::= BlockStatements BlockStatement // case 172: { //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1252 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 174: BlockStatement ::= ClassDeclaration // case 174: { //#line 1258 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/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 175: BlockStatement ::= Statement // case 175: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 177: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 177: { //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1277 "C:/eclipse/ws6/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 201: IfThenStatement ::= if ( Expression ) Statement // case 201: { //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 202: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 202: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1346 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 203: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 203: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 204: EmptyStatement ::= ; // case 204: { //#line 1358 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 205: LabeledStatement ::= identifier : Statement // case 205: { //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1364 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 206: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 206: { //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 207: ExpressionStatement ::= StatementExpression ; // case 207: { //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1375 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 215: AssertStatement ::= assert Expression ; // case 215: { //#line 1396 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1398 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 216: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 216: { //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 217: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 217: { //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1409 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 218: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 218: { //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 220: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 220: { //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 221: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 221: { //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1430 "C:/eclipse/ws6/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 222: SwitchLabels ::= SwitchLabel // case 222: { //#line 1437 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 223: SwitchLabels ::= SwitchLabels SwitchLabel // case 223: { //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1446 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 224: SwitchLabel ::= case ConstantExpression : // case 224: { //#line 1451 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1453 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 225: SwitchLabel ::= default : // case 225: { //#line 1460 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 226: WhileStatement ::= while ( Expression ) Statement // case 226: { //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1469 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 227: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 227: { //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1475 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 228: DoStatement ::= do Statement while ( Expression ) ; // case 228: { //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1481 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 231: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 231: { //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 232: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 232: { //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1496 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 234: ForInit ::= LocalVariableDeclaration // case 234: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1503 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpression // case 236: { //#line 1511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1513 "C:/eclipse/ws6/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 237: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 237: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 238: BreakStatement ::= break identifieropt ; // case 238: { //#line 1528 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1530 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 239: ContinueStatement ::= continue identifieropt ; // case 239: { //#line 1536 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1538 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 240: ReturnStatement ::= return Expressionopt ; // case 240: { //#line 1544 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1546 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 241: ThrowStatement ::= throw Expression ; // case 241: { //#line 1550 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1552 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 242: TryStatement ::= try Block Catches // case 242: { //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1564 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 243: TryStatement ::= try Block Catchesopt Finally // case 243: { //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1569 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 244: Catches ::= CatchClause // case 244: { //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1575 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 245: Catches ::= Catches CatchClause // case 245: { //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1582 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 246: CatchClause ::= catch ( FormalParameter ) Block // case 246: { //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1589 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 247: Finally ::= finally Block // case 247: { //#line 1593 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 251: PrimaryNoNewArray ::= Type . class // case 251: { //#line 1613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1615 "C:/eclipse/ws6/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 252: PrimaryNoNewArray ::= void . class // case 252: { //#line 1634 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 253: PrimaryNoNewArray ::= this // case 253: { //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 254: PrimaryNoNewArray ::= ClassName . this // case 254: { //#line 1643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1645 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 255: PrimaryNoNewArray ::= ( Expression ) // case 255: { //#line 1648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1650 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 260: Literal ::= IntegerLiteral$IntegerLiteral // case 260: { //#line 1658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1660 "C:/eclipse/ws6/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 261: Literal ::= LongLiteral$LongLiteral // case 261: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1666 "C:/eclipse/ws6/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 262: Literal ::= FloatingPointLiteral$FloatLiteral // case 262: { //#line 1670 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1672 "C:/eclipse/ws6/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 263: Literal ::= DoubleLiteral$DoubleLiteral // case 263: { //#line 1676 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1678 "C:/eclipse/ws6/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 264: Literal ::= BooleanLiteral // case 264: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 265: Literal ::= CharacterLiteral$CharacterLiteral // case 265: { //#line 1687 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1689 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 266: Literal ::= StringLiteral$str // case 266: { //#line 1693 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1695 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 267: Literal ::= null // case 267: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 268: BooleanLiteral ::= true$trueLiteral // case 268: { //#line 1705 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: BooleanLiteral ::= false$falseLiteral // case 269: { //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1712 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 270: ArgumentList ::= Expression // case 270: { //#line 1725 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1727 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 271: ArgumentList ::= ArgumentList , Expression // case 271: { //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 272: DimExprs ::= DimExpr // case 272: { //#line 1768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1770 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 273: DimExprs ::= DimExprs DimExpr // case 273: { //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1777 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 274: DimExpr ::= [ Expression ] // case 274: { //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1784 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 275: Dims ::= [ ] // case 275: { //#line 1790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 276: Dims ::= Dims [ ] // case 276: { //#line 1793 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 277: FieldAccess ::= Primary . identifier // case 277: { //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= super . identifier // case 278: { //#line 1804 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1806 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 279: FieldAccess ::= ClassName . super$sup . identifier // case 279: { //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 280: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 280: { //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1817 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 282: PostfixExpression ::= ExpressionName // case 282: { //#line 1840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 285: PostIncrementExpression ::= PostfixExpression ++ // case 285: { //#line 1848 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 286: PostDecrementExpression ::= PostfixExpression -- // case 286: { //#line 1854 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 289: UnaryExpression ::= + UnaryExpression // case 289: { //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1864 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 290: UnaryExpression ::= - UnaryExpression // case 290: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 292: PreIncrementExpression ::= ++ UnaryExpression // case 292: { //#line 1874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1876 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 293: PreDecrementExpression ::= -- UnaryExpression // case 293: { //#line 1880 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 295: { //#line 1887 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 296: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 296: { //#line 1892 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 299: { //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1908 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 300: { //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 301: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 301: { //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1918 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 303: { //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1925 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 304: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 304: { //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1930 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 306: { //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1937 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 307: { //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1942 "C:/eclipse/ws6/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 308: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 308: { //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1948 "C:/eclipse/ws6/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 310: RelationalExpression ::= RelationalExpression < ShiftExpression // case 310: { //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression > ShiftExpression // case 311: { //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1961 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 312: { //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1966 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 313: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 313: { //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1971 "C:/eclipse/ws6/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 315: EqualityExpression ::= EqualityExpression == RelationalExpression // case 315: { //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1987 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 316: EqualityExpression ::= EqualityExpression != RelationalExpression // case 316: { //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1992 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 318: AndExpression ::= AndExpression & EqualityExpression // case 318: { //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1999 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 320: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 320: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2006 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 322: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 322: { //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2013 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 324: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 324: { //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2020 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 326: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 326: { //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 328: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 328: { //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 331: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 331: { //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 332: LeftHandSide ::= ExpressionName // case 332: { //#line 2047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2049 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 335: AssignmentOperator ::= = // case 335: { //#line 2057 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 336: AssignmentOperator ::= *= // case 336: { //#line 2062 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= /= // case 337: { //#line 2067 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= %= // case 338: { //#line 2072 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= += // case 339: { //#line 2077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= -= // case 340: { //#line 2082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= <<= // case 341: { //#line 2087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > = // case 342: { //#line 2092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= > > > = // case 343: { //#line 2098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= &= // case 344: { //#line 2104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= ^= // case 345: { //#line 2109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 346: AssignmentOperator ::= |= // case 346: { //#line 2114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 349: Dimsopt ::= $Empty // case 349: { //#line 2127 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 351: Catchesopt ::= $Empty // case 351: { //#line 2134 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 353: identifieropt ::= $Empty // case 353: setResult(null); break; // // Rule 354: identifieropt ::= identifier // case 354: { //#line 2141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2143 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 355: ForUpdateopt ::= $Empty // case 355: { //#line 2149 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 357: Expressionopt ::= $Empty // case 357: setResult(null); break; // // Rule 359: ForInitopt ::= $Empty // case 359: { //#line 2160 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 361: SwitchLabelsopt ::= $Empty // case 361: { //#line 2167 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 363: SwitchBlockStatementGroupsopt ::= $Empty // case 363: { //#line 2174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 365: VariableModifiersopt ::= $Empty // case 365: { //#line 2181 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 367: VariableInitializersopt ::= $Empty // case 367: setResult(null); break; // // Rule 369: AbstractMethodModifiersopt ::= $Empty // case 369: { //#line 2211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 371: ConstantModifiersopt ::= $Empty // case 371: { //#line 2218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 373: InterfaceMemberDeclarationsopt ::= $Empty // case 373: { //#line 2225 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 375: ExtendsInterfacesopt ::= $Empty // case 375: { //#line 2232 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 377: InterfaceModifiersopt ::= $Empty // case 377: { //#line 2239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 379: ClassBodyopt ::= $Empty // case 379: setResult(null); break; // // Rule 381: Argumentsopt ::= $Empty // case 381: setResult(null); break; // // Rule 382: Argumentsopt ::= Arguments // case 382: throw new Error("No action specified for rule " + 382); // // Rule 383: ,opt ::= $Empty // case 383: setResult(null); break; // // Rule 385: ArgumentListopt ::= $Empty // case 385: { //#line 2269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 387: BlockStatementsopt ::= $Empty // case 387: { //#line 2276 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 389: ExplicitConstructorInvocationopt ::= $Empty // case 389: setResult(null); break; // // Rule 391: ConstructorModifiersopt ::= $Empty // case 391: { //#line 2287 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 393: ...opt ::= $Empty // case 393: setResult(null); break; // // Rule 395: FormalParameterListopt ::= $Empty // case 395: { //#line 2298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 397: Throwsopt ::= $Empty // case 397: { //#line 2305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 399: MethodModifiersopt ::= $Empty // case 399: { //#line 2312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 401: FieldModifiersopt ::= $Empty // case 401: { //#line 2319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 403: ClassBodyDeclarationsopt ::= $Empty // case 403: { //#line 2326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 405: Interfacesopt ::= $Empty // case 405: { //#line 2333 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 407: Superopt ::= $Empty // case 407: { //#line 2340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 409: ClassModifiersopt ::= $Empty // case 409: { //#line 2351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 411: TypeDeclarationsopt ::= $Empty // case 411: { //#line 2363 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 413: ImportDeclarationsopt ::= $Empty // case 413: { //#line 2370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 415: PackageDeclarationopt ::= $Empty // case 415: setResult(null); break; // // Rule 417: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 717 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 418: { //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 726 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 419: PackageDeclaration ::= package PackageName ; // case 419: { //#line 732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 420: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 420: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 740 "C:/eclipse/ws6/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 422: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 422: { //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 423: X10ClassModifier ::= ClassModifier // case 423: { //#line 761 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 763 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 424: X10ClassModifier ::= safe // case 424: { //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 425: PropertyList ::= ( Properties WhereClauseopt ) // case 425: { //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 426: PropertyList ::= ( WhereClause ) // case 426: { //#line 779 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 427: Properties ::= Property // case 427: { //#line 788 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 428: Properties ::= Properties , Property // case 428: { //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 797 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 429: Property ::= Type identifier // case 429: { //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 805 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 430: MethodHeader ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 430: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 813 "C:/eclipse/ws6/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, null)); break; } // // Rule 431: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 431: { //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 432: { //#line 840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 433: { //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 847 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 434: { //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 852 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 435: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 435: { //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 858 "C:/eclipse/ws6/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 436: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 436: { //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 875 "C:/eclipse/ws6/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 437: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 900 "C:/eclipse/ws6/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 438: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 907 "C:/eclipse/ws6/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 439: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 439: { //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 915 "C:/eclipse/ws6/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 440: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 440: { //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 924 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 441: { //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 442: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 442: { //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 934 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 444: AssignPropertyCall ::= property ( ArgumentList ) // case 444: { //#line 939 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 941 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 445: Type ::= DataType // case 445: { //#line 950 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 952 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 446: Type ::= nullable < Type > DepParametersopt // case 446: { //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 957 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 447: Type ::= future < Type > // case 447: { //#line 963 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 965 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 451: PrimitiveType ::= NumericType DepParametersopt // case 451: { //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 982 "C:/eclipse/ws6/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 452: PrimitiveType ::= boolean DepParametersopt // case 452: { //#line 988 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 990 "C:/eclipse/ws6/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 457: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 457: { //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1004 "C:/eclipse/ws6/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 458: DepParameters ::= ( DepParameterExpr ) // case 458: { //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1023 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 459: DepParameterExpr ::= ArgumentList WhereClauseopt // case 459: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 460: DepParameterExpr ::= WhereClause // case 460: { //#line 1032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 461: WhereClause ::= : ConstExpression // case 461: { //#line 1038 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1040 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 462: ConstPrimary ::= Literal // case 462: { //#line 1045 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 463: ConstPrimary ::= Type . class // case 463: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1052 "C:/eclipse/ws6/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 464: ConstPrimary ::= void . class // case 464: { //#line 1071 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 465: ConstPrimary ::= this // case 465: { //#line 1077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 466: ConstPrimary ::= here // case 466: { //#line 1082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 467: ConstPrimary ::= ClassName . this // case 467: { //#line 1085 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 468: ConstPrimary ::= ( ConstExpression ) // case 468: { //#line 1090 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 470: ConstPrimary ::= self // case 470: { //#line 1098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 471: ConstPostfixExpression ::= ConstPrimary // case 471: { //#line 1104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 472: ConstPostfixExpression ::= ExpressionName // case 472: { //#line 1109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 473: ConstUnaryExpression ::= ConstPostfixExpression // case 473: { //#line 1114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 474: ConstUnaryExpression ::= + ConstUnaryExpression // case 474: { //#line 1119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= - ConstUnaryExpression // case 475: { //#line 1124 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 476: ConstUnaryExpression ::= ! ConstUnaryExpression // case 476: { //#line 1129 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 477: { //#line 1135 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1137 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 478: { //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1142 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 479: { //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 480: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 480: { //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 481: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 481: { //#line 1156 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1158 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 482: { //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1163 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 483: { //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1168 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 484: ConstRelationalExpression ::= ConstAdditiveExpression // case 484: { //#line 1173 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 485: { //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 486: { //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1185 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 487: { //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1190 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 488: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 488: { //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1195 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 489: ConstEqualityExpression ::= ConstRelationalExpression // case 489: { //#line 1199 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 490: { //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1206 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 491: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 491: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 492: ConstAndExpression ::= ConstEqualityExpression // case 492: { //#line 1215 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1217 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 493: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 493: { //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1222 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstAndExpression // case 494: { //#line 1226 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1228 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 495: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 495: { //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1233 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 496: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 497: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 497: { //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1244 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression // case 498: { //#line 1248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 499: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 499: { //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1255 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 500: ConstFieldAccess ::= ConstPrimary . identifier // case 500: { //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= super . identifier // case 501: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 502: ConstFieldAccess ::= ClassName . super$sup . identifier // case 502: { //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1272 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 504: X10ArrayType ::= Type [ . ] // case 504: { //#line 1288 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1290 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 505: X10ArrayType ::= Type value [ . ] // case 505: { //#line 1293 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1295 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 506: X10ArrayType ::= Type [ DepParameterExpr ] // case 506: { //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1300 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 507: X10ArrayType ::= Type value [ DepParameterExpr ] // case 507: { //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 508: ObjectKind ::= value // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: ObjectKind ::= reference // case 509: throw new Error("No action specified for rule " + 509); // // Rule 510: MethodModifier ::= atomic // case 510: { //#line 1319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 511: MethodModifier ::= extern // case 511: { //#line 1324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 512: MethodModifier ::= safe // case 512: { //#line 1329 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 513: MethodModifier ::= sequential // case 513: { //#line 1334 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 514: MethodModifier ::= local // case 514: { //#line 1339 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 515: MethodModifier ::= nonblocking // case 515: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/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: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 518: { //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1362 "C:/eclipse/ws6/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 519: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 519: { //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1373 "C:/eclipse/ws6/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 520: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 520: { //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1383 "C:/eclipse/ws6/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 521: ThisClause ::= this DepParameters // case 521: { //#line 1391 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1393 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 522: Super ::= extends DataType // case 522: { //#line 1397 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1399 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 523: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 523: { //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1405 "C:/eclipse/ws6/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 524: MethodDeclarator ::= MethodDeclarator [ ] // case 524: { //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1417 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 525: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 525: { //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1425 "C:/eclipse/ws6/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 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 526: { //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1461 "C:/eclipse/ws6/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 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 527: { //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1467 "C:/eclipse/ws6/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 528: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 528: { //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1473 "C:/eclipse/ws6/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 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 529: { //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1482 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 530: { //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1487 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 531: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 531: { //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1492 "C:/eclipse/ws6/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 532: Valueopt ::= $Empty // case 532: setResult(null); break; // // Rule 533: Valueopt ::= value // case 533: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 536: ArrayBaseType ::= nullable < Type > // case 536: { //#line 1508 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1510 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= future < Type > // case 537: { //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1515 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 538: ArrayBaseType ::= ( Type ) // case 538: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 539: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 539: { //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1526 "C:/eclipse/ws6/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 540: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 540: { //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1533 "C:/eclipse/ws6/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 557: NowStatement ::= now ( Clock ) Statement // case 557: { //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1561 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 558: ClockedClause ::= clocked ( ClockList ) // case 558: { //#line 1565 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 559: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 559: { //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 560: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 560: { //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1583 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 561: WhenStatement ::= when ( Expression ) Statement // case 561: { //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1592 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 562: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 562: { //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1597 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 563: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1604 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 564: { //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1614 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 565: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 565: { //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1624 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 566: FinishStatement ::= finish Statement // case 566: { //#line 1631 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 567: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 567: { //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 568: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 568: { //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1646 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 569: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 569: { //#line 1653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1655 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 570: { //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1661 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 571: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 571: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 572: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1673 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 573: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 574: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 574: { //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1694 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 575: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 575: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1703 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 576: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 576: { //#line 1708 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 578: NextStatement ::= next ; // case 578: { //#line 1718 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 579: AwaitStatement ::= await Expression ; // case 579: { //#line 1722 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 580: ClockList ::= Clock // case 580: { //#line 1728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 581: ClockList ::= ClockList , Clock // case 581: { //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1737 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 582: Clock ::= Expression // case 582: { //#line 1743 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1745 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 583: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 583: { //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1757 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 584: { //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1762 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 585: RelationalExpression ::= RelationalExpression instanceof Type // case 585: { //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 586: IdentifierList ::= identifier // case 586: { //#line 1780 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1782 "C:/eclipse/ws6/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 587: IdentifierList ::= IdentifierList , identifier // case 587: { //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1789 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 588: Primary ::= here // case 588: { //#line 1796 "C:/eclipse/ws6/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 591: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 591: { //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1814 "C:/eclipse/ws6/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 592: RegionExpressionList ::= RegionExpression // case 592: { //#line 1830 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1832 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 593: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 593: { //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1839 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 594: Primary ::= [ RegionExpressionList ] // case 594: { //#line 1844 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1846 "C:/eclipse/ws6/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 595: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 595: { //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 596: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 596: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 597: FieldModifier ::= mutable // case 597: { //#line 1877 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 598: FieldModifier ::= const // case 598: { //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 599: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 607: throw new Error("No action specified for rule " + 607); // // Rule 608: MethodModifier ::= synchronized // case 608: { //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"synchronized\" is an invalid X10 Method Modifier"); setResult(Flags.SYNCHRONIZED); break; } // // Rule 609: FieldModifier ::= volatile // case 609: { //#line 1922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"volatile\" is an invalid X10 Field Modifier"); setResult(Flags.VOLATILE); break; } // // Rule 610: SynchronizedStatement ::= synchronized ( Expression ) Block // case 610: { //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1931 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "Synchronized Statement is invalid in X10"); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 611: ThisClauseopt ::= $Empty // case 611: setResult(null); break; // // Rule 613: PlaceTypeSpecifieropt ::= $Empty // case 613: setResult(null); break; // // Rule 615: DepParametersopt ::= $Empty // case 615: setResult(null); break; // // Rule 617: PropertyListopt ::= $Empty // case 617: setResult(null); break; // // Rule 619: WhereClauseopt ::= $Empty // case 619: setResult(null); break; // // Rule 621: ObjectKindopt ::= $Empty // case 621: setResult(null); break; // // Rule 623: ArrayInitializeropt ::= $Empty // case 623: setResult(null); break; // // Rule 625: PlaceExpressionSingleListopt ::= $Empty // case 625: setResult(null); break; // // Rule 627: ArgumentListopt ::= $Empty // case 627: setResult(null); break; // // Rule 629: X10ClassModifiersopt ::= $Empty // case 629: { //#line 1977 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 631: DepParametersopt ::= $Empty // case 631: setResult(null); break; // // Rule 633: Unsafeopt ::= $Empty // case 633: setResult(null); break; // // Rule 634: Unsafeopt ::= unsafe // case 634: { //#line 1989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 635: ParamIdopt ::= $Empty // case 635: setResult(null); break; // // Rule 636: ParamIdopt ::= identifier // case 636: { //#line 1996 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1998 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 637: ClockedClauseopt ::= $Empty // case 637: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
|
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/13a8963410bb8c85885791a761267a089892a2fc/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,
20416,
19,
4749,
26,
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,
20416,
19,
4749,
26,
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,
20416,
19,
4749,
26,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
7734,
1770,
7508,
461,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
7734,
368,
7,
1369,
6549,
315,
39,
27824,
20416,
19,
4749,
26,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
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,
20416,
19,
4749,
26,
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,
20416,
19,
4749,
26,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
10792,
21582,
12,
2704,
2
] |
||
public BigDecimal getBigDecimalValue() { return bigDecimalValue; }
|
4433 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4433/cd881bf2d70445b5d3438832a22bb9bfdfb1d6c5/Visit.java/clean/examples/Tutorial/src/tutorial/workbench/Visit.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
29436,
588,
29436,
620,
1435,
202,
95,
202,
202,
2463,
14002,
5749,
620,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
29436,
588,
29436,
620,
1435,
202,
95,
202,
202,
2463,
14002,
5749,
620,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
protected NodeImpl internalAddChildNode(QName nodeName, NodeTypeImpl nodeType, String uuid)
|
protected NodeImpl internalAddChildNode(QName nodeName, NodeTypeImpl nodeType)
|
protected NodeImpl internalAddChildNode(QName nodeName, NodeTypeImpl nodeType, String uuid) throws ItemExistsException, ConstraintViolationException, RepositoryException { Path nodePath; try { nodePath = Path.create(getPrimaryPath(), nodeName, true); } catch (MalformedPathException e) { // should never happen String msg = "internal error: invalid path " + safeGetJCRPath(); log.debug(msg); throw new RepositoryException(msg, e); } NodeDefImpl def; try { def = getApplicableChildNodeDef(nodeName, nodeType == null ? null : nodeType.getQName()); } catch (RepositoryException re) { String msg = "no definition found in parent node's node type for new node"; log.debug(msg); throw new ConstraintViolationException(msg, re); } if (nodeType == null) { // use default node type nodeType = (NodeTypeImpl) def.getDefaultPrimaryType(); } // check for name collisions/* try { Item item = itemMgr.getItem(nodePath); if (!item.isNode()) { // there's already a property with that name throw new ItemExistsException(itemMgr.safeGetJCRPath(nodePath)); } else { // there's already a node with that name // check same-name sibling setting of both new and existing node if (!def.allowSameNameSibs() || !((NodeImpl) item).getDefinition().allowSameNameSibs()) { throw new ItemExistsException(itemMgr.safeGetJCRPath(nodePath)); } } } catch (PathNotFoundException pnfe) { // no name collision }*/ NodeState thisState = (NodeState) state; if (thisState.hasPropertyEntry(nodeName)) { // there's already a property with that name throw new ItemExistsException(itemMgr.safeGetJCRPath(nodePath)); } NodeState.ChildNodeEntry cne = thisState.getChildNodeEntry(nodeName, 1); if (cne != null) { // there's already a child node entry with that name; // check same-name sibling setting of new node if (!def.allowSameNameSibs()) { throw new ItemExistsException(itemMgr.safeGetJCRPath(nodePath)); } // check same-name sibling setting of existing node NodeId newId = new NodeId(cne.getUUID()); if (!((NodeImpl) itemMgr.getItem(newId)).getDefinition().allowSameNameSibs()) { throw new ItemExistsException(itemMgr.safeGetJCRPath(nodePath)); } } // check protected flag of parent (i.e. this) node if (getDefinition().isProtected()) { String msg = safeGetJCRPath() + ": cannot add a child to a protected node"; log.debug(msg); throw new ConstraintViolationException(msg); } // now do create the child node return createChildNode(nodeName, def, nodeType, uuid); }
|
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/0250028b330ed682c3962aa71713c76f973e647e/NodeImpl.java/buggy/src/java/org/apache/jackrabbit/core/NodeImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
2029,
2828,
2713,
986,
25550,
12,
13688,
7553,
16,
20896,
2828,
9507,
13,
5411,
1216,
4342,
4002,
503,
16,
10770,
27052,
16,
13367,
288,
3639,
2666,
20758,
31,
3639,
775,
288,
5411,
20758,
273,
2666,
18,
2640,
12,
588,
6793,
743,
9334,
7553,
16,
638,
1769,
3639,
289,
1044,
261,
18695,
743,
503,
425,
13,
288,
5411,
368,
1410,
5903,
5865,
5411,
514,
1234,
273,
315,
7236,
555,
30,
2057,
589,
315,
397,
4183,
967,
46,
5093,
743,
5621,
5411,
613,
18,
4148,
12,
3576,
1769,
5411,
604,
394,
13367,
12,
3576,
16,
425,
1769,
3639,
289,
3639,
2029,
3262,
2828,
1652,
31,
3639,
775,
288,
5411,
1652,
273,
336,
27873,
25550,
3262,
12,
2159,
461,
16,
9507,
422,
446,
692,
446,
294,
9507,
18,
588,
13688,
10663,
3639,
289,
1044,
261,
3305,
503,
283,
13,
288,
5411,
514,
1234,
273,
315,
2135,
2379,
1392,
316,
982,
756,
1807,
756,
618,
364,
394,
756,
14432,
5411,
613,
18,
4148,
12,
3576,
1769,
5411,
604,
394,
10770,
27052,
12,
3576,
16,
283,
1769,
3639,
289,
3639,
309,
261,
2159,
559,
422,
446,
13,
288,
5411,
368,
999,
805,
756,
618,
5411,
9507,
273,
261,
15101,
2828,
13,
1652,
18,
588,
1868,
6793,
559,
5621,
3639,
289,
3639,
368,
866,
364,
508,
27953,
20308,
3639,
775,
288,
5411,
4342,
761,
273,
761,
9455,
18,
588,
1180,
12,
2159,
743,
1769,
5411,
309,
16051,
1726,
18,
291,
907,
10756,
288,
7734,
368,
1915,
1807,
1818,
279,
1272,
598,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
2029,
2828,
2713,
986,
25550,
12,
13688,
7553,
16,
20896,
2828,
9507,
13,
5411,
1216,
4342,
4002,
503,
16,
10770,
27052,
16,
13367,
288,
3639,
2666,
20758,
31,
3639,
775,
288,
5411,
20758,
273,
2666,
18,
2640,
12,
588,
6793,
743,
9334,
7553,
16,
638,
1769,
3639,
289,
1044,
261,
18695,
743,
503,
425,
13,
288,
5411,
368,
1410,
5903,
5865,
5411,
514,
1234,
273,
315,
7236,
555,
30,
2057,
589,
315,
397,
4183,
967,
46,
5093,
743,
5621,
5411,
613,
18,
4148,
12,
3576,
1769,
5411,
604,
394,
13367,
12,
3576,
16,
425,
1769,
3639,
289,
3639,
2029,
3262,
2828,
1652,
31,
3639,
775,
288,
5411,
1652,
273,
336,
27873,
25550,
3262,
12,
2159,
461,
16,
2
] |
updateList();
|
updatePerspectivesTable();
|
protected void performDefaults() { //Project perspective preferences IPreferenceStore store = WorkbenchPlugin.getDefault() .getPreferenceStore(); openViewMode = store.getDefaultInt(IPreferenceConstants.OPEN_VIEW_MODE); // Open view as float no longer supported if (openViewMode == IPreferenceConstants.OVM_FLOAT) openViewMode = IPreferenceConstants.OVM_FAST; openEmbedButton .setSelection(openViewMode == IPreferenceConstants.OVM_EMBED); openFastButton .setSelection(openViewMode == IPreferenceConstants.OVM_FAST); openPerspMode = store .getDefaultInt(IPreferenceConstants.OPEN_PERSP_MODE); openSameWindowButton .setSelection(IPreferenceConstants.OPM_ACTIVE_PAGE == openPerspMode); openNewWindowButton .setSelection(IPreferenceConstants.OPM_NEW_WINDOW == openPerspMode); String currentDefault = perspectiveRegistry.getDefaultPerspective(); int index = indexOf(currentDefault); if (index >= 0){ defaultPerspectiveId = currentDefault; updateList(); list.setSelection(index); } String newDefault = PrefUtil.getAPIPreferenceStore().getDefaultString( IWorkbenchPreferenceConstants.DEFAULT_PERSPECTIVE_ID); IPerspectiveDescriptor desc = null; if (newDefault != null) desc = workbench.getPerspectiveRegistry().findPerspectiveWithId(newDefault); if (desc == null) { newDefault = workbench.getPerspectiveRegistry().getDefaultPerspective(); } defaultPerspectiveId = newDefault; updateList(); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/51906c7657b87c44d33c8ff52b83937d118b2972/PerspectivesPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/PerspectivesPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3073,
7019,
1435,
288,
202,
202,
759,
4109,
26651,
12750,
202,
202,
45,
9624,
2257,
1707,
273,
4147,
22144,
3773,
18,
588,
1868,
1435,
9506,
202,
18,
588,
9624,
2257,
5621,
202,
202,
3190,
1767,
2309,
273,
1707,
18,
588,
1868,
1702,
12,
45,
9624,
2918,
18,
11437,
67,
12145,
67,
7038,
1769,
202,
202,
759,
3502,
1476,
487,
1431,
1158,
7144,
3260,
202,
202,
430,
261,
3190,
1767,
2309,
422,
467,
9624,
2918,
18,
51,
7397,
67,
15640,
13,
1082,
202,
3190,
1767,
2309,
273,
467,
9624,
2918,
18,
51,
7397,
67,
2046,
882,
31,
202,
202,
3190,
9538,
3616,
9506,
202,
18,
542,
6233,
12,
3190,
1767,
2309,
422,
467,
9624,
2918,
18,
51,
7397,
67,
3375,
22235,
1769,
202,
202,
3190,
12305,
3616,
9506,
202,
18,
542,
6233,
12,
3190,
1767,
2309,
422,
467,
9624,
2918,
18,
51,
7397,
67,
2046,
882,
1769,
202,
202,
3190,
14781,
84,
2309,
273,
1707,
9506,
202,
18,
588,
1868,
1702,
12,
45,
9624,
2918,
18,
11437,
67,
3194,
3118,
67,
7038,
1769,
202,
202,
3190,
8650,
3829,
3616,
9506,
202,
18,
542,
6233,
12,
45,
9624,
2918,
18,
3665,
49,
67,
13301,
67,
11219,
422,
1696,
14781,
84,
2309,
1769,
202,
202,
3190,
1908,
3829,
3616,
9506,
202,
18,
542,
6233,
12,
45,
9624,
2918,
18,
3665,
49,
67,
12917,
67,
23407,
422,
1696,
14781,
84,
2309,
1769,
202,
202,
780,
783,
1868,
273,
26651,
4243,
18,
588,
1868,
14781,
16772,
5621,
9506,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3073,
7019,
1435,
288,
202,
202,
759,
4109,
26651,
12750,
202,
202,
45,
9624,
2257,
1707,
273,
4147,
22144,
3773,
18,
588,
1868,
1435,
9506,
202,
18,
588,
9624,
2257,
5621,
202,
202,
3190,
1767,
2309,
273,
1707,
18,
588,
1868,
1702,
12,
45,
9624,
2918,
18,
11437,
67,
12145,
67,
7038,
1769,
202,
202,
759,
3502,
1476,
487,
1431,
1158,
7144,
3260,
202,
202,
430,
261,
3190,
1767,
2309,
422,
467,
9624,
2918,
18,
51,
7397,
67,
15640,
13,
1082,
202,
3190,
1767,
2309,
273,
467,
9624,
2918,
18,
51,
7397,
67,
2046,
882,
31,
202,
202,
3190,
9538,
3616,
9506,
202,
18,
542,
6233,
12,
3190,
1767,
2309,
422,
467,
9624,
2918,
18,
2
] |
_description.setText(Argo.localize("Cognitive", "message.no-item-selected"));
|
_description.setText(localize("message.no-item-selected"));
|
public void setTarget(Object item) { String message = ""; super.setTarget(item); Object target = item; if (target == null) { _description.setEditable(false); _description.setText(Argo.localize("Cognitive", "message.no-item-selected")); } else if (target instanceof ToDoItem) { ToDoItem tdi = (ToDoItem) target; _description.setEditable(false); _description.setEnabled(true); _description.setText(tdi.getDescription()); _description.setCaretPosition(0); } else if (target instanceof PriorityNode) { message = MessageFormat. format(Argo.localize("Cognitive", "message.branch-priority"), new Object [] { target.toString() }); _description.setEditable(false); _description.setText(message); return; } else if (target instanceof Critic) { message = MessageFormat. format(Argo.localize("Cognitive", "message.branch-critic"), new Object [] { target.toString() }); _description.setEditable(false); _description.setText(message); return; } else if (target instanceof MModelElement) { message = MessageFormat. format(Argo.localize("Cognitive", "message.branch-model"), new Object [] { target.toString() }); _description.setEditable(false); _description.setText(message); return; } else if (target instanceof Decision) { message = MessageFormat. format(Argo.localize("Cognitive", "message.branch-decision"), new Object [] { target.toString() }); _description.setText(message); return; } else if (target instanceof Goal) { message = MessageFormat. format(Argo.localize("Cognitive", "message.branch-goal"), new Object [] { target.toString() }); _description.setText(message); return; } else if (target instanceof KnowledgeTypeNode) { message = MessageFormat. format(Argo.localize("Cognitive", "message.branch-knowledge"), new Object [] { target.toString() }); _description.setText(message); return; } else { _description.setText(""); return; } }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/23464f9cbc3169e9d2f1919998cae2c59b514985/WizDescription.java/buggy/src_new/org/argouml/cognitive/ui/WizDescription.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
18367,
12,
921,
761,
13,
288,
202,
780,
883,
273,
1408,
31,
202,
9565,
18,
542,
2326,
12,
1726,
1769,
202,
921,
1018,
273,
761,
31,
202,
430,
261,
3299,
422,
446,
13,
288,
202,
565,
389,
3384,
18,
542,
15470,
12,
5743,
1769,
202,
565,
389,
3384,
18,
542,
1528,
12,
686,
3240,
18,
3729,
554,
2932,
39,
4198,
3720,
3113,
315,
2150,
18,
2135,
17,
1726,
17,
8109,
7923,
1769,
202,
97,
202,
12107,
309,
261,
3299,
1276,
2974,
3244,
1180,
13,
288,
202,
565,
2974,
3244,
1180,
268,
3211,
273,
261,
774,
3244,
1180,
13,
1018,
31,
202,
565,
389,
3384,
18,
542,
15470,
12,
5743,
1769,
202,
565,
389,
3384,
18,
542,
1526,
12,
3767,
1769,
202,
565,
389,
3384,
18,
542,
1528,
12,
88,
3211,
18,
588,
3291,
10663,
202,
565,
389,
3384,
18,
542,
39,
20731,
2555,
12,
20,
1769,
202,
97,
202,
12107,
309,
261,
3299,
1276,
13354,
907,
13,
288,
202,
565,
883,
273,
17377,
18,
1171,
740,
12,
686,
3240,
18,
3729,
554,
2932,
39,
4198,
3720,
3113,
315,
2150,
18,
7500,
17,
8457,
6,
3631,
15604,
394,
1033,
5378,
288,
9506,
282,
1018,
18,
10492,
1435,
1875,
4202,
15549,
202,
565,
389,
3384,
18,
542,
15470,
12,
5743,
1769,
202,
565,
389,
3384,
18,
542,
1528,
12,
2150,
1769,
202,
565,
327,
31,
202,
97,
202,
12107,
309,
261,
3299,
1276,
385,
583,
335,
13,
288,
202,
565,
883,
273,
17377,
18,
1171,
740,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
18367,
12,
921,
761,
13,
288,
202,
780,
883,
273,
1408,
31,
202,
9565,
18,
542,
2326,
12,
1726,
1769,
202,
921,
1018,
273,
761,
31,
202,
430,
261,
3299,
422,
446,
13,
288,
202,
565,
389,
3384,
18,
542,
15470,
12,
5743,
1769,
202,
565,
389,
3384,
18,
542,
1528,
12,
686,
3240,
18,
3729,
554,
2932,
39,
4198,
3720,
3113,
315,
2150,
18,
2135,
17,
1726,
17,
8109,
7923,
1769,
202,
97,
202,
12107,
309,
261,
3299,
1276,
2974,
3244,
1180,
13,
288,
202,
565,
2974,
3244,
1180,
268,
3211,
273,
261,
774,
3244,
1180,
13,
1018,
31,
202,
565,
389,
3384,
18,
542,
15470,
12,
5743,
1769,
202,
565,
389,
3384,
18,
542,
2
] |
return bs;
|
public Object baseSpecifierVirtual( Object baseSpecifier, boolean virtual ) { BaseSpecifier bs = (BaseSpecifier)baseSpecifier; bs.setVirtual( virtual ); return bs; }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/1408e4cd833b907fe44a1e7f51c25316752fa21f/DOMBuilder.java/clean/core/org.eclipse.cdt.core/dom/org/eclipse/cdt/internal/core/dom/DOMBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
1026,
21416,
6466,
12,
1033,
1026,
21416,
16,
1250,
5024,
262,
202,
95,
202,
202,
2171,
21416,
7081,
273,
261,
2171,
21416,
13,
1969,
21416,
31,
3196,
202,
2038,
18,
542,
6466,
12,
5024,
11272,
202,
202,
2463,
7081,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
1026,
21416,
6466,
12,
1033,
1026,
21416,
16,
1250,
5024,
262,
202,
95,
202,
202,
2171,
21416,
7081,
273,
261,
2171,
21416,
13,
1969,
21416,
31,
3196,
202,
2038,
18,
542,
6466,
12,
5024,
11272,
202,
202,
2463,
7081,
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
] |
|
prefs.setValue(SourceIndexer.CDT_INDEXER_TIMEOUT,timeOut);
|
public boolean performOk() { String timeOut = fTextControl.getText(); try { // Check the string number Integer.parseInt(timeOut); } catch (NumberFormatException ex){ timeOut = TIMEOUT_VALUE; } fOverlayStore.setValue(SourceIndexer.CDT_INDEXER_TIMEOUT, timeOut); fOverlayStore.propagate(); // Store IProblem Marker value in CCorePlugin Preferences Preferences prefs = CCorePlugin.getDefault().getPluginPreferences(); prefs.setValue(SourceIndexer.CDT_INDEXER_TIMEOUT,timeOut); prefs.setValue(AllTypesCache.ENABLE_BACKGROUND_TYPE_CACHE, fOverlayStore.getString(AllTypesCache.ENABLE_BACKGROUND_TYPE_CACHE)); CCorePlugin.getDefault().savePluginPreferences(); return true; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/b2719be9c55bf8783b265036c3e5b61aa7774932/WorkInProgressPreferencePage.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/WorkInProgressPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
8809,
1435,
288,
9506,
202,
780,
813,
1182,
273,
284,
1528,
3367,
18,
588,
1528,
5621,
202,
202,
698,
288,
1082,
202,
759,
2073,
326,
533,
1300,
1082,
202,
4522,
18,
2670,
1702,
12,
957,
1182,
1769,
202,
202,
97,
1044,
261,
1854,
9291,
431,
15329,
1082,
202,
957,
1182,
273,
24374,
67,
4051,
31,
202,
202,
97,
9506,
202,
74,
11627,
2257,
18,
542,
620,
12,
1830,
20877,
18,
39,
9081,
67,
9199,
654,
67,
9503,
16,
813,
1182,
1769,
9506,
202,
74,
11627,
2257,
18,
5986,
346,
340,
5621,
202,
202,
759,
202,
202,
2257,
467,
13719,
14742,
460,
316,
385,
4670,
3773,
28310,
3196,
202,
12377,
15503,
273,
385,
4670,
3773,
18,
588,
1868,
7675,
588,
3773,
12377,
5621,
9506,
202,
1484,
2556,
18,
542,
620,
12,
1830,
20877,
18,
39,
9081,
67,
9199,
654,
67,
9503,
16,
957,
1182,
1769,
202,
202,
1484,
2556,
18,
542,
620,
12,
1595,
2016,
1649,
18,
29377,
67,
8720,
20166,
67,
2399,
67,
8495,
16,
284,
11627,
2257,
18,
588,
780,
12,
1595,
2016,
1649,
18,
29377,
67,
8720,
20166,
67,
2399,
67,
8495,
10019,
202,
202,
39,
4670,
3773,
18,
588,
1868,
7675,
5688,
3773,
12377,
5621,
9506,
202,
2463,
638,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
8809,
1435,
288,
9506,
202,
780,
813,
1182,
273,
284,
1528,
3367,
18,
588,
1528,
5621,
202,
202,
698,
288,
1082,
202,
759,
2073,
326,
533,
1300,
1082,
202,
4522,
18,
2670,
1702,
12,
957,
1182,
1769,
202,
202,
97,
1044,
261,
1854,
9291,
431,
15329,
1082,
202,
957,
1182,
273,
24374,
67,
4051,
31,
202,
202,
97,
9506,
202,
74,
11627,
2257,
18,
542,
620,
12,
1830,
20877,
18,
39,
9081,
67,
9199,
654,
67,
9503,
16,
813,
1182,
1769,
9506,
202,
74,
11627,
2257,
18,
5986,
346,
340,
5621,
202,
202,
759,
202,
202,
2257,
467,
13719,
14742,
460,
316,
385,
4670,
3773,
28310,
3196,
202,
12377,
15503,
273,
385,
4670,
3773,
2
] |
|
if (value == null)
|
if (value == null || expression == null) {
|
public void validate(Object object) throws ValidationException { String fieldName = getFieldName(); Object value = this.getFieldValue(fieldName, object); // if there is no value - don't do comparison // if a value is required, a required validator should be added to the field if (value == null) return; if (!(value instanceof String) || !((String) value).matches(expression)) { addFieldError(fieldName, object); } }
|
16468 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/16468/81eaffa7783484a12fadd65bf865ad7aa297e0ab/RegexFieldValidator.java/buggy/src/java/com/opensymphony/xwork/validator/validators/RegexFieldValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1954,
12,
921,
733,
13,
1216,
15614,
288,
3639,
514,
4289,
273,
19561,
5621,
3639,
1033,
460,
273,
333,
18,
588,
13559,
12,
16163,
16,
733,
1769,
3639,
368,
309,
1915,
353,
1158,
460,
300,
2727,
1404,
741,
5826,
3639,
368,
309,
279,
460,
353,
1931,
16,
279,
1931,
4213,
1410,
506,
3096,
358,
326,
652,
3639,
309,
261,
1132,
422,
446,
747,
2652,
422,
446,
13,
288,
5411,
327,
31,
3639,
309,
16051,
12,
1132,
1276,
514,
13,
747,
401,
12443,
780,
13,
460,
2934,
8436,
12,
8692,
3719,
288,
5411,
11742,
668,
12,
16163,
16,
733,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1954,
12,
921,
733,
13,
1216,
15614,
288,
3639,
514,
4289,
273,
19561,
5621,
3639,
1033,
460,
273,
333,
18,
588,
13559,
12,
16163,
16,
733,
1769,
3639,
368,
309,
1915,
353,
1158,
460,
300,
2727,
1404,
741,
5826,
3639,
368,
309,
279,
460,
353,
1931,
16,
279,
1931,
4213,
1410,
506,
3096,
358,
326,
652,
3639,
309,
261,
1132,
422,
446,
747,
2652,
422,
446,
13,
288,
5411,
327,
31,
3639,
309,
16051,
12,
1132,
1276,
514,
13,
747,
401,
12443,
780,
13,
460,
2934,
8436,
12,
8692,
3719,
288,
5411,
11742,
668,
12,
16163,
16,
733,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
double ice = vehicle.getInventory().getAmountResourceStored(AmountResource.ICE); result = new Integer((int) ice);
|
try { double ice = vehicle.getInventory().getAmountResourceStored(AmountResource.ICE); result = new Integer((int) ice); } catch (InventoryException e) {}
|
public Object getValueAt(int rowIndex, int columnIndex) { Object result = null; Vehicle vehicle = (Vehicle)getUnit(rowIndex); // Invoke the appropriate method, switch is the best solution // althought disliked by some switch (columnIndex) { case NAME : { result = vehicle.getName(); } break; case TYPE : { result = vehicle.getDescription(); } break; case CREW : { if (vehicle instanceof Crewable) result = new Integer(((Crewable) vehicle).getCrewNum()); else result = new Integer(0); } break; case WATER : { double water = vehicle.getInventory().getAmountResourceStored(AmountResource.WATER); result = new Integer((int) water); } break; case FOOD : { double food = vehicle.getInventory().getAmountResourceStored(AmountResource.FOOD); result = new Integer((int) food); } break; case OXYGEN : { double oxygen = vehicle.getInventory().getAmountResourceStored(AmountResource.OXYGEN); result = new Integer((int) oxygen); } break; case METHANE : { double methane = vehicle.getInventory().getAmountResourceStored(AmountResource.METHANE); result = new Integer((int) methane); } break; case ROCK_SAMPLES : { double rockSamples = vehicle.getInventory().getAmountResourceStored(AmountResource.ROCK_SAMPLES); result = new Integer((int) rockSamples); } break; case SPEED : { result = new Integer(new Float(vehicle.getSpeed()).intValue()); } break; case DRIVER : { if (vehicle.getOperator() != null) { result = vehicle.getOperator().getOperatorName(); } else { result = null; } } break; // Status is a combination of Mechical failure and maintenance case STATUS : { result = vehicle.getStatus(); } break; case BEACON : { if (vehicle.isEmergencyBeacon()) result = "on"; else result = "off"; } break; case RESERVED : { if (vehicle.isReserved()) result = "true"; else result = "false"; } break; case MALFUNCTION: { Malfunction failure = vehicle.getMalfunctionManager().getMostSeriousMalfunction(); if (failure != null) result = failure.getName(); } break; case LOCATION : { Settlement settle = vehicle.getSettlement(); if (settle != null) { result = settle.getName(); } else { result = vehicle.getCoordinates().getFormattedString(); } } break; case DESTINATION : { result = null; VehicleMission mission = (VehicleMission) Simulation.instance().getMissionManager().getMissionForVehicle(vehicle); if (mission != null) { if (mission.getTravelStatus().equals(TravelMission.TRAVEL_TO_NAVPOINT)) { NavPoint destination = mission.getNextNavpoint(); if (destination.isSettlementAtNavpoint()) result = destination.getSettlement().getName(); else result = destination.getLocation().getFormattedString(); } } } break; case DESTDIST : { VehicleMission mission = (VehicleMission) Simulation.instance().getMissionManager().getMissionForVehicle(vehicle); if (mission != null) { try { result = new Integer(new Float(mission.getCurrentLegRemainingDistance()).intValue()); } catch (Exception e) { System.err.println("Error getting current leg remaining distance."); e.printStackTrace(System.err); } } else result = null; } break; case MISSION : { VehicleMission mission = (VehicleMission) Simulation.instance().getMissionManager().getMissionForVehicle(vehicle); if (mission != null) { result = mission.getName(); } else result = null; } break; case ICE : { double ice = vehicle.getInventory().getAmountResourceStored(AmountResource.ICE); result = new Integer((int) ice); } break; } return result; }
|
49678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49678/ae4143c6a4e851b9e2fbd88238e7a9305dbe87ee/VehicleTableModel.java/clean/org/mars_sim/msp/ui/standard/tool/monitor/VehicleTableModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2366,
861,
12,
474,
15361,
16,
509,
14882,
13,
288,
3639,
1033,
563,
273,
446,
31,
3639,
776,
73,
18870,
24815,
273,
261,
58,
73,
18870,
13,
588,
2802,
12,
492,
1016,
1769,
3639,
368,
14373,
326,
5505,
707,
16,
1620,
353,
326,
3796,
6959,
3639,
368,
524,
451,
83,
9540,
1015,
10473,
329,
635,
2690,
3639,
1620,
261,
2827,
1016,
13,
288,
5411,
648,
6048,
294,
288,
7734,
563,
273,
24815,
18,
17994,
5621,
5411,
289,
898,
31,
5411,
648,
3463,
294,
288,
2398,
202,
2088,
273,
24815,
18,
588,
3291,
5621,
5411,
289,
898,
31,
13491,
648,
9666,
59,
294,
288,
1082,
3639,
309,
261,
537,
18870,
1276,
5799,
91,
429,
13,
1082,
5411,
563,
273,
394,
2144,
12443,
12,
1996,
91,
429,
13,
24815,
2934,
588,
1996,
91,
2578,
10663,
1082,
3639,
469,
563,
273,
394,
2144,
12,
20,
1769,
5411,
289,
898,
31,
5411,
648,
678,
13641,
294,
288,
202,
3639,
1645,
16313,
273,
24815,
18,
588,
15059,
7675,
588,
6275,
1420,
18005,
12,
6275,
1420,
18,
59,
13641,
1769,
202,
3639,
563,
273,
394,
2144,
12443,
474,
13,
16313,
1769,
5411,
289,
898,
31,
5411,
648,
17634,
1212,
294,
288,
202,
3639,
1645,
284,
4773,
273,
24815,
18,
588,
15059,
7675,
588,
6275,
1420,
18005,
12,
6275,
1420,
18,
3313,
1212,
1769,
202,
3639,
563,
273,
394,
2144,
12443,
474,
13,
284,
4773,
1769,
5411,
289,
898,
31,
5411,
648,
531,
8546,
16652,
294,
288,
202,
3639,
1645,
320,
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,
2366,
861,
12,
474,
15361,
16,
509,
14882,
13,
288,
3639,
1033,
563,
273,
446,
31,
3639,
776,
73,
18870,
24815,
273,
261,
58,
73,
18870,
13,
588,
2802,
12,
492,
1016,
1769,
3639,
368,
14373,
326,
5505,
707,
16,
1620,
353,
326,
3796,
6959,
3639,
368,
524,
451,
83,
9540,
1015,
10473,
329,
635,
2690,
3639,
1620,
261,
2827,
1016,
13,
288,
5411,
648,
6048,
294,
288,
7734,
563,
273,
24815,
18,
17994,
5621,
5411,
289,
898,
31,
5411,
648,
3463,
294,
288,
2398,
202,
2088,
273,
24815,
18,
588,
3291,
5621,
5411,
289,
898,
31,
13491,
648,
9666,
59,
294,
288,
1082,
3639,
309,
261,
537,
18870,
1276,
5799,
91,
429,
13,
1082,
5411,
2
] |
public void earlyStartup() { final IWorkbench workbench = PlatformUI.getWorkbench(); workbench.getDisplay().asyncExec(new Runnable() { public void run() { try { TaskListExtensionReader.initExtensions(taskListWriter); taskRepositoryManager.readRepositories(); migrateOldContextFiles(); taskListManager.addListener(CONTEXT_TASK_ACTIVITY_LISTENER); taskListManager.addListener(taskListSaveManager); Workbench.getInstance().getActiveWorkbenchWindow().getShell().addShellListener(SHELL_LISTENER); MylarPlugin.getDefault().getPluginPreferences().addPropertyChangeListener(PREFERENCE_LISTENER); Workbench.getInstance().getActiveWorkbenchWindow().getShell().addDisposeListener(taskListSaveManager); restoreTaskHandlerState(); taskListManager.readOrCreateTaskList(); restoreTaskHandlerState(); } catch (Exception e) { MylarStatusHandler.fail(e, "Task List initialization failed", true); } } }); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/306ce77122e592db6d0387fffc5ee6facce0a418/MylarTaskListPlugin.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/MylarTaskListPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
11646,
22178,
1435,
288,
202,
202,
6385,
467,
2421,
22144,
1440,
22144,
273,
11810,
5370,
18,
588,
2421,
22144,
5621,
202,
202,
1252,
22144,
18,
588,
4236,
7675,
3810,
1905,
12,
2704,
10254,
1435,
288,
1082,
202,
482,
918,
1086,
1435,
288,
9506,
202,
698,
288,
6862,
25083,
202,
2174,
682,
3625,
2514,
18,
2738,
7513,
12,
4146,
682,
2289,
1769,
6862,
25083,
202,
4146,
3305,
1318,
18,
896,
18429,
5621,
6862,
202,
22083,
7617,
1042,
2697,
5621,
6862,
25083,
202,
4146,
682,
1318,
18,
1289,
2223,
12,
13181,
67,
15580,
67,
22271,
4107,
67,
26421,
1769,
6862,
202,
4146,
682,
1318,
18,
1289,
2223,
12,
4146,
682,
4755,
1318,
1769,
6862,
25083,
202,
2421,
22144,
18,
588,
1442,
7675,
588,
3896,
2421,
22144,
3829,
7675,
588,
13220,
7675,
1289,
13220,
2223,
12,
2664,
21943,
67,
26421,
1769,
6862,
202,
12062,
7901,
3773,
18,
588,
1868,
7675,
588,
3773,
12377,
7675,
1289,
1396,
15744,
12,
3670,
10830,
67,
26421,
1769,
6862,
202,
2421,
22144,
18,
588,
1442,
7675,
588,
3896,
2421,
22144,
3829,
7675,
588,
13220,
7675,
1289,
1669,
4150,
2223,
12,
4146,
682,
4755,
1318,
1769,
6862,
6862,
6862,
1082,
202,
13991,
2174,
1503,
1119,
5621,
6862,
202,
4146,
682,
1318,
18,
896,
17717,
2174,
682,
5621,
6862,
202,
13991,
2174,
1503,
1119,
5621,
9506,
202,
97,
1044,
261,
503,
425,
13,
288,
6862,
202,
12062,
7901,
1482,
1503,
18,
6870,
12,
73,
16,
315,
2174,
987,
10313,
2535,
3113,
638,
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,
918,
11646,
22178,
1435,
288,
202,
202,
6385,
467,
2421,
22144,
1440,
22144,
273,
11810,
5370,
18,
588,
2421,
22144,
5621,
202,
202,
1252,
22144,
18,
588,
4236,
7675,
3810,
1905,
12,
2704,
10254,
1435,
288,
1082,
202,
482,
918,
1086,
1435,
288,
9506,
202,
698,
288,
6862,
25083,
202,
2174,
682,
3625,
2514,
18,
2738,
7513,
12,
4146,
682,
2289,
1769,
6862,
25083,
202,
4146,
3305,
1318,
18,
896,
18429,
5621,
6862,
202,
22083,
7617,
1042,
2697,
5621,
6862,
25083,
202,
4146,
682,
1318,
18,
1289,
2223,
12,
13181,
67,
15580,
67,
22271,
4107,
67,
26421,
1769,
6862,
202,
4146,
682,
1318,
18,
1289,
2223,
12,
4146,
682,
4755,
1318,
1769,
6862,
25083,
202,
2421,
2
] |
||
if (menu instanceof SubMenuManager)
|
if (menu instanceof SubMenuManager) {
|
public IContributionItem find(String id) { IContributionItem item = getParentMenuManager().find(id); if (item instanceof SubContributionItem) // Return the item passed to us, not the wrapper. item = unwrap(item); if (item instanceof IMenuManager) { // if it is a menu manager wrap it before returning IMenuManager menu = (IMenuManager) item; if (menu instanceof SubMenuManager) // it it is already wrapped then remover the wrapper and // rewrap. We have a table of wrappers so we reuse wrappers // we create. menu = (IMenuManager) ((SubMenuManager) menu).getParent(); item = getWrapper(menu); } return item; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ActionSetMenuManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ActionSetMenuManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
442,
4027,
1180,
1104,
12,
780,
612,
13,
288,
3639,
467,
442,
4027,
1180,
761,
273,
5089,
4599,
1318,
7675,
4720,
12,
350,
1769,
3639,
309,
261,
1726,
1276,
2592,
442,
4027,
1180,
13,
5411,
368,
2000,
326,
761,
2275,
358,
584,
16,
486,
326,
4053,
18,
5411,
761,
273,
11014,
12,
1726,
1769,
3639,
309,
261,
1726,
1276,
467,
4599,
1318,
13,
288,
5411,
368,
309,
518,
353,
279,
3824,
3301,
2193,
518,
1865,
5785,
5411,
467,
4599,
1318,
3824,
273,
261,
3445,
2104,
1318,
13,
761,
31,
5411,
309,
261,
5414,
1276,
2592,
4599,
1318,
13,
288,
7734,
368,
518,
518,
353,
1818,
5805,
1508,
849,
1643,
326,
4053,
471,
1171,
368,
283,
4113,
18,
1660,
1240,
279,
1014,
434,
21589,
1427,
732,
11827,
21589,
7734,
368,
732,
752,
18,
7734,
3824,
273,
261,
3445,
2104,
1318,
13,
14015,
1676,
4599,
1318,
13,
3824,
2934,
588,
3054,
5621,
5411,
761,
273,
336,
3611,
12,
5414,
1769,
3639,
289,
3639,
327,
761,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
442,
4027,
1180,
1104,
12,
780,
612,
13,
288,
3639,
467,
442,
4027,
1180,
761,
273,
5089,
4599,
1318,
7675,
4720,
12,
350,
1769,
3639,
309,
261,
1726,
1276,
2592,
442,
4027,
1180,
13,
5411,
368,
2000,
326,
761,
2275,
358,
584,
16,
486,
326,
4053,
18,
5411,
761,
273,
11014,
12,
1726,
1769,
3639,
309,
261,
1726,
1276,
467,
4599,
1318,
13,
288,
5411,
368,
309,
518,
353,
279,
3824,
3301,
2193,
518,
1865,
5785,
5411,
467,
4599,
1318,
3824,
273,
261,
3445,
2104,
1318,
13,
761,
31,
5411,
309,
261,
5414,
1276,
2592,
4599,
1318,
13,
288,
7734,
368,
518,
518,
353,
1818,
5805,
1508,
849,
1643,
326,
4053,
471,
1171,
368,
283,
4113,
2
] |
super("ParamRef", "ParamRef(<Name>)", "Returns the current value of this parameter. If it is null, returns the default value.", new String[]{"fv#"});
|
super( "ParamRef", "ParamRef(<Name>)", "Returns the current value of this parameter. If it is null, returns the default value.", new String[]{"fv#"});
|
public ParamRefResolver() { super("ParamRef", "ParamRef(<Name>)", "Returns the current value of this parameter. If it is null, returns the default value.", new String[]{"fv#"}); }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/9a688e588ec59e84012f03e73f06a05a27fccd8e/ParameterFunDef.java/clean/src/main/mondrian/olap/fun/ParameterFunDef.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
3014,
1957,
4301,
1435,
288,
5411,
2240,
12,
315,
786,
1957,
3113,
315,
786,
1957,
12,
32,
461,
34,
2225,
16,
315,
1356,
326,
783,
460,
434,
333,
1569,
18,
971,
518,
353,
446,
16,
1135,
326,
805,
460,
1199,
16,
394,
514,
63,
7073,
6,
17679,
17133,
22938,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
3014,
1957,
4301,
1435,
288,
5411,
2240,
12,
315,
786,
1957,
3113,
315,
786,
1957,
12,
32,
461,
34,
2225,
16,
315,
1356,
326,
783,
460,
434,
333,
1569,
18,
971,
518,
353,
446,
16,
1135,
326,
805,
460,
1199,
16,
394,
514,
63,
7073,
6,
17679,
17133,
22938,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (!name.equals("method_missing")) { if (method.getVisibility().isPrivate() && scope == 0) { } else if (method.getVisibility().isProtected()) { RubyModule defined = klass; while (defined.isIncluded()) { defined = defined.getInternalClass(); } if (!ruby.getCurrentFrame().getSelf().isKindOf(defined)) { } } }
|
public final IRubyObject call(IRubyObject recv, String name, IRubyObject[] args, final int scope) { if (args == null) { args = new IRubyObject[0]; } CacheEntry ent = getRuntime().getMethodCache().getEntry(this, name); if (ent == null) { ent = getMethodBody(name, 0); } if (ent == null || ent.getMethod() == null) { if (scope == 3) { throw new NameError(ruby, "super: no superclass method '" + name + "'"); } IRubyObject[] newArgs = new IRubyObject[args.length + 1]; newArgs[0] = RubySymbol.newSymbol(getRuntime(), name); System.arraycopy(args, 0, newArgs, 1, args.length); return recv.callMethod("method_missing", newArgs); } RubyModule klass = ent.getOrigin(); name = ent.getOriginalName(); ICallable method = ent.getMethod(); // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, name, args, method, false); }
|
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/f05423516c2d1bfe54c4363eedb9654f7cfb6898/RubyModule.java/buggy/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
15908,
10340,
921,
745,
12,
7937,
10340,
921,
10665,
16,
514,
508,
16,
15908,
10340,
921,
8526,
833,
16,
727,
509,
2146,
13,
288,
3639,
309,
261,
1968,
422,
446,
13,
288,
5411,
833,
273,
394,
15908,
10340,
921,
63,
20,
15533,
3639,
289,
3639,
27657,
3281,
273,
18814,
7675,
588,
1305,
1649,
7675,
588,
1622,
12,
2211,
16,
508,
1769,
3639,
309,
261,
319,
422,
446,
13,
288,
5411,
3281,
273,
6272,
2250,
12,
529,
16,
374,
1769,
3639,
289,
3639,
309,
261,
319,
422,
446,
747,
3281,
18,
588,
1305,
1435,
422,
446,
13,
288,
5411,
309,
261,
4887,
422,
890,
13,
288,
430,
16051,
529,
18,
14963,
2932,
2039,
67,
7337,
6,
3719,
288,
309,
261,
2039,
18,
588,
10135,
7675,
291,
6014,
1435,
597,
2146,
422,
374,
13,
288,
225,
289,
469,
309,
261,
2039,
18,
588,
10135,
7675,
291,
15933,
10756,
288,
19817,
3120,
2553,
273,
7352,
31,
1323,
261,
2178,
18,
291,
19323,
10756,
288,
2553,
273,
2553,
18,
588,
3061,
797,
5621,
289,
309,
16051,
27768,
18,
588,
3935,
3219,
7675,
588,
10084,
7675,
291,
5677,
951,
12,
2178,
3719,
288,
225,
289,
289,
289,
282,
604,
394,
25473,
12,
27768,
16,
315,
9565,
30,
1158,
12098,
707,
2119,
397,
508,
397,
5862,
1769,
5411,
289,
5411,
15908,
10340,
921,
8526,
394,
2615,
273,
394,
15908,
10340,
921,
63,
1968,
18,
2469,
397,
404,
15533,
5411,
394,
2615,
63,
20,
65,
273,
19817,
5335,
18,
2704,
5335,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
15908,
10340,
921,
745,
12,
7937,
10340,
921,
10665,
16,
514,
508,
16,
15908,
10340,
921,
8526,
833,
16,
727,
509,
2146,
13,
288,
3639,
309,
261,
1968,
422,
446,
13,
288,
5411,
833,
273,
394,
15908,
10340,
921,
63,
20,
15533,
3639,
289,
3639,
27657,
3281,
273,
18814,
7675,
588,
1305,
1649,
7675,
588,
1622,
12,
2211,
16,
508,
1769,
3639,
309,
261,
319,
422,
446,
13,
288,
5411,
3281,
273,
6272,
2250,
12,
529,
16,
374,
1769,
3639,
289,
3639,
309,
261,
319,
422,
446,
747,
3281,
18,
588,
1305,
1435,
422,
446,
13,
288,
5411,
309,
261,
4887,
422,
890,
13,
288,
430,
16051,
529,
18,
14963,
2932,
2039,
67,
7337,
6,
3719,
2
] |
|
results.add( "GHI");
|
results.add( "GHI");
|
public void testCompletionInFunctionBodyQualifiedName() throws Exception { StringWriter writer = new StringWriter(); writer.write( "namespace ABC {\n"); writer.write( " struct DEF { int x; }; \n" ); writer.write( " struct GHI { float y;};\n"); writer.write( "}\n"); writer.write( "int main() { ABC::D }\n"); String code = writer.toString(); for( int j = 0; j< 2; ++j ) { String stringToCompleteAfter = (j == 0 ) ? "::" : "::D"; IASTCompletionNode node = parse( code, code.indexOf( stringToCompleteAfter) + stringToCompleteAfter.length() ); IASTNamespaceDefinition namespaceDefinition = null; Iterator i = callback.getCompilationUnit().getDeclarations(); while( i.hasNext() ) { IASTDeclaration d = (IASTDeclaration) i.next(); if( d instanceof IASTNamespaceDefinition ) if( ((IASTNamespaceDefinition)d).getName().equals( "ABC") ) { namespaceDefinition = (IASTNamespaceDefinition) d; break; } } assertNotNull( namespaceDefinition ); validateCompletionNode( node, ( j == 0 ) ? "" : "D", IASTCompletionNode.CompletionKind.SINGLE_NAME_REFERENCE, namespaceDefinition, false ); ILookupResult result = node.getCompletionScope().lookup( node.getCompletionPrefix(), new IASTNode.LookupKind[]{ IASTNode.LookupKind.ALL }, node.getCompletionContext() ); Set results = new HashSet(); results.add( "DEF"); if( j == 0 ) results.add( "GHI"); validateLookupResult(result, results ); } }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/d730ff0f947954910a1a59eb5fe977d0983fd23e/CompletionParseTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompletionParseTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11238,
382,
2083,
2250,
12345,
1435,
1216,
1185,
202,
95,
202,
202,
780,
2289,
2633,
273,
394,
17436,
5621,
202,
202,
6299,
18,
2626,
12,
315,
4937,
29253,
18890,
82,
8863,
202,
202,
6299,
18,
2626,
12,
315,
225,
1958,
25957,
288,
509,
619,
31,
289,
31,
521,
82,
6,
11272,
202,
202,
6299,
18,
2626,
12,
315,
225,
1958,
611,
29994,
288,
1431,
677,
31,
97,
9747,
82,
8863,
202,
202,
6299,
18,
2626,
12,
315,
6280,
82,
8863,
202,
202,
6299,
18,
2626,
12,
315,
474,
2774,
1435,
288,
29253,
2866,
40,
289,
64,
82,
8863,
202,
202,
780,
981,
273,
2633,
18,
10492,
5621,
9506,
202,
1884,
12,
509,
525,
273,
374,
31,
525,
32,
576,
31,
965,
78,
262,
202,
202,
95,
1082,
202,
780,
14134,
6322,
4436,
273,
261,
78,
422,
374,
262,
692,
31120,
294,
315,
2866,
40,
14432,
1082,
202,
45,
9053,
11238,
907,
756,
273,
1109,
12,
981,
16,
981,
18,
31806,
12,
14134,
6322,
4436,
13,
397,
14134,
6322,
4436,
18,
2469,
1435,
11272,
25083,
202,
45,
9053,
3402,
1852,
1981,
1852,
273,
446,
31,
1082,
202,
3198,
277,
273,
1348,
18,
588,
19184,
2802,
7675,
588,
21408,
5621,
1082,
202,
17523,
12,
277,
18,
5332,
2134,
1435,
262,
1082,
202,
95,
9506,
202,
45,
9053,
6094,
302,
273,
261,
45,
9053,
6094,
13,
277,
18,
4285,
5621,
9506,
202,
430,
12,
302,
1276,
467,
9053,
3402,
1852,
262,
4405,
202,
430,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11238,
382,
2083,
2250,
12345,
1435,
1216,
1185,
202,
95,
202,
202,
780,
2289,
2633,
273,
394,
17436,
5621,
202,
202,
6299,
18,
2626,
12,
315,
4937,
29253,
18890,
82,
8863,
202,
202,
6299,
18,
2626,
12,
315,
225,
1958,
25957,
288,
509,
619,
31,
289,
31,
521,
82,
6,
11272,
202,
202,
6299,
18,
2626,
12,
315,
225,
1958,
611,
29994,
288,
1431,
677,
31,
97,
9747,
82,
8863,
202,
202,
6299,
18,
2626,
12,
315,
6280,
82,
8863,
202,
202,
6299,
18,
2626,
12,
315,
474,
2774,
1435,
288,
29253,
2866,
40,
289,
64,
82,
8863,
202,
202,
780,
981,
273,
2633,
18,
10492,
5621,
9506,
202,
1884,
12,
509,
525,
273,
2
] |
byte dbl_bits[] = new byte[8];
|
byte dbl_bits[];
|
static BigInteger d2b(double d, int[] e, int[] bits) { byte dbl_bits[] = new byte[8]; int i, k, y, z, de; long dBits = Double.doubleToLongBits(d); int d0 = (int)(dBits >>> 32); int d1 = (int)(dBits); z = d0 & Frac_mask; d0 &= 0x7fffffff; /* clear sign bit, which we ignore */ if ((de = (int)(d0 >>> Exp_shift)) != 0) z |= Exp_msk1; if ((y = d1) != 0) { k = lo0bits(y); y >>>= k; if (k != 0) { stuffBits(dbl_bits, 4, y | z << (32 - k)); z >>= k; } else stuffBits(dbl_bits, 4, y); stuffBits(dbl_bits, 0, z); i = (z != 0) ? 2 : 1; } else { // JS_ASSERT(z); k = lo0bits(z); z >>>= k; stuffBits(dbl_bits, 0, z); k += 32; i = 1; } if (de != 0) { e[0] = de - Bias - (P-1) + k; bits[0] = P - k; } else { e[0] = de - Bias - (P-1) + 1 + k; bits[0] = 32*i - hi0bits(z); } return new BigInteger(dbl_bits); }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/f704383014615ef58aa4486e201a25ab27a81651/DToA.java/buggy/js/rhino/src/org/mozilla/javascript/DToA.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
10246,
302,
22,
70,
12,
9056,
302,
16,
509,
8526,
425,
16,
509,
8526,
4125,
13,
565,
288,
3639,
1160,
1319,
80,
67,
6789,
8526,
31,
3639,
509,
277,
16,
417,
16,
677,
16,
998,
16,
443,
31,
3639,
1525,
302,
6495,
273,
3698,
18,
9056,
30220,
6495,
12,
72,
1769,
3639,
509,
302,
20,
273,
261,
474,
21433,
72,
6495,
4080,
3847,
1769,
3639,
509,
302,
21,
273,
261,
474,
21433,
72,
6495,
1769,
3639,
998,
273,
302,
20,
473,
478,
8836,
67,
4455,
31,
3639,
302,
20,
12058,
374,
92,
27,
18217,
74,
31,
282,
1748,
2424,
1573,
2831,
16,
1492,
732,
2305,
1195,
3639,
309,
14015,
323,
273,
261,
474,
21433,
72,
20,
4080,
7784,
67,
4012,
3719,
480,
374,
13,
5411,
998,
5626,
7784,
67,
959,
79,
21,
31,
3639,
309,
14015,
93,
273,
302,
21,
13,
480,
374,
13,
288,
5411,
417,
273,
437,
20,
6789,
12,
93,
1769,
5411,
677,
4080,
33,
417,
31,
5411,
309,
261,
79,
480,
374,
13,
288,
7734,
10769,
6495,
12,
1966,
80,
67,
6789,
16,
1059,
16,
677,
571,
998,
2296,
261,
1578,
300,
417,
10019,
7734,
998,
23359,
417,
31,
5411,
289,
5411,
469,
7734,
10769,
6495,
12,
1966,
80,
67,
6789,
16,
1059,
16,
677,
1769,
5411,
10769,
6495,
12,
1966,
80,
67,
6789,
16,
374,
16,
998,
1769,
1082,
202,
77,
273,
261,
94,
480,
374,
13,
692,
576,
294,
404,
31,
3639,
289,
3639,
469,
288,
565,
368,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
10246,
302,
22,
70,
12,
9056,
302,
16,
509,
8526,
425,
16,
509,
8526,
4125,
13,
565,
288,
3639,
1160,
1319,
80,
67,
6789,
8526,
31,
3639,
509,
277,
16,
417,
16,
677,
16,
998,
16,
443,
31,
3639,
1525,
302,
6495,
273,
3698,
18,
9056,
30220,
6495,
12,
72,
1769,
3639,
509,
302,
20,
273,
261,
474,
21433,
72,
6495,
4080,
3847,
1769,
3639,
509,
302,
21,
273,
261,
474,
21433,
72,
6495,
1769,
3639,
998,
273,
302,
20,
473,
478,
8836,
67,
4455,
31,
3639,
302,
20,
12058,
374,
92,
27,
18217,
74,
31,
282,
1748,
2424,
1573,
2831,
16,
1492,
732,
2305,
1195,
3639,
309,
14015,
323,
273,
261,
474,
21433,
72,
20,
4080,
2
] |
public int getNdf() { return ndf; }
|
public int getNdf() { return ndf; }
|
public int getNdf() { return ndf; }
|
1612 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1612/0330f8331b2038088807459d5ce9cf7280175c10/ITrack.java/buggy/src/java/hep/lcio/implementation/event/ITrack.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
11069,
2180,
1435,
288,
202,
202,
2463,
290,
2180,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
509,
11069,
2180,
1435,
288,
202,
202,
2463,
290,
2180,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return myHost; }
|
if (a instanceof Account__Server) { return ((Account__Server)a).getHost(); } else { return ""; } }
|
public String getHost() { return myHost; }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/b13c667b376deb4a8f2c235ffd847b57616d23c4/ServerStructure.java/buggy/grendel/sources/grendel/prefs/base/ServerStructure.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
8580,
1435,
288,
565,
327,
3399,
2594,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
8580,
1435,
288,
565,
327,
3399,
2594,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
StringBuffer replyText = new StringBuffer(from); replyText.append(" has ");
|
String fromAddress = fromAccount.getName(); String fromDisplayName = fromAccount.getAttr(Provisioning.A_displayName, fromAddress); StringBuffer replyText = new StringBuffer(fromDisplayName);
|
public static MimeMessage createDefaultReply(String from, Invite inv, String replySubject, Verb verb, String additionalMsgBody, ZVCalendar iCal) throws ServiceException { // TODO: Localization StringBuffer replyText = new StringBuffer(from); replyText.append(" has "); if (VERB_ACCEPT.equals(verb)) replyText.append("accepted"); else if (VERB_DECLINE.equals(verb)) replyText.append("declined"); else if (VERB_TENTATIVE.equals(verb)) replyText.append("tentatively accepted"); else replyText.append(verb.toString()); replyText.append(" your invitation.\r\n"); if (additionalMsgBody != null) replyText.append("\r\n").append(additionalMsgBody).append("\r\n"); return createDefaultCalendarMessage( from, inv.getOrganizer().getAddress(), replySubject, replyText.toString(), inv.getUid(), iCal); }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/f339dd2e33c2d597d472845102b5615007d86bb7/CalendarMailSender.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mailbox/calendar/CalendarMailSender.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22059,
1079,
27346,
7817,
12,
780,
628,
16,
4766,
1171,
30981,
2198,
16,
4766,
1171,
514,
4332,
6638,
16,
4766,
1171,
26524,
6405,
16,
4766,
1171,
514,
3312,
3332,
2250,
16,
4766,
1171,
2285,
58,
7335,
277,
3005,
13,
565,
1216,
16489,
288,
3639,
368,
2660,
30,
3566,
1588,
3639,
6674,
4332,
1528,
273,
394,
6674,
12,
2080,
1769,
3639,
4332,
1528,
18,
6923,
2932,
711,
315,
1769,
3639,
309,
261,
2204,
38,
67,
21417,
18,
14963,
12,
16629,
3719,
5411,
4332,
1528,
18,
6923,
2932,
23847,
8863,
3639,
469,
309,
261,
2204,
38,
67,
23956,
3740,
18,
14963,
12,
16629,
3719,
5411,
4332,
1528,
18,
6923,
2932,
8840,
1920,
8863,
3639,
469,
309,
261,
2204,
38,
67,
56,
2222,
12992,
18,
14963,
12,
16629,
3719,
5411,
4332,
1528,
18,
6923,
2932,
88,
319,
17526,
8494,
8863,
3639,
469,
5411,
4332,
1528,
18,
6923,
12,
16629,
18,
10492,
10663,
3639,
4332,
1528,
18,
6923,
2932,
3433,
26441,
8403,
86,
64,
82,
8863,
3639,
309,
261,
13996,
3332,
2250,
480,
446,
13,
5411,
4332,
1528,
18,
6923,
31458,
86,
64,
82,
20387,
6923,
12,
13996,
3332,
2250,
2934,
6923,
31458,
86,
64,
82,
8863,
3639,
327,
27346,
7335,
1079,
12,
7734,
628,
16,
2198,
18,
588,
6001,
304,
1824,
7675,
588,
1887,
9334,
4332,
6638,
16,
1171,
4332,
1528,
18,
10492,
9334,
2198,
18,
588,
11994,
9334,
277,
3005,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22059,
1079,
27346,
7817,
12,
780,
628,
16,
4766,
1171,
30981,
2198,
16,
4766,
1171,
514,
4332,
6638,
16,
4766,
1171,
26524,
6405,
16,
4766,
1171,
514,
3312,
3332,
2250,
16,
4766,
1171,
2285,
58,
7335,
277,
3005,
13,
565,
1216,
16489,
288,
3639,
368,
2660,
30,
3566,
1588,
3639,
6674,
4332,
1528,
273,
394,
6674,
12,
2080,
1769,
3639,
4332,
1528,
18,
6923,
2932,
711,
315,
1769,
3639,
309,
261,
2204,
38,
67,
21417,
18,
14963,
12,
16629,
3719,
5411,
4332,
1528,
18,
6923,
2932,
23847,
8863,
3639,
469,
309,
261,
2204,
38,
67,
23956,
3740,
18,
14963,
12,
16629,
3719,
5411,
4332,
1528,
18,
6923,
2932,
8840,
1920,
8863,
3639,
469,
309,
261,
2204,
2
] |
return mb.getPriority () - ma.getPriority ();
|
return ma.getPriority () - mb.getPriority ();
|
public Collection findMXRecords(String hostname) { Record answers[] = rawDNSLookup(hostname, false, Type.MX); Collection servers = new Vector (); try { if (answers == null) { return servers; } MXRecord mxAnswers[] = new MXRecord[answers.length]; for (int i = 0; i < answers.length; i++) { mxAnswers[i] = (MXRecord)answers[i]; } Comparator prioritySort = new Comparator () { public int compare (Object a, Object b) { MXRecord ma = (MXRecord)a; MXRecord mb = (MXRecord)b; return mb.getPriority () - ma.getPriority (); } }; Arrays.sort (mxAnswers, prioritySort); for (int i = 0; i < mxAnswers.length; i++) { servers.add(mxAnswers[i].getTarget ().toString ()); } return servers; } finally { //If we found no results, we'll add the original domain name if //it's a valid DNS entry if (servers.size () == 0) { try { InetAddress.getByName(hostname); servers.add(hostname); } catch (UnknownHostException uhe) { } } } }
|
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/880a16a3cd0d763cc9cfa63f2767c6ccdda3ddd5/DNSServer.java/buggy/src/org/apache/james/dnsserver/DNSServer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
1104,
13874,
6499,
12,
780,
5199,
13,
288,
3639,
5059,
12415,
8526,
273,
1831,
11602,
6609,
12,
10358,
16,
629,
16,
1412,
18,
13874,
1769,
3639,
2200,
7084,
273,
394,
5589,
261,
1769,
3639,
775,
288,
5411,
309,
261,
22340,
422,
446,
13,
288,
7734,
327,
7084,
31,
5411,
289,
5411,
26929,
2115,
7938,
19543,
8526,
273,
394,
26929,
2115,
63,
22340,
18,
2469,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
12415,
18,
2469,
31,
277,
27245,
288,
7734,
7938,
19543,
63,
77,
65,
273,
261,
13874,
2115,
13,
22340,
63,
77,
15533,
5411,
289,
5411,
13359,
4394,
4416,
273,
394,
13359,
1832,
288,
7734,
1071,
509,
3400,
261,
921,
279,
16,
1033,
324,
13,
288,
10792,
26929,
2115,
10843,
273,
261,
13874,
2115,
13,
69,
31,
10792,
26929,
2115,
4903,
273,
261,
13874,
2115,
13,
70,
31,
10792,
327,
10843,
18,
588,
8183,
1832,
300,
4903,
18,
588,
8183,
261,
1769,
7734,
289,
5411,
289,
31,
5411,
5647,
18,
3804,
261,
11023,
19543,
16,
4394,
4416,
1769,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
7938,
19543,
18,
2469,
31,
277,
27245,
288,
7734,
7084,
18,
1289,
12,
11023,
19543,
63,
77,
8009,
588,
2326,
1832,
18,
10492,
1832,
1769,
5411,
289,
5411,
327,
7084,
31,
3639,
289,
3095,
288,
5411,
368,
2047,
732,
1392,
1158,
1686,
16,
732,
5614,
527,
326,
2282,
2461,
508,
309,
5411,
368,
305,
1807,
279,
923,
8858,
1241,
5411,
309,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
1104,
13874,
6499,
12,
780,
5199,
13,
288,
3639,
5059,
12415,
8526,
273,
1831,
11602,
6609,
12,
10358,
16,
629,
16,
1412,
18,
13874,
1769,
3639,
2200,
7084,
273,
394,
5589,
261,
1769,
3639,
775,
288,
5411,
309,
261,
22340,
422,
446,
13,
288,
7734,
327,
7084,
31,
5411,
289,
5411,
26929,
2115,
7938,
19543,
8526,
273,
394,
26929,
2115,
63,
22340,
18,
2469,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
12415,
18,
2469,
31,
277,
27245,
288,
7734,
7938,
19543,
63,
77,
65,
273,
261,
13874,
2115,
13,
22340,
63,
77,
15533,
5411,
289,
5411,
13359,
4394,
4416,
273,
394,
13359,
1832,
288,
7734,
1071,
509,
3400,
261,
921,
279,
16,
2
] |
} else if (m instanceof MobilityMessage) { if (agentMobility != null) { agentMobility.receiveMessage(m); } else { throw new RuntimeException( "Agent mobility disabled in node "+getIdentifier()); }
|
private void realReceiveMessage(final Message m) { try { if (m instanceof ComponentMessage) { ComponentMessage cm = (ComponentMessage)m; int operation = cm.getOperation(); if (operation == ComponentMessage.ADD) { // add ComponentDescription cd = cm.getComponentDescription(); StateTuple st = new StateTuple( cd, cm.getState()); // should do "add(st)", but requires Node fixes // // for now we do this work-around: String ip = cd.getInsertionPoint(); if (!("Node.AgentManager.Agent".equals(ip))) { throw new UnsupportedOperationException( "Only Agent ADD supported for now, not "+ip); } agentManager.add(st); } else { // not implemented yet! will be okay once Node is a Container throw new UnsupportedOperationException( "Unsupported ComponentMessage: "+m); } } else if (m instanceof MobilityMessage) { if (agentMobility != null) { agentMobility.receiveMessage(m); } else { throw new RuntimeException( "Agent mobility disabled in node "+getIdentifier()); } } else if (m.getTarget().equals(MessageAddress.SOCIETY)) { // we don't do anything with these. ignore it. } else { super.receiveMessage(m); } } catch (Exception e) { getLogger().warn("NodeAgent "+this+" received invalid message: "+m, e); } }
|
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/c3370b234baec937662510897e0d01d7e2d3ef46/NodeAgent.java/clean/core/src/org/cougaar/core/node/NodeAgent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2863,
11323,
1079,
12,
6385,
2350,
312,
13,
288,
565,
775,
288,
1377,
309,
261,
81,
1276,
5435,
1079,
13,
288,
3639,
5435,
1079,
5003,
273,
261,
1841,
1079,
13,
81,
31,
3639,
509,
1674,
273,
5003,
18,
588,
2988,
5621,
3639,
309,
261,
7624,
422,
5435,
1079,
18,
8355,
13,
288,
1850,
368,
527,
1850,
5435,
3291,
7976,
273,
5003,
18,
588,
1841,
3291,
5621,
1850,
3287,
9038,
384,
273,
2398,
394,
3287,
9038,
12,
7734,
7976,
16,
7734,
5003,
18,
588,
1119,
10663,
1850,
368,
1410,
741,
315,
1289,
12,
334,
2225,
16,
1496,
4991,
2029,
24436,
1850,
368,
1850,
368,
364,
2037,
732,
741,
333,
1440,
17,
12716,
30,
1850,
514,
2359,
273,
7976,
18,
588,
29739,
2148,
5621,
1850,
309,
16051,
2932,
907,
18,
3630,
1318,
18,
3630,
9654,
14963,
12,
625,
20349,
288,
5411,
604,
394,
13172,
12,
7734,
315,
3386,
8669,
11689,
3260,
364,
2037,
16,
486,
13773,
625,
1769,
1850,
289,
1850,
4040,
1318,
18,
1289,
12,
334,
1769,
3639,
289,
469,
288,
1850,
368,
486,
8249,
4671,
5,
225,
903,
506,
21194,
3647,
2029,
353,
279,
4039,
1850,
604,
394,
13172,
12,
2868,
315,
8544,
5435,
1079,
30,
13773,
81,
1769,
3639,
289,
1377,
289,
469,
309,
261,
81,
1276,
490,
947,
1889,
1079,
13,
288,
3639,
309,
261,
5629,
49,
947,
1889,
480,
446,
13,
288,
1850,
4040,
49,
947,
1889,
18,
18149,
1079,
12,
81,
1769,
3639,
289,
469,
288,
1850,
604,
394,
3235,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2863,
11323,
1079,
12,
6385,
2350,
312,
13,
288,
565,
775,
288,
1377,
309,
261,
81,
1276,
5435,
1079,
13,
288,
3639,
5435,
1079,
5003,
273,
261,
1841,
1079,
13,
81,
31,
3639,
509,
1674,
273,
5003,
18,
588,
2988,
5621,
3639,
309,
261,
7624,
422,
5435,
1079,
18,
8355,
13,
288,
1850,
368,
527,
1850,
5435,
3291,
7976,
273,
5003,
18,
588,
1841,
3291,
5621,
1850,
3287,
9038,
384,
273,
2398,
394,
3287,
9038,
12,
7734,
7976,
16,
7734,
5003,
18,
588,
1119,
10663,
1850,
368,
1410,
741,
315,
1289,
12,
334,
2225,
16,
1496,
4991,
2029,
24436,
1850,
368,
1850,
368,
364,
2037,
732,
741,
333,
1440,
17,
12716,
30,
1850,
514,
2359,
273,
2
] |
|
_taskManager.addTask(task);
|
((TaskInfo)task.getInfo()).setTaskNr(i);
|
public void runTasks() { List<ITask> executionPlan = GraphPlanner.makePlan(_taskGraphEditor.getGraph()); if (executionPlan == null) { JOptionPane.showMessageDialog(_positionComponent, "Cannot create plan. There is a loop!", "Cannot create plan!", JOptionPane.PLAIN_MESSAGE); //$NON-NLS-1$ } else { try { for (ITask task : executionPlan) { _taskManager.addTask(task); } _taskManager.saveTasks(); _taskManager.start(); } catch (PlatformException e) { LOGGER.fatal("Exception was thrown!", e); } } }
|
12741 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12741/bd4305cb2f7cefb1fe5910a4a489b0404ae37410/GraphTaskManagerGUI.java/buggy/salomon/platform/trunk/src/salomon/engine/controller/gui/graph/GraphTaskManagerGUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
6685,
1435,
202,
95,
202,
202,
682,
32,
1285,
835,
34,
4588,
5365,
273,
5601,
1749,
3818,
18,
6540,
5365,
24899,
4146,
4137,
6946,
18,
588,
4137,
10663,
202,
202,
430,
261,
16414,
5365,
422,
446,
13,
288,
1082,
202,
46,
1895,
8485,
18,
4500,
1079,
6353,
24899,
3276,
1841,
16,
6862,
202,
6,
4515,
752,
4995,
18,
6149,
353,
279,
2798,
5,
3113,
6862,
202,
6,
4515,
752,
4995,
5,
3113,
804,
1895,
8485,
18,
26549,
67,
8723,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
97,
469,
288,
1082,
202,
698,
288,
9506,
202,
1884,
261,
1285,
835,
1562,
294,
4588,
5365,
13,
288,
6862,
202,
67,
4146,
1318,
18,
1289,
2174,
12,
4146,
1769,
9506,
202,
97,
9506,
202,
67,
4146,
1318,
18,
5688,
6685,
5621,
9506,
202,
67,
4146,
1318,
18,
1937,
5621,
1082,
202,
97,
1044,
261,
8201,
503,
425,
13,
288,
9506,
202,
8757,
18,
30709,
2932,
503,
1703,
6718,
5,
3113,
425,
1769,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
1086,
6685,
1435,
202,
95,
202,
202,
682,
32,
1285,
835,
34,
4588,
5365,
273,
5601,
1749,
3818,
18,
6540,
5365,
24899,
4146,
4137,
6946,
18,
588,
4137,
10663,
202,
202,
430,
261,
16414,
5365,
422,
446,
13,
288,
1082,
202,
46,
1895,
8485,
18,
4500,
1079,
6353,
24899,
3276,
1841,
16,
6862,
202,
6,
4515,
752,
4995,
18,
6149,
353,
279,
2798,
5,
3113,
6862,
202,
6,
4515,
752,
4995,
5,
3113,
804,
1895,
8485,
18,
26549,
67,
8723,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
97,
469,
288,
1082,
202,
698,
288,
9506,
202,
1884,
261,
1285,
835,
1562,
294,
4588,
5365,
13,
288,
6862,
202,
67,
4146,
1318,
18,
2
] |
result = new Timestamp(millis - getDstOffset(millis)); break; } default: { result = null; throw new TdsNotImplemented("Don't now how to handle " + "date with size of " + len); }
|
result = new Timestamp(millis - getDstOffset(millis)); break; default: result = null; throw new TdsNotImplemented("Don't now how to handle " + "date with size of " + len);
|
private Object getDatetimeValue( int type) throws java.io.IOException, TdsException { // Some useful constants final long SECONDS_PER_DAY = 24L * 60L * 60L; final long DAYS_BETWEEN_1900_AND_1970 = 25567L; int len; Object result; if (type == SYBDATETIMN) { len = comm.getByte(); } else if (type == SYBDATETIME4) { len = 4; } else { len = 8; // XXX shouldn't this be an error? } switch (len) { case 0: { result = null; break; } case 8: { // It appears that a datetime is made of of 2 32bit ints // The first one is the number of days since 1900 // The second integer is the number of seconds*300 // The reason the calculations below are sliced up into // such small baby steps is to avoid a bug in JDK1.2.2's // runtime, which got confused by the original complexity. long tdsDays = (long) comm.getTdsInt(); long tdsTime = (long) comm.getTdsInt(); long sqlDays = tdsDays - DAYS_BETWEEN_1900_AND_1970; long seconds = sqlDays * SECONDS_PER_DAY + tdsTime / 300L; long micros = ((tdsTime % 300L) * 1000000L) / 300L; long millis = seconds * 1000L + micros / 1000L - zoneOffset; // Round up if appropriate. if (micros % 1000L >= 500L) { millis++; } result = new Timestamp(millis - getDstOffset(millis)); break; } case 4: { // Accroding to Transact SQL Reference // a smalldatetime is two small integers. // The first is the number of days past January 1, 1900, // the second smallint is the number of minutes past // midnight. long tdsDays = (long) comm.getTdsShort(); long minutes = (long) comm.getTdsShort(); long sqlDays = tdsDays - DAYS_BETWEEN_1900_AND_1970; long seconds = sqlDays * SECONDS_PER_DAY + minutes * 60L; long millis = seconds * 1000L - zoneOffset; result = new Timestamp(millis - getDstOffset(millis)); break; } default: { result = null; throw new TdsNotImplemented("Don't now how to handle " + "date with size of " + len); } } return result; }
|
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/36d7d34eb620f32e386322a293eaf58cf253a3a6/Tds.java/buggy/src/main/net/sourceforge/jtds/jdbc/Tds.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
24211,
2374,
620,
12,
5411,
509,
618,
13,
2398,
1216,
2252,
18,
1594,
18,
14106,
16,
399,
2377,
503,
565,
288,
3639,
368,
10548,
5301,
6810,
3639,
727,
1525,
17209,
67,
3194,
67,
10339,
273,
4248,
48,
380,
4752,
48,
380,
4752,
48,
31,
3639,
727,
1525,
27028,
67,
38,
19311,
67,
3657,
713,
67,
4307,
67,
3657,
7301,
273,
4561,
9599,
48,
31,
3639,
509,
562,
31,
3639,
1033,
563,
31,
3639,
309,
261,
723,
422,
7068,
38,
11102,
1584,
3445,
50,
13,
288,
5411,
562,
273,
1543,
18,
588,
3216,
5621,
3639,
289,
3639,
469,
309,
261,
723,
422,
7068,
38,
22968,
24,
13,
288,
5411,
562,
273,
1059,
31,
3639,
289,
3639,
469,
288,
5411,
562,
273,
1725,
31,
5411,
368,
11329,
12044,
1404,
333,
506,
392,
555,
35,
3639,
289,
3639,
1620,
261,
1897,
13,
288,
5411,
648,
374,
30,
5411,
288,
7734,
563,
273,
446,
31,
7734,
898,
31,
5411,
289,
5411,
648,
1725,
30,
5411,
288,
7734,
368,
2597,
14606,
716,
279,
3314,
353,
7165,
434,
434,
576,
3847,
3682,
15542,
7734,
368,
1021,
1122,
1245,
353,
326,
1300,
434,
4681,
3241,
5342,
713,
7734,
368,
1021,
2205,
3571,
353,
326,
1300,
434,
3974,
14,
19249,
7734,
368,
1021,
3971,
326,
20882,
5712,
854,
27353,
731,
1368,
7734,
368,
4123,
5264,
324,
24383,
6075,
353,
358,
4543,
279,
7934,
316,
24387,
21,
18,
22,
18,
22,
1807,
7734,
368,
3099,
16,
1492,
2363,
2195,
3668,
635,
326,
2282,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
24211,
2374,
620,
12,
5411,
509,
618,
13,
2398,
1216,
2252,
18,
1594,
18,
14106,
16,
399,
2377,
503,
565,
288,
3639,
368,
10548,
5301,
6810,
3639,
727,
1525,
17209,
67,
3194,
67,
10339,
273,
4248,
48,
380,
4752,
48,
380,
4752,
48,
31,
3639,
727,
1525,
27028,
67,
38,
19311,
67,
3657,
713,
67,
4307,
67,
3657,
7301,
273,
4561,
9599,
48,
31,
3639,
509,
562,
31,
3639,
1033,
563,
31,
3639,
309,
261,
723,
422,
7068,
38,
11102,
1584,
3445,
50,
13,
288,
5411,
562,
273,
1543,
18,
588,
3216,
5621,
3639,
289,
3639,
469,
309,
261,
723,
422,
7068,
38,
22968,
24,
13,
288,
5411,
562,
273,
1059,
31,
3639,
289,
3639,
469,
2
] |
}
|
try { Part p = new MimeBodyPart(headers,baos.toByteArray()); /*Enumeration enume = headers.getAllHeaders(); while (enume.hasMoreElements()) { Header h = (Header)enume.nextElement(); p.setHeader(h.getName(),h.getValue()); } */ Attachment a = new Attachment(p,url.toString()); } catch (MessagingException ex) { ex.printStackTrace(); } }
|
public void pushEOF() { }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/0cc63cb388a13f01532486f9d178811914e6d71b/MimeExternalObjectOperator.java/buggy/grendel/sources/grendel/mime/html/MimeExternalObjectOperator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1817,
12706,
1435,
288,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1817,
12706,
1435,
288,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for (int i = 0; i < info.length; i++ )
|
for (int i = 0; i < info.length; i++)
|
public static void insert(Context context, TableRow row) throws SQLException { String table = canonicalize(row.getTable()); StringBuffer sql = new StringBuffer() .append("insert into ") .append(table) .append(" ( "); ColumnInfo[] info = getColumnInfo(table); for (int i = 0; i < info.length; i++ ) { sql.append(i == 0 ? "" : ", ").append(info[i].getName()); } sql.append(") values ( "); // Values to insert for (int i = 0; i < info.length; i++ ) { sql.append(i == 0 ? "" : ", ").append("?"); } // Watch the syntax sql.append(")"); execute(context.getDBConnection(), sql.toString(), Arrays.asList(info), row); }
|
51882 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51882/35e9b51a53e45692911da86e993748ab576703b8/DatabaseManager.java/buggy/dspace/src/org/dspace/storage/rdbms/DatabaseManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2243,
12,
1042,
819,
16,
3555,
1999,
1027,
13,
3639,
1216,
6483,
565,
288,
3639,
514,
1014,
273,
25839,
12,
492,
18,
588,
1388,
10663,
3639,
6674,
1847,
273,
394,
6674,
1435,
5411,
263,
6923,
2932,
6387,
1368,
9369,
5411,
263,
6923,
12,
2121,
13,
5411,
263,
6923,
2932,
261,
315,
1769,
3639,
4753,
966,
8526,
1123,
273,
6716,
966,
12,
2121,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1123,
18,
2469,
31,
277,
27245,
3639,
288,
5411,
1847,
18,
6923,
12,
77,
422,
374,
692,
1408,
294,
3104,
315,
2934,
6923,
12,
1376,
63,
77,
8009,
17994,
10663,
3639,
289,
3639,
1847,
18,
6923,
2932,
13,
924,
261,
315,
1769,
3639,
368,
6876,
358,
2243,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1123,
18,
2469,
31,
277,
27245,
3639,
288,
5411,
1847,
18,
6923,
12,
77,
422,
374,
692,
1408,
294,
3104,
315,
2934,
6923,
2932,
7225,
1769,
3639,
289,
3639,
368,
9736,
326,
6279,
3639,
1847,
18,
6923,
2932,
2225,
1769,
3639,
1836,
12,
2472,
18,
588,
2290,
1952,
9334,
7734,
1847,
18,
10492,
9334,
7734,
5647,
18,
345,
682,
12,
1376,
3631,
7734,
1027,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2243,
12,
1042,
819,
16,
3555,
1999,
1027,
13,
3639,
1216,
6483,
565,
288,
3639,
514,
1014,
273,
25839,
12,
492,
18,
588,
1388,
10663,
3639,
6674,
1847,
273,
394,
6674,
1435,
5411,
263,
6923,
2932,
6387,
1368,
9369,
5411,
263,
6923,
12,
2121,
13,
5411,
263,
6923,
2932,
261,
315,
1769,
3639,
4753,
966,
8526,
1123,
273,
6716,
966,
12,
2121,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1123,
18,
2469,
31,
277,
27245,
3639,
288,
5411,
1847,
18,
6923,
12,
77,
422,
374,
692,
1408,
294,
3104,
315,
2934,
6923,
12,
1376,
63,
77,
8009,
17994,
10663,
3639,
289,
3639,
1847,
18,
6923,
2932,
13,
924,
261,
315,
1769,
2
] |
down_queue.close(false); if(down_handler != null && down_handler.isAlive()) { try { down_handler.join(THREAD_JOIN_TIMEOUT); } catch(Exception ex) { } if(down_handler != null && down_handler.isAlive()) { down_handler.interrupt(); try { down_handler.join(THREAD_JOIN_TIMEOUT); } catch(Exception ex) { } if(down_handler != null && down_handler.isAlive()) if(log.isErrorEnabled()) log.error("down_handler thread for " + getName() + " was interrupted (in order to be terminated), but is is still alive"); } } down_handler=null; }
|
down_queue.close(false); if (down_handler != null && down_handler.isAlive()) { try { down_handler.join(THREAD_JOIN_TIMEOUT); } catch (Exception ex) { } if (down_handler != null && down_handler.isAlive()) { down_handler.interrupt(); try { down_handler.join(THREAD_JOIN_TIMEOUT); } catch (Exception ex) { } if (down_handler != null && down_handler.isAlive()) { if (log.isErrorEnabled()) { log.error("down_handler thread for " + getName() + " was interrupted (in order to be terminated), but is is still alive"); } } } } down_handler = null; }
|
public void stopInternal() { up_queue.close(false); // this should terminate up_handler thread if(up_handler != null && up_handler.isAlive()) { try { up_handler.join(THREAD_JOIN_TIMEOUT); } catch(Exception ex) { } if(up_handler != null && up_handler.isAlive()) { up_handler.interrupt(); // still alive ? let's just kill it without mercy... try { up_handler.join(THREAD_JOIN_TIMEOUT); } catch(Exception ex) { } if(up_handler != null && up_handler.isAlive()) if(log.isErrorEnabled()) log.error("up_handler thread for " + getName() + " was interrupted (in order to be terminated), but is still alive"); } } up_handler=null; down_queue.close(false); // this should terminate down_handler thread if(down_handler != null && down_handler.isAlive()) { try { down_handler.join(THREAD_JOIN_TIMEOUT); } catch(Exception ex) { } if(down_handler != null && down_handler.isAlive()) { down_handler.interrupt(); // still alive ? let's just kill it without mercy... try { down_handler.join(THREAD_JOIN_TIMEOUT); } catch(Exception ex) { } if(down_handler != null && down_handler.isAlive()) if(log.isErrorEnabled()) log.error("down_handler thread for " + getName() + " was interrupted (in order to be terminated), but is is still alive"); } } down_handler=null; }
|
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/0e036edf9001e18055ae6cc1c31b906e1b1ac1b2/Protocol.java/buggy/src/org/jgroups/stack/Protocol.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2132,
3061,
1435,
288,
3639,
731,
67,
4000,
18,
4412,
12,
5743,
1769,
225,
368,
333,
1410,
10850,
731,
67,
4176,
2650,
3639,
309,
12,
416,
67,
4176,
480,
446,
597,
731,
67,
4176,
18,
291,
10608,
10756,
288,
5411,
775,
288,
7734,
731,
67,
4176,
18,
5701,
12,
21730,
67,
18800,
67,
9503,
1769,
5411,
289,
5411,
1044,
12,
503,
431,
13,
288,
5411,
289,
5411,
309,
12,
416,
67,
4176,
480,
446,
597,
731,
67,
4176,
18,
291,
10608,
10756,
288,
7734,
731,
67,
4176,
18,
31847,
5621,
225,
368,
4859,
13714,
692,
2231,
1807,
2537,
8673,
518,
2887,
4045,
2431,
2777,
7734,
775,
288,
10792,
731,
67,
4176,
18,
5701,
12,
21730,
67,
18800,
67,
9503,
1769,
7734,
289,
7734,
1044,
12,
503,
431,
13,
288,
7734,
289,
7734,
309,
12,
416,
67,
4176,
480,
446,
597,
731,
67,
4176,
18,
291,
10608,
10756,
10792,
309,
12,
1330,
18,
291,
668,
1526,
10756,
613,
18,
1636,
2932,
416,
67,
4176,
2650,
364,
315,
397,
1723,
1435,
397,
4766,
21821,
315,
1703,
15711,
261,
267,
1353,
358,
506,
14127,
3631,
1496,
353,
4859,
13714,
8863,
5411,
289,
3639,
289,
3639,
731,
67,
4176,
33,
2011,
31,
3639,
2588,
67,
4000,
18,
4412,
12,
5743,
1769,
368,
333,
1410,
10850,
2588,
67,
4176,
2650,
3639,
309,
12,
2378,
67,
4176,
480,
446,
597,
2588,
67,
4176,
18,
291,
10608,
10756,
288,
5411,
775,
288,
7734,
2588,
67,
4176,
18,
5701,
12,
21730,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2132,
3061,
1435,
288,
3639,
731,
67,
4000,
18,
4412,
12,
5743,
1769,
225,
368,
333,
1410,
10850,
731,
67,
4176,
2650,
3639,
309,
12,
416,
67,
4176,
480,
446,
597,
731,
67,
4176,
18,
291,
10608,
10756,
288,
5411,
775,
288,
7734,
731,
67,
4176,
18,
5701,
12,
21730,
67,
18800,
67,
9503,
1769,
5411,
289,
5411,
1044,
12,
503,
431,
13,
288,
5411,
289,
5411,
309,
12,
416,
67,
4176,
480,
446,
597,
731,
67,
4176,
18,
291,
10608,
10756,
288,
7734,
731,
67,
4176,
18,
31847,
5621,
225,
368,
4859,
13714,
692,
2231,
1807,
2537,
8673,
518,
2887,
4045,
2431,
2777,
7734,
775,
288,
10792,
731,
67,
4176,
18,
5701,
12,
21730,
67,
2
] |
byte[] tmp = new byte[4096]; int i = 0; while ((i = content.read(tmp)) >= 0) { outsream.write(tmp, 0, i); } if (outsream instanceof ChunkedOutputStream) { ((ChunkedOutputStream)outsream).finish();
|
IOUtils.copy(content, outstream); if (outstream instanceof ChunkedOutputStream) { ((ChunkedOutputStream)outstream).finish();
|
public void writeRequest(final HttpRequest request) throws IOException { if (request == null) { return; } ResponseWriter writer = new ResponseWriter(this.out, encoding); writer.println(request.getRequestLine().toString()); Iterator item = request.getHeaderIterator(); while (item.hasNext()) { Header header = (Header) item.next(); writer.print(header.toExternalForm()); } writer.println(); writer.flush(); OutputStream outsream = this.out; InputStream content = request.getBody(); if (content != null) { Header transferenc = request.getFirstHeader("Transfer-Encoding"); if (transferenc != null) { request.removeHeaders("Content-Length"); if (transferenc.getValue().indexOf("chunked") != -1) { outsream = new ChunkedOutputStream(outsream); } } byte[] tmp = new byte[4096]; int i = 0; while ((i = content.read(tmp)) >= 0) { outsream.write(tmp, 0, i); } if (outsream instanceof ChunkedOutputStream) { ((ChunkedOutputStream)outsream).finish(); } } outsream.flush(); }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/85e87eb03b9a6465ae882c88fd2172b625942e7c/HttpServerConnection.java/clean/providers/http/src/java/org/mule/providers/http/HttpServerConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
691,
12,
6385,
14069,
590,
13,
1216,
1860,
288,
3639,
309,
261,
2293,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
3639,
7846,
2633,
273,
394,
7846,
12,
2211,
18,
659,
16,
2688,
1769,
3639,
2633,
18,
8222,
12,
2293,
18,
588,
691,
1670,
7675,
10492,
10663,
3639,
4498,
761,
273,
590,
18,
588,
1864,
3198,
5621,
3639,
1323,
261,
1726,
18,
5332,
2134,
10756,
288,
5411,
4304,
1446,
273,
261,
1864,
13,
761,
18,
4285,
5621,
5411,
2633,
18,
1188,
12,
3374,
18,
869,
6841,
1204,
10663,
3639,
289,
3639,
2633,
18,
8222,
5621,
3639,
2633,
18,
11330,
5621,
3639,
8962,
28266,
793,
273,
333,
18,
659,
31,
3639,
5037,
913,
273,
590,
18,
588,
2250,
5621,
3639,
309,
261,
1745,
480,
446,
13,
288,
5411,
4304,
7412,
1331,
273,
590,
18,
588,
3759,
1864,
2932,
5912,
17,
4705,
8863,
5411,
309,
261,
13866,
1331,
480,
446,
13,
288,
7734,
590,
18,
4479,
3121,
2932,
1350,
17,
1782,
8863,
7734,
309,
261,
13866,
1331,
18,
24805,
7675,
31806,
2932,
6551,
329,
7923,
480,
300,
21,
13,
288,
10792,
28266,
793,
273,
394,
13021,
329,
4632,
12,
20125,
793,
1769,
7734,
289,
5411,
289,
5411,
1160,
8526,
1853,
273,
394,
1160,
63,
24,
5908,
26,
15533,
5411,
509,
277,
273,
374,
31,
5411,
1323,
14015,
77,
273,
913,
18,
896,
12,
5645,
3719,
1545,
374,
13,
288,
7734,
28266,
793,
18,
2626,
12,
5645,
16,
374,
16,
277,
1769,
5411,
289,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
691,
12,
6385,
14069,
590,
13,
1216,
1860,
288,
3639,
309,
261,
2293,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
3639,
7846,
2633,
273,
394,
7846,
12,
2211,
18,
659,
16,
2688,
1769,
3639,
2633,
18,
8222,
12,
2293,
18,
588,
691,
1670,
7675,
10492,
10663,
3639,
4498,
761,
273,
590,
18,
588,
1864,
3198,
5621,
3639,
1323,
261,
1726,
18,
5332,
2134,
10756,
288,
5411,
4304,
1446,
273,
261,
1864,
13,
761,
18,
4285,
5621,
5411,
2633,
18,
1188,
12,
3374,
18,
869,
6841,
1204,
10663,
3639,
289,
3639,
2633,
18,
8222,
5621,
3639,
2633,
18,
11330,
5621,
3639,
8962,
28266,
793,
273,
333,
18,
659,
31,
3639,
5037,
913,
273,
590,
2
] |
public Object getValue( Object object )
|
public Object getValue( Object object )
|
public MapToDescriptor() { super(); nsURI = "http://castor.exolab.org/"; xmlName = "map-to"; XMLFieldDescriptorImpl desc = null; XMLFieldHandler handler = null; FieldValidator fieldValidator = null; //-- initialize attribute descriptors //-- _table desc = new XMLFieldDescriptorImpl(java.lang.String.class, "_table", "table", NodeType.Attribute); handler = (new XMLFieldHandler() { public Object getValue( Object object ) throws IllegalStateException { MapTo target = (MapTo) object; return target.getTable(); } public void setValue( Object object, Object value) throws IllegalStateException, IllegalArgumentException { try { MapTo target = (MapTo) object; target.setTable( (java.lang.String) value); } catch (Exception ex) { throw new IllegalStateException(ex.toString()); } } public Object newInstance( Object parent ) { return new java.lang.String(); } } ); desc.setHandler(handler); desc.setNameSpaceURI("http://castor.exolab.org/"); addFieldDescriptor(desc); //-- validation code for: _table fieldValidator = new FieldValidator(); fieldValidator.setValidator(new NameValidator(NameValidator.NMTOKEN)); desc.setValidator(fieldValidator); //-- _xml desc = new XMLFieldDescriptorImpl(java.lang.String.class, "_xml", "xml", NodeType.Attribute); desc.setImmutable(true); handler = (new XMLFieldHandler() { public Object getValue( Object object ) throws IllegalStateException { MapTo target = (MapTo) object; return target.getXml(); } public void setValue( Object object, Object value) throws IllegalStateException, IllegalArgumentException { try { MapTo target = (MapTo) object; target.setXml( (java.lang.String) value); } catch (Exception ex) { throw new IllegalStateException(ex.toString()); } } public Object newInstance( Object parent ) { return null; } } ); desc.setHandler(handler); desc.setNameSpaceURI("http://castor.exolab.org/"); addFieldDescriptor(desc); //-- validation code for: _xml fieldValidator = new FieldValidator(); { //-- local scope StringValidator sv = new StringValidator(); sv.setWhiteSpace("preserved"); fieldValidator.setValidator(sv); } desc.setValidator(fieldValidator); //-- _nsUri desc = new XMLFieldDescriptorImpl(java.lang.String.class, "_nsUri", "ns-uri", NodeType.Attribute); desc.setImmutable(true); handler = (new XMLFieldHandler() { public Object getValue( Object object ) throws IllegalStateException { MapTo target = (MapTo) object; return target.getNsUri(); } public void setValue( Object object, Object value) throws IllegalStateException, IllegalArgumentException { try { MapTo target = (MapTo) object; target.setNsUri( (java.lang.String) value); } catch (Exception ex) { throw new IllegalStateException(ex.toString()); } } public Object newInstance( Object parent ) { return null; } } ); desc.setHandler(handler); desc.setNameSpaceURI("http://castor.exolab.org/"); addFieldDescriptor(desc); //-- validation code for: _nsUri fieldValidator = new FieldValidator(); { //-- local scope StringValidator sv = new StringValidator(); sv.setWhiteSpace("preserved"); fieldValidator.setValidator(sv); } desc.setValidator(fieldValidator); //-- _nsPrefix desc = new XMLFieldDescriptorImpl(java.lang.String.class, "_nsPrefix", "ns-prefix", NodeType.Attribute); handler = (new XMLFieldHandler() { public Object getValue( Object object ) throws IllegalStateException { MapTo target = (MapTo) object; return target.getNsPrefix(); } public void setValue( Object object, Object value) throws IllegalStateException, IllegalArgumentException { try { MapTo target = (MapTo) object; target.setNsPrefix( (java.lang.String) value); } catch (Exception ex) { throw new IllegalStateException(ex.toString()); } } public Object newInstance( Object parent ) { return new java.lang.String(); } } ); desc.setHandler(handler); desc.setNameSpaceURI("http://castor.exolab.org/"); addFieldDescriptor(desc); //-- validation code for: _nsPrefix fieldValidator = new FieldValidator(); fieldValidator.setValidator(new NameValidator(NameValidator.NMTOKEN)); desc.setValidator(fieldValidator); //-- _ldapDn desc = new XMLFieldDescriptorImpl(java.lang.String.class, "_ldapDn", "ldap-dn", NodeType.Attribute); desc.setImmutable(true); handler = (new XMLFieldHandler() { public Object getValue( Object object ) throws IllegalStateException { MapTo target = (MapTo) object; return target.getLdapDn(); } public void setValue( Object object, Object value) throws IllegalStateException, IllegalArgumentException { try { MapTo target = (MapTo) object; target.setLdapDn( (java.lang.String) value); } catch (Exception ex) { throw new IllegalStateException(ex.toString()); } } public Object newInstance( Object parent ) { return null; } } ); desc.setHandler(handler); desc.setNameSpaceURI("http://castor.exolab.org/"); addFieldDescriptor(desc); //-- validation code for: _ldapDn fieldValidator = new FieldValidator(); { //-- local scope StringValidator sv = new StringValidator(); sv.setWhiteSpace("preserved"); fieldValidator.setValidator(sv); } desc.setValidator(fieldValidator); //-- _ldapOc desc = new XMLFieldDescriptorImpl(java.lang.String.class, "_ldapOc", "ldap-oc", NodeType.Attribute); desc.setImmutable(true); handler = (new XMLFieldHandler() { public Object getValue( Object object ) throws IllegalStateException { MapTo target = (MapTo) object; return target.getLdapOc(); } public void setValue( Object object, Object value) throws IllegalStateException, IllegalArgumentException { try { MapTo target = (MapTo) object; target.setLdapOc( (java.lang.String) value); } catch (Exception ex) { throw new IllegalStateException(ex.toString()); } } public Object newInstance( Object parent ) { return null; } } ); desc.setHandler(handler); desc.setNameSpaceURI("http://castor.exolab.org/"); addFieldDescriptor(desc); //-- validation code for: _ldapOc fieldValidator = new FieldValidator(); { //-- local scope StringValidator sv = new StringValidator(); sv.setWhiteSpace("preserved"); fieldValidator.setValidator(sv); } desc.setValidator(fieldValidator); //-- initialize element descriptors } //-- org.exolab.castor.mapping.xml.MapToDescriptor()
|
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/d7fabc686ef68f29e8236fd9afc60109670d1fd4/MapToDescriptor.java/clean/trunk/castor-2002/castor/src/main/org/exolab/castor/mapping/xml/MapToDescriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1635,
774,
3187,
1435,
288,
3639,
2240,
5621,
3639,
3153,
3098,
273,
315,
2505,
2207,
4155,
280,
18,
338,
355,
378,
18,
3341,
4898,
31,
3639,
2025,
461,
273,
315,
1458,
17,
869,
14432,
3639,
3167,
974,
3187,
2828,
225,
3044,
6647,
273,
446,
31,
3639,
3167,
974,
1503,
540,
1838,
3639,
273,
446,
31,
3639,
2286,
5126,
1850,
652,
5126,
273,
446,
31,
3639,
368,
413,
4046,
1566,
14215,
7734,
368,
413,
389,
2121,
3639,
3044,
273,
394,
3167,
974,
3187,
2828,
12,
6290,
18,
4936,
18,
780,
18,
1106,
16,
4192,
2121,
3113,
315,
2121,
3113,
20896,
18,
1499,
1769,
3639,
1838,
273,
261,
2704,
3167,
974,
1503,
1435,
288,
5411,
1071,
1033,
2366,
12,
1033,
733,
262,
1171,
1216,
5477,
5411,
288,
7734,
1635,
774,
1018,
273,
261,
863,
774,
13,
733,
31,
7734,
327,
1018,
18,
588,
1388,
5621,
5411,
289,
5411,
1071,
918,
5524,
12,
1033,
733,
16,
1033,
460,
13,
1171,
1216,
5477,
16,
2754,
5411,
288,
7734,
775,
288,
10792,
1635,
774,
1018,
273,
261,
863,
774,
13,
733,
31,
10792,
1018,
18,
542,
1388,
12,
261,
6290,
18,
4936,
18,
780,
13,
460,
1769,
7734,
289,
7734,
1044,
261,
503,
431,
13,
288,
10792,
604,
394,
5477,
12,
338,
18,
10492,
10663,
7734,
289,
5411,
289,
5411,
1071,
1033,
5984,
12,
1033,
982,
262,
288,
7734,
327,
394,
2252,
18,
4936,
18,
780,
5621,
5411,
289,
3639,
289,
11272,
3639,
3044,
18,
542,
1503,
12,
4176,
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,
377,
1071,
1635,
774,
3187,
1435,
288,
3639,
2240,
5621,
3639,
3153,
3098,
273,
315,
2505,
2207,
4155,
280,
18,
338,
355,
378,
18,
3341,
4898,
31,
3639,
2025,
461,
273,
315,
1458,
17,
869,
14432,
3639,
3167,
974,
3187,
2828,
225,
3044,
6647,
273,
446,
31,
3639,
3167,
974,
1503,
540,
1838,
3639,
273,
446,
31,
3639,
2286,
5126,
1850,
652,
5126,
273,
446,
31,
3639,
368,
413,
4046,
1566,
14215,
7734,
368,
413,
389,
2121,
3639,
3044,
273,
394,
3167,
974,
3187,
2828,
12,
6290,
18,
4936,
18,
780,
18,
1106,
16,
4192,
2121,
3113,
315,
2121,
3113,
20896,
18,
1499,
1769,
3639,
1838,
273,
261,
2704,
3167,
974,
1503,
1435,
288,
5411,
1071,
1033,
2366,
12,
2
] |
_nodeID = _dbManager.insert(insert, "node_id", GEN_NAME);
|
_dbManager.insert(insert);
|
public int save() throws PlatformException, DBException { // assuming, that old records has been deleted SQLInsert insert = new SQLInsert(TABLE_NAME); insert.addValue("tree_id", _treeID); insert.addValue("attribute_item_id", _attributeItemID); insert.addValue("parent_node_id", _parentNodeID); insert.addValue("parent_edge_value", _parentEdgeValue); insert.addValue("node_value", _nodeValue); LOGGER.debug("insert: " + insert.getQuery()); try { _nodeID = _dbManager.insert(insert, "node_id", GEN_NAME); } catch (SQLException e) { LOGGER.fatal("", e); throw new DBException("Cannot save item!", e); } return _nodeID; }
|
12741 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12741/829435fae0d82a653959e953c6705cab478d7ae5/TreeNodeInfo.java/buggy/salomon/platform/trunk/src/salomon/engine/platform/data/tree/TreeNodeInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1923,
1435,
1216,
11810,
503,
16,
23495,
565,
288,
3639,
368,
15144,
16,
716,
1592,
3853,
711,
2118,
4282,
3639,
3063,
4600,
2243,
273,
394,
3063,
4600,
12,
7775,
67,
1985,
1769,
3639,
2243,
18,
1289,
620,
2932,
3413,
67,
350,
3113,
389,
3413,
734,
1769,
3639,
2243,
18,
1289,
620,
2932,
4589,
67,
1726,
67,
350,
3113,
389,
4589,
1180,
734,
1769,
3639,
2243,
18,
1289,
620,
2932,
2938,
67,
2159,
67,
350,
3113,
389,
2938,
22229,
1769,
3639,
2243,
18,
1289,
620,
2932,
2938,
67,
7126,
67,
1132,
3113,
389,
2938,
6098,
620,
1769,
3639,
2243,
18,
1289,
620,
2932,
2159,
67,
1132,
3113,
389,
2159,
620,
1769,
3639,
4145,
18,
4148,
2932,
6387,
30,
315,
397,
2243,
18,
588,
1138,
10663,
3639,
775,
288,
5411,
389,
1966,
1318,
18,
6387,
12,
6387,
1769,
3639,
289,
1044,
261,
23116,
425,
13,
288,
5411,
4145,
18,
30709,
2932,
3113,
425,
1769,
5411,
604,
394,
23495,
2932,
4515,
1923,
761,
5,
3113,
425,
1769,
3639,
289,
3639,
327,
389,
2159,
734,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1923,
1435,
1216,
11810,
503,
16,
23495,
565,
288,
3639,
368,
15144,
16,
716,
1592,
3853,
711,
2118,
4282,
3639,
3063,
4600,
2243,
273,
394,
3063,
4600,
12,
7775,
67,
1985,
1769,
3639,
2243,
18,
1289,
620,
2932,
3413,
67,
350,
3113,
389,
3413,
734,
1769,
3639,
2243,
18,
1289,
620,
2932,
4589,
67,
1726,
67,
350,
3113,
389,
4589,
1180,
734,
1769,
3639,
2243,
18,
1289,
620,
2932,
2938,
67,
2159,
67,
350,
3113,
389,
2938,
22229,
1769,
3639,
2243,
18,
1289,
620,
2932,
2938,
67,
7126,
67,
1132,
3113,
389,
2938,
6098,
620,
1769,
3639,
2243,
18,
1289,
620,
2932,
2159,
67,
1132,
3113,
389,
2159,
620,
1769,
3639,
4145,
18,
4148,
2932,
6387,
2
] |
if (! foundOne) {
|
if (!foundOne) {
|
public final Object endCheck(AnnotationInstance annotation, AnnotationInstance[] parentAnnotations, MemberDeclaration classMember, Set wasPresent, Map checkResults) { // // Check mutually-exclusive attributes and child annotations. // String[][] mutuallyExclusiveAttrs = getMutuallyExclusiveAttrs(); for (int i = 0; mutuallyExclusiveAttrs != null && i < mutuallyExclusiveAttrs.length; ++i) { String alreadyFound = null; for (int j = 0; j < mutuallyExclusiveAttrs[i].length; ++j) { String thisAttr = mutuallyExclusiveAttrs[i][j]; if (wasPresent.contains(thisAttr)) { if (alreadyFound == null) { alreadyFound = thisAttr; } else { String errorKey = "error.atmost-one-may-exist-" + mutuallyExclusiveAttrs[i].length; getDiagnostics().addErrorArrayArgs(annotation, errorKey, mutuallyExclusiveAttrs[i]); } } } } // // Check required attributes and child annotations. // String[][] requiredAttrs = getRequiredAttrs(); for (int i = 0; requiredAttrs != null && i < requiredAttrs.length; ++i) { boolean foundOne = false; for (int j = 0; j < requiredAttrs[i].length; ++j) { String thisAttr = requiredAttrs[i][j]; if (wasPresent.contains(thisAttr)) { foundOne = true; break; } } if (! foundOne) { String errorKey = "error.atleast-one-must-exist-" + requiredAttrs[i].length; getDiagnostics().addErrorArrayArgs(annotation, errorKey, requiredAttrs[i]); } } // // Check inter-dependencies for attributes and child annotations. // String[][] attrDependencies = getAttrDependencies(); for (int i = 0; attrDependencies != null && i < attrDependencies.length; ++i) { String thisAttr = attrDependencies[i][0]; if (wasPresent.contains(thisAttr)) { boolean foundOne = false; for (int j = 1; j < attrDependencies[i].length; ++j) { if (wasPresent.contains(attrDependencies[i][j])) { foundOne = true; break; } } if (! foundOne) { String key = "error.attr-dependency-not-found-" + (attrDependencies[i].length - 1); getDiagnostics().addErrorArrayArgs(annotation, key, attrDependencies[i]); } } } return onEndCheck(annotation, parentAnnotations, classMember, checkResults); // for derived classes }
|
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/74cda7c2aa1023c821782bc0e607fe2cf90d80d3/AnnotationGrammar.java/buggy/ti/jars/core/src/java/org/apache/ti/compiler/internal/AnnotationGrammar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
1033,
679,
1564,
12,
3257,
1442,
3204,
16,
6090,
1442,
8526,
982,
5655,
16,
4766,
8596,
6094,
667,
4419,
16,
1000,
1703,
6351,
16,
1635,
866,
3447,
13,
288,
3639,
368,
3639,
368,
2073,
4318,
3452,
17,
23792,
1677,
471,
1151,
5617,
18,
3639,
368,
3639,
514,
63,
6362,
65,
4318,
3452,
17075,
8262,
273,
2108,
322,
3452,
17075,
8262,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
4318,
3452,
17075,
8262,
480,
446,
597,
277,
411,
4318,
3452,
17075,
8262,
18,
2469,
31,
965,
77,
13,
288,
5411,
514,
1818,
2043,
273,
446,
31,
5411,
364,
261,
474,
525,
273,
374,
31,
525,
411,
4318,
3452,
17075,
8262,
63,
77,
8009,
2469,
31,
965,
78,
13,
288,
7734,
514,
333,
3843,
273,
4318,
3452,
17075,
8262,
63,
77,
6362,
78,
15533,
7734,
309,
261,
17416,
6351,
18,
12298,
12,
2211,
3843,
3719,
288,
10792,
309,
261,
17583,
2043,
422,
446,
13,
288,
13491,
1818,
2043,
273,
333,
3843,
31,
10792,
289,
469,
288,
13491,
514,
555,
653,
273,
315,
1636,
18,
270,
10329,
17,
476,
17,
24877,
17,
7398,
10951,
397,
4318,
3452,
17075,
8262,
63,
77,
8009,
2469,
31,
13491,
2343,
8852,
13936,
7675,
1289,
668,
1076,
2615,
12,
11495,
16,
555,
653,
16,
4318,
3452,
17075,
8262,
63,
77,
19226,
10792,
289,
7734,
289,
5411,
289,
3639,
289,
3639,
368,
3639,
368,
2073,
1931,
1677,
471,
1151,
5617,
18,
3639,
368,
3639,
514,
63,
6362,
65,
1931,
8262,
273,
19881,
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,
727,
1033,
679,
1564,
12,
3257,
1442,
3204,
16,
6090,
1442,
8526,
982,
5655,
16,
4766,
8596,
6094,
667,
4419,
16,
1000,
1703,
6351,
16,
1635,
866,
3447,
13,
288,
3639,
368,
3639,
368,
2073,
4318,
3452,
17,
23792,
1677,
471,
1151,
5617,
18,
3639,
368,
3639,
514,
63,
6362,
65,
4318,
3452,
17075,
8262,
273,
2108,
322,
3452,
17075,
8262,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
4318,
3452,
17075,
8262,
480,
446,
597,
277,
411,
4318,
3452,
17075,
8262,
18,
2469,
31,
965,
77,
13,
288,
5411,
514,
1818,
2043,
273,
446,
31,
5411,
364,
261,
474,
525,
273,
374,
31,
525,
411,
4318,
3452,
17075,
8262,
63,
77,
8009,
2469,
31,
965,
2
] |
return getElseNode().eval(ruby, self);
|
return self.eval(getElseNode());
|
public RubyObject eval(Ruby ruby, RubyObject self) { ruby.setSourceLine(getLine()); if (getConditionNode().eval(ruby, self).isTrue()) { return getBodyNode().eval(ruby, self); } else { return getElseNode().eval(ruby, self); } }
|
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/12748a4b8db7fd4836cd04c81e3cf2343735bfb6/IfNode.java/buggy/org/jruby/nodes/IfNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
5302,
12,
54,
10340,
22155,
16,
19817,
921,
365,
13,
288,
3639,
22155,
18,
542,
1830,
1670,
12,
588,
1670,
10663,
7734,
309,
261,
588,
3418,
907,
7675,
8622,
12,
27768,
16,
365,
2934,
291,
5510,
10756,
288,
5411,
327,
7587,
907,
7675,
8622,
12,
27768,
16,
365,
1769,
3639,
289,
469,
288,
5411,
327,
365,
18,
8622,
12,
588,
12427,
907,
10663,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
5302,
12,
54,
10340,
22155,
16,
19817,
921,
365,
13,
288,
3639,
22155,
18,
542,
1830,
1670,
12,
588,
1670,
10663,
7734,
309,
261,
588,
3418,
907,
7675,
8622,
12,
27768,
16,
365,
2934,
291,
5510,
10756,
288,
5411,
327,
7587,
907,
7675,
8622,
12,
27768,
16,
365,
1769,
3639,
289,
469,
288,
5411,
327,
365,
18,
8622,
12,
588,
12427,
907,
10663,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} next.successNotOverload(); finish(SUCCESS, next); return;
|
return; }else{ next.successNotOverload(); finish(SUCCESS, next); return; }
|
private void realRun() { HashSet nodesRoutedTo = new HashSet(); HashSet nodesNotIgnored = new HashSet(); while(true) { if(receiveFailed) return; // don't need to set status as killed by InsertHandler if(htl == 0) { // Send an InsertReply back finish(SUCCESS, null); return; } // Route it PeerNode next; // Can backtrack, so only route to nodes closer than we are to target. double nextValue; next = node.peers.closerPeer(source, nodesRoutedTo, nodesNotIgnored, target, true); if(next != null) nextValue = next.getLocation().getValue(); else nextValue = -1.0; if(next == null) { // Backtrack finish(ROUTE_NOT_FOUND, null); return; } Logger.minor(this, "Routing insert to "+next); nodesRoutedTo.add(next); if(PeerManager.distance(target, nextValue) > PeerManager.distance(target, closestLocation)) { Logger.minor(this, "Backtracking: target="+target+" next="+nextValue+" closest="+closestLocation); htl = node.decrementHTL(source, htl); } Message req = DMT.createFNPInsertRequest(uid, htl, myKey, closestLocation); // Wait for ack or reject... will come before even a locally generated DataReply MessageFilter mfAccepted = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(ACCEPTED_TIMEOUT).setType(DMT.FNPAccepted); MessageFilter mfRejectedLoop = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(ACCEPTED_TIMEOUT).setType(DMT.FNPRejectedLoop); MessageFilter mfRejectedOverload = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(ACCEPTED_TIMEOUT).setType(DMT.FNPRejectedOverload); // mfRejectedOverload must be the last thing in the or // So its or pointer remains null // Otherwise we need to recreate it below mfRejectedOverload.clearOr(); MessageFilter mf = mfAccepted.or(mfRejectedLoop.or(mfRejectedOverload)); // Send to next node try { next.send(req, this); } catch (NotConnectedException e1) { Logger.minor(this, "Not connected to "+next); continue; } sentRequest = true; if(receiveFailed) return; // don't need to set status as killed by InsertHandler Message msg = null; /* * Because messages may be re-ordered, it is * entirely possible that we get a non-local RejectedOverload, * followed by an Accepted. So we must loop here. */ while (true) { try { msg = node.usm.waitFor(mf, this); } catch (DisconnectedException e) { Logger.normal(this, "Disconnected from " + next + " while waiting for Accepted"); break; } if (receiveFailed) return; // don't need to set status as killed by InsertHandler if (msg == null) { // Terminal overload // Try to propagate back to source Logger.minor(this, "Timeout"); next.localRejectedOverload("Timeout3"); finish(TIMED_OUT, next); return; } if (msg.getSpec() == DMT.FNPRejectedOverload) { // Non-fatal - probably still have time left if (msg.getBoolean(DMT.IS_LOCAL)) { next.localRejectedOverload("ForwardRejectedOverload5"); Logger.minor(this, "Local RejectedOverload, moving on to next peer"); // Give up on this one, try another break; } else { forwardRejectedOverload(); } continue; } if (msg.getSpec() == DMT.FNPRejectedLoop) { next.successNotOverload(); // Loop - we don't want to send the data to this one break; } if (msg.getSpec() != DMT.FNPAccepted) { Logger.error(this, "Unexpected message waiting for Accepted: " + msg); break; } // Otherwise is an FNPAccepted break; } if(msg == null || msg.getSpec() != DMT.FNPAccepted) continue; Logger.minor(this, "Got Accepted on "+this); // Send them the data. // Which might be the new data resulting from a collision... Message dataInsert; PartiallyReceivedBlock prbNow; prbNow = prb; dataInsert = DMT.createFNPDataInsert(uid, headers); /** What are we waiting for now??: * - FNPRouteNotFound - couldn't exhaust HTL, but send us the * data anyway please * - FNPInsertReply - used up all HTL, yay * - FNPRejectOverload - propagating an overload error :( * - FNPRejectTimeout - we took too long to send the DataInsert * - FNPDataInsertRejected - the insert was invalid */ MessageFilter mfInsertReply = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(SEARCH_TIMEOUT).setType(DMT.FNPInsertReply); mfRejectedOverload.setTimeout(SEARCH_TIMEOUT); mfRejectedOverload.clearOr(); MessageFilter mfRouteNotFound = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(SEARCH_TIMEOUT).setType(DMT.FNPRouteNotFound); MessageFilter mfDataInsertRejected = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(SEARCH_TIMEOUT).setType(DMT.FNPDataInsertRejected); MessageFilter mfTimeout = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(SEARCH_TIMEOUT).setType(DMT.FNPRejectedTimeout); mf = mfInsertReply.or(mfRouteNotFound.or(mfDataInsertRejected.or(mfTimeout.or(mfRejectedOverload)))); Logger.minor(this, "Sending DataInsert"); if(receiveFailed) return; try { next.send(dataInsert, this); } catch (NotConnectedException e1) { Logger.minor(this, "Not connected sending DataInsert: "+next+" for "+uid); continue; } Logger.minor(this, "Sending data"); if(receiveFailed) return; AwaitingCompletion ac = new AwaitingCompletion(next, prbNow); synchronized(nodesWaitingForCompletion) { nodesWaitingForCompletion.add(ac); nodesWaitingForCompletion.notifyAll(); } ac.start(); makeCompletionWaiter(); while (true) { if (receiveFailed) return; try { msg = node.usm.waitFor(mf, this); } catch (DisconnectedException e) { Logger.normal(this, "Disconnected from " + next + " while waiting for InsertReply on " + this); break; } if (receiveFailed) return; if (msg == null || msg.getSpec() == DMT.FNPRejectedTimeout) { // Timeout :( // Fairly serious problem Logger.error(this, "Timeout (" + msg + ") after Accepted in insert"); // Terminal overload // Try to propagate back to source next.localRejectedOverload("AfterInsertAcceptedTimeout2"); finish(TIMED_OUT, next); return; } if (msg.getSpec() == DMT.FNPRejectedOverload) { // Probably non-fatal, if so, we have time left, can try next one if (msg.getBoolean(DMT.IS_LOCAL)) { next.localRejectedOverload("ForwardRejectedOverload6"); Logger.minor(this, "Local RejectedOverload, moving on to next peer"); // Give up on this one, try another break; } else { forwardRejectedOverload(); } continue; // Wait for any further response } if (msg.getSpec() == DMT.FNPRouteNotFound) { Logger.minor(this, "Rejected: RNF"); short newHtl = msg.getShort(DMT.HTL); if (htl > newHtl) htl = newHtl; // Finished as far as this node is concerned next.successNotOverload(); break; } if (msg.getSpec() == DMT.FNPDataInsertRejected) { next.successNotOverload(); short reason = msg .getShort(DMT.DATA_INSERT_REJECTED_REASON); Logger.minor(this, "DataInsertRejected: " + reason); if (reason == DMT.DATA_INSERT_REJECTED_VERIFY_FAILED) { if (fromStore) { // That's odd... Logger.error(this,"Verify failed on next node " + next + " for DataInsert but we were sending from the store!"); } else { try { if (!prb.allReceived()) Logger.error(this, "Did not receive all packets but next node says invalid anyway!"); else { // Check the data new CHKBlock(prb.getBlock(), headers, myKey); Logger.error(this, "Verify failed on " + next + " but data was valid!"); } } catch (CHKVerifyException e) { Logger .normal(this, "Verify failed because data was invalid"); } catch (AbortedException e) { receiveFailed = true; } } break; // What else can we do? } else if (reason == DMT.DATA_INSERT_REJECTED_RECEIVE_FAILED) { if (receiveFailed) { Logger.minor(this, "Failed to receive data, so failed to send data"); } else { try { if (prb.allReceived()) { Logger.error(this, "Received all data but send failed to " + next); } else { if (prb.isAborted()) { Logger.normal(this, "Send failed: aborted: " + prb.getAbortReason() + ": " + prb.getAbortDescription()); } else Logger.normal(this, "Send failed; have not yet received all data but not aborted: " + next); } } catch (AbortedException e) { receiveFailed = true; } } } Logger.error(this, "DataInsert rejected! Reason=" + DMT.getDataInsertRejectedReason(reason)); break; } if (msg.getSpec() != DMT.FNPInsertReply) { Logger.error(this, "Unknown reply: " + msg); finish(INTERNAL_ERROR, next); } // Our task is complete next.successNotOverload(); finish(SUCCESS, next); return; } } }
|
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/18bdac5b045940cab8c77eb1e775cefcdda23e0a/CHKInsertSender.java/clean/src/freenet/node/CHKInsertSender.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2863,
1997,
1435,
288,
3639,
6847,
2199,
4583,
329,
774,
273,
394,
6847,
5621,
3639,
6847,
2199,
1248,
15596,
273,
394,
6847,
5621,
7734,
1323,
12,
3767,
13,
288,
5411,
309,
12,
18149,
2925,
13,
327,
31,
368,
2727,
1404,
1608,
358,
444,
1267,
487,
24859,
635,
8040,
1503,
13491,
309,
12,
647,
80,
422,
374,
13,
288,
7734,
368,
2479,
392,
8040,
7817,
1473,
7734,
4076,
12,
12778,
16,
446,
1769,
7734,
327,
31,
5411,
289,
13491,
368,
5179,
518,
5411,
10669,
907,
1024,
31,
5411,
368,
4480,
1473,
4101,
16,
1427,
1338,
1946,
358,
2199,
13306,
2353,
732,
854,
358,
1018,
18,
5411,
1645,
1024,
620,
31,
5411,
1024,
273,
756,
18,
30502,
18,
27736,
6813,
12,
3168,
16,
2199,
4583,
329,
774,
16,
2199,
1248,
15596,
16,
1018,
16,
638,
1769,
5411,
309,
12,
4285,
480,
446,
13,
7734,
1024,
620,
273,
1024,
18,
588,
2735,
7675,
24805,
5621,
5411,
469,
7734,
1024,
620,
273,
300,
21,
18,
20,
31,
13491,
309,
12,
4285,
422,
446,
13,
288,
7734,
368,
4297,
4101,
7734,
4076,
12,
30334,
67,
4400,
67,
9294,
16,
446,
1769,
7734,
327,
31,
5411,
289,
5411,
4242,
18,
17364,
12,
2211,
16,
315,
13966,
2243,
358,
13773,
4285,
1769,
5411,
2199,
4583,
329,
774,
18,
1289,
12,
4285,
1769,
13491,
309,
12,
6813,
1318,
18,
8969,
12,
3299,
16,
1024,
620,
13,
405,
10669,
1318,
18,
8969,
12,
3299,
16,
9219,
2735,
3719,
288,
7734,
4242,
18,
17364,
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,
2863,
1997,
1435,
288,
3639,
6847,
2199,
4583,
329,
774,
273,
394,
6847,
5621,
3639,
6847,
2199,
1248,
15596,
273,
394,
6847,
5621,
7734,
1323,
12,
3767,
13,
288,
5411,
309,
12,
18149,
2925,
13,
327,
31,
368,
2727,
1404,
1608,
358,
444,
1267,
487,
24859,
635,
8040,
1503,
13491,
309,
12,
647,
80,
422,
374,
13,
288,
7734,
368,
2479,
392,
8040,
7817,
1473,
7734,
4076,
12,
12778,
16,
446,
1769,
7734,
327,
31,
5411,
289,
13491,
368,
5179,
518,
5411,
10669,
907,
1024,
31,
5411,
368,
4480,
1473,
4101,
16,
1427,
1338,
1946,
358,
2199,
13306,
2353,
732,
854,
358,
1018,
18,
5411,
1645,
1024,
620,
31,
5411,
1024,
273,
756,
18,
30502,
18,
2
] |
ivLength = cipher.getUnderlyingCipher().getBlockSize();
|
ivLength = baseEngine.getBlockSize();
|
protected void engineSetMode( String mode) throws NoSuchAlgorithmException { modeName = mode.toUpperCase(); if (modeName.equals("ECB")) { ivLength = 0; cipher = new PaddedBufferedBlockCipher(cipher.getUnderlyingCipher()); } else if (modeName.equals("CBC")) { ivLength = cipher.getUnderlyingCipher().getBlockSize(); cipher = new PaddedBufferedBlockCipher( new CBCBlockCipher(cipher.getUnderlyingCipher())); } else if (modeName.startsWith("OFB")) { ivLength = cipher.getUnderlyingCipher().getBlockSize(); if (modeName.length() != 3) { int wordSize = Integer.parseInt(modeName.substring(3)); cipher = new PaddedBufferedBlockCipher( new OFBBlockCipher(cipher.getUnderlyingCipher(), wordSize)); } else { cipher = new PaddedBufferedBlockCipher( new OFBBlockCipher(cipher.getUnderlyingCipher(), 8 * cipher.getBlockSize())); } } else if (modeName.startsWith("CFB")) { ivLength = cipher.getUnderlyingCipher().getBlockSize(); if (modeName.length() != 3) { int wordSize = Integer.parseInt(modeName.substring(3)); cipher = new PaddedBufferedBlockCipher( new CFBBlockCipher(cipher.getUnderlyingCipher(), wordSize)); } else { cipher = new PaddedBufferedBlockCipher( new CFBBlockCipher(cipher.getUnderlyingCipher(), 8 * cipher.getBlockSize())); } } else if (modeName.startsWith("PGP")) { if (modeName.equalsIgnoreCase("PGPCFBwithIV")) { ivLength = cipher.getUnderlyingCipher().getBlockSize(); cipher = new PaddedBufferedBlockCipher( new PGPCFBBlockCipher(cipher.getUnderlyingCipher(), true)); } else { ivLength = cipher.getUnderlyingCipher().getBlockSize(); cipher = new PaddedBufferedBlockCipher( new PGPCFBBlockCipher(cipher.getUnderlyingCipher(), false)); } } else if (modeName.equalsIgnoreCase("OpenPGPCFB")) { ivLength = 0; cipher = new PaddedBufferedBlockCipher( new OpenPGPCFBBlockCipher(cipher.getUnderlyingCipher())); } else if (modeName.startsWith("SIC")) { ivLength = cipher.getUnderlyingCipher().getBlockSize(); if (ivLength < 16) { throw new IllegalArgumentException("Warning: SIC-Mode can become a twotime-pad if the blocksize of the cipher is too small. Use a cipher with a block size of at least 128 bits (e.g. AES)"); } cipher = new BufferedBlockCipher( new SICBlockCipher(cipher.getUnderlyingCipher())); } else if (modeName.startsWith("CTR")) { ivLength = cipher.getUnderlyingCipher().getBlockSize(); cipher = new BufferedBlockCipher( new SICBlockCipher(cipher.getUnderlyingCipher())); } else if (modeName.startsWith("GOFB")) { ivLength = cipher.getUnderlyingCipher().getBlockSize(); cipher = new BufferedBlockCipher( new GOFBBlockCipher(cipher.getUnderlyingCipher())); } else if (modeName.startsWith("CTS")) { ivLength = cipher.getUnderlyingCipher().getBlockSize(); cipher = new CTSBlockCipher(new CBCBlockCipher(cipher.getUnderlyingCipher())); } else { throw new NoSuchAlgorithmException("can't support mode " + mode); } }
|
14767 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14767/fedcbc35d9319a39ad36fade78bc0c7cc5ab774c/JCEBlockCipher.java/clean/crypto/src/org/bouncycastle/jce/provider/JCEBlockCipher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4073,
694,
2309,
12,
3639,
514,
225,
1965,
13,
3639,
1216,
17684,
565,
288,
3639,
1965,
461,
273,
1965,
18,
869,
8915,
5621,
3639,
309,
261,
3188,
461,
18,
14963,
2932,
7228,
38,
6,
3719,
3639,
288,
5411,
4674,
1782,
273,
374,
31,
5411,
5867,
273,
394,
453,
9665,
17947,
1768,
13896,
12,
17094,
18,
588,
14655,
6291,
13896,
10663,
3639,
289,
3639,
469,
309,
261,
3188,
461,
18,
14963,
2932,
21813,
6,
3719,
3639,
288,
5411,
4674,
1782,
273,
1026,
4410,
18,
588,
22506,
5621,
5411,
5867,
273,
394,
453,
9665,
17947,
1768,
13896,
12,
18701,
394,
385,
16283,
1768,
13896,
12,
17094,
18,
588,
14655,
6291,
13896,
1435,
10019,
3639,
289,
3639,
469,
309,
261,
3188,
461,
18,
17514,
1190,
2932,
3932,
38,
6,
3719,
3639,
288,
5411,
4674,
1782,
273,
1026,
4410,
18,
588,
22506,
5621,
5411,
309,
261,
3188,
461,
18,
2469,
1435,
480,
890,
13,
5411,
288,
7734,
509,
2076,
1225,
273,
2144,
18,
2670,
1702,
12,
3188,
461,
18,
28023,
12,
23,
10019,
7734,
5867,
273,
394,
453,
9665,
17947,
1768,
13896,
12,
27573,
394,
15932,
38,
1768,
13896,
12,
17094,
18,
588,
14655,
6291,
13896,
9334,
2076,
1225,
10019,
5411,
289,
5411,
469,
5411,
288,
7734,
5867,
273,
394,
453,
9665,
17947,
1768,
13896,
12,
13491,
394,
15932,
38,
1768,
13896,
12,
17094,
18,
588,
14655,
6291,
13896,
9334,
1725,
380,
5867,
18,
588,
22506,
1435,
10019,
5411,
289,
3639,
289,
3639,
469,
309,
261,
3188,
461,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4073,
694,
2309,
12,
3639,
514,
225,
1965,
13,
3639,
1216,
17684,
565,
288,
3639,
1965,
461,
273,
1965,
18,
869,
8915,
5621,
3639,
309,
261,
3188,
461,
18,
14963,
2932,
7228,
38,
6,
3719,
3639,
288,
5411,
4674,
1782,
273,
374,
31,
5411,
5867,
273,
394,
453,
9665,
17947,
1768,
13896,
12,
17094,
18,
588,
14655,
6291,
13896,
10663,
3639,
289,
3639,
469,
309,
261,
3188,
461,
18,
14963,
2932,
21813,
6,
3719,
3639,
288,
5411,
4674,
1782,
273,
1026,
4410,
18,
588,
22506,
5621,
5411,
5867,
273,
394,
453,
9665,
17947,
1768,
13896,
12,
18701,
394,
385,
16283,
1768,
13896,
12,
17094,
18,
588,
14655,
6291,
13896,
1435,
10019,
3639,
289,
3639,
469,
309,
2
] |
{
|
InstallPluginsDialog(JDialog dialog, Vector model, int mode) { super(JOptionPane.getFrameForComponent(dialog), (mode == INSTALL ? jEdit.getProperty("install-plugins.title") : jEdit.getProperty("update-plugins.title")),true); JPanel content = new JPanel(new BorderLayout()); content.setBorder(new EmptyBorder(12,12,12,12)); setContentPane(content); JLabel label = new JLabel(jEdit.getProperty("install-plugins.caption")); label.setBorder(new EmptyBorder(0,0,6,0)); content.add(BorderLayout.NORTH,label); JPanel panel = new JPanel(new BorderLayout()); panel.setBorder(new EmptyBorder(0,0,12,0)); plugins = new JCheckBoxList(model); plugins.getSelectionModel().addListSelectionListener(new ListHandler()); JScrollPane scroller = new JScrollPane(plugins); scroller.setPreferredSize(new Dimension(0,100)); panel.add(BorderLayout.CENTER,scroller); JPanel panel2 = new JPanel(new BorderLayout()); panel2.setBorder(new EmptyBorder(6,0,0,0)); JPanel labelBox = new JPanel(new GridLayout( (mode == UPDATE ? 6 : 5),1,0,3)); labelBox.setBorder(new EmptyBorder(0,0,3,12)); labelBox.add(new JLabel(jEdit.getProperty("install-plugins" + ".info.name"),SwingConstants.RIGHT)); labelBox.add(new JLabel(jEdit.getProperty("install-plugins" + ".info.author"),SwingConstants.RIGHT)); labelBox.add(new JLabel(jEdit.getProperty("install-plugins" + ".info.latest-version"),SwingConstants.RIGHT)); if(mode == UPDATE) { labelBox.add(new JLabel(jEdit.getProperty("install-plugins" + ".info.installed-version"),SwingConstants.RIGHT)); } labelBox.add(new JLabel(jEdit.getProperty("install-plugins" + ".info.updated"),SwingConstants.RIGHT)); labelBox.add(new JLabel(jEdit.getProperty("install-plugins" + ".info.description"),SwingConstants.RIGHT)); panel2.add(BorderLayout.WEST,labelBox); JPanel valueBox = new JPanel(new GridLayout( (mode == UPDATE ? 6 : 5),1,0,3)); valueBox.setBorder(new EmptyBorder(0,0,3,0)); valueBox.add(name = new JLabel()); valueBox.add(author = new JLabel()); valueBox.add(latestVersion = new JLabel()); if(mode == UPDATE) { valueBox.add(installedVersion = new JLabel()); } valueBox.add(updated = new JLabel()); valueBox.add(Box.createGlue()); panel2.add(BorderLayout.CENTER,valueBox); JPanel panel3 = new JPanel(new BorderLayout(0,3)); description = new JTextArea(6,30); description.setEditable(false); description.setLineWrap(true); description.setWrapStyleWord(true); panel3.add(BorderLayout.NORTH,new JScrollPane(description)); if(mode == INSTALL) { JPanel panel4 = new JPanel(new BorderLayout(0,3)); ButtonGroup grp = new ButtonGroup(); installUser = new JRadioButton(); String settings = jEdit.getSettingsDirectory(); if(settings == null) { settings = jEdit.getProperty("install-plugins.none"); installUser.setEnabled(false); } else { settings = MiscUtilities.constructPath(settings,"jars"); installUser.setEnabled(true); } String[] args = { settings }; installUser.setText(jEdit.getProperty("install-plugins.user",args)); grp.add(installUser); panel4.add(BorderLayout.CENTER,installUser); installSystem = new JRadioButton(); String jEditHome = jEdit.getJEditHome(); if(jEditHome == null) { jEditHome = jEdit.getProperty("install-plugins.none"); installSystem.setEnabled(false); } else { jEditHome = MiscUtilities.constructPath(jEditHome,"jars"); installSystem.setEnabled(true); } args[0] = jEditHome; installSystem.setText(jEdit.getProperty("install-plugins.system",args)); grp.add(installSystem); panel4.add(BorderLayout.SOUTH,installSystem); if(installUser.isEnabled()) installUser.setSelected(true); else installSystem.setSelected(true); panel3.add(BorderLayout.CENTER,panel4); } panel3.add(BorderLayout.SOUTH,downloadSource = new JCheckBox( jEdit.getProperty("install-plugins.downloadSource"))); downloadSource.setSelected(jEdit.getBooleanProperty("install-plugins" + ".downloadSource.value")); panel2.add(BorderLayout.SOUTH,panel3); panel.add(BorderLayout.SOUTH,panel2); content.add(BorderLayout.CENTER,panel); Box box = new Box(BoxLayout.X_AXIS); box.add(Box.createGlue()); install = new JButton(jEdit.getProperty("install-plugins.install")); install.setEnabled(false); getRootPane().setDefaultButton(install); install.addActionListener(new ActionHandler()); box.add(install); box.add(Box.createHorizontalStrut(6)); cancel = new JButton(jEdit.getProperty("common.cancel")); cancel.addActionListener(new ActionHandler()); box.add(cancel); box.add(Box.createHorizontalStrut(6)); box.add(Box.createGlue()); content.add(BorderLayout.SOUTH,box); pack(); setLocationRelativeTo(dialog); show(); } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/a58f3534c38b610fc6131301b1b484e8974d83c0/InstallPluginsDialog.java/clean/org/gjt/sp/jedit/pluginmgr/InstallPluginsDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6410,
9461,
6353,
12,
46,
6353,
6176,
16,
5589,
938,
16,
509,
1965,
13,
202,
95,
202,
202,
9565,
12,
46,
1895,
8485,
18,
588,
3219,
1290,
1841,
12,
12730,
3631,
1082,
202,
12,
3188,
422,
22880,
4685,
1082,
202,
35,
525,
4666,
18,
588,
1396,
2932,
5425,
17,
8057,
18,
2649,
7923,
1082,
202,
30,
525,
4666,
18,
588,
1396,
2932,
2725,
17,
8057,
18,
2649,
7923,
3631,
3767,
1769,
202,
202,
46,
5537,
913,
273,
394,
24048,
12,
2704,
30814,
10663,
202,
202,
1745,
18,
542,
8107,
12,
2704,
8953,
8107,
12,
2138,
16,
2138,
16,
2138,
16,
2138,
10019,
202,
202,
542,
1350,
8485,
12,
1745,
1769,
202,
202,
46,
2224,
1433,
273,
394,
21403,
12,
78,
4666,
18,
588,
1396,
2932,
5425,
17,
8057,
18,
15386,
7923,
1769,
202,
202,
1925,
18,
542,
8107,
12,
2704,
8953,
8107,
12,
20,
16,
20,
16,
26,
16,
20,
10019,
202,
202,
1745,
18,
1289,
12,
8107,
3744,
18,
50,
28212,
16,
1925,
1769,
202,
202,
46,
5537,
6594,
273,
394,
24048,
12,
2704,
30814,
10663,
202,
202,
13916,
18,
542,
8107,
12,
2704,
8953,
8107,
12,
20,
16,
20,
16,
2138,
16,
20,
10019,
202,
202,
8057,
273,
394,
804,
19174,
682,
12,
2284,
1769,
202,
202,
8057,
18,
588,
6233,
1488,
7675,
1289,
682,
6233,
2223,
12,
2704,
987,
1503,
10663,
202,
202,
46,
26360,
888,
1539,
273,
394,
804,
26360,
12,
8057,
1769,
202,
202,
1017,
1539,
18,
542,
16028,
1225,
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,
6410,
9461,
6353,
12,
46,
6353,
6176,
16,
5589,
938,
16,
509,
1965,
13,
202,
95,
202,
202,
9565,
12,
46,
1895,
8485,
18,
588,
3219,
1290,
1841,
12,
12730,
3631,
1082,
202,
12,
3188,
422,
22880,
4685,
1082,
202,
35,
525,
4666,
18,
588,
1396,
2932,
5425,
17,
8057,
18,
2649,
7923,
1082,
202,
30,
525,
4666,
18,
588,
1396,
2932,
2725,
17,
8057,
18,
2649,
7923,
3631,
3767,
1769,
202,
202,
46,
5537,
913,
273,
394,
24048,
12,
2704,
30814,
10663,
202,
202,
1745,
18,
542,
8107,
12,
2704,
8953,
8107,
12,
2138,
16,
2138,
16,
2138,
16,
2138,
10019,
202,
202,
542,
1350,
8485,
12,
1745,
1769,
202,
202,
46,
2224,
1433,
273,
394,
2
] |
|
_notYetReadyBlocks.put(new Long(messageId), new ByteArray(payload));
|
_notYetReadyBlocks.put(new Long(messageId), payload);
|
public boolean messageReceived(long messageId, byte payload[]) { synchronized (_dataLock) { if (_log.shouldLog(Log.DEBUG)) _log.debug("received " + messageId + " with " + payload.length); if (messageId <= _highestReadyBlockId) { if (_log.shouldLog(Log.DEBUG)) _log.debug("ignoring dup message " + messageId); _dataLock.notifyAll(); return false; // already received } if (messageId > _highestBlockId) _highestBlockId = messageId; if (_highestReadyBlockId + 1 == messageId) { if (!_locallyClosed && payload.length > 0) { if (_log.shouldLog(Log.DEBUG)) _log.debug("accepting bytes as ready: " + payload.length); _readyDataBlocks.add(new ByteArray(payload)); } _highestReadyBlockId = messageId; long cur = _highestReadyBlockId + 1; // now pull in any previously pending blocks while (_notYetReadyBlocks.containsKey(new Long(cur))) { ByteArray ba = (ByteArray)_notYetReadyBlocks.remove(new Long(cur)); if ( (ba != null) && (ba.getData() != null) && (ba.getData().length > 0) ) { _readyDataBlocks.add(ba); } if (_log.shouldLog(Log.DEBUG)) _log.debug("making ready the block " + cur); cur++; _highestReadyBlockId++; } _dataLock.notifyAll(); } else { if (_log.shouldLog(Log.DEBUG)) _log.debug("message is out of order: " + messageId); if (_locallyClosed) // dont need the payload, just the msgId in order _notYetReadyBlocks.put(new Long(messageId), new ByteArray(null)); else _notYetReadyBlocks.put(new Long(messageId), new ByteArray(payload)); _dataLock.notifyAll(); } } return true; }
|
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/00f27d440052b18141d9d99aa9e8d4b001592dc4/MessageInputStream.java/clean/apps/streaming/java/src/net/i2p/client/streaming/MessageInputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
883,
8872,
12,
5748,
19090,
16,
1160,
2385,
63,
5717,
288,
3639,
3852,
261,
67,
892,
2531,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
7734,
389,
1330,
18,
4148,
2932,
15213,
315,
397,
19090,
397,
315,
598,
315,
397,
2385,
18,
2469,
1769,
5411,
309,
261,
2150,
548,
1648,
389,
8766,
395,
8367,
1768,
548,
13,
288,
7734,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
10792,
389,
1330,
18,
4148,
2932,
724,
6053,
9417,
883,
315,
397,
19090,
1769,
7734,
389,
892,
2531,
18,
12336,
1595,
5621,
7734,
327,
629,
31,
368,
1818,
5079,
5411,
289,
5411,
309,
261,
2150,
548,
405,
389,
8766,
395,
1768,
548,
13,
7734,
389,
8766,
395,
1768,
548,
273,
19090,
31,
13491,
309,
261,
67,
8766,
395,
8367,
1768,
548,
397,
404,
422,
19090,
13,
288,
7734,
309,
16051,
67,
1829,
1230,
7395,
597,
2385,
18,
2469,
405,
374,
13,
288,
10792,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
13491,
389,
1330,
18,
4148,
2932,
9436,
310,
1731,
487,
5695,
30,
315,
397,
2385,
18,
2469,
1769,
10792,
389,
1672,
751,
6450,
18,
1289,
12,
2704,
7964,
12,
7648,
10019,
7734,
289,
7734,
389,
8766,
395,
8367,
1768,
548,
273,
19090,
31,
7734,
1525,
662,
273,
389,
8766,
395,
8367,
1768,
548,
397,
404,
31,
7734,
368,
2037,
6892,
316,
1281,
7243,
4634,
4398,
7734,
1323,
261,
67,
902,
61,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
883,
8872,
12,
5748,
19090,
16,
1160,
2385,
63,
5717,
288,
3639,
3852,
261,
67,
892,
2531,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
7734,
389,
1330,
18,
4148,
2932,
15213,
315,
397,
19090,
397,
315,
598,
315,
397,
2385,
18,
2469,
1769,
5411,
309,
261,
2150,
548,
1648,
389,
8766,
395,
8367,
1768,
548,
13,
288,
7734,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
10792,
389,
1330,
18,
4148,
2932,
724,
6053,
9417,
883,
315,
397,
19090,
1769,
7734,
389,
892,
2531,
18,
12336,
1595,
5621,
7734,
327,
629,
31,
368,
1818,
5079,
5411,
289,
5411,
309,
261,
2150,
548,
405,
389,
2
] |
generators.put("driver", new Generator(DriverBuilder.class));
|
generators.put("driver", new DriverGenerator());
|
public DeviceLoadHandler() { super("device", "patch", new PatchLoadHandler()); generators.put("device", new Generator(DeviceBuilder.class)); generators.put("driver", new Generator(DriverBuilder.class)); generators.put("banknames", new Generator(LinkedList.class)); generators.put("patchnames", new Generator(LinkedList.class)); generators.put("decoder", new DecoderGenerator()); generators.put("checksum", new ChecksumGenerator()); generators.put("sequence", new Generator(Sequence.class)); }
|
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b22b92a8dc60e9f63f7819b79d3ddbfd970f79df/DeviceLoadHandler.java/clean/JSynthLib/org/jsynthlib/jsynthlib/xml/DeviceLoadHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6077,
2563,
1503,
1435,
288,
3639,
2240,
2932,
5964,
3113,
315,
2272,
3113,
394,
12042,
2563,
1503,
10663,
3639,
13327,
18,
458,
2932,
5964,
3113,
394,
10159,
12,
3654,
1263,
18,
1106,
10019,
3639,
13327,
18,
458,
2932,
7407,
3113,
394,
9396,
3908,
10663,
3639,
13327,
18,
458,
2932,
10546,
1973,
3113,
394,
10159,
12,
13174,
682,
18,
1106,
10019,
3639,
13327,
18,
458,
2932,
2272,
1973,
3113,
394,
10159,
12,
13174,
682,
18,
1106,
10019,
3639,
13327,
18,
458,
2932,
21070,
3113,
394,
15138,
3908,
10663,
3639,
13327,
18,
458,
2932,
15149,
3113,
394,
19760,
3908,
10663,
3639,
13327,
18,
458,
2932,
6178,
3113,
394,
10159,
12,
4021,
18,
1106,
10019,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6077,
2563,
1503,
1435,
288,
3639,
2240,
2932,
5964,
3113,
315,
2272,
3113,
394,
12042,
2563,
1503,
10663,
3639,
13327,
18,
458,
2932,
5964,
3113,
394,
10159,
12,
3654,
1263,
18,
1106,
10019,
3639,
13327,
18,
458,
2932,
7407,
3113,
394,
9396,
3908,
10663,
3639,
13327,
18,
458,
2932,
10546,
1973,
3113,
394,
10159,
12,
13174,
682,
18,
1106,
10019,
3639,
13327,
18,
458,
2932,
2272,
1973,
3113,
394,
10159,
12,
13174,
682,
18,
1106,
10019,
3639,
13327,
18,
458,
2932,
21070,
3113,
394,
15138,
3908,
10663,
3639,
13327,
18,
458,
2932,
15149,
3113,
394,
19760,
3908,
10663,
3639,
13327,
18,
458,
2932,
6178,
3113,
394,
10159,
12,
4021,
18,
1106,
10019,
5411,
289,
2,
-100,
-100,
-100
] |
if ( slot != null ) { for ( int pos = 0; pos < slot.getCount( ); pos++ ) { DesignElement innerElement = slot.getContent( pos ); rename( innerElement.getHandle( module ) ); } }
|
if ( !names.contains( image.getName( ) ) ) return; int index = 0; String name = image.getName( ); String baseName = image.getName( ); while ( names.contains( name ) ) { name = baseName + ++index;
|
public void rename( DesignElementHandle elementHandle ) { if ( elementHandle == null ) return; IElementDefn defn = elementHandle.getElement( ).getDefn( ); if ( defn.getNameOption( ) == MetaDataConstants.REQUIRED_NAME || elementHandle.getModuleHandle( ) instanceof LibraryHandle || elementHandle.getName( ) != null ) module.makeUniqueName( elementHandle.getElement( ) ); for ( int i = 0; i < defn.getSlotCount( ); i++ ) { ContainerSlot slot = elementHandle.getElement( ).getSlot( i ); if ( slot != null ) { for ( int pos = 0; pos < slot.getCount( ); pos++ ) { DesignElement innerElement = slot.getContent( pos ); rename( innerElement.getHandle( module ) ); } } } }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/2fa5953f644fca429a0b7d506d2b8b713cc70f10/ModuleHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ModuleHandle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6472,
12,
29703,
1046,
3259,
930,
3259,
262,
202,
95,
202,
202,
430,
261,
930,
3259,
422,
446,
262,
1082,
202,
2463,
31,
202,
202,
45,
1046,
3262,
82,
1652,
82,
273,
930,
3259,
18,
21336,
12,
262,
18,
588,
3262,
82,
12,
11272,
202,
202,
430,
261,
1652,
82,
18,
17994,
1895,
12,
262,
422,
27512,
2918,
18,
14977,
67,
1985,
9506,
202,
20081,
930,
3259,
18,
588,
3120,
3259,
12,
262,
1276,
18694,
3259,
9506,
202,
20081,
930,
3259,
18,
17994,
12,
262,
480,
446,
262,
1082,
202,
2978,
18,
6540,
6303,
461,
12,
930,
3259,
18,
21336,
12,
262,
11272,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
1652,
82,
18,
588,
8764,
1380,
12,
11272,
277,
9904,
262,
202,
202,
95,
1082,
202,
2170,
8764,
4694,
273,
930,
3259,
18,
21336,
12,
262,
18,
588,
8764,
12,
277,
11272,
1082,
202,
430,
261,
4694,
480,
446,
262,
1082,
202,
95,
9506,
202,
1884,
261,
509,
949,
273,
374,
31,
949,
411,
4694,
18,
588,
1380,
12,
11272,
949,
9904,
262,
9506,
202,
95,
6862,
202,
15478,
1046,
3443,
1046,
273,
4694,
18,
588,
1350,
12,
949,
11272,
6862,
202,
18539,
12,
3443,
1046,
18,
588,
3259,
12,
1605,
262,
11272,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
6472,
12,
29703,
1046,
3259,
930,
3259,
262,
202,
95,
202,
202,
430,
261,
930,
3259,
422,
446,
262,
1082,
202,
2463,
31,
202,
202,
45,
1046,
3262,
82,
1652,
82,
273,
930,
3259,
18,
21336,
12,
262,
18,
588,
3262,
82,
12,
11272,
202,
202,
430,
261,
1652,
82,
18,
17994,
1895,
12,
262,
422,
27512,
2918,
18,
14977,
67,
1985,
9506,
202,
20081,
930,
3259,
18,
588,
3120,
3259,
12,
262,
1276,
18694,
3259,
9506,
202,
20081,
930,
3259,
18,
17994,
12,
262,
480,
446,
262,
1082,
202,
2978,
18,
6540,
6303,
461,
12,
930,
3259,
18,
21336,
12,
262,
11272,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
1652,
2
] |
public void set(org.quickfix.field.PartySubID value)
|
public void set(quickfix.field.PartySubID value)
|
public void set(org.quickfix.field.PartySubID value) { setField(value); }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderSingle.java/clean/src/java/src/quickfix/fix44/NewOrderSingle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
17619,
1676,
734,
460,
13,
225,
288,
16331,
12,
1132,
1769,
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,
918,
444,
12,
19525,
904,
18,
1518,
18,
17619,
1676,
734,
460,
13,
225,
288,
16331,
12,
1132,
1769,
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
] |
{ ZoomBar zoomBar = view.toolBar.getZoomBar(); zoomBar.getManager().setText(level); ZoomMenu zoomMenu = view.menuBar.getZoomMenu(); zoomMenu.getManager().setItemSelected(level); int w = (int) (imageWidth*level)+2*ViewerUIF.START;
|
{ ZoomBar zoomBar = view.toolBar.getZoomBar(); zoomBar.getManager().setText(level); ZoomMenu zoomMenu = view.menuBar.getZoomMenu(); zoomMenu.getManager().setItemSelected(level); int w = (int) (imageWidth*level)+2*ViewerUIF.START;
|
private void zoom(double level) { ZoomBar zoomBar = view.toolBar.getZoomBar(); zoomBar.getManager().setText(level); ZoomMenu zoomMenu = view.menuBar.getZoomMenu(); zoomMenu.getManager().setItemSelected(level); int w = (int) (imageWidth*level)+2*ViewerUIF.START; int h = (int) (imageHeight*level)+2*ViewerUIF.START; control.setSizePaintedComponents(new Dimension(w, h)); canvas.paintImage(level, w, h); }
|
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a2f4cd0a125d188c1e246cd85608e59a51e3d85c/ImageInspectorManager.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/transform/ImageInspectorManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
7182,
12,
9056,
1801,
13,
202,
95,
202,
202,
11497,
5190,
7182,
5190,
273,
1476,
18,
6738,
5190,
18,
588,
11497,
5190,
5621,
202,
202,
14932,
5190,
18,
588,
1318,
7675,
542,
1528,
12,
2815,
1769,
202,
202,
11497,
4599,
7182,
4599,
273,
1476,
18,
5414,
5190,
18,
588,
11497,
4599,
5621,
202,
202,
14932,
4599,
18,
588,
1318,
7675,
542,
1180,
7416,
12,
2815,
1769,
202,
202,
474,
341,
273,
261,
474,
13,
261,
2730,
2384,
14,
2815,
27921,
22,
14,
18415,
5370,
42,
18,
7570,
31,
3639,
509,
366,
273,
261,
474,
13,
261,
2730,
2686,
14,
2815,
27921,
22,
14,
18415,
5370,
42,
18,
7570,
31,
3639,
3325,
18,
542,
1225,
12699,
329,
7171,
12,
2704,
13037,
12,
91,
16,
366,
10019,
3639,
5953,
18,
84,
1598,
2040,
12,
2815,
16,
341,
16,
366,
1769,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1152,
918,
7182,
12,
9056,
1801,
13,
202,
95,
202,
202,
11497,
5190,
7182,
5190,
273,
1476,
18,
6738,
5190,
18,
588,
11497,
5190,
5621,
202,
202,
14932,
5190,
18,
588,
1318,
7675,
542,
1528,
12,
2815,
1769,
202,
202,
11497,
4599,
7182,
4599,
273,
1476,
18,
5414,
5190,
18,
588,
11497,
4599,
5621,
202,
202,
14932,
4599,
18,
588,
1318,
7675,
542,
1180,
7416,
12,
2815,
1769,
202,
202,
474,
341,
273,
261,
474,
13,
261,
2730,
2384,
14,
2815,
27921,
22,
14,
18415,
5370,
42,
18,
7570,
31,
3639,
509,
366,
273,
261,
474,
13,
261,
2730,
2686,
14,
2815,
27921,
22,
14,
18415,
5370,
42,
18,
7570,
31,
3639,
3325,
18,
542,
1225,
12699,
2
] |
setInputEncoding("UTF-16LE");
|
private void detectEncoding() throws IOException { int[] signature = new int[4]; in.mark(4); for (int i = 0; i < 4; i++) signature[i] = in.read(); in.reset(); // 4-byte encodings if (equals(SIGNATURE_UCS_4_1234, signature)) setInputEncoding("UTF-32BE"); else if (equals(SIGNATURE_UCS_4_4321, signature)) setInputEncoding("UTF-32LE"); else if (equals(SIGNATURE_UCS_4_2143, signature) || equals(SIGNATURE_UCS_4_3412, signature)) throw new UnsupportedEncodingException("unsupported UCS-4 byte ordering"); // 2-byte encodings else if (equals(SIGNATURE_UCS_2_12, signature)) { setInputEncoding("UTF-16BE"); in.read(); in.read(); } else if (equals(SIGNATURE_UCS_2_21, signature)) { setInputEncoding("UTF-16LE"); in.read(); in.read(); } else if (equals(SIGNATURE_UCS_2_12_NOBOM, signature)) { setInputEncoding("UTF-16BE"); throw new UnsupportedEncodingException("no byte-order mark for UCS-2 entity"); } else if (equals(SIGNATURE_UCS_2_21_NOBOM, signature)) { setInputEncoding("UTF-16LE"); throw new UnsupportedEncodingException("no byte-order mark for UCS-2 entity"); } // ASCII-derived encodings else if (equals(SIGNATURE_UTF_8, signature)) { // UTF-8 input encoding implied, TextDecl } else if (equals(SIGNATURE_UTF_8_BOM, signature)) { setInputEncoding("UTF-8"); in.read(); in.read(); in.read(); } }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5966,
4705,
1435,
1377,
1216,
1860,
565,
288,
1377,
509,
8526,
3372,
273,
394,
509,
63,
24,
15533,
1377,
316,
18,
3355,
12,
24,
1769,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1059,
31,
277,
27245,
3639,
3372,
63,
77,
65,
273,
316,
18,
896,
5621,
1377,
316,
18,
6208,
5621,
1377,
368,
1059,
17,
7229,
24118,
1377,
309,
261,
14963,
12,
26587,
67,
57,
4596,
67,
24,
67,
28462,
16,
3372,
3719,
3639,
21687,
4705,
2932,
5159,
17,
1578,
5948,
8863,
1377,
469,
309,
261,
14963,
12,
26587,
67,
57,
4596,
67,
24,
67,
24,
1578,
21,
16,
3372,
3719,
3639,
21687,
4705,
2932,
5159,
17,
1578,
900,
8863,
1377,
469,
309,
261,
14963,
12,
26587,
67,
57,
4596,
67,
24,
67,
22,
28643,
16,
3372,
13,
747,
9079,
1606,
12,
26587,
67,
57,
4596,
67,
24,
67,
5026,
2138,
16,
3372,
3719,
3639,
604,
394,
15367,
2932,
24666,
587,
4596,
17,
24,
1160,
9543,
8863,
1377,
368,
576,
17,
7229,
24118,
1377,
469,
309,
261,
14963,
12,
26587,
67,
57,
4596,
67,
22,
67,
2138,
16,
3372,
3719,
3639,
288,
1850,
21687,
4705,
2932,
5159,
17,
2313,
5948,
8863,
1850,
316,
18,
896,
5621,
1850,
316,
18,
896,
5621,
3639,
289,
1377,
469,
309,
261,
14963,
12,
26587,
67,
57,
4596,
67,
22,
67,
5340,
16,
3372,
3719,
3639,
288,
10792,
316,
18,
896,
5621,
1850,
316,
18,
896,
5621,
3639,
289,
1377,
469,
309,
261,
14963,
12,
26587,
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,
5966,
4705,
1435,
1377,
1216,
1860,
565,
288,
1377,
509,
8526,
3372,
273,
394,
509,
63,
24,
15533,
1377,
316,
18,
3355,
12,
24,
1769,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1059,
31,
277,
27245,
3639,
3372,
63,
77,
65,
273,
316,
18,
896,
5621,
1377,
316,
18,
6208,
5621,
1377,
368,
1059,
17,
7229,
24118,
1377,
309,
261,
14963,
12,
26587,
67,
57,
4596,
67,
24,
67,
28462,
16,
3372,
3719,
3639,
21687,
4705,
2932,
5159,
17,
1578,
5948,
8863,
1377,
469,
309,
261,
14963,
12,
26587,
67,
57,
4596,
67,
24,
67,
24,
1578,
21,
16,
3372,
3719,
3639,
21687,
4705,
2932,
5159,
17,
1578,
900,
8863,
1377,
469,
309,
2
] |
|
return null;
|
throw new FileNotFoundException(L.l("Can't find font {0}", name));
|
public Font parse(String name) throws IOException { MergePath mergePath = new MergePath(); mergePath.addClassPath(); Path path = mergePath.lookup("com/caucho/quercus/pdflib/font/" + name + ".afm"); if (! path.canRead()) return null; _is = path.openRead(); try { return parseTop(); } finally { _is.close(); } }
|
3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/a3879eb2a32247c23a8fbdcdae591df76cbac554/AfmParser.java/clean/quercus/src/main/java/com/caucho/quercus/lib/pdf/AfmParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10063,
1109,
12,
780,
508,
13,
565,
1216,
1860,
225,
288,
565,
8964,
743,
2691,
743,
273,
394,
8964,
743,
5621,
565,
2691,
743,
18,
1289,
22158,
5621,
565,
2666,
589,
273,
2691,
743,
18,
8664,
2932,
832,
19,
5353,
89,
2599,
19,
372,
12610,
407,
19,
7699,
2941,
19,
5776,
4898,
397,
508,
397,
3552,
1727,
81,
8863,
565,
309,
16051,
589,
18,
4169,
1994,
10756,
1377,
604,
394,
13707,
12,
48,
18,
80,
2932,
2568,
1404,
1104,
3512,
288,
20,
1532,
16,
508,
10019,
565,
389,
291,
273,
589,
18,
3190,
1994,
5621,
565,
775,
288,
1377,
327,
1109,
3401,
5621,
565,
289,
3095,
288,
1377,
389,
291,
18,
4412,
5621,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10063,
1109,
12,
780,
508,
13,
565,
1216,
1860,
225,
288,
565,
8964,
743,
2691,
743,
273,
394,
8964,
743,
5621,
565,
2691,
743,
18,
1289,
22158,
5621,
565,
2666,
589,
273,
2691,
743,
18,
8664,
2932,
832,
19,
5353,
89,
2599,
19,
372,
12610,
407,
19,
7699,
2941,
19,
5776,
4898,
397,
508,
397,
3552,
1727,
81,
8863,
565,
309,
16051,
589,
18,
4169,
1994,
10756,
1377,
604,
394,
13707,
12,
48,
18,
80,
2932,
2568,
1404,
1104,
3512,
288,
20,
1532,
16,
508,
10019,
565,
389,
291,
273,
589,
18,
3190,
1994,
5621,
565,
775,
288,
1377,
327,
1109,
3401,
5621,
565,
289,
3095,
288,
1377,
389,
291,
18,
4412,
5621,
565,
289,
225,
289,
2
] |
o = new Hashtable();
|
Hashtable hash = new Hashtable(); hash.put(PREFIX_STR,keyCodeStr); o = hash;
|
public void addKeyBinding(String keyBinding, EditAction action) { Hashtable current = bindings; StringTokenizer st = new StringTokenizer(keyBinding); while(st.hasMoreTokens()) { KeyStroke keyStroke = parseKeyStroke(st.nextToken()); if(keyStroke == null) return; if(st.hasMoreTokens()) { Object o = current.get(keyStroke); if(o instanceof Hashtable) current = (Hashtable)o; else { o = new Hashtable(); current.put(keyStroke,o); current = (Hashtable)o; } } else current.put(keyStroke,action); } } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/e60465f1d3e770861a53827ef0fec2525c09e819/DefaultInputHandler.java/buggy/org/gjt/sp/jedit/gui/DefaultInputHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
24819,
5250,
12,
780,
498,
5250,
16,
15328,
1803,
1301,
13,
202,
95,
202,
3639,
18559,
783,
273,
7394,
31,
202,
202,
780,
10524,
384,
273,
394,
16370,
12,
856,
5250,
1769,
202,
202,
17523,
12,
334,
18,
5332,
7417,
5157,
10756,
202,
202,
95,
1082,
202,
653,
14602,
498,
14602,
273,
1109,
653,
14602,
12,
334,
18,
4285,
1345,
10663,
1082,
202,
430,
12,
856,
14602,
422,
446,
13,
9506,
202,
2463,
31,
1082,
202,
430,
12,
334,
18,
5332,
7417,
5157,
10756,
1082,
202,
95,
9506,
202,
921,
320,
273,
783,
18,
588,
12,
856,
14602,
1769,
9506,
202,
430,
12,
83,
1276,
18559,
13,
6862,
202,
2972,
273,
261,
5582,
14544,
13,
83,
31,
9506,
202,
12107,
9506,
202,
95,
6862,
202,
83,
273,
394,
18559,
5621,
6862,
202,
2972,
18,
458,
12,
856,
14602,
16,
83,
1769,
6862,
202,
2972,
273,
261,
5582,
14544,
13,
83,
31,
9506,
202,
97,
1082,
202,
97,
1082,
202,
12107,
9506,
202,
2972,
18,
458,
12,
856,
14602,
16,
1128,
1769,
202,
202,
97,
202,
97,
368,
9090,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
24819,
5250,
12,
780,
498,
5250,
16,
15328,
1803,
1301,
13,
202,
95,
202,
3639,
18559,
783,
273,
7394,
31,
202,
202,
780,
10524,
384,
273,
394,
16370,
12,
856,
5250,
1769,
202,
202,
17523,
12,
334,
18,
5332,
7417,
5157,
10756,
202,
202,
95,
1082,
202,
653,
14602,
498,
14602,
273,
1109,
653,
14602,
12,
334,
18,
4285,
1345,
10663,
1082,
202,
430,
12,
856,
14602,
422,
446,
13,
9506,
202,
2463,
31,
1082,
202,
430,
12,
334,
18,
5332,
7417,
5157,
10756,
1082,
202,
95,
9506,
202,
921,
320,
273,
783,
18,
588,
12,
856,
14602,
1769,
9506,
202,
430,
12,
83,
1276,
18559,
13,
6862,
202,
2972,
273,
261,
5582,
14544,
13,
2
] |
StringBuffer command = new StringBuffer ();
|
public void testLongParseFail1 () { StringBuffer command = new StringBuffer (); String file[] = new String[3]; file[0] = "-d"; file[1] = ((String)System.getProperty ("testdir")).concat ("/src/generated"); file[2] = ((String)System.getProperty ("testdir")).concat ("/idl/Long_Fail1.idl"); assertTrue ("Compiled Long_Fail1.idl", org.jacorb.idl.parser.compile (file)==false); }
|
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/17877dae7ff4a48b31b7dabb549f3c58c5e17a42/LongTest.java/clean/test/regression/src/org/jacorb/test/idl/LongTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
3708,
3201,
3754,
21,
1832,
282,
288,
6647,
514,
585,
8526,
273,
394,
514,
63,
23,
15533,
1377,
585,
63,
20,
65,
273,
3701,
72,
14432,
1377,
585,
63,
21,
65,
273,
14015,
780,
13,
3163,
18,
588,
1396,
7566,
3813,
1214,
7923,
2934,
16426,
7566,
19,
4816,
19,
11168,
8863,
1377,
585,
63,
22,
65,
273,
14015,
780,
13,
3163,
18,
588,
1396,
7566,
3813,
1214,
7923,
2934,
16426,
7566,
19,
350,
80,
19,
3708,
67,
3754,
21,
18,
350,
80,
8863,
1377,
1815,
5510,
7566,
20733,
3407,
67,
3754,
21,
18,
350,
80,
3113,
2358,
18,
31390,
16640,
18,
350,
80,
18,
4288,
18,
11100,
261,
768,
13,
631,
5743,
1769,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
3708,
3201,
3754,
21,
1832,
282,
288,
6647,
514,
585,
8526,
273,
394,
514,
63,
23,
15533,
1377,
585,
63,
20,
65,
273,
3701,
72,
14432,
1377,
585,
63,
21,
65,
273,
14015,
780,
13,
3163,
18,
588,
1396,
7566,
3813,
1214,
7923,
2934,
16426,
7566,
19,
4816,
19,
11168,
8863,
1377,
585,
63,
22,
65,
273,
14015,
780,
13,
3163,
18,
588,
1396,
7566,
3813,
1214,
7923,
2934,
16426,
7566,
19,
350,
80,
19,
3708,
67,
3754,
21,
18,
350,
80,
8863,
1377,
1815,
5510,
7566,
20733,
3407,
67,
3754,
21,
18,
350,
80,
3113,
2358,
18,
31390,
16640,
18,
350,
80,
18,
4288,
18,
11100,
261,
768,
13,
631,
5743,
1769,
282,
289,
2
] |
|
return JobSubmissionProtocol.versionID;
|
throw new IOException("Unknown protocol to job tracker: " + protocol);
|
public long getProtocolVersion(String protocol, long clientVersion) { if (protocol.equals(InterTrackerProtocol.class.getName())) { return InterTrackerProtocol.versionID; } else { return JobSubmissionProtocol.versionID; } }
|
51718 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51718/54e11108fd60af1a3e71a90ab90fb097cffefe71/JobTracker.java/clean/src/java/org/apache/hadoop/mapred/JobTracker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
18648,
1444,
12,
780,
1771,
16,
1525,
1004,
1444,
13,
288,
1377,
309,
261,
8373,
18,
14963,
12,
2465,
8135,
5752,
18,
1106,
18,
17994,
1435,
3719,
288,
3639,
327,
5294,
8135,
5752,
18,
1589,
734,
31,
1377,
289,
469,
288,
3639,
604,
394,
1860,
2932,
4874,
1771,
358,
1719,
9745,
30,
315,
397,
1771,
1769,
1377,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
18648,
1444,
12,
780,
1771,
16,
1525,
1004,
1444,
13,
288,
1377,
309,
261,
8373,
18,
14963,
12,
2465,
8135,
5752,
18,
1106,
18,
17994,
1435,
3719,
288,
3639,
327,
5294,
8135,
5752,
18,
1589,
734,
31,
1377,
289,
469,
288,
3639,
604,
394,
1860,
2932,
4874,
1771,
358,
1719,
9745,
30,
315,
397,
1771,
1769,
1377,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public Builder(IToolChain parent, String Id, String name, Builder builder) {
|
public Builder(IToolChain parent, IManagedConfigElement element, String managedBuildRevision) {
|
public Builder(IToolChain parent, String Id, String name, Builder builder) { this.parent = parent; superClass = builder.superClass; if (superClass != null) { if (builder.superClassId != null) { superClassId = new String(builder.superClassId); } } setId(Id); setName(name); // Set the managedBuildRevision & the version setManagedBuildRevision(builder.getManagedBuildRevision()); setVersion(getVersionFromId()); isExtensionBuilder = false; // Copy the remaining attributes if(builder.versionsSupported != null) { versionsSupported = new String(builder.versionsSupported); } if(builder.convertToId != null) { convertToId = new String(builder.convertToId); } if (builder.unusedChildren != null) { unusedChildren = new String(builder.unusedChildren); } if (builder.errorParserIds != null) { errorParserIds = new String(builder.errorParserIds); } if (builder.isAbstract != null) { isAbstract = new Boolean(builder.isAbstract.booleanValue()); } if (builder.command != null) { command = new String(builder.command); } if (builder.args != null) { args = new String(builder.args); } buildFileGeneratorElement = builder.buildFileGeneratorElement; if(builder.fileContextBuildMacroValues != null){ fileContextBuildMacroValues = (FileContextBuildMacroValues)builder.fileContextBuildMacroValues.clone(); fileContextBuildMacroValues.setBuilder(this); } builderVariablePattern = builder.builderVariablePattern; if(builder.isVariableCaseSensitive != null) isVariableCaseSensitive = new Boolean(builder.isVariableCaseSensitive.booleanValue()); if(builder.reservedMacroNames != null) reservedMacroNames = (String[])builder.reservedMacroNames.clone(); reservedMacroNameSupplierElement = builder.reservedMacroNameSupplierElement; reservedMacroNameSupplier = builder.reservedMacroNameSupplier; setDirty(true); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/74e3308a05729aeaf4841395f96c1c1d10c7764f/Builder.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Builder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5008,
12,
45,
6364,
3893,
982,
16,
514,
3124,
16,
514,
508,
16,
5008,
2089,
13,
288,
202,
202,
2211,
18,
2938,
273,
982,
31,
202,
202,
9565,
797,
273,
2089,
18,
9565,
797,
31,
202,
202,
430,
261,
9565,
797,
480,
446,
13,
288,
1082,
202,
430,
261,
9574,
18,
9565,
797,
548,
480,
446,
13,
288,
9506,
202,
9565,
797,
548,
273,
394,
514,
12,
9574,
18,
9565,
797,
548,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
542,
548,
12,
548,
1769,
202,
202,
542,
461,
12,
529,
1769,
9506,
202,
759,
1000,
326,
7016,
3116,
7939,
473,
326,
1177,
202,
202,
542,
10055,
3116,
7939,
12,
9574,
18,
588,
10055,
3116,
7939,
10663,
202,
202,
542,
1444,
12,
588,
1444,
1265,
548,
10663,
202,
202,
291,
3625,
1263,
273,
629,
31,
9506,
202,
759,
225,
5631,
326,
4463,
1677,
202,
202,
430,
12,
9574,
18,
10169,
7223,
480,
446,
13,
288,
1082,
202,
10169,
7223,
273,
394,
514,
12,
9574,
18,
10169,
7223,
1769,
202,
202,
97,
202,
202,
430,
12,
9574,
18,
6283,
774,
548,
480,
446,
13,
288,
1082,
202,
6283,
774,
548,
273,
394,
514,
12,
9574,
18,
6283,
774,
548,
1769,
202,
202,
97,
202,
202,
430,
261,
9574,
18,
14375,
4212,
480,
446,
13,
288,
1082,
202,
14375,
4212,
273,
394,
514,
12,
9574,
18,
14375,
4212,
1769,
202,
202,
97,
202,
202,
430,
261,
9574,
18,
1636,
2678,
2673,
480,
446,
13,
288,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5008,
12,
45,
6364,
3893,
982,
16,
514,
3124,
16,
514,
508,
16,
5008,
2089,
13,
288,
202,
202,
2211,
18,
2938,
273,
982,
31,
202,
202,
9565,
797,
273,
2089,
18,
9565,
797,
31,
202,
202,
430,
261,
9565,
797,
480,
446,
13,
288,
1082,
202,
430,
261,
9574,
18,
9565,
797,
548,
480,
446,
13,
288,
9506,
202,
9565,
797,
548,
273,
394,
514,
12,
9574,
18,
9565,
797,
548,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
542,
548,
12,
548,
1769,
202,
202,
542,
461,
12,
529,
1769,
9506,
202,
759,
1000,
326,
7016,
3116,
7939,
473,
326,
1177,
202,
202,
542,
10055,
3116,
7939,
12,
9574,
18,
588,
10055,
3116,
2
] |
context.setAutoSwapBufferMode(onOrOff);
|
if (!hardwareAccelerationDisabled) { pbuffer.setAutoSwapBufferMode(onOrOff); } else { offscreenContext.setAutoSwapBufferMode(onOrOff); }
|
public void setAutoSwapBufferMode(boolean onOrOff) { context.setAutoSwapBufferMode(onOrOff); }
|
46813 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46813/8da5bfa2d72282bfdcd2889a70a93a4072221a1c/GLJPanel.java/buggy/src/net/java/games/jogl/GLJPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
21780,
12521,
1892,
2309,
12,
6494,
603,
1162,
7210,
13,
288,
565,
309,
16051,
25118,
18019,
7067,
8853,
13,
288,
293,
4106,
18,
542,
4965,
12521,
1892,
2309,
12,
265,
1162,
7210,
1769,
289,
469,
288,
3397,
9252,
1042,
18,
542,
4965,
12521,
1892,
2309,
12,
265,
1162,
7210,
1769,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
21780,
12521,
1892,
2309,
12,
6494,
603,
1162,
7210,
13,
288,
565,
309,
16051,
25118,
18019,
7067,
8853,
13,
288,
293,
4106,
18,
542,
4965,
12521,
1892,
2309,
12,
265,
1162,
7210,
1769,
289,
469,
288,
3397,
9252,
1042,
18,
542,
4965,
12521,
1892,
2309,
12,
265,
1162,
7210,
1769,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Entity e = new MechFileParser(MechSummaryCache.getInstance().getMech(ARGS[0]).getSourceFile()).getMech();
|
Entity e = new MechFileParser(MechSummaryCache.getInstance().getMech(ARGS[0]).getSourceFile()).getEntity();
|
public static void main(String[] ARGS) throws Exception { Entity e = new MechFileParser(MechSummaryCache.getInstance().getMech(ARGS[0]).getSourceFile()).getMech(); System.out.println(format(e)); }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/c13078af61d4e10c373dcfb791551fd37d7e7df8/UnitStatusFormatter.java/clean/megamek/src/megamek/server/UnitStatusFormatter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
13984,
55,
13,
3639,
1216,
1185,
565,
288,
3639,
3887,
425,
273,
394,
7499,
343,
812,
2678,
12,
4667,
343,
4733,
1649,
18,
588,
1442,
7675,
588,
4667,
343,
12,
22439,
63,
20,
65,
2934,
588,
31150,
1435,
2934,
588,
1943,
5621,
3639,
2332,
18,
659,
18,
8222,
12,
2139,
12,
73,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
13984,
55,
13,
3639,
1216,
1185,
565,
288,
3639,
3887,
425,
273,
394,
7499,
343,
812,
2678,
12,
4667,
343,
4733,
1649,
18,
588,
1442,
7675,
588,
4667,
343,
12,
22439,
63,
20,
65,
2934,
588,
31150,
1435,
2934,
588,
1943,
5621,
3639,
2332,
18,
659,
18,
8222,
12,
2139,
12,
73,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public final VM_CompiledMethod getCompiledMethod() { return VM_CompiledMethods.getCompiledMethod(cmid); }
|
public final VM_CompiledMethod getCompiledMethod() { return cm; }
|
public final VM_CompiledMethod getCompiledMethod() { return VM_CompiledMethods.getCompiledMethod(cmid); }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/60c3938074a7370b960db5ee239f92f8b7248e8d/VM_HotMethodEvent.java/buggy/rvm/src/vm/adaptive/controller/VM_HotMethodEvent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
8251,
67,
20733,
1305,
336,
20733,
1305,
1435,
288,
565,
327,
8251,
67,
20733,
4712,
18,
588,
20733,
1305,
12,
7670,
350,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
8251,
67,
20733,
1305,
336,
20733,
1305,
1435,
288,
565,
327,
8251,
67,
20733,
4712,
18,
588,
20733,
1305,
12,
7670,
350,
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
] |
try { img = (java.awt.Image) _ids.loadImage( new URL( sUrl ) ); } catch ( ChartException ilex ) { throw new ChartException( ChartDeviceExtensionPlugin.ID, ChartException.RENDERING, ilex ); } catch ( MalformedURLException muex ) { throw new ChartException( ChartDeviceExtensionPlugin.ID, ChartException.RENDERING, muex );
|
if ( flBackground instanceof EmbeddedImage ) { try { byte[] data = Base64.decode( ( (EmbeddedImage) flBackground ).getData( ) ); img = createImage( data ); } catch ( Exception ilex ) { throw new ChartException( ChartDeviceExtensionPlugin.ID, ChartException.RENDERING, ilex ); } } else { try { final String sUrl = ( (org.eclipse.birt.chart.model.attribute.Image) flBackground ).getURL( ); img = (java.awt.Image) _ids.loadImage( new URL( sUrl ) ); } catch ( ChartException ilex ) { throw new ChartException( ChartDeviceExtensionPlugin.ID, ChartException.RENDERING, ilex ); } catch ( MalformedURLException muex ) { throw new ChartException( ChartDeviceExtensionPlugin.ID, ChartException.RENDERING, muex ); }
|
public void fillArc( ArcRenderEvent are ) throws ChartException { final Fill flBackground = are.getBackground( ); if ( flBackground instanceof ColorDefinition ) { final Color clrPrevious = _g2d.getColor( ); final Color currentColor = (Color) _ids.getColor( (ColorDefinition) flBackground ); _g2d.setColor( currentColor ); if ( are.getInnerRadius( ) >= 0 && are.getOuterRadius( ) > 0 && are.getInnerRadius( ) < are.getOuterRadius( ) ) { Shape outerArc = new Arc2D.Double( are.getTopLeft( ).getX( ) + ( are.getWidth( ) - 2 * are.getOuterRadius( ) ) / 2, are.getTopLeft( ).getY( ) + ( are.getHeight( ) - 2 * are.getOuterRadius( ) ) / 2, 2 * are.getOuterRadius( ), 2 * are.getOuterRadius( ), are.getStartAngle( ), are.getAngleExtent( ), Arc2D.PIE ); Shape innerArc = new Arc2D.Double( are.getTopLeft( ).getX( ) + ( are.getWidth( ) - 2 * are.getInnerRadius( ) ) / 2, are.getTopLeft( ).getY( ) + ( are.getHeight( ) - 2 * are.getInnerRadius( ) ) / 2, 2 * are.getInnerRadius( ), 2 * are.getInnerRadius( ), are.getStartAngle( ), are.getAngleExtent( ), Arc2D.PIE ); Area fArea = new Area( outerArc ); fArea.exclusiveOr( new Area( innerArc ) ); Shape prevClip = _g2d.getClip( ); Area ar1 = new Area( prevClip ); Area ar2 = new Area( fArea ); ar2.intersect( ar1 ); _g2d.setClip( ar2 ); _g2d.fill( fArea ); _g2d.setClip( prevClip ); } else { _g2d.fill( new Arc2D.Double( are.getTopLeft( ).getX( ), are.getTopLeft( ).getY( ), are.getWidth( ), are.getHeight( ), are.getStartAngle( ), are.getAngleExtent( ), toSwingArcType( are.getStyle( ) ) ) ); } _g2d.setColor( clrPrevious ); // RESTORE } else if ( flBackground instanceof Gradient ) { final Gradient g = (Gradient) flBackground; final ColorDefinition cdStart = (ColorDefinition) g.getStartColor( ); final ColorDefinition cdEnd = (ColorDefinition) g.getEndColor( ); double dAngleInDegrees = g.getDirection( ); final double dAngleInRadians = ( ( -dAngleInDegrees * Math.PI ) / 180.0 ); Bounds bo = are.getBounds( ); if ( dAngleInDegrees < -90 || dAngleInDegrees > 90 ) { throw new ChartException( ChartDeviceExtensionPlugin.ID, ChartException.RENDERING, "exception.gradient.angle",//$NON-NLS-1$ new Object[]{ new Double( dAngleInDegrees ) }, ResourceBundle.getBundle( Messages.DEVICE_EXTENSION, getLocale( ) ) ); } Point2D.Double p2dStart, p2dEnd; if ( dAngleInDegrees == 90 ) { p2dStart = new Point2D.Double( bo.getLeft( ), bo.getTop( ) + bo.getHeight( ) ); p2dEnd = new Point2D.Double( bo.getLeft( ), bo.getTop( ) ); } else if ( dAngleInDegrees == -90 ) { p2dEnd = new Point2D.Double( bo.getLeft( ), bo.getTop( ) + bo.getHeight( ) ); p2dStart = new Point2D.Double( bo.getLeft( ), bo.getTop( ) ); } else if ( dAngleInDegrees > 0 ) { p2dStart = new Point2D.Double( bo.getLeft( ), bo.getTop( ) + bo.getHeight( ) ); p2dEnd = new Point2D.Double( bo.getLeft( ) + bo.getWidth( ), bo.getTop( ) + bo.getHeight( ) - bo.getWidth( ) * Math.abs( Math.tan( dAngleInRadians ) ) ); } else if ( dAngleInDegrees < 0 ) { p2dStart = new Point2D.Double( bo.getLeft( ), bo.getTop( ) ); p2dEnd = new Point2D.Double( bo.getLeft( ) + bo.getWidth( ), bo.getTop( ) + bo.getWidth( ) * Math.abs( Math.tan( dAngleInRadians ) ) ); } else { p2dStart = new Point2D.Double( bo.getLeft( ), bo.getTop( ) ); p2dEnd = new Point2D.Double( bo.getLeft( ) + bo.getWidth( ), bo.getTop( ) ); } final Paint pPrevious = _g2d.getPaint( ); _g2d.setPaint( new GradientPaint( p2dStart, (Color) _ids.getColor( cdStart ), p2dEnd, (Color) _ids.getColor( cdEnd ) ) ); if ( are.getInnerRadius( ) >= 0 && are.getOuterRadius( ) > 0 && are.getInnerRadius( ) < are.getOuterRadius( ) ) { Shape outerArc = new Arc2D.Double( are.getTopLeft( ).getX( ) + ( are.getWidth( ) - 2 * are.getOuterRadius( ) ) / 2, are.getTopLeft( ).getY( ) + ( are.getHeight( ) - 2 * are.getOuterRadius( ) ) / 2, 2 * are.getOuterRadius( ), 2 * are.getOuterRadius( ), are.getStartAngle( ), are.getAngleExtent( ), Arc2D.PIE ); Shape innerArc = new Arc2D.Double( are.getTopLeft( ).getX( ) + ( are.getWidth( ) - 2 * are.getInnerRadius( ) ) / 2, are.getTopLeft( ).getY( ) + ( are.getHeight( ) - 2 * are.getInnerRadius( ) ) / 2, 2 * are.getInnerRadius( ), 2 * are.getInnerRadius( ), are.getStartAngle( ), are.getAngleExtent( ), Arc2D.PIE ); Area fArea = new Area( outerArc ); fArea.exclusiveOr( new Area( innerArc ) ); Shape prevClip = _g2d.getClip( ); Area ar1 = new Area( prevClip ); Area ar2 = new Area( fArea ); ar2.intersect( ar1 ); _g2d.setClip( ar2 ); _g2d.fill( fArea ); _g2d.setClip( prevClip ); } else { _g2d.fill( new Arc2D.Double( are.getTopLeft( ).getX( ), are.getTopLeft( ).getY( ), are.getWidth( ), are.getHeight( ), are.getStartAngle( ), are.getAngleExtent( ), toSwingArcType( are.getStyle( ) ) ) ); } _g2d.setPaint( pPrevious ); // RESTORE } else if ( flBackground instanceof org.eclipse.birt.chart.model.attribute.Image ) { final Bounds bo = are.getBounds( ); final Rectangle2D.Double r2d = new Rectangle2D.Double( bo.getLeft( ), bo.getTop( ), bo.getWidth( ), bo.getHeight( ) ); Shape shPreviousClip = _g2d.getClip( ); if ( are.getInnerRadius( ) >= 0 && are.getOuterRadius( ) > 0 && are.getInnerRadius( ) < are.getOuterRadius( ) ) { Shape outerArc = new Arc2D.Double( are.getTopLeft( ).getX( ) + ( are.getWidth( ) - 2 * are.getOuterRadius( ) ) / 2, are.getTopLeft( ).getY( ) + ( are.getHeight( ) - 2 * are.getOuterRadius( ) ) / 2, 2 * are.getOuterRadius( ), 2 * are.getOuterRadius( ), are.getStartAngle( ), are.getAngleExtent( ), Arc2D.PIE ); Shape innerArc = new Arc2D.Double( are.getTopLeft( ).getX( ) + ( are.getWidth( ) - 2 * are.getInnerRadius( ) ) / 2, are.getTopLeft( ).getY( ) + ( are.getHeight( ) - 2 * are.getInnerRadius( ) ) / 2, 2 * are.getInnerRadius( ), 2 * are.getInnerRadius( ), are.getStartAngle( ), are.getAngleExtent( ), Arc2D.PIE ); Area fArea = new Area( outerArc ); fArea.exclusiveOr( new Area( innerArc ) ); Area ar1 = new Area( shPreviousClip ); fArea.intersect( ar1 ); _g2d.setClip( fArea ); } else { // SETUP THE CLIPPING AREA final Shape shArc = new Arc2D.Double( are.getTopLeft( ).getX( ), are.getTopLeft( ).getY( ), are.getWidth( ), are.getHeight( ), are.getStartAngle( ), are.getAngleExtent( ), toSwingArcType( are.getStyle( ) ) ); Area ar1 = new Area( shPreviousClip ); Area ar2 = new Area( shArc ); ar2.intersect( ar1 ); _g2d.setClip( ar2 ); } // LOAD THE IMAGE final String sUrl = ( (org.eclipse.birt.chart.model.attribute.Image) flBackground ).getURL( ); java.awt.Image img = null; try { img = (java.awt.Image) _ids.loadImage( new URL( sUrl ) ); } catch ( ChartException ilex ) { throw new ChartException( ChartDeviceExtensionPlugin.ID, ChartException.RENDERING, ilex ); } catch ( MalformedURLException muex ) { throw new ChartException( ChartDeviceExtensionPlugin.ID, ChartException.RENDERING, muex ); } // REPLICATE THE IMAGE AS NEEDED final Size szImage = _ids.getSize( img ); int iXRepeat = (int) ( Math.ceil( r2d.width / szImage.getWidth( ) ) ); int iYRepeat = (int) ( Math.ceil( r2d.height / szImage.getHeight( ) ) ); ImageObserver io = (ImageObserver) _ids.getObserver( ); for ( int i = 0; i < iXRepeat; i++ ) { for ( int j = 0; j < iYRepeat; j++ ) { _g2d.drawImage( img, (int) ( r2d.x + i * szImage.getWidth( ) ), (int) ( r2d.y + j * szImage.getHeight( ) ), io ); } } _g2d.setClip( shPreviousClip ); // RESTORE } }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/99ab478a2cd0ab25560606c29779d9cf026ebe25/SwingRendererImpl.java/clean/chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingRendererImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
14598,
12,
24881,
3420,
1133,
854,
262,
1216,
14804,
503,
202,
95,
202,
202,
6385,
14192,
1183,
8199,
273,
854,
18,
588,
8199,
12,
11272,
202,
202,
430,
261,
1183,
8199,
1276,
5563,
1852,
262,
202,
202,
95,
1082,
202,
6385,
5563,
927,
86,
8351,
273,
389,
75,
22,
72,
18,
588,
2957,
12,
11272,
1082,
202,
6385,
5563,
783,
2957,
273,
261,
2957,
13,
389,
2232,
18,
588,
2957,
12,
261,
2957,
1852,
13,
1183,
8199,
11272,
1082,
202,
67,
75,
22,
72,
18,
542,
2957,
12,
783,
2957,
11272,
1082,
202,
430,
261,
854,
18,
588,
2857,
10196,
12,
262,
1545,
374,
6862,
202,
10,
10,
854,
18,
588,
15040,
10196,
12,
262,
405,
374,
6862,
202,
10,
10,
854,
18,
588,
2857,
10196,
12,
262,
411,
854,
18,
588,
15040,
10196,
12,
262,
262,
1082,
202,
95,
9506,
202,
8500,
6390,
14598,
273,
394,
24881,
22,
40,
18,
5265,
12,
854,
18,
588,
3401,
3910,
12,
262,
18,
588,
60,
12,
262,
25083,
202,
15,
261,
854,
18,
588,
2384,
12,
262,
300,
576,
380,
854,
18,
588,
15040,
10196,
12,
262,
262,
25083,
202,
19,
576,
16,
25083,
202,
834,
18,
588,
3401,
3910,
12,
262,
18,
588,
61,
12,
262,
6862,
9506,
202,
15,
261,
854,
18,
588,
2686,
12,
262,
300,
576,
380,
854,
18,
588,
15040,
10196,
12,
262,
262,
6862,
9506,
202,
19,
576,
16,
25083,
202,
22,
380,
854,
18,
588,
15040,
10196,
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,
3636,
14598,
12,
24881,
3420,
1133,
854,
262,
1216,
14804,
503,
202,
95,
202,
202,
6385,
14192,
1183,
8199,
273,
854,
18,
588,
8199,
12,
11272,
202,
202,
430,
261,
1183,
8199,
1276,
5563,
1852,
262,
202,
202,
95,
1082,
202,
6385,
5563,
927,
86,
8351,
273,
389,
75,
22,
72,
18,
588,
2957,
12,
11272,
1082,
202,
6385,
5563,
783,
2957,
273,
261,
2957,
13,
389,
2232,
18,
588,
2957,
12,
261,
2957,
1852,
13,
1183,
8199,
11272,
1082,
202,
67,
75,
22,
72,
18,
542,
2957,
12,
783,
2957,
11272,
1082,
202,
430,
261,
854,
18,
588,
2857,
10196,
12,
262,
1545,
374,
6862,
202,
10,
10,
854,
18,
588,
15040,
10196,
12,
2
] |
public Message create( String beginString, String msgType ) { if("0".equals(msgType)) { return new quickfix.fix43.Heartbeat(); } if("A".equals(msgType)) { return new quickfix.fix43.Logon(); } if("1".equals(msgType)) { return new quickfix.fix43.TestRequest(); } if("2".equals(msgType)) { return new quickfix.fix43.ResendRequest(); } if("3".equals(msgType)) { return new quickfix.fix43.Reject(); } if("4".equals(msgType)) { return new quickfix.fix43.SequenceReset(); } if("5".equals(msgType)) { return new quickfix.fix43.Logout(); } if("j".equals(msgType)) { return new quickfix.fix43.BusinessMessageReject(); } if("7".equals(msgType)) { return new quickfix.fix43.Advertisement(); } if("6".equals(msgType)) { return new quickfix.fix43.IndicationOfInterest(); } if("B".equals(msgType)) { return new quickfix.fix43.News(); } if("C".equals(msgType)) { return new quickfix.fix43.Email(); } if("R".equals(msgType)) { return new quickfix.fix43.QuoteRequest(); } if("AG".equals(msgType)) { return new quickfix.fix43.QuoteRequestReject(); } if("AH".equals(msgType)) { return new quickfix.fix43.RFQRequest(); } if("S".equals(msgType)) { return new quickfix.fix43.Quote(); } if("Z".equals(msgType)) { return new quickfix.fix43.QuoteCancel(); } if("a".equals(msgType)) { return new quickfix.fix43.QuoteStatusRequest(); } if("AI".equals(msgType)) { return new quickfix.fix43.QuoteStatusReport(); } if("i".equals(msgType)) { return new quickfix.fix43.MassQuote(); } if("b".equals(msgType)) { return new quickfix.fix43.MassQuoteAcknowledgement(); } if("V".equals(msgType)) { return new quickfix.fix43.MarketDataRequest(); } if("W".equals(msgType)) { return new quickfix.fix43.MarketDataSnapshotFullRefresh(); } if("X".equals(msgType)) { return new quickfix.fix43.MarketDataIncrementalRefresh(); } if("Y".equals(msgType)) { return new quickfix.fix43.MarketDataRequestReject(); } if("c".equals(msgType)) { return new quickfix.fix43.SecurityDefinitionRequest(); } if("d".equals(msgType)) { return new quickfix.fix43.SecurityDefinition(); } if("v".equals(msgType)) { return new quickfix.fix43.SecurityTypeRequest(); } if("w".equals(msgType)) { return new quickfix.fix43.SecurityTypes(); } if("x".equals(msgType)) { return new quickfix.fix43.SecurityListRequest(); } if("y".equals(msgType)) { return new quickfix.fix43.SecurityList(); } if("z".equals(msgType)) { return new quickfix.fix43.DerivativeSecurityListRequest(); } if("AA".equals(msgType)) { return new quickfix.fix43.DerivativeSecurityList(); } if("e".equals(msgType)) { return new quickfix.fix43.SecurityStatusRequest(); } if("f".equals(msgType)) { return new quickfix.fix43.SecurityStatus(); } if("g".equals(msgType)) { return new quickfix.fix43.TradingSessionStatusRequest(); } if("h".equals(msgType)) { return new quickfix.fix43.TradingSessionStatus(); } if("D".equals(msgType)) { return new quickfix.fix43.NewOrderSingle(); } if("8".equals(msgType)) { return new quickfix.fix43.ExecutionReport(); } if("Q".equals(msgType)) { return new quickfix.fix43.DontKnowTrade(); } if("G".equals(msgType)) { return new quickfix.fix43.OrderCancelReplaceRequest(); } if("F".equals(msgType)) { return new quickfix.fix43.OrderCancelRequest(); } if("9".equals(msgType)) { return new quickfix.fix43.OrderCancelReject(); } if("H".equals(msgType)) { return new quickfix.fix43.OrderStatusRequest(); } if("q".equals(msgType)) { return new quickfix.fix43.OrderMassCancelRequest(); } if("r".equals(msgType)) { return new quickfix.fix43.OrderMassCancelReport(); } if("AF".equals(msgType)) { return new quickfix.fix43.OrderMassStatusRequest(); } if("s".equals(msgType)) { return new quickfix.fix43.NewOrderCross(); } if("t".equals(msgType)) { return new quickfix.fix43.CrossOrderCancelReplaceRequest(); } if("u".equals(msgType)) { return new quickfix.fix43.CrossOrderCancelRequest(); } if("AB".equals(msgType)) { return new quickfix.fix43.NewOrderMultileg(); } if("AC".equals(msgType)) { return new quickfix.fix43.MultilegOrderCancelReplaceRequest(); } if("k".equals(msgType)) { return new quickfix.fix43.BidRequest(); } if("l".equals(msgType)) { return new quickfix.fix43.BidResponse(); } if("E".equals(msgType)) { return new quickfix.fix43.NewOrderList(); } if("m".equals(msgType)) { return new quickfix.fix43.ListStrikePrice(); } if("L".equals(msgType)) { return new quickfix.fix43.ListExecute(); } if("K".equals(msgType)) { return new quickfix.fix43.ListCancelRequest(); } if("M".equals(msgType)) { return new quickfix.fix43.ListStatusRequest(); } if("N".equals(msgType)) { return new quickfix.fix43.ListStatus(); } if("J".equals(msgType)) { return new quickfix.fix43.Allocation(); } if("P".equals(msgType)) { return new quickfix.fix43.AllocationACK(); } if("T".equals(msgType)) { return new quickfix.fix43.SettlementInstructions(); } if("AD".equals(msgType)) { return new quickfix.fix43.TradeCaptureReportRequest(); } if("AE".equals(msgType)) { return new quickfix.fix43.TradeCaptureReport(); } if("o".equals(msgType)) { return new quickfix.fix43.RegistrationInstructions(); } if("p".equals(msgType)) { return new quickfix.fix43.RegistrationInstructionsResponse(); } return new quickfix.fix43.Message(); }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/1550773ed3d856616a145b520aada7f5e496c228/MessageFactory.java/buggy/src/java/src/quickfix/fix43/MessageFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2350,
752,
12,
514,
2376,
780,
16,
514,
1234,
559,
262,
288,
282,
309,
2932,
20,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
8942,
18,
15894,
5621,
282,
289,
282,
309,
2932,
37,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
8942,
18,
1343,
265,
5621,
282,
289,
282,
309,
2932,
21,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
8942,
18,
4709,
691,
5621,
282,
289,
282,
309,
2932,
22,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
8942,
18,
607,
409,
691,
5621,
282,
289,
282,
309,
2932,
23,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
8942,
18,
21705,
5621,
282,
289,
282,
309,
2932,
24,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
8942,
18,
4021,
7013,
5621,
282,
289,
282,
309,
2932,
25,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
8942,
18,
19456,
5621,
282,
289,
282,
309,
2932,
78,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
8942,
18,
13423,
1079,
21705,
5621,
282,
289,
282,
309,
2932,
27,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
8942,
18,
1871,
1097,
291,
820,
5621,
282,
289,
282,
309,
2932,
26,
9654,
14963,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2350,
752,
12,
514,
2376,
780,
16,
514,
1234,
559,
262,
288,
282,
309,
2932,
20,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
8942,
18,
15894,
5621,
282,
289,
282,
309,
2932,
37,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
8942,
18,
1343,
265,
5621,
282,
289,
282,
309,
2932,
21,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
8942,
18,
4709,
691,
5621,
282,
289,
282,
309,
2932,
22,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
8942,
18,
607,
409,
691,
5621,
282,
289,
282,
309,
2932,
23,
9654,
2
] |
||
private Object createBean(final PerRequestInfo pri, final String beanname) { CreationMarker marker = (CreationMarker) pri.beans.locateBean(beanname); boolean success = false; if (marker == null) { marker = BEAN_IN_CREATION_OBJECT; pri.beans.set(beanname, marker); } try { RSACBeanInfo rbi = (RSACBeanInfo) rbimap.get(beanname); if (rbi == null) { throw new NoSuchBeanDefinitionException(beanname, "Bean definition not found"); } // implement fetch wrappers in such a way that doesn't slow normal // creation. if (rbi.fetchwrappers != null && marker.wrapperindex < rbi.fetchwrappers.length) { if (marker.wrapperindex == 0) { pri.beans.set(beanname, new CreationMarker(1)); } else { ++marker.wrapperindex; } Object wrappero = rbi.fetchwrappers[marker.wrapperindex]; RunnableWrapper wrapper = (RunnableWrapper) (wrappero instanceof RunnableWrapper ? wrappero : getBean(pri, (String) wrappero, true)); final Object[] togo = new Object[1]; wrapper.wrapRunnable(new Runnable() { public void run() { togo[0] = createBean(pri, beanname); } }).run(); return togo[0]; } ++pri.cbeans; Object newbean; // NB - isn't this odd, and in fact generally undocumented - properties // defined for factory-method beans are set on the PRODUCT, whereas those // set on FactoryBeans are set on the FACTORY!! if (rbi.factorybean != null) { Object factorybean = getBean(pri, rbi.factorybean, false); newbean = reflectivecache.invokeMethod(factorybean, rbi.factorymethod); if (newbean == null) { throw new IllegalArgumentException( "Error: null returned from factory method " + rbi.factorymethod + " of bean " + rbi.factorybean); } // rbi.beanclass = newbean.getClass(); } else { // Locate the "dead" bean from the genuine Spring context, and clone it // as quick as we can - bytecodes might do faster but in the meantime // observe that a clone typically costs 1.6 reflective calls so in // general // this method will win over a reflective solution. // NB - all Copiables simply copy dependencies manually for now, no // cost. // Copiable deadbean = (Copiable) livecontext.getBean(rbi.isfactorybean? // "&" +beanname : beanname); // All the same, the following line will cost us close to 1us - unless // it // invokes manual code! newbean = reflectivecache.construct(rbi.beanclass); } if (rbi.hasDependencies()) { // guard this block since if it is a factory-method bean it may be // something // extremely undesirable (like an inner class) that we should not even // dream of reflecting over. If on the other hand the user has specified // some dependencies they doubtless know what they are doing. MethodAnalyser ma = smc.getAnalyser(newbean.getClass()); // Object clonebean = deadbean.copy(); // iterate over each LOCAL dependency of the bean with given name. for (Iterator depit = rbi.dependencies(); depit.hasNext();) { String propertyname = (String) depit.next(); try { AccessMethod setter = ma.getAccessMethod(propertyname); Object depbean = null; Object beanref = rbi.beannames(propertyname); if (beanref instanceof String) { depbean = getBean(pri, (String) beanref, false); } else if (beanref instanceof ValueHolder) { Class accezzz = setter.getAccessedType(); String value = ((ValueHolder) beanref).value; if (smc.saxleafparser.isLeafType(accezzz)) { depbean = smc.saxleafparser.parse(accezzz, value); } else { // exception def copied from the beast BeanWrapperImpl! throw new TypeMismatchException(new PropertyChangeEvent( newbean, propertyname, null, value), accezzz, null); } } else { // Really need generalised conversion of vector values here. // The code to do this is actually WITHIN the grotty // BeanWrapperImpl // itself in a protected method with 5 arguments!! // This is a sort of 50% solution. It will deal with all 1-d array // types and collections, and values of parseable types. depbean = assembleVectorProperty(pri, (StringList) beanref, setter.getDeclaredType()); } // Lose another 500ns here, until we bring on FastClass. setter.setChildObject(newbean, depbean); } catch (Exception e) { throw UniversalRuntimeException.accumulate(e, "Error setting dependency " + propertyname + " of bean " + beanname); } } } if (rbi.dependson != null) { for (int i = 0; i < rbi.dependson.length; ++i) { getBean(pri, rbi.dependson[i], false); } } // process it FIRST since it will be the factory that is expecting the // dependencies set! processNewBean(pri, beanname, newbean); // now the bean is initialised, attempt to call any init-method or // InitBean. if (rbi.initmethod != null) { reflectivecache.invokeMethod(newbean, rbi.initmethod); } if (newbean instanceof InitializingBean) { try { ((InitializingBean) newbean).afterPropertiesSet(); } catch (Exception e) { // Evil Rod! Bad Juergen! throw UniversalRuntimeException.accumulate(e); } } if (rbi.destroymethod != null) { pri.todestroy.add(beanname); } if (newbean instanceof FactoryBean) { FactoryBean factorybean = (FactoryBean) newbean; try { newbean = factorybean.getObject(); } catch (Exception e) { throw UniversalRuntimeException.accumulate(e); } } // enter the bean into the req-specific map. pri.beans.set(beanname, newbean); success = true; return newbean; } finally { if (marker == BEAN_IN_CREATION_OBJECT && !success) { pri.beans.remove(beanname); } } }
|
48218 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48218/09d28df0c200a042576ff2a3e363910efb05ece8/RSACBeanLocator.java/buggy/src/uk/org/ponder/rsac/RSACBeanLocator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
3238,
1033,
752,
3381,
12,
6385,
5722,
23113,
14705,
16,
727,
514,
3931,
529,
13,
288,
225,
18199,
7078,
5373,
273,
261,
9906,
7078,
13,
14705,
18,
2196,
634,
18,
25450,
3381,
12,
14496,
529,
1769,
225,
1250,
2216,
273,
629,
31,
225,
309,
261,
11145,
422,
446,
13,
288,
282,
5373,
273,
9722,
1258,
67,
706,
67,
5458,
2689,
67,
9422,
31,
282,
14705,
18,
2196,
634,
18,
542,
12,
14496,
529,
16,
5373,
1769,
225,
289,
225,
775,
288,
282,
14746,
2226,
3381,
966,
7138,
77,
273,
261,
13225,
2226,
3381,
966,
13,
7138,
12161,
18,
588,
12,
14496,
529,
1769,
282,
309,
261,
6731,
77,
422,
446,
13,
288,
565,
604,
394,
5823,
3381,
1852,
503,
12,
14496,
529,
16,
1377,
315,
3381,
2379,
486,
1392,
8863,
282,
289,
282,
368,
2348,
2158,
21589,
316,
4123,
279,
4031,
716,
3302,
1404,
11816,
2212,
282,
368,
6710,
18,
282,
309,
261,
6731,
77,
18,
5754,
4113,
10422,
480,
446,
377,
597,
5373,
18,
8376,
1615,
411,
7138,
77,
18,
5754,
4113,
10422,
18,
2469,
13,
288,
565,
309,
261,
11145,
18,
8376,
1615,
422,
374,
13,
288,
377,
14705,
18,
2196,
634,
18,
542,
12,
14496,
529,
16,
394,
18199,
7078,
12,
21,
10019,
565,
289,
565,
469,
288,
377,
965,
11145,
18,
8376,
1615,
31,
565,
289,
565,
1033,
4053,
83,
273,
7138,
77,
18,
5754,
4113,
10422,
63,
11145,
18,
8376,
1615,
15533,
565,
10254,
3611,
4053,
273,
261,
20013,
3611,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
3238,
1033,
752,
3381,
12,
6385,
5722,
23113,
14705,
16,
727,
514,
3931,
529,
13,
288,
225,
18199,
7078,
5373,
273,
261,
9906,
7078,
13,
14705,
18,
2196,
634,
18,
25450,
3381,
12,
14496,
529,
1769,
225,
1250,
2216,
273,
629,
31,
225,
309,
261,
11145,
422,
446,
13,
288,
282,
5373,
273,
9722,
1258,
67,
706,
67,
5458,
2689,
67,
9422,
31,
282,
14705,
18,
2196,
634,
18,
542,
12,
14496,
529,
16,
5373,
1769,
225,
289,
225,
775,
288,
282,
14746,
2226,
3381,
966,
7138,
77,
273,
261,
13225,
2226,
3381,
966,
13,
7138,
12161,
18,
588,
12,
14496,
529,
1769,
282,
309,
261,
6731,
77,
422,
446,
13,
288,
565,
604,
394,
5823,
3381,
1852,
2
] |
||
try { rs.close(); } catch(SQLException e) {}
|
try { rs.close(); } catch(SQLException e) { }
|
public void testDatabaseMetaData() throws SQLException { Statement stmt = m_connection.createStatement(); ResultSet rs = null; try { System.out.println("*** DatabaseMetaData 'String' functions:"); rs = stmt.executeQuery("SELECT * FROM javatest.getMetaDataStrings()"); while(rs.next()) { String methodName = rs.getString(1); String methodResult = rs.getString(2); System.out.println( "Method = \"" + methodName + "\", result = \"" + methodResult + "\""); } rs.close(); System.out.println("*** DatabaseMetaData 'boolean' functions:"); rs = stmt.executeQuery("SELECT * FROM javatest.getMetaDataBooleans()"); while(rs.next()) { String methodName = rs.getString(1); boolean methodResult = rs.getBoolean(2); System.out.println( "Method = \"" + methodName + "\", result = \"" + methodResult + "\""); } rs.close(); System.out.println("*** DatabaseMetaData 'int' functions:"); rs = stmt.executeQuery("SELECT * FROM javatest.getMetaDataInts()"); while(rs.next()) { String methodName = rs.getString(1); int methodResult = rs.getInt(2); System.out.println( "Method = \"" + methodName + "\", result = \"" + methodResult + "\""); } rs.close(); executeMetaDataFunction(stmt, "getAttributes((String)null,\"javatest\",\"%\",\"%\")"); executeMetaDataFunction(stmt, "getBestRowIdentifier((String)null,\"sqlj\",\"jar_repository\",0,FALSE)"); executeMetaDataFunction(stmt, "getCatalogs()"); executeMetaDataFunction(stmt, "getColumnPrivileges((String)null,\"sqlj\",\"jar_repository\",\"jarid\")"); executeMetaDataFunction(stmt, "getColumns((String)null,\"sqlj\",\"jar_repository\",\"%\")"); executeMetaDataFunction(stmt, "getCrossReference((String)null,\"sqlj\",\"jar_repository\",(String)null,\"sqlj\",\"jar_entry\")"); executeMetaDataFunction(stmt, "getExportedKeys((String)null,\"sqlj\",\"jar_repository\")"); executeMetaDataFunction(stmt, "getImportedKeys((String)null,\"sqlj\",\"jar_repository\")"); executeMetaDataFunction(stmt, "getIndexInfo((String)null,\"sqlj\",\"jar_repository\",TRUE,FALSE)"); executeMetaDataFunction(stmt, "getPrimaryKeys((String)null,\"sqlj\",\"jar_repository\")"); executeMetaDataFunction(stmt, "getProcedureColumns((String)null,\"sqlj\",\"install_jar\",(String)null)"); executeMetaDataFunction(stmt, "getProcedures((String)null,\"sqlj\",\"%\")"); executeMetaDataFunction(stmt, "getSchemas()"); executeMetaDataFunction(stmt, "getSuperTables((String)null,\"sqlj\",\"jar_repository\")"); executeMetaDataFunction(stmt, "getSuperTypes((String)null,\"sqlj\",\"%\")"); executeMetaDataFunction(stmt, "getTablePrivileges((String)null,\"sqlj\",\"jar_repository\")"); executeMetaDataFunction(stmt, "getTables((String)null,\"sqlj\",\"jar%\",{\"TABLE\"})"); executeMetaDataFunction(stmt, "getTableTypes()"); executeMetaDataFunction(stmt, "getTypeInfo()"); executeMetaDataFunction(stmt, "getUDTs((String)null,\"sqlj\",\"%\",(int[])null)"); executeMetaDataFunction(stmt, "getVersionColumns((String)null,\"sqlj\",\"jar_repository\")"); } finally { if(rs != null) { try { rs.close(); } catch(SQLException e) {} rs = null; } } }
|
7270 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7270/efa76a6b7645e410731c10cec532ef6e6ea9f3f1/Tester.java/buggy/src/java/test/org/postgresql/pljava/test/Tester.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4254,
6998,
1435,
202,
15069,
6483,
202,
95,
202,
202,
3406,
3480,
273,
312,
67,
4071,
18,
2640,
3406,
5621,
202,
202,
13198,
3597,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
14465,
5130,
6998,
296,
780,
11,
4186,
2773,
1769,
1082,
202,
5453,
273,
3480,
18,
8837,
1138,
2932,
4803,
380,
4571,
5152,
270,
395,
18,
588,
6998,
7957,
1435,
8863,
1082,
202,
17523,
12,
5453,
18,
4285,
10756,
1082,
202,
95,
9506,
202,
780,
4918,
273,
3597,
18,
588,
780,
12,
21,
1769,
9506,
202,
780,
707,
1253,
273,
3597,
18,
588,
780,
12,
22,
1769,
9506,
202,
3163,
18,
659,
18,
8222,
12,
25083,
202,
6,
1305,
273,
11843,
397,
4918,
397,
25083,
202,
6,
22564,
563,
273,
11843,
397,
707,
1253,
397,
11143,
1769,
1082,
202,
97,
1082,
202,
5453,
18,
4412,
5621,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
14465,
5130,
6998,
296,
6494,
11,
4186,
2773,
1769,
1082,
202,
5453,
273,
3480,
18,
8837,
1138,
2932,
4803,
380,
4571,
5152,
270,
395,
18,
588,
6998,
38,
11887,
634,
1435,
8863,
1082,
202,
17523,
12,
5453,
18,
4285,
10756,
1082,
202,
95,
9506,
202,
780,
4918,
273,
3597,
18,
588,
780,
12,
21,
1769,
9506,
202,
6494,
707,
1253,
273,
3597,
18,
588,
5507,
12,
22,
1769,
9506,
202,
3163,
18,
659,
18,
8222,
12,
25083,
202,
6,
1305,
273,
11843,
397,
4918,
397,
25083,
202,
6,
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,
4254,
6998,
1435,
202,
15069,
6483,
202,
95,
202,
202,
3406,
3480,
273,
312,
67,
4071,
18,
2640,
3406,
5621,
202,
202,
13198,
3597,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
14465,
5130,
6998,
296,
780,
11,
4186,
2773,
1769,
1082,
202,
5453,
273,
3480,
18,
8837,
1138,
2932,
4803,
380,
4571,
5152,
270,
395,
18,
588,
6998,
7957,
1435,
8863,
1082,
202,
17523,
12,
5453,
18,
4285,
10756,
1082,
202,
95,
9506,
202,
780,
4918,
273,
3597,
18,
588,
780,
12,
21,
1769,
9506,
202,
780,
707,
1253,
273,
3597,
18,
588,
780,
12,
22,
1769,
9506,
202,
3163,
18,
659,
18,
8222,
2
] |
assertTrue("Wrong contents 2", testBuffer.toString().equals( "more stuff"));
|
assertEquals("Wrong contents 2", "more stuff", testBuffer.toString());
|
public void test_deleteII() { // Test for method java.lang.StringBuffer // java.lang.StringBuffer.delete(int, int) testBuffer.delete(7, 7); assertTrue("Deleted chars when start == end", testBuffer.toString() .equals("This is a test buffer")); testBuffer.delete(4, 14); assertTrue("Deleted incorrect chars", testBuffer.toString().equals( "This buffer")); testBuffer = new StringBuffer("This is a test buffer"); String sharedStr = testBuffer.toString(); testBuffer.delete(0, testBuffer.length()); assertTrue("Didn't clone shared buffer", sharedStr .equals("This is a test buffer")); assertTrue("Deleted incorrect chars", testBuffer.toString().equals("")); testBuffer.append("more stuff"); assertTrue("Didn't clone shared buffer 2", sharedStr .equals("This is a test buffer")); assertTrue("Wrong contents", testBuffer.toString().equals("more stuff")); try { testBuffer.delete(-5, 2); } catch (IndexOutOfBoundsException e) { } assertTrue("Wrong contents 2", testBuffer.toString().equals( "more stuff")); }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/181e940cd92dfff67639d98e991206d375a987ea/StringBufferTest.java/buggy/modules/luni/src/test/java/tests/api/java/lang/StringBufferTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
3733,
6954,
1435,
288,
202,
202,
759,
7766,
364,
707,
2252,
18,
4936,
18,
780,
1892,
202,
202,
759,
2252,
18,
4936,
18,
780,
1892,
18,
3733,
12,
474,
16,
509,
13,
202,
202,
3813,
1892,
18,
3733,
12,
27,
16,
2371,
1769,
202,
202,
11231,
5510,
2932,
7977,
5230,
1347,
787,
422,
679,
3113,
1842,
1892,
18,
10492,
1435,
9506,
202,
18,
14963,
2932,
2503,
353,
279,
1842,
1613,
7923,
1769,
202,
202,
3813,
1892,
18,
3733,
12,
24,
16,
5045,
1769,
202,
202,
11231,
5510,
2932,
7977,
11332,
5230,
3113,
1842,
1892,
18,
10492,
7675,
14963,
12,
9506,
202,
6,
2503,
1613,
7923,
1769,
202,
202,
3813,
1892,
273,
394,
6674,
2932,
2503,
353,
279,
1842,
1613,
8863,
202,
202,
780,
5116,
1585,
273,
1842,
1892,
18,
10492,
5621,
202,
202,
3813,
1892,
18,
3733,
12,
20,
16,
1842,
1892,
18,
2469,
10663,
202,
202,
11231,
5510,
2932,
18250,
82,
1404,
3236,
5116,
1613,
3113,
5116,
1585,
9506,
202,
18,
14963,
2932,
2503,
353,
279,
1842,
1613,
7923,
1769,
202,
202,
11231,
5510,
2932,
7977,
11332,
5230,
3113,
1842,
1892,
18,
10492,
7675,
14963,
2932,
7923,
1769,
202,
202,
3813,
1892,
18,
6923,
2932,
10161,
10769,
8863,
202,
202,
11231,
5510,
2932,
18250,
82,
1404,
3236,
5116,
1613,
576,
3113,
5116,
1585,
9506,
202,
18,
14963,
2932,
2503,
353,
279,
1842,
1613,
7923,
1769,
202,
202,
11231,
5510,
2932,
13634,
2939,
3113,
1842,
1892,
18,
10492,
7675,
14963,
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,
225,
202,
482,
918,
1842,
67,
3733,
6954,
1435,
288,
202,
202,
759,
7766,
364,
707,
2252,
18,
4936,
18,
780,
1892,
202,
202,
759,
2252,
18,
4936,
18,
780,
1892,
18,
3733,
12,
474,
16,
509,
13,
202,
202,
3813,
1892,
18,
3733,
12,
27,
16,
2371,
1769,
202,
202,
11231,
5510,
2932,
7977,
5230,
1347,
787,
422,
679,
3113,
1842,
1892,
18,
10492,
1435,
9506,
202,
18,
14963,
2932,
2503,
353,
279,
1842,
1613,
7923,
1769,
202,
202,
3813,
1892,
18,
3733,
12,
24,
16,
5045,
1769,
202,
202,
11231,
5510,
2932,
7977,
11332,
5230,
3113,
1842,
1892,
18,
10492,
7675,
14963,
12,
9506,
202,
6,
2503,
1613,
7923,
1769,
202,
202,
3813,
1892,
273,
394,
6674,
2
] |
summaryPattern.setFocus();
|
if (getWizard() == null) { summaryPattern.setFocus(); }
|
public void setVisible(boolean visible) { if (visible && summaryPattern != null) { if (firstTime) { firstTime = false; // Set item and text here to prevent page from resizing for (String searchPattern : getPreviousPatterns(previousSummaryPatterns)) { summaryPattern.add(searchPattern); } // summaryPattern.setItems(getPreviousPatterns(previousSummaryPatterns)); for (String comment : getPreviousPatterns(previousCommentPatterns)) { commentPattern.add(comment); } // commentPattern.setItems(getPreviousPatterns(previousCommentPatterns)); for (String email : getPreviousPatterns(previousEmailPatterns)) { emailPattern.add(email); } // emailPattern.setItems(getPreviousPatterns(previousEmailPatterns)); // TODO: update status, resolution, severity etc if possible... if (repository == null) { repository = MylarTaskListPlugin.getRepositoryManager().getDefaultRepository( BugzillaPlugin.REPOSITORY_KIND); } Set<TaskRepository> repositories = MylarTaskListPlugin.getRepositoryManager().getRepositories( BugzillaPlugin.REPOSITORY_KIND); String[] repositoryUrls = new String[repositories.size()]; int i = 0; int indexToSelect = 0; for (Iterator<TaskRepository> iter = repositories.iterator(); iter.hasNext();) { TaskRepository currRepsitory = iter.next(); // if (i == 0 && repository == null) { // repository = currRepsitory; // indexToSelect = 0; // } if (repository != null && repository.equals(currRepsitory)) { indexToSelect = i; } repositoryUrls[i] = currRepsitory.getUrl(); i++; } if (repository != null) { updateAttributesFromRepository(repository.getUrl(), null, false); if (product.getItemCount() == 0) { updateAttributesFromRepository(repository.getUrl(), null, true); } } if (repositoryCombo != null) { repositoryCombo.setItems(repositoryUrls); if (repositoryUrls.length == 0) { MessageDialog.openInformation(Display.getCurrent().getActiveShell(), IBugzillaConstants.TITLE_MESSAGE_DIALOG, TaskRepositoryManager.MESSAGE_NO_REPOSITORY); } else { repositoryCombo.select(indexToSelect); updateAttributesFromRepository(repositoryCombo.getItem(indexToSelect), null, false); } } if (originalQuery != null) { try { updateDefaults(originalQuery.getQueryUrl(), String.valueOf(originalQuery.getMaxHits())); } catch (UnsupportedEncodingException e) { // ignore } } } if (scontainer != null) { scontainer.setPerformActionEnabled(canQuery()); } summaryPattern.setFocus(); } super.setVisible(visible); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/ce7a489ec9613c6185f89fe8f8b92d62803284f9/BugzillaSearchPage.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
16697,
12,
6494,
6021,
13,
288,
202,
202,
430,
261,
8613,
597,
4916,
3234,
480,
446,
13,
288,
1082,
202,
430,
261,
3645,
950,
13,
288,
9506,
202,
3645,
950,
273,
629,
31,
9506,
202,
759,
1000,
761,
471,
977,
2674,
358,
5309,
1363,
628,
400,
6894,
9506,
202,
1884,
261,
780,
1623,
3234,
294,
17225,
11268,
12,
11515,
4733,
11268,
3719,
288,
6862,
202,
7687,
3234,
18,
1289,
12,
3072,
3234,
1769,
9506,
202,
97,
9506,
202,
759,
4916,
3234,
18,
542,
3126,
12,
588,
8351,
11268,
12,
11515,
4733,
11268,
10019,
9506,
202,
1884,
261,
780,
2879,
294,
17225,
11268,
12,
11515,
4469,
11268,
3719,
288,
6862,
202,
3469,
3234,
18,
1289,
12,
3469,
1769,
9506,
202,
97,
9506,
202,
759,
2879,
3234,
18,
542,
3126,
12,
588,
8351,
11268,
12,
11515,
4469,
11268,
10019,
9506,
202,
1884,
261,
780,
2699,
294,
17225,
11268,
12,
11515,
4134,
11268,
3719,
288,
6862,
202,
3652,
3234,
18,
1289,
12,
3652,
1769,
9506,
202,
97,
9506,
202,
759,
2699,
3234,
18,
542,
3126,
12,
588,
8351,
11268,
12,
11515,
4134,
11268,
10019,
9506,
202,
759,
2660,
30,
1089,
1267,
16,
7861,
16,
11426,
5527,
309,
3323,
2777,
9506,
202,
430,
261,
9071,
422,
446,
13,
288,
6862,
202,
9071,
273,
8005,
7901,
2174,
682,
3773,
18,
588,
3305,
1318,
7675,
588,
1868,
3305,
12,
6862,
1082,
202,
19865,
15990,
3773,
18,
862,
30986,
67,
47,
2356,
1769,
9506,
202,
97,
9506,
202,
694,
32,
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,
16697,
12,
6494,
6021,
13,
288,
202,
202,
430,
261,
8613,
597,
4916,
3234,
480,
446,
13,
288,
1082,
202,
430,
261,
3645,
950,
13,
288,
9506,
202,
3645,
950,
273,
629,
31,
9506,
202,
759,
1000,
761,
471,
977,
2674,
358,
5309,
1363,
628,
400,
6894,
9506,
202,
1884,
261,
780,
1623,
3234,
294,
17225,
11268,
12,
11515,
4733,
11268,
3719,
288,
6862,
202,
7687,
3234,
18,
1289,
12,
3072,
3234,
1769,
9506,
202,
97,
9506,
202,
759,
4916,
3234,
18,
542,
3126,
12,
588,
8351,
11268,
12,
11515,
4733,
11268,
10019,
9506,
202,
1884,
261,
780,
2879,
294,
17225,
11268,
12,
11515,
4469,
11268,
3719,
288,
6862,
202,
3469,
3234,
18,
1289,
12,
2
] |
public char getChar(){ if(numChars() > 0){ char tempChar= characterBuffer[characterBufferHead]; characterBufferHead= characterBufferHead+1; return(tempChar);
|
public double getChar(){ if(bufferOverflowFlag) return(-1.0); else if(numCharsLocal() > 0){ char tempChar= characterBuffer[characterBufferTail]; characterBufferTail= (characterBufferTail+1) % queueSizeChars; return((double)tempChar);
|
public char getChar(){ if(numChars() > 0){ char tempChar= characterBuffer[characterBufferHead]; characterBufferHead= characterBufferHead+1; return(tempChar); }else{ return(emptyChar); } }
|
12211 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12211/9f6c9d532c0736a47678e9e76fd49874c6c9babd/GetCharJava.java/clean/trunk/Psychtoolbox/PsychJava/GetCharJava.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1149,
23577,
1435,
95,
202,
202,
430,
12,
2107,
7803,
1435,
405,
374,
15329,
1082,
202,
3001,
1906,
2156,
33,
3351,
1892,
63,
11560,
1892,
1414,
15533,
1082,
202,
11560,
1892,
1414,
33,
3351,
1892,
1414,
15,
21,
31,
1082,
202,
2463,
12,
5814,
2156,
1769,
202,
202,
97,
12107,
95,
1082,
202,
2463,
12,
5531,
2156,
1769,
9506,
202,
97,
202,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
1149,
23577,
1435,
95,
202,
202,
430,
12,
2107,
7803,
1435,
405,
374,
15329,
1082,
202,
3001,
1906,
2156,
33,
3351,
1892,
63,
11560,
1892,
1414,
15533,
1082,
202,
11560,
1892,
1414,
33,
3351,
1892,
1414,
15,
21,
31,
1082,
202,
2463,
12,
5814,
2156,
1769,
202,
202,
97,
12107,
95,
1082,
202,
2463,
12,
5531,
2156,
1769,
9506,
202,
97,
202,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public SendProductionsAction() {
|
public SendProductionsAction() {
|
public SendProductionsAction() { super("Send Productions"); }
|
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/b614d4abef68545f39b6afc1e8521d6ccc484b8e/MainFrame.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/MainFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
2479,
31590,
87,
1803,
1435,
288,
1082,
202,
9565,
2932,
3826,
10856,
349,
87,
8863,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3196,
202,
482,
2479,
31590,
87,
1803,
1435,
288,
1082,
202,
9565,
2932,
3826,
10856,
349,
87,
8863,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
null, "setOnclick");
|
null, "setOnclickExpr");
|
public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[36]; try { result[0] = new PropertyDescriptor("accesskey", ELLinkTag.class, null, "setAccesskey"); result[1] = new PropertyDescriptor("action", ELLinkTag.class, null, "setAction"); result[2] = new PropertyDescriptor("anchor", ELLinkTag.class, null, "setAnchor"); result[3] = new PropertyDescriptor("forward", ELLinkTag.class, null, "setForward"); result[4] = new PropertyDescriptor("href", ELLinkTag.class, null, "setHref"); // This attribute has a non-standard mapping. result[5] = new PropertyDescriptor("indexed", ELLinkTag.class, null, "setIndexedExpr"); result[6] = new PropertyDescriptor("indexId", ELLinkTag.class, null, "setIndexId"); result[7] = new PropertyDescriptor("linkName", ELLinkTag.class, null, "setLinkName"); result[8] = new PropertyDescriptor("name", ELLinkTag.class, null, "setName"); result[9] = new PropertyDescriptor("onblur", ELLinkTag.class, null, "setOnblur"); result[10] = new PropertyDescriptor("onclick", ELLinkTag.class, null, "setOnclick"); result[11] = new PropertyDescriptor("ondblclick", ELLinkTag.class, null, "setOndblclick"); result[12] = new PropertyDescriptor("onfocus", ELLinkTag.class, null, "setOnfocus"); result[13] = new PropertyDescriptor("onkeydown", ELLinkTag.class, null, "setOnkeydown"); result[14] = new PropertyDescriptor("onkeypress", ELLinkTag.class, null, "setOnkeypress"); result[15] = new PropertyDescriptor("onkeyup", ELLinkTag.class, null, "setOnkeyup"); result[16] = new PropertyDescriptor("onmousedown", ELLinkTag.class, null, "setOnmousedown"); result[17] = new PropertyDescriptor("onmousemove", ELLinkTag.class, null, "setOnmousemove"); result[18] = new PropertyDescriptor("onmouseout", ELLinkTag.class, null, "setOnmouseout"); result[19] = new PropertyDescriptor("onmouseover", ELLinkTag.class, null, "setOnmouseover"); result[20] = new PropertyDescriptor("onmouseup", ELLinkTag.class, null, "setOnmouseup"); result[21] = new PropertyDescriptor("page", ELLinkTag.class, null, "setPage"); result[22] = new PropertyDescriptor("paramId", ELLinkTag.class, null, "setParamId"); result[23] = new PropertyDescriptor("paramName", ELLinkTag.class, null, "setParamName"); result[24] = new PropertyDescriptor("paramProperty", ELLinkTag.class, null, "setParamProperty"); result[25] = new PropertyDescriptor("paramScope", ELLinkTag.class, null, "setParamScope"); result[26] = new PropertyDescriptor("property", ELLinkTag.class, null, "setProperty"); result[27] = new PropertyDescriptor("scope", ELLinkTag.class, null, "setScope"); result[28] = new PropertyDescriptor("style", ELLinkTag.class, null, "setStyle"); result[29] = new PropertyDescriptor("styleClass", ELLinkTag.class, null, "setStyleClass"); result[30] = new PropertyDescriptor("styleId", ELLinkTag.class, null, "setStyleId"); result[31] = new PropertyDescriptor("tabindex", ELLinkTag.class, null, "setTabindex"); result[32] = new PropertyDescriptor("target", ELLinkTag.class, null, "setTarget"); result[33] = new PropertyDescriptor("title", ELLinkTag.class, null, "setTitle"); result[34] = new PropertyDescriptor("titleKey", ELLinkTag.class, null, "setTitleKey"); result[35] = new PropertyDescriptor("transaction", ELLinkTag.class, null, "setTransactionExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); }
|
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/2dbb705eab3659c5c2ceb6398f2eec56e1f6994d/ELLinkTagBeanInfo.java/clean/struts-el/src/share/org/apache/strutsel/taglib/html/ELLinkTagBeanInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
26761,
8526,
225,
563,
282,
273,
394,
26761,
63,
5718,
15533,
3639,
775,
288,
5411,
563,
63,
20,
65,
273,
394,
26761,
2932,
3860,
856,
3113,
14801,
2098,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
1862,
856,
8863,
5411,
563,
63,
21,
65,
273,
394,
26761,
2932,
1128,
3113,
14801,
2098,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
1803,
8863,
5411,
563,
63,
22,
65,
273,
394,
26761,
2932,
16215,
3113,
14801,
2098,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
11605,
8863,
5411,
563,
63,
23,
65,
273,
394,
26761,
2932,
11565,
3113,
14801,
2098,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
8514,
8863,
5411,
563,
63,
24,
65,
273,
394,
26761,
2932,
7547,
3113,
14801,
2098,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
15962,
8863,
5411,
368,
1220,
1566,
711,
279,
1661,
17,
10005,
2874,
18,
5411,
563,
63,
25,
65,
273,
394,
26761,
2932,
19626,
3113,
14801,
2098,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
15034,
4742,
8863,
5411,
563,
63,
26,
65,
273,
394,
26761,
2932,
1615,
548,
3113,
14801,
2098,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
1016,
548,
8863,
5411,
563,
63,
27,
65,
273,
394,
26761,
2932,
1232,
461,
3113,
14801,
2098,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
2098,
461,
8863,
5411,
563,
63,
28,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
26761,
8526,
225,
563,
282,
273,
394,
26761,
63,
5718,
15533,
3639,
775,
288,
5411,
563,
63,
20,
65,
273,
394,
26761,
2932,
3860,
856,
3113,
14801,
2098,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
1862,
856,
8863,
5411,
563,
63,
21,
65,
273,
394,
26761,
2932,
1128,
3113,
14801,
2098,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
1803,
8863,
5411,
563,
63,
22,
65,
273,
394,
26761,
2932,
16215,
3113,
14801,
2098,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
11605,
8863,
5411,
563,
63,
23,
65,
273,
394,
26761,
2932,
11565,
3113,
14801,
2098,
1805,
18,
1106,
16,
2
] |
try { Field f = declaringClass.getDeclaredField( fieldName );
|
try { Field f = declaringClass.getDeclaredField( fieldName );
|
public static char getFieldChar (Object instance, Class declaringClass, String fieldName) throws NoSuchFieldError { char c = '0'; try { // following may throw NoSuchFieldError; Field f = declaringClass.getDeclaredField( fieldName ); f.setAccessible( true ); // to allow access to private fields c = f.getChar(instance); } catch ( Exception e ) { VM.sysWrite( "exception in ObjectOutputStream.getFieldChar(): " + e ); } return c; }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/705cb85b3c7e05696189446f5268011580d80945/ReflectionSupport.java/buggy/rvm/src/vm/libSupport/ReflectionSupport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1149,
5031,
2156,
261,
921,
791,
16,
1659,
3496,
14682,
16,
514,
4289,
13,
565,
1216,
5823,
974,
668,
288,
1377,
1149,
276,
273,
296,
20,
13506,
1377,
775,
288,
3639,
368,
3751,
2026,
604,
5823,
974,
668,
31,
3639,
2286,
284,
273,
3496,
14682,
18,
588,
18888,
974,
12,
4289,
11272,
3639,
284,
18,
542,
10451,
12,
638,
11272,
377,
368,
358,
1699,
2006,
358,
3238,
1466,
3639,
276,
273,
284,
18,
588,
2156,
12,
1336,
1769,
1377,
289,
1377,
1044,
261,
1185,
425,
262,
288,
3639,
8251,
18,
9499,
3067,
12,
315,
4064,
316,
23438,
18,
588,
974,
2156,
13332,
315,
397,
425,
11272,
1377,
289,
1377,
327,
276,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1149,
5031,
2156,
261,
921,
791,
16,
1659,
3496,
14682,
16,
514,
4289,
13,
565,
1216,
5823,
974,
668,
288,
1377,
1149,
276,
273,
296,
20,
13506,
1377,
775,
288,
3639,
368,
3751,
2026,
604,
5823,
974,
668,
31,
3639,
2286,
284,
273,
3496,
14682,
18,
588,
18888,
974,
12,
4289,
11272,
3639,
284,
18,
542,
10451,
12,
638,
11272,
377,
368,
358,
1699,
2006,
358,
3238,
1466,
3639,
276,
273,
284,
18,
588,
2156,
12,
1336,
1769,
1377,
289,
1377,
1044,
261,
1185,
425,
262,
288,
3639,
8251,
18,
9499,
3067,
12,
315,
4064,
316,
23438,
18,
588,
974,
2156,
13332,
315,
397,
425,
11272,
1377,
289,
1377,
327,
276,
31,
565,
289,
2,
-100,
-100
] |
protected void cancelPressed() { // Inform all pages that we are cancelling Iterator nodes = preferenceManager.getElements(PreferenceManager.PRE_ORDER).iterator(); while (nodes.hasNext()) { final IPreferenceNode node = (IPreferenceNode) nodes.next(); if (node.getPage() != null) { Platform.run(new SafeRunnable() { public void run() { if (!node.getPage().performCancel()) return; } }); } } setReturnCode(CANCEL); close(); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/be95edd129a1deef61176d5d63fd605f9dfe18a5/PreferenceDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6459,
10996,
24624,
1435,
95,
202,
202,
759,
25541,
454,
9095,
395,
11304,
1814,
834,
4169,
3855,
310,
202,
202,
3198,
4690,
33,
19141,
1318,
18,
588,
3471,
12,
9624,
1318,
18,
3670,
67,
7954,
2934,
9838,
5621,
202,
202,
17523,
12,
4690,
18,
5332,
2134,
10756,
95,
1082,
202,
6385,
45,
9624,
50,
369,
20680,
28657,
45,
9624,
907,
13,
4690,
18,
4285,
5621,
1082,
202,
430,
12,
2159,
18,
588,
1964,
1435,
5,
33,
2011,
15329,
9506,
202,
8201,
18,
2681,
12,
2704,
9890,
20013,
1435,
95,
6862,
202,
482,
6459,
2681,
1435,
95,
25083,
202,
430,
12,
5,
2159,
18,
588,
1964,
7675,
16092,
6691,
10756,
6862,
1082,
202,
2463,
31,
6862,
202,
97,
9506,
202,
22938,
1082,
202,
97,
202,
202,
97,
202,
202,
542,
990,
1085,
12,
25268,
1769,
202,
202,
4412,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6459,
10996,
24624,
1435,
95,
202,
202,
759,
25541,
454,
9095,
395,
11304,
1814,
834,
4169,
3855,
310,
202,
202,
3198,
4690,
33,
19141,
1318,
18,
588,
3471,
12,
9624,
1318,
18,
3670,
67,
7954,
2934,
9838,
5621,
202,
202,
17523,
12,
4690,
18,
5332,
2134,
10756,
95,
1082,
202,
6385,
45,
9624,
50,
369,
20680,
28657,
45,
9624,
907,
13,
4690,
18,
4285,
5621,
1082,
202,
430,
12,
2159,
18,
588,
1964,
1435,
5,
33,
2011,
15329,
9506,
202,
8201,
18,
2681,
12,
2704,
9890,
20013,
1435,
95,
6862,
202,
482,
6459,
2681,
1435,
95,
25083,
202,
430,
12,
5,
2159,
18,
588,
1964,
7675,
16092,
6691,
10756,
6862,
1082,
202,
2463,
31,
6862,
202,
2
] |
||
peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Listening:\u00a0" + numberOfListening); /* TODO */
|
HTMLNode peerStatsListeningListItem = peerStatsList.addChild("li").addChild("span"); peerStatsListeningListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_never_connected", "Not connected: won't try to connect to them very often because they have BurstOnly set on them", "border-bottom: 1px dotted; cursor: help;" }, "Listening"); peerStatsListeningListItem.addChild("span", ":\u00a0" + numberOfListening);
|
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { String path = uri.getPath(); if(path.endsWith("myref.txt")) { SimpleFieldSet fs = node.exportPublicFieldSet(); StringWriter sw = new StringWriter(); fs.writeTo(sw); this.writeReply(ctx, 200, "text/plain", "OK", sw.toString()); return; } final boolean advancedEnabled = node.isAdvancedDarknetEnabled(); /* gather connection statistics */ PeerNodeStatus[] peerNodeStatuses = node.getPeerNodeStatuses(); Arrays.sort(peerNodeStatuses, new Comparator() { public int compare(Object first, Object second) { PeerNodeStatus firstNode = (PeerNodeStatus) first; PeerNodeStatus secondNode = (PeerNodeStatus) second; int statusDifference = firstNode.getStatusValue() - secondNode.getStatusValue(); if (statusDifference != 0) { return statusDifference; } return firstNode.getName().compareToIgnoreCase(secondNode.getName()); } }); int numberOfConnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISCONNECTED); int numberOfNeverConnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_NEVER_CONNECTED); int numberOfDisabled = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISABLED); int numberOfBursting = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_BURSTING); int numberOfListening = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTENING); int numberOfListenOnly = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTEN_ONLY); int numberOfSimpleConnected = numberOfConnected + numberOfRoutingBackedOff; int numberOfNotConnected = numberOfTooNew + numberOfTooOld + numberOfDisconnected + numberOfNeverConnected + numberOfDisabled + numberOfBursting + numberOfListening + numberOfListenOnly; String titleCountString = null; if(advancedEnabled) { titleCountString = "(" + numberOfConnected + "/" + numberOfRoutingBackedOff + "/" + numberOfTooNew + "/" + numberOfTooOld + "/" + numberOfNotConnected + ")"; } else { titleCountString = String.valueOf(numberOfSimpleConnected); } HTMLNode pageNode = ctx.getPageMaker().getPageNode(titleCountString + " Darknet Peers of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); // FIXME! We need some nice images long now = System.currentTimeMillis(); contentNode.addChild(core.alerts.createSummary()); /* node status values */ int bwlimitDelayTime = (int) node.getBwlimitDelayTime(); int nodeAveragePingTime = (int) node.getNodeAveragePingTime(); int networkSizeEstimate = node.getNetworkSizeEstimate(0); DecimalFormat fix4 = new DecimalFormat("0.0000"); double missRoutingDistance = node.missRoutingDistance.currentValue(); DecimalFormat fix1 = new DecimalFormat("##0.0%"); double backedoffPercent = node.backedoffPercent.currentValue(); String nodeUptimeString = timeIntervalToString(( now - node.startupTime ) / 1000); // BEGIN OVERVIEW TABLE HTMLNode overviewTable = contentNode.addChild("table", "class", "column"); HTMLNode overviewTableRow = overviewTable.addChild("tr"); HTMLNode nextTableCell = overviewTableRow.addChild("td", "class", "first"); /* node status overview box */ if(advancedEnabled) { HTMLNode overviewInfobox = nextTableCell.addChild("div", "class", "infobox"); overviewInfobox.addChild("div", "class", "infobox-header", "Node status overview"); HTMLNode overviewInfoboxContent = overviewInfobox.addChild("div", "class", "infobox-content"); HTMLNode overviewList = overviewInfoboxContent.addChild("ul"); overviewList.addChild("li", "bwlimitDelayTime:\u00a0" + bwlimitDelayTime + "ms"); overviewList.addChild("li", "nodeAveragePingTime:\u00a0" + nodeAveragePingTime + "ms"); overviewList.addChild("li", "networkSizeEstimate:\u00a0" + networkSizeEstimate + "\u00a0nodes"); overviewList.addChild("li", "nodeUptime:\u00a0" + nodeUptimeString); overviewList.addChild("li", "missRoutingDistance:\u00a0" + fix4.format(missRoutingDistance)); overviewList.addChild("li", "backedoffPercent:\u00a0" + fix1.format(backedoffPercent)); overviewList.addChild("li", "pInstantReject:\u00a0" + fix1.format(node.pRejectIncomingInstantly())); nextTableCell = overviewTableRow.addChild("td"); } // Activity box int numInserts = node.getNumInserts(); int numRequests = node.getNumRequests(); int numTransferringRequests = node.getNumTransferringRequests(); int numARKFetchers = node.getNumARKFetchers(); HTMLNode activityInfobox = nextTableCell.addChild("div", "class", "infobox"); activityInfobox.addChild("div", "class", "infobox-header", "Current activity"); HTMLNode activityInfoboxContent = activityInfobox.addChild("div", "class", "infobox-content"); if ((numInserts == 0) && (numRequests == 0) && (numTransferringRequests == 0) && (numARKFetchers == 0)) { activityInfoboxContent.addChild("#", "Your node is not processing any requests right now."); } else { HTMLNode activityList = activityInfoboxContent.addChild("ul", "id", "activity"); if (numInserts > 0) { activityList.addChild("li", "Inserts:\u00a0" + numInserts); } if (numRequests > 0) { activityList.addChild("li", "Requests:\u00a0" + numRequests); } if (numTransferringRequests > 0) { activityList.addChild("li", "Transferring\u00a0Requests:\u00a0" + numTransferringRequests); } if (advancedEnabled) { if (numARKFetchers > 0) { activityList.addChild("li", "ARK\u00a0Fetch\u00a0Requests:\u00a0" + numARKFetchers); } } } nextTableCell = advancedEnabled ? overviewTableRow.addChild("td") : overviewTableRow.addChild("td", "class", "last"); // Peer statistics box HTMLNode peerStatsInfobox = nextTableCell.addChild("div", "class", "infobox"); peerStatsInfobox.addChild("div", "class", "infobox-header", "Peer statistics"); HTMLNode peerStatsContent = peerStatsInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerStatsList = peerStatsContent.addChild("ul"); if (numberOfConnected > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_connected", "Connected:\u00a0" + numberOfConnected); } if (numberOfRoutingBackedOff > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_backedoff", (advancedEnabled ? "Backed off" : "Busy") + ":\u00a0" + numberOfRoutingBackedOff); } if (numberOfTooNew > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_too_new", "Too new:\u00a0" + numberOfTooNew); } if (numberOfTooOld > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_too_old", "Too old:\u00a0" + numberOfTooOld); } if (numberOfDisconnected > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_disconnected", "Disconnected:\u00a0" + numberOfDisconnected); } if (numberOfNeverConnected > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Never Connected:\u00a0" + numberOfNeverConnected); } if (numberOfDisabled > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Disabled:\u00a0" + numberOfDisabled); /* TODO */ } if (numberOfBursting > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Bursting:\u00a0" + numberOfBursting); /* TODO */ } if (numberOfListening > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Listening:\u00a0" + numberOfListening); /* TODO */ } if (numberOfListenOnly > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Listen Only:\u00a0" + numberOfListenOnly); /* TODO */ } // Peer routing backoff reason box if(advancedEnabled) { nextTableCell = overviewTableRow.addChild("td", "class", "last"); HTMLNode backoffReasonInfobox = nextTableCell.addChild("div", "class", "infobox"); backoffReasonInfobox.addChild("div", "class", "infobox-header", "Peer backoff reasons"); HTMLNode backoffReasonContent = backoffReasonInfobox.addChild("div", "class", "infobox-content"); String [] routingBackoffReasons = node.getPeerNodeRoutingBackoffReasons(); if(routingBackoffReasons.length == 0) { backoffReasonContent.addChild("#", "Good, your node is not backed off from any peers!"); } else { HTMLNode reasonList = backoffReasonContent.addChild("ul"); for(int i=0;i<routingBackoffReasons.length;i++) { int reasonCount = node.getPeerNodeRoutingBackoffReasonSize(routingBackoffReasons[i]); if(reasonCount > 0) { reasonList.addChild("li", routingBackoffReasons[i] + '\u00a0' + reasonCount); } } } } // END OVERVIEW TABLE // BEGIN PEER TABLE HTMLNode peerTableInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); HTMLNode peerTableInfoboxHeader = peerTableInfobox.addChild("div", "class", "infobox-header"); peerTableInfoboxHeader.addChild("#", "My peers"); if (advancedEnabled) { if (!path.endsWith("displaymessagetypes.html")) { peerTableInfoboxHeader.addChild("#", " "); peerTableInfoboxHeader.addChild("a", "href", "displaymessagetypes.html", "(more detailed)"); } } HTMLNode peerTableInfoboxContent = peerTableInfobox.addChild("div", "class", "infobox-content"); if (peerNodeStatuses.length == 0) { peerTableInfoboxContent.addChild("#", "Freenet can not work as you have not added any peers so far. Please go to the "); peerTableInfoboxContent.addChild("a", "href", "/", "node homepage"); peerTableInfoboxContent.addChild("#", " and read the top infobox to see how it is done."); } else { HTMLNode peerForm = peerTableInfoboxContent.addChild("form", new String[] { "action", "method", "enctype" }, new String[] { ".", "post", "multipart/form-data" }); peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); HTMLNode peerTable = peerForm.addChild("table", "class", "darknet_connections"); HTMLNode peerTableHeaderRow = peerTable.addChild("tr"); peerTableHeaderRow.addChild("th"); peerTableHeaderRow.addChild("th", "Status"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Click on the nodename link to send N2NTM", "border-bottom: 1px dotted; cursor: help;" }, "Name"); if (advancedEnabled) { peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Address:Port", "border-bottom: 1px dotted; cursor: help;" }, "Address"); } peerTableHeaderRow.addChild("th", "Version"); if (advancedEnabled) { peerTableHeaderRow.addChild("th", "Location"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Temporarily disconnected. Other node busy? Wait time(s) remaining/total", "border-bottom: 1px dotted; cursor: help;" }, "Backoff"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Probability of the node rejecting a request due to overload or causing a timeout.", "border-bottom: 1px dotted; cursor: help;" }, "Overload Probability"); } peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "How long since the node connected or was last seen", "border-bottom: 1px dotted; cursor: help;" }, "Connected\u00a0/\u00a0Idle"); for (int peerIndex = 0, peerCount = peerNodeStatuses.length; peerIndex < peerCount; peerIndex++) { PeerNodeStatus peerNodeStatus = peerNodeStatuses[peerIndex]; HTMLNode peerRow = peerTable.addChild("tr"); // check box column peerRow.addChild("td", "class", "peer-marker").addChild("input", new String[] { "type", "name" }, new String[] { "checkbox", "node_" + peerNodeStatus.hashCode() }); // status column String statusString = peerNodeStatus.getStatusName(); if (!advancedEnabled && (peerNodeStatus.getStatusValue() == Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF)) { statusString = "BUSY"; } peerRow.addChild("td", "class", "peer-status").addChild("span", "class", peerNodeStatus.getStatusCSSName(), statusString + (peerNodeStatus.isFetchingARK() ? "*" : "")); // name column if (peerNodeStatus.isConnected() && (Integer.parseInt(peerNodeStatus.getSimpleVersion()) > 476)) { peerRow.addChild("td", "class", "peer-name").addChild("a", "href", "/send_n2ntm/?peernode_hashcode=" + peerNodeStatus.hashCode(), peerNodeStatus.getName()); } else { peerRow.addChild("td", "class", "peer-name").addChild("#", peerNodeStatus.getName()); // TODO: This branch can probably be removed at some point } // address column if (advancedEnabled) { String pingTime = ""; if (peerNodeStatus.isConnected()) { pingTime = " (" + (int) peerNodeStatus.getAveragePingTime() + "ms)"; } peerRow.addChild("td", "class", "peer-address").addChild("#", ((peerNodeStatus.getPeerAddress() != null) ? (peerNodeStatus.getPeerAddress() + ":" + peerNodeStatus.getPeerPort()) : ("(unknown address)")) + pingTime); } // version column if (peerNodeStatus.getStatusValue() != Node.PEER_NODE_STATUS_NEVER_CONNECTED && (peerNodeStatus.isPublicInvalidVersion() || peerNodeStatus.isPublicReverseInvalidVersion())) { // Don't draw attention to a version problem if NEVER CONNECTED peerRow.addChild("td", "class", "peer-version").addChild("span", "class", "peer_version_problem", advancedEnabled ? peerNodeStatus.getVersion() : peerNodeStatus.getSimpleVersion()); } else { peerRow.addChild("td", "class", "peer-version").addChild("#", advancedEnabled ? peerNodeStatus.getVersion() : peerNodeStatus.getSimpleVersion()); } // location column if (advancedEnabled) { peerRow.addChild("td", "class", "peer-location", String.valueOf(peerNodeStatus.getLocation())); } if (advancedEnabled) { // backoff column HTMLNode backoffCell = peerRow.addChild("td", "class", "peer-backoff"); backoffCell.addChild("#", fix1.format(peerNodeStatus.getBackedOffPercent())); int backoff = (int) (Math.max(peerNodeStatus.getRoutingBackedOffUntil() - now, 0)); // Don't list the backoff as zero before it's actually zero if ((backoff > 0) && (backoff < 1000)) { backoff = 1000; } backoffCell.addChild("#", " " + String.valueOf(backoff / 1000) + "/" + String.valueOf(peerNodeStatus.getRoutingBackoffLength() / 1000)); backoffCell.addChild("#", (peerNodeStatus.getLastBackoffReason() == null) ? "" : ("/" + (peerNodeStatus.getLastBackoffReason()))); // overload probability column HTMLNode pRejectCell = peerRow.addChild("td", "class", "peer-backoff"); // FIXME pRejectCell.addChild("#", fix1.format(peerNodeStatus.getPReject())); } // idle column long idle = peerNodeStatus.getTimeLastRoutable(); if (peerNodeStatus.isRoutable()) { idle = peerNodeStatus.getTimeLastConnectionCompleted(); } else if (peerNodeStatus.getStatusValue() == Node.PEER_NODE_STATUS_NEVER_CONNECTED) { idle = peerNodeStatus.getPeerAddedTime(); } peerRow.addChild("td", "class", "peer-idle", idleToString(now, idle)); if (path.endsWith("displaymessagetypes.html")) { HTMLNode messageCountRow = peerTable.addChild("tr", "class", "message-status"); messageCountRow.addChild("td", "colspan", "2"); HTMLNode messageCountCell = messageCountRow.addChild("td", "colspan", String.valueOf(advancedEnabled ? 7 : 3)); HTMLNode messageCountTable = messageCountCell.addChild("table", "class", "message-count"); HTMLNode countHeaderRow = messageCountTable.addChild("tr"); countHeaderRow.addChild("th", "Message"); countHeaderRow.addChild("th", "Incoming"); countHeaderRow.addChild("th", "Outgoing"); List messageNames = new ArrayList(); Map messageCounts = new HashMap(); for (Iterator incomingMessages = peerNodeStatus.getLocalMessagesReceived().keySet().iterator(); incomingMessages.hasNext(); ) { String messageName = (String) incomingMessages.next(); messageNames.add(messageName); Long messageCount = (Long) peerNodeStatus.getLocalMessagesReceived().get(messageName); messageCounts.put(messageName, new Long[] { messageCount, new Long(0) }); } for (Iterator outgoingMessages = peerNodeStatus.getLocalMessagesSent().keySet().iterator(); outgoingMessages.hasNext(); ) { String messageName = (String) outgoingMessages.next(); if (!messageNames.contains(messageName)) { messageNames.add(messageName); } Long messageCount = (Long) peerNodeStatus.getLocalMessagesSent().get(messageName); Long[] existingCounts = (Long[]) messageCounts.get(messageName); if (existingCounts == null) { messageCounts.put(messageName, new Long[] { new Long(0), messageCount }); } else { existingCounts[1] = messageCount; } } Collections.sort(messageNames, new Comparator() { public int compare(Object first, Object second) { return ((String) first).compareToIgnoreCase((String) second); } }); for (Iterator messageNamesIterator = messageNames.iterator(); messageNamesIterator.hasNext(); ) { String messageName = (String) messageNamesIterator.next(); Long[] messageCount = (Long[]) messageCounts.get(messageName); HTMLNode messageRow = messageCountTable.addChild("tr"); messageRow.addChild("td", messageName); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[0])); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[1])); } } } if(!advancedEnabled) { peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "remove", "Remove selected peers" }); } else { HTMLNode actionSelect = peerForm.addChild("select", "name", "action"); actionSelect.addChild("option", "value", "", "-- Select action --"); actionSelect.addChild("option", "value", "enable", "Enable selected peers"); actionSelect.addChild("option", "value", "disable", "Disable selected peers"); actionSelect.addChild("option", "value", "set_burst_only", "On selected peers, set BurstOnly"); actionSelect.addChild("option", "value", "clear_burst_only", "On selected peers, clear BurstOnly"); actionSelect.addChild("option", "value", "set_listen_only", "On selected peers, set ListenOnly"); actionSelect.addChild("option", "value", "clear_listen_only", "On selected peers, clear ListenOnly"); actionSelect.addChild("option", "value", "", "-- -- --"); actionSelect.addChild("option", "value", "remove", "Remove selected peers"); peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "submit", "Go" }); } } // END PEER TABLE // BEGIN PEER ADDITION BOX HTMLNode peerAdditionInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); peerAdditionInfobox.addChild("div", "class", "infobox-header", "Add another peer"); HTMLNode peerAdditionContent = peerAdditionInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerAdditionForm = peerAdditionContent.addChild("form", new String[] { "action", "method", "enctype" }, new String[] { ".", "post", "multipart/form-data" }); peerAdditionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); peerAdditionForm.addChild("#", "Paste the reference here:"); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("textarea", new String[] { "id", "name", "rows", "cols" }, new String[] { "reftext", "ref", "8", "74" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Enter the URL of the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "refurl", "text", "url" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Choose the file containing the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "reffile", "file", "reffile" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "add", "Add" }); // our reference HTMLNode referenceInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); referenceInfobox.addChild("div", "class", "infobox-header").addChild("a", "href", "myref.txt", "My reference"); referenceInfobox.addChild("div", "class", "infobox-content").addChild("pre", "id", "reference", node.exportPublicFieldSet().toString()); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 200, "text/html", "OK", pageBuffer.toString()); }
|
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/7b926a17d074e9e10dbe72d181fccfa25b302d65/DarknetConnectionsToadlet.java/clean/src/freenet/clients/http/DarknetConnectionsToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
780,
589,
273,
2003,
18,
588,
743,
5621,
202,
202,
430,
12,
803,
18,
5839,
1190,
2932,
4811,
1734,
18,
5830,
6,
3719,
288,
1082,
202,
5784,
974,
694,
2662,
273,
756,
18,
6530,
4782,
974,
694,
5621,
1082,
202,
780,
2289,
1352,
273,
394,
17436,
5621,
1082,
202,
2556,
18,
2626,
774,
12,
5328,
1769,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
4044,
16,
315,
955,
19,
7446,
3113,
315,
3141,
3113,
1352,
18,
10492,
10663,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
6385,
1250,
16111,
1526,
273,
756,
18,
291,
23618,
40,
1313,
2758,
1526,
5621,
9506,
202,
20308,
11090,
1459,
7691,
1195,
202,
202,
6813,
907,
1482,
8526,
4261,
907,
15220,
273,
756,
18,
588,
6813,
907,
15220,
5621,
202,
202,
12726,
18,
3804,
12,
12210,
907,
15220,
16,
394,
13359,
1435,
288,
1082,
202,
482,
509,
3400,
12,
921,
1122,
16,
1033,
2205,
13,
288,
9506,
202,
6813,
907,
1482,
1122,
907,
273,
261,
6813,
907,
1482,
13,
1122,
31,
9506,
202,
6813,
907,
1482,
2205,
907,
273,
261,
6813,
907,
1482,
13,
2205,
31,
9506,
202,
474,
1267,
16220,
273,
1122,
907,
18,
588,
1482,
620,
1435,
300,
2205,
907,
18,
588,
1482,
620,
5621,
9506,
202,
430,
261,
2327,
16220,
480,
374,
13,
288,
6862,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
780,
589,
273,
2003,
18,
588,
743,
5621,
202,
202,
430,
12,
803,
18,
5839,
1190,
2932,
4811,
1734,
18,
5830,
6,
3719,
288,
1082,
202,
5784,
974,
694,
2662,
273,
756,
18,
6530,
4782,
974,
694,
5621,
1082,
202,
780,
2289,
1352,
273,
394,
17436,
5621,
1082,
202,
2556,
18,
2626,
774,
12,
5328,
1769,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
4044,
16,
315,
955,
19,
7446,
3113,
315,
3141,
3113,
1352,
18,
10492,
10663,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
2
] |
StyleConstants.setForeground(keywordAttr, new Color(0, 0, 0.5f)); StyleConstants.setBold(keywordAttr, true);
|
public ATELanguageSyntaxEngine() { commentAttr = new SimpleAttributeSet(); StyleConstants.setForeground(commentAttr, Color.lightGray); StyleConstants.setItalic(commentAttr, true); stringAttr = new SimpleAttributeSet(); StyleConstants.setForeground(stringAttr, COLOR_STRING); StyleConstants.setBold(stringAttr, true); keywordAttr = new SimpleAttributeSet(); StyleConstants.setForeground(keywordAttr, new Color(0, 0, 0.5f)); StyleConstants.setBold(keywordAttr, true); }
|
51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/315fa132519ddda76bcb708f327230ff12916c00/ATELanguageSyntaxEngine.java/buggy/src/org/antlr/works/ate/syntax/language/ATELanguageSyntaxEngine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
432,
1448,
3779,
8070,
4410,
1435,
288,
3639,
2879,
3843,
273,
394,
4477,
1499,
694,
5621,
3639,
9767,
2918,
18,
542,
23206,
12,
3469,
3843,
16,
5563,
18,
5099,
23521,
1769,
3639,
9767,
2918,
18,
542,
7193,
21466,
12,
3469,
3843,
16,
638,
1769,
3639,
533,
3843,
273,
394,
4477,
1499,
694,
5621,
3639,
9767,
2918,
18,
542,
23206,
12,
1080,
3843,
16,
15590,
67,
5804,
1769,
3639,
9767,
2918,
18,
542,
38,
1673,
12,
1080,
3843,
16,
638,
1769,
3639,
4932,
3843,
273,
394,
4477,
1499,
694,
5621,
3639,
9767,
2918,
18,
542,
23206,
12,
11041,
3843,
16,
394,
5563,
12,
20,
16,
374,
16,
374,
18,
25,
74,
10019,
3639,
9767,
2918,
18,
542,
38,
1673,
12,
11041,
3843,
16,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
432,
1448,
3779,
8070,
4410,
1435,
288,
3639,
2879,
3843,
273,
394,
4477,
1499,
694,
5621,
3639,
9767,
2918,
18,
542,
23206,
12,
3469,
3843,
16,
5563,
18,
5099,
23521,
1769,
3639,
9767,
2918,
18,
542,
7193,
21466,
12,
3469,
3843,
16,
638,
1769,
3639,
533,
3843,
273,
394,
4477,
1499,
694,
5621,
3639,
9767,
2918,
18,
542,
23206,
12,
1080,
3843,
16,
15590,
67,
5804,
1769,
3639,
9767,
2918,
18,
542,
38,
1673,
12,
1080,
3843,
16,
638,
1769,
3639,
4932,
3843,
273,
394,
4477,
1499,
694,
5621,
3639,
9767,
2918,
18,
542,
23206,
12,
11041,
3843,
16,
394,
5563,
12,
20,
16,
374,
16,
374,
18,
25,
74,
10019,
3639,
9767,
2918,
18,
542,
38,
2
] |
|
public TableCellRenderer getCellRenderer( int row, int col ) { JLabel label = (JLabel)super.getCellRenderer( row, col ); label.setBackground( Color.white ); label.setFont( defaultFont ); if ( col == 0 ) {
|
public TableCellRenderer getCellRenderer(int row, int col) { JLabel label = (JLabel) super.getCellRenderer(row, col); label.setBackground(Color.white); label.setFont(defaultFont); if (col == 0) {
|
public TableCellRenderer getCellRenderer( int row, int col ) { JLabel label = (JLabel)super.getCellRenderer( row, col ); label.setBackground( Color.white ); label.setFont( defaultFont ); if ( col == 0 ) { // BUG: not working? label.setFont( propLabelFont ); } else if ( col == 2 ) { PropertiesTableModel pmodel = (PropertiesTableModel)this.getModel(); Map.Entry me = (Map.Entry) pmodel._properties.entrySet().toArray()[row]; CSSPrimitiveValue cpv = (CSSPrimitiveValue) me.getValue(); if ( cpv.getCssText().startsWith( "rgb" ) ) { label.setBackground( org.xhtmlrenderer.css.util.ConversionUtil.rgbToColor( cpv.getRGBColorValue() )); } } return (TableCellRenderer)label; }
|
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/93d814d7886e593bc9bd7f476b2a18571a009aa6/DOMInspector.java/buggy/src/java/org/xhtmlrenderer/swing/DOMInspector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
3555,
4020,
6747,
16458,
6747,
12,
509,
1027,
16,
509,
645,
262,
288,
5411,
21403,
1433,
273,
261,
46,
2224,
13,
9565,
18,
588,
4020,
6747,
12,
1027,
16,
645,
11272,
5411,
1433,
18,
542,
8199,
12,
5563,
18,
14739,
11272,
5411,
1433,
18,
542,
5711,
12,
805,
5711,
11272,
5411,
309,
261,
645,
422,
374,
262,
288,
7734,
368,
10937,
43,
30,
486,
5960,
35,
7734,
1433,
18,
542,
5711,
12,
2270,
2224,
5711,
11272,
5411,
289,
469,
309,
261,
645,
422,
576,
262,
288,
7734,
6183,
1388,
1488,
293,
2284,
273,
261,
2297,
1388,
1488,
13,
2211,
18,
588,
1488,
5621,
7734,
1635,
18,
1622,
1791,
273,
261,
863,
18,
1622,
13,
293,
2284,
6315,
4738,
18,
4099,
694,
7675,
31447,
1435,
63,
492,
15533,
7734,
6765,
9840,
620,
3283,
90,
273,
261,
10276,
9840,
620,
13,
1791,
18,
24805,
5621,
7734,
309,
261,
3283,
90,
18,
588,
7359,
1528,
7675,
17514,
1190,
12,
315,
10948,
6,
262,
262,
288,
10792,
1433,
18,
542,
8199,
12,
2358,
18,
26341,
14374,
18,
5212,
18,
1367,
18,
6814,
1304,
18,
10948,
774,
2957,
12,
3283,
90,
18,
588,
11343,
2957,
620,
1435,
262,
1769,
7734,
289,
5411,
289,
5411,
327,
261,
1388,
4020,
6747,
13,
1925,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
3555,
4020,
6747,
16458,
6747,
12,
509,
1027,
16,
509,
645,
262,
288,
5411,
21403,
1433,
273,
261,
46,
2224,
13,
9565,
18,
588,
4020,
6747,
12,
1027,
16,
645,
11272,
5411,
1433,
18,
542,
8199,
12,
5563,
18,
14739,
11272,
5411,
1433,
18,
542,
5711,
12,
805,
5711,
11272,
5411,
309,
261,
645,
422,
374,
262,
288,
7734,
368,
10937,
43,
30,
486,
5960,
35,
7734,
1433,
18,
542,
5711,
12,
2270,
2224,
5711,
11272,
5411,
289,
469,
309,
261,
645,
422,
576,
262,
288,
7734,
6183,
1388,
1488,
293,
2284,
273,
261,
2297,
1388,
1488,
13,
2211,
18,
588,
1488,
5621,
7734,
1635,
18,
1622,
1791,
273,
261,
863,
18,
1622,
13,
293,
2284,
6315,
2
] |
public static final boolean match( char[] pattern, char[] name, boolean isCaseSensitive) {
|
public static final boolean match(char[] pattern, char[] name, boolean isCaseSensitive) {
|
public static final boolean match( char[] pattern, char[] name, boolean isCaseSensitive) { if (name == null) return false; // null name cannot match if (pattern == null) return true; // null pattern is equivalent to '*' return match( pattern, 0, pattern.length, name, 0, name.length, isCaseSensitive);}
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
727,
1250,
845,
12,
202,
3001,
8526,
1936,
16,
202,
3001,
8526,
508,
16,
202,
6494,
353,
2449,
14220,
13,
288,
202,
430,
261,
529,
422,
446,
13,
202,
202,
2463,
629,
31,
368,
446,
508,
2780,
845,
202,
430,
261,
4951,
422,
446,
13,
202,
202,
2463,
638,
31,
368,
446,
1936,
353,
7680,
358,
5306,
202,
2463,
845,
12,
202,
202,
4951,
16,
202,
202,
20,
16,
202,
202,
4951,
18,
2469,
16,
202,
202,
529,
16,
202,
202,
20,
16,
202,
202,
529,
18,
2469,
16,
202,
202,
291,
2449,
14220,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
727,
1250,
845,
12,
202,
3001,
8526,
1936,
16,
202,
3001,
8526,
508,
16,
202,
6494,
353,
2449,
14220,
13,
288,
202,
430,
261,
529,
422,
446,
13,
202,
202,
2463,
629,
31,
368,
446,
508,
2780,
845,
202,
430,
261,
4951,
422,
446,
13,
202,
202,
2463,
638,
31,
368,
446,
1936,
353,
7680,
358,
5306,
202,
2463,
845,
12,
202,
202,
4951,
16,
202,
202,
20,
16,
202,
202,
4951,
18,
2469,
16,
202,
202,
529,
16,
202,
202,
20,
16,
202,
202,
529,
18,
2469,
16,
202,
202,
291,
2449,
14220,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new TextCellEditor( composite, SWT.SINGLE );
|
TextCellEditor editor = new TextCellEditor( composite, SWT.SINGLE ); final Control c = editor.getControl( ); c.addMouseTrackListener( new MouseTrackAdapter( ) { public void mouseEnter( MouseEvent e ) { c.setCursor( SharedCursors.IBEAM ); } } ); return editor;
|
protected CellEditor createCellEditorOn( Composite composite ) { return new TextCellEditor( composite, SWT.SINGLE ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/56df418a95356d52d1a38810e13a7dcad1eb21c2/LabelEditManager.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/tools/LabelEditManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8614,
6946,
752,
4020,
6946,
1398,
12,
14728,
9635,
262,
202,
95,
202,
202,
2463,
394,
3867,
4020,
6946,
12,
9635,
16,
348,
8588,
18,
20184,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8614,
6946,
752,
4020,
6946,
1398,
12,
14728,
9635,
262,
202,
95,
202,
202,
2463,
394,
3867,
4020,
6946,
12,
9635,
16,
348,
8588,
18,
20184,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void parse(XMLInputSource inputSource)
|
public void parse(XMLInputSource inputSource)
|
public void parse(XMLInputSource inputSource) throws XNIException, IOException{ // no-op }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/677f3d26362e184de7a0859e2f77ba5d4ceca737/DOMConfigurationImpl.java/clean/src/org/apache/xerces/dom/DOMConfigurationImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
12,
4201,
1210,
1830,
810,
1830,
13,
540,
1216,
1139,
50,
45,
503,
16,
1860,
95,
3639,
368,
1158,
17,
556,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
12,
4201,
1210,
1830,
810,
1830,
13,
540,
1216,
1139,
50,
45,
503,
16,
1860,
95,
3639,
368,
1158,
17,
556,
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
] |
public basic(String args[]) throws ClassNotFoundException, FileNotFoundException, IOException, SQLException { String url = args[0]; String usr = args[1]; String pwd = args[2]; // Load the driver Class.forName("org.postgresql.Driver"); // Connect to database System.out.println("Connecting to Database URL = " + url); db = DriverManager.getConnection(url, usr, pwd); System.out.println("Connected...Now creating a statement"); st = db.createStatement(); // Clean up the database (in case we failed earlier) then initialise cleanup(); // Now run tests using JDBC methods doexample(); // Clean up the database cleanup(); // Finally close the database System.out.println("Now closing the connection"); st.close(); db.close(); //throw postgresql.Driver.notImplemented(); }
|
46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/8439a83d84fb159a790ed2b6d14d4151b9890857/basic.java/clean/src/interfaces/jdbc/example/basic.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5337,
12,
780,
833,
63,
5717,
1216,
10403,
16,
13707,
16,
1860,
16,
6483,
225,
288,
565,
514,
880,
273,
833,
63,
20,
15533,
565,
514,
16575,
273,
833,
63,
21,
15533,
565,
514,
14720,
273,
833,
63,
22,
15533,
3639,
368,
4444,
326,
3419,
565,
1659,
18,
1884,
461,
2932,
3341,
18,
2767,
24330,
18,
4668,
8863,
3639,
368,
8289,
358,
2063,
565,
2332,
18,
659,
18,
8222,
2932,
30049,
358,
5130,
1976,
273,
315,
397,
880,
1769,
565,
1319,
273,
9396,
1318,
18,
588,
1952,
12,
718,
16,
16575,
16,
14720,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
8932,
2777,
8674,
4979,
279,
3021,
8863,
565,
384,
273,
1319,
18,
2640,
3406,
5621,
3639,
368,
9645,
731,
326,
2063,
261,
267,
648,
732,
2535,
13805,
13,
1508,
21301,
565,
6686,
5621,
3639,
368,
4494,
1086,
7434,
1450,
16364,
2590,
565,
741,
8236,
5621,
3639,
368,
9645,
731,
326,
2063,
565,
6686,
5621,
3639,
368,
15768,
1746,
326,
2063,
565,
2332,
18,
659,
18,
8222,
2932,
8674,
7647,
326,
1459,
8863,
565,
384,
18,
4412,
5621,
565,
1319,
18,
4412,
5621,
3639,
368,
12849,
1603,
24330,
18,
4668,
18,
902,
8644,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5337,
12,
780,
833,
63,
5717,
1216,
10403,
16,
13707,
16,
1860,
16,
6483,
225,
288,
565,
514,
880,
273,
833,
63,
20,
15533,
565,
514,
16575,
273,
833,
63,
21,
15533,
565,
514,
14720,
273,
833,
63,
22,
15533,
3639,
368,
4444,
326,
3419,
565,
1659,
18,
1884,
461,
2932,
3341,
18,
2767,
24330,
18,
4668,
8863,
3639,
368,
8289,
358,
2063,
565,
2332,
18,
659,
18,
8222,
2932,
30049,
358,
5130,
1976,
273,
315,
397,
880,
1769,
565,
1319,
273,
9396,
1318,
18,
588,
1952,
12,
718,
16,
16575,
16,
14720,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
8932,
2777,
8674,
4979,
279,
3021,
8863,
565,
384,
273,
1319,
18,
2640,
3406,
5621,
3639,
2
] |
||
public void connect (PipedWriter src) throws IOException { if (closed) throw new IOException ("already closed"); if (writer != null) { if (writer == src) return; throw new IOException ("already connected"); } try { writer = src; writer.connect(this); } catch (IOException e) { writer = null; throw e; } }
|
connect(PipedWriter src) throws IOException { if (src == this.src) return; if (ever_connected) throw new IOException("Already connected"); if (closed) throw new IOException("Stream is closed and cannot be reopened"); synchronized (lock) { src.connect(this); ever_connected = true; } }
|
public void connect (PipedWriter src) throws IOException { if (closed) throw new IOException ("already closed"); if (writer != null) { if (writer == src) return; throw new IOException ("already connected"); } try { writer = src; writer.connect(this); } catch (IOException e) { writer = null; throw e; } }
|
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/8d285042d388a7105e3b50a5f438a5cd5ecdb499/PipedReader.java/buggy/libjava/java/io/PipedReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3077,
261,
24925,
329,
2289,
1705,
13,
1216,
1860,
225,
288,
565,
309,
261,
12204,
13,
1377,
604,
394,
1860,
7566,
17583,
4375,
8863,
565,
309,
261,
6299,
480,
446,
13,
1377,
288,
202,
430,
261,
6299,
422,
1705,
13,
202,
225,
327,
31,
202,
12849,
394,
1860,
7566,
17583,
5840,
8863,
1377,
289,
565,
775,
1377,
288,
202,
6299,
273,
1705,
31,
202,
6299,
18,
3612,
12,
2211,
1769,
1377,
289,
565,
1044,
261,
14106,
425,
13,
1377,
288,
202,
6299,
273,
446,
31,
202,
12849,
425,
31,
1377,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3077,
261,
24925,
329,
2289,
1705,
13,
1216,
1860,
225,
288,
565,
309,
261,
12204,
13,
1377,
604,
394,
1860,
7566,
17583,
4375,
8863,
565,
309,
261,
6299,
480,
446,
13,
1377,
288,
202,
430,
261,
6299,
422,
1705,
13,
202,
225,
327,
31,
202,
12849,
394,
1860,
7566,
17583,
5840,
8863,
1377,
289,
565,
775,
1377,
288,
202,
6299,
273,
1705,
31,
202,
6299,
18,
3612,
12,
2211,
1769,
1377,
289,
565,
1044,
261,
14106,
425,
13,
1377,
288,
202,
6299,
273,
446,
31,
202,
12849,
425,
31,
1377,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ColorModel cm;
|
ColorModel cm = null;
|
public BufferedImage(int w, int h, int type) { ColorModel cm; boolean alpha = false; boolean premultiplied = false; switch (type) { case TYPE_4BYTE_ABGR_PRE: case TYPE_INT_ARGB_PRE: premultiplied = true; // fall through case TYPE_INT_ARGB: case TYPE_4BYTE_ABGR: alpha = true; } ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_sRGB); switch (type) { case TYPE_INT_RGB: case TYPE_INT_ARGB: case TYPE_INT_ARGB_PRE: case TYPE_USHORT_565_RGB: case TYPE_USHORT_555_RGB: int[] masks; switch (type) { case TYPE_INT_RGB: case TYPE_INT_ARGB: case TYPE_INT_ARGB_PRE: masks = masks_int; break; case TYPE_USHORT_565_RGB: masks = masks_565; break; case TYPE_USHORT_555_RGB: masks = masks_555; break; } cm = new DirectColorModel(cs, 32, // 32 bits in an int masks[0], // r masks[1], // g masks[2], // b alpha ? 0xff000000 : 0, premultiplied, masks[3] // data type ); break; case TYPE_INT_BGR: String msg = "FIXME: Programmer is confused. Why (and how) does a " + "TYPE_INT_BGR image use ComponentColorModel to store " + "8-bit values? Is data type TYPE_INT or TYPE_BYTE. What " + "is the difference between TYPE_INT_BGR and TYPE_3BYTE_BGR?"; throw new UnsupportedOperationException(msg); case TYPE_3BYTE_BGR: case TYPE_4BYTE_ABGR: case TYPE_4BYTE_ABGR_PRE: case TYPE_BYTE_GRAY: case TYPE_USHORT_GRAY: int[] bits = null; int dataType = DataBuffer.TYPE_BYTE; switch (type) { case TYPE_3BYTE_BGR: bits = bits3; break; case TYPE_4BYTE_ABGR: case TYPE_4BYTE_ABGR_PRE: bits = bits4; break; case TYPE_BYTE_GRAY: bits = bits1byte; break; case TYPE_USHORT_GRAY: bits = bits1ushort; dataType = DataBuffer.TYPE_USHORT; break; } cm = new ComponentColorModel(cs, bits, alpha, premultiplied, alpha ? Transparency.TRANSLUCENT: Transparency.OPAQUE, dataType); break; case TYPE_BYTE_BINARY: byte[] vals = { 0, (byte) 0xff }; cm = new IndexColorModel(8, 2, vals, vals, vals); break; case TYPE_BYTE_INDEXED: String msg2 = "type not implemented yet"; throw new UnsupportedOperationException(msg2); // FIXME: build color-cube and create color model } init(cm, cm.createCompatibleWritableRaster(w, h), premultiplied, null, // no properties type ); }
|
25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/99e6bc52296d0f698ac87869692f6e05f5814772/BufferedImage.java/buggy/libjava/java/awt/image/BufferedImage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
12362,
12,
474,
341,
16,
509,
366,
16,
509,
618,
13,
225,
288,
565,
5563,
1488,
5003,
273,
446,
31,
3639,
1250,
4190,
273,
629,
31,
565,
1250,
675,
7027,
3110,
273,
629,
31,
565,
1620,
261,
723,
13,
1377,
288,
1377,
648,
3463,
67,
24,
15377,
67,
2090,
6997,
67,
3670,
30,
1377,
648,
3463,
67,
3217,
67,
985,
5887,
67,
3670,
30,
202,
1484,
7027,
3110,
273,
638,
31,
202,
759,
4159,
3059,
1377,
648,
3463,
67,
3217,
67,
985,
5887,
30,
1377,
648,
3463,
67,
24,
15377,
67,
2090,
6997,
30,
202,
5429,
273,
638,
31,
1377,
289,
202,
565,
5563,
3819,
2873,
273,
5563,
3819,
18,
588,
1442,
12,
2957,
3819,
18,
4596,
67,
87,
11343,
1769,
565,
1620,
261,
723,
13,
1377,
288,
1377,
648,
3463,
67,
3217,
67,
11343,
30,
1377,
648,
3463,
67,
3217,
67,
985,
5887,
30,
1377,
648,
3463,
67,
3217,
67,
985,
5887,
67,
3670,
30,
1377,
648,
3463,
67,
57,
15993,
67,
4313,
25,
67,
11343,
30,
1377,
648,
3463,
67,
57,
15993,
67,
2539,
25,
67,
11343,
30,
202,
474,
8526,
20931,
31,
202,
9610,
261,
723,
13,
202,
225,
288,
202,
225,
648,
3463,
67,
3217,
67,
11343,
30,
202,
225,
648,
3463,
67,
3217,
67,
985,
5887,
30,
202,
225,
648,
3463,
67,
3217,
67,
985,
5887,
67,
3670,
30,
202,
565,
20931,
273,
20931,
67,
474,
31,
202,
565,
898,
31,
202,
225,
648,
3463,
67,
57,
15993,
67,
4313,
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,
12362,
12,
474,
341,
16,
509,
366,
16,
509,
618,
13,
225,
288,
565,
5563,
1488,
5003,
273,
446,
31,
3639,
1250,
4190,
273,
629,
31,
565,
1250,
675,
7027,
3110,
273,
629,
31,
565,
1620,
261,
723,
13,
1377,
288,
1377,
648,
3463,
67,
24,
15377,
67,
2090,
6997,
67,
3670,
30,
1377,
648,
3463,
67,
3217,
67,
985,
5887,
67,
3670,
30,
202,
1484,
7027,
3110,
273,
638,
31,
202,
759,
4159,
3059,
1377,
648,
3463,
67,
3217,
67,
985,
5887,
30,
1377,
648,
3463,
67,
24,
15377,
67,
2090,
6997,
30,
202,
5429,
273,
638,
31,
1377,
289,
202,
565,
5563,
3819,
2873,
273,
5563,
3819,
18,
588,
1442,
12,
2957,
3819,
18,
4596,
2
] |
public abstract Numeric div (Object obj);
|
public static RealNum div (RealNum x, RealNum y) { return (RealNum)(x.div(y)); }
|
public abstract Numeric div (Object obj);
|
41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/7c7eef7cabbc0be562273cb7c1cb12392a179a8f/RealNum.java/buggy/gnu/math/RealNum.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8770,
16980,
3739,
261,
921,
1081,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8770,
16980,
3739,
261,
921,
1081,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
getShell(uiInfo), PlatformUI.getWorkbench() .getProgressService().getLongOperationTime());
|
getShell(uiInfo), PlatformUI.getWorkbench() .getProgressService().getLongOperationTime());
|
private IStatus computeOperationStatus(IUndoableOperation operation, IOperationHistory history, IAdaptable uiInfo, boolean undoing) { try { StatusReportingRunnable runnable = new StatusReportingRunnable( operation, history, uiInfo, undoing); TimeTriggeredProgressMonitorDialog progressDialog = new TimeTriggeredProgressMonitorDialog( getShell(uiInfo), PlatformUI.getWorkbench() .getProgressService().getLongOperationTime()); progressDialog.run(false, true, runnable); return runnable.getStatus(); } catch (OperationCanceledException e) { return Status.CANCEL_STATUS; } catch (InvocationTargetException e) { reportException(e, uiInfo); return IOperationHistory.OPERATION_INVALID_STATUS; } catch (InterruptedException e) { // Operation was cancelled and acknowledged by runnable with this // exception. // Do nothing. return Status.CANCEL_STATUS; } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/65642e5c579ede009dd93df330663f23c1fa08e8/AdvancedValidationUserApprover.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/operations/AdvancedValidationUserApprover.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1482,
3671,
2988,
1482,
12,
45,
31224,
429,
2988,
1674,
16,
1082,
202,
45,
2988,
5623,
4927,
16,
467,
13716,
429,
5915,
966,
16,
1250,
15436,
310,
13,
288,
202,
202,
698,
288,
1082,
202,
1482,
29285,
20013,
14685,
273,
394,
2685,
29285,
20013,
12,
6862,
202,
7624,
16,
4927,
16,
5915,
966,
16,
15436,
310,
1769,
1082,
202,
950,
6518,
329,
5491,
7187,
6353,
4007,
6353,
273,
394,
2647,
6518,
329,
5491,
7187,
6353,
12,
25083,
202,
588,
13220,
12,
4881,
966,
3631,
11810,
5370,
18,
588,
2421,
22144,
1435,
6862,
9506,
202,
18,
588,
5491,
1179,
7675,
588,
3708,
2988,
950,
10663,
1082,
202,
8298,
6353,
18,
2681,
12,
5743,
16,
638,
16,
14685,
1769,
1082,
202,
2463,
14685,
18,
588,
1482,
5621,
202,
202,
97,
1044,
261,
2988,
23163,
503,
425,
13,
288,
1082,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
202,
202,
97,
1044,
261,
9267,
14950,
425,
13,
288,
1082,
202,
6006,
503,
12,
73,
16,
5915,
966,
1769,
1082,
202,
2463,
1665,
1193,
5623,
18,
22040,
67,
9347,
67,
8608,
31,
202,
202,
97,
1044,
261,
24485,
503,
425,
13,
288,
1082,
202,
759,
4189,
1703,
13927,
471,
23262,
2423,
635,
14685,
598,
333,
1082,
202,
759,
1520,
18,
1082,
202,
759,
2256,
5083,
18,
1082,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
1482,
3671,
2988,
1482,
12,
45,
31224,
429,
2988,
1674,
16,
1082,
202,
45,
2988,
5623,
4927,
16,
467,
13716,
429,
5915,
966,
16,
1250,
15436,
310,
13,
288,
202,
202,
698,
288,
1082,
202,
1482,
29285,
20013,
14685,
273,
394,
2685,
29285,
20013,
12,
6862,
202,
7624,
16,
4927,
16,
5915,
966,
16,
15436,
310,
1769,
1082,
202,
950,
6518,
329,
5491,
7187,
6353,
4007,
6353,
273,
394,
2647,
6518,
329,
5491,
7187,
6353,
12,
25083,
202,
588,
13220,
12,
4881,
966,
3631,
11810,
5370,
18,
588,
2421,
22144,
1435,
6862,
9506,
202,
18,
588,
5491,
1179,
7675,
588,
3708,
2988,
950,
10663,
1082,
202,
8298,
6353,
18,
2681,
12,
5743,
16,
638,
16,
2
] |
transformPomToReleaseVersionPom( project );
|
transformPomToReleaseVersionPom( project ); } try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); }
|
protected void executeTask() throws MojoExecutionException { try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_INITIALIZED ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_PREPARED_RELEASE ) ) { checkForLocalModifications(); for ( Iterator it = reactorProjects.iterator(); it.hasNext(); ) { MavenProject project = (MavenProject) it.next(); getVersionResolver().resolveVersion( project ); getScmRewriter().rewriteScmInfo( project, getTagLabel() ); } for ( Iterator it = reactorProjects.iterator(); it.hasNext(); ) { MavenProject project = (MavenProject) it.next(); checkForPresenceOfSnapshots( project ); transformPomToReleaseVersionPom( project ); } generateReleasePoms(); checkInRelease(); tagRelease(); for ( Iterator it = reactorProjects.iterator(); it.hasNext(); ) { MavenProject project = (MavenProject) it.next(); getVersionResolver().incrementVersion( project ); getScmRewriter().restoreScmInfo( project ); } for ( Iterator it = reactorProjects.iterator(); it.hasNext(); ) { MavenProject project = (MavenProject) it.next(); transformPomToSnapshotVersionPom( project ); } removeReleasePoms(); checkInNextSnapshot(); try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_PREPARED_RELEASE ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } }
|
1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/22f9a34107d27782bab8e88b50b54708304b73dc/PrepareReleaseMojo.java/buggy/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1836,
2174,
1435,
3639,
1216,
18780,
565,
288,
3639,
775,
3639,
288,
5411,
336,
7391,
5491,
7675,
25414,
12,
15573,
16,
10819,
5491,
8135,
18,
4258,
67,
12919,
25991,
11272,
3639,
289,
3639,
1044,
261,
1860,
425,
262,
3639,
288,
5411,
9189,
7675,
8935,
12,
315,
668,
7410,
9776,
1199,
16,
425,
11272,
3639,
289,
3639,
309,
261,
401,
588,
7391,
5491,
7675,
8705,
14431,
12,
10819,
5491,
8135,
18,
4258,
67,
3670,
4066,
5879,
67,
30762,
262,
262,
3639,
288,
5411,
13855,
2042,
28340,
5621,
5411,
364,
261,
4498,
518,
273,
19178,
15298,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
17176,
4109,
1984,
273,
261,
49,
7638,
4109,
13,
518,
18,
4285,
5621,
7734,
8343,
4301,
7675,
10828,
1444,
12,
1984,
11272,
7734,
1322,
7670,
17631,
1091,
7675,
21489,
1541,
81,
966,
12,
1984,
16,
11362,
2224,
1435,
11272,
5411,
289,
5411,
364,
261,
4498,
518,
273,
19178,
15298,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
17176,
4109,
1984,
273,
261,
49,
7638,
4109,
13,
518,
18,
4285,
5621,
7734,
13855,
22590,
951,
17095,
12,
1984,
11272,
7734,
2510,
52,
362,
774,
7391,
1444,
52,
362,
12,
1984,
11272,
289,
225,
775,
288,
336,
7391,
5491,
7675,
25414,
12,
15573,
16,
10819,
5491,
8135,
18,
4258,
67,
52,
1872,
67,
16596,
7473,
25773,
67,
7473,
67,
30762,
11272,
289,
1044,
261,
1860,
425,
262,
288,
9189,
7675,
8935,
12,
315,
668,
7410,
9776,
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,
1836,
2174,
1435,
3639,
1216,
18780,
565,
288,
3639,
775,
3639,
288,
5411,
336,
7391,
5491,
7675,
25414,
12,
15573,
16,
10819,
5491,
8135,
18,
4258,
67,
12919,
25991,
11272,
3639,
289,
3639,
1044,
261,
1860,
425,
262,
3639,
288,
5411,
9189,
7675,
8935,
12,
315,
668,
7410,
9776,
1199,
16,
425,
11272,
3639,
289,
3639,
309,
261,
401,
588,
7391,
5491,
7675,
8705,
14431,
12,
10819,
5491,
8135,
18,
4258,
67,
3670,
4066,
5879,
67,
30762,
262,
262,
3639,
288,
5411,
13855,
2042,
28340,
5621,
5411,
364,
261,
4498,
518,
273,
19178,
15298,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
17176,
4109,
1984,
273,
261,
49,
7638,
4109,
13,
518,
2
] |
int row = y / rowHeight; if (row < 0) row = 0; if (row > getRowCount()) row = getRowCount() - 1;
|
NodeRecord best = null; NodeRecord r; Enumeration en = nodes.elements();
|
public TreePath getPathClosestTo(int x, int y) { if (dirty) update(); // We do not need to iterate because all rows have the same height. int row = y / rowHeight; if (row < 0) row = 0; if (row > getRowCount()) row = getRowCount() - 1; if (row < 0) return null; // Empty tree - nothing to return. Object node = row2node.get(new Integer(row)); NodeRecord nr = (NodeRecord) nodes.get(node); return nr.getPath(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8e6a933c7311b8af73a149d26777089b7dc8bd68/FixedHeightLayoutCache.java/clean/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4902,
743,
4339,
4082,
7781,
774,
12,
474,
619,
16,
509,
677,
13,
202,
95,
565,
309,
261,
18013,
13,
1377,
1089,
5621,
565,
368,
1660,
741,
486,
1608,
358,
7401,
2724,
777,
2595,
1240,
326,
1967,
2072,
18,
565,
509,
1027,
273,
677,
342,
1027,
2686,
31,
565,
309,
261,
492,
411,
374,
13,
1377,
1027,
273,
374,
31,
565,
309,
261,
492,
405,
11835,
1380,
10756,
1377,
1027,
273,
11835,
1380,
1435,
300,
404,
31,
3639,
309,
261,
492,
411,
374,
13,
1377,
327,
446,
31,
368,
8953,
2151,
300,
5083,
358,
327,
18,
3639,
1033,
756,
273,
1027,
22,
2159,
18,
588,
12,
2704,
2144,
12,
492,
10019,
565,
2029,
2115,
9884,
273,
261,
907,
2115,
13,
2199,
18,
588,
12,
2159,
1769,
565,
327,
9884,
18,
588,
743,
5621,
225,
289,
225,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4902,
743,
4339,
4082,
7781,
774,
12,
474,
619,
16,
509,
677,
13,
202,
95,
565,
309,
261,
18013,
13,
1377,
1089,
5621,
565,
368,
1660,
741,
486,
1608,
358,
7401,
2724,
777,
2595,
1240,
326,
1967,
2072,
18,
565,
509,
1027,
273,
677,
342,
1027,
2686,
31,
565,
309,
261,
492,
411,
374,
13,
1377,
1027,
273,
374,
31,
565,
309,
261,
492,
405,
11835,
1380,
10756,
1377,
1027,
273,
11835,
1380,
1435,
300,
404,
31,
3639,
309,
261,
492,
411,
374,
13,
1377,
327,
446,
31,
368,
8953,
2151,
300,
5083,
358,
327,
18,
3639,
1033,
756,
273,
1027,
22,
2159,
18,
588,
12,
2704,
2144,
12,
492,
10019,
565,
2029,
2115,
9884,
273,
261,
2
] |
has = holderFactory.createHolder(a_type);
|
has = HolderLocator.createHolder(a_type);
|
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { BigDecimal dec = BigDecimalHelper.read(input, a_type.fixed_scale()); has = new FixedHolder(dec); } else { has = holderFactory.createHolder(a_type); if (has == null) { // Use the Universal Holder that reads till the end of stream. // This works with the extract/insert pair of the typical // Helper. cdrBufOutput buffer = new cdrBufOutput(); buffer.setOrb(orb); has = new universalHolder(buffer); } } type(a_type); if (!(has instanceof universalHolder) && (kind == TCKind._tk_value_box)) { // The streamable only contains operations for // reading the value, not the value header. Field vField = has.getClass().getField("value"); Object content = Vio.read(input, a_type.id()); vField.set(has, content); } else has._read(input); } catch (Exception ex) { MARSHAL m = new MARSHAL(); m.minor = Minor.Any; m.initCause(ex); throw m; } }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e9344cb85925e12da0e0cccb4ba0521d8696a226/gnuAny.java/buggy/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
855,
67,
1132,
12,
3341,
18,
362,
75,
18,
9428,
12536,
18,
655,
429,
18,
4348,
810,
16,
7682,
30332,
279,
67,
723,
13491,
262,
5375,
1216,
490,
985,
2664,
1013,
225,
288,
565,
775,
1377,
288,
3639,
509,
3846,
273,
279,
67,
723,
18,
9224,
7675,
1132,
5621,
3639,
368,
15038,
4260,
4582,
5057,
18,
3639,
309,
261,
9224,
422,
399,
3507,
728,
6315,
16099,
67,
12429,
13,
1850,
288,
5411,
8150,
2109,
273,
8150,
2276,
18,
896,
12,
2630,
16,
279,
67,
723,
18,
12429,
67,
5864,
10663,
5411,
711,
273,
394,
15038,
6064,
12,
4924,
1769,
1850,
289,
3639,
469,
1850,
288,
5411,
711,
273,
670,
1498,
5786,
18,
2640,
6064,
12,
69,
67,
723,
1769,
5411,
309,
261,
5332,
422,
446,
13,
2868,
288,
7734,
368,
2672,
326,
27705,
670,
1498,
716,
6838,
21364,
326,
679,
434,
1407,
18,
7734,
368,
1220,
6330,
598,
326,
2608,
19,
6387,
3082,
434,
326,
24917,
7734,
368,
9705,
18,
7734,
276,
3069,
5503,
1447,
1613,
273,
394,
276,
3069,
5503,
1447,
5621,
7734,
1613,
18,
542,
1162,
70,
12,
16640,
1769,
7734,
711,
273,
394,
26182,
6064,
12,
4106,
1769,
2868,
289,
1850,
289,
3639,
618,
12,
69,
67,
723,
1769,
3639,
309,
16051,
12,
5332,
1276,
26182,
6064,
13,
597,
5411,
261,
9224,
422,
399,
3507,
728,
6315,
16099,
67,
1132,
67,
2147,
3719,
1850,
288,
5411,
368,
1021,
1407,
429,
1338,
1914,
5295,
364,
5411,
368,
6453,
326,
460,
16,
486,
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,
855,
67,
1132,
12,
3341,
18,
362,
75,
18,
9428,
12536,
18,
655,
429,
18,
4348,
810,
16,
7682,
30332,
279,
67,
723,
13491,
262,
5375,
1216,
490,
985,
2664,
1013,
225,
288,
565,
775,
1377,
288,
3639,
509,
3846,
273,
279,
67,
723,
18,
9224,
7675,
1132,
5621,
3639,
368,
15038,
4260,
4582,
5057,
18,
3639,
309,
261,
9224,
422,
399,
3507,
728,
6315,
16099,
67,
12429,
13,
1850,
288,
5411,
8150,
2109,
273,
8150,
2276,
18,
896,
12,
2630,
16,
279,
67,
723,
18,
12429,
67,
5864,
10663,
5411,
711,
273,
394,
15038,
6064,
12,
4924,
1769,
1850,
289,
3639,
469,
1850,
288,
5411,
711,
273,
670,
1498,
5786,
18,
2640,
6064,
12,
69,
2
] |
" AND (c.relam = a.oid)) " +
|
" AND (i.relam = a.oid)) " +
|
public java.sql.ResultSet getIndexInfo(String catalog, String schema, String tableName, boolean unique, boolean approximate) throws SQLException { Field f[] = new Field[13]; java.sql.ResultSet r; // ResultSet for the SQL query that we need to do Vector v = new Vector(); // The new ResultSet tuple stuff 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, "NON_UNIQUE", iBoolOid, 1); f[4] = new Field(connection, "INDEX_QUALIFIER", iVarcharOid, 32); f[5] = new Field(connection, "INDEX_NAME", iVarcharOid, 32); f[6] = new Field(connection, "TYPE", iInt2Oid, 2); f[7] = new Field(connection, "ORDINAL_POSITION", iInt2Oid, 2); f[8] = new Field(connection, "COLUMN_NAME", iVarcharOid, 32); f[9] = new Field(connection, "ASC_OR_DESC", iVarcharOid, 32); f[10] = new Field(connection, "CARDINALITY", iInt4Oid, 4); f[11] = new Field(connection, "PAGES", iInt4Oid, 4); f[12] = new Field(connection, "FILTER_CONDITION", iVarcharOid, 32); r = connection.ExecSQL("select " + "c.relname, " + "x.indisunique, " + "i.relname, " + "x.indisclustered, " + "a.amname, " + "x.indkey, " + "c.reltuples, " + "c.relpages " + "FROM pg_index x, pg_class c, pg_class i, pg_am a " + "WHERE ((c.relname = '" + tableName.toLowerCase() + "') " + " AND (c.oid = x.indrelid) " + " AND (i.oid = x.indexrelid) " + " AND (c.relam = a.oid)) " + "ORDER BY x.indisunique DESC, " + " x.indisclustered, a.amname, i.relname"); while (r.next()) { // indkey is an array of column ordinals (integers). In the JDBC // interface, this has to be separated out into a separate // tuple for each indexed column. Also, getArray() is not yet // implemented for Postgres JDBC, so we parse by hand. String columnOrdinalString = r.getString(6); StringTokenizer stok = new StringTokenizer(columnOrdinalString); int [] columnOrdinals = new int[stok.countTokens()]; int o = 0; while (stok.hasMoreTokens()) { columnOrdinals[o++] = Integer.parseInt(stok.nextToken()); } for (int i = 0; i < columnOrdinals.length; i++) { byte [] [] tuple = new byte [13] []; tuple[0] = "".getBytes(); tuple[1] = "".getBytes(); tuple[2] = r.getBytes(1); tuple[3] = r.getBoolean(2) ? "f".getBytes() : "t".getBytes(); tuple[4] = null; tuple[5] = r.getBytes(3); tuple[6] = r.getBoolean(4) ? Integer.toString(tableIndexClustered).getBytes() : r.getString(5).equals("hash") ? Integer.toString(tableIndexHashed).getBytes() : Integer.toString(tableIndexOther).getBytes(); tuple[7] = Integer.toString(i + 1).getBytes(); java.sql.ResultSet columnNameRS = connection.ExecSQL("select a.attname FROM pg_attribute a, pg_class c WHERE (a.attnum = " + columnOrdinals[i] + ") AND (a.attrelid = " + r.getInt(8) + ")"); columnNameRS.next(); tuple[8] = columnNameRS.getBytes(1); tuple[9] = null; // sort sequence ??? tuple[10] = r.getBytes(7); // inexact tuple[11] = r.getBytes(8); tuple[12] = null; v.addElement(tuple); } } return new ResultSet(connection, f, v, "OK", 1); }
|
52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/a8a487df9f87d28d39b625adfb50cddeb7aef65f/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
8088,
966,
12,
780,
6222,
16,
514,
1963,
16,
514,
4775,
16,
1250,
3089,
16,
1250,
21204,
13,
1216,
6483,
225,
288,
565,
2286,
284,
8526,
273,
394,
2286,
63,
3437,
15533,
565,
2252,
18,
4669,
18,
13198,
436,
31,
202,
759,
10842,
364,
326,
3063,
843,
716,
732,
1608,
358,
741,
565,
5589,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
565,
284,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
3993,
67,
16879,
3113,
277,
7464,
19105,
16,
404,
1769,
565,
284,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
9199,
67,
8729,
10591,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
315,
9199,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
26,
65,
273,
394,
2286,
12,
4071,
16,
315,
2399,
3113,
277,
1702,
22,
19105,
16,
576,
1769,
565,
284,
63,
27,
65,
273,
394,
2286,
12,
4071,
16,
315,
916,
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,
2252,
18,
4669,
18,
13198,
8088,
966,
12,
780,
6222,
16,
514,
1963,
16,
514,
4775,
16,
1250,
3089,
16,
1250,
21204,
13,
1216,
6483,
225,
288,
565,
2286,
284,
8526,
273,
394,
2286,
63,
3437,
15533,
565,
2252,
18,
4669,
18,
13198,
436,
31,
202,
759,
10842,
364,
326,
3063,
843,
716,
732,
1608,
358,
741,
565,
5589,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
565,
284,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
2
] |
fetchFromCache(uc, (LcapIdentity)it.next());
|
fetchFromCache(uc, (String)it.next());
|
protected void fetchFromCache(UrlCacher uc) throws IOException { IdentityManager idm = getIdentityManager(); Map map = idm.getAgreed(au); Iterator it = map.keySet().iterator(); if (it.hasNext()) { fetchFromCache(uc, (LcapIdentity)it.next()); } }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/d590d16a217c12f0b83bbe17809116df971c3b35/RepairCrawler.java/clean/src/org/lockss/crawler/RepairCrawler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
2158,
19800,
12,
1489,
11309,
264,
6232,
13,
1216,
1860,
288,
565,
7808,
1318,
612,
81,
273,
20066,
1318,
5621,
565,
1635,
852,
273,
612,
81,
18,
588,
2577,
15656,
12,
8377,
1769,
565,
4498,
518,
273,
852,
18,
856,
694,
7675,
9838,
5621,
565,
309,
261,
305,
18,
5332,
2134,
10756,
288,
1377,
2158,
19800,
12,
5286,
16,
261,
780,
13,
305,
18,
4285,
10663,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
4750,
918,
2158,
19800,
12,
1489,
11309,
264,
6232,
13,
1216,
1860,
288,
565,
7808,
1318,
612,
81,
273,
20066,
1318,
5621,
565,
1635,
852,
273,
612,
81,
18,
588,
2577,
15656,
12,
8377,
1769,
565,
4498,
518,
273,
852,
18,
856,
694,
7675,
9838,
5621,
565,
309,
261,
305,
18,
5332,
2134,
10756,
288,
1377,
2158,
19800,
12,
5286,
16,
261,
780,
13,
305,
18,
4285,
10663,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Object[][] data = null; Object nodeInfo = lastSelectedNode.getUserObject(); if (nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.DatasetView")) { data = new Object [] []{ {"Description", ((DatasetView) nodeInfo).getDescription()}, {"DisplayName", ((DatasetView) nodeInfo).getDisplayName()}, {"InternalName", ((DatasetView) nodeInfo).getInternalName()} }; }else if(nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.FilterPage")) { data = new Object [] []{ {"Description", ((FilterPage) nodeInfo).getDescription()}, {"DisplayName", ((FilterPage) nodeInfo).getDisplayName()}, {"InternalName", ((FilterPage) nodeInfo).getInternalName()} }; }else if(nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.AttributePage")) { data = new Object [] []{ {"Description", ((AttributePage) nodeInfo).getDescription()}, {"DisplayName", ((AttributePage) nodeInfo).getDisplayName()}, {"InternalName", ((AttributePage) nodeInfo).getInternalName()} }; }else if(nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.FilterGroup")) { data = new Object [] []{ {"Description", ((FilterGroup) nodeInfo).getDescription()}, {"DisplayName", ((FilterGroup) nodeInfo).getDisplayName()}, {"InternalName", ((FilterGroup) nodeInfo).getInternalName()} }; }else if(nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.AttributeGroup")) { data = new Object [] []{ {"Description", ((AttributeGroup) nodeInfo).getDescription()}, {"DisplayName", ((AttributeGroup) nodeInfo).getDisplayName()}, {"InternalName", ((AttributeGroup) nodeInfo).getInternalName()} }; }else if(nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.FilterCollection")) { data = new Object [] []{ {"Description", ((FilterCollection) nodeInfo).getDescription()}, {"DisplayName", ((FilterCollection) nodeInfo).getDisplayName()}, {"InternalName", ((FilterCollection) nodeInfo).getInternalName()} }; }else if(nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.AttributeCollection")) { data = new Object [] []{ {"Description", ((AttributeCollection) nodeInfo).getDescription()}, {"DisplayName", ((AttributeCollection) nodeInfo).getDisplayName()}, {"InternalName", ((AttributeCollection) nodeInfo).getInternalName()} }; }else if(nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.FilterDescription")) { data = new Object [] []{ {"Description", ((FilterDescription) nodeInfo).getDescription()}, {"DisplayName", ((FilterDescription) nodeInfo).getDisplayName()}, {"InternalName", ((FilterDescription) nodeInfo).getInternalName()}, {"Legal Qualifiers", ((FilterDescription) nodeInfo).getLegalQualifiers()}, {"Qualifier", ((FilterDescription) nodeInfo).getQualifier()}, {"Table Constraint", ((FilterDescription) nodeInfo).getTableConstraint()}, {"Type", ((FilterDescription) nodeInfo).getType()} }; }else if(nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.AttributeDescription")) { data = new Object [] []{ {"Description", ((AttributeDescription) nodeInfo).getDescription()}, {"DisplayName", ((AttributeDescription) nodeInfo).getDisplayName()}, {"InternalName", ((AttributeDescription) nodeInfo).getInternalName()}, {"Field", ((AttributeDescription) nodeInfo).getField()}, {"Table Constraint", ((AttributeDescription) nodeInfo).getTableConstraint()}, {"Max Length", new Long(((AttributeDescription) nodeInfo).getMaxLength())}, {"Source",((AttributeDescription) nodeInfo).getSource()}, {"Linkout URL",((AttributeDescription) nodeInfo).getLinkoutURL()} };
|
String [] data = null; BaseConfigurationObject nodeObject = (BaseConfigurationObject)lastSelectedNode.getUserObject(); String nodeObjectClass = nodeObject.getClass().getName(); if (nodeObjectClass.equals("org.ensembl.mart.lib.config.DatasetView") || nodeObjectClass.equals("org.ensembl.mart.lib.config.FilterPage") || nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributePage") || nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributeGroup") || nodeObjectClass.equals("org.ensembl.mart.lib.config.FilterGroup")|| nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributeGroup") || nodeObjectClass.equals("org.ensembl.mart.lib.config.FilterCollection") || nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributeCollection") ) { data = new String [] { "Description","DisplayName","InternalName"}; } else if (nodeObjectClass.equals("org.ensembl.mart.lib.config.FilterDescription")) { data = new String[]{ "Description", "DisplayName", "InternalName", "isSelectable", "Legal Qualifiers", "Qualifier", "Table Constraint", "Type"}; } else if (nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributeDescription")) { data = new String[]{ "Description", "DisplayName", "InternalName", "Field", "Table Constraint", "Max Length", "Source","Homepage URL","Linkout URL"};
|
private void doOnSelection() { lastSelectedNode = (DatasetViewTreeNode) this.getLastSelectedPathComponent(); if (lastSelectedNode == null) return; Object[][] data = null; Object nodeInfo = lastSelectedNode.getUserObject(); if (nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.DatasetView")) { data = new Object [] []{ {"Description", ((DatasetView) nodeInfo).getDescription()}, {"DisplayName", ((DatasetView) nodeInfo).getDisplayName()}, {"InternalName", ((DatasetView) nodeInfo).getInternalName()} }; }else if(nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.FilterPage")) { data = new Object [] []{ {"Description", ((FilterPage) nodeInfo).getDescription()}, {"DisplayName", ((FilterPage) nodeInfo).getDisplayName()}, {"InternalName", ((FilterPage) nodeInfo).getInternalName()} }; }else if(nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.AttributePage")) { data = new Object [] []{ {"Description", ((AttributePage) nodeInfo).getDescription()}, {"DisplayName", ((AttributePage) nodeInfo).getDisplayName()}, {"InternalName", ((AttributePage) nodeInfo).getInternalName()} }; }else if(nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.FilterGroup")) { data = new Object [] []{ {"Description", ((FilterGroup) nodeInfo).getDescription()}, {"DisplayName", ((FilterGroup) nodeInfo).getDisplayName()}, {"InternalName", ((FilterGroup) nodeInfo).getInternalName()} }; }else if(nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.AttributeGroup")) { data = new Object [] []{ {"Description", ((AttributeGroup) nodeInfo).getDescription()}, {"DisplayName", ((AttributeGroup) nodeInfo).getDisplayName()}, {"InternalName", ((AttributeGroup) nodeInfo).getInternalName()} }; }else if(nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.FilterCollection")) { data = new Object [] []{ {"Description", ((FilterCollection) nodeInfo).getDescription()}, {"DisplayName", ((FilterCollection) nodeInfo).getDisplayName()}, {"InternalName", ((FilterCollection) nodeInfo).getInternalName()} }; }else if(nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.AttributeCollection")) { data = new Object [] []{ {"Description", ((AttributeCollection) nodeInfo).getDescription()}, {"DisplayName", ((AttributeCollection) nodeInfo).getDisplayName()}, {"InternalName", ((AttributeCollection) nodeInfo).getInternalName()} }; }else if(nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.FilterDescription")) { data = new Object [] []{ {"Description", ((FilterDescription) nodeInfo).getDescription()}, {"DisplayName", ((FilterDescription) nodeInfo).getDisplayName()}, {"InternalName", ((FilterDescription) nodeInfo).getInternalName()}, //{"isSelectable", ((FilterDescription) nodeInfo).getIsSelectable()}, {"Legal Qualifiers", ((FilterDescription) nodeInfo).getLegalQualifiers()}, {"Qualifier", ((FilterDescription) nodeInfo).getQualifier()}, {"Table Constraint", ((FilterDescription) nodeInfo).getTableConstraint()}, {"Type", ((FilterDescription) nodeInfo).getType()} }; }else if(nodeInfo.getClass().getName().equals("org.ensembl.mart.lib.config.AttributeDescription")) { data = new Object [] []{ {"Description", ((AttributeDescription) nodeInfo).getDescription()}, {"DisplayName", ((AttributeDescription) nodeInfo).getDisplayName()}, {"InternalName", ((AttributeDescription) nodeInfo).getInternalName()}, {"Field", ((AttributeDescription) nodeInfo).getField()}, {"Table Constraint", ((AttributeDescription) nodeInfo).getTableConstraint()}, {"Max Length", new Long(((AttributeDescription) nodeInfo).getMaxLength())}, {"Source",((AttributeDescription) nodeInfo).getSource()}, //{"Homepage URL",((AttributeDescription) nodeInfo).getHomepageURL()}, {"Linkout URL",((AttributeDescription) nodeInfo).getLinkoutURL()} }; } DatasetViewAttributeTableModel model = new DatasetViewAttributeTableModel(); model.setData(data); attrTable.setModel(model); }
|
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/3342ac5b742d267c2cc5c1fab144d1eb2dc608cf/DatasetViewTree.java/buggy/src/java/org/ensembl/mart/vieweditor/DatasetViewTree.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
1398,
6233,
1435,
288,
3639,
1142,
7416,
907,
273,
261,
10656,
1767,
12513,
13,
333,
18,
588,
3024,
7416,
743,
1841,
5621,
3639,
309,
261,
2722,
7416,
907,
422,
446,
13,
327,
31,
3639,
1033,
63,
6362,
65,
501,
273,
446,
31,
3639,
1033,
22118,
273,
1142,
7416,
907,
18,
588,
1299,
921,
5621,
3639,
309,
261,
2159,
966,
18,
588,
797,
7675,
17994,
7675,
14963,
2932,
3341,
18,
25137,
80,
18,
81,
485,
18,
2941,
18,
1425,
18,
10656,
1767,
6,
3719,
288,
5411,
501,
273,
394,
1033,
5378,
5378,
95,
7734,
12528,
3291,
3113,
14015,
10656,
1767,
13,
22118,
2934,
588,
3291,
1435,
5779,
7734,
12528,
20524,
3113,
14015,
10656,
1767,
13,
22118,
2934,
588,
20524,
1435,
5779,
7734,
12528,
3061,
461,
3113,
14015,
10656,
1767,
13,
22118,
2934,
588,
3061,
461,
17767,
5411,
289,
31,
3639,
289,
12107,
309,
12,
2159,
966,
18,
588,
797,
7675,
17994,
7675,
14963,
2932,
3341,
18,
25137,
80,
18,
81,
485,
18,
2941,
18,
1425,
18,
1586,
1964,
6,
3719,
288,
5411,
501,
273,
225,
394,
1033,
5378,
5378,
95,
7734,
12528,
3291,
3113,
14015,
1586,
1964,
13,
22118,
2934,
588,
3291,
1435,
5779,
7734,
12528,
20524,
3113,
14015,
1586,
1964,
13,
22118,
2934,
588,
20524,
1435,
5779,
7734,
12528,
3061,
461,
3113,
14015,
1586,
1964,
13,
22118,
2934,
588,
3061,
461,
17767,
5411,
289,
31,
3639,
289,
12107,
309,
12,
2159,
966,
18,
588,
797,
7675,
17994,
7675,
14963,
2932,
3341,
18,
25137,
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,
741,
1398,
6233,
1435,
288,
3639,
1142,
7416,
907,
273,
261,
10656,
1767,
12513,
13,
333,
18,
588,
3024,
7416,
743,
1841,
5621,
3639,
309,
261,
2722,
7416,
907,
422,
446,
13,
327,
31,
3639,
1033,
63,
6362,
65,
501,
273,
446,
31,
3639,
1033,
22118,
273,
1142,
7416,
907,
18,
588,
1299,
921,
5621,
3639,
309,
261,
2159,
966,
18,
588,
797,
7675,
17994,
7675,
14963,
2932,
3341,
18,
25137,
80,
18,
81,
485,
18,
2941,
18,
1425,
18,
10656,
1767,
6,
3719,
288,
5411,
501,
273,
394,
1033,
5378,
5378,
95,
7734,
12528,
3291,
3113,
14015,
10656,
1767,
13,
22118,
2934,
588,
3291,
1435,
5779,
7734,
12528,
20524,
3113,
14015,
10656,
1767,
13,
22118,
2
] |
if (index < 0) { throw new IllegalArgumentException(); } }
|
if (index < 0) { throw new IllegalArgumentException(); } }
|
public void backup(int occurrences) { index -= occurrences; if (index < 0) { throw new IllegalArgumentException(); } }
|
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/415b1e0db282c02d672a7e34a34a2bea0f69ccb2/Pack.java/buggy/src/org/jruby/util/Pack.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
5114,
12,
474,
15698,
13,
288,
1082,
565,
770,
3947,
15698,
31,
1082,
565,
309,
261,
1615,
411,
374,
13,
288,
1082,
3639,
604,
394,
2754,
5621,
1082,
565,
289,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
5114,
12,
474,
15698,
13,
288,
1082,
565,
770,
3947,
15698,
31,
1082,
565,
309,
261,
1615,
411,
374,
13,
288,
1082,
3639,
604,
394,
2754,
5621,
1082,
565,
289,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
updateButtonEnabledState();
|
refresh();
|
public TablePanel(Table table) { super(new BorderLayout()); this.table = table; setMaximumSize(new Dimension(200, 200)); setBorder(BorderFactory.createRaisedBevelBorder()); titleLabel = new JLabel(getTitleHTML()); titleLabel.setFont(getFont().deriveFont(Font.PLAIN)); playersLabel = new JLabel(getPlayersHTML()); playersLabel.setFont(playersLabel.getFont().deriveFont(Font.PLAIN)); playersLabel.setBackground(SystemColor.text); playersLabel.setOpaque(true); spectatorsLabel = new JLabel(getSpectatorsHTML()); spectatorsLabel.setFont(spectatorsLabel.getFont().deriveFont( Font.PLAIN)); spectatorsLabel.setBackground(SystemColor.text); spectatorsLabel.setOpaque(true); spectatorsLabel.setVisible(table.get_num_spectator_seats() > 0); seatsPanel = new JPanel(new BorderLayout()); seatsPanel.add(playersLabel, BorderLayout.CENTER); seatsPanel.add(spectatorsLabel, BorderLayout.EAST); joinButton = new JButton(new JoinTableAction(table)); spectateButton = new JButton(new SpectateAction(table)); buttonPanel = new JPanel(); buttonPanel.add(joinButton); if (room.get_gametype().get_spectators_allowed()) { buttonPanel.add(spectateButton); } add(titleLabel, BorderLayout.NORTH); add(seatsPanel, BorderLayout.CENTER); add(buttonPanel, BorderLayout.SOUTH); updateButtonEnabledState(); }
|
45800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45800/23297b98c08218eabfb0ce50651df65538ee0abb/RoomPanel.java/buggy/java/src/ggz/ui/RoomPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
3555,
5537,
12,
1388,
1014,
13,
288,
5411,
2240,
12,
2704,
30814,
10663,
5411,
333,
18,
2121,
273,
1014,
31,
5411,
10851,
2422,
1225,
12,
2704,
13037,
12,
6976,
16,
4044,
10019,
5411,
25715,
12,
8107,
1733,
18,
2640,
12649,
5918,
1919,
941,
8107,
10663,
5411,
2077,
2224,
273,
394,
21403,
12,
588,
4247,
4870,
10663,
5411,
2077,
2224,
18,
542,
5711,
12,
588,
5711,
7675,
765,
688,
5711,
12,
5711,
18,
26549,
10019,
5411,
18115,
2224,
273,
394,
21403,
12,
588,
1749,
3907,
4870,
10663,
5411,
18115,
2224,
18,
542,
5711,
12,
1601,
414,
2224,
18,
588,
5711,
7675,
765,
688,
5711,
12,
5711,
18,
26549,
10019,
5411,
18115,
2224,
18,
542,
8199,
12,
3163,
2957,
18,
955,
1769,
5411,
18115,
2224,
18,
542,
3817,
14886,
12,
3767,
1769,
5411,
23242,
3062,
2224,
273,
394,
21403,
12,
588,
55,
1181,
3062,
4870,
10663,
5411,
23242,
3062,
2224,
18,
542,
5711,
12,
13234,
3062,
2224,
18,
588,
5711,
7675,
765,
688,
5711,
12,
10792,
10063,
18,
26549,
10019,
5411,
23242,
3062,
2224,
18,
542,
8199,
12,
3163,
2957,
18,
955,
1769,
5411,
23242,
3062,
2224,
18,
542,
3817,
14886,
12,
3767,
1769,
5411,
23242,
3062,
2224,
18,
542,
6207,
12,
2121,
18,
588,
67,
2107,
67,
13234,
639,
67,
307,
2323,
1435,
405,
374,
1769,
5411,
695,
2323,
5537,
273,
394,
24048,
12,
2704,
30814,
10663,
5411,
695,
2323,
5537,
18,
1289,
12,
1601,
414,
2224,
16,
30814,
18,
19835,
1769,
5411,
695,
2323,
5537,
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,
3555,
5537,
12,
1388,
1014,
13,
288,
5411,
2240,
12,
2704,
30814,
10663,
5411,
333,
18,
2121,
273,
1014,
31,
5411,
10851,
2422,
1225,
12,
2704,
13037,
12,
6976,
16,
4044,
10019,
5411,
25715,
12,
8107,
1733,
18,
2640,
12649,
5918,
1919,
941,
8107,
10663,
5411,
2077,
2224,
273,
394,
21403,
12,
588,
4247,
4870,
10663,
5411,
2077,
2224,
18,
542,
5711,
12,
588,
5711,
7675,
765,
688,
5711,
12,
5711,
18,
26549,
10019,
5411,
18115,
2224,
273,
394,
21403,
12,
588,
1749,
3907,
4870,
10663,
5411,
18115,
2224,
18,
542,
5711,
12,
1601,
414,
2224,
18,
588,
5711,
7675,
765,
688,
5711,
12,
5711,
18,
26549,
10019,
5411,
18115,
2224,
18,
542,
8199,
12,
3163,
2957,
2
] |
return(selectedCheckbox);
|
return getCurrent ();
|
getSelectedCheckbox(){ return(selectedCheckbox);}
|
56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/3fe1c14284ce32b79d0e66441aec6a45a77ff684/CheckboxGroup.java/buggy/libjava/java/awt/CheckboxGroup.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
16625,
21272,
1435,
95,
225,
327,
12,
8109,
21272,
1769,
97,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
16625,
21272,
1435,
95,
225,
327,
12,
8109,
21272,
1769,
97,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
getDistinctProperty( handle, parentHandle, Style.CAN_SHRINK_PROP ) ); setStyleProperty( style, Style.DATE_TIME_FORMAT_PROP, getDistinctProperty( handle, parentHandle, Style.DATE_TIME_FORMAT_PROP ) ); setStyleProperty( style, Style.NUMBER_FORMAT_PROP, getDistinctProperty( handle, parentHandle, Style.NUMBER_FORMAT_PROP ) ); setStyleProperty( style, Style.NUMBER_ALIGN_PROP, getDistinctProperty( handle, parentHandle, Style.NUMBER_ALIGN_PROP ) ); setStyleProperty( style, Style.STRING_FORMAT_PROP, getDistinctProperty( handle, parentHandle, Style.STRING_FORMAT_PROP ) );
|
getDistinctProperty( handle, parentHandle, Style.CAN_SHRINK_PROP ) );*/
|
protected void setupDistinctStyleProperties( StyleDesign style, DesignElementHandle handle, DesignElementHandle parentHandle ) { // Background setStyleProperty( style, Style.BACKGROUND_COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.BACKGROUND_COLOR_PROP ) ); setStyleProperty( style, Style.BACKGROUND_IMAGE_PROP, getDistinctProperty( handle, parentHandle, Style.BACKGROUND_IMAGE_PROP ) ); setStyleProperty( style, Style.BACKGROUND_POSITION_X_PROP, getDistinctProperty( handle, parentHandle, Style.BACKGROUND_POSITION_X_PROP ) ); setStyleProperty( style, Style.BACKGROUND_POSITION_Y_PROP, getDistinctProperty( handle, parentHandle, Style.BACKGROUND_POSITION_Y_PROP ) ); setStyleProperty( style, Style.BACKGROUND_REPEAT_PROP, getDistinctProperty( handle, parentHandle, Style.BACKGROUND_REPEAT_PROP ) ); // Text related setStyleProperty( style, Style.TEXT_ALIGN_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_ALIGN_PROP ) ); setStyleProperty( style, Style.TEXT_INDENT_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_INDENT_PROP ) ); setStyleProperty( style, Style.LETTER_SPACING_PROP, getDistinctProperty( handle, parentHandle, Style.LETTER_SPACING_PROP ) ); setStyleProperty( style, Style.LINE_HEIGHT_PROP, getDistinctProperty( handle, parentHandle, Style.LINE_HEIGHT_PROP ) ); setStyleProperty( style, Style.ORPHANS_PROP, getDistinctProperty( handle, parentHandle, Style.ORPHANS_PROP ) ); setStyleProperty( style, Style.TEXT_TRANSFORM_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_TRANSFORM_PROP ) ); setStyleProperty( style, Style.VERTICAL_ALIGN_PROP, getDistinctProperty( handle, parentHandle, Style.VERTICAL_ALIGN_PROP ) ); setStyleProperty( style, Style.WHITE_SPACE_PROP, getDistinctProperty( handle, parentHandle, Style.WHITE_SPACE_PROP ) ); setStyleProperty( style, Style.WIDOWS_PROP, getDistinctProperty( handle, parentHandle, Style.WIDOWS_PROP ) ); setStyleProperty( style, Style.WORD_SPACING_PROP, getDistinctProperty( handle, parentHandle, Style.WORD_SPACING_PROP ) ); // Section properties setStyleProperty( style, Style.DISPLAY_PROP, getDistinctProperty( handle, parentHandle, Style.DISPLAY_PROP ) ); setStyleProperty( style, Style.MASTER_PAGE_PROP, getDistinctProperty( handle, parentHandle, Style.MASTER_PAGE_PROP ) ); setStyleProperty( style, Style.PAGE_BREAK_AFTER_PROP, getDistinctProperty( handle, parentHandle, Style.PAGE_BREAK_AFTER_PROP ) ); setStyleProperty( style, Style.PAGE_BREAK_BEFORE_PROP, getDistinctProperty( handle, parentHandle, Style.PAGE_BREAK_BEFORE_PROP ) ); setStyleProperty( style, Style.PAGE_BREAK_INSIDE_PROP, getDistinctProperty( handle, parentHandle, Style.PAGE_BREAK_INSIDE_PROP ) ); setStyleProperty( style, Style.SHOW_IF_BLANK_PROP, getDistinctProperty( handle, parentHandle, Style.SHOW_IF_BLANK_PROP ) ); setStyleProperty( style, Style.CAN_SHRINK_PROP, getDistinctProperty( handle, parentHandle, Style.CAN_SHRINK_PROP ) ); // Data Formatting setStyleProperty( style, Style.DATE_TIME_FORMAT_PROP, getDistinctProperty( handle, parentHandle, Style.DATE_TIME_FORMAT_PROP ) ); setStyleProperty( style, Style.NUMBER_FORMAT_PROP, getDistinctProperty( handle, parentHandle, Style.NUMBER_FORMAT_PROP ) ); setStyleProperty( style, Style.NUMBER_ALIGN_PROP, getDistinctProperty( handle, parentHandle, Style.NUMBER_ALIGN_PROP ) ); setStyleProperty( style, Style.STRING_FORMAT_PROP, getDistinctProperty( handle, parentHandle, Style.STRING_FORMAT_PROP ) ); // Font related setStyleProperty( style, Style.FONT_FAMILY_PROP, getDistinctProperty( handle, parentHandle, Style.FONT_FAMILY_PROP ) ); setStyleProperty( style, Style.COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.COLOR_PROP ) ); setStyleProperty( style, Style.FONT_SIZE_PROP, getDistinctProperty( handle, parentHandle, Style.FONT_SIZE_PROP ) ); setStyleProperty( style, Style.FONT_STYLE_PROP, getDistinctProperty( handle, parentHandle, Style.FONT_STYLE_PROP ) ); setStyleProperty( style, Style.FONT_WEIGHT_PROP, getDistinctProperty( handle, parentHandle, Style.FONT_WEIGHT_PROP ) ); setStyleProperty( style, Style.FONT_VARIANT_PROP, getDistinctProperty( handle, parentHandle, Style.FONT_VARIANT_PROP ) ); // Text decoration setStyleProperty( style, Style.TEXT_LINE_THROUGH_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_LINE_THROUGH_PROP ) ); setStyleProperty( style, Style.TEXT_OVERLINE_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_OVERLINE_PROP ) ); setStyleProperty( style, Style.TEXT_UNDERLINE_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_UNDERLINE_PROP ) ); // Border setStyleProperty( style, Style.BORDER_BOTTOM_COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.BORDER_BOTTOM_COLOR_PROP ) ); setStyleProperty( style, Style.BORDER_BOTTOM_STYLE_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_BOTTOM_STYLE_PROP ) ); setStyleProperty( style, Style.BORDER_BOTTOM_WIDTH_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_BOTTOM_WIDTH_PROP ) ); setStyleProperty( style, Style.BORDER_LEFT_COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.BORDER_LEFT_COLOR_PROP ) ); setStyleProperty( style, Style.BORDER_LEFT_STYLE_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_LEFT_STYLE_PROP ) ); setStyleProperty( style, Style.BORDER_LEFT_WIDTH_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_LEFT_WIDTH_PROP ) ); setStyleProperty( style, Style.BORDER_RIGHT_COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.BORDER_RIGHT_COLOR_PROP ) ); setStyleProperty( style, Style.BORDER_RIGHT_STYLE_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_RIGHT_STYLE_PROP ) ); setStyleProperty( style, Style.BORDER_RIGHT_WIDTH_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_RIGHT_WIDTH_PROP ) ); setStyleProperty( style, Style.BORDER_TOP_COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.BORDER_TOP_COLOR_PROP ) ); setStyleProperty( style, Style.BORDER_TOP_STYLE_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_TOP_STYLE_PROP ) ); setStyleProperty( style, Style.BORDER_TOP_WIDTH_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_TOP_WIDTH_PROP ) ); // Margin setStyleProperty( style, Style.MARGIN_TOP_PROP, getDistinctProperty( handle, parentHandle, Style.MARGIN_TOP_PROP ) ); setStyleProperty( style, Style.MARGIN_LEFT_PROP, getDistinctProperty( handle, parentHandle, Style.MARGIN_LEFT_PROP ) ); setStyleProperty( style, Style.MARGIN_BOTTOM_PROP, getDistinctProperty( handle, parentHandle, Style.MARGIN_BOTTOM_PROP ) ); setStyleProperty( style, Style.MARGIN_RIGHT_PROP, getDistinctProperty( handle, parentHandle, Style.MARGIN_RIGHT_PROP ) ); // Padding setStyleProperty( style, Style.PADDING_TOP_PROP, getDistinctProperty( handle, parentHandle, Style.PADDING_TOP_PROP ) ); setStyleProperty( style, Style.PADDING_LEFT_PROP, getDistinctProperty( handle, parentHandle, Style.PADDING_LEFT_PROP ) ); setStyleProperty( style, Style.PADDING_BOTTOM_PROP, getDistinctProperty( handle, parentHandle, Style.PADDING_BOTTOM_PROP ) ); setStyleProperty( style, Style.PADDING_RIGHT_PROP, getDistinctProperty( handle, parentHandle, Style.PADDING_RIGHT_PROP ) ); //Others setStyleProperty( style, Style.CAN_SHRINK_PROP, getDistinctProperty( handle, parentHandle, Style.CAN_SHRINK_PROP ) ); setStyleProperty( style, Style.MASTER_PAGE_PROP, getDistinctProperty( handle, parentHandle, Style.MASTER_PAGE_PROP ) ); setStyleProperty( style, Style.SHOW_IF_BLANK_PROP, getDistinctProperty( handle, parentHandle, Style.SHOW_IF_BLANK_PROP ) ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e29ffc4317fc1dab71e811072bd49e7d35a106d8/EngineIRVisitor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3875,
23402,
2885,
2297,
12,
9767,
15478,
2154,
16,
1082,
202,
15478,
1046,
3259,
1640,
16,
29703,
1046,
3259,
982,
3259,
262,
202,
95,
202,
202,
759,
8977,
202,
202,
542,
2885,
1396,
12,
2154,
16,
9767,
18,
8720,
20166,
67,
10989,
67,
15811,
16,
9506,
202,
588,
23402,
2957,
1396,
12,
1640,
16,
982,
3259,
16,
9767,
18,
8720,
20166,
67,
10989,
67,
15811,
262,
11272,
202,
202,
542,
2885,
1396,
12,
2154,
16,
9767,
18,
8720,
20166,
67,
13603,
67,
15811,
16,
9506,
202,
588,
23402,
1396,
12,
1640,
16,
982,
3259,
16,
9767,
18,
8720,
20166,
67,
13603,
67,
15811,
262,
11272,
202,
202,
542,
2885,
1396,
12,
2154,
16,
9767,
18,
8720,
20166,
67,
15258,
67,
60,
67,
15811,
16,
9506,
202,
588,
23402,
1396,
12,
1640,
16,
982,
3259,
16,
9767,
18,
8720,
20166,
67,
15258,
67,
60,
67,
15811,
262,
11272,
202,
202,
542,
2885,
1396,
12,
2154,
16,
9767,
18,
8720,
20166,
67,
15258,
67,
61,
67,
15811,
16,
9506,
202,
588,
23402,
1396,
12,
1640,
16,
982,
3259,
16,
9767,
18,
8720,
20166,
67,
15258,
67,
61,
67,
15811,
262,
11272,
202,
202,
542,
2885,
1396,
12,
2154,
16,
9767,
18,
8720,
20166,
67,
862,
31804,
67,
15811,
16,
9506,
202,
588,
23402,
1396,
12,
1640,
16,
982,
3259,
16,
9767,
18,
8720,
20166,
67,
862,
31804,
67,
15811,
262,
11272,
202,
202,
759,
3867,
3746,
202,
202,
542,
2885,
1396,
12,
2154,
16,
9767,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3875,
23402,
2885,
2297,
12,
9767,
15478,
2154,
16,
1082,
202,
15478,
1046,
3259,
1640,
16,
29703,
1046,
3259,
982,
3259,
262,
202,
95,
202,
202,
759,
8977,
202,
202,
542,
2885,
1396,
12,
2154,
16,
9767,
18,
8720,
20166,
67,
10989,
67,
15811,
16,
9506,
202,
588,
23402,
2957,
1396,
12,
1640,
16,
982,
3259,
16,
9767,
18,
8720,
20166,
67,
10989,
67,
15811,
262,
11272,
202,
202,
542,
2885,
1396,
12,
2154,
16,
9767,
18,
8720,
20166,
67,
13603,
67,
15811,
16,
9506,
202,
588,
23402,
1396,
12,
1640,
16,
982,
3259,
16,
9767,
18,
8720,
20166,
67,
13603,
67,
15811,
262,
11272,
202,
202,
542,
2885,
1396,
12,
2154,
16,
9767,
18,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.