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
|
|---|---|---|---|---|---|---|
throws ProxyException
|
throws ProxyException, IOException
|
public void testGetMetadataNotPresent() throws ProxyException { String path = "org/apache/maven/test/dummy-artifact/1.0/maven-metadata.xml"; File expectedFile = new File( defaultManagedRepository.getBasedir(), path ); assertFalse( expectedFile.exists() ); try { File file = requestHandler.get( path, proxiedRepositories, defaultManagedRepository ); fail( "Found file: " + file + "; but was expecting a failure" ); } catch ( ResourceDoesNotExistException e ) { // expected assertFalse( expectedFile.exists() ); } }
|
47019 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47019/2ba752a19147094d8b5145730c46f8f1a0bed7dc/ProxyRequestHandlerTest.java/buggy/maven-repository-proxy/src/test/java/org/apache/maven/repository/proxy/ProxyRequestHandlerTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
2277,
1248,
6351,
1435,
3639,
1216,
7659,
503,
16,
1860,
565,
288,
3639,
514,
589,
273,
315,
3341,
19,
19211,
19,
81,
7638,
19,
3813,
19,
21050,
17,
17706,
19,
21,
18,
20,
19,
81,
7638,
17,
4165,
18,
2902,
14432,
3639,
1387,
2665,
812,
273,
394,
1387,
12,
805,
10055,
3305,
18,
588,
2171,
1214,
9334,
589,
11272,
3639,
1815,
8381,
12,
2665,
812,
18,
1808,
1435,
11272,
3639,
775,
3639,
288,
5411,
1387,
585,
273,
590,
1503,
18,
588,
12,
589,
16,
21875,
18429,
16,
805,
10055,
3305,
11272,
5411,
2321,
12,
315,
2043,
585,
30,
315,
397,
585,
397,
13636,
1496,
1703,
17012,
279,
5166,
6,
11272,
3639,
289,
3639,
1044,
261,
2591,
26621,
425,
262,
3639,
288,
5411,
368,
2665,
5411,
1815,
8381,
12,
2665,
812,
18,
1808,
1435,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
1842,
967,
2277,
1248,
6351,
1435,
3639,
1216,
7659,
503,
16,
1860,
565,
288,
3639,
514,
589,
273,
315,
3341,
19,
19211,
19,
81,
7638,
19,
3813,
19,
21050,
17,
17706,
19,
21,
18,
20,
19,
81,
7638,
17,
4165,
18,
2902,
14432,
3639,
1387,
2665,
812,
273,
394,
1387,
12,
805,
10055,
3305,
18,
588,
2171,
1214,
9334,
589,
11272,
3639,
1815,
8381,
12,
2665,
812,
18,
1808,
1435,
11272,
3639,
775,
3639,
288,
5411,
1387,
585,
273,
590,
1503,
18,
588,
12,
589,
16,
21875,
18429,
16,
805,
10055,
3305,
11272,
5411,
2321,
12,
315,
2043,
585,
30,
315,
397,
585,
397,
13636,
1496,
1703,
17012,
279,
5166,
6,
11272,
3639,
289,
3639,
1044,
2
] |
Size size = (Size)object; return getString("_UI_Size_type") + " " + size.getWidth(); }
|
Size size = (Size)object; return getString("_UI_Size_type") + " " + size.getWidth(); }
|
public String getText(Object object) { Size size = (Size)object; return getString("_UI_Size_type") + " " + size.getWidth(); //$NON-NLS-1$ //$NON-NLS-2$ }
|
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/1d1e28c0f7853dd16bd3fe819770773ed4e61d20/SizeItemProvider.java/buggy/org.eclipse.gmf.notation/plugins/org.eclipse.gmf.runtime.notation.edit/src/org/eclipse/gmf/runtime/notation/provider/SizeItemProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6701,
12,
921,
733,
13,
288,
202,
202,
1225,
963,
273,
261,
1225,
13,
1612,
31,
202,
202,
2463,
4997,
2932,
67,
5370,
67,
1225,
67,
723,
7923,
397,
315,
315,
397,
963,
18,
588,
2384,
5621,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6701,
12,
921,
733,
13,
288,
202,
202,
1225,
963,
273,
261,
1225,
13,
1612,
31,
202,
202,
2463,
4997,
2932,
67,
5370,
67,
1225,
67,
723,
7923,
397,
315,
315,
397,
963,
18,
588,
2384,
5621,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
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
] |
m_instanceVals = new double [m_incrementalStructure.numAttributes()];
|
m_instanceVals = new double [m_format.numAttributes()];
|
public void acceptClassifier(IncrementalClassifierEvent e) { weka.classifiers.Classifier classifier = e.getClassifier(); Instance currentI = e.getCurrentInstance(); int status = e.getStatus(); int oldNumAtts = currentI.dataset().numAttributes(); if (status == IncrementalClassifierEvent.NEW_BATCH) { m_instanceEvent = new InstanceEvent(this, null, 0); // create new header structure Instances oldStructure = new Instances(currentI.dataset(), 0); String relationNameModifier = oldStructure.relationName() +"_with predictions"; if (!m_appendProbabilities || oldStructure.classAttribute().isNumeric()) { try { m_incrementalStructure = makeDataSetClass(oldStructure, classifier, relationNameModifier); m_instanceVals = new double [m_incrementalStructure.numAttributes()]; } catch (Exception ex) { ex.printStackTrace(); return; } } else if (m_appendProbabilities) { try { m_incrementalStructure = makeDataSetProbabilities(oldStructure, classifier, relationNameModifier); m_instanceVals = new double [m_incrementalStructure.numAttributes()]; } catch (Exception ex) { ex.printStackTrace(); return; } } } Instance newInst; try { // process the actual instance for (int i = 0; i < oldNumAtts; i++) { m_instanceVals[i] = currentI.value(i); } if (!m_appendProbabilities || currentI.dataset().classAttribute().isNumeric()) { double predClass = classifier.classifyInstance(currentI); m_instanceVals[m_instanceVals.length - 1] = predClass; } else if (m_appendProbabilities) { double [] preds = classifier.distributionForInstance(currentI); for (int i = oldNumAtts; i < m_instanceVals.length; i++) { m_instanceVals[i] = preds[i-oldNumAtts]; } } } catch (Exception ex) { ex.printStackTrace(); return; } finally { newInst = new Instance(currentI.weight(), m_instanceVals); newInst.setDataset(m_incrementalStructure); m_instanceEvent.setInstance(newInst); m_instanceEvent.setStatus(status); // notify listeners notifyInstanceAvailable(m_instanceEvent); } if (status == IncrementalClassifierEvent.BATCH_FINISHED) { // clean up m_incrementalStructure = null; m_instanceVals = null; m_instanceEvent = null; } }
|
48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/a8039ada141eef9b4afddb7259c97e813f3d4471/PredictionAppender.java/clean/weka/gui/beans/PredictionAppender.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2791,
13860,
12,
10798,
287,
13860,
1133,
425,
13,
288,
565,
732,
7282,
18,
1106,
3383,
18,
13860,
14622,
273,
425,
18,
588,
13860,
5621,
565,
5180,
783,
45,
273,
425,
18,
588,
3935,
1442,
5621,
565,
509,
1267,
273,
425,
18,
588,
1482,
5621,
565,
509,
1592,
2578,
3075,
87,
273,
783,
45,
18,
8682,
7675,
2107,
2498,
5621,
565,
309,
261,
2327,
422,
17883,
287,
13860,
1133,
18,
12917,
67,
25147,
13,
288,
1377,
312,
67,
1336,
1133,
273,
394,
5180,
1133,
12,
2211,
16,
446,
16,
374,
1769,
1377,
368,
752,
394,
1446,
3695,
1377,
18357,
1592,
6999,
273,
394,
18357,
12,
2972,
45,
18,
8682,
9334,
374,
1769,
1377,
514,
20945,
9829,
273,
1592,
6999,
18,
5488,
461,
1435,
202,
9078,
67,
1918,
13067,
14432,
4202,
309,
16051,
81,
67,
6923,
9152,
5756,
30378,
747,
1592,
6999,
18,
1106,
1499,
7675,
291,
9902,
10756,
288,
202,
775,
288,
202,
282,
312,
67,
15016,
287,
6999,
273,
1221,
13676,
797,
12,
1673,
6999,
16,
14622,
16,
6862,
1082,
377,
20945,
9829,
1769,
202,
282,
312,
67,
1336,
13169,
273,
394,
1645,
306,
81,
67,
15016,
287,
6999,
18,
2107,
2498,
1435,
15533,
202,
289,
1044,
261,
503,
431,
13,
288,
202,
282,
431,
18,
1188,
6332,
5621,
202,
282,
327,
31,
202,
289,
4202,
289,
469,
309,
261,
81,
67,
6923,
9152,
5756,
13,
288,
202,
775,
288,
202,
282,
312,
67,
15016,
287,
6999,
273,
9785,
1221,
13676,
9152,
5756,
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,
2791,
13860,
12,
10798,
287,
13860,
1133,
425,
13,
288,
565,
732,
7282,
18,
1106,
3383,
18,
13860,
14622,
273,
425,
18,
588,
13860,
5621,
565,
5180,
783,
45,
273,
425,
18,
588,
3935,
1442,
5621,
565,
509,
1267,
273,
425,
18,
588,
1482,
5621,
565,
509,
1592,
2578,
3075,
87,
273,
783,
45,
18,
8682,
7675,
2107,
2498,
5621,
565,
309,
261,
2327,
422,
17883,
287,
13860,
1133,
18,
12917,
67,
25147,
13,
288,
1377,
312,
67,
1336,
1133,
273,
394,
5180,
1133,
12,
2211,
16,
446,
16,
374,
1769,
1377,
368,
752,
394,
1446,
3695,
1377,
18357,
1592,
6999,
273,
394,
18357,
12,
2972,
45,
18,
8682,
9334,
374,
1769,
1377,
514,
20945,
9829,
2
] |
} codePoint = reader.getCodePoint(); }
|
stmt = database.newDRDAStatement(pkgnamcsn); String sqlStmt = parsePRPSQLSTTobjects(stmt); if (databaseToSet != null) stmt.setDatabase(database); stmt.explicitPrepare(sqlStmt); database.setCurrentStatement(stmt);
|
private int parsePRPSQLSTT() throws DRDAProtocolException,SQLException { int codePoint; boolean rtnsqlda = false; boolean rtnOutput = true; // Return output SQLDA is default String typdefnam; Pkgnamcsn pkgnamcsn = null; DRDAStatement stmt = null; Database databaseToSet = null; reader.markCollection(); codePoint = reader.getCodePoint(); while (codePoint != -1) { switch (codePoint) { // optional case CodePoint.RDBNAM: setDatabase(CodePoint.PRPSQLSTT); databaseToSet = database; break; // required case CodePoint.PKGNAMCSN: pkgnamcsn = parsePKGNAMCSN(); break; //optional case CodePoint.RTNSQLDA: // Return SQLDA with description of statement rtnsqlda = readBoolean(CodePoint.RTNSQLDA); break; //optional case CodePoint.TYPSQLDA: rtnOutput = parseTYPSQLDA(); break; //optional case CodePoint.MONITOR: parseMONITOR(); break; default: invalidCodePoint(codePoint); } codePoint = reader.getCodePoint(); } stmt = database.newDRDAStatement(pkgnamcsn); String sqlStmt = parsePRPSQLSTTobjects(stmt); if (databaseToSet != null) stmt.setDatabase(database); stmt.explicitPrepare(sqlStmt); // set the statement as the current statement database.setCurrentStatement(stmt); if (!rtnsqlda) return 0; else if (rtnOutput) return 2; else return 1; }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/9ab36fe5be3632bbd1703a025618a585f0db4a57/DRDAConnThread.java/buggy/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1109,
8025,
52,
3997,
882,
56,
1435,
1216,
16801,
9793,
5752,
503,
16,
23116,
202,
95,
202,
202,
474,
18614,
31,
202,
202,
6494,
8253,
2387,
1217,
2414,
273,
629,
31,
202,
202,
6494,
12119,
1447,
273,
638,
31,
225,
202,
759,
2000,
876,
3063,
9793,
353,
805,
202,
202,
780,
3815,
536,
17808,
31,
202,
202,
7789,
1600,
301,
2143,
82,
2365,
1600,
301,
2143,
82,
273,
446,
31,
202,
202,
6331,
9793,
3406,
3480,
273,
446,
31,
21114,
202,
4254,
2063,
25208,
273,
446,
31,
202,
202,
10530,
18,
3355,
2532,
5621,
202,
202,
710,
2148,
273,
2949,
18,
588,
31536,
5621,
202,
202,
17523,
261,
710,
2148,
480,
300,
21,
13,
202,
202,
95,
1082,
202,
9610,
261,
710,
2148,
13,
1082,
202,
95,
9506,
202,
759,
3129,
9506,
202,
3593,
3356,
2148,
18,
54,
2290,
50,
2192,
30,
6862,
202,
542,
4254,
12,
31536,
18,
8025,
52,
3997,
882,
56,
1769,
6862,
202,
6231,
25208,
273,
2063,
31,
6862,
202,
8820,
31,
9506,
202,
759,
1931,
9506,
202,
3593,
3356,
2148,
18,
8784,
8318,
2192,
4596,
50,
30,
6862,
202,
5465,
1600,
301,
2143,
82,
273,
1109,
8784,
8318,
2192,
4596,
50,
5621,
4405,
202,
8820,
31,
9506,
202,
759,
10444,
9506,
202,
3593,
3356,
2148,
18,
12185,
3156,
2024,
9793,
30,
9506,
202,
759,
2000,
3063,
9793,
598,
2477,
434,
3021,
6862,
202,
3797,
2387,
1217,
2414,
273,
855,
5507,
12,
31536,
18,
12185,
3156,
2024,
9793,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1109,
8025,
52,
3997,
882,
56,
1435,
1216,
16801,
9793,
5752,
503,
16,
23116,
202,
95,
202,
202,
474,
18614,
31,
202,
202,
6494,
8253,
2387,
1217,
2414,
273,
629,
31,
202,
202,
6494,
12119,
1447,
273,
638,
31,
225,
202,
759,
2000,
876,
3063,
9793,
353,
805,
202,
202,
780,
3815,
536,
17808,
31,
202,
202,
7789,
1600,
301,
2143,
82,
2365,
1600,
301,
2143,
82,
273,
446,
31,
202,
202,
6331,
9793,
3406,
3480,
273,
446,
31,
21114,
202,
4254,
2063,
25208,
273,
446,
31,
202,
202,
10530,
18,
3355,
2532,
5621,
202,
202,
710,
2148,
273,
2949,
18,
588,
31536,
5621,
202,
202,
17523,
261,
710,
2148,
480,
300,
21,
13,
202,
2
] |
public static SequenceFile.Reader[] getReaders(Configuration conf, File dir)
|
public static SequenceFile.Reader[] getReaders(Configuration conf, File dir)
|
public static SequenceFile.Reader[] getReaders(Configuration conf, File dir) throws IOException { FileSystem fs = FileSystem.get(conf); File[] names = fs.listFiles(dir); // sort names, so that hash partitioning works Arrays.sort(names); SequenceFile.Reader[] parts = new SequenceFile.Reader[names.length]; for (int i = 0; i < names.length; i++) { parts[i] = new SequenceFile.Reader(fs, names[i].toString(), conf); } return parts; }
|
48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/ee01fef4b4fb82c7492a4a747793839a4d14cd39/SequenceFileOutputFormat.java/buggy/src/java/org/apache/hadoop/mapred/SequenceFileOutputFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
8370,
812,
18,
2514,
8526,
19900,
414,
12,
1750,
2195,
16,
1387,
1577,
13,
565,
1216,
1860,
288,
565,
10931,
2662,
273,
10931,
18,
588,
12,
3923,
1769,
565,
1387,
8526,
1257,
273,
2662,
18,
1098,
2697,
12,
1214,
1769,
3639,
368,
1524,
1257,
16,
1427,
716,
1651,
3590,
310,
6330,
565,
5647,
18,
3804,
12,
1973,
1769,
3639,
8370,
812,
18,
2514,
8526,
2140,
273,
394,
8370,
812,
18,
2514,
63,
1973,
18,
2469,
15533,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1257,
18,
2469,
31,
277,
27245,
288,
1377,
2140,
63,
77,
65,
273,
394,
8370,
812,
18,
2514,
12,
2556,
16,
1257,
63,
77,
8009,
10492,
9334,
2195,
1769,
565,
289,
565,
327,
2140,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
8370,
812,
18,
2514,
8526,
19900,
414,
12,
1750,
2195,
16,
1387,
1577,
13,
565,
1216,
1860,
288,
565,
10931,
2662,
273,
10931,
18,
588,
12,
3923,
1769,
565,
1387,
8526,
1257,
273,
2662,
18,
1098,
2697,
12,
1214,
1769,
3639,
368,
1524,
1257,
16,
1427,
716,
1651,
3590,
310,
6330,
565,
5647,
18,
3804,
12,
1973,
1769,
3639,
8370,
812,
18,
2514,
8526,
2140,
273,
394,
8370,
812,
18,
2514,
63,
1973,
18,
2469,
15533,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1257,
18,
2469,
31,
277,
27245,
288,
1377,
2140,
63,
77,
65,
273,
394,
8370,
812,
18,
2514,
12,
2556,
16,
1257,
63,
77,
8009,
10492,
9334,
2195,
1769,
565,
2
] |
RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_pow(other); } else { if (other.getLongValue() == 0) { return newFixnum(getRuby(), 1); } else if (other.getLongValue() == 1) { return this; } else if (other.getLongValue() > 1) { return RubyBignum.newBignum(getRuby(), getLongValue()).op_pow(other); } else { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_pow(other); } } }
|
RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_pow(other); } else { if (other.getLongValue() == 0) { return newFixnum(getRuby(), 1); } else if (other.getLongValue() == 1) { return this; } else if (other.getLongValue() > 1) { return RubyBignum.newBignum(getRuby(), getLongValue()).op_pow(other); } else { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_pow(other); } } }
|
public RubyNumeric op_pow(RubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_pow(other); } else { if (other.getLongValue() == 0) { return newFixnum(getRuby(), 1); } else if (other.getLongValue() == 1) { return this; } else if (other.getLongValue() > 1) { return RubyBignum.newBignum(getRuby(), getLongValue()).op_pow(other); } else { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_pow(other); } } }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/1cc89bd397c0f049e6fa3045916fd6d9a3cdada8/RubyFixnum.java/clean/org/jruby/RubyFixnum.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
23509,
12,
54,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327,
19817,
4723,
18,
2704,
4723,
12,
588,
54,
10340,
9334,
16097,
620,
1435,
2934,
556,
67,
23509,
12,
3011,
1769,
3639,
289,
469,
288,
5411,
309,
261,
3011,
18,
588,
3708,
620,
1435,
422,
374,
13,
288,
7734,
327,
394,
8585,
2107,
12,
588,
54,
10340,
9334,
404,
1769,
5411,
289,
469,
309,
261,
3011,
18,
588,
3708,
620,
1435,
422,
404,
13,
288,
7734,
327,
333,
31,
5411,
289,
469,
309,
261,
3011,
18,
588,
3708,
620,
1435,
405,
404,
13,
288,
7734,
327,
19817,
38,
724,
379,
18,
2704,
38,
724,
379,
12,
588,
54,
10340,
9334,
11105,
620,
1435,
2934,
556,
67,
23509,
12,
3011,
1769,
5411,
289,
469,
288,
7734,
327,
19817,
4723,
18,
2704,
4723,
12,
588,
54,
10340,
9334,
16097,
620,
1435,
2934,
556,
67,
23509,
12,
3011,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
23509,
12,
54,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327,
19817,
4723,
18,
2704,
4723,
12,
588,
54,
10340,
9334,
16097,
620,
1435,
2934,
556,
67,
23509,
12,
3011,
1769,
3639,
289,
469,
288,
5411,
309,
261,
3011,
18,
588,
3708,
620,
1435,
422,
374,
13,
288,
7734,
327,
394,
8585,
2107,
12,
588,
54,
10340,
9334,
404,
1769,
5411,
289,
469,
309,
261,
3011,
18,
588,
3708,
620,
1435,
422,
404,
13,
288,
7734,
327,
333,
31,
5411,
289,
469,
309,
261,
3011,
18,
588,
3708,
620,
1435,
405,
404,
13,
288,
7734,
2
] |
case 140:
|
case 142:
|
public final Expression pathExpr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST pathExpr_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST qn = null; org.exist.xquery.parser.XQueryAST nc1 = null; org.exist.xquery.parser.XQueryAST nc = null; org.exist.xquery.parser.XQueryAST n = null; org.exist.xquery.parser.XQueryAST qn2 = null; org.exist.xquery.parser.XQueryAST qn3 = null; org.exist.xquery.parser.XQueryAST attr = null; org.exist.xquery.parser.XQueryAST nc2 = null; org.exist.xquery.parser.XQueryAST nc3 = null; Expression rightStep= null; step= null; int axis= Constants.CHILD_AXIS; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case WILDCARD: case PREFIX_WILDCARD: case ATTRIBUTE_TEST: case NCNAME: case LITERAL_element: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case LITERAL_preceding: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_attribute: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case LITERAL_preceding: { axis=forwardAxis(_t); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case ATTRIBUTE_TEST: case NCNAME: case LITERAL_element: case LITERAL_text: case LITERAL_node: case LITERAL_comment: case 140: { break; } default: { throw new NoViableAltException(_t); } } } NodeTest test; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { qn = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QNAME); _t = _t.getNextSibling(); QName qname= QName.parse(context, qn.getText()); test= new NameTest(Type.ELEMENT, qname); if (axis == Constants.ATTRIBUTE_AXIS) test.setType(Type.ATTRIBUTE); break; } case PREFIX_WILDCARD: { AST __t116 = _t; org.exist.xquery.parser.XQueryAST tmp62_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,PREFIX_WILDCARD); _t = _t.getFirstChild(); nc1 = (org.exist.xquery.parser.XQueryAST)_t; match(_t,NCNAME); _t = _t.getNextSibling(); _t = __t116; _t = _t.getNextSibling(); QName qname= new QName(nc1.getText(), null, null); qname.setNamespaceURI(null); test= new NameTest(Type.ELEMENT, qname); if (axis == Constants.ATTRIBUTE_AXIS) test.setType(Type.ATTRIBUTE); break; } case NCNAME: { AST __t117 = _t; nc = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,NCNAME); _t = _t.getFirstChild(); org.exist.xquery.parser.XQueryAST tmp63_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); _t = __t117; _t = _t.getNextSibling(); String namespaceURI= context.getURIForPrefix(nc.getText()); QName qname= new QName(null, namespaceURI, nc.getText()); test= new NameTest(Type.ELEMENT, qname); if (axis == Constants.ATTRIBUTE_AXIS) test.setType(Type.ATTRIBUTE); break; } case WILDCARD: { org.exist.xquery.parser.XQueryAST tmp64_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); if (axis == Constants.ATTRIBUTE_AXIS) test= new TypeTest(Type.ATTRIBUTE); else test= new TypeTest(Type.ELEMENT); break; } case LITERAL_node: { n = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_node); _t = _t.getNextSibling(); if (axis == Constants.ATTRIBUTE_AXIS) throw new XPathException(n, "Cannot test for node() on the attribute axis"); test= new AnyNodeTest(); break; } case LITERAL_text: { org.exist.xquery.parser.XQueryAST tmp65_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_text); _t = _t.getNextSibling(); if (axis == Constants.ATTRIBUTE_AXIS) throw new XPathException(n, "Cannot test for text() on the attribute axis"); test= new TypeTest(Type.TEXT); break; } case LITERAL_element: { AST __t118 = _t; org.exist.xquery.parser.XQueryAST tmp66_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_element); _t = _t.getFirstChild(); if (axis == Constants.ATTRIBUTE_AXIS) throw new XPathException(n, "Cannot test for element() on the attribute axis"); test= new TypeTest(Type.ELEMENT); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { qn2 = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QNAME); _t = _t.getNextSibling(); QName qname= QName.parse(context, qn2.getText()); test= new NameTest(Type.ELEMENT, qname); break; } case WILDCARD: { org.exist.xquery.parser.XQueryAST tmp67_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t118; _t = _t.getNextSibling(); break; } case ATTRIBUTE_TEST: { AST __t120 = _t; org.exist.xquery.parser.XQueryAST tmp68_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ATTRIBUTE_TEST); _t = _t.getFirstChild(); test= new TypeTest(Type.ATTRIBUTE); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { qn3 = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QNAME); _t = _t.getNextSibling(); QName qname= QName.parse(context, qn3.getText()); test= new NameTest(Type.ATTRIBUTE, qname); axis= Constants.ATTRIBUTE_AXIS; break; } case WILDCARD: { org.exist.xquery.parser.XQueryAST tmp69_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t120; _t = _t.getNextSibling(); break; } case LITERAL_comment: { org.exist.xquery.parser.XQueryAST tmp70_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_comment); _t = _t.getNextSibling(); if (axis == Constants.ATTRIBUTE_AXIS) throw new XPathException(n, "Cannot test for comment() on the attribute axis"); test= new TypeTest(Type.COMMENT); break; } case 140: { org.exist.xquery.parser.XQueryAST tmp71_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,140); _t = _t.getNextSibling(); test= new TypeTest(Type.DOCUMENT); break; } default: { throw new NoViableAltException(_t); } } } step= new LocationStep(context, axis, test); path.add(step); { _loop123: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep) step); _t = _retTree; } else { break _loop123; } } while (true); } break; } case AT: { org.exist.xquery.parser.XQueryAST tmp72_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,AT); _t = _t.getNextSibling(); QName qname= null; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { attr = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QNAME); _t = _t.getNextSibling(); qname= QName.parse(context, attr.getText(), null); break; } case WILDCARD: { org.exist.xquery.parser.XQueryAST tmp73_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); break; } case PREFIX_WILDCARD: { AST __t125 = _t; org.exist.xquery.parser.XQueryAST tmp74_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,PREFIX_WILDCARD); _t = _t.getFirstChild(); nc2 = (org.exist.xquery.parser.XQueryAST)_t; match(_t,NCNAME); _t = _t.getNextSibling(); _t = __t125; _t = _t.getNextSibling(); qname= new QName(nc2.getText(), null, null); break; } case NCNAME: { AST __t126 = _t; nc3 = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,NCNAME); _t = _t.getFirstChild(); org.exist.xquery.parser.XQueryAST tmp75_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); _t = __t126; _t = _t.getNextSibling(); String namespaceURI= context.getURIForPrefix(nc3.getText()); if (namespaceURI == null) throw new EXistException("No namespace defined for prefix " + nc3.getText()); qname= new QName(null, namespaceURI, null); break; } default: { throw new NoViableAltException(_t); } } } NodeTest test= qname == null ? new TypeTest(Type.ATTRIBUTE) : new NameTest(Type.ATTRIBUTE, qname); step= new LocationStep(context, Constants.ATTRIBUTE_AXIS, test); path.add(step); { _loop128: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep) step); _t = _retTree; } else { break _loop128; } } while (true); } break; } case SELF: { org.exist.xquery.parser.XQueryAST tmp76_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,SELF); _t = _t.getNextSibling(); step= new LocationStep(context, Constants.SELF_AXIS, new TypeTest(Type.NODE)); path.add(step); { _loop130: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep) step); _t = _retTree; } else { break _loop130; } } while (true); } break; } case PARENT: { org.exist.xquery.parser.XQueryAST tmp77_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,PARENT); _t = _t.getNextSibling(); step= new LocationStep(context, Constants.PARENT_AXIS, new TypeTest(Type.NODE)); path.add(step); { _loop132: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep) step); _t = _retTree; } else { break _loop132; } } while (true); } break; } case SLASH: { AST __t133 = _t; org.exist.xquery.parser.XQueryAST tmp78_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,SLASH); _t = _t.getFirstChild(); step=expr(_t,path); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { rightStep=expr(_t,path); _t = _retTree; if (rightStep instanceof LocationStep) { if(((LocationStep) rightStep).getAxis() == -1) ((LocationStep) rightStep).setAxis(Constants.CHILD_AXIS); } else { rightStep.setPrimaryAxis(Constants.CHILD_AXIS); if(rightStep instanceof VariableReference) { rightStep = new SimpleStep(context, Constants.CHILD_AXIS, rightStep); path.replaceLastExpression(rightStep); } } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t133; _t = _t.getNextSibling(); if (step instanceof LocationStep && ((LocationStep) step).getAxis() == -1) ((LocationStep) step).setAxis(Constants.CHILD_AXIS); break; } case DSLASH: { AST __t135 = _t; org.exist.xquery.parser.XQueryAST tmp79_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,DSLASH); _t = _t.getFirstChild(); step=expr(_t,path); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { rightStep=expr(_t,path); _t = _retTree; if (rightStep instanceof LocationStep) { LocationStep rs= (LocationStep) rightStep; if (rs.getAxis() == Constants.ATTRIBUTE_AXIS) rs.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else rs.setAxis(Constants.DESCENDANT_SELF_AXIS); } else { rightStep.setPrimaryAxis(Constants.DESCENDANT_SELF_AXIS); if(rightStep instanceof VariableReference) { rightStep = new SimpleStep(context, Constants.DESCENDANT_SELF_AXIS, rightStep); path.replaceLastExpression(rightStep); } } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t135; _t = _t.getNextSibling(); if (step instanceof LocationStep && ((LocationStep) step).getAxis() == -1) ((LocationStep) step).setAxis(Constants.DESCENDANT_SELF_AXIS); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9aec85412cf9f86cb609358133dd23628306f44a/XQueryTreeParser.java/clean/src/org/exist/xquery/parser/XQueryTreeParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
589,
4742,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
31,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
589,
4742,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
67,
88,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
31054,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
8194,
21,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
8194,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
290,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
31054,
22,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
31054,
23,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1604,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
8194,
22,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
589,
4742,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
31,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
589,
4742,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
67,
88,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
31054,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
8194,
2
] |
parse(buffer.toString(), ParserLanguage.CPP, true, true);
|
parse(buffer.toString(), ParserLanguage.CPP, true, 0);
|
public void test14_5_5_1s8a() { StringBuffer buffer = new StringBuffer(); buffer.append("// Guaranteed to be the same\n"); //$NON-NLS-1$ buffer.append("template <int I> void f(A<I>, A<I+10>);\n"); //$NON-NLS-1$ buffer.append("template <int I> void f(A<I>, A<I+10>);\n"); //$NON-NLS-1$ buffer.append("// Guaranteed to be different\n"); //$NON-NLS-1$ buffer.append("template <int I> void f(A<I>, A<I+10>);\n"); //$NON-NLS-1$ buffer.append("template <int I> void f(A<I>, A<I+11>);\n"); //$NON-NLS-1$ try { parse(buffer.toString(), ParserLanguage.CPP, true, true); assertTrue(false); } catch (Exception e) { } }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/7d7fa374bfd169ce8924a5c15bd01444e6e6e445/AST2CPPSpecFailingTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecFailingTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3461,
67,
25,
67,
25,
67,
21,
87,
28,
69,
1435,
225,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
759,
6467,
30164,
358,
506,
326,
1967,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
3202,
411,
474,
467,
34,
918,
284,
12,
37,
32,
45,
20401,
432,
32,
45,
15,
2163,
34,
20472,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
3202,
411,
474,
467,
34,
918,
284,
12,
37,
32,
45,
20401,
432,
32,
45,
15,
2163,
34,
20472,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
759,
6467,
30164,
358,
506,
3775,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
3202,
411,
474,
467,
34,
918,
284,
12,
37,
32,
45,
20401,
432,
32,
45,
15,
2163,
34,
20472,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
3202,
411,
474,
467,
34,
918,
284,
12,
37,
32,
45,
20401,
432,
32,
45,
15,
2499,
34,
20472,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
698,
288,
202,
202,
2670,
12,
4106,
18,
10492,
9334,
6783,
3779,
18,
4258,
52,
16,
638,
16,
638,
1769,
202,
202,
11231,
5510,
12,
5743,
1769,
202,
202,
97,
1044,
261,
503,
425,
13,
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,
918,
1842,
3461,
67,
25,
67,
25,
67,
21,
87,
28,
69,
1435,
225,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
759,
6467,
30164,
358,
506,
326,
1967,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
3202,
411,
474,
467,
34,
918,
284,
12,
37,
32,
45,
20401,
432,
32,
45,
15,
2163,
34,
20472,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
3202,
411,
474,
467,
34,
918,
284,
12,
37,
32,
45,
20401,
432,
32,
45,
15,
2163,
34,
20472,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
2
] |
public BaseDescr lhs_unary() throws RecognitionException { BaseDescr d = null; BaseDescr u = null; FromDescr fm = null; AccumulateDescr ac = null; CollectDescr cs = null; d = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1218:4: ( ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1218:4: ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1218:4: ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' ) int alt44=5; switch ( input.LA(1) ) { case 70: alt44=1; break; case 71: alt44=2; break; case 72: alt44=3; break; case ID: alt44=4; break; case LEFT_PAREN: alt44=5; break; default: if (backtracking>0) {failed=true; return d;} NoViableAltException nvae = new NoViableAltException("1218:4: ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' )", 44, 0, input); throw nvae; } switch (alt44) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1218:6: ( lhs_exist )=>u= lhs_exist { pushFollow(FOLLOW_lhs_exist_in_lhs_unary2852); u=lhs_exist(); _fsp--; if (failed) return d; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1219:5: ( lhs_not )=>u= lhs_not { pushFollow(FOLLOW_lhs_not_in_lhs_unary2860); u=lhs_not(); _fsp--; if (failed) return d; } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1220:5: ( lhs_eval )=>u= lhs_eval { pushFollow(FOLLOW_lhs_eval_in_lhs_unary2868); u=lhs_eval(); _fsp--; if (failed) return d; } break; case 4 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1221:5: ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? { pushFollow(FOLLOW_lhs_column_in_lhs_unary2876); u=lhs_column(); _fsp--; if (failed) return d; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1221:18: ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? int alt43=4; int LA43_0 = input.LA(1); if ( (LA43_0==47) ) { switch ( input.LA(2) ) { case 52: alt43=3; break; case 48: alt43=2; break; case ID: alt43=1; break; } } switch (alt43) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1222:14: ( ( from_statement ) )=> (fm= from_statement ) { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1222:14: (fm= from_statement ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1222:15: fm= from_statement { pushFollow(FOLLOW_from_statement_in_lhs_unary2896); fm=from_statement(); _fsp--; if (failed) return d; if ( backtracking==0 ) { fm.setColumn((ColumnDescr) u); u=fm; } } } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1223:14: ( ( accumulate_statement ) )=> (ac= accumulate_statement ) { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1223:14: (ac= accumulate_statement ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1223:15: ac= accumulate_statement { pushFollow(FOLLOW_accumulate_statement_in_lhs_unary2918); ac=accumulate_statement(); _fsp--; if (failed) return d; if ( backtracking==0 ) { ac.setResultColumn((ColumnDescr) u); u=ac; } } } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1224:14: ( ( collect_statement ) )=> (cs= collect_statement ) { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1224:14: (cs= collect_statement ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1224:15: cs= collect_statement { pushFollow(FOLLOW_collect_statement_in_lhs_unary2939); cs=collect_statement(); _fsp--; if (failed) return d; if ( backtracking==0 ) { cs.setResultColumn((ColumnDescr) u); u=cs; } } } break; } } break; case 5 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1226:5: '(' u= lhs ')' { match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_unary2962); if (failed) return d; pushFollow(FOLLOW_lhs_in_lhs_unary2966); u=lhs(); _fsp--; if (failed) return d; match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_unary2968); if (failed) return d; } break; } if ( backtracking==0 ) { d = u; } pushFollow(FOLLOW_opt_semicolon_in_lhs_unary2978); opt_semicolon(); _fsp--; if (failed) return d; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/63bc7036e62ae854cec463d59712c173f74e984c/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3360,
16198,
8499,
67,
318,
814,
1435,
1216,
9539,
288,
6647,
3360,
16198,
302,
273,
446,
31,
3639,
3360,
16198,
582,
273,
446,
31,
3639,
6338,
16198,
10940,
273,
446,
31,
3639,
15980,
31284,
16198,
1721,
273,
446,
31,
3639,
9302,
16198,
2873,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
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,
2138,
2643,
30,
24,
30,
261,
261,
261,
8499,
67,
7398,
13216,
89,
33,
8499,
67,
7398,
571,
261,
8499,
67,
902,
13216,
89,
33,
8499,
67,
902,
571,
261,
8499,
67,
8622,
13216,
89,
33,
8499,
67,
8622,
571,
261,
8499,
67,
2827,
261,
261,
261,
628,
67,
11516,
262,
13216,
261,
628,
67,
11516,
262,
571,
261,
261,
21757,
67,
11516,
262,
13216,
261,
21757,
67,
11516,
262,
571,
261,
261,
3274,
67,
11516,
262,
13216,
261,
3274,
67,
11516,
262,
7851,
13216,
89,
33,
8499,
67,
2827,
261,
261,
261,
628,
67,
11516,
262,
13216,
261,
25089,
33,
628,
67,
11516,
262,
571,
261,
261,
21757,
67,
11516,
262,
13216,
261,
1077,
33,
21757,
67,
11516,
262,
571,
261,
261,
3274,
67,
11516,
262,
13216,
261,
2143,
33,
3274,
67,
11516,
262,
7851,
571,
7321,
582,
33,
8499,
5777,
262,
2153,
67,
12000,
17280,
262,
5411,
368,
463,
31027,
14915,
1695,
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,
3360,
16198,
8499,
67,
318,
814,
1435,
1216,
9539,
288,
6647,
3360,
16198,
302,
273,
446,
31,
3639,
3360,
16198,
582,
273,
446,
31,
3639,
6338,
16198,
10940,
273,
446,
31,
3639,
15980,
31284,
16198,
1721,
273,
446,
31,
3639,
9302,
16198,
2873,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
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,
2138,
2643,
30,
24,
30,
261,
261,
261,
8499,
67,
7398,
13216,
89,
33,
8499,
67,
7398,
571,
261,
8499,
67,
902,
13216,
89,
33,
8499,
2
] |
||
final FieldValue field = new MockField( "cheddar" );
|
final FieldValue field = FieldFactory.getFieldValue( "cheddar" );
|
public void testReturnValueConstraintAssertObject() throws Exception { final ReteooWorkingMemory workingMemory = new ReteooWorkingMemory( 1, (ReteooRuleBase) RuleBaseFactory.newRuleBase() ); final Rule rule = new Rule( "test-rule" ); final PropagationContext context = new PropagationContextImpl( 0, PropagationContext.ASSERTION, null, null ); final MockObjectSource source = new MockObjectSource( 15 ); final FieldExtractor extractor = new ClassFieldExtractor( Cheese.class, "type" ); final FieldValue field = new MockField( "cheddar" ); final Evaluator evaluator = ValueType.OBJECT_TYPE.getEvaluator( Operator.EQUAL ); final LiteralConstraint constraint = new LiteralConstraint( extractor, evaluator, field ); final AlphaNode alphaNode = new AlphaNode( 2, constraint, source ); final MockObjectSink sink = new MockObjectSink(); alphaNode.addObjectSink( sink ); final Cheese cheddar = new Cheese( "cheddar", 5 ); final DefaultFactHandle f0 = (DefaultFactHandle) workingMemory.assertObject( cheddar ); assertLength( 0, sink.getAsserted() ); // object should assert as it passes text alphaNode.assertObject( f0, context, workingMemory ); assertLength( 1, sink.getAsserted() ); final Object[] list = (Object[]) sink.getAsserted().get( 0 ); assertSame( cheddar, workingMemory.getObject( (DefaultFactHandle) list[0] ) ); final Cheese stilton = new Cheese( "stilton", 6 ); f0.setObject( stilton ); sink.getAsserted().clear(); // object should not assert as it does not pass text alphaNode.assertObject( f0, context, workingMemory ); assertLength( 0, sink.getAsserted() ); }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/47fb4db33a78ddc4cbf4c3f1ffb0a0e7f1ca2109/AlphaNodeTest.java/clean/drools-core/src/test/java/org/drools/reteoo/AlphaNodeTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
19092,
5806,
8213,
921,
1435,
1216,
1185,
288,
3639,
727,
17100,
4361,
83,
14836,
6031,
5960,
6031,
273,
394,
17100,
4361,
83,
14836,
6031,
12,
404,
16,
28524,
6647,
261,
7055,
4361,
83,
2175,
2171,
13,
6781,
2171,
1733,
18,
2704,
2175,
2171,
1435,
11272,
3639,
727,
6781,
1720,
273,
394,
6781,
12,
315,
3813,
17,
5345,
6,
11272,
3639,
727,
1186,
9095,
367,
1042,
819,
273,
394,
1186,
9095,
367,
1042,
2828,
12,
374,
16,
28524,
4202,
1186,
9095,
367,
1042,
18,
8423,
11539,
1146,
16,
28524,
4202,
446,
16,
28524,
4202,
446,
11272,
3639,
727,
7867,
921,
1830,
1084,
273,
394,
7867,
921,
1830,
12,
4711,
11272,
3639,
727,
2286,
10958,
14031,
273,
394,
1659,
974,
10958,
12,
22682,
3392,
18,
1106,
16,
4766,
21394,
315,
723,
6,
11272,
3639,
727,
2286,
620,
652,
273,
2286,
1733,
18,
588,
13559,
12,
315,
2049,
72,
297,
6,
11272,
3639,
727,
31956,
18256,
273,
31718,
18,
9422,
67,
2399,
18,
588,
15876,
12,
11097,
18,
12853,
11272,
3639,
727,
14392,
5806,
4954,
273,
394,
14392,
5806,
12,
14031,
16,
28524,
565,
18256,
16,
28524,
565,
652,
11272,
3639,
727,
24277,
907,
4190,
907,
273,
394,
24277,
907,
12,
576,
16,
4766,
10402,
4954,
16,
4766,
10402,
1084,
11272,
3639,
727,
7867,
921,
11326,
9049,
273,
394,
7867,
921,
11326,
5621,
3639,
4190,
907,
18,
1289,
921,
11326,
12,
9049,
11272,
3639,
727,
22682,
3392,
462,
329,
72,
297,
273,
394,
22682,
3392,
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,
1842,
19092,
5806,
8213,
921,
1435,
1216,
1185,
288,
3639,
727,
17100,
4361,
83,
14836,
6031,
5960,
6031,
273,
394,
17100,
4361,
83,
14836,
6031,
12,
404,
16,
28524,
6647,
261,
7055,
4361,
83,
2175,
2171,
13,
6781,
2171,
1733,
18,
2704,
2175,
2171,
1435,
11272,
3639,
727,
6781,
1720,
273,
394,
6781,
12,
315,
3813,
17,
5345,
6,
11272,
3639,
727,
1186,
9095,
367,
1042,
819,
273,
394,
1186,
9095,
367,
1042,
2828,
12,
374,
16,
28524,
4202,
1186,
9095,
367,
1042,
18,
8423,
11539,
1146,
16,
28524,
4202,
446,
16,
28524,
4202,
446,
11272,
3639,
727,
7867,
921,
1830,
1084,
273,
394,
7867,
921,
1830,
12,
4711,
11272,
3639,
727,
2286,
10958,
14031,
273,
2
] |
protected void setEnumeration (Vector enumeration) throws InvalidDatatypeValueException{ if ( enumeration != null ) { fEnumSize = enumeration.size(); fEnumeration = new int[fEnumSize][]; for ( int i=0; i<fEnumSize; i++ ) { try { fEnumeration[i] = parse((String)enumeration.elementAt(i), null); } catch ( RuntimeException e ) { throw new InvalidDatatypeValueException(e.getMessage()); } } }}
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/b11b0b374d7a225c2ca5e97950e4b7087db8854d/DateTimeValidator.java/clean/src/org/apache/xerces/impl/v2/datatypes/DateTimeValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
444,
21847,
261,
5018,
16836,
13,
1216,
1962,
20228,
9738,
95,
4202,
309,
261,
16836,
480,
446,
262,
288,
1171,
284,
3572,
1225,
273,
16836,
18,
1467,
5621,
3639,
284,
21847,
273,
394,
509,
63,
74,
3572,
1225,
6362,
15533,
3639,
364,
261,
509,
277,
33,
20,
31,
277,
32,
74,
3572,
1225,
31,
277,
9904,
262,
288,
5411,
775,
288,
7734,
284,
21847,
63,
77,
65,
273,
1109,
12443,
780,
13,
7924,
7067,
18,
2956,
861,
12,
77,
3631,
446,
1769,
5411,
289,
5411,
1044,
261,
3235,
425,
262,
288,
7734,
604,
394,
1962,
20228,
9738,
12,
73,
18,
24906,
10663,
5411,
289,
3639,
289,
565,
10523,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
444,
21847,
261,
5018,
16836,
13,
1216,
1962,
20228,
9738,
95,
4202,
309,
261,
16836,
480,
446,
262,
288,
1171,
284,
3572,
1225,
273,
16836,
18,
1467,
5621,
3639,
284,
21847,
273,
394,
509,
63,
74,
3572,
1225,
6362,
15533,
3639,
364,
261,
509,
277,
33,
20,
31,
277,
32,
74,
3572,
1225,
31,
277,
9904,
262,
288,
5411,
775,
288,
7734,
284,
21847,
63,
77,
65,
273,
1109,
12443,
780,
13,
7924,
7067,
18,
2956,
861,
12,
77,
3631,
446,
1769,
5411,
289,
5411,
1044,
261,
3235,
425,
262,
288,
7734,
604,
394,
1962,
20228,
9738,
12,
73,
18,
24906,
10663,
5411,
289,
3639,
289,
565,
10523,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { }
|
if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), this, pageContext)) != null) setStyleClass(string);
|
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accesskey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnchange((String) evalAttr("onchange", getOnchangeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnfocus((String) evalAttr("onfocus", getOnfocusExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTabindex((String) evalAttr("tabindex", getTabindexExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } }
|
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/022bd23c954cf673e53731849d562b3c295473f1/ELCancelTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELCancelTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
856,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
8853,
12443,
12,
5507,
13,
5302,
3843,
2932,
9278,
3113,
336,
8853,
4742,
9334,
4766,
5411,
3411,
18,
1106,
13,
2934,
13491,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
22131,
27065,
12443,
780,
13,
5302,
3843,
2932,
265,
27065,
3113,
30070,
27065,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
22131,
3427,
12443,
780,
13,
5302,
3843,
2932,
265,
3427,
3113,
30070,
3427,
4742,
9334,
4766,
1850,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
22131,
7475,
12443,
780,
13,
5302,
3843,
2932,
265,
7475,
3113,
30070,
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,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
856,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
2
] |
match_code.append("ATmatchTerm((ATerm)arg, " + pattern); Iterator fields = type.altFieldIterator(alt.getId()); while (fields.hasNext()) { fields.next(); match_code.append(", NULL"); } match_code.append(")");
|
match_code.append("ATmatchTerm((ATerm)arg, " + pattern); Iterator fields = type.altFieldIterator(alt.getId()); while (fields.hasNext()) { fields.next(); match_code.append(", NULL"); } match_code.append(")");
|
private void genIsAlt(Type type, Alternative alt) { String type_name = buildTypeName(type); String decl = "inline ATbool " + buildIsAltName(type, alt) + "(" + type_name + " arg)"; String pattern; StringBuffer match_code = new StringBuffer(); boolean contains_placeholder = alt.containsPlaceholder(); int alt_count = type.getAlternativeCount(); boolean inverted = false; pattern = prefix + "pattern" + StringConversions.makeIdentifier(type.getId()) + StringConversions.makeCapitalizedIdentifier(alt.getId()); match_code.append("ATmatchTerm((ATerm)arg, " + pattern); Iterator fields = type.altFieldIterator(alt.getId()); while (fields.hasNext()) { fields.next(); match_code.append(", NULL"); } match_code.append(")"); hprintln(decl + ";"); printFoldOpen(decl); println(decl); println("{"); if (false && inverted) { println(" return !(" + match_code + ");"); } else if (false && alt_count != 1 && !contains_placeholder) { println(" return " + match_code + ";"); } else { AlternativeList alts_left = type.getAlternatives(); alts_left.remove(alt); alt_count = alts_left.size(); int pat_type = alt.getPatternType(); alts_left.keepByType(pat_type); if (alts_left.size() != alt_count) { println( " if (ATgetType((ATerm)arg) != " + getATermTypeName(pat_type) + ") {"); println(" return ATfalse;"); println(" }"); } if (pat_type == ATerm.APPL) { if (alt instanceof ATermAppl) { AFun afun = ((ATermAppl) alt.buildMatchPattern()).getAFun(); alt_count = alts_left.size(); alts_left.keepByAFun(afun); if (alts_left.size() < alt_count) { println( " if (ATgetAFun((ATermAppl)arg) != ATgetAFun(" + pattern + ")) {"); println(" return ATfalse;"); println(" }"); } } } else if (pat_type == ATerm.LIST) { ATermList matchPattern = (ATermList) alt.buildMatchPattern(); if (matchPattern.isEmpty()) { alts_left.clear(); println(" if (!ATisEmpty((ATermList)arg)) {"); println(" return ATfalse;"); println(" }"); } else if ( !matchPattern.equals(matchPattern.getFactory().parse("[<list>]"))) { alts_left.removeEmptyList(); println(" if (ATisEmpty((ATermList)arg)) {"); println(" return ATfalse;"); println(" }"); } } if (alts_left.size() == 0) { println("#ifndef DISABLE_DYNAMIC_CHECKING"); println(" assert(arg != NULL);"); println(" assert(" + match_code + ");"); println("#endif"); println(" return ATtrue;"); } else { println(" {"); println(" static ATerm last_arg = NULL;"); println(" static int last_gc = -1;"); println(" static ATbool last_result;"); println(); println(" assert(arg != NULL);"); println(); println( " if (last_gc != ATgetGCCount() || " + "(ATerm)arg != last_arg) {"); println(" last_arg = (ATerm)arg;"); println(" last_result = " + match_code + ";"); println(" last_gc = ATgetGCCount();"); println(" }"); println(); println(" return last_result;"); println(" }"); } } println("}"); printFoldClose(); }
|
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/dfc73e34bff6e386ff1bb2959e83fe3849358bb0/APIGenerator.java/buggy/apigen/src/apigen/gen/c/APIGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3157,
2520,
10655,
12,
559,
618,
16,
21498,
1535,
3770,
13,
288,
3639,
514,
618,
67,
529,
273,
1361,
7947,
12,
723,
1769,
3639,
514,
3496,
273,
5411,
315,
10047,
14464,
6430,
315,
397,
1361,
2520,
10655,
461,
12,
723,
16,
3770,
13,
397,
12452,
397,
618,
67,
529,
397,
315,
1501,
2225,
31,
3639,
514,
1936,
31,
3639,
6674,
845,
67,
710,
273,
394,
6674,
5621,
3639,
1250,
1914,
67,
12988,
273,
3770,
18,
12298,
14038,
5621,
3639,
509,
3770,
67,
1883,
273,
618,
18,
588,
21144,
1380,
5621,
3639,
1250,
18150,
273,
629,
31,
3639,
1936,
273,
5411,
1633,
7734,
397,
315,
4951,
6,
7734,
397,
514,
29287,
18,
6540,
3004,
12,
723,
18,
26321,
10756,
7734,
397,
514,
29287,
18,
6540,
4664,
7053,
1235,
3004,
12,
2390,
18,
26321,
10663,
3639,
845,
67,
710,
18,
6923,
2932,
789,
1916,
4065,
12443,
789,
1035,
13,
3175,
16,
315,
397,
1936,
1769,
3639,
4498,
1466,
273,
618,
18,
2390,
974,
3198,
12,
2390,
18,
26321,
10663,
3639,
1323,
261,
2821,
18,
5332,
2134,
10756,
288,
5411,
1466,
18,
4285,
5621,
5411,
845,
67,
710,
18,
6923,
2932,
16,
3206,
8863,
3639,
289,
3639,
845,
67,
710,
18,
6923,
2932,
2225,
1769,
3639,
366,
8222,
12,
8840,
397,
11430,
1769,
3639,
1172,
15592,
3678,
12,
8840,
1769,
3639,
3785,
12,
8840,
1769,
3639,
3785,
2932,
95,
8863,
3639,
309,
261,
5743,
597,
18150,
13,
288,
5411,
3785,
2932,
225,
327,
401,
2932,
397,
845,
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,
3157,
2520,
10655,
12,
559,
618,
16,
21498,
1535,
3770,
13,
288,
3639,
514,
618,
67,
529,
273,
1361,
7947,
12,
723,
1769,
3639,
514,
3496,
273,
5411,
315,
10047,
14464,
6430,
315,
397,
1361,
2520,
10655,
461,
12,
723,
16,
3770,
13,
397,
12452,
397,
618,
67,
529,
397,
315,
1501,
2225,
31,
3639,
514,
1936,
31,
3639,
6674,
845,
67,
710,
273,
394,
6674,
5621,
3639,
1250,
1914,
67,
12988,
273,
3770,
18,
12298,
14038,
5621,
3639,
509,
3770,
67,
1883,
273,
618,
18,
588,
21144,
1380,
5621,
3639,
1250,
18150,
273,
629,
31,
3639,
1936,
273,
5411,
1633,
7734,
397,
315,
4951,
6,
7734,
397,
514,
29287,
18,
6540,
3004,
12,
723,
18,
2
] |
viewer.expandAll(); }
|
Object[] expanded = viewer.getExpandedElements(); setContentProvider(new ViewContentProvider(file, expanded)); }
|
public void run() { viewer.expandAll(); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/beb6ead6ac6d5eb5ee23b7420bc6bf0f95524fc8/DOMAST.java/buggy/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/DOMAST/DOMAST.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
540,
202,
25256,
18,
12320,
1595,
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,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
540,
202,
25256,
18,
12320,
1595,
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,
-100,
-100
] |
int index = KoLCharacter.battleSkillIDs.indexOf( "skill shake hands" ); if ( index != -1 ) { KoLCharacter.battleSkillIDs.remove( index ); KoLCharacter.battleSkillNames.remove( index ); availableSkills.remove( handshake ); combatSkills.remove( handshake ); }
|
KoLCharacter.battleSkillNames.remove( "skill shake hands" ); availableSkills.remove( handshake ); combatSkills.remove( handshake );
|
public static void addJoybuzzer() { UseSkillRequest handshake = new UseSkillRequest( getClient(), "Shake Hands", "", 1 ); if ( getEquipment( OFFHAND ) != null && getEquipment( OFFHAND ).getItemID() == JOYBUZZER.getItemID() ) { if ( !KoLCharacter.battleSkillIDs.contains( "skill shake hands" ) ) { KoLCharacter.battleSkillIDs.add( "skill shake hands" ); KoLCharacter.battleSkillNames.add( "Skill: Shake Hands" ); availableSkills.add( handshake ); combatSkills.add( handshake ); } } else { int index = KoLCharacter.battleSkillIDs.indexOf( "skill shake hands" ); if ( index != -1 ) { KoLCharacter.battleSkillIDs.remove( index ); KoLCharacter.battleSkillNames.remove( index ); availableSkills.remove( handshake ); combatSkills.remove( handshake ); } } }
|
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/a650e856112055897821459dd0ced956ce3edc51/KoLCharacter.java/clean/src/net/sourceforge/kolmafia/KoLCharacter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
527,
46,
13372,
70,
9510,
264,
1435,
202,
95,
202,
202,
3727,
9030,
691,
11942,
273,
394,
2672,
9030,
691,
12,
7635,
9334,
315,
1555,
911,
2841,
87,
3113,
23453,
404,
11272,
202,
202,
430,
261,
4774,
372,
11568,
12,
17511,
12346,
262,
480,
446,
597,
4774,
372,
11568,
12,
17511,
12346,
262,
18,
588,
1180,
734,
1435,
422,
804,
51,
61,
3000,
27096,
654,
18,
588,
1180,
734,
1435,
262,
202,
202,
95,
1082,
202,
430,
261,
401,
47,
83,
48,
7069,
18,
70,
4558,
298,
9030,
5103,
18,
12298,
12,
315,
7771,
737,
699,
911,
948,
87,
6,
262,
262,
1082,
202,
95,
9506,
202,
47,
83,
48,
7069,
18,
70,
4558,
298,
9030,
5103,
18,
1289,
12,
315,
7771,
737,
699,
911,
948,
87,
6,
11272,
9506,
202,
47,
83,
48,
7069,
18,
70,
4558,
298,
9030,
1557,
18,
1289,
12,
315,
9030,
30,
2638,
911,
2841,
87,
6,
11272,
9506,
202,
5699,
20057,
18,
1289,
12,
11942,
11272,
9506,
202,
9301,
270,
20057,
18,
1289,
12,
11942,
11272,
1082,
202,
97,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
474,
770,
273,
1475,
83,
48,
7069,
18,
70,
4558,
298,
9030,
5103,
18,
31806,
12,
315,
7771,
737,
699,
911,
948,
87,
6,
11272,
1082,
202,
430,
261,
770,
480,
300,
21,
262,
1082,
202,
95,
9506,
202,
47,
83,
48,
7069,
18,
70,
4558,
298,
9030,
5103,
18,
4479,
12,
770,
11272,
9506,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
527,
46,
13372,
70,
9510,
264,
1435,
202,
95,
202,
202,
3727,
9030,
691,
11942,
273,
394,
2672,
9030,
691,
12,
7635,
9334,
315,
1555,
911,
2841,
87,
3113,
23453,
404,
11272,
202,
202,
430,
261,
4774,
372,
11568,
12,
17511,
12346,
262,
480,
446,
597,
4774,
372,
11568,
12,
17511,
12346,
262,
18,
588,
1180,
734,
1435,
422,
804,
51,
61,
3000,
27096,
654,
18,
588,
1180,
734,
1435,
262,
202,
202,
95,
1082,
202,
430,
261,
401,
47,
83,
48,
7069,
18,
70,
4558,
298,
9030,
5103,
18,
12298,
12,
315,
7771,
737,
699,
911,
948,
87,
6,
262,
262,
1082,
202,
95,
9506,
202,
47,
83,
48,
7069,
18,
70,
4558,
2
] |
strokeWeight = properties.getFloatAttribute("stroke-width", 1);
|
protected void getColors(XMLElement properties){ // opacity for postscript-derived things like svg affects both stroke and fill //if (properties.hasAttribute("opacity")) { opacity = properties.getFloatAttribute("opacity", 1); //} int opacityMask = ((int) (opacity * 255)) << 24; String strokeText = properties.getStringAttribute("stroke", "none"); if (strokeText.equals("none")) { } else if (strokeText.startsWith("#")) { stroke = true; strokeColor = opacityMask | (Integer.parseInt(strokeText.substring(1), 16)) & 0xFFFFFF; } else if (strokeText.startsWith("url(#")) { strokeName = strokeText.substring(5, strokeText.length() - 1); Object strokeObject = table.get(strokeName); if (strokeObject instanceof Gradient) { strokeGradient = (Gradient) strokeObject; strokeGradientPaint = calcGradientPaint(strokeGradient); //, opacity); } else { System.err.println("url " + strokeName + " refers to unexpected data"); } } // fill defaults to black (though stroke defaults to "none") // http://www.w3.org/TR/SVG/painting.html#FillProperties String fillText = properties.getStringAttribute("fill", "#000000"); if (fillText.equals("none")) { } else if (fillText.startsWith("#")) { fill = true; fillColor = opacityMask | (Integer.parseInt(fillText.substring(1), 16)) & 0xFFFFFF; //System.out.println("hex for fill is " + PApplet.hex(fillColor)); } else if (fillText.startsWith("url(#")) { fillName = fillText.substring(5, fillText.length() - 1); //PApplet.println("looking for " + fillName); Object fillObject = table.get(fillName); //PApplet.println("found " + fillObject); if (fillObject instanceof Gradient) { fill = true; fillGradient = (Gradient) fillObject; fillGradientPaint = calcGradientPaint(fillGradient); //, opacity); //PApplet.println("got filla " + fillObject); } else { System.err.println("url " + fillName + " refers to unexpected data"); } } //if (properties.hasAttribute("stroke-width")){ //strokeWeight = properties.getFloatAttribute("stroke-width"); //} strokeWeight = properties.getFloatAttribute("stroke-width", 1); }
|
8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/4e55132b4bfb7035202f80fa972d282ab5c4773e/SVG.java/buggy/candy/src/processing/candy/SVG.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
918,
336,
12570,
12,
15223,
1790,
15329,
13491,
368,
12636,
364,
1603,
4263,
17,
765,
2950,
9198,
3007,
9804,
30058,
3937,
11040,
471,
3636,
5411,
368,
430,
261,
4738,
18,
5332,
1499,
2932,
19515,
6,
3719,
288,
5411,
12636,
273,
1790,
18,
588,
4723,
1499,
2932,
19515,
3113,
404,
1769,
5411,
19363,
5411,
509,
12636,
5796,
273,
14015,
474,
13,
261,
19515,
380,
4561,
3719,
2296,
4248,
31,
13491,
514,
11040,
1528,
273,
1790,
18,
588,
780,
1499,
2932,
16181,
3113,
315,
6102,
8863,
5411,
309,
261,
16181,
1528,
18,
14963,
2932,
6102,
6,
3719,
288,
5411,
289,
469,
309,
261,
16181,
1528,
18,
17514,
1190,
2932,
17133,
3719,
288,
7734,
11040,
273,
638,
31,
7734,
11040,
2957,
273,
12636,
5796,
571,
10792,
261,
4522,
18,
2670,
1702,
12,
16181,
1528,
18,
28023,
12,
21,
3631,
2872,
3719,
473,
374,
6356,
8998,
31,
5411,
289,
469,
309,
261,
16181,
1528,
18,
17514,
1190,
2932,
718,
12,
17133,
3719,
288,
7734,
11040,
461,
273,
11040,
1528,
18,
28023,
12,
25,
16,
11040,
1528,
18,
2469,
1435,
300,
404,
1769,
7734,
1033,
11040,
921,
273,
1014,
18,
588,
12,
16181,
461,
1769,
7734,
309,
261,
16181,
921,
1276,
25846,
13,
288,
10792,
11040,
15651,
273,
261,
15651,
13,
11040,
921,
31,
10792,
11040,
15651,
12699,
273,
7029,
15651,
12699,
12,
16181,
15651,
1769,
368,
16,
12636,
1769,
7734,
289,
469,
288,
10792,
2332,
18,
370,
18,
8222,
2932,
718,
315,
397,
11040,
461,
397,
315,
21368,
358,
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,
4750,
918,
336,
12570,
12,
15223,
1790,
15329,
13491,
368,
12636,
364,
1603,
4263,
17,
765,
2950,
9198,
3007,
9804,
30058,
3937,
11040,
471,
3636,
5411,
368,
430,
261,
4738,
18,
5332,
1499,
2932,
19515,
6,
3719,
288,
5411,
12636,
273,
1790,
18,
588,
4723,
1499,
2932,
19515,
3113,
404,
1769,
5411,
19363,
5411,
509,
12636,
5796,
273,
14015,
474,
13,
261,
19515,
380,
4561,
3719,
2296,
4248,
31,
13491,
514,
11040,
1528,
273,
1790,
18,
588,
780,
1499,
2932,
16181,
3113,
315,
6102,
8863,
5411,
309,
261,
16181,
1528,
18,
14963,
2932,
6102,
6,
3719,
288,
5411,
289,
469,
309,
261,
16181,
1528,
18,
17514,
1190,
2932,
17133,
3719,
288,
7734,
11040,
273,
638,
31,
7734,
11040,
2
] |
|
if (version >= CUSTOM_COMPRESS_VERSION && this.decompress) { try { this.codec = (CompressionCodec) ReflectionUtils.newInstance(conf.getClassByName(Text.readString(in)), conf); } catch (ClassNotFoundException cnfe) { cnfe.printStackTrace(); throw new IllegalArgumentException("Unknown codec: " + cnfe);
|
if (decompress) { if (version >= CUSTOM_COMPRESS_VERSION) { String codecClassname = Text.readString(in); try { Class codecClass = conf.getClassByName(codecClassname); this.codec = (CompressionCodec) ReflectionUtils.newInstance(codecClass, conf); } catch (ClassNotFoundException cnfe) { throw new IllegalArgumentException("Unknown codec: " + codecClassname, cnfe); } } else { codec = new DefaultCodec();
|
private void init() throws IOException { byte[] versionBlock = new byte[VERSION.length]; in.readFully(versionBlock); if ((versionBlock[0] != VERSION[0]) || (versionBlock[1] != VERSION[1]) || (versionBlock[2] != VERSION[2])) throw new IOException(file + " not a SequenceFile"); // Set 'version' version = versionBlock[3]; if (version > VERSION[3]) throw new VersionMismatchException(VERSION[3], version); if (version < BLOCK_COMPRESS_VERSION) { UTF8 className = new UTF8(); className.readFields(in); // read key class name this.keyClass = WritableName.getClass(className.toString(), conf); className.readFields(in); // read val class name this.valClass = WritableName.getClass(className.toString(), conf); } else { this.keyClass = WritableName.getClass(Text.readString(in), conf); this.valClass = WritableName.getClass(Text.readString(in), conf); } if (version > 2) { // if version > 2 this.decompress = in.readBoolean(); // is compressed? } if (version >= BLOCK_COMPRESS_VERSION) { // if version >= 4 this.blockCompressed = in.readBoolean(); // is block-compressed? } // if version >= 5 // setup the compression codec if (version >= CUSTOM_COMPRESS_VERSION && this.decompress) { try { this.codec = (CompressionCodec) ReflectionUtils.newInstance(conf.getClassByName(Text.readString(in)), conf); } catch (ClassNotFoundException cnfe) { cnfe.printStackTrace(); throw new IllegalArgumentException("Unknown codec: " + cnfe); } } if (version > 1) { // if version > 1 in.readFully(sync); // read sync bytes } // Initialize valBuffer = new DataInputBuffer(); if (decompress) { valInFilter = this.codec.createInputStream(valBuffer); valIn = new DataInputStream(new BufferedInputStream(valInFilter)); } else { valIn = new DataInputStream(new BufferedInputStream(valBuffer)); } if (blockCompressed) { keyLenBuffer = new DataInputBuffer(); keyBuffer = new DataInputBuffer(); valLenBuffer = new DataInputBuffer(); keyLenInFilter = this.codec.createInputStream(keyLenBuffer); keyLenIn = new DataInputStream(new BufferedInputStream(keyLenInFilter)); keyInFilter = this.codec.createInputStream(keyBuffer); keyIn = new DataInputStream(new BufferedInputStream(keyInFilter)); valLenInFilter = this.codec.createInputStream(valLenBuffer); valLenIn = new DataInputStream(new BufferedInputStream(valLenInFilter)); } lazyDecompress = conf.getBoolean("io.seqfile.lazydecompress", true); }
|
48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/f10bcd31ee6f78b5b43bb3febad96350da446534/SequenceFile.java/buggy/src/java/org/apache/hadoop/io/SequenceFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
1435,
1216,
1860,
288,
1377,
1160,
8526,
1177,
1768,
273,
394,
1160,
63,
5757,
18,
2469,
15533,
1377,
316,
18,
896,
16999,
12,
1589,
1768,
1769,
1377,
309,
14015,
1589,
1768,
63,
20,
65,
480,
8456,
63,
20,
5717,
747,
1850,
261,
1589,
1768,
63,
21,
65,
480,
8456,
63,
21,
5717,
747,
1850,
261,
1589,
1768,
63,
22,
65,
480,
8456,
63,
22,
22643,
3639,
604,
394,
1860,
12,
768,
397,
315,
486,
279,
8370,
812,
8863,
1377,
368,
1000,
296,
1589,
11,
1377,
1177,
273,
1177,
1768,
63,
23,
15533,
1377,
309,
261,
1589,
405,
8456,
63,
23,
5717,
3639,
604,
394,
4049,
16901,
503,
12,
5757,
63,
23,
6487,
1177,
1769,
1377,
309,
261,
1589,
411,
14073,
67,
4208,
22526,
67,
5757,
13,
288,
3639,
6380,
28,
2658,
273,
394,
6380,
28,
5621,
7734,
2658,
18,
896,
2314,
12,
267,
1769,
10402,
368,
855,
498,
667,
508,
3639,
333,
18,
856,
797,
273,
14505,
461,
18,
588,
797,
12,
12434,
18,
10492,
9334,
2195,
1769,
7734,
2658,
18,
896,
2314,
12,
267,
1769,
10402,
368,
855,
1244,
667,
508,
3639,
333,
18,
1125,
797,
273,
14505,
461,
18,
588,
797,
12,
12434,
18,
10492,
9334,
2195,
1769,
1377,
289,
469,
288,
3639,
333,
18,
856,
797,
273,
14505,
461,
18,
588,
797,
12,
1528,
18,
896,
780,
12,
267,
3631,
2195,
1769,
3639,
333,
18,
1125,
797,
273,
14505,
461,
18,
588,
797,
12,
1528,
18,
896,
780,
12,
267,
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,
1208,
1435,
1216,
1860,
288,
1377,
1160,
8526,
1177,
1768,
273,
394,
1160,
63,
5757,
18,
2469,
15533,
1377,
316,
18,
896,
16999,
12,
1589,
1768,
1769,
1377,
309,
14015,
1589,
1768,
63,
20,
65,
480,
8456,
63,
20,
5717,
747,
1850,
261,
1589,
1768,
63,
21,
65,
480,
8456,
63,
21,
5717,
747,
1850,
261,
1589,
1768,
63,
22,
65,
480,
8456,
63,
22,
22643,
3639,
604,
394,
1860,
12,
768,
397,
315,
486,
279,
8370,
812,
8863,
1377,
368,
1000,
296,
1589,
11,
1377,
1177,
273,
1177,
1768,
63,
23,
15533,
1377,
309,
261,
1589,
405,
8456,
63,
23,
5717,
3639,
604,
394,
4049,
16901,
503,
12,
5757,
63,
23,
6487,
1177,
1769,
1377,
2
] |
disabledImage.dispose();
|
void dispose() { animatedImage.dispose(); disabledImage.dispose(); JobProgressManager.getInstance().removeListener(listener); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/cc72ec84df4d93cc632406d8e555ffcc65f0b1b1/AnimationItem.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
15825,
1435,
288,
202,
202,
304,
17275,
2040,
18,
2251,
4150,
5621,
202,
202,
9278,
2040,
18,
2251,
4150,
5621,
202,
202,
2278,
5491,
1318,
18,
588,
1442,
7675,
4479,
2223,
12,
12757,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
15825,
1435,
288,
202,
202,
304,
17275,
2040,
18,
2251,
4150,
5621,
202,
202,
9278,
2040,
18,
2251,
4150,
5621,
202,
202,
2278,
5491,
1318,
18,
588,
1442,
7675,
4479,
2223,
12,
12757,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
public void removeKeyEventPostProcessor(KeyEventPostProcessor postProcessor)
|
public void removeKeyEventPostProcessor (KeyEventPostProcessor postProcessor)
|
public void removeKeyEventPostProcessor(KeyEventPostProcessor postProcessor) { keyEventPostProcessors.remove(postProcessor); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/KeyboardFocusManager.java/buggy/core/src/classpath/java/java/awt/KeyboardFocusManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
653,
1133,
3349,
5164,
261,
653,
1133,
3349,
5164,
1603,
5164,
13,
225,
288,
565,
498,
1133,
3349,
18155,
18,
4479,
12,
2767,
5164,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
653,
1133,
3349,
5164,
261,
653,
1133,
3349,
5164,
1603,
5164,
13,
225,
288,
565,
498,
1133,
3349,
18155,
18,
4479,
12,
2767,
5164,
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
] |
int item_length,
|
/* int item_length, */
|
public byte[] isc_dsql_sql_info(isc_stmt_handle stmt_handle, int item_length, byte[] items, int buffer_length/*, byte[] buffer*/) throws GDSException { isc_stmt_handle_impl stmt = (isc_stmt_handle_impl) stmt_handle; isc_db_handle_impl db = stmt.rsr_rdb; synchronized (db) { try { if (log != null) log.debug("op_info_sql "); db.out.writeInt(op_info_sql); db.out.writeInt(stmt.rsr_id); db.out.writeInt(0); db.out.writeBuffer(items, item_length); db.out.writeInt(buffer_length); db.out.flush(); if (log != null) log.debug("sent"); receiveResponse(db); return db.resp_data; } catch (IOException ex) { throw new GDSException(isc_net_read_err); } } }
|
6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/0c85e5b9e025d1d2fc963451a40165c59f1cd5f4/GDS_Impl.java/buggy/src/main/org/firebirdsql/jgds/GDS_Impl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
353,
71,
67,
2377,
1217,
67,
4669,
67,
1376,
12,
291,
71,
67,
10589,
67,
4110,
3480,
67,
4110,
16,
4766,
1748,
509,
761,
67,
2469,
16,
1195,
4766,
1160,
8526,
1516,
16,
4766,
509,
1613,
67,
2469,
20308,
16,
4766,
1160,
8526,
1613,
5549,
13,
1216,
611,
3948,
503,
288,
3639,
353,
71,
67,
10589,
67,
4110,
67,
11299,
3480,
273,
261,
291,
71,
67,
10589,
67,
4110,
67,
11299,
13,
3480,
67,
4110,
31,
3639,
353,
71,
67,
1966,
67,
4110,
67,
11299,
1319,
273,
3480,
18,
5453,
86,
67,
86,
1966,
31,
3639,
3852,
261,
1966,
13,
288,
5411,
775,
288,
7734,
309,
261,
1330,
480,
446,
13,
613,
18,
4148,
2932,
556,
67,
1376,
67,
4669,
315,
1769,
7734,
1319,
18,
659,
18,
2626,
1702,
12,
556,
67,
1376,
67,
4669,
1769,
7734,
1319,
18,
659,
18,
2626,
1702,
12,
10589,
18,
5453,
86,
67,
350,
1769,
7734,
1319,
18,
659,
18,
2626,
1702,
12,
20,
1769,
7734,
1319,
18,
659,
18,
2626,
1892,
12,
3319,
16,
761,
67,
2469,
1769,
7734,
1319,
18,
659,
18,
2626,
1702,
12,
4106,
67,
2469,
1769,
7734,
1319,
18,
659,
18,
11330,
5621,
18701,
309,
261,
1330,
480,
446,
13,
613,
18,
4148,
2932,
7569,
8863,
7734,
6798,
1064,
12,
1966,
1769,
7734,
327,
1319,
18,
12243,
67,
892,
31,
5411,
289,
1044,
261,
14106,
431,
13,
288,
7734,
604,
394,
611,
3948,
503,
12,
291,
71,
67,
2758,
67,
896,
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,
1160,
8526,
353,
71,
67,
2377,
1217,
67,
4669,
67,
1376,
12,
291,
71,
67,
10589,
67,
4110,
3480,
67,
4110,
16,
4766,
1748,
509,
761,
67,
2469,
16,
1195,
4766,
1160,
8526,
1516,
16,
4766,
509,
1613,
67,
2469,
20308,
16,
4766,
1160,
8526,
1613,
5549,
13,
1216,
611,
3948,
503,
288,
3639,
353,
71,
67,
10589,
67,
4110,
67,
11299,
3480,
273,
261,
291,
71,
67,
10589,
67,
4110,
67,
11299,
13,
3480,
67,
4110,
31,
3639,
353,
71,
67,
1966,
67,
4110,
67,
11299,
1319,
273,
3480,
18,
5453,
86,
67,
86,
1966,
31,
3639,
3852,
261,
1966,
13,
288,
5411,
775,
288,
7734,
309,
261,
1330,
480,
446,
13,
613,
18,
4148,
2932,
2
] |
JFileChooser fileChooser = new JFileChooser(currentPath);
|
JFileChooser fileChooser = new JFileChooser(makeAbsolute(currentPath));
|
public void actionPerformed(ActionEvent e) { JFileChooser fileChooser = new JFileChooser(currentPath); fileChooser.setFileHidingEnabled(false); fileChooser.setFileSelectionMode (JFileChooser.FILES_AND_DIRECTORIES); fileChooser.setFileFilter(new SVGFileFilter()); int choice = fileChooser.showOpenDialog(JSVGViewerFrame.this); if (choice == JFileChooser.APPROVE_OPTION) { File f = fileChooser.getSelectedFile(); try { currentPath = f.getCanonicalPath(); svgCanvas.loadSVGDocument(f.toURL().toString()); } catch (IOException ex) { userAgent.displayError(ex); } } }
|
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/49dcb41b3a8d0d63a5f93b3556a2274e7a545011/JSVGViewerFrame.java/buggy/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
5411,
804,
812,
17324,
585,
17324,
273,
7734,
394,
804,
812,
17324,
12,
2972,
743,
1769,
5411,
585,
17324,
18,
542,
812,
44,
10415,
1526,
12,
5743,
1769,
5411,
585,
17324,
18,
542,
812,
6233,
2309,
7734,
261,
46,
812,
17324,
18,
12669,
67,
4307,
67,
17541,
916,
8805,
1769,
5411,
585,
17324,
18,
542,
29837,
12,
2704,
11281,
29837,
10663,
5411,
509,
6023,
273,
585,
17324,
18,
4500,
3678,
6353,
12,
6479,
9266,
18415,
3219,
18,
2211,
1769,
5411,
309,
261,
11569,
422,
804,
812,
17324,
18,
2203,
3373,
3412,
67,
7425,
13,
288,
7734,
1387,
284,
273,
585,
17324,
18,
588,
7416,
812,
5621,
7734,
775,
288,
10792,
18027,
273,
284,
18,
588,
15512,
743,
5621,
10792,
9804,
12971,
18,
945,
26531,
2519,
12,
74,
18,
869,
1785,
7675,
10492,
10663,
7734,
289,
1044,
261,
14106,
431,
13,
288,
10792,
7574,
18,
5417,
668,
12,
338,
1769,
7734,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
5411,
804,
812,
17324,
585,
17324,
273,
7734,
394,
804,
812,
17324,
12,
2972,
743,
1769,
5411,
585,
17324,
18,
542,
812,
44,
10415,
1526,
12,
5743,
1769,
5411,
585,
17324,
18,
542,
812,
6233,
2309,
7734,
261,
46,
812,
17324,
18,
12669,
67,
4307,
67,
17541,
916,
8805,
1769,
5411,
585,
17324,
18,
542,
29837,
12,
2704,
11281,
29837,
10663,
5411,
509,
6023,
273,
585,
17324,
18,
4500,
3678,
6353,
12,
6479,
9266,
18415,
3219,
18,
2211,
1769,
5411,
309,
261,
11569,
422,
804,
812,
17324,
18,
2203,
3373,
3412,
67,
7425,
13,
288,
7734,
1387,
284,
273,
585,
17324,
18,
588,
7416,
812,
5621,
7734,
775,
288,
2
] |
FormData progressData = new FormData(); progressData.top = new FormAttachment(IDialogConstants.VERTICAL_SPACING); progressData.left = new FormAttachment(jobImageLabel, IDialogConstants.HORIZONTAL_SPACING / 2); progressData.right = new FormAttachment(actionBar, IDialogConstants.HORIZONTAL_SPACING); progressLabel.setLayoutData(progressData); if(taskEntries.size() > 0){
|
if (taskEntries.size() > 0) {
|
private void setLayoutsForNoProgress() { FormData buttonData = new FormData(); buttonData.top = new FormAttachment(progressLabel, 0, SWT.TOP); buttonData.right = new FormAttachment(100, IDialogConstants.HORIZONTAL_SPACING * -1); actionBar.setLayoutData(buttonData); FormData progressData = new FormData(); progressData.top = new FormAttachment(IDialogConstants.VERTICAL_SPACING); progressData.left = new FormAttachment(jobImageLabel, IDialogConstants.HORIZONTAL_SPACING / 2); progressData.right = new FormAttachment(actionBar, IDialogConstants.HORIZONTAL_SPACING); progressLabel.setLayoutData(progressData); if(taskEntries.size() > 0){ FormData linkData = new FormData(); linkData.top = new FormAttachment(progressLabel, IDialogConstants.VERTICAL_SPACING); linkData.left = new FormAttachment(progressLabel, 0, SWT.LEFT); ((Link) taskEntries.get(0)).setLayoutData(linkData); } }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/976616861f09ac9e962d77c0c6c5a9fa9324abca/ProgressInfoItem.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
18479,
28388,
2279,
5491,
1435,
288,
202,
202,
30079,
3568,
751,
273,
394,
2748,
751,
5621,
202,
202,
5391,
751,
18,
3669,
273,
394,
2748,
6803,
12,
8298,
2224,
16,
374,
16,
348,
8588,
18,
10462,
1769,
202,
202,
5391,
751,
18,
4083,
273,
394,
2748,
6803,
12,
6625,
16,
9506,
202,
734,
3529,
2918,
18,
44,
20344,
67,
3118,
2226,
1360,
380,
300,
21,
1769,
202,
202,
1128,
5190,
18,
542,
3744,
751,
12,
5391,
751,
1769,
202,
202,
30079,
4007,
751,
273,
394,
2748,
751,
5621,
202,
202,
8298,
751,
18,
3669,
273,
394,
2748,
6803,
12,
734,
3529,
2918,
18,
21654,
10109,
67,
3118,
2226,
1360,
1769,
202,
202,
8298,
751,
18,
4482,
273,
394,
2748,
6803,
12,
4688,
2040,
2224,
16,
9506,
202,
734,
3529,
2918,
18,
44,
20344,
67,
3118,
2226,
1360,
342,
576,
1769,
202,
202,
8298,
751,
18,
4083,
273,
394,
2748,
6803,
12,
1128,
5190,
16,
9506,
202,
734,
3529,
2918,
18,
44,
20344,
67,
3118,
2226,
1360,
1769,
202,
202,
8298,
2224,
18,
542,
3744,
751,
12,
8298,
751,
1769,
9506,
202,
430,
12,
4146,
5400,
18,
1467,
1435,
405,
374,
15329,
1082,
202,
30079,
1692,
751,
273,
394,
2748,
751,
5621,
1082,
202,
1232,
751,
18,
3669,
273,
394,
2748,
6803,
12,
8298,
2224,
16,
6862,
202,
734,
3529,
2918,
18,
21654,
10109,
67,
3118,
2226,
1360,
1769,
1082,
202,
1232,
751,
18,
4482,
273,
394,
2748,
6803,
12,
8298,
2224,
16,
374,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
18479,
28388,
2279,
5491,
1435,
288,
202,
202,
30079,
3568,
751,
273,
394,
2748,
751,
5621,
202,
202,
5391,
751,
18,
3669,
273,
394,
2748,
6803,
12,
8298,
2224,
16,
374,
16,
348,
8588,
18,
10462,
1769,
202,
202,
5391,
751,
18,
4083,
273,
394,
2748,
6803,
12,
6625,
16,
9506,
202,
734,
3529,
2918,
18,
44,
20344,
67,
3118,
2226,
1360,
380,
300,
21,
1769,
202,
202,
1128,
5190,
18,
542,
3744,
751,
12,
5391,
751,
1769,
202,
202,
30079,
4007,
751,
273,
394,
2748,
751,
5621,
202,
202,
8298,
751,
18,
3669,
273,
394,
2748,
6803,
12,
734,
3529,
2918,
18,
21654,
10109,
67,
3118,
2226,
1360,
1769,
202,
202,
8298,
751,
18,
2
] |
return SEG_CUBICTO; } throw new NoSuchElementException("cubic iterator out of bounds");
|
return result;
|
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current < 2; } public void next() { current++; } public int currentSegment(float[] coords) { if (current == 0) { coords[0] = (float) getX1(); coords[1] = (float) getY1(); if (at != null) at.transform(coords, 0, coords, 0, 1); return SEG_MOVETO; } if (current == 1) { coords[0] = (float) getCtrlX1(); coords[1] = (float) getCtrlY1(); coords[2] = (float) getCtrlX2(); coords[3] = (float) getCtrlY2(); coords[4] = (float) getX2(); coords[5] = (float) getY2(); if (at != null) at.transform(coords, 0, coords, 0, 3); return SEG_CUBICTO; } throw new NoSuchElementException("cubic iterator out of bounds"); } public int currentSegment(double[] coords) { if (current == 0) { coords[0] = getX1(); coords[1] = getY1(); if (at != null) at.transform(coords, 0, coords, 0, 1); return SEG_MOVETO; } if (current == 1) { coords[0] = getCtrlX1(); coords[1] = getCtrlY1(); coords[2] = getCtrlX2(); coords[3] = getCtrlY2(); coords[4] = getX2(); coords[5] = getY2(); if (at != null) at.transform(coords, 0, coords, 0, 3); return SEG_CUBICTO; } throw new NoSuchElementException("cubic iterator out of bounds"); } }; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/CubicCurve2D.java/clean/core/src/classpath/java/java/awt/geom/CubicCurve2D.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2666,
3198,
4339,
3198,
12,
6385,
23906,
558,
4059,
622,
13,
225,
288,
565,
327,
394,
2666,
3198,
1435,
565,
288,
1377,
1783,
6562,
7799,
18,
1195,
1377,
3238,
509,
783,
31,
1377,
1071,
509,
13876,
728,
310,
2175,
1435,
1377,
288,
3639,
327,
24482,
67,
3993,
67,
24968,
31,
1377,
289,
1377,
1071,
1250,
28874,
1435,
1377,
288,
3639,
327,
783,
411,
576,
31,
1377,
289,
1377,
1071,
918,
1024,
1435,
1377,
288,
3639,
783,
9904,
31,
1377,
289,
1377,
1071,
509,
783,
4131,
12,
5659,
8526,
6074,
13,
1377,
288,
3639,
309,
261,
2972,
422,
374,
13,
1850,
288,
5411,
6074,
63,
20,
65,
273,
261,
5659,
13,
6538,
21,
5621,
5411,
6074,
63,
21,
65,
273,
261,
5659,
13,
10448,
21,
5621,
5411,
309,
261,
270,
480,
446,
13,
2868,
622,
18,
6547,
12,
9076,
16,
374,
16,
6074,
16,
374,
16,
404,
1769,
5411,
327,
26167,
67,
5980,
58,
1584,
51,
31,
1850,
289,
3639,
309,
261,
2972,
422,
404,
13,
1850,
288,
5411,
6074,
63,
20,
65,
273,
261,
5659,
13,
1927,
5170,
60,
21,
5621,
5411,
6074,
63,
21,
65,
273,
261,
5659,
13,
1927,
5170,
61,
21,
5621,
5411,
6074,
63,
22,
65,
273,
261,
5659,
13,
1927,
5170,
60,
22,
5621,
5411,
6074,
63,
23,
65,
273,
261,
5659,
13,
1927,
5170,
61,
22,
5621,
5411,
6074,
63,
24,
65,
273,
261,
5659,
13,
6538,
22,
5621,
5411,
6074,
63,
25,
65,
273,
261,
5659,
13,
10448,
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,
2666,
3198,
4339,
3198,
12,
6385,
23906,
558,
4059,
622,
13,
225,
288,
565,
327,
394,
2666,
3198,
1435,
565,
288,
1377,
1783,
6562,
7799,
18,
1195,
1377,
3238,
509,
783,
31,
1377,
1071,
509,
13876,
728,
310,
2175,
1435,
1377,
288,
3639,
327,
24482,
67,
3993,
67,
24968,
31,
1377,
289,
1377,
1071,
1250,
28874,
1435,
1377,
288,
3639,
327,
783,
411,
576,
31,
1377,
289,
1377,
1071,
918,
1024,
1435,
1377,
288,
3639,
783,
9904,
31,
1377,
289,
1377,
1071,
509,
783,
4131,
12,
5659,
8526,
6074,
13,
1377,
288,
3639,
309,
261,
2972,
422,
374,
13,
1850,
288,
5411,
6074,
63,
20,
65,
273,
261,
5659,
13,
6538,
21,
5621,
5411,
6074,
63,
21,
2
] |
component.setStyle(component.getSession().getCGManager(). getStyle(getPropertyPrefix() + ".style"));
|
STabbedPane pane = (STabbedPane)component; pane.setStyle(component.getSession().getCGManager(). getStyle(getPropertyPrefix() + "NonSelection.style")); pane.setSelectionStyle(component.getSession().getCGManager(). getStyle(getPropertyPrefix() + "Selection.style"));
|
public void installCG(SComponent component) { component.setStyle(component.getSession().getCGManager(). getStyle(getPropertyPrefix() + ".style")); }
|
3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/22c2710d23cb82c9e0f24c33d64cf344c16f14cd/TabbedPaneCG.java/clean/wings/src/org/wings/plaf/xhtml/TabbedPaneCG.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3799,
20585,
12,
55,
1841,
1794,
13,
288,
3639,
1794,
18,
542,
2885,
12,
4652,
18,
588,
2157,
7675,
588,
20585,
1318,
7675,
21821,
14210,
12,
588,
1396,
2244,
1435,
397,
3552,
4060,
7923,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3799,
20585,
12,
55,
1841,
1794,
13,
288,
3639,
1794,
18,
542,
2885,
12,
4652,
18,
588,
2157,
7675,
588,
20585,
1318,
7675,
21821,
14210,
12,
588,
1396,
2244,
1435,
397,
3552,
4060,
7923,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AST tmp2233_AST_in = (AST)_t;
|
AST tmp2234_AST_in = (AST)_t;
|
public final void source_buffer_phrase(AST _t) throws RecognitionException { AST source_buffer_phrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1125 = _t; AST tmp2232_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case KEYS: { AST tmp2233_AST_in = (AST)_t; match(_t,KEYS); _t = _t.getNextSibling(); AST tmp2234_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ROWID: { AST tmp2235_AST_in = (AST)_t; match(_t,ROWID); _t = _t.getNextSibling(); break; } case Field_ref: { field(_t); _t = _retTree; { _loop1129: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2236_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); field(_t); _t = _retTree; } else { break _loop1129; } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } AST tmp2237_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1125; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser03.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1084,
67,
4106,
67,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1084,
67,
4106,
67,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
17666,
25,
273,
389,
88,
31,
202,
202,
9053,
1853,
3787,
1578,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
22261,
67,
1985,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
24546,
30,
202,
202,
95,
1082,
202,
9053,
1853,
3787,
3707,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
16333,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
9053,
1853,
3787,
5026,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
10066,
15111,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
95,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
1082,
202,
3593,
29589,
734,
30,
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,
727,
918,
1084,
67,
4106,
67,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1084,
67,
4106,
67,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
17666,
25,
273,
389,
88,
31,
202,
202,
9053,
1853,
3787,
1578,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
22261,
67,
1985,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
2
] |
if (addMatchingMarkers(selected))
|
if (addMatchingMarkers(selected)) {
|
public void widgetSelected(SelectionEvent arg0) { WorkbenchMarkerResolution selected = getSelectedWorkbenchResolution(); if (selected == null) return; if (addMatchingMarkers(selected)) addMatching.setEnabled(false); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/MarkerResolutionDialog.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerResolutionDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
1501,
20,
13,
288,
9506,
202,
2421,
22144,
7078,
11098,
3170,
273,
16625,
2421,
22144,
11098,
5621,
9506,
202,
430,
261,
8109,
422,
446,
13,
6862,
202,
2463,
31,
9506,
202,
430,
261,
1289,
9517,
21644,
12,
8109,
3719,
6862,
202,
1289,
9517,
18,
542,
1526,
12,
5743,
1769,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
1501,
20,
13,
288,
9506,
202,
2421,
22144,
7078,
11098,
3170,
273,
16625,
2421,
22144,
11098,
5621,
9506,
202,
430,
261,
8109,
422,
446,
13,
6862,
202,
2463,
31,
9506,
202,
430,
261,
1289,
9517,
21644,
12,
8109,
3719,
6862,
202,
1289,
9517,
18,
542,
1526,
12,
5743,
1769,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException {
|
private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException {
|
private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException { // TODO } // readObject()
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/DefaultTreeCellEditor.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
17362,
12,
921,
4348,
460,
20,
13,
1216,
1860,
16,
10403,
288,
202,
202,
759,
2660,
202,
97,
368,
17362,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
17362,
12,
921,
4348,
460,
20,
13,
1216,
1860,
16,
10403,
288,
202,
202,
759,
2660,
202,
97,
368,
17362,
1435,
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
] |
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 100: ResultType ::= void // case 100: { //#line 675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 101: FormalParameterList ::= LastFormalParameter // case 101: { //#line 695 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 102: FormalParameterList ::= FormalParameters , LastFormalParameter // case 102: { //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 103: FormalParameters ::= FormalParameter // case 103: { //#line 709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 711 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 104: FormalParameters ::= FormalParameters , FormalParameter // case 104: { //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 105: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 105: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 107: VariableModifiers ::= VariableModifiers VariableModifier // case 107: { //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 735 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 108: VariableModifier ::= final // case 108: { //#line 741 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 109: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 109: { //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 749 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 111: MethodModifiers ::= MethodModifiers MethodModifier // case 111: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 112: MethodModifier ::= public // case 112: { //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 113: MethodModifier ::= protected // case 113: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 114: MethodModifier ::= private // case 114: { //#line 781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 115: MethodModifier ::= abstract // case 115: { //#line 786 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 116: MethodModifier ::= static // case 116: { //#line 791 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 117: MethodModifier ::= final // case 117: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 118: MethodModifier ::= native // case 118: { //#line 806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 119: MethodModifier ::= strictfp // case 119: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 120: Throws ::= throws ExceptionTypeList // case 120: { //#line 815 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 817 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 121: ExceptionTypeList ::= ExceptionType // case 121: { //#line 821 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 823 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 122: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 122: { //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 830 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 125: MethodBody ::= ; // case 125: setResult(null); break; // // Rule 127: StaticInitializer ::= static Block // case 127: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 128: SimpleTypeName ::= identifier // case 128: { //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 869 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 130: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 130: { //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 876 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 131: ConstructorModifier ::= public // case 131: { //#line 884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 132: ConstructorModifier ::= protected // case 132: { //#line 889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 133: ConstructorModifier ::= private // case 133: { //#line 894 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 134: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 134: { //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 900 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; l = new TypedList(new LinkedList(), Stmt.class, false); if (ExplicitConstructorInvocationopt == null) { l.add(nf.SuperCall(pos(), Collections.EMPTY_LIST)); } else { l.add(ExplicitConstructorInvocationopt); } l.addAll(BlockStatementsopt); setResult(nf.Block(pos(), l)); break; } // // Rule 135: Arguments ::= ( ArgumentListopt ) // case 135: { //#line 933 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 935 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 138: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 138: { //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 139: InterfaceModifier ::= public // case 139: { //#line 961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 140: InterfaceModifier ::= protected // case 140: { //#line 966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 141: InterfaceModifier ::= private // case 141: { //#line 971 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 142: InterfaceModifier ::= abstract // case 142: { //#line 976 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 143: InterfaceModifier ::= static // case 143: { //#line 981 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 144: InterfaceModifier ::= strictfp // case 144: { //#line 986 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 145: ExtendsInterfaces ::= extends InterfaceType // case 145: { //#line 990 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 146: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 146: { //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 999 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 147: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 147: { //#line 1009 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 149: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 149: { //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1018 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 151: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 151: { //#line 1024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1026 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= ClassDeclaration // case 152: { //#line 1031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1033 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 153: { //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= ; // case 154: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 155: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 155: { //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 157: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 157: { //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1073 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 158: ConstantModifier ::= public // case 158: { //#line 1081 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 159: ConstantModifier ::= static // case 159: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 160: ConstantModifier ::= final // case 160: { //#line 1091 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 162: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 162: { //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 163: AbstractMethodModifier ::= public // case 163: { //#line 1108 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 164: AbstractMethodModifier ::= abstract // case 164: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 165: SimpleName ::= identifier // case 165: { //#line 1169 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 166: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 166: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 167: VariableInitializers ::= VariableInitializer // case 167: { //#line 1206 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 168: VariableInitializers ::= VariableInitializers , VariableInitializer // case 168: { //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 169: Block ::= { BlockStatementsopt } // case 169: { //#line 1234 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 170: BlockStatements ::= BlockStatement // case 170: { //#line 1240 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1242 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 171: BlockStatements ::= BlockStatements BlockStatement // case 171: { //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1249 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 173: BlockStatement ::= ClassDeclaration // case 173: { //#line 1255 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 174: BlockStatement ::= Statement // case 174: { //#line 1262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 176: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 176: { //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1274 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 200: IfThenStatement ::= if ( Expression ) Statement // case 200: { //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 201: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 201: { //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1343 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 202: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 202: { //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 203: EmptyStatement ::= ; // case 203: { //#line 1355 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 204: LabeledStatement ::= identifier : Statement // case 204: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1361 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 205: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 205: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 206: ExpressionStatement ::= StatementExpression ; // case 206: { //#line 1370 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1372 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 214: AssertStatement ::= assert Expression ; // case 214: { //#line 1393 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1395 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 215: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 215: { //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1400 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 216: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 216: { //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 217: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 217: { //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 219: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 219: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 220: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 220: { //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1427 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 221: SwitchLabels ::= SwitchLabel // case 221: { //#line 1434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1436 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabels SwitchLabel // case 222: { //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1443 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 223: SwitchLabel ::= case ConstantExpression : // case 223: { //#line 1448 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1450 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 224: SwitchLabel ::= default : // case 224: { //#line 1457 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 225: WhileStatement ::= while ( Expression ) Statement // case 225: { //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 226: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 226: { //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1472 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 227: DoStatement ::= do Statement while ( Expression ) ; // case 227: { //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1478 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 230: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 230: { //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1487 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 231: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 231: { //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1493 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 233: ForInit ::= LocalVariableDeclaration // case 233: { //#line 1498 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 235: StatementExpressionList ::= StatementExpression // case 235: { //#line 1508 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1510 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 236: { //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 237: BreakStatement ::= break identifieropt ; // case 237: { //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1527 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 238: ContinueStatement ::= continue identifieropt ; // case 238: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 239: ReturnStatement ::= return Expressionopt ; // case 239: { //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1543 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 240: ThrowStatement ::= throw Expression ; // case 240: { //#line 1547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 241: TryStatement ::= try Block Catches // case 241: { //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1561 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 242: TryStatement ::= try Block Catchesopt Finally // case 242: { //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1566 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 243: Catches ::= CatchClause // case 243: { //#line 1570 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1572 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 244: Catches ::= Catches CatchClause // case 244: { //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1579 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 245: CatchClause ::= catch ( FormalParameter ) Block // case 245: { //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 246: Finally ::= finally Block // case 246: { //#line 1590 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1592 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 250: PrimaryNoNewArray ::= Type . class // case 250: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 251: PrimaryNoNewArray ::= void . class // case 251: { //#line 1631 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 252: PrimaryNoNewArray ::= this // case 252: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 253: PrimaryNoNewArray ::= ClassName . this // case 253: { //#line 1640 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1642 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 254: PrimaryNoNewArray ::= ( Expression ) // case 254: { //#line 1645 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1647 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 259: Literal ::= IntegerLiteral$IntegerLiteral // case 259: { //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1657 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 260: Literal ::= LongLiteral$LongLiteral // case 260: { //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1663 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 261: Literal ::= FloatingPointLiteral$FloatLiteral // case 261: { //#line 1667 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1669 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 262: Literal ::= DoubleLiteral$DoubleLiteral // case 262: { //#line 1673 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 263: Literal ::= BooleanLiteral // case 263: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 264: Literal ::= CharacterLiteral$CharacterLiteral // case 264: { //#line 1684 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 265: Literal ::= StringLiteral$str // case 265: { //#line 1690 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1692 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 266: Literal ::= null // case 266: { //#line 1698 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 267: BooleanLiteral ::= true$trueLiteral // case 267: { //#line 1702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 268: BooleanLiteral ::= false$falseLiteral // case 268: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: ArgumentList ::= Expression // case 269: { //#line 1722 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1724 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 270: ArgumentList ::= ArgumentList , Expression // case 270: { //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1731 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 271: DimExprs ::= DimExpr // case 271: { //#line 1765 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1767 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 272: DimExprs ::= DimExprs DimExpr // case 272: { //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1774 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 273: DimExpr ::= [ Expression ] // case 273: { //#line 1779 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 274: Dims ::= [ ] // case 274: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 275: Dims ::= Dims [ ] // case 275: { //#line 1790 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1792 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 276: FieldAccess ::= Primary . identifier // case 276: { //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 277: FieldAccess ::= super . identifier // case 277: { //#line 1801 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= ClassName . super$sup . identifier // case 278: { //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1808 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 279: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 279: { //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1814 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 281: PostfixExpression ::= ExpressionName // case 281: { //#line 1837 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1839 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 284: PostIncrementExpression ::= PostfixExpression ++ // case 284: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 285: PostDecrementExpression ::= PostfixExpression -- // case 285: { //#line 1851 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1853 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 288: UnaryExpression ::= + UnaryExpression // case 288: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 289: UnaryExpression ::= - UnaryExpression // case 289: { //#line 1864 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1866 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 291: PreIncrementExpression ::= ++ UnaryExpression // case 291: { //#line 1871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 292: PreDecrementExpression ::= -- UnaryExpression // case 292: { //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1879 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 294: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 294: { //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1886 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 295: { //#line 1889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1891 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 298: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 298: { //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1905 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 299: { //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1910 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 300: { //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 302: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 302: { //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 303: { //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1927 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 305: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 305: { //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1934 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 306: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 307: { //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1945 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 309: RelationalExpression ::= RelationalExpression < ShiftExpression // case 309: { //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression > ShiftExpression // case 310: { //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1958 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 311: { //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1963 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 312: { //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1968 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 314: EqualityExpression ::= EqualityExpression == RelationalExpression // case 314: { //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1984 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression != RelationalExpression // case 315: { //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1989 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 317: AndExpression ::= AndExpression & EqualityExpression // case 317: { //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1996 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 319: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 319: { //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 321: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 321: { //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2010 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 323: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 323: { //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 325: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 325: { //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 327: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 327: { //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 330: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 330: { //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 331: LeftHandSide ::= ExpressionName // case 331: { //#line 2044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2046 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 334: AssignmentOperator ::= = // case 334: { //#line 2054 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 335: AssignmentOperator ::= *= // case 335: { //#line 2059 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 336: AssignmentOperator ::= /= // case 336: { //#line 2064 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= %= // case 337: { //#line 2069 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= += // case 338: { //#line 2074 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= -= // case 339: { //#line 2079 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= <<= // case 340: { //#line 2084 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= > > = // case 341: { //#line 2089 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > > = // case 342: { //#line 2095 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= &= // case 343: { //#line 2101 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= ^= // case 344: { //#line 2106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= |= // case 345: { //#line 2111 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 348: Dimsopt ::= $Empty // case 348: { //#line 2124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 350: Catchesopt ::= $Empty // case 350: { //#line 2131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 352: identifieropt ::= $Empty // case 352: setResult(null); break; // // Rule 353: identifieropt ::= identifier // case 353: { //#line 2138 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2140 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 354: ForUpdateopt ::= $Empty // case 354: { //#line 2146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 356: Expressionopt ::= $Empty // case 356: setResult(null); break; // // Rule 358: ForInitopt ::= $Empty // case 358: { //#line 2157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 360: SwitchLabelsopt ::= $Empty // case 360: { //#line 2164 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 362: SwitchBlockStatementGroupsopt ::= $Empty // case 362: { //#line 2171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 364: VariableModifiersopt ::= $Empty // case 364: { //#line 2178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 366: VariableInitializersopt ::= $Empty // case 366: setResult(null); break; // // Rule 368: AbstractMethodModifiersopt ::= $Empty // case 368: { //#line 2208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 370: ConstantModifiersopt ::= $Empty // case 370: { //#line 2215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 372: InterfaceMemberDeclarationsopt ::= $Empty // case 372: { //#line 2222 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 374: ExtendsInterfacesopt ::= $Empty // case 374: { //#line 2229 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 376: InterfaceModifiersopt ::= $Empty // case 376: { //#line 2236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 378: ClassBodyopt ::= $Empty // case 378: setResult(null); break; // // Rule 380: Argumentsopt ::= $Empty // case 380: setResult(null); break; // // Rule 381: Argumentsopt ::= Arguments // case 381: throw new Error("No action specified for rule " + 381); // // Rule 382: ,opt ::= $Empty // case 382: setResult(null); break; // // Rule 384: ArgumentListopt ::= $Empty // case 384: { //#line 2266 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 386: BlockStatementsopt ::= $Empty // case 386: { //#line 2273 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 388: ExplicitConstructorInvocationopt ::= $Empty // case 388: setResult(null); break; // // Rule 390: ConstructorModifiersopt ::= $Empty // case 390: { //#line 2284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 392: ...opt ::= $Empty // case 392: setResult(null); break; // // Rule 394: FormalParameterListopt ::= $Empty // case 394: { //#line 2295 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 396: Throwsopt ::= $Empty // case 396: { //#line 2302 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 398: MethodModifiersopt ::= $Empty // case 398: { //#line 2309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 400: FieldModifiersopt ::= $Empty // case 400: { //#line 2316 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 402: ClassBodyDeclarationsopt ::= $Empty // case 402: { //#line 2323 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 404: Interfacesopt ::= $Empty // case 404: { //#line 2330 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 406: Superopt ::= $Empty // case 406: { //#line 2337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 408: ClassModifiersopt ::= $Empty // case 408: { //#line 2348 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 410: TypeDeclarationsopt ::= $Empty // case 410: { //#line 2360 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 412: ImportDeclarationsopt ::= $Empty // case 412: { //#line 2367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 414: PackageDeclarationopt ::= $Empty // case 414: setResult(null); break; // // Rule 416: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 416: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 417: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 734 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: PackageDeclaration ::= package PackageName ; // case 418: { //#line 740 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 742 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 419: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 419: { //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 748 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 421: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 421: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 422: X10ClassModifier ::= ClassModifier // case 422: { //#line 769 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 423: X10ClassModifier ::= safe // case 423: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 424: PropertyList ::= ( Properties WhereClauseopt ) // case 424: { //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 782 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 425: PropertyList ::= ( WhereClause ) // case 425: { //#line 787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 426: Properties ::= Property // case 426: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 427: Properties ::= Properties , Property // case 427: { //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 805 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 428: Property ::= Type identifier // case 428: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 813 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 429: MethodDeclaration ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt MethodBody // case 429: { //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(6); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, MethodBody)); break; } // // Rule 430: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 430: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 431: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 431: { //#line 855 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 857 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 432: { //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 862 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 433: { //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 434: { //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 435: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 435: { //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 890 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 436: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 436: { //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 437: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 930 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 439: { //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 440: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 440: { //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 441: { //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 949 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 443: AssignPropertyCall ::= property ( ArgumentList ) // case 443: { //#line 954 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 444: Type ::= DataType // case 444: { //#line 965 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 967 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 445: Type ::= nullable < Type > DepParametersopt // case 445: { //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 972 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 446: Type ::= future < Type > // case 446: { //#line 978 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 980 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 450: PrimitiveType ::= NumericType DepParametersopt // case 450: { //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 451: PrimitiveType ::= boolean DepParametersopt // case 451: { //#line 1003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1005 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 456: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 456: { //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 457: DepParameters ::= ( DepParameterExpr ) // case 457: { //#line 1036 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 458: DepParameterExpr ::= ArgumentList WhereClauseopt // case 458: { //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 459: DepParameterExpr ::= WhereClause // case 459: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1049 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 460: WhereClause ::= : ConstExpression // case 460: { //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1055 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 461: ConstPrimary ::= Literal // case 461: { //#line 1060 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1062 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 462: ConstPrimary ::= Type . class // case 462: { //#line 1065 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1067 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 463: ConstPrimary ::= void . class // case 463: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 464: ConstPrimary ::= this // case 464: { //#line 1092 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 465: ConstPrimary ::= here // case 465: { //#line 1097 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 466: ConstPrimary ::= ClassName . this // case 466: { //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1102 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 467: ConstPrimary ::= ( ConstExpression ) // case 467: { //#line 1105 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1107 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 469: ConstPrimary ::= self // case 469: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 470: ConstPostfixExpression ::= ConstPrimary // case 470: { //#line 1119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 471: ConstPostfixExpression ::= ExpressionName // case 471: { //#line 1124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 472: ConstUnaryExpression ::= ConstPostfixExpression // case 472: { //#line 1129 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 473: ConstUnaryExpression ::= + ConstUnaryExpression // case 473: { //#line 1134 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 474: ConstUnaryExpression ::= - ConstUnaryExpression // case 474: { //#line 1139 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= ! ConstUnaryExpression // case 475: { //#line 1144 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 476: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 476: { //#line 1150 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 477: { //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 478: { //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1162 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 479: { //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1167 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 480: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 480: { //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1173 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 481: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 481: { //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 482: { //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1183 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstRelationalExpression ::= ConstAdditiveExpression // case 483: { //#line 1188 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1190 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 484: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 484: { //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1195 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 485: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 486: { //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1205 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 487: { //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1210 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 488: ConstEqualityExpression ::= ConstRelationalExpression // case 488: { //#line 1214 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1216 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 489: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 489: { //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1221 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 490: { //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1226 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 491: ConstAndExpression ::= ConstEqualityExpression // case 491: { //#line 1230 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1232 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 492: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 492: { //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1237 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 493: ConstExclusiveOrExpression ::= ConstAndExpression // case 493: { //#line 1241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 494: { //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 495: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 495: { //#line 1252 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1254 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 496: { //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1259 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 497: ConstExpression ::= ConstInclusiveOrExpression // case 497: { //#line 1263 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1265 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 498: { //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1270 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 499: ConstFieldAccess ::= ConstPrimary . identifier // case 499: { //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 500: ConstFieldAccess ::= super . identifier // case 500: { //#line 1280 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= ClassName . super$sup . identifier // case 501: { //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1287 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 503: X10ArrayType ::= Type [ . ] // case 503: { //#line 1303 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1305 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 504: X10ArrayType ::= Type value [ . ] // case 504: { //#line 1308 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1310 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 505: X10ArrayType ::= Type [ DepParameterExpr ] // case 505: { //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1315 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 506: X10ArrayType ::= Type value [ DepParameterExpr ] // case 506: { //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1320 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 507: ObjectKind ::= value // case 507: throw new Error("No action specified for rule " + 507); // // Rule 508: ObjectKind ::= reference // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: MethodModifier ::= atomic // case 509: { //#line 1334 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 510: MethodModifier ::= extern // case 510: { //#line 1339 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 511: MethodModifier ::= safe // case 511: { //#line 1344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 512: MethodModifier ::= sequential // case 512: { //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 513: MethodModifier ::= local // case 513: { //#line 1354 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 514: MethodModifier ::= nonblocking // case 514: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 516: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 516: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1377 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 518: { //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 519: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 519: { //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 520: ThisClause ::= this DepParameters // case 520: { //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1408 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 521: Super ::= extends DataType // case 521: { //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 522: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 522: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 523: MethodDeclarator ::= MethodDeclarator [ ] // case 523: { //#line 1430 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1432 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 524: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 524: { //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1440 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 525: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 525: { //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 526: { //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1482 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 527: { //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1488 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 528: { //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1497 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 529: { //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 530: { //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1507 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 531: Valueopt ::= $Empty // case 531: setResult(null); break; // // Rule 532: Valueopt ::= value // case 532: { //#line 1516 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 535: ArrayBaseType ::= nullable < Type > // case 535: { //#line 1523 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 536: ArrayBaseType ::= future < Type > // case 536: { //#line 1528 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1530 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= ( Type ) // case 537: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 538: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 538: { //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 539: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 539: { //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1548 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 556: NowStatement ::= now ( Clock ) Statement // case 556: { //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1576 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 557: ClockedClause ::= clocked ( ClockList ) // case 557: { //#line 1580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1582 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 558: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 558: { //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 559: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 559: { //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1598 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 560: WhenStatement ::= when ( Expression ) Statement // case 560: { //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1607 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 561: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 561: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 562: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 562: { //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1619 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 563: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1629 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 564: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1639 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 565: FinishStatement ::= finish Statement // case 565: { //#line 1646 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 566: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 566: { //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 567: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 567: { //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 568: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 568: { //#line 1668 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1670 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 569: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 569: { //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1676 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 570: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 571: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 571: { //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1688 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 572: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1699 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 573: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 574: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 574: { //#line 1716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 575: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 575: { //#line 1723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 577: NextStatement ::= next ; // case 577: { //#line 1733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 578: AwaitStatement ::= await Expression ; // case 578: { //#line 1737 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1739 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 579: ClockList ::= Clock // case 579: { //#line 1743 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1745 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 580: ClockList ::= ClockList , Clock // case 580: { //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1752 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 581: Clock ::= Expression // case 581: { //#line 1758 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1760 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 582: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 582: { //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 583: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 583: { //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1777 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: RelationalExpression ::= RelationalExpression instanceof Type // case 584: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 585: IdentifierList ::= identifier // case 585: { //#line 1795 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1797 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 586: IdentifierList ::= IdentifierList , identifier // case 586: { //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1804 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 587: Primary ::= here // case 587: { //#line 1811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 590: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 590: { //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1829 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 591: RegionExpressionList ::= RegionExpression // case 591: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 592: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 592: { //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1854 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 593: Primary ::= [ RegionExpressionList ] // case 593: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 594: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 594: { //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 595: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 595: { //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 596: FieldModifier ::= mutable // case 596: { //#line 1892 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 597: FieldModifier ::= const // case 597: { //#line 1897 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 598: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 598: throw new Error("No action specified for rule " + 598); // // Rule 599: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: MethodModifier ::= synchronized // case 607: { //#line 1928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"synchronized\" is an invalid X10 Method Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.SYNCHRONIZED); break; } // // Rule 608: FieldModifier ::= volatile // case 608: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"volatile\" is an invalid X10 Field Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.VOLATILE); break; } // // Rule 609: SynchronizedStatement ::= synchronized ( Expression ) Block // case 609: { //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1946 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "Synchronized Statement is invalid in X10", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 610: ThisClauseopt ::= $Empty // case 610: setResult(null); break; // // Rule 612: PlaceTypeSpecifieropt ::= $Empty // case 612: setResult(null); break; // // Rule 614: DepParametersopt ::= $Empty // case 614: setResult(null); break; // // Rule 616: PropertyListopt ::= $Empty // case 616: setResult(null); break; // // Rule 618: WhereClauseopt ::= $Empty // case 618: setResult(null); break; // // Rule 620: ObjectKindopt ::= $Empty // case 620: setResult(null); break; // // Rule 622: ArrayInitializeropt ::= $Empty // case 622: setResult(null); break; // // Rule 624: PlaceExpressionSingleListopt ::= $Empty // case 624: setResult(null); break; // // Rule 626: ArgumentListopt ::= $Empty // case 626: setResult(null); break; // // Rule 628: X10ClassModifiersopt ::= $Empty // case 628: { //#line 1992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 630: DepParametersopt ::= $Empty // case 630: setResult(null); break; // // Rule 632: Unsafeopt ::= $Empty // case 632: setResult(null); break; // // Rule 633: Unsafeopt ::= unsafe // case 633: { //#line 2004 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 634: ParamIdopt ::= $Empty // case 634: setResult(null); break; // // Rule 635: ParamIdopt ::= identifier // case 635: { //#line 2011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2013 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 636: ClockedClauseopt ::= $Empty // case 636: { //#line 2019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
|
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/f8e1720cd66996a6339b992bf154aa0d019240a3/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
21036,
493,
33,
21036,
263,
1068,
548,
5411,
368,
5411,
648,
404,
30,
288,
7734,
368,
7,
1369,
1666,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
1759,
89,
98,
21,
19,
1252,
19,
92,
2163,
19,
71,
6904,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
7734,
1770,
21036,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
7734,
368,
7,
1369,
1725,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
1759,
89,
98,
21,
19,
1252,
19,
92,
2163,
19,
71,
6904,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
10792,
21582,
12,
2704,
1770,
12,
82,
74,
16,
4766,
1377,
3742,
16,
4766,
1377,
949,
12,
588,
3910,
6952,
9334,
16609,
6952,
1435,
3631,
4766,
1377,
21036,
16,
4766,
1377,
10971,
10019,
10792,
898,
31,
5411,
289,
5397,
368,
5411,
368,
6781,
576,
30,
225,
7508,
461,
493,
33,
7508,
461,
263,
1068,
548,
5411,
368,
5411,
648,
576,
30,
288,
7734,
368,
7,
1369,
2872,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
1759,
89,
98,
21,
19,
1252,
19,
92,
2163,
19,
71,
6904,
19,
92,
2163,
18,
9576,
19,
4816,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
21036,
493,
33,
21036,
263,
1068,
548,
5411,
368,
5411,
648,
404,
30,
288,
7734,
368,
7,
1369,
1666,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
1759,
89,
98,
21,
19,
1252,
19,
92,
2163,
19,
71,
6904,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
7734,
1770,
21036,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
7734,
368,
7,
1369,
1725,
315,
39,
27824,
1759,
2066,
98,
21,
19,
4446,
14207,
19,
12062,
2
] |
||
public org.quickfix.field.DiscretionScope getDiscretionScope() throws FieldNotFound { org.quickfix.field.DiscretionScope value = new org.quickfix.field.DiscretionScope();
|
public quickfix.field.DiscretionScope getDiscretionScope() throws FieldNotFound { quickfix.field.DiscretionScope value = new quickfix.field.DiscretionScope();
|
public org.quickfix.field.DiscretionScope getDiscretionScope() throws FieldNotFound { org.quickfix.field.DiscretionScope value = new org.quickfix.field.DiscretionScope(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MultilegOrderCancelReplaceRequest.java/buggy/src/java/src/quickfix/fix44/MultilegOrderCancelReplaceRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
28912,
1349,
285,
3876,
336,
28912,
1349,
285,
3876,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
28912,
1349,
285,
3876,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
28912,
1349,
285,
3876,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
28912,
1349,
285,
3876,
336,
28912,
1349,
285,
3876,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
28912,
1349,
285,
3876,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
28912,
1349,
285,
3876,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (href != null) PlatformUI.getWorkbench().getHelpSystem().displayHelpResource(href); else PlatformUI.getWorkbench().getHelpSystem().displayHelpResource(topic);
|
if (href != null) { PlatformUI.getWorkbench().getHelpSystem().displayHelpResource(href); } else { PlatformUI.getWorkbench().getHelpSystem().displayHelpResource(topic); }
|
private void openHelpTopic(String topic, String href) { if (href != null) PlatformUI.getWorkbench().getHelpSystem().displayHelpResource(href); else PlatformUI.getWorkbench().getHelpSystem().displayHelpResource(topic); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/WelcomeItem.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1696,
6696,
6657,
12,
780,
3958,
16,
514,
3897,
13,
288,
3639,
309,
261,
7547,
480,
446,
13,
540,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
6696,
3163,
7675,
5417,
6696,
1420,
12,
7547,
1769,
3639,
469,
540,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
6696,
3163,
7675,
5417,
6696,
1420,
12,
10476,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3238,
918,
1696,
6696,
6657,
12,
780,
3958,
16,
514,
3897,
13,
288,
3639,
309,
261,
7547,
480,
446,
13,
540,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
6696,
3163,
7675,
5417,
6696,
1420,
12,
7547,
1769,
3639,
469,
540,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
6696,
3163,
7675,
5417,
6696,
1420,
12,
10476,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
System.out.println(newEdges);
|
private void createGraph(SIROperator current) { if (current instanceof SIRFilter) { FlatNode node = addFlatNode(current); if (top == null) { currentNode = node; top = node; } currentNode.addEdges(node); currentNode = node; } if (current instanceof SIRPipeline){ SIRPipeline pipeline = (SIRPipeline) current; for (int i=0; i<pipeline.size(); i++) { createGraph(pipeline.get(i)); } } if (current instanceof SIRSplitJoin) { SIRSplitJoin sj = (SIRSplitJoin) current; FlatNode splitterNode = addFlatNode (sj.getSplitter()); if (top == null) { currentNode = splitterNode; top = splitterNode; } FlatNode joinerNode = addFlatNode (sj.getJoiner()); currentNode.addEdges(splitterNode); for (int i = 0; i < sj.size(); i++) { currentNode = splitterNode; createGraph(sj.get(i)); currentNode.addEdges(joinerNode); } //Save Weight of Joiner int sumWeights=0; int[] oldWeights=joinerNode.incomingWeights; for(int i=0;i<oldWeights.length;i++) sumWeights+=oldWeights[i]; ((SIRJoiner)joinerNode.contents).oldSumWeights=sumWeights; if(StreamItOptions.sync) { //Coalesce Splitters //And Joiner-Splitter destruction if((((SIRSplitter)splitterNode.contents).getType()==SIRSplitType.ROUND_ROBIN)|| (((SIRSplitter)splitterNode.contents).getType()==SIRSplitType.WEIGHTED_RR)) { FlatNode adjacentJoin=splitterNode.incoming[0]; int[] offsetArray=new int[splitterNode.edges.length]; int[] remainderArray=new int[splitterNode.edges.length]; LinkedList newWeights=new LinkedList(); LinkedList newEdges=new LinkedList(); boolean loop=false; for(int i=0;i<splitterNode.edges.length;i++) { FlatNode childNode=splitterNode.edges[i]; if((childNode.contents instanceof SIRSplitter)&& ((((SIRSplitter)childNode.contents).getType()==SIRSplitType.ROUND_ROBIN)|| (((SIRSplitter)childNode.contents).getType()==SIRSplitType.WEIGHTED_RR))) { int off=0; int sum=0; int target=splitterNode.weights[i]; while(sum<target) { int oldSum=sum; sum+=childNode.weights[off]; if(sum<=splitterNode.weights[i]) { newWeights.add(new Integer(childNode.weights[off])); newEdges.add(childNode.edges[off]); } else { loop=true; int fit=splitterNode.weights[i]-oldSum; newWeights.add(new Integer(fit)); newEdges.add(childNode.edges[off]); remainderArray[i]=childNode.weights[off]-fit; break; } if((++off)==childNode.weights.length) off=0; } if(off!=0) loop=true; offsetArray[i]=off; } else { newWeights.add(new Integer(splitterNode.weights[i])); newEdges.add(childNode); offsetArray[i]=-1; //Ignore this edge in analysis } } while(loop) { loop=false; for(int i=0;i<offsetArray.length;i++) { int sum=0; int target=splitterNode.weights[i]; FlatNode childNode=splitterNode.edges[i]; if(offsetArray[i]<0) { newWeights.add(new Integer(target)); newEdges.add(childNode); continue; } int off=offsetArray[i]; int rem=remainderArray[i]; if(rem>0) if(rem<=target) { sum+=rem; newWeights.add(new Integer(rem)); newEdges.add(childNode.edges[off]); remainderArray[i]=0; if((++off)==childNode.weights.length) off=0; } else { loop=true; newWeights.add(new Integer(target)); newEdges.add(childNode.edges[off]); remainderArray[i]=rem-target; continue; } while(sum<target) { int oldSum=sum; sum+=childNode.weights[off]; if(sum<=target) { newWeights.add(new Integer(childNode.weights[off])); newEdges.add(childNode.edges[off]); remainderArray[i]=0; } else { loop=true; int fit=target-oldSum; newWeights.add(new Integer(fit)); newEdges.add(childNode.edges[off]); remainderArray[i]=childNode.weights[off]-fit; break; } if((++off)==childNode.weights.length) off=0; } //if(off==childNode.weights.length) //off=0; if(off!=0) loop=true; offsetArray[i]=off; } } //Fix Edges FlatNode[] tempEdges=((FlatNode[])newEdges.toArray(new FlatNode[0])); splitterNode.edges=tempEdges; int[] tempWeights=new int[newWeights.size()]; for(int i=0;i<tempWeights.length;i++) { tempWeights[i]=((Integer)newWeights.get(i)).intValue(); } splitterNode.weights=tempWeights; splitterNode.currentEdge=tempEdges.length; splitterNode.ways=tempEdges.length; for(int i=0;i<tempEdges.length;i++) tempEdges[i].incoming[0]=splitterNode; //Joiner-Splitter Destruction if(adjacentJoin.contents instanceof SIRJoiner) { SIRMap.remove(adjacentJoin.contents); //Unneeded int[] inWeights=adjacentJoin.incomingWeights; int[] outWeights=splitterNode.weights; FlatNode[] inEdges=adjacentJoin.incoming; FlatNode[] outEdges=splitterNode.edges; int inSum=0; int outSum=0; //System.out.print("[ "); for(int i=0;i<inWeights.length;i++) { inSum+=inWeights[i]; //System.out.print(inWeights[i]+" "); } //System.out.println("]"); //System.out.print("[ "); for(int i=0;i<outWeights.length;i++) { outSum+=outWeights[i]; //System.out.print(outWeights[i]+" "); } //System.out.println("]"); int inTimes=1; int outTimes=1; int inTotal=inSum; int outTotal=outSum; while(inTotal!=outTotal) { if(inTotal<outTotal) { inTotal+=inSum; inTimes++; } else { outTotal+=outSum; outTimes++; } } int off=0; int rem=0; LinkedList[] inWeightList=new LinkedList[outEdges.length]; LinkedList[] inEdgeList=new LinkedList[outEdges.length]; for(int i=0;i<outEdges.length;i++) { inWeightList[i]=new LinkedList(); inEdgeList[i]=new LinkedList(); } HashMap needSplit=new HashMap(); for(;outTimes>0;outTimes--) for(int i=0;i<outWeights.length;i++) { int sum=0; int target=outWeights[i]; FlatNode inEdge=inEdges[off]; FlatNode ident=new FlatNode(new SIRIdentity(null,"Ident",Util.getOutputType(inEdge))); ident.inputs=1; ident.ways=1; ident.weights=new int[]{1}; ident.incoming=new FlatNode[]{inEdge}; inEdge.edges=new FlatNode[]{ident}; LinkedList currentWeights=inWeightList[i]; LinkedList currentEdges=inEdgeList[i]; LinkedList entry=(LinkedList)needSplit.get(inEdge); if(rem>0) if(rem>target) { rem-=target; Integer weight=new Integer(target); currentWeights.add(weight); currentEdges.add(ident); if(entry==null) { entry=new LinkedList(); entry.add(weight); entry.add(ident); needSplit.put(inEdge,entry); } else { entry.add(weight); entry.add(ident); } continue; } else { sum=rem; Integer weight=new Integer(rem); rem=0; currentWeights.add(weight); currentEdges.add(ident); if(entry==null) { entry=new LinkedList(); entry.add(weight); entry.add(ident); needSplit.put(inEdge,entry); } else { entry.add(weight); entry.add(ident); } if((++off)==inWeights.length) off=0; } while(sum<target) { inEdge=inEdges[off]; entry=(LinkedList)needSplit.get(inEdge); ident=new FlatNode(new SIRIdentity(null,"Ident",Util.getOutputType(inEdge))); ident.inputs=1; ident.ways=1; ident.weights=new int[]{1}; ident.incoming=new FlatNode[]{inEdge}; inEdge.edges=new FlatNode[]{ident}; int weightInt=inWeights[off]; int oldSum=sum; sum+=weightInt; if(sum<=target) { Integer weight=new Integer(weightInt); currentWeights.add(weight); currentEdges.add(ident); if(entry==null) { entry=new LinkedList(); entry.add(weight); entry.add(ident); needSplit.put(inEdge,entry); } else { entry.add(weight); entry.add(ident); } if((++off)==inWeights.length) off=0; } else { Integer weight=new Integer(target-oldSum); rem=sum-target; currentWeights.add(weight); currentEdges.add(ident); if(entry==null) { entry=new LinkedList(); entry.add(weight); entry.add(ident); needSplit.put(inEdge,entry); } else { entry.add(weight); entry.add(ident); } } } } //Fix Edges for(int i=0;i<inWeightList.length;i++) { LinkedList curWeights=inWeightList[i]; LinkedList curEdges=inEdgeList[i]; FlatNode out=outEdges[i]; if(curWeights.size()==1) { ((FlatNode)curEdges.get(0)).edges=new FlatNode[]{out}; out.incoming[0]=(FlatNode)curEdges.get(0); } else { SIRJoiner newContents=SIRJoiner.createWeightedRR(null,new JExpression[0]); FlatNode newJoin=new FlatNode(newContents); newJoin.oldContents=adjacentJoin.contents; ((SIRJoiner)newJoin.contents).oldSumWeights=((SIRJoiner)adjacentJoin.contents).oldSumWeights; SIRMap.put(newContents,newJoin); //To be counted correctly newJoin.inputs=curWeights.size(); newJoin.ways=1; int[] joinWeights=new int[curWeights.size()]; int newSum=0; for(int j=0;j<joinWeights.length;j++) { int temp=((Integer)curWeights.get(j)).intValue(); joinWeights[j]=temp; newSum+=temp; } newJoin.incomingWeights=joinWeights; newJoin.weights=new int[]{1}; newJoin.incoming=(FlatNode[])curEdges.toArray(new FlatNode[0]); newJoin.edges=new FlatNode[]{out}; out.incoming[0]=newJoin; for(int j=0;j<curEdges.size();j++) { ((FlatNode)curEdges.get(j)).edges=new FlatNode[]{newJoin}; } newJoin.schedDivider=inTotal; newJoin.schedMult=newSum; needsToBeSched.add(newJoin); } } Iterator iter=needSplit.keySet().iterator(); while(iter.hasNext()) { FlatNode in=(FlatNode)iter.next(); LinkedList list=(LinkedList)needSplit.get(in); if(list.size()==2) { ((FlatNode)list.get(1)).incoming=new FlatNode[]{inEdges[off]}; } else { int size=list.size()/2; FlatNode dummySplit=new FlatNode(SIRSplitter.createWeightedRR(null,new JExpression[0])); dummySplit.inputs=1; dummySplit.incoming=new FlatNode[]{in}; in.edges[0]=dummySplit; int[] dummyWeights=new int[size]; FlatNode[] dummyEdges=new FlatNode[size]; for(int j=0,offset=0;j<list.size();j+=2,offset++) { dummyWeights[offset]=((Integer)list.get(j)).intValue(); dummyEdges[offset]=(FlatNode)list.get(j+1); ((FlatNode)list.get(j+1)).incoming[0]=dummySplit; } dummySplit.ways=size; dummySplit.edges=dummyEdges; dummySplit.weights=dummyWeights; } } } } //Coalesce Joiners if((((SIRJoiner)joinerNode.contents).getType()==SIRJoinType.ROUND_ROBIN)|| (((SIRJoiner)joinerNode.contents).getType()==SIRJoinType.WEIGHTED_RR)) { int[] offsetArray=new int[joinerNode.incoming.length]; int[] remainderArray=new int[joinerNode.incoming.length]; LinkedList newWeights=new LinkedList(); LinkedList newEdges=new LinkedList(); boolean loop=false; for(int i=0;i<joinerNode.incoming.length;i++) { FlatNode childNode=joinerNode.incoming[i]; if((childNode.contents instanceof SIRJoiner)&& ((((SIRJoiner)childNode.contents).getType()==SIRJoinType.ROUND_ROBIN)|| (((SIRJoiner)childNode.contents).getType()==SIRJoinType.WEIGHTED_RR))) { SIRMap.remove(childNode.contents); //Unneeded int off=0; int sum=0; int target=joinerNode.incomingWeights[i]; while(sum<target) { int oldSum=sum; sum+=childNode.incomingWeights[off]; if(sum<=target) { newWeights.add(new Integer(childNode.incomingWeights[off])); newEdges.add(childNode.incoming[off]); } else { loop=true; int fit=joinerNode.incomingWeights[i]-oldSum; newWeights.add(new Integer(fit)); newEdges.add(childNode.incoming[off]); remainderArray[i]=childNode.incomingWeights[off]-fit; break; } if((++off)==childNode.incomingWeights.length) off=0; } if(off!=0) loop=true; offsetArray[i]=off; } else { newWeights.add(new Integer(joinerNode.incomingWeights[i])); newEdges.add(childNode); offsetArray[i]=-1; //Ignore this edge in analysis } } while(loop) { loop=false; for(int i=0;i<offsetArray.length;i++) { int sum=0; int target=joinerNode.incomingWeights[i]; FlatNode childNode=joinerNode.incoming[i]; if(offsetArray[i]<0) { newWeights.add(new Integer(target)); newEdges.add(childNode); continue; } int off=offsetArray[i]; int rem=remainderArray[i]; if(rem>0) if(rem<=target) { sum+=rem; newWeights.add(new Integer(rem)); newEdges.add(childNode.incoming[off]); remainderArray[i]=0; if((++off)==childNode.incomingWeights.length) off=0; } else { loop=true; newWeights.add(new Integer(target)); newEdges.add(childNode.incoming[off]); remainderArray[i]=rem-target; continue; } while(sum<target) { int oldSum=sum; sum+=childNode.incomingWeights[off]; if(sum<=target) { newWeights.add(new Integer(childNode.incomingWeights[off])); newEdges.add(childNode.incoming[off]); remainderArray[i]=0; } else { loop=true; int fit=target-oldSum; newWeights.add(new Integer(fit)); newEdges.add(childNode.incoming[off]); remainderArray[i]=sum-target; break; } if((++off)==childNode.incomingWeights.length) off=0; } if(off!=0) loop=true; offsetArray[i]=off; } } //Fix Edges FlatNode[] tempEdges=((FlatNode[])newEdges.toArray(new FlatNode[0])); joinerNode.incoming=tempEdges; int[] tempWeights=new int[newWeights.size()]; for(int i=0;i<tempWeights.length;i++) { tempWeights[i]=((Integer)newWeights.get(i)).intValue(); } System.out.println(newEdges); joinerNode.incomingWeights=tempWeights; joinerNode.currentIncoming=tempEdges.length; joinerNode.inputs=tempEdges.length; /*ArrayList visited=new ArrayList(tempEdges.length); for(int i=0;i<tempEdges.length;i++) { FlatNode node=tempEdges[i]; //node.edges=new FlatNode[]{joinerNode}; node.edges[0]=joinerNode; if(visited.contains(node)) node.weights[0]+=1; else { visited.add(node); node.weights[0]=1; } }*/ HashMap visited=new HashMap(); SIRSplitter dummySplit=SIRSplitter.create(null,SIRSplitType.NULL,0); for(int i=0;i<newEdges.size();i++) { FlatNode node=(FlatNode)newEdges.get(i); LinkedList edges=(LinkedList)visited.get(node); if(edges==null) { edges=new LinkedList(); FlatNode ident=new FlatNode(new SIRIdentity(null,"Ident",Util.getOutputType(node))); FlatNode split=new FlatNode(SIRSplitter.createWeightedRR(null,new JExpression[0])); node.edges[0]=split; split.inputs=1; split.incoming=new FlatNode[]{node}; ident.inputs=1; ident.ways=1; ident.weights=new int[]{1}; ident.incoming=new FlatNode[]{split}; ident.edges=new FlatNode[]{joinerNode}; tempEdges[i]=ident; edges.add(split); //0th elem of edges edges.add(ident); //Then comes ident weight pairs edges.add(newWeights.get(i)); visited.put(node,edges); } else { FlatNode ident=new FlatNode(new SIRIdentity(null,"Ident",Util.getOutputType(node))); FlatNode split=(FlatNode)edges.get(0); ident.inputs=1; ident.ways=1; ident.weights=new int[]{1}; ident.incoming=new FlatNode[]{split}; ident.edges=new FlatNode[]{joinerNode}; tempEdges[i]=ident; edges.add(ident); //Then comes ident weight pairs edges.add(newWeights.get(i)); } } Iterator iter=visited.keySet().iterator(); while(iter.hasNext()) { FlatNode node=(FlatNode)iter.next(); List list=(List)visited.get(node); FlatNode split=(FlatNode)list.get(0); int size=(list.size()-1)/2; split.edges=new FlatNode[size]; split.weights=new int[size]; split.ways=size; if(size==1) { FlatNode ident=(FlatNode)list.get(1); node.edges[0]=ident; ident.incoming[0]=node; needsToBeSched.add(ident); } else { needsToBeSched.add(split); for(int i=1,off=0;i<list.size();i+=2,off++) { split.edges[off]=(FlatNode)list.get(i); int weight=((Integer)list.get(i+1)).intValue(); split.weights[off]=weight; } } } } } currentNode = joinerNode; } //HACK!! //note: this algorithm incorrectly connects the splitter of a //feedbackloop to the loop before it connects the splitter to the //next downstream stream. //to fix this, quickly, create a list of the splitters of fbl //and swap the edges after the algorithm is finished...nice if (current instanceof SIRFeedbackLoop) { SIRFeedbackLoop loop = (SIRFeedbackLoop)current; FlatNode joinerNode = addFlatNode (loop.getJoiner()); if (top == null) { //currentNode = joinerNode; top = joinerNode; } FlatNode splitterNode = addFlatNode (loop.getSplitter()); FlatNode.addEdges(currentNode, joinerNode); currentNode = joinerNode; createGraph(loop.getBody()); FlatNode.addEdges(currentNode, splitterNode); //here is the hack! swapEdgesLater(splitterNode); currentNode = splitterNode; createGraph(loop.getLoop()); FlatNode.addEdges(currentNode, joinerNode); FlatNode ident=new FlatNode(new SIRIdentity(null,"Ident",Util.getOutputType(splitterNode.edges[0]))); FlatNode.addEdges(splitterNode, ident); currentNode = ident; //Save Weight of Joiner int sumWeights=0; int[] oldWeights=joinerNode.incomingWeights; for(int i=0;i<oldWeights.length;i++) sumWeights+=oldWeights[i]; ((SIRJoiner)joinerNode.contents).oldSumWeights=sumWeights; } }
|
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/d9e46b7ab2173163451bbafe34910ee98ce1087a/RawFlattener.java/buggy/streams/src/at/dms/kjc/raw/RawFlattener.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
4137,
12,
2320,
1457,
457,
639,
783,
13,
377,
288,
202,
430,
261,
2972,
1276,
5705,
54,
1586,
13,
288,
202,
565,
20396,
907,
756,
273,
527,
16384,
907,
12,
2972,
1769,
202,
565,
309,
261,
3669,
422,
446,
13,
288,
202,
202,
2972,
907,
273,
756,
31,
202,
202,
3669,
273,
756,
31,
202,
565,
289,
202,
377,
202,
565,
13425,
18,
1289,
10697,
12,
2159,
1769,
202,
565,
13425,
273,
756,
31,
202,
97,
202,
430,
261,
2972,
1276,
5705,
54,
8798,
15329,
202,
565,
5705,
54,
8798,
5873,
273,
261,
2320,
54,
8798,
13,
783,
31,
202,
377,
202,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
14511,
18,
1467,
5621,
277,
27245,
288,
202,
202,
2640,
4137,
12,
14511,
18,
588,
12,
77,
10019,
202,
565,
289,
202,
97,
202,
430,
261,
2972,
1276,
5705,
54,
5521,
4572,
13,
288,
202,
565,
5705,
54,
5521,
4572,
30252,
273,
261,
2320,
54,
5521,
4572,
13,
783,
31,
202,
565,
20396,
907,
21553,
907,
273,
527,
16384,
907,
261,
87,
78,
18,
588,
26738,
10663,
202,
565,
309,
261,
3669,
422,
446,
13,
288,
202,
202,
2972,
907,
273,
21553,
907,
31,
202,
202,
3669,
273,
21553,
907,
31,
202,
565,
289,
202,
377,
202,
565,
20396,
907,
29620,
907,
273,
527,
16384,
907,
261,
87,
78,
18,
588,
4572,
264,
10663,
202,
377,
202,
377,
202,
565,
13425,
18,
1289,
10697,
12,
4939,
387,
907,
1769,
202,
565,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
4137,
12,
2320,
1457,
457,
639,
783,
13,
377,
288,
202,
430,
261,
2972,
1276,
5705,
54,
1586,
13,
288,
202,
565,
20396,
907,
756,
273,
527,
16384,
907,
12,
2972,
1769,
202,
565,
309,
261,
3669,
422,
446,
13,
288,
202,
202,
2972,
907,
273,
756,
31,
202,
202,
3669,
273,
756,
31,
202,
565,
289,
202,
377,
202,
565,
13425,
18,
1289,
10697,
12,
2159,
1769,
202,
565,
13425,
273,
756,
31,
202,
97,
202,
430,
261,
2972,
1276,
5705,
54,
8798,
15329,
202,
565,
5705,
54,
8798,
5873,
273,
261,
2320,
54,
8798,
13,
783,
31,
202,
377,
202,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
14511,
18,
1467,
2
] |
|
if ( compareDates(date, fMinExclusive) != GREATER_THAN ) {
|
if ( compareDates(date, fMinExclusive, true) != GREATER_THAN ) {
|
protected void validateDate (int[] date, String content) throws InvalidDatatypeValueException{ if ( this.fBaseValidator != null ) {//validate against parent type if any if ( (fFacetsDefined & DatatypeValidator.FACET_PATTERN ) != 0 ) { if ( fRegex == null || fRegex.matches( content) == false ) throw new InvalidDatatypeValueException("Value'"+content+ "' does not match regular expression facet " + fRegex.getPattern() ); } //validate against base type ((DateTimeValidator)this.fBaseValidator).validateDate( date, content); if ( (fFacetsDefined & DatatypeValidator.FACET_ENUMERATION ) != 0 ) { int count=0; boolean valid = false; while ( count < fEnumSize ) { if ( compareDates(date, fEnumeration[count]) == EQUAL ) { valid = true; break; } count++; } if ( !valid ) { throw new InvalidDatatypeValueException("Value'"+content+ "' does not match enumeration values" ); } } // REVISIT: output values for facets in error message short c; if ( fMinInclusive != null ) { c = compareDates(date, fMinInclusive); if ( c == LESS_THAN || c == INDETERMINATE ) { throw new InvalidDatatypeValueException("Value '"+content+ "' is less than minInclusive: " +dateToString(fMinInclusive) ); } } if ( fMinExclusive != null ) { if ( compareDates(date, fMinExclusive) != GREATER_THAN ) { throw new InvalidDatatypeValueException("Value '"+content+ "' is less than or equal to minExclusive: " +dateToString(fMinExclusive)); } } if ( fMaxInclusive != null ) { c = compareDates(date, fMaxInclusive ); if ( c == GREATER_THAN || c == INDETERMINATE ) { throw new InvalidDatatypeValueException("Value '"+content+ "' is greater than maxInclusive: " +dateToString(fMaxInclusive) ); } } if ( fMaxExclusive != null ) { if ( compareDates(date, fMaxExclusive ) != LESS_THAN ) { throw new InvalidDatatypeValueException("Value '"+content+ "' is greater than or equal to maxExlusive: " +dateToString(fMaxExclusive) ); } } } else { return; } }
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/d11171b6f289875367b5f2a79923d9a372c80472/DateTimeValidator.java/buggy/src/org/apache/xerces/validators/datatype/DateTimeValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1954,
1626,
261,
474,
8526,
1509,
16,
514,
913,
13,
1216,
1962,
20228,
9738,
95,
3639,
309,
261,
333,
18,
74,
2171,
5126,
480,
446,
262,
288,
759,
5662,
5314,
982,
618,
309,
1281,
5411,
309,
261,
261,
74,
6645,
2413,
8116,
473,
21168,
5126,
18,
11300,
56,
67,
10831,
262,
480,
374,
262,
288,
7734,
309,
261,
284,
6628,
422,
446,
747,
284,
6628,
18,
8436,
12,
913,
13,
422,
629,
262,
10792,
604,
394,
1962,
20228,
9738,
2932,
620,
4970,
15,
1745,
15,
4766,
18701,
2491,
1552,
486,
845,
6736,
2652,
11082,
315,
397,
284,
6628,
18,
588,
3234,
1435,
11272,
5411,
289,
5411,
368,
5662,
5314,
1026,
618,
5411,
14015,
5096,
5126,
13,
2211,
18,
74,
2171,
5126,
2934,
5662,
1626,
12,
1509,
16,
913,
1769,
5411,
309,
261,
261,
74,
6645,
2413,
8116,
473,
21168,
5126,
18,
11300,
56,
67,
16509,
654,
2689,
262,
480,
374,
262,
288,
7734,
509,
1056,
33,
20,
31,
7734,
1250,
923,
273,
629,
31,
7734,
1323,
261,
1056,
411,
284,
3572,
1225,
262,
288,
10792,
309,
261,
3400,
15578,
12,
712,
16,
284,
21847,
63,
1883,
5717,
422,
18231,
262,
288,
13491,
923,
273,
638,
31,
13491,
898,
31,
10792,
289,
10792,
1056,
9904,
31,
7734,
289,
7734,
309,
261,
401,
877,
262,
288,
10792,
604,
394,
1962,
20228,
9738,
2932,
620,
4970,
15,
1745,
15,
4766,
18701,
2491,
1552,
486,
845,
16836,
924,
6,
11272,
7734,
289,
5411,
289,
5411,
368,
2438,
26780,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1954,
1626,
261,
474,
8526,
1509,
16,
514,
913,
13,
1216,
1962,
20228,
9738,
95,
3639,
309,
261,
333,
18,
74,
2171,
5126,
480,
446,
262,
288,
759,
5662,
5314,
982,
618,
309,
1281,
5411,
309,
261,
261,
74,
6645,
2413,
8116,
473,
21168,
5126,
18,
11300,
56,
67,
10831,
262,
480,
374,
262,
288,
7734,
309,
261,
284,
6628,
422,
446,
747,
284,
6628,
18,
8436,
12,
913,
13,
422,
629,
262,
10792,
604,
394,
1962,
20228,
9738,
2932,
620,
4970,
15,
1745,
15,
4766,
18701,
2491,
1552,
486,
845,
6736,
2652,
11082,
315,
397,
284,
6628,
18,
588,
3234,
1435,
11272,
5411,
289,
5411,
368,
5662,
5314,
1026,
618,
5411,
14015,
5096,
5126,
13,
2
] |
System.out.println("- type = " + type);
|
public MetadataSchema load(String xmlSchemaFile) throws Exception { if (xmlSchemaFile.startsWith("_")) return new MetadataSchema(new Element("root")); //--- PHASE 1 : pre-processing //--- //--- the xml file is parsed and simplified. Xml schema subtrees are //--- wrapped in some classes ArrayList alElementFiles = loadFile(xmlSchemaFile, new HashSet()); parseElements(alElementFiles); //--- PHASE 2 : resolve abstract elements for(Iterator i=hmSubsGrp.keySet().iterator(); i.hasNext();) { String elem = (String) i.next(); ArrayList elements = (ArrayList) hmSubsGrp.get(elem); for(int j=0; j<elements.size(); j++) { ElementEntry ee = (ElementEntry) elements.get(j); if (ee.type == null) { ee.type = (String) hmAbsElems.get(elem); if (ee.type == null) throw new IllegalArgumentException("Type is null for 'element' : " + ee.name); } hmElements.put(ee.name, ee.type); } } //--- PHASE 3 : add elements MetadataSchema mds = new MetadataSchema(elRoot); for(Iterator i=hmElements.keySet().iterator(); i.hasNext();) { String elem = (String) i.next(); String type = (String) hmElements.get(elem); ArrayList elemRestr = (ArrayList) hmElemRestr.get(elem); ArrayList typeRestr = (ArrayList) hmTypeRestr.get(type); if (elemRestr == null) elemRestr = new ArrayList(); if (typeRestr != null) elemRestr.addAll(typeRestr); mds.addElement(elem, type, elemRestr); } //--- PHASE 4 : post-processing //--- //--- resolve abstract types, attribute/substitution groups and other stuff for(Iterator i=hmTypes.values().iterator(); i.hasNext();) { ComplexTypeEntry cte = (ComplexTypeEntry) i.next(); MetadataType mdt = new MetadataType(); mdt.setOrType(cte.isOrType); //--- generate attribs if (cte.attribGroup != null) { ArrayList al = (ArrayList) hmAttrGrp.get(cte.attribGroup); if (al == null) throw new IllegalArgumentException("Attribute group not found : " + cte.attribGroup); for(int j=0; j<al.size(); j++) { AttributeEntry ae = (AttributeEntry) al.get(j); mdt.addAttribute(buildMetadataAttrib(ae)); } } //--- resolve inheritance & add attribs from complexContent if (cte.complexContent != null) { if (cte.complexContent.base != null) cte.alElements = resolveInheritance(cte); //--- add attribs from complexContent (if any) for(int j=0; j<cte.complexContent.alAttribs.size(); j++) { AttributeEntry ae = (AttributeEntry) cte.complexContent.alAttribs.get(j); mdt.addAttribute(buildMetadataAttrib(ae)); } } if (cte.groupRef != null) { GroupEntry ge = (GroupEntry) hmGroups.get(cte.groupRef); if (ge == null) throw new IllegalArgumentException("Group ref not found for complex type :" +cte.groupRef); if (ge.isChoice) { ElementEntry ee = (ElementEntry) ge.alElements.get(0); ElementEntry eeRef = (ElementEntry) hmElements.get(ee.ref); //--- if the ref was not found then we have an abstract element if (eeRef == null) { ArrayList al = (ArrayList) hmSubsGrp.get(ee.ref); if (al == null) throw new IllegalArgumentException("Abstract elem not found in substGroup : " +ee.ref); for(int k=0; k<al.size(); k++) { ElementEntry eeDer = (ElementEntry) al.get(k); mdt.addElement(eeDer.name, ee.min, ee.max); } } else throw new IllegalArgumentException("Found not abstract element in choice : " +eeRef.name); } } //--- handle type's elements else for(int j=0; j<cte.alElements.size(); j++) { ElementEntry ee = (ElementEntry) cte.alElements.get(j); System.out.println("resolving element " + (ee.name == null ? (" --> " + ee.ref) : ee.name)); // DEBUG String type; if (ee.ref != null) { type = (String) hmElements.get(ee.ref); System.out.println("- type = " + type); // DEBUG } else { if (ee.name == null) throw new IllegalArgumentException("Reference and name are null for element : " + ee.name); // RGFIX type = "string"; type = ee.type == null ? "string" : ee.type; System.out.println("- type = " + type); // DEBUG mds.addElement(ee.name, type, new ArrayList()); } //--- if type is null we have an abstract type if (type == null) { ArrayList al = (ArrayList) hmSubsGrp.get(ee.ref); if (al == null) { al = (ArrayList) hmSubsLink.get(ee.ref); /* RGFIX: found singleton subst-group with only one abstract element if (al == null) throw new IllegalArgumentException("Reference not found inside subst-group : "+ee.ref); mdt.addElement(ee.ref, ee.min, ee.max); */ if (al != null) mdt.addElement(ee.ref, ee.min, ee.max); } else { mdt.setOrType(al.size() > 1); for(int k=0; k<al.size(); k++) { ee = (ElementEntry) al.get(k); mdt.addElement(ee.name, ee.min, ee.max); } } } else { String elemName = (ee.ref == null) ? ee.name : ee.ref; mdt.addElement(elemName, ee.min, ee.max); } } mds.addType(cte.name, mdt); } return mds; }
|
53415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53415/209d6b9f4b609f6f1cd9305ed3112eb21bc62cad/SchemaLoader.java/clean/src/org/fao/geonet/kernel/schema/SchemaLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6912,
3078,
1262,
12,
780,
2025,
3078,
812,
13,
1216,
1185,
202,
95,
202,
202,
430,
261,
2902,
3078,
812,
18,
17514,
1190,
2932,
9548,
3719,
327,
394,
6912,
3078,
12,
2704,
3010,
2932,
3085,
7923,
1769,
202,
202,
759,
6062,
15490,
4429,
404,
294,
675,
17,
10632,
202,
202,
759,
6062,
202,
202,
759,
6062,
326,
2025,
585,
353,
2707,
471,
20482,
18,
5714,
1963,
720,
17204,
854,
202,
202,
759,
6062,
5805,
316,
2690,
3318,
202,
202,
19558,
524,
1046,
2697,
273,
26953,
12,
2902,
3078,
812,
16,
394,
6847,
10663,
202,
202,
2670,
3471,
12,
287,
1046,
2697,
1769,
202,
202,
759,
6062,
15490,
4429,
576,
294,
2245,
8770,
2186,
202,
202,
1884,
12,
3198,
277,
33,
76,
81,
26123,
43,
13832,
18,
856,
694,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
202,
202,
95,
1082,
202,
780,
3659,
273,
261,
780,
13,
277,
18,
4285,
5621,
1082,
202,
19558,
2186,
273,
261,
19558,
13,
16349,
26123,
43,
13832,
18,
588,
12,
10037,
1769,
1082,
202,
1884,
12,
474,
525,
33,
20,
31,
525,
32,
6274,
18,
1467,
5621,
525,
27245,
1082,
202,
95,
9506,
202,
1046,
1622,
14657,
273,
261,
1046,
1622,
13,
2186,
18,
588,
12,
78,
1769,
9506,
202,
430,
261,
1340,
18,
723,
422,
446,
13,
9506,
202,
95,
6862,
202,
1340,
18,
723,
273,
261,
780,
13,
16349,
9382,
23207,
18,
588,
12,
10037,
1769,
6862,
202,
430,
261,
1340,
18,
723,
422,
446,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6912,
3078,
1262,
12,
780,
2025,
3078,
812,
13,
1216,
1185,
202,
95,
202,
202,
430,
261,
2902,
3078,
812,
18,
17514,
1190,
2932,
9548,
3719,
327,
394,
6912,
3078,
12,
2704,
3010,
2932,
3085,
7923,
1769,
202,
202,
759,
6062,
15490,
4429,
404,
294,
675,
17,
10632,
202,
202,
759,
6062,
202,
202,
759,
6062,
326,
2025,
585,
353,
2707,
471,
20482,
18,
5714,
1963,
720,
17204,
854,
202,
202,
759,
6062,
5805,
316,
2690,
3318,
202,
202,
19558,
524,
1046,
2697,
273,
26953,
12,
2902,
3078,
812,
16,
394,
6847,
10663,
202,
202,
2670,
3471,
12,
287,
1046,
2697,
1769,
202,
202,
759,
6062,
15490,
4429,
576,
294,
2245,
8770,
2186,
202,
202,
1884,
2
] |
|
public boolean isSet(org.quickfix.field.QuoteReqID field)
|
public boolean isSet(quickfix.field.QuoteReqID field)
|
public boolean isSet(org.quickfix.field.QuoteReqID field) { return isSetField(field); }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MassQuoteAcknowledgement.java/clean/src/java/src/quickfix/fix43/MassQuoteAcknowledgement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
10257,
6113,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
10257,
6113,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
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
] |
}
|
public void addToMenuBar(JMenu[] menus, boolean before) { JMenuBar bar = getJMenuBar(); if (before) { JMenu[] existingMenus = new JMenu[bar.getMenuCount()]; for (int i = 0; i < existingMenus.length; i++) { existingMenus[i] = bar.getMenu(i); } bar.removeAll(); for (int j = 0; j < menus.length; j++) { bar.add(menus[j]); } for (int i = 0; i < existingMenus.length; i++) { bar.add(existingMenus[i]); } } else { for (int j = 0; j < menus.length; j++) { bar.add(menus[j]); } } }
|
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/TaskBarView.java/clean/SRC/org/openmicroscopy/shoola/env/ui/TaskBarView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
9604,
4599,
5190,
12,
46,
4599,
8526,
21374,
16,
1250,
1865,
13,
565,
288,
3639,
804,
4599,
5190,
4653,
273,
9285,
4599,
5190,
5621,
3639,
309,
261,
5771,
13,
288,
5411,
804,
4599,
8526,
2062,
29755,
273,
394,
804,
4599,
63,
3215,
18,
588,
4599,
1380,
1435,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2062,
29755,
18,
2469,
31,
277,
27245,
288,
7734,
2062,
29755,
63,
77,
65,
273,
4653,
18,
588,
4599,
12,
77,
1769,
15604,
4653,
18,
4479,
1595,
5621,
5411,
364,
261,
474,
525,
273,
374,
31,
525,
411,
21374,
18,
2469,
31,
525,
27245,
288,
7734,
4653,
18,
1289,
12,
26065,
63,
78,
19226,
15604,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2062,
29755,
18,
2469,
31,
277,
27245,
288,
7734,
4653,
18,
1289,
12,
11711,
29755,
63,
77,
19226,
10402,
469,
288,
5411,
364,
261,
474,
525,
273,
374,
31,
525,
411,
21374,
18,
2469,
31,
525,
27245,
288,
7734,
4653,
18,
1289,
12,
26065,
63,
78,
19226,
8227,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
9604,
4599,
5190,
12,
46,
4599,
8526,
21374,
16,
1250,
1865,
13,
565,
288,
3639,
804,
4599,
5190,
4653,
273,
9285,
4599,
5190,
5621,
3639,
309,
261,
5771,
13,
288,
5411,
804,
4599,
8526,
2062,
29755,
273,
394,
804,
4599,
63,
3215,
18,
588,
4599,
1380,
1435,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2062,
29755,
18,
2469,
31,
277,
27245,
288,
7734,
2062,
29755,
63,
77,
65,
273,
4653,
18,
588,
4599,
12,
77,
1769,
15604,
4653,
18,
4479,
1595,
5621,
5411,
364,
261,
474,
525,
273,
374,
31,
525,
411,
21374,
18,
2469,
31,
525,
27245,
288,
7734,
4653,
18,
1289,
12,
26065,
63,
78,
19226,
15604,
364,
261,
474,
2
] |
|
public java.awt.Component getCustomEditor() { return null; }
|
public java.awt.Component getCustomEditor() { return null; }
|
public java.awt.Component getCustomEditor() { return null; }
|
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/d1d54223348b2f353d3505c9de3cf685bdb5301f/PropertyEditorSupport.java/clean/libjava/java/beans/PropertyEditorSupport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
2219,
88,
18,
1841,
12736,
6946,
1435,
288,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
2219,
88,
18,
1841,
12736,
6946,
1435,
288,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 batteryStarting( ReportEntry report ) throws Exception { File reportFile = new File( getReportsDirectory(), report.getName() + ".txt" ); File reportDir = reportFile.getParentFile(); reportDir.mkdirs(); writer = new PrintWriter( new FileWriter( reportFile ) ); writer.println( "-------------------------------------------------------------------------------" ); writer.println( "Battery: " + report.getName() ); writer.println( "-------------------------------------------------------------------------------" ); }
|
52537 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52537/7bcd949a68bef518e8d2d66e201a2b93f851c791/FileReporter.java/clean/surefire/surefire/src/main/java/org/codehaus/surefire/report/FileReporter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
324,
23277,
11715,
12,
8706,
1622,
2605,
262,
3639,
1216,
1185,
565,
288,
3639,
1387,
2605,
812,
273,
394,
1387,
12,
5561,
4363,
2853,
9334,
2605,
18,
17994,
1435,
397,
3552,
5830,
6,
11272,
3639,
1387,
2605,
1621,
273,
2605,
812,
18,
588,
3054,
812,
5621,
3639,
2605,
1621,
18,
24816,
8291,
5621,
3639,
2633,
273,
394,
14071,
12,
394,
24639,
12,
2605,
812,
262,
11272,
3639,
2633,
18,
8222,
12,
315,
5802,
18753,
6,
11272,
3639,
2633,
18,
8222,
12,
315,
38,
23277,
30,
315,
397,
2605,
18,
17994,
1435,
11272,
3639,
2633,
18,
8222,
12,
315,
5802,
18753,
6,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
324,
23277,
11715,
12,
8706,
1622,
2605,
262,
3639,
1216,
1185,
565,
288,
3639,
1387,
2605,
812,
273,
394,
1387,
12,
5561,
4363,
2853,
9334,
2605,
18,
17994,
1435,
397,
3552,
5830,
6,
11272,
3639,
1387,
2605,
1621,
273,
2605,
812,
18,
588,
3054,
812,
5621,
3639,
2605,
1621,
18,
24816,
8291,
5621,
3639,
2633,
273,
394,
14071,
12,
394,
24639,
12,
2605,
812,
262,
11272,
3639,
2633,
18,
8222,
12,
315,
5802,
18753,
6,
11272,
3639,
2633,
18,
8222,
12,
315,
38,
23277,
30,
315,
397,
2605,
18,
17994,
1435,
11272,
3639,
2633,
18,
8222,
12,
315,
5802,
18753,
6,
11272,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
protected AbstractLinkedList(Collection coll) {
|
protected AbstractLinkedList() {
|
protected AbstractLinkedList(Collection coll) { super(); init(); addAll(coll); }
|
55609 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55609/b5f8903b887117e33bc2dabe4d2f771efb42a9a6/AbstractLinkedList.java/buggy/src/java/org/apache/commons/collections/list/AbstractLinkedList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4115,
13174,
682,
1435,
288,
3639,
2240,
5621,
3639,
1208,
5621,
3639,
5428,
12,
12910,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4115,
13174,
682,
1435,
288,
3639,
2240,
5621,
3639,
1208,
5621,
3639,
5428,
12,
12910,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
synchronized (lock) {
|
public void testPersistManyAlarmsAtOnce() throws InterruptedException { int numberOfAlarmsToReduce = 10; //there should be no alarms in the alarms table assertEquals(0, m_db.countRows("select * from alarms")); final String reductionKey = "countThese"; final MockNode node = m_network.getNode(1); final long millis = System.currentTimeMillis()+2500; for (int i=1; i<= numberOfAlarmsToReduce; i++) { MockUtil.println("Creating Runnable: "+i+" of "+numberOfAlarmsToReduce+" events to reduce."); class EventRunner implements Runnable { Object lock = new Object(); public void run() { synchronized (lock) { while (System.currentTimeMillis() < millis) { try { lock.wait(10); } catch (InterruptedException e) { MockUtil.println(e.getMessage()); } } sendNodeDownEvent(reductionKey, node); } } } Runnable r = new EventRunner(); r.run(); } sleep(5000); //this should be the first occurrence of this alarm //there should be 1 alarm now int rowCount = m_db.countRows("select * from alarms"); Integer counterColumn = m_db.getAlarmCount(reductionKey); MockUtil.println("rowcCount is: "+rowCount+", expected 1."); MockUtil.println("counterColumn is: "+counterColumn+", expected "+numberOfAlarmsToReduce); assertEquals(1, rowCount); assertEquals(numberOfAlarmsToReduce, counterColumn.intValue()); }
|
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/b6070de31fbe4619461fa1179f780bd207ab3ab8/EventdTest.java/clean/src/services/org/opennms/netmgt/eventd/EventdTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
12771,
5594,
1067,
20452,
861,
12212,
1435,
1216,
7558,
288,
7734,
509,
7922,
1067,
20452,
774,
12944,
273,
1728,
31,
3639,
368,
18664,
1410,
506,
1158,
524,
20452,
316,
326,
524,
20452,
1014,
3639,
1815,
8867,
12,
20,
16,
312,
67,
1966,
18,
1883,
4300,
2932,
4025,
380,
628,
524,
20452,
7923,
1769,
540,
727,
514,
20176,
653,
273,
315,
1883,
29690,
14432,
3639,
727,
7867,
907,
756,
273,
312,
67,
5185,
18,
588,
907,
12,
21,
1769,
7734,
727,
1525,
14833,
273,
2332,
18,
2972,
28512,
1435,
15,
2947,
713,
31,
7734,
364,
261,
474,
277,
33,
21,
31,
277,
32,
33,
7922,
1067,
20452,
774,
12944,
31,
277,
27245,
288,
5411,
7867,
1304,
18,
8222,
2932,
11092,
10254,
30,
13773,
77,
9078,
434,
13773,
2696,
951,
1067,
20452,
774,
12944,
9078,
2641,
358,
5459,
1199,
1769,
5411,
667,
2587,
9709,
4792,
10254,
288,
7734,
1033,
2176,
273,
394,
1033,
5621,
7734,
1071,
918,
1086,
1435,
288,
4766,
5411,
1323,
261,
3163,
18,
2972,
28512,
1435,
411,
14833,
13,
288,
18701,
775,
288,
27573,
2176,
18,
7048,
12,
2163,
1769,
18701,
289,
1044,
261,
24485,
503,
425,
13,
288,
27573,
7867,
1304,
18,
8222,
12,
73,
18,
24906,
10663,
18701,
289,
13491,
289,
13491,
1366,
907,
4164,
1133,
12,
1118,
4062,
653,
16,
756,
1769,
4766,
3639,
289,
7734,
289,
5411,
289,
13491,
10254,
436,
273,
394,
2587,
9709,
5621,
5411,
436,
18,
2681,
5621,
3639,
289,
3639,
5329,
12,
25,
3784,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
12771,
5594,
1067,
20452,
861,
12212,
1435,
1216,
7558,
288,
7734,
509,
7922,
1067,
20452,
774,
12944,
273,
1728,
31,
3639,
368,
18664,
1410,
506,
1158,
524,
20452,
316,
326,
524,
20452,
1014,
3639,
1815,
8867,
12,
20,
16,
312,
67,
1966,
18,
1883,
4300,
2932,
4025,
380,
628,
524,
20452,
7923,
1769,
540,
727,
514,
20176,
653,
273,
315,
1883,
29690,
14432,
3639,
727,
7867,
907,
756,
273,
312,
67,
5185,
18,
588,
907,
12,
21,
1769,
7734,
727,
1525,
14833,
273,
2332,
18,
2972,
28512,
1435,
15,
2947,
713,
31,
7734,
364,
261,
474,
277,
33,
21,
31,
277,
32,
33,
7922,
1067,
20452,
774,
12944,
31,
277,
27245,
288,
5411,
7867,
1304,
2
] |
|
for (int i= 0; i < elements.length; i++) { if (!(isInferTypeArgumentsAvailable(elements[i]))) return false;
|
} else if (element instanceof IJavaProject) { IJavaProject project= (IJavaProject) element; IClasspathEntry[] classpathEntries= project.getRawClasspath(); for (int i= 0; i < classpathEntries.length; i++) { if (classpathEntries[i].getEntryKind() == IClasspathEntry.CPE_SOURCE) return true; } return false; } else if (element instanceof IPackageFragmentRoot) { return ((IPackageFragmentRoot) element).getKind() == IPackageFragmentRoot.K_SOURCE; } else if (element instanceof IPackageFragment) { return ((IPackageFragment) element).getKind() == IPackageFragmentRoot.K_SOURCE; } else if (element instanceof ICompilationUnit) { return true; } else if (element.getAncestor(IJavaElement.COMPILATION_UNIT) != null) { return true; } else { return false;
|
public static boolean isInferTypeArgumentsAvailable(final IJavaElement[] elements) throws JavaModelException { if (elements.length == 0) return false; for (int i= 0; i < elements.length; i++) { if (!(isInferTypeArgumentsAvailable(elements[i]))) return false; } return true; }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/14b36e8394b1eef4399f70d10936b2330a631b99/RefactoringAvailabilityTester.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
8048,
586,
23690,
5268,
12,
6385,
467,
5852,
1046,
8526,
2186,
13,
1216,
5110,
1488,
503,
288,
202,
202,
430,
261,
6274,
18,
2469,
422,
374,
13,
1082,
202,
2463,
629,
31,
202,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
411,
2186,
18,
2469,
31,
277,
27245,
288,
1082,
202,
430,
16051,
12,
291,
382,
586,
23690,
5268,
12,
6274,
63,
77,
65,
20349,
9506,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
2463,
638,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
8048,
586,
23690,
5268,
12,
6385,
467,
5852,
1046,
8526,
2186,
13,
1216,
5110,
1488,
503,
288,
202,
202,
430,
261,
6274,
18,
2469,
422,
374,
13,
1082,
202,
2463,
629,
31,
202,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
411,
2186,
18,
2469,
31,
277,
27245,
288,
1082,
202,
430,
16051,
12,
291,
382,
586,
23690,
5268,
12,
6274,
63,
77,
65,
20349,
9506,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
2463,
638,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public String get() { return storeDir.getPath();
|
public long get() { return maxStoreKeys * sizePerKey;
|
public String get() { return storeDir.getPath(); }
|
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/0e73e63698410905555b43e69172b80870e39ae5/Node.java/clean/src/freenet/node/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
482,
514,
336,
1435,
288,
25083,
202,
2463,
1707,
1621,
18,
588,
743,
5621,
6862,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4405,
202,
482,
514,
336,
1435,
288,
25083,
202,
2463,
1707,
1621,
18,
588,
743,
5621,
6862,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw new TypeError(getRuntime(),
|
throw getRuntime().newTypeError(
|
public IRubyObject putc(IRubyObject object) { int c; if (object.isKindOf(getRuntime().getClasses().getStringClass())) { String value = ((RubyString) object).toString(); if (value.length() > 0) { c = value.charAt(0); } else { throw new TypeError(getRuntime(), "Cannot convert String to Integer"); } } else if (object.isKindOf(getRuntime().getClasses().getFixnumClass())){ c = RubyFixnum.fix2int(object); } else { // What case will this work for? c = RubyFixnum.fix2int(object.callMethod("to_i")); } try { handler.putc(c); } catch (ErrnoError e) { return RubyFixnum.zero(runtime); } return RubyFixnum.newFixnum(getRuntime(), c); }
|
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyIO.java/buggy/src/org/jruby/RubyIO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1378,
71,
12,
7937,
10340,
921,
733,
13,
288,
3639,
509,
276,
31,
7734,
309,
261,
1612,
18,
291,
5677,
951,
12,
588,
5576,
7675,
588,
4818,
7675,
588,
780,
797,
1435,
3719,
288,
5411,
514,
460,
273,
14015,
54,
10340,
780,
13,
733,
2934,
10492,
5621,
13491,
309,
261,
1132,
18,
2469,
1435,
405,
374,
13,
288,
7734,
276,
273,
460,
18,
3001,
861,
12,
20,
1769,
5411,
289,
469,
288,
7734,
604,
18814,
7675,
2704,
19030,
12,
7682,
315,
4515,
1765,
514,
358,
2144,
8863,
5411,
289,
3639,
289,
469,
309,
261,
1612,
18,
291,
5677,
951,
12,
588,
5576,
7675,
588,
4818,
7675,
588,
8585,
2107,
797,
1435,
3719,
95,
5411,
276,
273,
19817,
8585,
2107,
18,
904,
22,
474,
12,
1612,
1769,
3639,
289,
469,
288,
368,
18734,
648,
903,
333,
1440,
364,
35,
5411,
276,
273,
19817,
8585,
2107,
18,
904,
22,
474,
12,
1612,
18,
1991,
1305,
2932,
869,
67,
77,
7923,
1769,
3639,
289,
3639,
775,
288,
5411,
1838,
18,
458,
71,
12,
71,
1769,
3639,
289,
1044,
261,
2524,
2135,
668,
425,
13,
288,
5411,
327,
19817,
8585,
2107,
18,
7124,
12,
9448,
1769,
3639,
289,
7734,
327,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
588,
5576,
9334,
276,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1378,
71,
12,
7937,
10340,
921,
733,
13,
288,
3639,
509,
276,
31,
7734,
309,
261,
1612,
18,
291,
5677,
951,
12,
588,
5576,
7675,
588,
4818,
7675,
588,
780,
797,
1435,
3719,
288,
5411,
514,
460,
273,
14015,
54,
10340,
780,
13,
733,
2934,
10492,
5621,
13491,
309,
261,
1132,
18,
2469,
1435,
405,
374,
13,
288,
7734,
276,
273,
460,
18,
3001,
861,
12,
20,
1769,
5411,
289,
469,
288,
7734,
604,
18814,
7675,
2704,
19030,
12,
7682,
315,
4515,
1765,
514,
358,
2144,
8863,
5411,
289,
3639,
289,
469,
309,
261,
1612,
18,
291,
5677,
951,
12,
588,
5576,
7675,
588,
4818,
7675,
588,
8585,
2107,
797,
1435,
3719,
95,
5411,
2
] |
if (APPLICATION_ID != ref.getType()) return null;
|
Collection rv = new Vector();
|
public Collection getEntityAuthzGroups(Reference ref) { // double check that it's mine if (APPLICATION_ID != ref.getType()) return null; Collection rv = new Vector(); try { // site ref.addSiteContextAuthzGroup(rv); // specific rv.add(ref.getReference()); // mid way - for submission, the assignment reference %%% id is in continer 2 } catch (Throwable e) { } return rv; }
|
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/3ba170f7d959eaabf3024bbd03cf5265445f73a2/BaseAssignmentService.java/clean/assignment/assignment-impl/impl/src/java/org/sakaiproject/assignment/impl/BaseAssignmentService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
6352,
1730,
94,
3621,
12,
2404,
1278,
13,
202,
95,
202,
202,
759,
1645,
866,
716,
518,
1807,
312,
558,
202,
202,
430,
261,
25039,
67,
734,
480,
1278,
18,
588,
559,
10756,
327,
446,
31,
202,
202,
2532,
5633,
273,
394,
5589,
5621,
202,
202,
698,
202,
202,
95,
1082,
202,
759,
2834,
1082,
202,
1734,
18,
1289,
4956,
1042,
1730,
94,
1114,
12,
4962,
1769,
1082,
202,
759,
2923,
1082,
202,
4962,
18,
1289,
12,
1734,
18,
588,
2404,
10663,
1082,
202,
759,
7501,
4031,
300,
364,
8515,
16,
326,
6661,
2114,
738,
11438,
612,
353,
316,
466,
14522,
576,
202,
202,
97,
202,
202,
14683,
261,
15155,
425,
13,
202,
202,
95,
202,
202,
97,
202,
202,
2463,
5633,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
6352,
1730,
94,
3621,
12,
2404,
1278,
13,
202,
95,
202,
202,
759,
1645,
866,
716,
518,
1807,
312,
558,
202,
202,
430,
261,
25039,
67,
734,
480,
1278,
18,
588,
559,
10756,
327,
446,
31,
202,
202,
2532,
5633,
273,
394,
5589,
5621,
202,
202,
698,
202,
202,
95,
1082,
202,
759,
2834,
1082,
202,
1734,
18,
1289,
4956,
1042,
1730,
94,
1114,
12,
4962,
1769,
1082,
202,
759,
2923,
1082,
202,
4962,
18,
1289,
12,
1734,
18,
588,
2404,
10663,
1082,
202,
759,
7501,
4031,
300,
364,
8515,
16,
326,
6661,
2114,
738,
11438,
612,
353,
316,
466,
14522,
576,
202,
202,
97,
202,
202,
14683,
261,
15155,
425,
13,
202,
202,
95,
2
] |
ec.addError("Parsing fatal error", this, spe); ec.addError("Parsing problem on line " + spe.getLineNumber() + " and column " + spe.getColumnNumber(), this, spe);
|
addError("Parsing fatal error", spe); addError("Parsing problem on line " + spe.getLineNumber() + " and column " + spe.getColumnNumber(), spe);
|
public void fatalError(SAXParseException spe) throws SAXException { ec.addError("Parsing fatal error", this, spe); ec.addError("Parsing problem on line " + spe.getLineNumber() + " and column " + spe.getColumnNumber(), this, spe); }
|
47463 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47463/7177ff8f31734f293185997e0a81156f64bc26a6/SaxEventRecorder.java/buggy/logback-core/src/main/java/ch/qos/logback/core/joran/spi/SaxEventRecorder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
10081,
668,
12,
55,
2501,
13047,
17785,
13,
1216,
14366,
288,
565,
6557,
18,
1289,
668,
2932,
13963,
10081,
555,
3113,
333,
16,
17785,
1769,
565,
6557,
18,
1289,
668,
2932,
13963,
6199,
603,
980,
315,
397,
17785,
18,
588,
31063,
1435,
3639,
397,
315,
471,
1057,
315,
397,
17785,
18,
588,
1494,
1854,
9334,
333,
16,
17785,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
10081,
668,
12,
55,
2501,
13047,
17785,
13,
1216,
14366,
288,
565,
6557,
18,
1289,
668,
2932,
13963,
10081,
555,
3113,
333,
16,
17785,
1769,
565,
6557,
18,
1289,
668,
2932,
13963,
6199,
603,
980,
315,
397,
17785,
18,
588,
31063,
1435,
3639,
397,
315,
471,
1057,
315,
397,
17785,
18,
588,
1494,
1854,
9334,
333,
16,
17785,
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
] |
}
|
Gradebook gradebook = getGradebook(gradebookUid); Assignment asn = new Assignment(gradebook, title, new Double(points), dueDate); asn.setExternallyMaintained(true); asn.setExternalId(externalId); asn.setExternalInstructorLink(externalUrl); asn.setExternalStudentLink(externalUrl); asn.setExternalAppName(externalServiceDescription); session.save(asn); recalculateCourseGradeRecords(gradebook, session); return null; }
|
public Object doInHibernate(Session session) throws HibernateException { boolean updateCourseGradeSortScore = false; asn.setExternalInstructorLink(externalUrl); asn.setExternalStudentLink(externalUrl); asn.setName(title); asn.setDueDate(dueDate); // If the points possible changes, we need to update the course grade sort values if(!asn.getPointsPossible().equals(new Double(points))) { updateCourseGradeSortScore = true; } asn.setPointsPossible(new Double(points)); session.update(asn); if (log.isInfoEnabled()) log.info("External assessment updated in gradebookUid=" + gradebookUid + ", externalId=" + externalId + " by userUid=" + getUserUid()); if (updateCourseGradeSortScore) { recalculateCourseGradeRecords(asn.getGradebook(), session); } return null; }
|
48975 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48975/dbcb9fb55ff4d2cadba8989ae4acae0f773ff373/GradebookServiceHibernateImpl.java/clean/service/impl/src/java/org/sakaiproject/component/gradebook/GradebookServiceHibernateImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
741,
382,
44,
24360,
12,
2157,
1339,
13,
1216,
670,
24360,
503,
288,
7734,
1250,
1089,
39,
3117,
14571,
323,
4416,
7295,
273,
629,
31,
7734,
12211,
18,
542,
6841,
382,
2732,
2098,
12,
9375,
1489,
1769,
7734,
12211,
18,
542,
6841,
19943,
319,
2098,
12,
9375,
1489,
1769,
7734,
12211,
18,
542,
461,
12,
2649,
1769,
7734,
12211,
18,
542,
30023,
1626,
12,
24334,
1626,
1769,
7734,
368,
971,
326,
3143,
3323,
3478,
16,
732,
1608,
358,
1089,
326,
4362,
7324,
1524,
924,
7734,
309,
12,
5,
31432,
18,
588,
5636,
13576,
7675,
14963,
12,
2704,
3698,
12,
4139,
20349,
288,
10792,
1089,
39,
3117,
14571,
323,
4416,
7295,
273,
638,
31,
1171,
10812,
323,
3618,
28073,
273,
7162,
354,
323,
3618,
12,
3994,
3618,
11994,
1769,
282,
15499,
12211,
273,
394,
15499,
12,
3994,
3618,
16,
2077,
16,
394,
3698,
12,
4139,
3631,
6541,
1626,
1769,
12211,
18,
542,
29764,
1230,
49,
1598,
8707,
12,
3767,
1769,
12211,
18,
542,
6841,
548,
12,
9375,
548,
1769,
12211,
18,
542,
6841,
382,
2732,
2098,
12,
9375,
1489,
1769,
12211,
18,
542,
6841,
19943,
319,
2098,
12,
9375,
1489,
1769,
12211,
18,
542,
6841,
3371,
461,
12,
9375,
1179,
3291,
1769,
225,
1339,
18,
5688,
12,
31432,
1769,
26657,
39,
3117,
14571,
323,
6499,
12,
3994,
3618,
16,
1339,
1769,
327,
446,
31,
289,
7734,
12211,
18,
542,
5636,
13576,
12,
2704,
3698,
12,
4139,
10019,
7734,
1339,
18,
2725,
12,
31432,
1769,
7734,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
741,
382,
44,
24360,
12,
2157,
1339,
13,
1216,
670,
24360,
503,
288,
7734,
1250,
1089,
39,
3117,
14571,
323,
4416,
7295,
273,
629,
31,
7734,
12211,
18,
542,
6841,
382,
2732,
2098,
12,
9375,
1489,
1769,
7734,
12211,
18,
542,
6841,
19943,
319,
2098,
12,
9375,
1489,
1769,
7734,
12211,
18,
542,
461,
12,
2649,
1769,
7734,
12211,
18,
542,
30023,
1626,
12,
24334,
1626,
1769,
7734,
368,
971,
326,
3143,
3323,
3478,
16,
732,
1608,
358,
1089,
326,
4362,
7324,
1524,
924,
7734,
309,
12,
5,
31432,
18,
588,
5636,
13576,
7675,
14963,
12,
2704,
3698,
12,
4139,
20349,
288,
10792,
1089,
39,
3117,
14571,
323,
4416,
7295,
273,
638,
31,
1171,
10812,
323,
2
] |
final Color color = StyleUtil.randomColor(); apply(new Applicator() { public void apply(AbstractButton button) { button.setForeground(color); } });
|
testGrid.setEnabled(!testGrid.isEnabled());
|
public void actionPerformed(ActionEvent e) { final Color color = StyleUtil.randomColor(); apply(new Applicator() { public void apply(AbstractButton button) { button.setForeground(color); } }); }
|
45635 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45635/0b043618b5c79c84fa6f704a29d94071fb7f73ab/ButtonTest.java/clean/src/testapp/interactive/java/nextapp/echo2/testapp/interactive/testscreen/ButtonTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
7734,
727,
5563,
2036,
273,
9767,
1304,
18,
9188,
2957,
5621,
7734,
2230,
12,
2704,
1716,
1780,
639,
1435,
288,
10792,
1071,
918,
2230,
12,
7469,
3616,
3568,
13,
288,
13491,
3568,
18,
542,
23206,
12,
3266,
1769,
10792,
289,
7734,
15549,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
7734,
727,
5563,
2036,
273,
9767,
1304,
18,
9188,
2957,
5621,
7734,
2230,
12,
2704,
1716,
1780,
639,
1435,
288,
10792,
1071,
918,
2230,
12,
7469,
3616,
3568,
13,
288,
13491,
3568,
18,
542,
23206,
12,
3266,
1769,
10792,
289,
7734,
15549,
5411,
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
] |
if (ip.startsWith("/")){ ip = ip.substring(1,ip.length());
|
if (ip.startsWith("/")) { ip = ip.substring(1, ip.length());
|
public static IPEntry getIPEntry(String ip) { String hostname = null; if (ip.startsWith("/")){ ip = ip.substring(1,ip.length()); } try { hostname = InetAddress.getByName(ip).getHostName(); } catch (Exception e) { System.err.println(e.getMessage()); return IPEntry.NULL_IP; } if (hostname.equalsIgnoreCase("localhost")){ return new IPEntry("MCS"); } else if (hostname.startsWith("128.9")){ return new IPEntry("ISI"); } else if (IPTable.isPrivateAddress("/"+hostname)){ return new IPEntry("Private"); } int pos = hostname.lastIndexOf('.'); if (pos != -1) { String domain = hostname.substring(pos+1); if (Character.isDigit(domain.charAt(0))) { //System.out.println("unable to get domain: "+ ip); } else { return new IPEntry(domain.toLowerCase()); } } return IPEntry.NULL_IP; }
|
8754 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8754/efb83d08bf3214ba362adb9486345c128a00bae7/IPEntry.java/buggy/usage/java/reports/source/src/org/globus/usage/report/common/IPEntry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2971,
1622,
336,
2579,
1622,
12,
780,
2359,
13,
288,
3639,
514,
5199,
273,
446,
31,
3639,
309,
261,
625,
18,
17514,
1190,
2932,
4898,
3719,
95,
5411,
2359,
273,
2359,
18,
28023,
12,
21,
16,
625,
18,
2469,
10663,
3639,
289,
3639,
775,
288,
5411,
5199,
273,
14218,
18,
588,
5911,
12,
625,
2934,
588,
20946,
5621,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
2332,
18,
370,
18,
8222,
12,
73,
18,
24906,
10663,
5411,
327,
2971,
1622,
18,
8560,
67,
2579,
31,
3639,
289,
3639,
309,
261,
10358,
18,
14963,
5556,
2932,
13014,
6,
3719,
95,
5411,
327,
394,
2971,
1622,
2932,
49,
4596,
8863,
3639,
289,
3639,
469,
309,
261,
10358,
18,
17514,
1190,
2932,
10392,
18,
29,
6,
3719,
95,
5411,
327,
394,
2971,
1622,
2932,
45,
2320,
8863,
3639,
289,
3639,
469,
309,
261,
2579,
1388,
18,
291,
6014,
1887,
2932,
4898,
15,
10358,
3719,
95,
5411,
327,
394,
2971,
1622,
2932,
6014,
8863,
3639,
289,
3639,
509,
949,
273,
5199,
18,
2722,
31985,
2668,
1093,
1769,
3639,
309,
261,
917,
480,
300,
21,
13,
288,
5411,
514,
2461,
273,
5199,
18,
28023,
12,
917,
15,
21,
1769,
5411,
309,
261,
7069,
18,
291,
10907,
12,
4308,
18,
3001,
861,
12,
20,
20349,
288,
7734,
368,
3163,
18,
659,
18,
8222,
2932,
18828,
358,
336,
2461,
30,
13773,
2359,
1769,
5411,
289,
469,
288,
7734,
327,
394,
2971,
1622,
12,
4308,
18,
869,
5630,
10663,
5411,
289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2971,
1622,
336,
2579,
1622,
12,
780,
2359,
13,
288,
3639,
514,
5199,
273,
446,
31,
3639,
309,
261,
625,
18,
17514,
1190,
2932,
4898,
3719,
95,
5411,
2359,
273,
2359,
18,
28023,
12,
21,
16,
625,
18,
2469,
10663,
3639,
289,
3639,
775,
288,
5411,
5199,
273,
14218,
18,
588,
5911,
12,
625,
2934,
588,
20946,
5621,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
2332,
18,
370,
18,
8222,
12,
73,
18,
24906,
10663,
5411,
327,
2971,
1622,
18,
8560,
67,
2579,
31,
3639,
289,
3639,
309,
261,
10358,
18,
14963,
5556,
2932,
13014,
6,
3719,
95,
5411,
327,
394,
2971,
1622,
2932,
49,
4596,
8863,
3639,
289,
3639,
469,
309,
261,
10358,
2
] |
pipelineLSID);
|
pipelineLSID, server);
|
public static void main(String args[]) throws Exception { setupLog4jConfig(); Properties additionalArguments = new Properties(); String genePatternPropertiesFile = System .getProperty("genepattern.properties") + java.io.File.separator + "genepattern.properties"; FileInputStream fis = null; Properties genepatternProps = new Properties(); try { fis = new FileInputStream(genePatternPropertiesFile); genepatternProps.load(fis); } finally { if (fis != null) { fis.close(); } } String trustStore = genepatternProps .getProperty("javax.net.ssl.trustStore"); if (trustStore != null) System.setProperty("javax.net.ssl.trustStore", trustStore); String GP_Path = genepatternProps.getProperty("GP_Path"); if (GP_Path != null) System.setProperty("GP_Path", GP_Path); Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); // // Probably best to put this code in a function somewhere... // HostnameVerifier hv = new HostnameVerifier() { public boolean verify(String urlHostName, SSLSession session) { if (!(urlHostName.equals(session.getPeerHost())) && (System.getProperty("DEBUG") != null)) System.out.println("Warning: URL Host: " + urlHostName + " vs. " + session.getPeerHost()); return true; } }; HttpsURLConnection.setDefaultHostnameVerifier(hv); if (args.length < 2) { System.out.println("usage: RunPipeline pipelineFile username args"); System.out.println(java.util.Arrays.asList(args)); System.exit(1); } if (args.length > 2) { for (int i = 2; i < args.length; i++) { // assume args are in the form name=value String arg = args[i]; StringTokenizer strtok = new StringTokenizer(arg, "="); String key = strtok.nextToken(); StringBuffer valbuff = new StringBuffer(""); int count = 0; while (strtok.hasMoreTokens()) { valbuff.append(strtok.nextToken()); if ((strtok.hasMoreTokens())) valbuff.append("="); count++; } additionalArguments.put(key, valbuff.toString()); } } String pipelineFileName = args[0]; String userId = args[1]; String pipelineLSID = System.getProperty(GPConstants.LSID); int jobId = -1; if (System.getProperty("jobID") == null) { // null when run using java // client File dir = new File(System.getProperty("user.dir")); jobId = Integer.parseInt(dir.getName()); System.setProperty("jobID", "" + jobId); } else { jobId = Integer.parseInt(System.getProperty("jobID")); } RunPipelineOutputDecoratorIF decorator = null; if (System.getProperty("decorator") != null) { String decoratorClass = System.getProperty("decorator"); decorator = (RunPipelineOutputDecoratorIF) (Class .forName(decoratorClass)).newInstance(); } URL serverFromFile = new URL(genepatternProps .getProperty("GenePatternURL")); String host = serverFromFile.getHost(); if (host.equals("127.0.0.1") || host.equals("localhost")) { host = InetAddress.getLocalHost().getCanonicalHostName(); } String server = serverFromFile.getProtocol() + "://" + host + ":" + serverFromFile.getPort(); PipelineModel pipelineModel = getPipelineModel(pipelineFileName, pipelineLSID); RunPipeline rp = new RunPipeline(server, userId, jobId, pipelineModel, decorator); rp.runPipeline(additionalArguments); // if there are no errors and the log file is empty, then delete it File log = new File(logFile); if (log.exists()){ if (log.length() < 2L) log.deleteOnExit(); } }
|
57344 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57344/395547a495949ee04bf47daa15d1e1f52e1d6e12/RunPipeline.java/clean/src/org/genepattern/server/webapp/RunPipeline.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
1216,
1185,
288,
377,
202,
8401,
1343,
24,
78,
809,
5621,
377,
202,
3639,
6183,
3312,
4628,
273,
394,
6183,
5621,
3639,
514,
7529,
3234,
2297,
812,
273,
2332,
7734,
263,
588,
1396,
2932,
4507,
881,
1344,
18,
4738,
7923,
7734,
397,
2252,
18,
1594,
18,
812,
18,
11287,
397,
315,
4507,
881,
1344,
18,
4738,
14432,
3639,
11907,
15324,
273,
446,
31,
3639,
6183,
3157,
881,
1344,
5047,
273,
394,
6183,
5621,
3639,
775,
288,
5411,
15324,
273,
394,
11907,
12,
11857,
3234,
2297,
812,
1769,
5411,
3157,
881,
1344,
5047,
18,
945,
12,
74,
291,
1769,
3639,
289,
3095,
288,
5411,
309,
261,
74,
291,
480,
446,
13,
288,
7734,
15324,
18,
4412,
5621,
5411,
289,
3639,
289,
3639,
514,
10267,
2257,
273,
3157,
881,
1344,
5047,
7734,
263,
588,
1396,
2932,
28384,
18,
2758,
18,
8157,
18,
21879,
2257,
8863,
3639,
309,
261,
21879,
2257,
480,
446,
13,
5411,
2332,
18,
542,
1396,
2932,
28384,
18,
2758,
18,
8157,
18,
21879,
2257,
3113,
10267,
2257,
1769,
3639,
514,
4948,
67,
743,
273,
3157,
881,
1344,
5047,
18,
588,
1396,
2932,
9681,
67,
743,
8863,
3639,
309,
261,
9681,
67,
743,
480,
446,
13,
5411,
2332,
18,
542,
1396,
2932,
9681,
67,
743,
3113,
4948,
67,
743,
1769,
3639,
6036,
18,
1289,
2249,
12,
2704,
532,
18,
16924,
18,
2758,
18,
8157,
18,
7236,
18,
8157,
18,
2249,
10663,
3639,
368,
3639,
368,
14610,
6906,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
1216,
1185,
288,
377,
202,
8401,
1343,
24,
78,
809,
5621,
377,
202,
3639,
6183,
3312,
4628,
273,
394,
6183,
5621,
3639,
514,
7529,
3234,
2297,
812,
273,
2332,
7734,
263,
588,
1396,
2932,
4507,
881,
1344,
18,
4738,
7923,
7734,
397,
2252,
18,
1594,
18,
812,
18,
11287,
397,
315,
4507,
881,
1344,
18,
4738,
14432,
3639,
11907,
15324,
273,
446,
31,
3639,
6183,
3157,
881,
1344,
5047,
273,
394,
6183,
5621,
3639,
775,
288,
5411,
15324,
273,
394,
11907,
12,
11857,
3234,
2297,
812,
1769,
5411,
3157,
881,
1344,
5047,
18,
945,
12,
74,
291,
1769,
3639,
289,
3095,
288,
5411,
309,
261,
74,
291,
480,
446,
2
] |
if (handler == null) { try { handler = (IHandler) configurationElement .createExecutableExtension(HANDLER_ATTRIBUTE_NAME); configurationElement = null; return true; } catch (final CoreException e) { /* * TODO If it can't be instantiated, should future attempts to * instantiate be blocked? */ final String message = "The proxied handler for '" + commandId + "' could not be loaded"; IStatus status = new Status(IStatus.ERROR, WorkbenchPlugin.PI_WORKBENCH, 0, message, e); WorkbenchPlugin.log(message, status); return false; } }
|
if (handler == null) { try { handler = (IHandler) configurationElement .createExecutableExtension(HANDLER_ATTRIBUTE_NAME); configurationElement = null; return true; } catch (final CoreException e) { /* * TODO If it can't be instantiated, should future attempts to * instantiate be blocked? */ final String message = "The proxied handler for '" + configurationElement.getAttribute(HANDLER_ATTRIBUTE_NAME) + "' could not be loaded"; IStatus status = new Status(IStatus.ERROR, WorkbenchPlugin.PI_WORKBENCH, 0, message, e); WorkbenchPlugin.log(message, status); return false; } }
|
private final boolean loadHandler() { if (handler == null) { // Load the handler. try { handler = (IHandler) configurationElement .createExecutableExtension(HANDLER_ATTRIBUTE_NAME); configurationElement = null; return true; } catch (final CoreException e) { /* * TODO If it can't be instantiated, should future attempts to * instantiate be blocked? */ final String message = "The proxied handler for '" + commandId //$NON-NLS-1$ + "' could not be loaded"; //$NON-NLS-1$ IStatus status = new Status(IStatus.ERROR, WorkbenchPlugin.PI_WORKBENCH, 0, message, e); WorkbenchPlugin.log(message, status); return false; } } return true; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/9337b828e86179850647141c34d497be28275ed2/HandlerProxy.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/ws/HandlerProxy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
1250,
1262,
1503,
1435,
288,
3639,
309,
261,
4176,
422,
446,
13,
288,
5411,
368,
4444,
326,
1838,
18,
5411,
775,
288,
7734,
1838,
273,
261,
45,
1503,
13,
1664,
1046,
13491,
263,
2640,
17709,
3625,
12,
19937,
67,
11616,
67,
1985,
1769,
7734,
1664,
1046,
273,
446,
31,
7734,
327,
638,
31,
5411,
289,
1044,
261,
6385,
30015,
425,
13,
288,
7734,
1748,
1171,
380,
2660,
971,
518,
848,
1404,
506,
17651,
16,
1410,
3563,
7531,
358,
1171,
380,
10275,
506,
14547,
35,
1171,
1195,
7734,
727,
514,
883,
273,
315,
1986,
21875,
1838,
364,
2119,
397,
1296,
548,
4329,
3993,
17,
5106,
17,
21,
8,
13491,
397,
2491,
3377,
486,
506,
4203,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
467,
1482,
1267,
273,
394,
2685,
12,
45,
1482,
18,
3589,
16,
13491,
4147,
22144,
3773,
18,
1102,
67,
10566,
38,
1157,
1792,
16,
374,
16,
883,
16,
425,
1769,
7734,
4147,
22144,
3773,
18,
1330,
12,
2150,
16,
1267,
1769,
7734,
327,
629,
31,
5411,
289,
3639,
289,
3639,
327,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
1250,
1262,
1503,
1435,
288,
3639,
309,
261,
4176,
422,
446,
13,
288,
5411,
368,
4444,
326,
1838,
18,
5411,
775,
288,
7734,
1838,
273,
261,
45,
1503,
13,
1664,
1046,
13491,
263,
2640,
17709,
3625,
12,
19937,
67,
11616,
67,
1985,
1769,
7734,
1664,
1046,
273,
446,
31,
7734,
327,
638,
31,
5411,
289,
1044,
261,
6385,
30015,
425,
13,
288,
7734,
1748,
1171,
380,
2660,
971,
518,
848,
1404,
506,
17651,
16,
1410,
3563,
7531,
358,
1171,
380,
10275,
506,
14547,
35,
1171,
1195,
7734,
727,
514,
883,
273,
315,
1986,
21875,
1838,
364,
2119,
397,
1296,
548,
4329,
3993,
17,
5106,
17,
21,
8,
13491,
397,
2491,
3377,
486,
506,
4203,
14432,
4329,
2
] |
return newString(getValue()).infectBy(this);
|
return newString(toString()).infectBy(this);
|
public IRubyObject dup() { return newString(getValue()).infectBy(this); }
|
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/buggy/src/org/jruby/RubyString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
9417,
1435,
288,
202,
202,
2463,
394,
780,
12,
24805,
1435,
2934,
10625,
386,
858,
12,
2211,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
9417,
1435,
288,
202,
202,
2463,
394,
780,
12,
24805,
1435,
2934,
10625,
386,
858,
12,
2211,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
getBuchung().setHabenKonto((Konto) konten.next()); getBuchung().setText((String)getText().getValue());
|
Konto k = (Konto) konten.next(); getBuchung().setHabenKonto(k); Kontoart ka = k.getKontoArt(); if (ka.getKontoArt() == Kontoart.KONTOART_AUFWAND || ka.getKontoArt() == Kontoart.KONTOART_ERLOES) settings.setAttribute("buchung.text.last." + Settings.getActiveGeschaeftsjahr().getID(),text); getBuchung().setText(text);
|
public void handleStore(boolean startNew) { try { getBuchung().transactionBegin(); Kontenrahmen kr = Settings.getActiveGeschaeftsjahr().getKontenrahmen(); ////////////////////////////////////////////////////////////////////////// // Belegnummer checken try { getBuchung().setBelegnummer(((Integer) getBelegnummer().getValue()).intValue()); } catch (Exception e) { Logger.error("unable to set belegnummer",e); throw new ApplicationException(i18n.tr("Belegnummer ungltig.")); } // ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// // Steuer checken try { getBuchung().setSteuer(((Double)getSteuer().getValue()).doubleValue()); } catch (Exception e) { Logger.error("unable to set steuer",e); throw new ApplicationException(i18n.tr("Steuersatz ungltig.")); } // ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// // Betrag checken try { double brutto = ((Double)getBetrag().getValue()).doubleValue(); Math m = new Math(); getBuchung().setBetrag(m.netto(brutto,getBuchung().getSteuer())); } catch (Exception e) { Logger.error("unable to set betrag",e); throw new ApplicationException(i18n.tr("Betrag ungltig.")); } // ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// // Datum checken Object o = getDatum().getValue(); String d = o.toString(); try { getBuchung().setDatum(Fibu.DATEFORMAT.parse(d)); } catch (ParseException e) { // ok, evtl. ein Datum in Kurzformat, wir versuchen's mal try { getBuchung().setDatum(Fibu.FASTDATEFORMAT.parse(d)); } catch (ParseException e2) { try { // ok, evtl. 4-stelliges Datum mit GJ vom Mandanten Calendar cal = Calendar.getInstance(); cal.setTime(Settings.getActiveGeschaeftsjahr().getBeginn()); getBuchung().setDatum(Fibu.FASTDATEFORMAT.parse(d + "" + cal.get(Calendar.YEAR))); } catch (ParseException e3) { throw new ApplicationException(i18n.tr("Datum ungltig.")); } } } // ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// // Soll-Konto checken String s = (String) getSollKontoAuswahl().getText(); if (s == null || s.length() == 0) throw new ApplicationException(i18n.tr("Bitten geben Sie ein Soll-Konto ein.")); DBIterator konten = kr.getKonten(); konten.addFilter("kontonummer = '" + s + "'"); if (!konten.hasNext()) throw new ApplicationException(i18n.tr("Das Konto \"{0}\" existiert nicht.",s)); getBuchung().setSollKonto((Konto) konten.next()); // ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// // Haben-Konto checken s = (String) getHabenKontoAuswahl().getText(); if (s == null || s.length() == 0) throw new ApplicationException(i18n.tr("Bitten geben Sie ein Haben-Konto ein.")); konten = kr.getKonten(); konten.addFilter("kontonummer = '" + s + "'"); if (!konten.hasNext()) throw new ApplicationException(i18n.tr("Das Konto \"{0}\" existiert nicht.",s)); getBuchung().setHabenKonto((Konto) konten.next()); // ////////////////////////////////////////////////////////////////////////// getBuchung().setText((String)getText().getValue()); // wir speichern grundsaetzlich den aktiven Mandanten als Inhaber der Buchung getBuchung().setGeschaeftsjahr(Settings.getActiveGeschaeftsjahr()); // und jetzt speichern wir. getBuchung().store(); if (((Boolean)getAnlageVermoegen().getValue()).booleanValue()) { int laufzeit = ((Integer)getLaufzeit().getValue()).intValue(); if (laufzeit == 0) throw new ApplicationException(i18n.tr("Bitte geben Sie eine Laufzeit fr die Abschreibung ein")); Anlagevermoegen av = (Anlagevermoegen) Settings.getDBService().createObject(Anlagevermoegen.class,null); ////////////////////////////////////////////////////////////////////////// // Abschreibungskonto checken s = (String) getAbschreibungsKonto().getText(); if (s == null || s.length() == 0) throw new ApplicationException(i18n.tr("Bitten geben Sie ein Konto fr die Abschreibungen ein.")); konten = kr.getKonten(); konten.addFilter("kontonummer = '" + s + "'"); if (!konten.hasNext()) throw new ApplicationException(i18n.tr("Das Konto \"{0}\" existiert nicht.",s)); av.setAbschreibungskonto((Konto) konten.next()); // ////////////////////////////////////////////////////////////////////////// av.setAnschaffungsDatum(getBuchung().getDatum()); av.setAnschaffungskosten(getBuchung().getBetrag()); av.setBuchung(getBuchung()); av.setKonto(getBuchung().getSollKonto()); av.setName(getBuchung().getText()); av.setNutzungsdauer(laufzeit); av.setMandant(Settings.getActiveGeschaeftsjahr().getMandant()); av.store(); GUI.getStatusBar().setSuccessText(i18n.tr("Buchung Nr. {0} und Anlagevermgen gespeichert.",""+getBuchung().getBelegnummer())); } else { GUI.getStatusBar().setSuccessText(i18n.tr("Buchung Nr. {0} gespeichert.",""+getBuchung().getBelegnummer())); } getBuchung().transactionCommit(); if (startNew) new de.willuhn.jameica.fibu.gui.action.BuchungNeu().handleAction(null); } catch (ApplicationException e1) { try { getBuchung().transactionRollback(); } catch (RemoteException e2) { Logger.error("unable to rollback transaction",e2); } GUI.getView().setErrorText(e1.getLocalizedMessage()); } catch (Throwable t) { try { getBuchung().transactionRollback(); } catch (RemoteException e2) { Logger.error("unable to rollback transaction",e2); } Logger.error("unable to store buchung",t); GUI.getView().setErrorText("Fehler beim Speichern der Buchung."); } }
|
47584 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47584/9e96095fcb0de0f0d8211042a324baac1bf8895b/BuchungControl.java/clean/src/de/willuhn/jameica/fibu/gui/controller/BuchungControl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1640,
2257,
12,
6494,
787,
1908,
13,
225,
288,
565,
775,
288,
1377,
2882,
2648,
20651,
7675,
7958,
8149,
5621,
5411,
1475,
1580,
275,
354,
76,
27617,
23953,
273,
8709,
18,
588,
3896,
43,
281,
8838,
73,
1222,
87,
12333,
7256,
7675,
588,
47,
1580,
275,
354,
76,
27617,
5621,
1377,
26398,
2105,
1377,
368,
605,
13451,
2107,
6592,
866,
275,
1377,
775,
288,
3639,
2882,
2648,
20651,
7675,
542,
38,
13451,
2107,
6592,
12443,
12,
4522,
13,
2882,
13451,
2107,
6592,
7675,
24805,
1435,
2934,
474,
620,
10663,
1377,
289,
1377,
1044,
261,
503,
425,
13,
1377,
288,
3639,
4242,
18,
1636,
2932,
18828,
358,
444,
3952,
1332,
2107,
6592,
3113,
73,
1769,
3639,
604,
394,
28816,
12,
77,
2643,
82,
18,
313,
2932,
38,
13451,
2107,
6592,
640,
75,
5618,
360,
1199,
10019,
1377,
289,
1377,
368,
1377,
26398,
2105,
5411,
26398,
2105,
1377,
368,
7780,
6211,
866,
275,
1377,
775,
288,
9506,
202,
588,
38,
2648,
20651,
7675,
542,
510,
73,
6211,
12443,
12,
5265,
13,
588,
510,
73,
6211,
7675,
24805,
1435,
2934,
9056,
620,
10663,
1377,
289,
1377,
1044,
261,
503,
425,
13,
1377,
288,
3639,
4242,
18,
1636,
2932,
18828,
358,
444,
18654,
6211,
3113,
73,
1769,
3639,
604,
394,
28816,
12,
77,
2643,
82,
18,
313,
2932,
510,
73,
27307,
270,
94,
640,
75,
5618,
360,
1199,
10019,
1377,
289,
1377,
368,
1377,
26398,
2105,
1377,
26398,
2105,
1377,
368,
605,
278,
2458,
866,
275,
1377,
775,
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,
1640,
2257,
12,
6494,
787,
1908,
13,
225,
288,
565,
775,
288,
1377,
2882,
2648,
20651,
7675,
7958,
8149,
5621,
5411,
1475,
1580,
275,
354,
76,
27617,
23953,
273,
8709,
18,
588,
3896,
43,
281,
8838,
73,
1222,
87,
12333,
7256,
7675,
588,
47,
1580,
275,
354,
76,
27617,
5621,
1377,
26398,
2105,
1377,
368,
605,
13451,
2107,
6592,
866,
275,
1377,
775,
288,
3639,
2882,
2648,
20651,
7675,
542,
38,
13451,
2107,
6592,
12443,
12,
4522,
13,
2882,
13451,
2107,
6592,
7675,
24805,
1435,
2934,
474,
620,
10663,
1377,
289,
1377,
1044,
261,
503,
425,
13,
1377,
288,
3639,
4242,
18,
1636,
2932,
18828,
358,
444,
3952,
1332,
2107,
6592,
3113,
73,
1769,
3639,
604,
2
] |
int alt51=2; int LA51_0 = input.LA(1); if ( LA51_0==23 ) { alt51=1;
|
int alt52=2; int LA52_0 = input.LA(1); if ( LA52_0==23 ) { alt52=1;
|
public PatternDescr fact_expression(String id) throws RecognitionException { PatternDescr pd; PatternDescr fe = null; PatternDescr f = null; pd = null; boolean multi = false; try { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:812:17: ( '(' opt_eol fe= fact_expression[id] opt_eol ')' | f= fact opt_eol ( ('or'|'||') opt_eol f= fact )* ) int alt51=2; int LA51_0 = input.LA(1); if ( LA51_0==23 ) { alt51=1; } else if ( LA51_0==ID ) { alt51=2; } else { NoViableAltException nvae = new NoViableAltException("807:2: fact_expression[String id] returns [PatternDescr pd] : ( \'(\' opt_eol fe= fact_expression[id] opt_eol \')\' | f= fact opt_eol ( (\'or\'|\'||\') opt_eol f= fact )* );", 51, 0, input); throw nvae; } switch (alt51) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:812:17: '(' opt_eol fe= fact_expression[id] opt_eol ')' { match(input,23,FOLLOW_23_in_fact_expression1991); following.push(FOLLOW_opt_eol_in_fact_expression1993); opt_eol(); following.pop(); following.push(FOLLOW_fact_expression_in_fact_expression1997); fe=fact_expression(id); following.pop(); following.push(FOLLOW_opt_eol_in_fact_expression1999); opt_eol(); following.pop(); match(input,25,FOLLOW_25_in_fact_expression2001); pd=fe; } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:813:17: f= fact opt_eol ( ('or'|'||') opt_eol f= fact )* { following.push(FOLLOW_fact_in_fact_expression2012); f=fact(); following.pop(); following.push(FOLLOW_opt_eol_in_fact_expression2014); opt_eol(); following.pop(); ((ColumnDescr)f).setIdentifier( id ); pd = f; // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:818:17: ( ('or'|'||') opt_eol f= fact )* loop50: do { int alt50=2; int LA50_0 = input.LA(1); if ( (LA50_0>=44 && LA50_0<=45) ) { alt50=1; } switch (alt50) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:818:25: ('or'|'||') opt_eol f= fact { if ( (input.LA(1)>=44 && input.LA(1)<=45) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_fact_expression2027); throw mse; } following.push(FOLLOW_opt_eol_in_fact_expression2032); opt_eol(); following.pop(); if ( ! multi ) { PatternDescr first = pd; pd = new OrDescr(); ((OrDescr)pd).addDescr( first ); multi=true; } following.push(FOLLOW_fact_in_fact_expression2046); f=fact(); following.pop(); ((ColumnDescr)f).setIdentifier( id ); ((OrDescr)pd).addDescr( f ); } break; default : break loop50; } } while (true); } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return pd; }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/8c3be0baa8712893e2dea6fbb679cbb7e80de372/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
5410,
67,
8692,
12,
780,
612,
13,
1216,
9539,
288,
6647,
6830,
16198,
4863,
31,
3639,
6830,
16198,
1656,
273,
446,
31,
3639,
6830,
16198,
284,
273,
446,
31,
1850,
202,
202,
22353,
273,
446,
31,
1850,
202,
202,
6494,
3309,
273,
629,
31,
1850,
202,
3639,
775,
288,
5411,
368,
342,
8712,
19,
81,
1354,
69,
292,
19,
13582,
19,
10649,
8464,
17,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
28,
2138,
30,
4033,
30,
261,
7321,
2153,
67,
30951,
1656,
33,
5410,
67,
8692,
63,
350,
65,
2153,
67,
30951,
5777,
571,
284,
33,
5410,
2153,
67,
30951,
261,
7707,
280,
11,
16637,
20081,
6134,
2153,
67,
30951,
284,
33,
5410,
8618,
262,
5411,
509,
3770,
10593,
33,
22,
31,
5411,
509,
2928,
10593,
67,
20,
273,
810,
18,
2534,
12,
21,
1769,
5411,
309,
261,
2928,
10593,
67,
20,
631,
4366,
262,
288,
7734,
3770,
10593,
33,
21,
31,
5411,
289,
5411,
469,
309,
261,
2928,
10593,
67,
20,
631,
734,
262,
288,
7734,
3770,
10593,
33,
22,
31,
5411,
289,
5411,
469,
288,
7734,
17114,
15077,
273,
10792,
394,
17114,
2932,
3672,
27,
30,
22,
30,
5410,
67,
8692,
63,
780,
612,
65,
1135,
306,
3234,
16198,
4863,
65,
294,
261,
7164,
21923,
2153,
67,
30951,
1656,
33,
5410,
67,
8692,
63,
350,
65,
2153,
67,
30951,
521,
6134,
3730,
571,
284,
33,
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,
6830,
16198,
5410,
67,
8692,
12,
780,
612,
13,
1216,
9539,
288,
6647,
6830,
16198,
4863,
31,
3639,
6830,
16198,
1656,
273,
446,
31,
3639,
6830,
16198,
284,
273,
446,
31,
1850,
202,
202,
22353,
273,
446,
31,
1850,
202,
202,
6494,
3309,
273,
629,
31,
1850,
202,
3639,
775,
288,
5411,
368,
342,
8712,
19,
81,
1354,
69,
292,
19,
13582,
19,
10649,
8464,
17,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
28,
2138,
30,
4033,
30,
261,
7321,
2153,
67,
30951,
1656,
33,
5410,
67,
8692,
63,
350,
65,
2153,
67,
30951,
5777,
571,
284,
33,
5410,
2153,
67,
2
] |
case VOID: return "void";
|
case EMPTY: return "empty";
|
public static String name(int token) { if (printNames) { switch (token) { case ERROR: return "error"; case EOF: return "eof"; case EOL: return "eol"; case POPV: return "popv"; case ENTERWITH: return "enterwith"; case LEAVEWITH: return "leavewith"; case RETURN: return "return"; case GOTO: return "goto"; case IFEQ: return "ifeq"; case IFNE: return "ifne"; case SETNAME: return "setname"; case BITOR: return "bitor"; case BITXOR: return "bitxor"; case BITAND: return "bitand"; case EQ: return "eq"; case NE: return "ne"; case LT: return "lt"; case LE: return "le"; case GT: return "gt"; case GE: return "ge"; case LSH: return "lsh"; case RSH: return "rsh"; case URSH: return "ursh"; case ADD: return "add"; case SUB: return "sub"; case MUL: return "mul"; case DIV: return "div"; case MOD: return "mod"; case NOT: return "not"; case BITNOT: return "bitnot"; case POS: return "pos"; case NEG: return "neg"; case NEW: return "new"; case DELPROP: return "delprop"; case TYPEOF: return "typeof"; case GETPROP: return "getprop"; case SETPROP: return "setprop"; case GETELEM: return "getelem"; case SETELEM: return "setelem"; case CALL: return "call"; case NAME: return "name"; case NUMBER: return "number"; case STRING: return "string"; case ZERO: return "zero"; case ONE: return "one"; case NULL: return "null"; case THIS: return "this"; case FALSE: return "false"; case TRUE: return "true"; case SHEQ: return "sheq"; case SHNE: return "shne"; case REGEXP: return "object"; case POP: return "pop"; case BINDNAME: return "bindname"; case THROW: return "throw"; case IN: return "in"; case INSTANCEOF: return "instanceof"; case GETTHIS: return "getthis"; case NEWTEMP: return "newtemp"; case USETEMP: return "usetemp"; case GETBASE: return "getbase"; case GETVAR: return "getvar"; case SETVAR: return "setvar"; case UNDEFINED: return "undefined"; case TRY: return "try"; case NEWSCOPE: return "newscope"; case ENUMINIT: return "enuminit"; case ENUMNEXT: return "enumnext"; case THISFN: return "thisfn"; case SEMI: return "semi"; case LB: return "lb"; case RB: return "rb"; case LC: return "lc"; case RC: return "rc"; case LP: return "lp"; case RP: return "rp"; case COMMA: return "comma"; case ASSIGN: return "assign"; case HOOK: return "hook"; case COLON: return "colon"; case OR: return "or"; case AND: return "and"; case EQOP: return "eqop"; case RELOP: return "relop"; case UNARYOP: return "unaryop"; case INC: return "inc"; case DEC: return "dec"; case DOT: return "dot"; case FUNCTION: return "function"; case EXPORT: return "export"; case IMPORT: return "import"; case IF: return "if"; case ELSE: return "else"; case SWITCH: return "switch"; case CASE: return "case"; case DEFAULT: return "default"; case WHILE: return "while"; case DO: return "do"; case FOR: return "for"; case BREAK: return "break"; case CONTINUE: return "continue"; case VAR: return "var"; case WITH: return "with"; case CATCH: return "catch"; case FINALLY: return "finally"; case RESERVED: return "reserved"; case NOP: return "nop"; case PRE: return "pre"; case POST: return "post"; case VOID: return "void"; case BLOCK: return "block"; case ARRAYLIT: return "arraylit"; case OBJLIT: return "objlit"; case LABEL: return "label"; case TARGET: return "target"; case LOOP: return "loop"; case ENUMDONE: return "enumdone"; case EXPRSTMT: return "exprstmt"; case PARENT: return "parent"; case JSR: return "jsr"; case NEWLOCAL: return "newlocal"; case USELOCAL: return "uselocal"; case SCRIPT: return "script"; } return "<unknown="+token+">"; } return null; }
|
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/5bb0de51f4eb37ef1f776e50a739fa69b125b9db/Token.java/clean/src/org/mozilla/javascript/Token.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
508,
12,
474,
1147,
13,
565,
288,
3639,
309,
261,
1188,
1557,
13,
288,
5411,
1620,
261,
2316,
13,
288,
7734,
648,
5475,
30,
6647,
327,
315,
1636,
14432,
7734,
648,
6431,
30,
2398,
327,
315,
9339,
14432,
7734,
648,
19995,
30,
2398,
327,
315,
30951,
14432,
7734,
648,
26839,
58,
30,
5411,
327,
315,
5120,
90,
14432,
7734,
648,
20018,
9147,
30,
4202,
327,
315,
2328,
1918,
14432,
7734,
648,
5380,
26714,
9147,
30,
4202,
327,
315,
298,
842,
359,
483,
14432,
7734,
648,
14780,
30,
1850,
327,
315,
2463,
14432,
7734,
648,
611,
27019,
30,
5411,
327,
315,
75,
6302,
14432,
7734,
648,
467,
8090,
53,
30,
5411,
327,
315,
430,
11253,
14432,
7734,
648,
11083,
5407,
30,
5411,
327,
315,
430,
4644,
14432,
7734,
648,
7855,
1985,
30,
540,
327,
315,
542,
529,
14432,
7734,
648,
20469,
916,
30,
6647,
327,
315,
70,
1811,
14432,
7734,
648,
20469,
60,
916,
30,
1850,
327,
315,
3682,
31346,
14432,
7734,
648,
20469,
4307,
30,
1850,
327,
315,
3682,
464,
14432,
7734,
648,
22426,
30,
2868,
327,
315,
11253,
14432,
7734,
648,
12901,
30,
2868,
327,
315,
4644,
14432,
7734,
648,
11807,
30,
2868,
327,
315,
5618,
14432,
7734,
648,
5380,
30,
2868,
327,
315,
298,
14432,
7734,
648,
19688,
30,
2868,
327,
315,
4521,
14432,
7734,
648,
17788,
30,
2868,
327,
315,
908,
14432,
7734,
648,
511,
2664,
30,
2398,
327,
315,
80,
674,
14432,
7734,
648,
534,
2664,
30,
2398,
327,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
508,
12,
474,
1147,
13,
565,
288,
3639,
309,
261,
1188,
1557,
13,
288,
5411,
1620,
261,
2316,
13,
288,
7734,
648,
5475,
30,
6647,
327,
315,
1636,
14432,
7734,
648,
6431,
30,
2398,
327,
315,
9339,
14432,
7734,
648,
19995,
30,
2398,
327,
315,
30951,
14432,
7734,
648,
26839,
58,
30,
5411,
327,
315,
5120,
90,
14432,
7734,
648,
20018,
9147,
30,
4202,
327,
315,
2328,
1918,
14432,
7734,
648,
5380,
26714,
9147,
30,
4202,
327,
315,
298,
842,
359,
483,
14432,
7734,
648,
14780,
30,
1850,
327,
315,
2463,
14432,
7734,
648,
611,
27019,
30,
5411,
327,
315,
75,
6302,
14432,
7734,
648,
467,
8090,
53,
30,
5411,
327,
315,
430,
11253,
14432,
2
] |
return (new TestSuite(ResultSetMetaDataTest.class, "ResultSetMetaDataTest suite"));
|
return TestConfiguration.defaultSuite(ResultSetMetaDataTest.class);
|
public static Test suite() { return (new TestSuite(ResultSetMetaDataTest.class, "ResultSetMetaDataTest suite")); }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/ec5ae26da0a0c7d1b4902be7e1fb5027f820531e/ResultSetMetaDataTest.java/buggy/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetMetaDataTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
7766,
11371,
1435,
288,
3639,
327,
261,
2704,
7766,
13587,
12,
13198,
6998,
4709,
18,
1106,
16,
17311,
315,
13198,
6998,
4709,
11371,
7923,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
7766,
11371,
1435,
288,
3639,
327,
261,
2704,
7766,
13587,
12,
13198,
6998,
4709,
18,
1106,
16,
17311,
315,
13198,
6998,
4709,
11371,
7923,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(DEBUG)
|
if (DEBUG)
|
public void compose() { if(DEBUG) { System.out.println("Before wildcard insert..."); dumpAssociationTables(); } if(null != m_wildCardPatterns) { Enumeration associations = m_patternTable.elements(); while(associations.hasMoreElements()) { TemplateSubPatternAssociation head = (TemplateSubPatternAssociation)associations.nextElement(); TemplateSubPatternAssociation wild = m_wildCardPatterns; while(null != wild) { try { insertAssociationIntoList(head, (TemplateSubPatternAssociation)wild.clone(), true); } catch(CloneNotSupportedException cnse){} wild = wild.getNext(); } } } if(DEBUG) { System.out.println("After wildcard insert..."); dumpAssociationTables(); } }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/TemplateList.java/buggy/src/org/apache/xalan/templates/TemplateList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
11458,
1435,
225,
288,
377,
309,
261,
9394,
13,
565,
288,
1377,
2332,
18,
659,
18,
8222,
2932,
4649,
8531,
2243,
7070,
1769,
1377,
4657,
7174,
6905,
5621,
565,
289,
3639,
309,
12,
2011,
480,
312,
67,
91,
545,
6415,
11268,
13,
565,
288,
1377,
13864,
14474,
273,
312,
67,
4951,
1388,
18,
6274,
5621,
1377,
1323,
12,
29194,
18,
5332,
7417,
3471,
10756,
1377,
288,
3639,
5035,
1676,
3234,
7174,
910,
6647,
273,
261,
2283,
1676,
3234,
7174,
13,
29194,
18,
4285,
1046,
5621,
3639,
5035,
1676,
3234,
7174,
23578,
273,
312,
67,
91,
545,
6415,
11268,
31,
3639,
1323,
12,
2011,
480,
23578,
13,
3639,
288,
1850,
775,
1850,
288,
5411,
2243,
7174,
5952,
682,
12,
1978,
16,
4766,
4202,
261,
2283,
1676,
3234,
7174,
13,
91,
545,
18,
14056,
9334,
638,
1769,
1850,
289,
1850,
1044,
12,
10930,
25482,
6227,
307,
13,
2916,
1850,
23578,
273,
23578,
18,
588,
2134,
5621,
3639,
289,
1377,
289,
565,
289,
377,
309,
261,
9394,
13,
565,
288,
1377,
2332,
18,
659,
18,
8222,
2932,
4436,
8531,
2243,
7070,
1769,
1377,
4657,
7174,
6905,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
11458,
1435,
225,
288,
377,
309,
261,
9394,
13,
565,
288,
1377,
2332,
18,
659,
18,
8222,
2932,
4649,
8531,
2243,
7070,
1769,
1377,
4657,
7174,
6905,
5621,
565,
289,
3639,
309,
12,
2011,
480,
312,
67,
91,
545,
6415,
11268,
13,
565,
288,
1377,
13864,
14474,
273,
312,
67,
4951,
1388,
18,
6274,
5621,
1377,
1323,
12,
29194,
18,
5332,
7417,
3471,
10756,
1377,
288,
3639,
5035,
1676,
3234,
7174,
910,
6647,
273,
261,
2283,
1676,
3234,
7174,
13,
29194,
18,
4285,
1046,
5621,
3639,
5035,
1676,
3234,
7174,
23578,
273,
312,
67,
91,
545,
6415,
11268,
31,
3639,
1323,
12,
2011,
480,
23578,
13,
3639,
288,
1850,
775,
1850,
288,
5411,
2243,
7174,
5952,
2
] |
getDistinctProperty( handle, parentHandle, Style.BACKGROUND_POSITION_Y_PROP ) );
|
getDistinctProperty( handle, parentHandle, Style.BACKGROUND_POSITION_Y_PROP, flag ) );
|
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 ) ); */ // 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 ) ); // Data Formatting setStyleProperty( style, Style.NUMBER_ALIGN_PROP, handle.getProperty( Style.NUMBER_ALIGN_PROP ) ); Object value = handle.getProperty( Style.DATE_TIME_FORMAT_PROP ); if ( value != null && value instanceof DateTimeFormatValue ) { setStyleProperty( style, Style.DATE_TIME_FORMAT_PROP, ( (DateTimeFormatValue) value ).getPattern( ) ); } value = handle.getProperty( Style.NUMBER_FORMAT_PROP ); if ( value != null && value instanceof NumberFormatValue ) { setStyleProperty( style, Style.NUMBER_FORMAT_PROP, ( (NumberFormatValue) value ).getPattern( ) ); } value = handle.getProperty( Style.STRING_FORMAT_PROP ); if ( value != null && value instanceof StringFormatValue ) { setStyleProperty( style, Style.STRING_FORMAT_PROP, ( (StringFormatValue) value ).getPattern( ) ); } //Others setStyleProperty( style, Style.CAN_SHRINK_PROP, handle.getProperty( Style.CAN_SHRINK_PROP ) ); setStyleProperty( style, Style.SHOW_IF_BLANK_PROP, handle.getProperty( Style.SHOW_IF_BLANK_PROP ) ); setStyleProperty( style, Style.MASTER_PAGE_PROP, handle.getProperty( Style.MASTER_PAGE_PROP ) ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/26e720886eb20318d2dd7875ea22a8e430dd3bf6/EngineIRVisitor.java/clean/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
] |
String encName = URLEncoder.encode(rawName);
|
String encName = encode(rawName);
|
public Set list(String encSuffix) throws IOException { String rawSuffix = URLDecoder.decode(encSuffix); Set s; try { s = wp.list(rawSuffix); } catch (Exception e) { throw new RuntimeException( "Unable to list("+rawSuffix+")", e); } int n = s.size(); Set ret; if (n <= 0) { ret = Collections.EMPTY_SET; } else { ret = new HashSet(n); Iterator iter = s.iterator(); for (int i = 0; i < n; i++) { String rawName = (String) iter.next(); String encName = URLEncoder.encode(rawName); ret.add(encName); } } return ret; }
|
11321 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11321/636a522abbdea7499c916fc28c9abb2b274a4edb/NamingServerRegistry.java/buggy/webserver/src/org/cougaar/lib/web/service/NamingServerRegistry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1000,
666,
12,
780,
2446,
5791,
13,
1216,
1860,
288,
565,
514,
1831,
5791,
273,
1976,
7975,
18,
3922,
12,
1331,
5791,
1769,
565,
1000,
272,
31,
565,
775,
288,
1377,
272,
273,
6357,
18,
1098,
12,
1899,
5791,
1769,
565,
289,
1044,
261,
503,
425,
13,
288,
1377,
604,
394,
3235,
12,
1850,
315,
3370,
358,
666,
2932,
15,
1899,
5791,
9078,
2225,
16,
425,
1769,
565,
289,
565,
509,
290,
273,
272,
18,
1467,
5621,
565,
1000,
325,
31,
565,
309,
261,
82,
1648,
374,
13,
288,
1377,
325,
273,
5737,
18,
13625,
67,
4043,
31,
565,
289,
469,
288,
1377,
325,
273,
394,
6847,
12,
82,
1769,
1377,
4498,
1400,
273,
272,
18,
9838,
5621,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
290,
31,
277,
27245,
288,
3639,
514,
1831,
461,
273,
261,
780,
13,
1400,
18,
4285,
5621,
3639,
514,
2446,
461,
273,
2017,
12,
1899,
461,
1769,
3639,
325,
18,
1289,
12,
1331,
461,
1769,
1377,
289,
565,
289,
565,
327,
325,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
1000,
666,
12,
780,
2446,
5791,
13,
1216,
1860,
288,
565,
514,
1831,
5791,
273,
1976,
7975,
18,
3922,
12,
1331,
5791,
1769,
565,
1000,
272,
31,
565,
775,
288,
1377,
272,
273,
6357,
18,
1098,
12,
1899,
5791,
1769,
565,
289,
1044,
261,
503,
425,
13,
288,
1377,
604,
394,
3235,
12,
1850,
315,
3370,
358,
666,
2932,
15,
1899,
5791,
9078,
2225,
16,
425,
1769,
565,
289,
565,
509,
290,
273,
272,
18,
1467,
5621,
565,
1000,
325,
31,
565,
309,
261,
82,
1648,
374,
13,
288,
1377,
325,
273,
5737,
18,
13625,
67,
4043,
31,
565,
289,
469,
288,
1377,
325,
273,
394,
6847,
12,
82,
1769,
1377,
4498,
1400,
273,
272,
18,
9838,
2
] |
} if (mState == ConnectionState.READLINE) {
|
} else if (mState == ConnectionState.READLINE && mAuthenticator != null) { boolean authFinished = true; try { if (mCurrentData.overflowed()) { sendBAD(mAuthenticator.mTag, "AUTHENTICATE failed: request too long"); gotoReadLineState(true); return; } else if (mCurrentData.size() == 1 && mCurrentData.get(0) == '*') { sendBAD(mAuthenticator.mTag, "AUTHENTICATE aborted"); gotoReadLineState(true); return; } mCurrentRequestData.add(mCurrentData.toAsciiString()); OzImapRequest req = new OzImapRequest(mAuthenticator.mTag, mCurrentRequestData, mSession); if (continueAuthentication(req)) gotoReadLineState(true); else gotoClosedState(true); return; } finally { if (authFinished) mAuthenticator = null; } } else if (mState == ConnectionState.READLINE) {
|
public void handleInput(ByteBuffer buffer, boolean matched) throws IOException { mCurrentData.add(buffer); if (!matched) { return; } mCurrentData.trim(mConnection.getMatcher().trailingTrimLength()); if (mState == ConnectionState.CLOSED) { ZimbraLog.imap.info("input arrived on closed connection"); mCurrentData.clear(); return; } if (mState == ConnectionState.READLITERAL) { mCurrentRequestData.add(mCurrentData.array()); /* * at the end of a literal there is more of the command or there is * just CRLF (which is the empty part of the command) */ gotoReadLineState(false); return; } if (mState == ConnectionState.READLINE) { if (mCurrentData.overflowed()) { sendUntagged("BAD request too long", true); gotoReadLineState(true); return; } String line = mCurrentData.toAsciiString(); /* * Is this the first line of this request? If so, then let's try * to parse the tag from it so we can report tagged BADs if * needed. TODO: should we also strip tag here - so we don't * parse it twice? */ if (mCurrentRequestData.size() == 0) { logCommand(line); try { mCurrentRequestTag = OzImapRequest.readTag(line); } catch (ImapParseException ipe) { sendUntagged("BAD " + ipe.getMessage(), true); gotoReadLineState(true); return; } } /* See if there is a literal at the end of this line. */ ImapLiteral literal; try { literal = ImapLiteral.parse(mCurrentRequestTag, line); } catch (ImapParseException ipe) { sendBAD(mCurrentRequestTag, ipe.getMessage()); gotoReadLineState(true); return; } /* Add either the literal removed line or a no-literal present at all * line (ie, it's line in either case) to the request in flight. */ mCurrentRequestData.add(line); if (literal.octets() > 0) { if (literal.blocking()) { sendContinuation(); } gotoReadLiteralState(literal.octets()); return; } else { if (processCommand()) { gotoReadLineState(true); } else { gotoClosedState(true); } return; } } throw new RuntimeException("internal error in IMAP server: bad state " + mState); }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/9d4f2a95e1573221d245d9b4698bbaa7b9a7de7c/OzImapConnectionHandler.java/buggy/ZimbraServer/src/java/com/zimbra/cs/imap/OzImapConnectionHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1640,
1210,
12,
12242,
1613,
16,
1250,
4847,
13,
1216,
1860,
288,
7734,
28326,
751,
18,
1289,
12,
4106,
1769,
3639,
309,
16051,
11073,
13,
288,
5411,
327,
31,
3639,
289,
3639,
28326,
751,
18,
5290,
12,
81,
1952,
18,
588,
6286,
7675,
26453,
14795,
1782,
10663,
3639,
309,
261,
81,
1119,
422,
4050,
1119,
18,
28475,
13,
288,
5411,
2285,
381,
15397,
1343,
18,
12161,
18,
1376,
2932,
2630,
2454,
2950,
603,
4375,
1459,
8863,
5411,
28326,
751,
18,
8507,
5621,
5411,
327,
31,
3639,
289,
13491,
309,
261,
81,
1119,
422,
4050,
1119,
18,
6949,
23225,
13,
288,
5411,
28326,
17031,
18,
1289,
12,
81,
3935,
751,
18,
1126,
10663,
5411,
1748,
9506,
380,
622,
326,
679,
434,
279,
7158,
1915,
353,
1898,
434,
326,
1296,
578,
1915,
353,
9506,
380,
2537,
21791,
261,
12784,
353,
326,
1008,
1087,
434,
326,
1296,
13,
9506,
1195,
5411,
2897,
1994,
1670,
1119,
12,
5743,
1769,
5411,
327,
31,
3639,
289,
7734,
309,
261,
81,
1119,
422,
4050,
1119,
18,
6949,
5997,
13,
288,
5411,
309,
261,
81,
3935,
751,
18,
11512,
329,
10756,
288,
7734,
1366,
57,
496,
346,
2423,
2932,
16234,
590,
4885,
1525,
3113,
638,
1769,
7734,
2897,
1994,
1670,
1119,
12,
3767,
1769,
7734,
327,
31,
5411,
289,
5411,
514,
980,
273,
28326,
751,
18,
869,
21363,
780,
5621,
5411,
1748,
2398,
380,
2585,
333,
326,
1122,
980,
434,
333,
590,
35,
971,
1427,
16,
1508,
2231,
1807,
775,
2398,
380,
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,
1640,
1210,
12,
12242,
1613,
16,
1250,
4847,
13,
1216,
1860,
288,
7734,
28326,
751,
18,
1289,
12,
4106,
1769,
3639,
309,
16051,
11073,
13,
288,
5411,
327,
31,
3639,
289,
3639,
28326,
751,
18,
5290,
12,
81,
1952,
18,
588,
6286,
7675,
26453,
14795,
1782,
10663,
3639,
309,
261,
81,
1119,
422,
4050,
1119,
18,
28475,
13,
288,
5411,
2285,
381,
15397,
1343,
18,
12161,
18,
1376,
2932,
2630,
2454,
2950,
603,
4375,
1459,
8863,
5411,
28326,
751,
18,
8507,
5621,
5411,
327,
31,
3639,
289,
13491,
309,
261,
81,
1119,
422,
4050,
1119,
18,
6949,
23225,
13,
288,
5411,
28326,
17031,
18,
1289,
12,
81,
3935,
751,
18,
1126,
10663,
5411,
1748,
9506,
380,
2
] |
String templateFolderPath = ReportPlugin.getDefault( )
|
String root = ReportPlugin.getDefault( )
|
private void createCustomTemplateList( ) { String templateFolderPath = ReportPlugin.getDefault( ) .getTemplatePreference( ); File templateDirectory = new File( templateFolderPath, File.separator ); if ( templateDirectory.isDirectory( ) ) { if ( !templateDirectory.exists( ) ) { templateDirectory.mkdirs( ); } File[] filesArray = templateDirectory.listFiles( new FilenameFilter( ) { public boolean accept( File dir, String name ) { return name.endsWith( ".rpttemplate" );//$NON-NLS-1$ } } ); for ( int i = 0; i < filesArray.length; i++ ) { try { templates.add( new Template( filesArray[i].getName( ) ) ); } catch ( Exception e ) { // ignore } } } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/38871cc6d6150f7be0054964b778c1692031fc19/WizardTemplateChoicePage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/wizards/WizardTemplateChoicePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
3802,
2283,
682,
12,
262,
202,
95,
202,
202,
780,
1542,
28785,
273,
8706,
3773,
18,
588,
1868,
12,
262,
9506,
202,
18,
588,
2283,
9624,
12,
11272,
202,
202,
812,
1542,
2853,
273,
394,
1387,
12,
1542,
28785,
16,
1387,
18,
11287,
11272,
202,
202,
430,
261,
1542,
2853,
18,
291,
2853,
12,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
401,
3202,
2853,
18,
1808,
12,
262,
262,
1082,
202,
95,
9506,
202,
3202,
2853,
18,
24816,
8291,
12,
11272,
1082,
202,
97,
1082,
202,
812,
8526,
1390,
1076,
273,
1542,
2853,
18,
1098,
2697,
12,
394,
16671,
1586,
12,
262,
288,
9506,
202,
482,
1250,
2791,
12,
1387,
1577,
16,
514,
508,
262,
9506,
202,
95,
6862,
202,
2463,
508,
18,
5839,
1190,
12,
3552,
86,
337,
3202,
6,
11272,
759,
8,
3993,
17,
5106,
17,
21,
8,
9506,
202,
97,
1082,
202,
97,
11272,
1082,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
1390,
1076,
18,
2469,
31,
277,
9904,
262,
1082,
202,
95,
9506,
202,
698,
9506,
202,
95,
6862,
202,
8502,
18,
1289,
12,
394,
5035,
12,
1390,
1076,
63,
77,
8009,
17994,
12,
262,
262,
11272,
9506,
202,
97,
9506,
202,
14683,
261,
1185,
425,
262,
9506,
202,
95,
6862,
202,
759,
2305,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
3802,
2283,
682,
12,
262,
202,
95,
202,
202,
780,
1542,
28785,
273,
8706,
3773,
18,
588,
1868,
12,
262,
9506,
202,
18,
588,
2283,
9624,
12,
11272,
202,
202,
812,
1542,
2853,
273,
394,
1387,
12,
1542,
28785,
16,
1387,
18,
11287,
11272,
202,
202,
430,
261,
1542,
2853,
18,
291,
2853,
12,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
401,
3202,
2853,
18,
1808,
12,
262,
262,
1082,
202,
95,
9506,
202,
3202,
2853,
18,
24816,
8291,
12,
11272,
1082,
202,
97,
1082,
202,
812,
8526,
1390,
1076,
273,
1542,
2853,
18,
1098,
2697,
12,
394,
16671,
1586,
12,
262,
288,
9506,
202,
482,
1250,
2791,
12,
1387,
1577,
16,
2
] |
String length = fs.get("DataLength"); if(length == null) throw new ResumeException("No DataLength");
|
Bucket[] dataBuckets;
|
public SplitFileInserter(BaseClientPutter parent, PutCompletionCallback cb, ClientMetadata clientMetadata, InserterContext ctx, boolean getCHKOnly, boolean metadata, Object token, boolean insertAsArchiveManifest, SimpleFieldSet fs) throws ResumeException { this.parent = parent; this.insertAsArchiveManifest = insertAsArchiveManifest; this.token = token; this.finished = false; this.isMetadata = metadata; this.cm = clientMetadata; this.getCHKOnly = getCHKOnly; this.cb = cb; this.ctx = ctx; // Don't read finished, wait for the segmentFinished()'s. String length = fs.get("DataLength"); if(length == null) throw new ResumeException("No DataLength"); try { dataLength = Long.parseLong(length); } catch (NumberFormatException e) { throw new ResumeException("Corrupt DataLength: "+e+" : "+length); } String tmp = fs.get("SegmentSize"); if(length == null) throw new ResumeException("No SegmentSize"); try { segmentSize = Integer.parseInt(tmp); } catch (NumberFormatException e) { throw new ResumeException("Corrupt SegmentSize: "+e+" : "+length); } tmp = fs.get("CheckSegmentSize"); if(length == null) throw new ResumeException("No CheckSegmentSize"); try { checkSegmentSize = Integer.parseInt(tmp); } catch (NumberFormatException e) { throw new ResumeException("Corrupt CheckSegmentSize: "+e+" : "+length); } String ccodec = fs.get("CompressionCodec"); if(ccodec == null) throw new ResumeException("No compression codec"); try { compressionCodec = Short.parseShort(ccodec); } catch (NumberFormatException e) { throw new ResumeException("Corrupt CompressionCodec: "+e+" : "+ccodec); } String scodec = fs.get("SplitfileCodec"); if(scodec == null) throw new ResumeException("No splitfile codec"); try { // FIXME remove soon, backwards compat hack! short t = Short.parseShort(scodec); if(t == -1) t = 1; splitfileAlgorithm = t; } catch (NumberFormatException e) { throw new ResumeException("Corrupt SplitfileCodec: "+e+" : "+scodec); } SimpleFieldSet segFS = fs.subset("Segments"); if(segFS == null) throw new ResumeException("No segments"); String segc = segFS.get("Count"); if(segc == null) throw new ResumeException("No segment count"); int segmentCount; try { segmentCount = Integer.parseInt(segc); } catch (NumberFormatException e) { throw new ResumeException("Corrupt segment count: "+e+" : "+segc); } segments = new SplitFileInserterSegment[segmentCount]; int dataBlocks = 0; int checkBlocks = 0; for(int i=0;i<segments.length;i++) { SimpleFieldSet segment = segFS.subset(Integer.toString(i)); if(segment == null) throw new ResumeException("No segment "+i); segments[i] = new SplitFileInserterSegment(this, segment, splitfileAlgorithm, ctx, getCHKOnly, i); dataBlocks += segments[i].countDataBlocks(); checkBlocks += segments[i].countCheckBlocks(); } this.countDataBlocks = dataBlocks; this.countCheckBlocks = checkBlocks; }
|
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/1dad23a02cb94310e7fb3efcd3b76d089cf1d698/SplitFileInserter.java/buggy/src/freenet/client/async/SplitFileInserter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5385,
812,
382,
550,
387,
12,
2171,
1227,
6426,
387,
982,
16,
4399,
11238,
2428,
2875,
16,
2445,
2277,
1004,
2277,
16,
657,
550,
387,
1042,
1103,
16,
1250,
336,
1792,
47,
3386,
16,
1250,
1982,
16,
1033,
1147,
16,
1250,
2243,
1463,
7465,
9121,
16,
4477,
974,
694,
2662,
13,
1216,
1124,
2066,
503,
288,
202,
202,
2211,
18,
2938,
273,
982,
31,
202,
202,
2211,
18,
6387,
1463,
7465,
9121,
273,
2243,
1463,
7465,
9121,
31,
202,
202,
2211,
18,
2316,
273,
1147,
31,
202,
202,
2211,
18,
13527,
273,
629,
31,
202,
202,
2211,
18,
291,
2277,
273,
1982,
31,
202,
202,
2211,
18,
7670,
273,
1004,
2277,
31,
202,
202,
2211,
18,
588,
1792,
47,
3386,
273,
336,
1792,
47,
3386,
31,
202,
202,
2211,
18,
7358,
273,
2875,
31,
202,
202,
2211,
18,
5900,
273,
1103,
31,
202,
202,
759,
7615,
1404,
855,
6708,
16,
2529,
364,
326,
3267,
10577,
11866,
87,
18,
202,
202,
780,
769,
273,
2662,
18,
588,
2932,
751,
1782,
8863,
202,
202,
430,
12,
2469,
422,
446,
13,
604,
394,
1124,
2066,
503,
2932,
2279,
1910,
1782,
8863,
202,
202,
698,
288,
1082,
202,
892,
1782,
273,
3407,
18,
2670,
3708,
12,
2469,
1769,
202,
202,
97,
1044,
261,
1854,
9291,
425,
13,
288,
1082,
202,
12849,
394,
1124,
2066,
503,
2932,
22701,
1910,
1782,
30,
13773,
73,
9078,
294,
13773,
2469,
1769,
202,
202,
97,
202,
202,
780,
1853,
273,
2662,
18,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5385,
812,
382,
550,
387,
12,
2171,
1227,
6426,
387,
982,
16,
4399,
11238,
2428,
2875,
16,
2445,
2277,
1004,
2277,
16,
657,
550,
387,
1042,
1103,
16,
1250,
336,
1792,
47,
3386,
16,
1250,
1982,
16,
1033,
1147,
16,
1250,
2243,
1463,
7465,
9121,
16,
4477,
974,
694,
2662,
13,
1216,
1124,
2066,
503,
288,
202,
202,
2211,
18,
2938,
273,
982,
31,
202,
202,
2211,
18,
6387,
1463,
7465,
9121,
273,
2243,
1463,
7465,
9121,
31,
202,
202,
2211,
18,
2316,
273,
1147,
31,
202,
202,
2211,
18,
13527,
273,
629,
31,
202,
202,
2211,
18,
291,
2277,
273,
1982,
31,
202,
202,
2211,
18,
7670,
273,
1004,
2277,
31,
202,
202,
2211,
18,
2
] |
super( ValueType.SHORT_TYPE,
|
super( ValueType.PSHORT_TYPE,
|
private ShortEqualEvaluator() { super( ValueType.SHORT_TYPE, Operator.EQUAL ); }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/0a76f888ef55c8d5cf806f1c9e6a6e27fa7f4faf/ShortFactory.java/clean/drools-core/src/main/java/org/drools/base/evaluators/ShortFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
7925,
5812,
15876,
1435,
288,
5411,
2240,
12,
31718,
18,
52,
15993,
67,
2399,
16,
10402,
11097,
18,
12853,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
7925,
5812,
15876,
1435,
288,
5411,
2240,
12,
31718,
18,
52,
15993,
67,
2399,
16,
10402,
11097,
18,
12853,
11272,
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
] |
if (elname.equals(EndpointReference.SERVICE_REF_QNAME)) { epr = DOMUtils.getFirstChildElement(epr); elname = new QName(epr.getNamespaceURI(),epr.getLocalName()); } if (epr != null && elname.equals(JBI_EPR)) { String serviceName = epr.getAttribute("service-name"); QName serviceQName = convertClarkQName( serviceName ); String endpointName = epr.getAttribute("end-point-name"); ServiceEndpoint se = _ode.getContext().getEndpoint(serviceQName, endpointName); if (se == null) { __log.warn( "Unable to resolve JBI endpoint reference:\n" + prettyPrint( epr ) ); return null; } if (__log.isDebugEnabled()) { __log.debug( "Resolved JBI endpoint reference: " + se ); } return new JbiEndpointReference(se); } /*
|
public EndpointReference resolveEndpointReference(Element epr) { QName elname = new QName(epr.getNamespaceURI(),epr.getLocalName()); if (__log.isDebugEnabled()) { __log.debug( "resolveEndpointReference:\n" + prettyPrint( epr ) ); } if (elname.equals(EndpointReference.SERVICE_REF_QNAME)) { epr = DOMUtils.getFirstChildElement(epr); elname = new QName(epr.getNamespaceURI(),epr.getLocalName()); } // resolve JBI end-point-references directly if (epr != null && elname.equals(JBI_EPR)) { String serviceName = epr.getAttribute("service-name"); QName serviceQName = convertClarkQName( serviceName ); String endpointName = epr.getAttribute("end-point-name"); ServiceEndpoint se = _ode.getContext().getEndpoint(serviceQName, endpointName); if (se == null) { __log.warn( "Unable to resolve JBI endpoint reference:\n" + prettyPrint( epr ) ); return null; } if (__log.isDebugEnabled()) { __log.debug( "Resolved JBI endpoint reference: " + se ); } return new JbiEndpointReference(se); } // Otherwise, we expect the EPR to be wrapped in a BPEL service-ref element. /* if (!elname.equals(EndpointReference.SERVICE_REF_QNAME)) throw new IllegalArgumentException("EPR root element " + elname + " should be " + EndpointReference.SERVICE_REF_QNAME); Document doc = DOMUtils.newDocument(); DocumentFragment fragment = doc.createDocumentFragment(); NodeList children = epr.getChildNodes(); for (int i = 0 ; i < children.getLength(); ++i) fragment.appendChild(doc.importNode(children.item(i), true)); ServiceEndpoint se = _ode.getContext().resolveEndpointReference(fragment); if (se == null) return null; return new JbiEndpointReference(se); */ __log.warn( "Unsupported endpoint reference:\n" + prettyPrint( epr ) ); return null; }
|
47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/aebc3cd1713a732b21f72ebf7e71ee70bf5133bb/EndpointReferenceContextImpl.java/buggy/jbi/src/main/java/org/apache/ode/jbi/EndpointReferenceContextImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6961,
2404,
2245,
3293,
2404,
12,
1046,
425,
683,
13,
288,
565,
16723,
415,
529,
273,
394,
16723,
12,
73,
683,
18,
588,
3402,
3098,
9334,
73,
683,
18,
588,
29583,
10663,
3639,
309,
261,
972,
1330,
18,
291,
2829,
1526,
10756,
288,
1377,
1001,
1330,
18,
4148,
12,
315,
10828,
3293,
2404,
5581,
82,
6,
397,
30410,
12,
425,
683,
262,
11272,
565,
289,
565,
309,
261,
292,
529,
18,
14963,
12,
3293,
2404,
18,
12426,
67,
10771,
67,
16032,
3719,
288,
3639,
425,
683,
273,
4703,
1989,
18,
588,
3759,
1763,
1046,
12,
73,
683,
1769,
3639,
415,
529,
273,
394,
16723,
12,
73,
683,
18,
588,
3402,
3098,
9334,
73,
683,
18,
588,
29583,
10663,
565,
289,
565,
368,
2245,
804,
31558,
679,
17,
1153,
17,
14353,
5122,
565,
309,
261,
73,
683,
480,
446,
597,
415,
529,
18,
14963,
12,
8877,
45,
67,
41,
8025,
3719,
288,
1377,
514,
6773,
273,
425,
683,
18,
588,
1499,
2932,
3278,
17,
529,
8863,
1377,
16723,
1156,
13688,
273,
1765,
2009,
1313,
13688,
12,
6773,
11272,
1377,
514,
2494,
461,
273,
425,
683,
18,
588,
1499,
2932,
409,
17,
1153,
17,
529,
8863,
1377,
1956,
3293,
695,
273,
389,
390,
18,
29120,
7675,
588,
3293,
12,
3278,
13688,
16,
2494,
461,
1769,
1377,
309,
261,
307,
422,
446,
13,
288,
3639,
1001,
1330,
18,
8935,
12,
315,
3370,
358,
2245,
804,
31558,
2494,
2114,
5581,
82,
6,
397,
30410,
12,
425,
683,
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,
282,
1071,
6961,
2404,
2245,
3293,
2404,
12,
1046,
425,
683,
13,
288,
565,
16723,
415,
529,
273,
394,
16723,
12,
73,
683,
18,
588,
3402,
3098,
9334,
73,
683,
18,
588,
29583,
10663,
3639,
309,
261,
972,
1330,
18,
291,
2829,
1526,
10756,
288,
1377,
1001,
1330,
18,
4148,
12,
315,
10828,
3293,
2404,
5581,
82,
6,
397,
30410,
12,
425,
683,
262,
11272,
565,
289,
565,
309,
261,
292,
529,
18,
14963,
12,
3293,
2404,
18,
12426,
67,
10771,
67,
16032,
3719,
288,
3639,
425,
683,
273,
4703,
1989,
18,
588,
3759,
1763,
1046,
12,
73,
683,
1769,
3639,
415,
529,
273,
394,
16723,
12,
73,
683,
18,
588,
3402,
3098,
9334,
73,
683,
18,
588,
29583,
2
] |
|
void addPacketListeners(final XMPPConnection xmppConnection) {}
|
void addPacketListeners(final XMPPConnection xmppConnection) { xmppConnection.addPacketListener( new PacketListener() { public void processPacket(final Packet packet) { notifyTeamMemberAdded((IQTeamMemberAddedNotification) packet); } }, new PacketTypeFilter(IQTeamMemberAddedNotification.class)); xmppConnection.addPacketListener( new PacketListener() { public void processPacket(final Packet packet) { notifyTeamMemberRemoved((IQTeamMemberRemovedNotification) packet); } }, new PacketTypeFilter(IQTeamMemberRemovedNotification.class)); }
|
void addPacketListeners(final XMPPConnection xmppConnection) {}
|
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/b2e0325d7d58a0a2f48a38771515bd3732c4d57e/XMPPArtifact.java/buggy/local/model/src/main/java/com/thinkparity/model/xmpp/XMPPArtifact.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
527,
6667,
5583,
12,
6385,
23216,
1952,
619,
24109,
1952,
13,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
527,
6667,
5583,
12,
6385,
23216,
1952,
619,
24109,
1952,
13,
2618,
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
] |
Thread.sleep(20);
|
Thread.sleep(5);
|
public byte[] execute(SerialWriter writer, SerialReader reader) { checkNotNull(writer, reader); writer.write(request); byte[] response; while ((response = reader.read()).length == 0) { try { Thread.sleep(20); } catch (InterruptedException e) { throw new SerialCommunicationException(e); } } return response; }
|
48870 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48870/51f224c65f85e6350799a28acebecd2de52923db/DefaultQuery.java/buggy/src/enginuity/logger/query/DefaultQuery.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
1836,
12,
6342,
2289,
2633,
16,
7366,
2514,
2949,
13,
288,
3639,
8887,
12,
6299,
16,
2949,
1769,
3639,
2633,
18,
2626,
12,
2293,
1769,
3639,
1160,
8526,
766,
31,
3639,
1323,
14015,
2740,
273,
2949,
18,
896,
1435,
2934,
2469,
422,
374,
13,
288,
5411,
775,
288,
7734,
4884,
18,
19607,
12,
25,
1769,
5411,
289,
1044,
261,
24485,
503,
425,
13,
288,
7734,
604,
394,
7366,
25219,
503,
12,
73,
1769,
5411,
289,
3639,
289,
3639,
327,
766,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
1836,
12,
6342,
2289,
2633,
16,
7366,
2514,
2949,
13,
288,
3639,
8887,
12,
6299,
16,
2949,
1769,
3639,
2633,
18,
2626,
12,
2293,
1769,
3639,
1160,
8526,
766,
31,
3639,
1323,
14015,
2740,
273,
2949,
18,
896,
1435,
2934,
2469,
422,
374,
13,
288,
5411,
775,
288,
7734,
4884,
18,
19607,
12,
25,
1769,
5411,
289,
1044,
261,
24485,
503,
425,
13,
288,
7734,
604,
394,
7366,
25219,
503,
12,
73,
1769,
5411,
289,
3639,
289,
3639,
327,
766,
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
] |
return getOrCreateFileElement(myXmlFile, myFileDescription);
|
return getOrCreateFileElement(originalFile, myFileDescription);
|
public DomFileElementImpl create() { return getOrCreateFileElement(myXmlFile, myFileDescription); }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/d848587e375f1db2323a97bdccfedfbbec010c7c/DomManagerImpl.java/buggy/dom/impl/src/com/intellij/util/xml/impl/DomManagerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
12965,
812,
1046,
2828,
752,
1435,
288,
2868,
327,
13486,
812,
1046,
12,
8830,
812,
16,
3399,
812,
3291,
1769,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2398,
1071,
12965,
812,
1046,
2828,
752,
1435,
288,
2868,
327,
13486,
812,
1046,
12,
8830,
812,
16,
3399,
812,
3291,
1769,
5411,
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
] |
fdcFont = new FontDefinitionComposite(cmpGeneral, SWT.NONE, this.fdCurrent, this.cdFont, this.isAlignmentEnabled); GridData gdFDCFont = new GridData(GridData.FILL_BOTH); gdFDCFont.heightHint = fdcFont.getPreferredSize().y;
|
fdcFont = new FontDefinitionComposite( cmpGeneral, SWT.NONE, this.fdCurrent, this.cdFont, this.isAlignmentEnabled ); GridData gdFDCFont = new GridData( GridData.FILL_BOTH ); gdFDCFont.heightHint = fdcFont.getPreferredSize( ).y;
|
private void placeComponents() { FillLayout flMain = new FillLayout(); flMain.marginHeight = 0; flMain.marginWidth = 0; GridLayout glAttributes = new GridLayout(); glAttributes.horizontalSpacing = 5; glAttributes.verticalSpacing = 5; glAttributes.marginHeight = 7; glAttributes.marginWidth = 7; GridLayout glGeneral = new GridLayout(); glGeneral.numColumns = 2; glGeneral.horizontalSpacing = 5; glGeneral.verticalSpacing = 5; FillLayout flOutline = new FillLayout(); this.setLayout(flMain); if (sGroupName == null || sGroupName.length() == 0) { grpAttributes = new Composite(this, SWT.NONE); } else { grpAttributes = new Group(this, SWT.NONE); ((Group) grpAttributes).setText(sGroupName); } grpAttributes.setLayout(glAttributes); cmpGeneral = new Composite(grpAttributes, SWT.NONE); GridData gdCMPGeneral = new GridData(GridData.FILL_HORIZONTAL); cmpGeneral.setLayoutData(gdCMPGeneral); cmpGeneral.setLayout(glGeneral); boolean bEnableUI = bEnabled; if (bVisibilityEnabled) { cbVisible = new Button(cmpGeneral, SWT.CHECK); GridData gdCBVisible = new GridData(GridData.FILL_HORIZONTAL); gdCBVisible.horizontalSpan = 2; cbVisible.setLayoutData(gdCBVisible); cbVisible.setSelection(this.lblCurrent.isVisible()); cbVisible.setText(Messages .getString("LabelAttributesComposite.Lbl.IsVisible")); //$NON-NLS-1$ cbVisible.addSelectionListener(this); if (bEnabled) { bEnableUI = cbVisible.getSelection(); } } if (bPositionEnabled) { lblPosition = new Label(cmpGeneral, SWT.NONE); GridData gdLBLPosition = new GridData(); lblPosition.setLayoutData(gdLBLPosition); lblPosition.setText(Messages .getString("LabelAttributesComposite.Lbl.Position")); //$NON-NLS-1$ lblPosition.setEnabled(bEnableUI); cmbPosition = new Combo(cmpGeneral, SWT.DROP_DOWN | SWT.READ_ONLY); GridData gdCMBPosition = new GridData(GridData.FILL_BOTH); cmbPosition.setLayoutData(gdCMBPosition); cmbPosition.addSelectionListener(this); cmbPosition.setEnabled(bEnableUI); } lblFont = new Label(cmpGeneral, SWT.NONE); GridData gdLFont = new GridData(); lblFont.setLayoutData(gdLFont); lblFont .setText(Messages .getString("LabelAttributesComposite.Lbl.Font")); //$NON-NLS-1$ lblFont.setEnabled(bEnableUI); fdcFont = new FontDefinitionComposite(cmpGeneral, SWT.NONE, this.fdCurrent, this.cdFont, this.isAlignmentEnabled); GridData gdFDCFont = new GridData(GridData.FILL_BOTH); gdFDCFont.heightHint = fdcFont.getPreferredSize().y; gdFDCFont.widthHint = 96; gdFDCFont.grabExcessVerticalSpace = false; fdcFont.setLayoutData(gdFDCFont); fdcFont.addListener(this); fdcFont.setEnabled(bEnableUI); lblFill = new Label(cmpGeneral, SWT.NONE); GridData gdLFill = new GridData(); lblFill.setLayoutData(gdLFill); lblFill.setText(Messages .getString("LabelAttributesComposite.Lbl.Background")); //$NON-NLS-1$ lblFill.setEnabled(bEnableUI); fccBackground = new FillChooserComposite(cmpGeneral, SWT.NONE, fBackground, false, false); GridData gdFCCBackground = new GridData(GridData.FILL_BOTH); gdFCCBackground.heightHint = fccBackground.getPreferredSize().y; fccBackground.setLayoutData(gdFCCBackground); fccBackground.addListener(this); fccBackground.setEnabled(bEnableUI); if (bShadowEnabled) { lblShadow = new Label(cmpGeneral, SWT.NONE); GridData gdLBLShadow = new GridData(); lblShadow.setLayoutData(gdLBLShadow); lblShadow.setText(Messages .getString("LabelAttributesComposite.Lbl.Shadow")); //$NON-NLS-1$ lblShadow.setEnabled(bEnableUI); fccShadow = new FillChooserComposite(cmpGeneral, SWT.NONE, cdShadow, false, false); GridData gdFCCShadow = new GridData(GridData.FILL_BOTH); fccShadow.setLayoutData(gdFCCShadow); fccShadow.addListener(this); fccShadow.setEnabled(bEnableUI); } grpOutline = new Group(grpAttributes, SWT.NONE); GridData gdGOutline = new GridData(GridData.FILL_HORIZONTAL); gdGOutline.heightHint = 110; grpOutline.setLayoutData(gdGOutline); grpOutline.setText(Messages .getString("LabelAttributesComposite.Lbl.Outline")); //$NON-NLS-1$ grpOutline.setLayout(flOutline); grpOutline.setEnabled(bEnableUI); liacOutline = new LineAttributesComposite(grpOutline, SWT.NONE, laCurrent, true, true, true); liacOutline.addListener(this); liacOutline.setEnabled(bEnableUI); if (bInsetsEnabled == true) { icInsets = new InsetsComposite(grpAttributes, SWT.NONE, insets, sUnits, serviceprovider); GridData gdICInsets = new GridData(GridData.FILL_HORIZONTAL); gdICInsets.heightHint = icInsets.getPreferredSize().y; gdICInsets.grabExcessVerticalSpace = false; icInsets.addListener(this); icInsets.setLayoutData(gdICInsets); icInsets.setEnabled(bEnableUI); } populateLists(); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/500b4482b64451f75339ee5037485c3309647704/LabelAttributesComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/LabelAttributesComposite.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3166,
7171,
1435,
288,
202,
202,
8026,
3744,
1183,
6376,
273,
394,
14192,
3744,
5621,
202,
202,
2242,
6376,
18,
10107,
2686,
273,
374,
31,
202,
202,
2242,
6376,
18,
10107,
2384,
273,
374,
31,
202,
202,
6313,
3744,
5118,
2498,
273,
394,
7145,
3744,
5621,
202,
202,
7043,
2498,
18,
18396,
18006,
273,
1381,
31,
202,
202,
7043,
2498,
18,
17824,
18006,
273,
1381,
31,
202,
202,
7043,
2498,
18,
10107,
2686,
273,
2371,
31,
202,
202,
7043,
2498,
18,
10107,
2384,
273,
2371,
31,
202,
202,
6313,
3744,
5118,
12580,
273,
394,
7145,
3744,
5621,
202,
202,
7043,
12580,
18,
2107,
3380,
273,
576,
31,
202,
202,
7043,
12580,
18,
18396,
18006,
273,
1381,
31,
202,
202,
7043,
12580,
18,
17824,
18006,
273,
1381,
31,
202,
202,
8026,
3744,
1183,
21805,
273,
394,
14192,
3744,
5621,
202,
202,
2211,
18,
542,
3744,
12,
2242,
6376,
1769,
202,
202,
430,
261,
87,
3943,
422,
446,
747,
272,
3943,
18,
2469,
1435,
422,
374,
13,
288,
1082,
202,
17532,
2498,
273,
394,
14728,
12,
2211,
16,
348,
8588,
18,
9826,
1769,
202,
202,
97,
469,
288,
1082,
202,
17532,
2498,
273,
394,
3756,
12,
2211,
16,
348,
8588,
18,
9826,
1769,
1082,
202,
12443,
1114,
13,
14295,
2498,
2934,
542,
1528,
12,
87,
3943,
1769,
202,
202,
97,
202,
202,
17532,
2498,
18,
542,
3744,
12,
7043,
2498,
1769,
202,
202,
9625,
12580,
273,
394,
14728,
12,
17532,
2498,
16,
348,
8588,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3166,
7171,
1435,
288,
202,
202,
8026,
3744,
1183,
6376,
273,
394,
14192,
3744,
5621,
202,
202,
2242,
6376,
18,
10107,
2686,
273,
374,
31,
202,
202,
2242,
6376,
18,
10107,
2384,
273,
374,
31,
202,
202,
6313,
3744,
5118,
2498,
273,
394,
7145,
3744,
5621,
202,
202,
7043,
2498,
18,
18396,
18006,
273,
1381,
31,
202,
202,
7043,
2498,
18,
17824,
18006,
273,
1381,
31,
202,
202,
7043,
2498,
18,
10107,
2686,
273,
2371,
31,
202,
202,
7043,
2498,
18,
10107,
2384,
273,
2371,
31,
202,
202,
6313,
3744,
5118,
12580,
273,
394,
7145,
3744,
5621,
202,
202,
7043,
12580,
18,
2107,
3380,
273,
576,
31,
202,
202,
7043,
12580,
18,
18396,
18006,
273,
2
] |
Table staffTable = new Table(3,4); staffTable.setWidth("100%"); staffTable.setCellpadding(0); staffTable.setCellspacing(0); staffTable.setHeight(1,rowHeight); staffTable.setHeight(2,rowHeight); staffTable.setHeight(3,rowHeight); staffTable.setHeight(4,rowHeight);
|
Table staffTable = new Table(3, 4); staffTable.setWidth("100%"); staffTable.setCellpadding(0); staffTable.setCellspacing(0); staffTable.setHeight(1, rowHeight); staffTable.setHeight(2, rowHeight); staffTable.setHeight(3, rowHeight); staffTable.setHeight(4, rowHeight);
|
public void lineUpFields(){ this.resize(1,3); Table staffTable = new Table(3,4); staffTable.setWidth("100%"); staffTable.setCellpadding(0); staffTable.setCellspacing(0); staffTable.setHeight(1,rowHeight); staffTable.setHeight(2,rowHeight); staffTable.setHeight(3,rowHeight); staffTable.setHeight(4,rowHeight); staffTable.add(homePhoneText,1,1); staffTable.add(homePhoneMenu,3,1); staffTable.add(homePhoneField,2,1); staffTable.add(workPhoneText,1,2); staffTable.add(workPhoneMenu,3,2); staffTable.add(workPhoneField,2,2); staffTable.add(mobilePhoneText,1,3); staffTable.add(mobilePhoneMenu,3,3); staffTable.add(mobilePhoneField,2,3); staffTable.add(faxPhoneText,1,4); staffTable.add(faxPhoneMenu,3,4); staffTable.add(faxPhoneField,2,4); this.add(staffTable,1,1); Table mailTable = new Table(2,2); mailTable.setWidth("100%"); mailTable.setCellpadding(0); mailTable.setCellspacing(0); mailTable.setHeight(1,rowHeight); mailTable.add(emailText,1,1); mailTable.add(emailField,2,1); mailTable.add(homepageText,1,2); mailTable.add(homepageField,2,2); this.add(mailTable,1,3); }
|
57353 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57353/0359eac130d0d39133149446b700e0b69a09a9d5/GroupOfficeContactTab.java/clean/src/java/is/idega/idegaweb/member/presentation/GroupOfficeContactTab.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
980,
1211,
2314,
1435,
95,
565,
333,
18,
15169,
12,
21,
16,
23,
1769,
565,
3555,
28904,
1388,
273,
394,
3555,
12,
23,
16,
24,
1769,
565,
28904,
1388,
18,
542,
2384,
2932,
6625,
9,
8863,
565,
28904,
1388,
18,
542,
4020,
9598,
12,
20,
1769,
565,
28904,
1388,
18,
542,
4020,
14080,
12,
20,
1769,
565,
28904,
1388,
18,
542,
2686,
12,
21,
16,
492,
2686,
1769,
565,
28904,
1388,
18,
542,
2686,
12,
22,
16,
492,
2686,
1769,
565,
28904,
1388,
18,
542,
2686,
12,
23,
16,
492,
2686,
1769,
565,
28904,
1388,
18,
542,
2686,
12,
24,
16,
492,
2686,
1769,
565,
28904,
1388,
18,
1289,
12,
8712,
9451,
1528,
16,
21,
16,
21,
1769,
565,
28904,
1388,
18,
1289,
12,
8712,
9451,
4599,
16,
23,
16,
21,
1769,
565,
28904,
1388,
18,
1289,
12,
8712,
9451,
974,
16,
22,
16,
21,
1769,
565,
28904,
1388,
18,
1289,
12,
1252,
9451,
1528,
16,
21,
16,
22,
1769,
565,
28904,
1388,
18,
1289,
12,
1252,
9451,
4599,
16,
23,
16,
22,
1769,
565,
28904,
1388,
18,
1289,
12,
1252,
9451,
974,
16,
22,
16,
22,
1769,
565,
28904,
1388,
18,
1289,
12,
18386,
9451,
1528,
16,
21,
16,
23,
1769,
565,
28904,
1388,
18,
1289,
12,
18386,
9451,
4599,
16,
23,
16,
23,
1769,
565,
28904,
1388,
18,
1289,
12,
18386,
9451,
974,
16,
22,
16,
23,
1769,
565,
28904,
1388,
18,
1289,
12,
507,
92,
9451,
1528,
16,
21,
16,
24,
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,
980,
1211,
2314,
1435,
95,
565,
333,
18,
15169,
12,
21,
16,
23,
1769,
565,
3555,
28904,
1388,
273,
394,
3555,
12,
23,
16,
24,
1769,
565,
28904,
1388,
18,
542,
2384,
2932,
6625,
9,
8863,
565,
28904,
1388,
18,
542,
4020,
9598,
12,
20,
1769,
565,
28904,
1388,
18,
542,
4020,
14080,
12,
20,
1769,
565,
28904,
1388,
18,
542,
2686,
12,
21,
16,
492,
2686,
1769,
565,
28904,
1388,
18,
542,
2686,
12,
22,
16,
492,
2686,
1769,
565,
28904,
1388,
18,
542,
2686,
12,
23,
16,
492,
2686,
1769,
565,
28904,
1388,
18,
542,
2686,
12,
24,
16,
492,
2686,
1769,
565,
28904,
1388,
18,
1289,
12,
8712,
9451,
1528,
16,
21,
16,
2
] |
StringBuffer buffer = new StringBuffer(); buffer.append("namespace NS1{ \n" ); buffer.append(" void f( void * ); \n" ); buffer.append("} \n" ); buffer.append("namespace NS2{ \n" ); buffer.append(" using namespace NS1; \n" ); buffer.append(" class B {}; \n" ); buffer.append(" void f( void * ); \n" ); buffer.append("} \n" ); buffer.append("class A : public NS2::B {} *a; \n" ); buffer.append("int main() { \n" ); buffer.append(" f( a ); \n" ); buffer.append("} \n" ); IASTTranslationUnit tu = parse( buffer.toString(), ParserLanguage.CPP ); CPPNameCollector col = new CPPNameCollector(); CPPVisitor.visitTranslationUnit(tu, col);
|
StringBuffer buffer = new StringBuffer(); buffer.append("namespace NS1{ \n"); buffer.append(" void f( void * ); \n"); buffer.append("} \n"); buffer.append("namespace NS2{ \n"); buffer.append(" using namespace NS1; \n"); buffer.append(" class B {}; \n"); buffer.append(" void f( void * ); \n"); buffer.append("} \n"); buffer.append("class A : public NS2::B {} *a; \n"); buffer.append("int main() { \n"); buffer.append(" f( a ); \n"); buffer.append("} \n");
|
public void testArgumentDependantLookup_2() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("namespace NS1{ \n" ); //$NON-NLS-1$ buffer.append(" void f( void * ); \n" ); //$NON-NLS-1$ buffer.append("} \n" ); //$NON-NLS-1$ buffer.append("namespace NS2{ \n" ); //$NON-NLS-1$ buffer.append(" using namespace NS1; \n" ); //$NON-NLS-1$ buffer.append(" class B {}; \n" ); //$NON-NLS-1$ buffer.append(" void f( void * ); \n" ); //$NON-NLS-1$ buffer.append("} \n" ); //$NON-NLS-1$ buffer.append("class A : public NS2::B {} *a; \n" ); //$NON-NLS-1$ buffer.append("int main() { \n" ); //$NON-NLS-1$ buffer.append(" f( a ); \n" ); //$NON-NLS-1$ buffer.append("} \n" ); //$NON-NLS-1$ IASTTranslationUnit tu = parse( buffer.toString(), ParserLanguage.CPP ); CPPNameCollector col = new CPPNameCollector(); CPPVisitor.visitTranslationUnit(tu, col); IFunction fref = (IFunction) col.getName(14).resolveBinding(); IFunction f1 = (IFunction) col.getName(1).resolveBinding(); IFunction f2 = (IFunction) col.getName(6).resolveBinding(); assertSame( f2, fref ); assertNotNull( f1 ); assertNotNull( f2 ); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/85642473031be9bd27aacd0ceddea64e2ce41399/AST2CPPTests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
1379,
4584,
970,
6609,
67,
22,
1435,
1216,
1185,
288,
4202,
6674,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
4937,
11472,
21,
95,
15604,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
282,
918,
284,
12,
918,
380,
11272,
1171,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
97,
4766,
565,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
4937,
11472,
22,
95,
15604,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
282,
1450,
1981,
11472,
21,
31,
2868,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
282,
667,
605,
2618,
31,
15604,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
282,
918,
284,
12,
918,
380,
11272,
1171,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
97,
4766,
565,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
1106,
432,
294,
1071,
11472,
22,
2866,
38,
2618,
380,
69,
31,
4202,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
474,
2774,
1435,
288,
7682,
521,
82,
6,
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,
565,
1071,
918,
1842,
1379,
4584,
970,
6609,
67,
22,
1435,
1216,
1185,
288,
4202,
6674,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
4937,
11472,
21,
95,
15604,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
282,
918,
284,
12,
918,
380,
11272,
1171,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
97,
4766,
565,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
4937,
11472,
22,
95,
15604,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
282,
1450,
1981,
2
] |
JavaPlugin.log(e.getStatus()); showError(ActionMessages.getString("AddGetterSetterAction.error.actionfailed"));
|
ExceptionHandler.handle(e, getShell(), dialogTitle, ActionMessages.getString("AddGetterSetterAction.error.actionfailed"));
|
protected void run(IStructuredSelection selection) { try { IField[] selectedFields= getSelectedFields(selection); if (canEnableOn(selectedFields)){ run(selectedFields[0].getDeclaringType(), selectedFields); return; } Object firstElement= selection.getFirstElement(); if (firstElement instanceof IType) run((IType)firstElement, new IField[0]); else if (firstElement instanceof ICompilationUnit) run(JavaElementUtil.getMainType((ICompilationUnit)firstElement), new IField[0]); } catch (CoreException e) { JavaPlugin.log(e.getStatus()); showError(ActionMessages.getString("AddGetterSetterAction.error.actionfailed")); //$NON-NLS-1$ } }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/ab4859e6542e2d6b608536b99a3810e054ff6737/AddGetterSetterAction.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1086,
12,
45,
30733,
6233,
4421,
13,
288,
202,
202,
698,
288,
1082,
202,
45,
974,
8526,
3170,
2314,
33,
16625,
2314,
12,
10705,
1769,
1082,
202,
430,
261,
4169,
8317,
1398,
12,
8109,
2314,
3719,
95,
9506,
202,
2681,
12,
8109,
2314,
63,
20,
8009,
588,
3456,
5968,
559,
9334,
3170,
2314,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
9506,
202,
921,
1122,
1046,
33,
4421,
18,
588,
3759,
1046,
5621,
1082,
202,
430,
261,
3645,
1046,
1276,
467,
559,
13,
9506,
202,
2681,
12443,
45,
559,
13,
3645,
1046,
16,
394,
467,
974,
63,
20,
19226,
1082,
202,
12107,
309,
261,
3645,
1046,
1276,
467,
19184,
2802,
13,
6862,
202,
2681,
12,
5852,
1046,
1304,
18,
588,
6376,
559,
12443,
45,
19184,
2802,
13,
3645,
1046,
3631,
394,
467,
974,
63,
20,
19226,
202,
202,
97,
1044,
261,
25341,
425,
13,
288,
1082,
202,
5852,
3773,
18,
1330,
12,
73,
18,
588,
1482,
10663,
1082,
202,
4500,
668,
12,
1803,
5058,
18,
588,
780,
2932,
986,
8461,
8465,
1803,
18,
1636,
18,
1128,
7307,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
6862,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1117,
918,
1086,
12,
45,
30733,
6233,
4421,
13,
288,
202,
202,
698,
288,
1082,
202,
45,
974,
8526,
3170,
2314,
33,
16625,
2314,
12,
10705,
1769,
1082,
202,
430,
261,
4169,
8317,
1398,
12,
8109,
2314,
3719,
95,
9506,
202,
2681,
12,
8109,
2314,
63,
20,
8009,
588,
3456,
5968,
559,
9334,
3170,
2314,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
9506,
202,
921,
1122,
1046,
33,
4421,
18,
588,
3759,
1046,
5621,
1082,
202,
430,
261,
3645,
1046,
1276,
467,
559,
13,
9506,
202,
2681,
12443,
45,
559,
13,
3645,
1046,
16,
394,
467,
974,
63,
20,
19226,
1082,
202,
12107,
309,
261,
3645,
1046,
1276,
467,
19184,
2802,
13,
6862,
202,
2681,
12,
2
] |
if (currentTask == null) currentTask = name;
|
if (currentTask == null) { currentTask = name; }
|
protected ProgressMonitorPart createProgressMonitorPart( Composite composite, GridLayout pmlayout) { return new ProgressMonitorPart(composite, pmlayout, SWT.DEFAULT) { String currentTask = null; /* (non-Javadoc) * @see org.eclipse.jface.wizard.ProgressMonitorPart#setBlocked(org.eclipse.core.runtime.IStatus) */ public void setBlocked(IStatus reason) { super.setBlocked(reason); if (!lockedUI)//Do not show blocked if we are locking the UI getBlockedHandler().showBlocked(getShell(), this, reason, currentTask); } /* (non-Javadoc) * @see org.eclipse.jface.wizard.ProgressMonitorPart#clearBlocked() */ public void clearBlocked() { super.clearBlocked(); if (!lockedUI)//Do not vlear if we never set it getBlockedHandler().clearBlocked(); } /* (non-Javadoc) * @see org.eclipse.jface.wizard.ProgressMonitorPart#beginTask(java.lang.String, int) */ public void beginTask(String name, int totalWork) { super.beginTask(name, totalWork); currentTask = name; } /* (non-Javadoc) * @see org.eclipse.jface.wizard.ProgressMonitorPart#setTaskName(java.lang.String) */ public void setTaskName(String name) { super.setTaskName(name); currentTask = name; } /* (non-Javadoc) * @see org.eclipse.jface.wizard.ProgressMonitorPart#subTask(java.lang.String) */ public void subTask(String name) { super.subTask(name); //If we haven't got anything yet use this value for more context if (currentTask == null) currentTask = name; } }; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/391f2606b4ea2c1fb5052d938ca90877ee7631f6/WizardDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
10980,
7187,
1988,
752,
5491,
7187,
1988,
12,
5411,
14728,
9635,
16,
7145,
3744,
293,
781,
2012,
13,
288,
3639,
327,
394,
10980,
7187,
1988,
12,
27676,
16,
293,
781,
2012,
16,
348,
8588,
18,
5280,
13,
288,
5411,
514,
783,
2174,
273,
446,
31,
5411,
1748,
261,
5836,
17,
24060,
13,
2398,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
31837,
18,
5491,
7187,
1988,
7,
542,
23722,
12,
3341,
18,
20416,
18,
3644,
18,
9448,
18,
45,
1482,
13,
2398,
1195,
5411,
1071,
918,
444,
23722,
12,
45,
1482,
3971,
13,
288,
7734,
2240,
18,
542,
23722,
12,
10579,
1769,
7734,
309,
16051,
15091,
5370,
13,
759,
3244,
486,
2405,
14547,
309,
732,
854,
18887,
326,
6484,
10792,
11902,
329,
1503,
7675,
4500,
23722,
12,
588,
13220,
9334,
333,
16,
3971,
16,
18701,
783,
2174,
1769,
5411,
289,
5411,
1748,
261,
5836,
17,
24060,
13,
2398,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
31837,
18,
5491,
7187,
1988,
7,
8507,
23722,
1435,
2398,
1195,
5411,
1071,
918,
2424,
23722,
1435,
288,
7734,
2240,
18,
8507,
23722,
5621,
7734,
309,
16051,
15091,
5370,
13,
759,
3244,
486,
331,
298,
297,
309,
732,
5903,
444,
518,
10792,
11902,
329,
1503,
7675,
8507,
23722,
5621,
5411,
289,
5411,
1748,
261,
5836,
17,
24060,
13,
2398,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
31837,
18,
5491,
7187,
1988,
7,
10086,
2174,
12,
6290,
18,
4936,
18,
780,
16,
509,
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,
10980,
7187,
1988,
752,
5491,
7187,
1988,
12,
5411,
14728,
9635,
16,
7145,
3744,
293,
781,
2012,
13,
288,
3639,
327,
394,
10980,
7187,
1988,
12,
27676,
16,
293,
781,
2012,
16,
348,
8588,
18,
5280,
13,
288,
5411,
514,
783,
2174,
273,
446,
31,
5411,
1748,
261,
5836,
17,
24060,
13,
2398,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
31837,
18,
5491,
7187,
1988,
7,
542,
23722,
12,
3341,
18,
20416,
18,
3644,
18,
9448,
18,
45,
1482,
13,
2398,
1195,
5411,
1071,
918,
444,
23722,
12,
45,
1482,
3971,
13,
288,
7734,
2240,
18,
542,
23722,
12,
10579,
1769,
7734,
309,
16051,
15091,
5370,
13,
759,
3244,
486,
2405,
14547,
309,
732,
2
] |
public static int sysDelete(byte[] name) { return 0; }
|
public static int sysDelete(byte[] name) { return VM_SysCallMagic.sysDelete(VM_BootRecord.the_boot_record.sysDeleteIP, name); }
|
public static int sysDelete(byte[] name) { return 0; }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/d3efd9c24977277753634612e8923180e9ccb604/VM_SysCall.java/buggy/rvm/src/vm/runtime/VM_SysCall.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
509,
2589,
2613,
12,
7229,
8526,
508,
13,
288,
327,
374,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
1071,
760,
509,
2589,
2613,
12,
7229,
8526,
508,
13,
288,
327,
374,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (os != null) { try { os.close(); } catch (IOException e) { } }
|
SVNFileUtil.closeFile(os);
|
public SVNStatusType mergeProperties(String name, Map changedProperties, Map locallyChanged, boolean updateBaseProps, SVNLog log) throws SVNException { changedProperties = changedProperties == null ? Collections.EMPTY_MAP : changedProperties; locallyChanged = locallyChanged == null ? Collections.EMPTY_MAP : locallyChanged; SVNProperties working = getProperties(name, false); SVNProperties workingTmp = getProperties(name, true); SVNProperties base = getBaseProperties(name, false); SVNProperties baseTmp = getBaseProperties(name, true); working.copyTo(workingTmp); if (updateBaseProps) { base.copyTo(baseTmp); } Collection conflicts = new ArrayList(); SVNStatusType result = changedProperties.isEmpty() ? SVNStatusType.UNCHANGED : SVNStatusType.CHANGED; for (Iterator propNames = changedProperties.keySet().iterator(); propNames.hasNext();) { String propName = (String) propNames.next(); String propValue = (String) changedProperties.get(propName); DebugLog.log("merging prop change: " + propName + "=" + propValue); if (updateBaseProps) { baseTmp.setPropertyValue(propName, propValue); } if (locallyChanged.containsKey(propName)) { String workingValue = (String) locallyChanged.get(propName); String conflict = null; //if (workingValue != null) { if (workingValue == null && propValue != null) { conflict = MessageFormat.format("Property ''{0}'' locally deleted, but update sets it to ''{1}''\n", new String[] {propName, propValue}); } else if (workingValue != null && propValue == null) { conflict = MessageFormat.format("Property ''{0}'' locally changed to ''{1}'', but update deletes it\n", new String[] {propName, workingValue}); } else if (workingValue != null && !workingValue.equals(propValue)) { conflict = MessageFormat.format("Property ''{0}'' locally changed to ''{1}'', but update sets it to ''{2}''\n", new String[] {propName, workingValue, propValue}); } if (conflict != null) { conflicts.add(conflict); continue; } result = SVNStatusType.MERGED; //} } DebugLog.log("setting tmp wc value: " + propName + "=" + propValue); workingTmp.setPropertyValue(propName, propValue); } // now log all. Map command = new HashMap(); if (log != null) { command.put(SVNLog.NAME_ATTR, workingTmp.getPath()); command.put(SVNLog.DEST_ATTR, working.getPath()); log.addCommand(SVNLog.MOVE, command, false); command.clear(); command.put(SVNLog.NAME_ATTR, working.getPath()); log.addCommand(SVNLog.READONLY, command, false); if (updateBaseProps) { command.put(SVNLog.NAME_ATTR, baseTmp.getPath()); command.put(SVNLog.DEST_ATTR, base.getPath()); log.addCommand(SVNLog.MOVE, command, false); command.clear(); command.put(SVNLog.NAME_ATTR, base.getPath()); log.addCommand(SVNLog.READONLY, command, false); } } if (!conflicts.isEmpty()) { result = SVNStatusType.CONFLICTED; String prejTmpPath = "".equals(name) ? ".svn/tmp/dir_conflicts" : ".svn/tmp/props/" + name; File prejTmpFile = SVNFileUtil.createUniqueFile(getRoot(), prejTmpPath, ".prej"); prejTmpPath = SVNFileUtil.getBasePath(prejTmpFile); String prejPath = getEntries().getEntry(name, true).getPropRejectFile(); getEntries().close(); if (prejPath == null) { prejPath = "".equals(name) ? "dir_conflicts" : name; File prejFile = SVNFileUtil.createUniqueFile(getRoot(), prejPath, ".prej"); prejPath = SVNFileUtil.getBasePath(prejFile); } OutputStream os = null; try { os = new FileOutputStream(new File(getRoot(), prejTmpPath)); for (Iterator lines = conflicts.iterator(); lines.hasNext();) { String line = (String) lines.next(); os.write(line.getBytes("UTF-8")); } } catch (IOException e) { SVNErrorManager.error(0, e); } finally { if (os != null) { try { os.close(); } catch (IOException e) { } } } if (log != null) { command.put(SVNLog.NAME_ATTR, prejTmpPath); command.put(SVNLog.DEST_ATTR, prejPath); log.addCommand(SVNLog.APPEND, command, false); command.clear(); command.put(SVNLog.NAME_ATTR, prejTmpPath); log.addCommand(SVNLog.DELETE, command, false); command.clear(); command.put(SVNLog.NAME_ATTR, name); command.put(SVNProperty.shortPropertyName(SVNProperty.PROP_REJECT_FILE), prejPath); log.addCommand(SVNLog.MODIFY_ENTRY, command, false); } } if (log == null) { workingTmp.delete(); baseTmp.delete(); } return result; }
|
2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/6c2a9b21ad94c8ea1ae6d43c84b3c1225fe4e460/SVNDirectory.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNDirectory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29537,
50,
1482,
559,
2691,
2297,
12,
780,
508,
16,
1635,
3550,
2297,
16,
1635,
13760,
5033,
16,
1250,
1089,
2171,
5047,
16,
29537,
50,
1343,
613,
13,
1216,
29537,
50,
503,
288,
3639,
3550,
2297,
273,
3550,
2297,
422,
446,
692,
5737,
18,
13625,
67,
8352,
294,
3550,
2297,
31,
3639,
13760,
5033,
273,
13760,
5033,
422,
446,
692,
5737,
18,
13625,
67,
8352,
294,
13760,
5033,
31,
3639,
29537,
50,
2297,
5960,
273,
9392,
12,
529,
16,
629,
1769,
3639,
29537,
50,
2297,
5960,
9161,
273,
9392,
12,
529,
16,
638,
1769,
3639,
29537,
50,
2297,
1026,
273,
8297,
2297,
12,
529,
16,
629,
1769,
3639,
29537,
50,
2297,
1026,
9161,
273,
8297,
2297,
12,
529,
16,
638,
1769,
3639,
5960,
18,
3530,
774,
12,
20478,
9161,
1769,
3639,
309,
261,
2725,
2171,
5047,
13,
288,
5411,
1026,
18,
3530,
774,
12,
1969,
9161,
1769,
3639,
289,
7734,
2200,
14450,
273,
394,
2407,
5621,
3639,
29537,
50,
1482,
559,
563,
273,
3550,
2297,
18,
291,
1921,
1435,
692,
29537,
50,
1482,
559,
18,
2124,
24435,
294,
29537,
50,
1482,
559,
18,
24435,
31,
3639,
364,
261,
3198,
2270,
1557,
273,
3550,
2297,
18,
856,
694,
7675,
9838,
5621,
2270,
1557,
18,
5332,
2134,
5621,
13,
288,
5411,
514,
9994,
273,
261,
780,
13,
2270,
1557,
18,
4285,
5621,
5411,
514,
19432,
273,
261,
780,
13,
3550,
2297,
18,
588,
12,
5986,
461,
1769,
5411,
4015,
1343,
18,
1330,
2932,
6592,
1998,
2270,
2549,
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,
29537,
50,
1482,
559,
2691,
2297,
12,
780,
508,
16,
1635,
3550,
2297,
16,
1635,
13760,
5033,
16,
1250,
1089,
2171,
5047,
16,
29537,
50,
1343,
613,
13,
1216,
29537,
50,
503,
288,
3639,
3550,
2297,
273,
3550,
2297,
422,
446,
692,
5737,
18,
13625,
67,
8352,
294,
3550,
2297,
31,
3639,
13760,
5033,
273,
13760,
5033,
422,
446,
692,
5737,
18,
13625,
67,
8352,
294,
13760,
5033,
31,
3639,
29537,
50,
2297,
5960,
273,
9392,
12,
529,
16,
629,
1769,
3639,
29537,
50,
2297,
5960,
9161,
273,
9392,
12,
529,
16,
638,
1769,
3639,
29537,
50,
2297,
1026,
273,
8297,
2297,
12,
529,
16,
629,
1769,
3639,
29537,
50,
2297,
1026,
9161,
273,
8297,
2297,
12,
2
] |
}
|
}
|
private void parseHeader(DataDictionary dd) throws InvalidMessage { boolean invalidHeaderFieldOrder = false; StringField beginString = extractField(dd); if (beginString == null || beginString.getField() != BeginString.FIELD) { invalidHeaderFieldOrder = true; } if (beginString != null) { header.setField(beginString); } StringField bodyLength = extractField(dd); if (bodyLength == null || bodyLength.getField() != BodyLength.FIELD) { invalidHeaderFieldOrder = true; } if (bodyLength != null) { header.setField(bodyLength); } StringField msgType = extractField(dd); if (msgType == null || msgType.getField() != MsgType.FIELD) { invalidHeaderFieldOrder = true; } if (msgType != null) { header.setField(msgType); } if (doValidation && invalidHeaderFieldOrder) { throw new InvalidMessage("Header fields out of order"); } StringField field = extractField(dd); while (field != null && isHeaderField(field, dd)) { header.setField(field); header.setField(field); field = extractField(dd); } pushBack(field); }
|
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/f32abf94bf719c43213b4e48229208c2a5e6a5af/Message.java/clean/core/src/main/java/quickfix/Message.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
1864,
12,
751,
10905,
6957,
13,
1216,
1962,
1079,
288,
3639,
1250,
2057,
1864,
974,
2448,
273,
629,
31,
3639,
30916,
2376,
780,
273,
2608,
974,
12,
449,
1769,
3639,
309,
261,
10086,
780,
422,
446,
747,
2376,
780,
18,
588,
974,
1435,
480,
14323,
780,
18,
6776,
13,
288,
5411,
2057,
1864,
974,
2448,
273,
638,
31,
3639,
289,
3639,
309,
261,
10086,
780,
480,
446,
13,
288,
5411,
1446,
18,
542,
974,
12,
10086,
780,
1769,
3639,
289,
3639,
30916,
1417,
1782,
273,
2608,
974,
12,
449,
1769,
3639,
309,
261,
3432,
1782,
422,
446,
747,
1417,
1782,
18,
588,
974,
1435,
480,
5652,
1782,
18,
6776,
13,
288,
5411,
2057,
1864,
974,
2448,
273,
638,
31,
3639,
289,
540,
309,
261,
3432,
1782,
480,
446,
13,
288,
5411,
1446,
18,
542,
974,
12,
3432,
1782,
1769,
3639,
289,
3639,
30916,
1234,
559,
273,
2608,
974,
12,
449,
1769,
3639,
309,
261,
3576,
559,
422,
446,
747,
1234,
559,
18,
588,
974,
1435,
480,
8671,
559,
18,
6776,
13,
288,
5411,
2057,
1864,
974,
2448,
273,
638,
31,
3639,
289,
3639,
309,
261,
3576,
559,
480,
446,
13,
288,
5411,
1446,
18,
542,
974,
12,
3576,
559,
1769,
3639,
289,
3639,
309,
261,
2896,
4354,
597,
2057,
1864,
974,
2448,
13,
288,
5411,
604,
394,
1962,
1079,
2932,
1864,
1466,
596,
434,
1353,
8863,
3639,
289,
3639,
30916,
652,
273,
2608,
974,
12,
449,
1769,
3639,
1323,
261,
1518,
480,
446,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
1864,
12,
751,
10905,
6957,
13,
1216,
1962,
1079,
288,
3639,
1250,
2057,
1864,
974,
2448,
273,
629,
31,
3639,
30916,
2376,
780,
273,
2608,
974,
12,
449,
1769,
3639,
309,
261,
10086,
780,
422,
446,
747,
2376,
780,
18,
588,
974,
1435,
480,
14323,
780,
18,
6776,
13,
288,
5411,
2057,
1864,
974,
2448,
273,
638,
31,
3639,
289,
3639,
309,
261,
10086,
780,
480,
446,
13,
288,
5411,
1446,
18,
542,
974,
12,
10086,
780,
1769,
3639,
289,
3639,
30916,
1417,
1782,
273,
2608,
974,
12,
449,
1769,
3639,
309,
261,
3432,
1782,
422,
446,
747,
1417,
1782,
18,
588,
974,
1435,
480,
5652,
1782,
18,
6776,
13,
288,
5411,
2057,
1864,
974,
2
] |
} catch (IOException ioe) { String msg = "Problem creating " + archiveType + ": " + ioe.getMessage();
|
} catch (Throwable t) { String msg = "Problem creating " + archiveType + ": " + t.getMessage();
|
public void execute() throws BuildException { if (baseDir == null && filesets.size() == 0 && "zip".equals(archiveType)) { throw new BuildException( "basedir attribute must be set, or at least " + "one fileset must be given!" ); } if (zipFile == null) { throw new BuildException("You must specify the " + archiveType + " file to create!"); } // Renamed version of original file, if it exists File renamedFile = null; // Whether or not an actual update is required - // we don't need to update if the original file doesn't exist addingNewFiles = true; doUpdate = doUpdate && zipFile.exists(); if (doUpdate) { FileUtils fileUtils = FileUtils.newFileUtils(); renamedFile = fileUtils.createTempFile("zip", ".tmp", fileUtils.getParentFile(zipFile)); try { if (!zipFile.renameTo(renamedFile)) { throw new BuildException("Unable to rename old file to temporary file"); } } catch (SecurityException e) { throw new BuildException("Not allowed to rename old file to temporary file"); } } // Create the scanners to pass to isUpToDate(). Vector dss = new Vector (); if (baseDir != null) { dss.addElement(getDirectoryScanner(baseDir)); } for (int i=0; i<filesets.size(); i++) { FileSet fs = (FileSet) filesets.elementAt(i); dss.addElement (fs.getDirectoryScanner(project)); } int dssSize = dss.size(); FileScanner[] scanners = new FileScanner[dssSize]; dss.copyInto(scanners); // quick exit if the target is up to date // can also handle empty archives if (isUpToDate(scanners, zipFile)) { return; } String action = doUpdate ? "Updating " : "Building "; log(action + archiveType +": "+ zipFile.getAbsolutePath()); boolean success = false; try { ZipOutputStream zOut = new ZipOutputStream(new FileOutputStream(zipFile)); zOut.setEncoding(encoding); try { if (doCompress) { zOut.setMethod(ZipOutputStream.DEFLATED); } else { zOut.setMethod(ZipOutputStream.STORED); } initZipOutputStream(zOut); // Add the implicit fileset to the archive. if (baseDir != null) { addFiles(getDirectoryScanner(baseDir), zOut, "", ""); } // Add the explicit filesets to the archive. addFiles(filesets, zOut); if (doUpdate) { addingNewFiles = false; ZipFileSet oldFiles = new ZipFileSet(); oldFiles.setSrc(renamedFile); StringBuffer exclusionPattern = new StringBuffer(); for (int i=0; i < addedFiles.size(); i++) { if (i != 0) { exclusionPattern.append(","); } exclusionPattern.append((String)addedFiles.elementAt(i)); } oldFiles.setExcludes(exclusionPattern.toString()); Vector tmp = new Vector(); tmp.addElement(oldFiles); addFiles(tmp, zOut); } finalizeZipOutputStream(zOut); success = true; } finally { // Close the output stream. try { if (zOut != null) { zOut.close(); } } catch(IOException ex) { // If we're in this finally clause because of an exception, we don't // really care if there's an exception when closing the stream. E.g. if it // throws "ZIP file must have at least one entry", because an exception happened // before we added any files, then we must swallow this exception. Otherwise, // the error that's reported will be the close() error, which is not the real // cause of the problem. if (success) { throw ex; } } } } catch (IOException ioe) { String msg = "Problem creating " + archiveType + ": " + ioe.getMessage(); // delete a bogus ZIP file if (!zipFile.delete()) { msg += " (and the archive is probably corrupt but I could not delete it)"; } if (doUpdate) { if (!renamedFile.renameTo(zipFile)) { msg+=" (and I couldn't rename the temporary file "+ renamedFile.getName()+" back)"; } } throw new BuildException(msg, ioe, location); } finally { cleanUp(); } // If we've been successful on an update, delete the temporary file if (success && doUpdate) { if (!renamedFile.delete()) { log ("Warning: unable to delete temporary file " + renamedFile.getName(), Project.MSG_WARN); } } }
|
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/750999053f32f6d133b3c86821054ed0ec6d05fe/Zip.java/clean/src/main/org/apache/tools/ant/taskdefs/Zip.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
309,
261,
1969,
1621,
422,
446,
597,
1390,
2413,
18,
1467,
1435,
422,
374,
597,
315,
4450,
9654,
14963,
12,
10686,
559,
3719,
288,
5411,
604,
394,
18463,
12,
315,
31722,
1566,
1297,
506,
444,
16,
578,
622,
4520,
315,
397,
4766,
1377,
315,
476,
1390,
278,
1297,
506,
864,
4442,
11272,
3639,
289,
3639,
309,
261,
4450,
812,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
6225,
1297,
4800,
326,
315,
397,
5052,
559,
397,
315,
585,
358,
752,
4442,
1769,
3639,
289,
3639,
368,
25921,
2808,
1177,
434,
2282,
585,
16,
309,
518,
1704,
3639,
1387,
17657,
812,
273,
446,
31,
3639,
368,
17403,
578,
486,
392,
3214,
1089,
353,
1931,
300,
3639,
368,
732,
2727,
1404,
1608,
358,
1089,
309,
326,
2282,
585,
3302,
1404,
1005,
3639,
6534,
1908,
2697,
273,
638,
31,
3639,
741,
1891,
273,
741,
1891,
597,
19450,
18,
1808,
5621,
3639,
309,
261,
2896,
1891,
13,
3639,
288,
5411,
13779,
585,
1989,
273,
13779,
18,
2704,
812,
1989,
5621,
5411,
17657,
812,
273,
585,
1989,
18,
2640,
20181,
2932,
4450,
3113,
3552,
5645,
3113,
4766,
10402,
585,
1989,
18,
588,
3054,
812,
12,
4450,
812,
10019,
5411,
775,
5411,
288,
7734,
309,
16051,
4450,
812,
18,
18539,
774,
12,
1187,
2808,
812,
3719,
288,
10792,
604,
394,
18463,
2932,
3370,
358,
6472,
1592,
585,
358,
6269,
585,
8863,
7734,
289,
5411,
289,
5411,
1044,
261,
24918,
425,
13,
5411,
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,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
309,
261,
1969,
1621,
422,
446,
597,
1390,
2413,
18,
1467,
1435,
422,
374,
597,
315,
4450,
9654,
14963,
12,
10686,
559,
3719,
288,
5411,
604,
394,
18463,
12,
315,
31722,
1566,
1297,
506,
444,
16,
578,
622,
4520,
315,
397,
4766,
1377,
315,
476,
1390,
278,
1297,
506,
864,
4442,
11272,
3639,
289,
3639,
309,
261,
4450,
812,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
6225,
1297,
4800,
326,
315,
397,
5052,
559,
397,
315,
585,
358,
752,
4442,
1769,
3639,
289,
3639,
368,
25921,
2808,
1177,
434,
2282,
585,
16,
309,
518,
1704,
3639,
1387,
17657,
812,
273,
446,
31,
3639,
368,
17403,
578,
486,
392,
2
] |
else if ( (icqStatus & FullUserInfo.ICQSTATUS_INVISIBLE ) != 0) { return IcqStatusEnum.INVISIBLE; } else if ( (icqStatus & FullUserInfo.ICQSTATUS_NA ) != 0) { return IcqStatusEnum.NOT_AVAILABLE; } else if ( (icqStatus & FullUserInfo.ICQSTATUS_OCCUPIED ) != 0) { return IcqStatusEnum.OCCUPIED; }
|
private IcqStatusEnum icqStatusLongToPresenceStatus(long icqStatus) { if ( icqStatus == -1) { return IcqStatusEnum.OFFLINE; } else if ( (icqStatus & FullUserInfo.ICQSTATUS_AWAY ) != 0) { return IcqStatusEnum.AWAY; } else if ( (icqStatus & FullUserInfo.ICQSTATUS_DND ) != 0) { return IcqStatusEnum.DO_NOT_DISTURB; } else if ( (icqStatus & FullUserInfo.ICQSTATUS_FFC ) != 0) { return IcqStatusEnum.FREE_FOR_CHAT; } else if ( (icqStatus & FullUserInfo.ICQSTATUS_INVISIBLE ) != 0) { return IcqStatusEnum.INVISIBLE; } else if ( (icqStatus & FullUserInfo.ICQSTATUS_NA ) != 0) { return IcqStatusEnum.NOT_AVAILABLE; } else if ( (icqStatus & FullUserInfo.ICQSTATUS_OCCUPIED ) != 0) { return IcqStatusEnum.OCCUPIED; } // FIXED: Issue 70 // Incomplete status information in ICQ // if none of the statuses is satisfied // then the default is Online // there is no such status send from the server as Offline // when received error from server, after a query // the status is -1 so Offline// else if ((icqStatus & ICQ_ONLINE_MASK) == 0 )// {// return IcqStatusEnum.OFFLINE;// } return IcqStatusEnum.ONLINE; }
|
43455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43455/4f7cf4f658d569bf76c924106b788ce8b0d90fc7/OperationSetPersistentPresenceIcqImpl.java/clean/src/net/java/sip/communicator/impl/protocol/icq/OperationSetPersistentPresenceIcqImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
71,
85,
1482,
3572,
13579,
85,
1482,
3708,
774,
22590,
1482,
12,
5748,
13579,
85,
1482,
13,
565,
288,
3639,
309,
261,
13579,
85,
1482,
422,
300,
21,
13,
3639,
288,
5411,
327,
467,
71,
85,
1482,
3572,
18,
8797,
5997,
31,
3639,
289,
3639,
469,
309,
261,
261,
335,
85,
1482,
473,
11692,
21015,
18,
2871,
53,
8608,
67,
12999,
5255,
262,
480,
374,
13,
3639,
288,
5411,
327,
467,
71,
85,
1482,
3572,
18,
12999,
5255,
31,
3639,
289,
3639,
469,
309,
261,
261,
335,
85,
1482,
473,
11692,
21015,
18,
2871,
53,
8608,
67,
40,
2908,
262,
480,
374,
13,
3639,
288,
5411,
327,
467,
71,
85,
1482,
3572,
18,
3191,
67,
4400,
67,
2565,
882,
1099,
38,
31,
3639,
289,
3639,
469,
309,
261,
261,
335,
85,
1482,
473,
11692,
21015,
18,
2871,
53,
8608,
67,
2246,
39,
262,
480,
374,
13,
3639,
288,
5411,
327,
467,
71,
85,
1482,
3572,
18,
28104,
67,
7473,
67,
1792,
789,
31,
3639,
289,
3639,
469,
309,
261,
261,
335,
85,
1482,
473,
11692,
21015,
18,
2871,
53,
8608,
67,
706,
29588,
262,
480,
374,
13,
3639,
288,
5411,
327,
467,
71,
85,
1482,
3572,
18,
706,
29588,
31,
3639,
289,
3639,
469,
309,
261,
261,
335,
85,
1482,
473,
11692,
21015,
18,
2871,
53,
8608,
67,
11277,
262,
480,
374,
13,
3639,
288,
5411,
327,
467,
71,
85,
1482,
3572,
18,
4400,
67,
23222,
31,
3639,
289,
3639,
469,
309,
261,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
71,
85,
1482,
3572,
13579,
85,
1482,
3708,
774,
22590,
1482,
12,
5748,
13579,
85,
1482,
13,
565,
288,
3639,
309,
261,
13579,
85,
1482,
422,
300,
21,
13,
3639,
288,
5411,
327,
467,
71,
85,
1482,
3572,
18,
8797,
5997,
31,
3639,
289,
3639,
469,
309,
261,
261,
335,
85,
1482,
473,
11692,
21015,
18,
2871,
53,
8608,
67,
12999,
5255,
262,
480,
374,
13,
3639,
288,
5411,
327,
467,
71,
85,
1482,
3572,
18,
12999,
5255,
31,
3639,
289,
3639,
469,
309,
261,
261,
335,
85,
1482,
473,
11692,
21015,
18,
2871,
53,
8608,
67,
40,
2908,
262,
480,
374,
13,
3639,
288,
5411,
327,
467,
71,
85,
1482,
3572,
18,
3191,
67,
4400,
2
] |
|
public Writer writeTo(Writer out) throws IOException { if (showSource) { // Set it to TEXT response.setContentType("text/plain"); // must come before response.getOutputStream() send(pageMeta.groovySource, out); pageMeta.groovySource = null; } else { // Set it to HTML by default if(LOG.isDebugEnabled()) { LOG.debug("Writing response with content type: " + pageMeta.contentType); } response.setContentType(pageMeta.contentType); // must come before response.getWriter() Binding binding = getBinding(request, response, out); Script page = InvokerHelper.createScript(pageMeta.servletScriptClass, binding); page.run(); } return out; }
|
26970 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/26970/3afaa6d2bd300ddf0fa9f8f8cbff50e1f3676464/GroovyPagesTemplateEngine.java/clean/src/web/org/codehaus/groovy/grails/web/pages/GroovyPagesTemplateEngine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
5497,
12870,
12,
2289,
596,
13,
1216,
1860,
288,
5411,
309,
261,
4500,
1830,
13,
288,
10792,
368,
1000,
518,
358,
9204,
7734,
766,
18,
542,
8046,
2932,
955,
19,
7446,
8863,
368,
1297,
12404,
1865,
766,
18,
588,
4632,
1435,
7734,
1366,
12,
2433,
2781,
18,
75,
12859,
1830,
16,
596,
1769,
7734,
1363,
2781,
18,
75,
12859,
1830,
273,
446,
31,
5411,
289,
469,
288,
7734,
368,
1000,
518,
358,
3982,
635,
805,
7734,
309,
12,
4842,
18,
291,
2829,
1526,
10756,
288,
10792,
2018,
18,
4148,
2932,
18835,
766,
598,
913,
618,
30,
315,
397,
1363,
2781,
18,
22194,
1769,
7734,
289,
7734,
766,
18,
542,
8046,
12,
2433,
2781,
18,
22194,
1769,
368,
1297,
12404,
1865,
766,
18,
588,
2289,
1435,
7734,
15689,
5085,
273,
29471,
12,
2293,
16,
766,
16,
596,
1769,
7734,
7739,
1363,
273,
17602,
264,
2276,
18,
2640,
3651,
12,
2433,
2781,
18,
23231,
3651,
797,
16,
5085,
1769,
7734,
1363,
18,
2681,
5621,
5411,
289,
5411,
327,
596,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
5497,
12870,
12,
2289,
596,
13,
1216,
1860,
288,
5411,
309,
261,
4500,
1830,
13,
288,
10792,
368,
1000,
518,
358,
9204,
7734,
766,
18,
542,
8046,
2932,
955,
19,
7446,
8863,
368,
1297,
12404,
1865,
766,
18,
588,
4632,
1435,
7734,
1366,
12,
2433,
2781,
18,
75,
12859,
1830,
16,
596,
1769,
7734,
1363,
2781,
18,
75,
12859,
1830,
273,
446,
31,
5411,
289,
469,
288,
7734,
368,
1000,
518,
358,
3982,
635,
805,
7734,
309,
12,
4842,
18,
291,
2829,
1526,
10756,
288,
10792,
2018,
18,
4148,
2932,
18835,
766,
598,
913,
618,
30,
315,
397,
1363,
2781,
18,
22194,
1769,
7734,
289,
7734,
766,
18,
542,
8046,
12,
2433,
2781,
18,
22194,
1769,
368,
2
] |
||
long first_seq_id = prot_ptr.getFirstQueuedSeqID(); /* System.out.println( "DEBUG (TotalRetransmissionThread) - first_seq_id = " + first_seq_id ); */ if ( first_seq_id >= 0 ) {
|
long first_seq_id=prot_ptr.getFirstQueuedSeqID(); /* System.out.println( "DEBUG (TotalRetransmissionThread) - first_seq_id = " + first_seq_id ); */ if(first_seq_id >= 0) {
|
private void checkForResend() { long first_seq_id = prot_ptr.getFirstQueuedSeqID(); // sequence id of first queued message /* // begin debug System.out.println( "DEBUG (TotalRetransmissionThread) - first_seq_id = " + first_seq_id ); // end debug */ if ( first_seq_id >= 0 ) { // there is at least one message in the queue long next_seq_id = prot_ptr.getNextSeqID(); // next sequence id expected from the group if ( (next_seq_id < first_seq_id) ) { // TODO: handle case to resend TOTAL_NEW_VIEW message // there are messages that we received out of order //log.error( "DEBUG (TotalRetransmissionThread) - there are messages queued" ); // debug // see if it is time to send a request long time_now = System.currentTimeMillis(); if ( (next_seq_id > last_requested_seq) || (time_now > (last_retrans_request_time + resend_timeout)) || (last_retrans_request_time < 0) ) { // send a resend request to the sequencer //log.error( "DEBUG (TotalRetransmissionThread) - sending resend requests" ); // debug Address sequencer = prot_ptr.getSequencer(); if ( sequencer == null ) { System.out.println( "Error: (TOTAL_OLD) TotalRetransmissionThread.checkForResend() - could not determine sequencer to send a TOTAL_RESEND request" ); return; } Address local_addr = prot_ptr.getLocalAddr(); if ( local_addr == null ) { System.out.println( "Warning: (TOTAL_OLD) TotalRetransmissionThread.checkForResend() - local address not specified in TOTAL_RESEND request... attempting to send requests anyway" ); } long temp_long = (next_seq_id + max_request); // potential max seq id to request (exclusive) long last_resend_seq_id = (temp_long > first_seq_id) ? first_seq_id : temp_long; for( long resend_seq=next_seq_id; resend_seq<last_resend_seq_id ; resend_seq++ ) { sendResendRequest( sequencer, local_addr, resend_seq ); } // update state for this set of resend requests last_retrans_request_time = time_now; last_requested_seq = last_resend_seq_id; } } // if ( (next_seq_id < first_seq_id) ) } // if ( first_seq_id >= 0 ) // else there are no messages to request }
|
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/5ad015d9a78e1da3350d9b398b46b2f5d4508564/TOTAL_OLD.java/clean/src/org/jgroups/protocols/TOTAL_OLD.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
13855,
607,
409,
1435,
288,
202,
5748,
1122,
67,
5436,
67,
350,
273,
11121,
67,
6723,
18,
588,
3759,
21039,
6926,
734,
5621,
368,
3102,
612,
434,
1122,
12234,
883,
202,
20308,
202,
759,
2376,
1198,
202,
3163,
18,
659,
18,
8222,
12,
315,
9394,
261,
5269,
7055,
28001,
3951,
3830,
13,
300,
1122,
67,
5436,
67,
350,
273,
315,
397,
1122,
67,
5436,
67,
350,
11272,
202,
759,
679,
1198,
202,
5549,
202,
430,
261,
1122,
67,
5436,
67,
350,
1545,
374,
262,
288,
202,
565,
368,
1915,
353,
622,
4520,
1245,
883,
316,
326,
2389,
202,
565,
1525,
1024,
67,
5436,
67,
350,
273,
11121,
67,
6723,
18,
588,
2134,
6926,
734,
5621,
377,
368,
1024,
3102,
612,
2665,
628,
326,
1041,
202,
565,
309,
261,
261,
4285,
67,
5436,
67,
350,
411,
1122,
67,
5436,
67,
350,
13,
262,
288,
225,
368,
2660,
30,
1640,
648,
358,
31972,
399,
19851,
67,
12917,
67,
12145,
883,
202,
202,
759,
1915,
854,
2743,
716,
732,
5079,
596,
434,
1353,
202,
202,
759,
1330,
18,
1636,
12,
315,
9394,
261,
5269,
7055,
28001,
3951,
3830,
13,
300,
1915,
854,
2743,
12234,
6,
11272,
368,
1198,
202,
202,
759,
2621,
309,
518,
353,
813,
358,
1366,
279,
590,
202,
202,
5748,
813,
67,
3338,
273,
2332,
18,
2972,
28512,
5621,
202,
202,
430,
261,
261,
4285,
67,
5436,
67,
350,
405,
1142,
67,
19065,
67,
5436,
13,
747,
1082,
377,
261,
957,
67,
3338,
405,
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,
13855,
607,
409,
1435,
288,
202,
5748,
1122,
67,
5436,
67,
350,
273,
11121,
67,
6723,
18,
588,
3759,
21039,
6926,
734,
5621,
368,
3102,
612,
434,
1122,
12234,
883,
202,
20308,
202,
759,
2376,
1198,
202,
3163,
18,
659,
18,
8222,
12,
315,
9394,
261,
5269,
7055,
28001,
3951,
3830,
13,
300,
1122,
67,
5436,
67,
350,
273,
315,
397,
1122,
67,
5436,
67,
350,
11272,
202,
759,
679,
1198,
202,
5549,
202,
430,
261,
1122,
67,
5436,
67,
350,
1545,
374,
262,
288,
202,
565,
368,
1915,
353,
622,
4520,
1245,
883,
316,
326,
2389,
202,
565,
1525,
1024,
67,
5436,
67,
350,
273,
11121,
67,
6723,
18,
588,
2134,
6926,
734,
5621,
377,
2
] |
bignumClass.defineMethod("+", CallbackFactory.getMethod(RubyBignum.class, "op_plus", RubyObject.class)); bignumClass.defineMethod("-", CallbackFactory.getMethod(RubyBignum.class, "op_minus", RubyObject.class)); bignumClass.defineMethod("*", CallbackFactory.getMethod(RubyBignum.class, "op_mul", RubyObject.class)); bignumClass.defineMethod("/", CallbackFactory.getMethod(RubyBignum.class, "op_div", RubyObject.class)); bignumClass.defineMethod("%", CallbackFactory.getMethod(RubyBignum.class, "op_mod", RubyObject.class)); bignumClass.defineMethod("**", CallbackFactory.getMethod(RubyBignum.class, "op_pow", RubyObject.class));
|
bignumClass.defineMethod("+", CallbackFactory.getMethod(RubyBignum.class, "op_plus", RubyObject.class)); bignumClass.defineMethod("-", CallbackFactory.getMethod(RubyBignum.class, "op_minus", RubyObject.class)); bignumClass.defineMethod("*", CallbackFactory.getMethod(RubyBignum.class, "op_mul", RubyObject.class)); bignumClass.defineMethod("/", CallbackFactory.getMethod(RubyBignum.class, "op_div", RubyObject.class)); bignumClass.defineMethod("%", CallbackFactory.getMethod(RubyBignum.class, "op_mod", RubyObject.class)); bignumClass.defineMethod("**", CallbackFactory.getMethod(RubyBignum.class, "op_pow", RubyObject.class));
|
public static RubyClass createBignumClass(Ruby ruby) { RubyClass bignumClass = ruby.defineClass("Bignum", ruby.getClasses().getIntegerClass()); bignumClass.defineMethod("to_s", CallbackFactory.getMethod(RubyBignum.class, "to_s")); bignumClass.defineMethod("hash", CallbackFactory.getMethod(RubyBignum.class, "hash")); bignumClass.defineMethod("+", CallbackFactory.getMethod(RubyBignum.class, "op_plus", RubyObject.class)); bignumClass.defineMethod("-", CallbackFactory.getMethod(RubyBignum.class, "op_minus", RubyObject.class)); bignumClass.defineMethod("*", CallbackFactory.getMethod(RubyBignum.class, "op_mul", RubyObject.class)); bignumClass.defineMethod("/", CallbackFactory.getMethod(RubyBignum.class, "op_div", RubyObject.class)); bignumClass.defineMethod("%", CallbackFactory.getMethod(RubyBignum.class, "op_mod", RubyObject.class)); bignumClass.defineMethod("**", CallbackFactory.getMethod(RubyBignum.class, "op_pow", RubyObject.class)); bignumClass.defineMethod("==", CallbackFactory.getMethod(RubyBignum.class, "op_equal", RubyObject.class)); bignumClass.defineMethod("<=>", CallbackFactory.getMethod(RubyBignum.class, "op_cmp", RubyObject.class)); bignumClass.defineMethod(">", CallbackFactory.getMethod(RubyBignum.class, "op_gt", RubyObject.class)); bignumClass.defineMethod(">=", CallbackFactory.getMethod(RubyBignum.class, "op_ge", RubyObject.class)); bignumClass.defineMethod("<", CallbackFactory.getMethod(RubyBignum.class, "op_lt", RubyObject.class)); bignumClass.defineMethod("<=", CallbackFactory.getMethod(RubyBignum.class, "op_le", RubyObject.class)); return bignumClass; }
|
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/1cc89bd397c0f049e6fa3045916fd6d9a3cdada8/RubyBignum.java/buggy/org/jruby/RubyBignum.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
38,
724,
379,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
324,
724,
379,
797,
273,
22155,
18,
11255,
797,
2932,
38,
724,
379,
3113,
22155,
18,
588,
4818,
7675,
588,
4522,
797,
10663,
3639,
324,
724,
379,
797,
18,
11255,
1305,
2932,
869,
67,
87,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
38,
724,
379,
18,
1106,
16,
315,
869,
67,
87,
7923,
1769,
3639,
324,
724,
379,
797,
18,
11255,
1305,
2932,
2816,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
38,
724,
379,
18,
1106,
16,
315,
2816,
7923,
1769,
3639,
324,
724,
379,
797,
18,
11255,
1305,
2932,
15,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
38,
724,
379,
18,
1106,
16,
315,
556,
67,
10103,
3113,
19817,
921,
18,
1106,
10019,
3639,
324,
724,
379,
797,
18,
11255,
1305,
2932,
17,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
38,
724,
379,
18,
1106,
16,
315,
556,
67,
19601,
3113,
19817,
921,
18,
1106,
10019,
3639,
324,
724,
379,
797,
18,
11255,
1305,
2932,
14,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
38,
724,
379,
18,
1106,
16,
315,
556,
67,
16411,
3113,
19817,
921,
18,
1106,
10019,
3639,
324,
724,
379,
797,
18,
11255,
1305,
2932,
19,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
38,
724,
379,
18,
1106,
16,
315,
556,
67,
2892,
3113,
19817,
921,
18,
1106,
10019,
3639,
324,
724,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
38,
724,
379,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
324,
724,
379,
797,
273,
22155,
18,
11255,
797,
2932,
38,
724,
379,
3113,
22155,
18,
588,
4818,
7675,
588,
4522,
797,
10663,
3639,
324,
724,
379,
797,
18,
11255,
1305,
2932,
869,
67,
87,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
38,
724,
379,
18,
1106,
16,
315,
869,
67,
87,
7923,
1769,
3639,
324,
724,
379,
797,
18,
11255,
1305,
2932,
2816,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
38,
724,
379,
18,
1106,
16,
315,
2816,
7923,
1769,
3639,
324,
724,
379,
797,
18,
11255,
1305,
2932,
15,
3113,
8444,
1733,
18,
588,
2
] |
throw (NotFoundException)lastException;
|
throw (NotFoundException)lastException;
|
public void informCloned(AID agentID, Location where, String newName) throws ServiceException, JADESecurityException, IMTPException, NotFoundException, NameClashException { GenericCommand cmd = new GenericCommand(AgentMobilityHelper.INFORM_CLONED, AgentMobilitySlice.NAME, null); cmd.addParam(agentID); cmd.addParam(where); cmd.addParam(newName); // Set the credentials of the cloning agent myService.initCredentials(cmd, agentID); Object lastException = myService.submit(cmd); if(lastException != null) { if(lastException instanceof JADESecurityException) { throw (JADESecurityException)lastException; } if(lastException instanceof NotFoundException) { throw (NotFoundException)lastException; } if(lastException instanceof IMTPException) { throw (IMTPException)lastException; } if(lastException instanceof NameClashException) { throw (NameClashException)lastException; } } }
|
5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/46dba8df2358fb752e8d0a7cd2a512d0a633dbd6/AgentMobilityService.java/buggy/src/jade/core/mobility/AgentMobilityService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
13235,
2009,
8184,
12,
37,
734,
4040,
734,
16,
7050,
1625,
16,
514,
13253,
13,
1216,
16489,
16,
804,
37,
1639,
24918,
16,
467,
14636,
503,
16,
12323,
16,
1770,
2009,
961,
503,
288,
202,
565,
7928,
2189,
1797,
273,
394,
7928,
2189,
12,
3630,
49,
947,
1889,
2276,
18,
706,
4983,
67,
5017,
673,
2056,
16,
8669,
49,
947,
1889,
5959,
18,
1985,
16,
446,
1769,
202,
565,
1797,
18,
1289,
786,
12,
5629,
734,
1769,
202,
565,
1797,
18,
1289,
786,
12,
6051,
1769,
202,
565,
1797,
18,
1289,
786,
12,
2704,
461,
1769,
202,
565,
368,
1000,
326,
4448,
434,
326,
927,
22470,
4040,
202,
565,
3399,
1179,
18,
2738,
6163,
12,
4172,
16,
4040,
734,
1769,
202,
565,
1033,
1142,
503,
273,
3399,
1179,
18,
9297,
12,
4172,
1769,
202,
565,
309,
12,
2722,
503,
480,
446,
13,
288,
9506,
202,
430,
12,
2722,
503,
1276,
804,
37,
1639,
24918,
13,
288,
6862,
565,
604,
261,
46,
37,
1639,
24918,
13,
2722,
503,
31,
9506,
202,
97,
9506,
202,
430,
12,
2722,
503,
1276,
12323,
13,
288,
6862,
565,
604,
261,
3990,
13,
2722,
503,
31,
9506,
202,
97,
9506,
202,
430,
12,
2722,
503,
1276,
467,
14636,
503,
13,
288,
6862,
565,
604,
261,
3445,
11130,
503,
13,
2722,
503,
31,
9506,
202,
97,
9506,
202,
430,
12,
2722,
503,
1276,
1770,
2009,
961,
503,
13,
288,
6862,
565,
604,
261,
461,
2009,
961,
503,
13,
2722,
503,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
13235,
2009,
8184,
12,
37,
734,
4040,
734,
16,
7050,
1625,
16,
514,
13253,
13,
1216,
16489,
16,
804,
37,
1639,
24918,
16,
467,
14636,
503,
16,
12323,
16,
1770,
2009,
961,
503,
288,
202,
565,
7928,
2189,
1797,
273,
394,
7928,
2189,
12,
3630,
49,
947,
1889,
2276,
18,
706,
4983,
67,
5017,
673,
2056,
16,
8669,
49,
947,
1889,
5959,
18,
1985,
16,
446,
1769,
202,
565,
1797,
18,
1289,
786,
12,
5629,
734,
1769,
202,
565,
1797,
18,
1289,
786,
12,
6051,
1769,
202,
565,
1797,
18,
1289,
786,
12,
2704,
461,
1769,
202,
565,
368,
1000,
326,
4448,
434,
326,
927,
22470,
4040,
202,
565,
3399,
1179,
18,
2738,
6163,
12,
2
] |
rwl.readLock().unlock(); return result;
|
public int getDefaultT() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultT().intValue(); } rwl.readLock().unlock(); return result; }
|
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/clean/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
4829,
56,
1435,
565,
288,
3639,
509,
563,
31,
3639,
7985,
80,
18,
896,
2531,
7675,
739,
5621,
3639,
288,
5411,
309,
261,
14374,
422,
446,
13,
7734,
604,
394,
5477,
12,
8560,
67,
25230,
654,
1769,
13491,
563,
273,
1171,
5690,
18,
588,
14261,
3262,
7675,
588,
1868,
56,
7675,
474,
620,
5621,
3639,
289,
3639,
7985,
80,
18,
896,
2531,
7675,
26226,
5621,
3639,
327,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
4829,
56,
1435,
565,
288,
3639,
509,
563,
31,
3639,
7985,
80,
18,
896,
2531,
7675,
739,
5621,
3639,
288,
5411,
309,
261,
14374,
422,
446,
13,
7734,
604,
394,
5477,
12,
8560,
67,
25230,
654,
1769,
13491,
563,
273,
1171,
5690,
18,
588,
14261,
3262,
7675,
588,
1868,
56,
7675,
474,
620,
5621,
3639,
289,
3639,
7985,
80,
18,
896,
2531,
7675,
26226,
5621,
3639,
327,
563,
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
] |
|
if (FileVisitor.foundReader || FileVisitor.foundWriter){
|
if (FileVisitor.foundReader || FileVisitor.foundWriter) {
|
private static void init(FlatNode top) { layout.toplevel = top; int rows = RawBackend.rawRows; int columns = RawBackend.rawColumns; //determine if there is a file reader/writer in the graph //call init() to traverse the graph // if there is create a new column to place the fileReader/writer // it will become a bc file reading device FileVisitor.init(top); if (FileVisitor.foundReader || FileVisitor.foundWriter){ columns++; } layout.coordinates = new Coordinate[rows][columns]; for (int row = 0; row < rows; row++) for (int column = 0; column < columns; column++) layout.coordinates[row][column] = new Coordinate(row, column); layout.SIRassignment = new HashMap(); layout.tileAssignment = new HashMap(); layout.assigned = new HashSet(); layout.identities = new HashSet(); top.accept(new Layout(), new HashSet(), false); System.out.println("Tiles layout.assigned: " + layout.assigned.size()); if (layout.assigned.size() > (RawBackend.rawRows * RawBackend.rawColumns)) { System.err.println("\nLAYOUT ERROR: Need " + layout.assigned.size() + " tiles, have " + (RawBackend.rawRows * RawBackend.rawColumns) + " tiles."); System.exit(-1); } }
|
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/5d7be1a26550dcca269d3889288503dd4b515133/Layout.java/buggy/streams/src/at/dms/kjc/raw/Layout.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1208,
12,
16384,
907,
1760,
13,
377,
288,
202,
6741,
18,
3669,
2815,
273,
1760,
31,
202,
474,
2595,
273,
6576,
7172,
18,
1899,
4300,
31,
202,
474,
2168,
273,
6576,
7172,
18,
1899,
3380,
31,
1082,
202,
759,
24661,
309,
1915,
353,
279,
585,
2949,
19,
6299,
316,
326,
2667,
202,
759,
1991,
1208,
1435,
358,
10080,
326,
2667,
225,
202,
759,
309,
1915,
353,
752,
279,
394,
1057,
358,
3166,
326,
585,
2514,
19,
6299,
202,
759,
518,
903,
12561,
279,
6533,
585,
6453,
2346,
202,
812,
7413,
18,
2738,
12,
3669,
1769,
202,
430,
261,
812,
7413,
18,
7015,
2514,
747,
1387,
7413,
18,
7015,
2289,
15329,
202,
565,
2168,
9904,
31,
202,
97,
202,
202,
6741,
18,
16941,
225,
273,
202,
565,
394,
12733,
63,
3870,
6362,
5112,
15533,
202,
1884,
261,
474,
1027,
273,
374,
31,
1027,
411,
2595,
31,
1027,
27245,
202,
565,
364,
261,
474,
1057,
273,
374,
31,
1057,
411,
2168,
31,
1057,
27245,
202,
202,
6741,
18,
16941,
63,
492,
6362,
2827,
65,
273,
394,
12733,
12,
492,
16,
1057,
1769,
202,
202,
6741,
18,
2320,
54,
12960,
273,
394,
4317,
5621,
202,
6741,
18,
15368,
7729,
273,
394,
4317,
5621,
202,
6741,
18,
15938,
273,
394,
6847,
5621,
202,
6741,
18,
6392,
1961,
273,
394,
6847,
5621,
202,
3669,
18,
9436,
12,
2704,
9995,
9334,
394,
6847,
9334,
629,
1769,
202,
202,
3163,
18,
659,
18,
8222,
2932,
27669,
3511,
18,
15938,
30,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1208,
12,
16384,
907,
1760,
13,
377,
288,
202,
6741,
18,
3669,
2815,
273,
1760,
31,
202,
474,
2595,
273,
6576,
7172,
18,
1899,
4300,
31,
202,
474,
2168,
273,
6576,
7172,
18,
1899,
3380,
31,
1082,
202,
759,
24661,
309,
1915,
353,
279,
585,
2949,
19,
6299,
316,
326,
2667,
202,
759,
1991,
1208,
1435,
358,
10080,
326,
2667,
225,
202,
759,
309,
1915,
353,
752,
279,
394,
1057,
358,
3166,
326,
585,
2514,
19,
6299,
202,
759,
518,
903,
12561,
279,
6533,
585,
6453,
2346,
202,
812,
7413,
18,
2738,
12,
3669,
1769,
202,
430,
261,
812,
7413,
18,
7015,
2514,
747,
1387,
7413,
18,
7015,
2289,
15329,
202,
565,
2168,
9904,
31,
2
] |
excptnClass != Exception.class) {
|
excptnClass != Throwable.class) {
|
public void handleNativeException(Exception exception) { if (exception instanceof RaiseException) { throw (RaiseException) exception; } Class excptnClass = exception.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSuperclass(); } if (handler != null) { handler.call(new IRubyObject[]{JavaUtil.convertJavaToRuby(runtime, exception)}); } else { throw createRaiseException(exception); } }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/af1920a5c29079063127d9968487d5e5fbf75031/JavaSupport.java/buggy/src/org/jruby/javasupport/JavaSupport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1640,
9220,
503,
12,
503,
1520,
13,
288,
3639,
309,
261,
4064,
1276,
20539,
503,
13,
288,
5411,
604,
261,
30570,
503,
13,
1520,
31,
3639,
289,
3639,
1659,
3533,
337,
82,
797,
273,
1520,
18,
588,
797,
5621,
3639,
19817,
15417,
1838,
273,
261,
54,
10340,
15417,
13,
4064,
6919,
18,
588,
12,
10075,
337,
82,
797,
18,
17994,
10663,
3639,
1323,
261,
4176,
422,
446,
597,
9079,
3533,
337,
82,
797,
480,
4206,
18,
1106,
13,
288,
5411,
3533,
337,
82,
797,
273,
3533,
337,
82,
797,
18,
588,
28471,
5621,
3639,
289,
3639,
309,
261,
4176,
480,
446,
13,
288,
5411,
1838,
18,
1991,
12,
2704,
15908,
10340,
921,
63,
7073,
5852,
1304,
18,
6283,
5852,
774,
54,
10340,
12,
9448,
16,
1520,
16869,
1769,
3639,
289,
469,
288,
5411,
604,
752,
30570,
503,
12,
4064,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1640,
9220,
503,
12,
503,
1520,
13,
288,
3639,
309,
261,
4064,
1276,
20539,
503,
13,
288,
5411,
604,
261,
30570,
503,
13,
1520,
31,
3639,
289,
3639,
1659,
3533,
337,
82,
797,
273,
1520,
18,
588,
797,
5621,
3639,
19817,
15417,
1838,
273,
261,
54,
10340,
15417,
13,
4064,
6919,
18,
588,
12,
10075,
337,
82,
797,
18,
17994,
10663,
3639,
1323,
261,
4176,
422,
446,
597,
9079,
3533,
337,
82,
797,
480,
4206,
18,
1106,
13,
288,
5411,
3533,
337,
82,
797,
273,
3533,
337,
82,
797,
18,
588,
28471,
5621,
3639,
289,
3639,
309,
261,
4176,
480,
446,
13,
288,
5411,
1838,
18,
1991,
12,
2704,
15908,
10340,
921,
63,
7073,
5852,
1304,
2
] |
securedIPAddressSet.add(new SecuredIPAddress(assessment.getData(), null, ip[j]));
|
{ SecuredIPAddress sip = new SecuredIPAddress(data, null, ip[j]); sip.setAssessment(data); securedIPAddressSet.add(sip); }
|
private void makeSecuredIPAddressSet(AssessmentFacade assessment, String ipList) { Set securedIPAddressSet = (Set) assessment.getSecuredIPAddressSet(); if (securedIPAddressSet == null) { securedIPAddressSet = new HashSet(); } log.debug("Getting securedIPAddressSet=" + securedIPAddressSet); log.debug("ipList: " + ipList); if (ipList == null) ipList = ""; String[] ip = ipList.split("\\n"); for (int j = 0; j < ip.length; j++) { log.debug("ip # " + j + ip[j]); if (ip[j] != null) securedIPAddressSet.add(new SecuredIPAddress(assessment.getData(), null, ip[j])); } log.debug("securedIPAddressSet.size()=" + securedIPAddressSet.size()); if (securedIPAddressSet.size()>0) { log.debug("Setting securedIPAddressSet;addAssessmentMetaData(hasIpAddress, true)"); assessment.getData().setSecuredIPAddressSet(securedIPAddressSet); assessment.getData().addAssessmentMetaData("hasIpAddress", "true"); assessment.getData().addAssessmentMetaData("hasSpecificIP", "true"); } }
|
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/0dc8f1bb990775e1fa7b9f7f21d3bd56c553fcd9/ExtractionHelper.java/buggy/samigo/component/src/java/org/sakaiproject/tool/assessment/qti/helper/ExtractionHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1221,
2194,
2862,
22507,
694,
12,
15209,
12467,
14158,
16,
514,
2359,
682,
13,
225,
288,
565,
1000,
1428,
2862,
22507,
694,
273,
261,
694,
13,
14158,
18,
588,
2194,
2862,
22507,
694,
5621,
565,
309,
261,
3321,
2862,
22507,
694,
422,
446,
13,
565,
288,
1377,
1428,
2862,
22507,
694,
273,
394,
6847,
5621,
565,
289,
565,
613,
18,
4148,
2932,
19213,
1428,
2862,
22507,
694,
1546,
397,
1428,
2862,
22507,
694,
1769,
565,
613,
18,
4148,
2932,
625,
682,
30,
315,
397,
2359,
682,
1769,
565,
309,
261,
625,
682,
422,
446,
13,
1377,
2359,
682,
273,
1408,
31,
565,
514,
8526,
2359,
273,
2359,
682,
18,
4939,
2932,
1695,
82,
8863,
565,
364,
261,
474,
525,
273,
374,
31,
525,
411,
2359,
18,
2469,
31,
525,
27245,
565,
288,
1377,
613,
18,
4148,
2932,
625,
468,
315,
397,
525,
397,
2359,
63,
78,
19226,
1377,
309,
261,
625,
63,
78,
65,
480,
446,
13,
3639,
1428,
2862,
22507,
694,
18,
1289,
12,
2704,
3232,
2862,
22507,
12,
18222,
18,
588,
751,
9334,
446,
16,
5411,
2359,
63,
78,
5717,
1769,
565,
289,
565,
613,
18,
4148,
2932,
3321,
2862,
22507,
694,
18,
1467,
1435,
1546,
397,
1428,
2862,
22507,
694,
18,
1467,
10663,
565,
309,
261,
3321,
2862,
22507,
694,
18,
1467,
1435,
34,
20,
13,
565,
288,
1377,
613,
18,
4148,
2932,
5568,
1428,
2862,
22507,
694,
31,
1289,
15209,
6998,
12,
5332,
16875,
16,
638,
2225,
1769,
1377,
14158,
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,
1221,
2194,
2862,
22507,
694,
12,
15209,
12467,
14158,
16,
514,
2359,
682,
13,
225,
288,
565,
1000,
1428,
2862,
22507,
694,
273,
261,
694,
13,
14158,
18,
588,
2194,
2862,
22507,
694,
5621,
565,
309,
261,
3321,
2862,
22507,
694,
422,
446,
13,
565,
288,
1377,
1428,
2862,
22507,
694,
273,
394,
6847,
5621,
565,
289,
565,
613,
18,
4148,
2932,
19213,
1428,
2862,
22507,
694,
1546,
397,
1428,
2862,
22507,
694,
1769,
565,
613,
18,
4148,
2932,
625,
682,
30,
315,
397,
2359,
682,
1769,
565,
309,
261,
625,
682,
422,
446,
13,
1377,
2359,
682,
273,
1408,
31,
565,
514,
8526,
2359,
273,
2359,
682,
18,
4939,
2932,
1695,
82,
8863,
565,
364,
2
] |
"MenuBar.foreground", new ColorUIResource(Color.black),
|
"MenuBar.foreground", new ColorUIResource(darkShadow), "MenuBar.highlight", new ColorUIResource(highLight), "MenuBar.shadow", new ColorUIResource(shadow),
|
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x66, 0x66, 0x99); uiDefaults = new Object[] { "AbstractUndoableEdit.undoText", "Undo", "AbstractUndoableEdit.redoText", "Redo", "Button.background", new ColorUIResource(Color.lightGray), "Button.border", new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { return BasicBorders.getButtonBorder(); } }, "Button.darkShadow", new ColorUIResource(Color.darkGray), "Button.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "Button.focus", midPurple, "Button.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Button.foreground", new ColorUIResource(Color.black), "Button.highlight", new ColorUIResource(Color.white), "Button.light", new ColorUIResource(Color.lightGray.brighter()), "Button.margin", new InsetsUIResource(2, 2, 2, 2), "Button.shadow", new ColorUIResource(Color.gray), "Button.textIconGap", new Integer(4), "Button.textShiftOffset", new Integer(0), "CheckBox.background", new ColorUIResource(Color.lightGray), "CheckBox.border", new BorderUIResource.CompoundBorderUIResource(null, null), "CheckBox.darkShadow", new ColorUIResource(Color.darkGray), "CheckBox.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "CheckBox.font", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBox.foreground", new ColorUIResource(Color.black), "CheckBox.highlight", new ColorUIResource(Color.white), "CheckBox.icon", BasicIconFactory.getCheckBoxIcon(), "CheckBox.light", new ColorUIResource(Color.lightGray.brighter()), "CheckBox.margin",new InsetsUIResource(2, 2, 2, 2), "CheckBox.shadow", new ColorUIResource(Color.gray), "CheckBox.textIconGap", new Integer(4), "CheckBox.textShiftOffset", new Integer(0), "CheckBoxMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBoxMenuItem.acceleratorForeground", new ColorUIResource(Color.black), "CheckBoxMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "CheckBoxMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "CheckBoxMenuItem.background", new ColorUIResource(Color.lightGray), "CheckBoxMenuItem.border", new BasicBorders.MarginBorder(), "CheckBoxMenuItem.borderPainted", Boolean.FALSE, "CheckBoxMenuItem.checkIcon", BasicIconFactory.getCheckBoxMenuItemIcon(), "CheckBoxMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBoxMenuItem.foreground", new ColorUIResource(Color.black), "CheckBoxMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "CheckBoxMenuItem.selectionBackground", new ColorUIResource(lightPurple), "CheckBoxMenuItem.selectionForeground", new ColorUIResource(Color.black), "ColorChooser.background", new ColorUIResource(Color.lightGray), "ColorChooser.cancelText", "Cancel", "ColorChooser.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ColorChooser.foreground", new ColorUIResource(Color.black), "ColorChooser.hsbBlueText", "B", "ColorChooser.hsbBrightnessText", "B", "ColorChooser.hsbGreenText", "G", "ColorChooser.hsbHueText", "H", "ColorChooser.hsbNameText", "HSB", "ColorChooser.hsbRedText", "R", "ColorChooser.hsbSaturationText", "S", "ColorChooser.okText", "OK", "ColorChooser.previewText", "Preview", "ColorChooser.resetText", "Reset", "ColorChooser.rgbBlueMnemonic", new Integer(66), "ColorChooser.rgbBlueText", "Blue", "ColorChooser.rgbGreenMnemonic", new Integer(71), "ColorChooser.rgbGreenText", "Green", "ColorChooser.rgbNameText", "RGB", "ColorChooser.rgbRedMnemonic", new Integer(82), "ColorChooser.rgbRedText", "Red", "ColorChooser.sampleText", "Sample Text Sample Text", "ColorChooser.swatchesDefaultRecentColor", new ColorUIResource(Color.lightGray), "ColorChooser.swatchesNameText", "Swatches", "ColorChooser.swatchesRecentSwatchSize", new Dimension(10, 10), "ColorChooser.swatchesRecentText", "Recent:", "ColorChooser.swatchesSwatchSize", new Dimension(10, 10), "ComboBox.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "hidePopup", "PAGE_UP", "pageUpPassThrough", "PAGE_DOWN", "pageDownPassThrough", "HOME", "homePassThrough", "END", "endPassThrough" }), "ComboBox.background", new ColorUIResource(Color.white), "ComboBox.disabledBackground", new ColorUIResource(Color.lightGray), "ComboBox.disabledForeground", new ColorUIResource(Color.gray), "ComboBox.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "ComboBox.foreground", new ColorUIResource(Color.black), "ComboBox.selectionBackground", new ColorUIResource(lightPurple), "ComboBox.selectionForeground", new ColorUIResource(Color.black), "Desktop.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "KP_LEFT", "left", "KP_RIGHT", "right", "ctrl F5", "restore", "LEFT", "left", "ctrl alt F6", "selectNextFrame", "UP", "up", "ctrl F6", "selectNextFrame", "RIGHT", "right", "DOWN", "down", "ctrl F7", "move", "ctrl F8", "resize", "ESCAPE", "escape", "ctrl TAB", "selectNextFrame", "ctrl F9", "minimize", "KP_UP", "up", "ctrl F4", "close", "KP_DOWN", "down", "ctrl F10", "maximize", "ctrl alt shift F6","selectPreviousFrame" }), "Desktop.background", new ColorUIResource(175, 163, 236), "DesktopIcon.border", new BorderUIResource.CompoundBorderUIResource(null, null), "EditorPane.background", new ColorUIResource(Color.white), "EditorPane.border", new BasicBorders.MarginBorder(), "EditorPane.caretBlinkRate", new Integer(500), "EditorPane.caretForeground", new ColorUIResource(Color.red), "EditorPane.font", new FontUIResource("Serif", Font.PLAIN, 12), "EditorPane.foreground", new ColorUIResource(Color.black), "EditorPane.inactiveForeground", new ColorUIResource(Color.gray), "EditorPane.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), "page-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "insert-break"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "insert-tab") }, "EditorPane.margin", new InsetsUIResource(3, 3, 3, 3), "EditorPane.selectionBackground", new ColorUIResource(Color.lightGray), "EditorPane.selectionForeground", new ColorUIResource(Color.white), "FileChooser.acceptAllFileFilterText", "All Files (*.*)", "FileChooser.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "cancelSelection" }), "FileChooser.cancelButtonMnemonic", new Integer(67), "FileChooser.cancelButtonText", "Cancel", "FileChooser.cancelButtonToolTipText", "Abort file chooser dialog", // XXX Don't use gif "FileChooser.detailsViewIcon", new IconUIResource(new ImageIcon("icons/DetailsView.gif")), "FileChooser.directoryDescriptionText", "Directory", "FileChooser.fileDescriptionText", "Generic File", "FileChooser.helpButtonMnemonic", new Integer(72), "FileChooser.helpButtonText", "Help", "FileChooser.helpButtonToolTipText", "FileChooser help", // XXX Don't use gif "FileChooser.homeFolderIcon", new IconUIResource(new ImageIcon("icons/HomeFolder.gif")), // XXX Don't use gif "FileChooser.listViewIcon", new IconUIResource(new ImageIcon("icons/ListView.gif")), "FileChooser.newFolderErrorSeparator", ":", "FileChooser.newFolderErrorText", "Error creating new folder", // XXX Don't use gif "FileChooser.newFolderIcon", new IconUIResource(new ImageIcon("icons/NewFolder.gif")), "FileChooser.openButtonMnemonic", new Integer(79), "FileChooser.openButtonText", "Open", "FileChooser.openButtonToolTipText", "Open selected file", "FileChooser.saveButtonMnemonic", new Integer(83), "FileChooser.saveButtonText", "Save", "FileChooser.saveButtonToolTipText", "Save selected file", // XXX Don't use gif "FileChooser.upFolderIcon", new IconUIResource(new ImageIcon("icons/UpFolder.gif")), "FileChooser.updateButtonMnemonic", new Integer(85), "FileChooser.updateButtonText", "Update", "FileChooser.updateButtonToolTipText", "Update directory listing", // XXX Don't use gif "FileView.computerIcon", new IconUIResource(new ImageIcon("icons/Computer.gif")), // XXX Don't use gif "FileView.directoryIcon", new IconUIResource(new ImageIcon("icons/Directory.gif")), // XXX Don't use gif "FileView.fileIcon", new IconUIResource(new ImageIcon("icons/File.gif")), // XXX Don't use gif "FileView.floppyDriveIcon", new IconUIResource(new ImageIcon("icons/Floppy.gif")), // XXX Don't use gif "FileView.hardDriveIcon", new IconUIResource(new ImageIcon("icons/HardDrive.gif")), "FocusManagerClassName", "TODO", "FormView.resetButtonText", "Reset", "FormView.submitButtonText", "Submit Query", "InternalFrame.activeTitleBackground", new ColorUIResource(162, 167, 241), "InternalFrame.activeTitleForeground", new ColorUIResource(Color.black), "InternalFrame.border", new BorderUIResource.CompoundBorderUIResource(null, null), "InternalFrame.closeIcon", BasicIconFactory.createEmptyFrameIcon(), // XXX Don't use gif "InternalFrame.icon", new IconUIResource(new ImageIcon("icons/JavaCup.gif")), "InternalFrame.iconifyIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.inactiveTitleBackground", new ColorUIResource(Color.lightGray), "InternalFrame.inactiveTitleForeground", new ColorUIResource(Color.black), "InternalFrame.maximizeIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.minimizeIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.titleFont", new FontUIResource("Dialog", Font.PLAIN, 12), "InternalFrame.windowBindings", new Object[] { "shift ESCAPE", "showSystemMenu", "ctrl SPACE", "showSystemMenu", "ESCAPE", "showSystemMenu" }, "Label.background", new ColorUIResource(Color.lightGray), "Label.disabledForeground", new ColorUIResource(Color.white), "Label.disabledShadow", new ColorUIResource(Color.gray), "Label.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Label.foreground", new ColorUIResource(Color.black), "List.background", new ColorUIResource(Color.white), "List.border", new BasicBorders.MarginBorder(), "List.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "scrollUp", "ctrl \\", "clearSelection", "PAGE_DOWN", "scrollDown", "shift PAGE_DOWN","scrollDownExtendSelection", "END", "selectLastRow", "HOME", "selectFirstRow", "shift END", "selectLastRowExtendSelection", "shift HOME", "selectFirstRowExtendSelection", "UP", "selectPreviousRow", "ctrl /", "selectAll", "ctrl A", "selectAll", "DOWN", "selectNextRow", "shift UP", "selectPreviousRowExtendSelection", "ctrl SPACE", "selectNextRowExtendSelection", "shift DOWN", "selectNextRowExtendSelection", "KP_UP", "selectPreviousRow", "shift PAGE_UP","scrollUpExtendSelection", "KP_DOWN", "selectNextRow" }), "List.foreground", new ColorUIResource(Color.black), "List.selectionBackground", new ColorUIResource(0xCC, 0xCC, 0xFF), "List.selectionForeground", new ColorUIResource(Color.black), "Menu.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "Menu.acceleratorForeground", new ColorUIResource(Color.black), "Menu.acceleratorSelectionForeground", new ColorUIResource(Color.white), "Menu.arrowIcon", BasicIconFactory.getMenuArrowIcon(), "Menu.background", new ColorUIResource(Color.lightGray), "Menu.border", new BasicBorders.MarginBorder(), "Menu.borderPainted", Boolean.FALSE, "Menu.checkIcon", BasicIconFactory.getMenuItemCheckIcon(), "Menu.consumesTabs", Boolean.TRUE, "Menu.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Menu.foreground", new ColorUIResource(Color.black), "Menu.margin", new InsetsUIResource(2, 2, 2, 2), "Menu.selectedWindowInputMapBindings", new Object[] { "ESCAPE", "cancel", "DOWN", "selectNext", "KP_DOWN", "selectNext", "UP", "selectPrevious", "KP_UP", "selectPrevious", "LEFT", "selectParent", "KP_LEFT", "selectParent", "RIGHT", "selectChild", "KP_RIGHT", "selectChild", "ENTER", "return", "SPACE", "return" }, "Menu.selectionBackground", new ColorUIResource(lightPurple), "Menu.selectionForeground", new ColorUIResource(Color.black), "MenuBar.background", new ColorUIResource(Color.lightGray), "MenuBar.border", new BasicBorders.MenuBarBorder(null, null), "MenuBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuBar.foreground", new ColorUIResource(Color.black), "MenuBar.windowBindings", new Object[] { "F10", "takeFocus" }, "MenuItem.acceleratorDelimiter", "-", "MenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuItem.acceleratorForeground", new ColorUIResource(Color.black), "MenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "MenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "MenuItem.background", new ColorUIResource(Color.lightGray), "MenuItem.border", new BasicBorders.MarginBorder(), "MenuItem.borderPainted", Boolean.FALSE, "MenuItem.checkIcon", BasicIconFactory.getMenuItemCheckIcon(), "MenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuItem.foreground", new ColorUIResource(Color.black), "MenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "MenuItem.selectionBackground", new ColorUIResource(lightPurple), "MenuItem.selectionForeground", new ColorUIResource(Color.black), "OptionPane.background", new ColorUIResource(Color.lightGray), "OptionPane.border", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.buttonAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.cancelButtonText", "Cancel", // XXX Don't use gif "OptionPane.errorIcon", new IconUIResource(new ImageIcon("icons/Error.gif")), "OptionPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "OptionPane.foreground", new ColorUIResource(Color.black), // XXX Don't use gif "OptionPane.informationIcon", new IconUIResource(new ImageIcon("icons/Inform.gif")), "OptionPane.messageAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.messageForeground", new ColorUIResource(Color.black), "OptionPane.minimumSize", new DimensionUIResource(262, 90), "OptionPane.noButtonText", "No", "OptionPane.okButtonText", "OK", // XXX Don't use gif "OptionPane.questionIcon", new IconUIResource(new ImageIcon("icons/Question.gif")), // XXX Don't use gif "OptionPane.warningIcon", new IconUIResource(new ImageIcon("icons/Warn.gif")), "OptionPane.windowBindings", new Object[] { "ESCAPE", "close" }, "OptionPane.yesButtonText", "Yes", "Panel.background", new ColorUIResource(Color.lightGray), "Panel.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Panel.foreground", new ColorUIResource(Color.black), "PasswordField.background", new ColorUIResource(Color.white), "PasswordField.border", new BasicBorders.FieldBorder(null, null, null, null), "PasswordField.caretBlinkRate", new Integer(500), "PasswordField.caretForeground", new ColorUIResource(Color.black), "PasswordField.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12), "PasswordField.foreground", new ColorUIResource(Color.black), "PasswordField.inactiveForeground", new ColorUIResource(Color.gray), "PasswordField.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "notify-field-accept")}, "PasswordField.margin", new InsetsUIResource(0, 0, 0, 0), "PasswordField.selectionBackground", new ColorUIResource(lightPurple), "PasswordField.selectionForeground", new ColorUIResource(Color.black), "PopupMenu.background", new ColorUIResource(Color.lightGray), "PopupMenu.border", new BorderUIResource.BevelBorderUIResource(0), "PopupMenu.font", new FontUIResource("Dialog", Font.PLAIN, 12), "PopupMenu.foreground", new ColorUIResource(Color.black), "ProgressBar.background", new ColorUIResource(Color.lightGray), "ProgressBar.border", new BorderUIResource.LineBorderUIResource(Color.darkGray), "ProgressBar.cellLength", new Integer(1), "ProgressBar.cellSpacing", new Integer(0), "ProgressBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ProgressBar.foreground", new ColorUIResource(midPurple), "ProgressBar.selectionBackground", new ColorUIResource(lightPurple), "ProgressBar.selectionForeground", new ColorUIResource(Color.lightGray), "ProgressBar.repaintInterval", new Integer(250), "ProgressBar.cycleTime", new Integer(6000), "RadioButton.background", new ColorUIResource(Color.lightGray), "RadioButton.border", new BorderUIResource.CompoundBorderUIResource(null, null), "RadioButton.darkShadow", new ColorUIResource(Color.darkGray), "RadioButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "RadioButton.font", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButton.foreground", new ColorUIResource(Color.black), "RadioButton.highlight", new ColorUIResource(Color.white), "RadioButton.icon", BasicIconFactory.getRadioButtonIcon(), "RadioButton.light", new ColorUIResource(Color.lightGray.brighter()), "RadioButton.margin", new InsetsUIResource(2, 2, 2, 2), "RadioButton.shadow", new ColorUIResource(Color.gray), "RadioButton.textIconGap", new Integer(4), "RadioButton.textShiftOffset", new Integer(0), "RadioButtonMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButtonMenuItem.acceleratorForeground", new ColorUIResource(Color.black), "RadioButtonMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "RadioButtonMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "RadioButtonMenuItem.background", new ColorUIResource(Color.lightGray), "RadioButtonMenuItem.border", new BasicBorders.MarginBorder(), "RadioButtonMenuItem.borderPainted", Boolean.FALSE, "RadioButtonMenuItem.checkIcon", BasicIconFactory.getRadioButtonMenuItemIcon(), "RadioButtonMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButtonMenuItem.foreground", new ColorUIResource(Color.black), "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "RadioButtonMenuItem.selectionBackground", new ColorUIResource(lightPurple), "RadioButtonMenuItem.selectionForeground", new ColorUIResource(Color.black), "RootPane.defaultButtonWindowKeyBindings", new Object[] { "ENTER", "press", "released ENTER", "release", "ctrl ENTER", "press", "ctrl released ENTER", "release" }, "ScrollBar.background", new ColorUIResource(224, 224, 224), "ScrollBar.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "negativeBlockIncrement", "PAGE_DOWN", "positiveBlockIncrement", "END", "maxScroll", "HOME", "minScroll", "LEFT", "positiveUnitIncrement", "KP_UP", "negativeUnitIncrement", "KP_DOWN", "positiveUnitIncrement", "UP", "negativeUnitIncrement", "RIGHT", "negativeUnitIncrement", "KP_LEFT", "positiveUnitIncrement", "DOWN", "positiveUnitIncrement", "KP_RIGHT", "negativeUnitIncrement" }), "ScrollBar.foreground", new ColorUIResource(Color.lightGray), "ScrollBar.maximumThumbSize", new DimensionUIResource(4096, 4096), "ScrollBar.minimumThumbSize", new DimensionUIResource(8, 8), "ScrollBar.thumb", new ColorUIResource(Color.lightGray), "ScrollBar.thumbDarkShadow", new ColorUIResource(Color.black), "ScrollBar.thumbHighlight", new ColorUIResource(Color.white), "ScrollBar.thumbLightShadow", new ColorUIResource(Color.gray), "ScrollBar.track", new ColorUIResource(224, 224, 224), "ScrollBar.trackHighlight", new ColorUIResource(Color.black), "ScrollPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "scrollUp", "KP_LEFT", "unitScrollLeft", "ctrl PAGE_DOWN","scrollRight", "PAGE_DOWN", "scrollDown", "KP_RIGHT", "unitScrollRight", "LEFT", "unitScrollLeft", "ctrl END", "scrollEnd", "UP", "unitScrollUp", "RIGHT", "unitScrollRight", "DOWN", "unitScrollDown", "ctrl HOME", "scrollHome", "ctrl PAGE_UP", "scrollLeft", "KP_UP", "unitScrollUp", "KP_DOWN", "unitScrollDown" }), "ScrollPane.background", new ColorUIResource(Color.lightGray), "ScrollPane.border", new BorderUIResource.EtchedBorderUIResource(), "ScrollPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ScrollPane.foreground", new ColorUIResource(Color.black), "Separator.background", new ColorUIResource(Color.white), "Separator.foreground", new ColorUIResource(Color.gray), "Separator.highlight", new ColorUIResource(Color.white), "Separator.shadow", new ColorUIResource(Color.gray), "Slider.background", new ColorUIResource(Color.lightGray), "Slider.focus", new ColorUIResource(Color.black), "Slider.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "positiveBlockIncrement", "PAGE_DOWN", "negativeBlockIncrement", "END", "maxScroll", "HOME", "minScroll", "LEFT", "negativeUnitIncrement", "KP_UP", "positiveUnitIncrement", "KP_DOWN", "negativeUnitIncrement", "UP", "positiveUnitIncrement", "RIGHT", "positiveUnitIncrement", "KP_LEFT", "negativeUnitIncrement", "DOWN", "negativeUnitIncrement", "KP_RIGHT", "positiveUnitIncrement" }), "Slider.focusInsets", new InsetsUIResource(2, 2, 2, 2), "Slider.foreground", new ColorUIResource(Color.lightGray), "Slider.highlight", new ColorUIResource(Color.white), "Slider.shadow", new ColorUIResource(Color.gray), "Slider.thumbHeight", new Integer(20), "Slider.thumbWidth", new Integer(10), "Slider.tickHeight", new Integer(12), "SplitPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "F6", "toggleFocus", "F8", "startResize", "END", "selectMax", "HOME", "selectMin", "LEFT", "negativeIncremnent", "KP_UP", "negativeIncrement", "KP_DOWN", "positiveIncrement", "UP", "negativeIncrement", "RIGHT", "positiveIncrement", "KP_LEFT", "negativeIncrement", "DOWN", "positiveIncrement", "KP_RIGHT", "positiveIncrement" }), "SplitPane.background", new ColorUIResource(Color.lightGray), "SplitPane.border", new BasicBorders.SplitPaneBorder(null, null), "SplitPane.dividerSize", new Integer(10), "SplitPane.highlight", new ColorUIResource(Color.white), "SplitPane.shadow", new ColorUIResource(Color.gray), "TabbedPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ctrl PAGE_DOWN","navigatePageDown", "ctrl PAGE_UP", "navigatePageUp", "ctrl UP", "requestFocus", "ctrl KP_UP", "requestFocus" }), "TabbedPane.background", new ColorUIResource(Color.LIGHT_GRAY), "TabbedPane.contentBorderInsets", new InsetsUIResource(2, 2, 3, 3), "TabbedPane.darkShadow", new ColorUIResource(Color.darkGray), "TabbedPane.focus", new ColorUIResource(Color.black), "TabbedPane.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "LEFT", "navigateLeft", "KP_UP", "navigateUp", "ctrl DOWN", "requestFocusForVisibleComponent", "UP", "navigateUp", "KP_DOWN", "navigateDown", "RIGHT", "navigateRight", "KP_LEFT", "navigateLeft", "ctrl KP_DOWN", "requestFocusForVisibleComponent", "KP_RIGHT", "navigateRight", "DOWN", "navigateDown" }), "TabbedPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TabbedPane.foreground", new ColorUIResource(Color.black), "TabbedPane.highlight", new ColorUIResource(Color.lightGray), "TabbedPane.lightHighlight", new ColorUIResource(Color.white), "TabbedPane.selectedTabPadInsets", new InsetsUIResource(2, 2, 2, 1), "TabbedPane.shadow", new ColorUIResource(Color.gray), "TabbedPane.tabbedPaneTabAreaInsets", new InsetsUIResource(3, 2, 1, 2), "TabbedPane.tabbedPaneTabInsets", new InsetsUIResource(1, 4, 1, 4), "TabbedPane.tabbedPaneContentBorderInsets", new InsetsUIResource(3, 2, 1, 2), "TabbedPane.tabbedPaneTabPadInsets", new InsetsUIResource(1, 1, 1, 1), "TabbedPane.tabRunOverlay", new Integer(2), "TabbedPane.textIconGap", new Integer(4), "Table.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "shift PAGE_DOWN","scrollDownExtendSelection", "PAGE_DOWN", "scrollDownChangeSelection", "END", "selectLastColumn", "shift END", "selectLastColumnExtendSelection", "HOME", "selectFirstColumn", "ctrl END", "selectLastRow", "ctrl shift END","selectLastRowExtendSelection", "LEFT", "selectPreviousColumn", "shift HOME", "selectFirstColumnExtendSelection", "UP", "selectPreviousRow", "RIGHT", "selectNextColumn", "ctrl HOME", "selectFirstRow", "shift LEFT", "selectPreviousColumnExtendSelection", "DOWN", "selectNextRow", "ctrl shift HOME","selectFirstRowExtendSelection", "shift UP", "selectPreviousRowExtendSelection", "F2", "startEditing", "shift RIGHT", "selectNextColumnExtendSelection", "TAB", "selectNextColumnCell", "shift DOWN", "selectNextRowExtendSelection", "ENTER", "selectNextRowCell", "KP_UP", "selectPreviousRow", "KP_DOWN", "selectNextRow", "KP_LEFT", "selectPreviousColumn", "KP_RIGHT", "selectNextColumn", "shift TAB", "selectPreviousColumnCell", "ctrl A", "selectAll", "shift ENTER", "selectPreviousRowCell", "shift KP_DOWN", "selectNextRowExtendSelection", "shift KP_LEFT", "selectPreviousColumnExtendSelection", "ESCAPE", "cancel", "ctrl shift PAGE_UP", "scrollRightExtendSelection", "shift KP_RIGHT", " selectNextColumnExtendSelection", "ctrl PAGE_UP", "scrollLeftChangeSelection", "shift PAGE_UP", "scrollUpExtendSelection", "ctrl shift PAGE_DOWN", "scrollLeftExtendSelection", "ctrl PAGE_DOWN", "scrollRightChangeSelection", "PAGE_UP", "scrollUpChangeSelection" }), "Table.background", new ColorUIResource(Color.white), "Table.focusCellBackground", new ColorUIResource(Color.white), "Table.focusCellForeground", new ColorUIResource(Color.black), "Table.focusCellHighlightBorder", new BorderUIResource.LineBorderUIResource(Color.white), "Table.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Table.foreground", new ColorUIResource(Color.black), "Table.gridColor", new ColorUIResource(Color.gray), "Table.scrollPaneBorder", new BorderUIResource.BevelBorderUIResource(0), "Table.selectionBackground", new ColorUIResource(lightPurple), "Table.selectionForeground", new ColorUIResource(Color.black), "TableHeader.background", new ColorUIResource(Color.lightGray), "TableHeader.cellBorder", new BorderUIResource.BevelBorderUIResource(0), "TableHeader.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TableHeader.foreground", new ColorUIResource(Color.black), "TextArea.background", new ColorUIResource(Color.white), "TextArea.border", new BasicBorders.MarginBorder(), "TextArea.caretBlinkRate", new Integer(500), "TextArea.caretForeground", new ColorUIResource(Color.black), "TextArea.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12), "TextArea.foreground", new ColorUIResource(Color.black), "TextArea.inactiveForeground", new ColorUIResource(Color.gray), "TextArea.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), "page-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "insert-break"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "insert-tab") }, "TextArea.margin", new InsetsUIResource(0, 0, 0, 0), "TextArea.selectionBackground", new ColorUIResource(lightPurple), "TextArea.selectionForeground", new ColorUIResource(Color.black), "TextField.background", new ColorUIResource(Color.white), "TextField.border", new BasicBorders.FieldBorder(null, null, null, null), "TextField.caretBlinkRate", new Integer(500), "TextField.caretForeground", new ColorUIResource(Color.black), "TextField.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "TextField.foreground", new ColorUIResource(Color.black), "TextField.inactiveForeground", new ColorUIResource(Color.gray), "TextField.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "notify-field-accept"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, InputEvent.SHIFT_DOWN_MASK), "selection-backward"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, InputEvent.SHIFT_DOWN_MASK), "selection-forward"), }, "TextField.margin", new InsetsUIResource(0, 0, 0, 0), "TextField.selectionBackground", new ColorUIResource(lightPurple), "TextField.selectionForeground", new ColorUIResource(Color.black), "TextPane.background", new ColorUIResource(Color.white), "TextPane.border", new BasicBorders.MarginBorder(), "TextPane.caretBlinkRate", new Integer(500), "TextPane.caretForeground", new ColorUIResource(Color.black), "TextPane.font", new FontUIResource("Serif", Font.PLAIN, 12), "TextPane.foreground", new ColorUIResource(Color.black), "TextPane.inactiveForeground", new ColorUIResource(Color.gray), "TextPane.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), "page-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "insert-break"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "insert-tab") }, "TextPane.margin", new InsetsUIResource(3, 3, 3, 3), "TextPane.selectionBackground", new ColorUIResource(Color.lightGray), "TextPane.selectionForeground", new ColorUIResource(Color.white), "TitledBorder.border", new BorderUIResource.EtchedBorderUIResource(), "TitledBorder.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TitledBorder.titleColor", new ColorUIResource(Color.black), "ToggleButton.background", new ColorUIResource(Color.lightGray), "ToggleButton.border", new BorderUIResource.CompoundBorderUIResource(null, null), "ToggleButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "ToggleButton.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ToggleButton.foreground", new ColorUIResource(Color.black), "ToggleButton.margin", new InsetsUIResource(2, 14, 2, 14), "ToggleButton.textIconGap", new Integer(4), "ToggleButton.textShiftOffset", new Integer(0), "ToolBar.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "UP", "navigateUp", "KP_UP", "navigateUp", "DOWN", "navigateDown", "KP_DOWN", "navigateDown", "LEFT", "navigateLeft", "KP_LEFT", "navigateLeft", "RIGHT", "navigateRight", "KP_RIGHT", "navigateRight" }), "ToolBar.background", new ColorUIResource(Color.lightGray), "ToolBar.border", new BorderUIResource.EtchedBorderUIResource(), "ToolBar.dockingBackground", new ColorUIResource(Color.lightGray), "ToolBar.dockingForeground", new ColorUIResource(11, 30, 143), "ToolBar.floatingBackground", new ColorUIResource(Color.lightGray), "ToolBar.floatingForeground", new ColorUIResource(113, 171, 212), "ToolBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ToolBar.foreground", new ColorUIResource(Color.black), "ToolBar.separatorSize", new DimensionUIResource(20, 20), "ToolTip.background", new ColorUIResource(122, 178, 241), "ToolTip.border", new BorderUIResource.LineBorderUIResource(Color.lightGray), "ToolTip.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "ToolTip.foreground", new ColorUIResource(Color.black), "Tree.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "cancel" }), "Tree.background", new ColorUIResource(Color.white), "Tree.changeSelectionWithFocus", Boolean.TRUE, "Tree.closedIcon", new IconUIResource(new ImageIcon("icons/TreeClosed.png")), "Tree.collapsedIcon", new IconUIResource(new ImageIcon("icons/TreeCollapsed.png")), "Tree.drawsFocusBorderAroundIcon", Boolean.FALSE, "Tree.editorBorder", new BorderUIResource.LineBorderUIResource(Color.lightGray), "Tree.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "shift PAGE_DOWN", "scrollDownExtendSelection", "PAGE_DOWN", "scrollDownChangeSelection", "END", "selectLast", "ctrl KP_UP", "selectPreviousChangeLead", "shift END", "selectLastExtendSelection", "HOME", "selectFirst", "ctrl END", "selectLastChangeLead", "ctrl /", "selectAll", "LEFT", "selectParent", "shift HOME", "selectFirstExtendSelection", "UP", "selectPrevious", "ctrl KP_DOWN", "selectNextChangeLead", "RIGHT", "selectChild", "ctrl HOME", "selectFirstChangeLead", "DOWN", "selectNext", "ctrl KP_LEFT", "scrollLeft", "shift UP", "selectPreviousExtendSelection", "F2", "startEditing", "ctrl LEFT", "scrollLeft", "ctrl KP_RIGHT","scrollRight", "ctrl UP", "selectPreviousChangeLead", "shift DOWN", "selectNextExtendSelection", "ENTER", "toggle", "KP_UP", "selectPrevious", "KP_DOWN", "selectNext", "ctrl RIGHT", "scrollRight", "KP_LEFT", "selectParent", "KP_RIGHT", "selectChild", "ctrl DOWN", "selectNextChangeLead", "ctrl A", "selectAll", "shift KP_UP", "selectPreviousExtendSelection", "shift KP_DOWN","selectNextExtendSelection", "ctrl SPACE", "toggleSelectionPreserveAnchor", "ctrl shift PAGE_UP", "scrollUpExtendSelection", "ctrl \\", "clearSelection", "shift SPACE", "extendSelection", "ctrl PAGE_UP", "scrollUpChangeLead", "shift PAGE_UP","scrollUpExtendSelection", "SPACE", "toggleSelectionPreserveAnchor", "ctrl shift PAGE_DOWN", "scrollDownExtendSelection", "PAGE_UP", "scrollUpChangeSelection", "ctrl PAGE_DOWN", "scrollDownChangeLead" }), "Tree.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Tree.expandedIcon", new IconUIResource(new ImageIcon("icons/TreeExpanded.png")), "Tree.foreground", new ColorUIResource(Color.black), "Tree.hash", new ColorUIResource(Color.gray), "Tree.leafIcon", new IconUIResource(new ImageIcon("icons/TreeLeaf.png")), "Tree.leftChildIndent", new Integer(7), "Tree.openIcon", new IconUIResource(new ImageIcon("icons/TreeOpen.png")), "Tree.rightChildIndent", new Integer(13), "Tree.rowHeight", new Integer(16), "Tree.scrollsOnExpand", Boolean.TRUE, "Tree.selectionBackground", new ColorUIResource(lightPurple), "Tree.selectionBorderColor", new ColorUIResource(Color.black), "Tree.selectionForeground", new ColorUIResource(Color.black), "Tree.textBackground", new ColorUIResource(Color.lightGray), "Tree.textForeground", new ColorUIResource(Color.black), "Viewport.background", new ColorUIResource(Color.lightGray), "Viewport.font", new FontUIResource("Dialog", Font.PLAIN, 12), }; defaults.putDefaults(uiDefaults); }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/e33e5337028d8ae3f4321ecfa438dff78278d9af/BasicLookAndFeel.java/clean/libraries/javalib/javax/swing/plaf/basic/BasicLookAndFeel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
1841,
7019,
12,
3060,
73,
643,
87,
3467,
13,
225,
288,
565,
1033,
8526,
5915,
7019,
31,
3639,
368,
1021,
805,
10176,
471,
5782,
292,
10555,
358,
999,
4259,
8925,
5405,
1802,
699,
16601,
565,
368,
1110,
773,
4492,
18,
565,
5563,
9052,
10262,
1802,
273,
394,
5563,
12,
20,
92,
6743,
16,
374,
92,
6743,
16,
374,
6356,
1769,
565,
5563,
7501,
10262,
1802,
273,
394,
5563,
12,
20,
92,
2733,
16,
374,
92,
2733,
16,
374,
92,
6743,
1769,
565,
5563,
23433,
10262,
1802,
273,
394,
5563,
12,
20,
92,
6028,
16,
374,
92,
6028,
16,
374,
92,
2733,
1769,
565,
5915,
7019,
273,
394,
1033,
8526,
288,
1377,
315,
7469,
31224,
429,
4666,
18,
31226,
1528,
3113,
315,
31224,
3113,
1377,
315,
7469,
31224,
429,
4666,
18,
1118,
83,
1528,
3113,
315,
3715,
83,
3113,
1377,
315,
3616,
18,
9342,
3113,
394,
5563,
5370,
1420,
12,
2957,
18,
5099,
23521,
3631,
1377,
315,
3616,
18,
8815,
3113,
1377,
394,
10034,
73,
643,
87,
18,
14443,
620,
1435,
4202,
288,
3639,
1071,
1033,
752,
620,
12,
3060,
73,
643,
87,
1014,
13,
3639,
288,
1850,
327,
7651,
21621,
18,
588,
3616,
8107,
5621,
3639,
289,
1377,
19879,
1377,
315,
3616,
18,
25045,
12957,
3113,
394,
5563,
5370,
1420,
12,
2957,
18,
25045,
23521,
3631,
1377,
315,
3616,
18,
13923,
1210,
863,
3113,
394,
10034,
73,
643,
87,
18,
14443,
1210,
863,
12,
2704,
1033,
8526,
288,
3639,
315,
6616,
3113,
225,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
1841,
7019,
12,
3060,
73,
643,
87,
3467,
13,
225,
288,
565,
1033,
8526,
5915,
7019,
31,
3639,
368,
1021,
805,
10176,
471,
5782,
292,
10555,
358,
999,
4259,
8925,
5405,
1802,
699,
16601,
565,
368,
1110,
773,
4492,
18,
565,
5563,
9052,
10262,
1802,
273,
394,
5563,
12,
20,
92,
6743,
16,
374,
92,
6743,
16,
374,
6356,
1769,
565,
5563,
7501,
10262,
1802,
273,
394,
5563,
12,
20,
92,
2733,
16,
374,
92,
2733,
16,
374,
92,
6743,
1769,
565,
5563,
23433,
10262,
1802,
273,
394,
5563,
12,
20,
92,
6028,
16,
374,
92,
6028,
16,
374,
92,
2733,
1769,
565,
5915,
7019,
273,
394,
1033,
8526,
288,
1377,
315,
7469,
31224,
429,
2
] |
System.out.println("ptypeslen = " + ptypes.length); System.out.println("ptypes = " + ptypes); System.out.println("ctor = " + ctors[i].getName()); for (int j=0; j < ptypes.length; j++) { System.out.println("param = " + ptypes[i].getName()); }
|
final Object doExecute() throws Exception { Class klazz = (target instanceof Class) ? (Class) target : target.getClass(); Object args[] = (arguments == null) ? new Object[0] : arguments; Class argTypes[] = new Class[args.length]; for (int i = 0; i < args.length; i++) argTypes[i] = args[i].getClass(); if (target.getClass().isArray()) { // FIXME: invoke may have to be used. For now, cast to Number // and hope for the best. If caller didn't behave, we go boom // and throw the exception. if (methodName.equals("get") && argTypes.length == 1) return Array.get(target, ((Number)args[0]).intValue()); if (methodName.equals("set") && argTypes.length == 2) { Object obj = Array.get(target, ((Number)args[0]).intValue()); Array.set(target, ((Number)args[0]).intValue(), args[1]); return obj; } throw new NoSuchMethodException("No matching method for statement " + toString()); } // If we already cached the method, just use it. if (method != null) return method.invoke(target, args); else if (ctor != null) return ctor.newInstance(args); // Find a matching method to call. JDK seems to go through all // this to find the method to call. // if method name or length don't match, skip // Need to go through each arg // If arg is wrapper - check if method arg is matchable builtin // or same type or super // - check that method arg is same or super if (methodName.equals("new") && target instanceof Class) { Constructor ctors[] = klazz.getConstructors(); for (int i = 0; i < ctors.length; i++) { // Skip methods with wrong number of args. Class ptypes[] = ctors[i].getParameterTypes(); System.out.println("ptypeslen = " + ptypes.length); System.out.println("ptypes = " + ptypes); System.out.println("ctor = " + ctors[i].getName()); for (int j=0; j < ptypes.length; j++) { System.out.println("param = " + ptypes[i].getName()); } if (ptypes.length != args.length) continue; // Check if method matches if (!compatible(ptypes, argTypes)) continue; // Use method[i] if it is more specific. // FIXME: should this check both directions and throw if // neither is more specific? if (ctor == null) { ctor = ctors[i]; continue; } Class mptypes[] = ctor.getParameterTypes(); if (moreSpecific(ptypes, mptypes)) ctor = ctors[i]; } if (ctor == null) throw new InstantiationException("No matching constructor for statement " + toString()); return ctor.newInstance(args); } Method methods[] = klazz.getMethods(); for (int i = 0; i < methods.length; i++) { // Skip methods with wrong name or number of args. if (!methods[i].getName().equals(methodName)) continue; Class ptypes[] = methods[i].getParameterTypes(); if (ptypes.length != args.length) continue; // Check if method matches if (!compatible(ptypes, argTypes)) continue; // Use method[i] if it is more specific. // FIXME: should this check both directions and throw if // neither is more specific? if (method == null) { method = methods[i]; continue; } Class mptypes[] = method.getParameterTypes(); if (moreSpecific(ptypes, mptypes)) method = methods[i]; } if (method == null) throw new NoSuchMethodException("No matching method for statement " + toString()); return method.invoke(target, args); }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/d03b7ded9dacd5a74a8420d7dade451079b17d89/Statement.java/clean/libraries/javalib/java/beans/Statement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1033,
741,
5289,
1435,
1216,
1185,
225,
288,
565,
1659,
15290,
3638,
273,
261,
3299,
1276,
1659,
13,
202,
35,
261,
797,
13,
1018,
294,
1018,
18,
588,
797,
5621,
565,
1033,
833,
8526,
273,
261,
7099,
422,
446,
13,
692,
394,
1033,
63,
20,
65,
294,
1775,
31,
565,
1659,
30973,
8526,
273,
394,
1659,
63,
1968,
18,
2469,
15533,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
1377,
30973,
63,
77,
65,
273,
833,
63,
77,
8009,
588,
797,
5621,
565,
309,
261,
3299,
18,
588,
797,
7675,
291,
1076,
10756,
1377,
288,
202,
759,
9852,
30,
4356,
2026,
1240,
358,
506,
1399,
18,
225,
2457,
2037,
16,
4812,
358,
3588,
202,
759,
471,
27370,
364,
326,
3796,
18,
225,
971,
4894,
10242,
1404,
31085,
16,
732,
1960,
800,
362,
202,
759,
471,
604,
326,
1520,
18,
202,
430,
261,
2039,
461,
18,
14963,
2932,
588,
7923,
597,
30973,
18,
2469,
422,
404,
13,
202,
225,
327,
1510,
18,
588,
12,
3299,
16,
14015,
1854,
13,
1968,
63,
20,
65,
2934,
474,
620,
10663,
202,
430,
261,
2039,
461,
18,
14963,
2932,
542,
7923,
597,
30973,
18,
2469,
422,
576,
13,
202,
225,
288,
202,
565,
1033,
1081,
273,
1510,
18,
588,
12,
3299,
16,
14015,
1854,
13,
1968,
63,
20,
65,
2934,
474,
620,
10663,
202,
565,
1510,
18,
542,
12,
3299,
16,
14015,
1854,
13,
1968,
63,
20,
65,
2934,
474,
620,
9334,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1033,
741,
5289,
1435,
1216,
1185,
225,
288,
565,
1659,
15290,
3638,
273,
261,
3299,
1276,
1659,
13,
202,
35,
261,
797,
13,
1018,
294,
1018,
18,
588,
797,
5621,
565,
1033,
833,
8526,
273,
261,
7099,
422,
446,
13,
692,
394,
1033,
63,
20,
65,
294,
1775,
31,
565,
1659,
30973,
8526,
273,
394,
1659,
63,
1968,
18,
2469,
15533,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
1377,
30973,
63,
77,
65,
273,
833,
63,
77,
8009,
588,
797,
5621,
565,
309,
261,
3299,
18,
588,
797,
7675,
291,
1076,
10756,
1377,
288,
202,
759,
9852,
30,
4356,
2026,
1240,
358,
506,
1399,
18,
225,
2457,
2037,
2
] |
|
cmof.reflection.Object object = new cmof.PropertyImpl(_724, extent, null, "cmof.PropertyImpl", new String[]{"cmof.RedefinableElementCustom", "core.abstractions.multiplicities.MultiplicityElementCustom", "core.abstractions.redefinitions.RedefinableElementCustom", "cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerived", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("subsettedProperty", new java.lang.Object[] {_516});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinitionContext", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedProperty", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("datatype", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("association", _117);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isComposite", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("upper", new Long(-1));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("lower", new Integer(0));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _505);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isReadOnly", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isOrdered", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isUnique", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("featuringClassifier", new java.lang.Object[] {_505});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "packageImport");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _725);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _505);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owningAssociation", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("type", _179);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _505);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("class", _505);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("details", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("default", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.Namespace.packageImport");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerivedUnion", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("opposite", _373);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isID", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {});
|
cmof.reflection.Object object = new cmof.OperationImpl(_334, extent, null, "cmof.OperationImpl", new String[]{"core.abstractions.multiplicities.MultiplicityElementCustom", "core.abstractions.behavioralfeatures.BehavioralFeatureCustom", "cmof.RedefinableElementCustom", "core.abstractions.redefinitions.RedefinableElementCustom", "cmof.NamedElementCustom", "core.abstractions.namespaces.NamespaceCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isQuery", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("packageImport", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("formalParameter", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinitionContext", new java.lang.Object[] {_366});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("datatype", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedElement", new java.lang.Object[] {_409});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("member", new java.lang.Object[] {_125});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedMember", new java.lang.Object[] {_125});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {_125});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("upper", new Long(1));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("bodyCondition", _125);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedOperation", new java.lang.Object[] {_409});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("lower", new Integer(1));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _366);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isUnique", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isOrdered", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("featuringClassifier", new java.lang.Object[] {_366});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "isNull");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("parameter", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _364);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("postcondition", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {_125});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _366);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("elementImport", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedRule", new java.lang.Object[] {_125});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("type", _133);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _366);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("importedMember", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("raisedException", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("class", _366);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("precondition", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("returnResult", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "core.abstractions.literals.LiteralNull.isNull");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedBehavior", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {});
|
private static cmof.reflection.Object getObject110(hub.sam.mof.reflection.ExtentImpl extent) { cmof.reflection.Object object = new cmof.PropertyImpl(_724, extent, null, "cmof.PropertyImpl", new String[]{"cmof.RedefinableElementCustom", "core.abstractions.multiplicities.MultiplicityElementCustom", "core.abstractions.redefinitions.RedefinableElementCustom", "cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerived", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("subsettedProperty", new java.lang.Object[] {_516});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinitionContext", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedProperty", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("datatype", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("association", _117);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isComposite", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("upper", new Long(-1));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("lower", new Integer(0));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _505);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isReadOnly", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isOrdered", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isUnique", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("featuringClassifier", new java.lang.Object[] {_505});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "packageImport");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _725);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _505);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owningAssociation", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("type", _179);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _505);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("class", _505);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("details", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("default", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.Namespace.packageImport");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerivedUnion", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("opposite", _373);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isID", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {}); return object; }
|
11562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11562/de04478dee56227ec288b43e5ca731f9bbd84f7c/CMOF.java/buggy/SimpleMOF2/resources/repository/initial-src/cmof/CMOF.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
5003,
792,
18,
26606,
18,
921,
6455,
17506,
12,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
17639,
2828,
11933,
13,
288,
3639,
5003,
792,
18,
26606,
18,
921,
733,
273,
394,
5003,
792,
18,
2988,
2828,
24899,
3707,
24,
16,
11933,
16,
446,
16,
315,
7670,
792,
18,
2988,
2828,
3113,
394,
514,
63,
7073,
6,
3644,
18,
378,
701,
4905,
18,
7027,
1780,
1961,
18,
5002,
20458,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
31936,
287,
7139,
18,
9212,
287,
4595,
3802,
3113,
315,
7670,
792,
18,
426,
5649,
429,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
266,
13314,
18,
426,
5649,
429,
1046,
3802,
3113,
315,
7670,
792,
18,
7604,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
16078,
18,
3402,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
16078,
18,
7604,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
995,
12565,
87,
18,
1046,
3802,
6,
22938,
12443,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
921,
2828,
13,
1612,
2934,
458,
1499,
2932,
291,
1138,
3113,
394,
3411,
12,
5743,
10019,
12443,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
921,
2828,
13,
1612,
2934,
458,
1499,
2932,
5610,
5010,
3113,
394,
2252,
18,
4936,
18,
921,
8526,
2618,
1769,
12443,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
921,
2828,
13,
1612,
2934,
458,
1499,
2932,
687,
287,
1662,
3113,
394,
2252,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
5003,
792,
18,
26606,
18,
921,
6455,
17506,
12,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
17639,
2828,
11933,
13,
288,
3639,
5003,
792,
18,
26606,
18,
921,
733,
273,
394,
5003,
792,
18,
2988,
2828,
24899,
3707,
24,
16,
11933,
16,
446,
16,
315,
7670,
792,
18,
2988,
2828,
3113,
394,
514,
63,
7073,
6,
3644,
18,
378,
701,
4905,
18,
7027,
1780,
1961,
18,
5002,
20458,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
31936,
287,
7139,
18,
9212,
287,
4595,
3802,
3113,
315,
7670,
792,
18,
426,
5649,
429,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
266,
13314,
18,
426,
5649,
429,
1046,
3802,
3113,
315,
2
] |
typeId = typeId(false);
|
typeId = typeId(false, false);
|
protected IASTExpression castExpression() throws EndOfFileException, BacktrackException { // TO DO: we need proper symbol checkint to ensure type name if (LT(1) == IToken.tLPAREN) { IToken mark = mark(); int startingOffset = mark.getOffset(); consume(); IASTTypeId typeId = null; IASTExpression castExpression = null; // If this isn't a type name, then we shouldn't be here try { try { typeId = typeId(false); consume(IToken.tRPAREN); castExpression = castExpression(); } catch (BacktrackException bte) { backup(mark); throwBacktrack(bte); } return buildTypeIdUnaryExpression(IASTCastExpression.op_cast, typeId, castExpression, startingOffset, calculateEndOffset(castExpression)); } catch (BacktrackException b) { } } return unaryExpression(); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/66c2e911bf7827e6a48d6cc7b5a30d02a947ac62/GNUCSourceParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/GNUCSourceParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
467,
9053,
2300,
4812,
2300,
1435,
1216,
4403,
951,
812,
503,
16,
540,
4297,
4101,
503,
288,
1377,
368,
8493,
5467,
30,
732,
1608,
5338,
3273,
866,
474,
358,
3387,
618,
508,
1377,
309,
261,
12050,
12,
21,
13,
422,
467,
1345,
18,
88,
48,
15111,
13,
288,
540,
467,
1345,
2267,
273,
2267,
5621,
540,
509,
5023,
2335,
273,
2267,
18,
588,
2335,
5621,
540,
7865,
5621,
540,
467,
9053,
11731,
24361,
273,
446,
31,
540,
467,
9053,
2300,
4812,
2300,
273,
446,
31,
540,
368,
971,
333,
5177,
1404,
279,
618,
508,
16,
1508,
732,
12044,
1404,
506,
2674,
540,
775,
288,
5411,
775,
288,
9079,
24361,
273,
24361,
12,
5743,
16,
629,
1769,
9079,
7865,
12,
1285,
969,
18,
88,
54,
15111,
1769,
9079,
4812,
2300,
273,
4812,
2300,
5621,
5411,
289,
1044,
261,
2711,
4101,
503,
324,
736,
13,
288,
9079,
5114,
12,
3355,
1769,
9079,
604,
2711,
4101,
12,
70,
736,
1769,
5411,
289,
5411,
327,
1361,
11731,
15972,
2300,
12,
45,
9053,
9735,
2300,
18,
556,
67,
4155,
16,
5375,
24361,
16,
4812,
2300,
16,
5023,
2335,
16,
5375,
4604,
1638,
2335,
12,
4155,
2300,
10019,
540,
289,
1044,
261,
2711,
4101,
503,
324,
13,
288,
540,
289,
1377,
289,
1377,
327,
19017,
2300,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
467,
9053,
2300,
4812,
2300,
1435,
1216,
4403,
951,
812,
503,
16,
540,
4297,
4101,
503,
288,
1377,
368,
8493,
5467,
30,
732,
1608,
5338,
3273,
866,
474,
358,
3387,
618,
508,
1377,
309,
261,
12050,
12,
21,
13,
422,
467,
1345,
18,
88,
48,
15111,
13,
288,
540,
467,
1345,
2267,
273,
2267,
5621,
540,
509,
5023,
2335,
273,
2267,
18,
588,
2335,
5621,
540,
7865,
5621,
540,
467,
9053,
11731,
24361,
273,
446,
31,
540,
467,
9053,
2300,
4812,
2300,
273,
446,
31,
540,
368,
971,
333,
5177,
1404,
279,
618,
508,
16,
1508,
732,
12044,
1404,
506,
2674,
540,
775,
288,
5411,
775,
288,
9079,
24361,
273,
24361,
12,
5743,
16,
629,
1769,
9079,
2
] |
Iterator iterator = DEUtil.getStyles( ); while ( iterator.hasNext( ) )
|
if ( ( (StyleHandle) model ).isPredefined( ) && selectedType == TYPE_CUSTOM )
|
private boolean checkName( String name ) { Iterator iterator = DEUtil.getStyles( ); while ( iterator.hasNext( ) ) { SharedStyleHandle handle = (SharedStyleHandle) iterator.next( ); if ( handle.getQualifiedName( ).equals( name ) ) { ExceptionHandler.openErrorMessageBox( Messages.getString( "GeneralPreferencePage.errorMsg.duplicate.styleName" ), //$NON-NLS-1$ Messages.getString( "GeneralPreferencePage.label.styleName" ) //$NON-NLS-1$ + ": \"" //$NON-NLS-1$ + name + "\" " //$NON-NLS-1$ + Messages.getString( "GeneralPreferencePage.label.choose.different.name" ) ); //$NON-NLS-1$ return false; } } return true; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/5292a1e8a042200f9364ce898ccbd5a94a5f8e44/GeneralPreferencePage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/GeneralPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
866,
461,
12,
514,
508,
262,
202,
95,
202,
202,
3198,
2775,
273,
2030,
1304,
18,
588,
9725,
12,
11272,
202,
202,
17523,
261,
2775,
18,
5332,
2134,
12,
262,
262,
202,
202,
95,
1082,
202,
7887,
2885,
3259,
1640,
273,
261,
7887,
2885,
3259,
13,
2775,
18,
4285,
12,
11272,
1082,
202,
430,
261,
1640,
18,
588,
12345,
12,
262,
18,
14963,
12,
508,
262,
262,
1082,
202,
95,
9506,
202,
18894,
18,
3190,
14935,
3514,
12,
4838,
18,
588,
780,
12,
315,
12580,
9624,
1964,
18,
1636,
3332,
18,
17342,
18,
4060,
461,
6,
262,
16,
4329,
3993,
17,
5106,
17,
21,
8,
25083,
202,
5058,
18,
588,
780,
12,
315,
12580,
9624,
1964,
18,
1925,
18,
4060,
461,
6,
262,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
9506,
202,
15,
6398,
11843,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
9506,
202,
15,
508,
6862,
9506,
202,
15,
7023,
315,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
9506,
202,
15,
4838,
18,
588,
780,
12,
315,
12580,
9624,
1964,
18,
1925,
18,
25777,
18,
30738,
18,
529,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2463,
629,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
638,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
866,
461,
12,
514,
508,
262,
202,
95,
202,
202,
3198,
2775,
273,
2030,
1304,
18,
588,
9725,
12,
11272,
202,
202,
17523,
261,
2775,
18,
5332,
2134,
12,
262,
262,
202,
202,
95,
1082,
202,
7887,
2885,
3259,
1640,
273,
261,
7887,
2885,
3259,
13,
2775,
18,
4285,
12,
11272,
1082,
202,
430,
261,
1640,
18,
588,
12345,
12,
262,
18,
14963,
12,
508,
262,
262,
1082,
202,
95,
9506,
202,
18894,
18,
3190,
14935,
3514,
12,
4838,
18,
588,
780,
12,
315,
12580,
9624,
1964,
18,
1636,
3332,
18,
17342,
18,
4060,
461,
6,
262,
16,
4329,
3993,
17,
5106,
17,
21,
8,
25083,
202,
5058,
18,
588,
780,
12,
315,
12580,
9624,
2
] |
if (ac.getMaximumBondOrder(neighbours[i]) > 1.0) { picounter += 1;
|
bonds = ac.getConnectedBonds(neighbours[i]); for (int j = 0; j < bonds.length; j++) { if (bonds[j].getOrder()>1.0 && bonds[j].getConnectedAtom(neighbours[i])!=atom && !neighbours[i].getSymbol().equals("P") && !neighbours[i].getSymbol().equals("S")){ picounter += 1; }
|
private int getPiSystemsCount(AtomContainer ac, org.openscience.cdk.interfaces.Atom atom) { org.openscience.cdk.interfaces.Atom[] neighbours = ac.getConnectedAtoms(atom); int picounter = 0; for (int i = 0; i < neighbours.length; i++) { if (ac.getMaximumBondOrder(neighbours[i]) > 1.0) { picounter += 1; } } return picounter; }
|
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/4a5972030c58ddaddae01131565720e9592189d1/XLogPDescriptor.java/clean/src/org/openscience/cdk/qsar/XLogPDescriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1689,
77,
31072,
1380,
12,
3641,
2170,
1721,
16,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
3641,
3179,
13,
288,
202,
202,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
3641,
8526,
27662,
273,
1721,
18,
588,
8932,
14280,
12,
7466,
1769,
202,
202,
474,
19189,
2096,
273,
374,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
27662,
18,
2469,
31,
277,
27245,
288,
1082,
202,
430,
261,
1077,
18,
588,
13528,
9807,
2448,
12,
11166,
4390,
63,
77,
5717,
405,
404,
18,
20,
13,
288,
9506,
202,
20003,
2096,
1011,
404,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
19189,
2096,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1689,
77,
31072,
1380,
12,
3641,
2170,
1721,
16,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
3641,
3179,
13,
288,
202,
202,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
3641,
8526,
27662,
273,
1721,
18,
588,
8932,
14280,
12,
7466,
1769,
202,
202,
474,
19189,
2096,
273,
374,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
27662,
18,
2469,
31,
277,
27245,
288,
1082,
202,
430,
261,
1077,
18,
588,
13528,
9807,
2448,
12,
11166,
4390,
63,
77,
5717,
405,
404,
18,
20,
13,
288,
9506,
202,
20003,
2096,
1011,
404,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
19189,
2096,
2
] |
return getClassTib(s);
|
result = getClassTib(s); break;
|
public static byte simplify(OPT_AbstractRegisterPool regpool, OPT_Instruction s) { switch (s.getOpcode()) { //////////////////// // GUARD operations //////////////////// case GUARD_COMBINE_opcode: return guardCombine(s); //////////////////// // TRAP operations //////////////////// case TRAP_IF_opcode: return trapIf(s); case NULL_CHECK_opcode: return nullCheck(s); case INT_ZERO_CHECK_opcode: return intZeroCheck(s); case LONG_ZERO_CHECK_opcode: return longZeroCheck(s); case CHECKCAST_opcode: return checkcast(regpool, s); case CHECKCAST_UNRESOLVED_opcode: return checkcast(regpool, s); case CHECKCAST_NOTNULL_opcode: return checkcastNotNull(s); case INSTANCEOF_opcode: return instanceOf(regpool, s); case INSTANCEOF_NOTNULL_opcode: return instanceOfNotNull(s); case OBJARRAY_STORE_CHECK_opcode: return objarrayStoreCheck(s); case OBJARRAY_STORE_CHECK_NOTNULL_opcode: return objarrayStoreCheckNotNull(s); case MUST_IMPLEMENT_INTERFACE_opcode: return mustImplementInterface(s); //////////////////// // Conditional moves //////////////////// case INT_COND_MOVE_opcode: return intCondMove(s); case LONG_COND_MOVE_opcode: return longCondMove(s); case FLOAT_COND_MOVE_opcode: return floatCondMove(s); case DOUBLE_COND_MOVE_opcode: return doubleCondMove(s); case REF_COND_MOVE_opcode: return refCondMove(s); case GUARD_COND_MOVE_opcode: return guardCondMove(s); //////////////////// // INT ALU operations //////////////////// case BOOLEAN_NOT_opcode: return booleanNot(s); case BOOLEAN_CMP_INT_opcode: return booleanCmpInt(s); case BOOLEAN_CMP_ADDR_opcode: return booleanCmpAddr(s); case INT_ADD_opcode: return intAdd(s); case INT_AND_opcode: return intAnd(s); case INT_DIV_opcode: return intDiv(s); case INT_MUL_opcode: return intMul(regpool, s); case INT_NEG_opcode: return intNeg(s); case INT_NOT_opcode: return intNot(s); case INT_OR_opcode: return intOr(s); case INT_REM_opcode: return intRem(s); case INT_SHL_opcode: return intShl(s); case INT_SHR_opcode: return intShr(s); case INT_SUB_opcode: return intSub(s); case INT_USHR_opcode: return intUshr(s); case INT_XOR_opcode: return intXor(s); //////////////////// // WORD ALU operations //////////////////// case REF_ADD_opcode: return refAdd(s); case REF_AND_opcode: return refAnd(s); case REF_SHL_opcode: return refShl(s); case REF_SHR_opcode: return refShr(s); case REF_NOT_opcode: return refNot(s); case REF_OR_opcode: return refOr(s); case REF_SUB_opcode: return refSub(s); case REF_USHR_opcode: return regUshr(s); case REF_XOR_opcode: return refXor(s); //////////////////// // LONG ALU operations //////////////////// case LONG_ADD_opcode: return longAdd(s); case LONG_AND_opcode: return longAnd(s); case LONG_CMP_opcode: return longCmp(s); case LONG_DIV_opcode: return longDiv(s); case LONG_MUL_opcode: return longMul(s); case LONG_NEG_opcode: return longNeg(s); case LONG_NOT_opcode: return longNot(s); case LONG_OR_opcode: return longOr(s); case LONG_REM_opcode: return longRem(s); case LONG_SHL_opcode: return longShl(s); case LONG_SHR_opcode: return longShr(s); case LONG_SUB_opcode: return longSub(s); case LONG_USHR_opcode: return longUshr(s); case LONG_XOR_opcode: return longXor(s); //////////////////// // FLOAT ALU operations //////////////////// case FLOAT_ADD_opcode: return floatAdd(s); case FLOAT_CMPG_opcode: return floatCmpg(s); case FLOAT_CMPL_opcode: return floatCmpl(s); case FLOAT_DIV_opcode: return floatDiv(s); case FLOAT_MUL_opcode: return floatMul(s); case FLOAT_NEG_opcode: return floatNeg(s); case FLOAT_REM_opcode: return floatRem(s); case FLOAT_SUB_opcode: return floatSub(s); //////////////////// // DOUBLE ALU operations //////////////////// case DOUBLE_ADD_opcode: return doubleAdd(s); case DOUBLE_CMPG_opcode: return doubleCmpg(s); case DOUBLE_CMPL_opcode: return doubleCmpl(s); case DOUBLE_DIV_opcode: return doubleDiv(s); case DOUBLE_MUL_opcode: return doubleMul(s); case DOUBLE_NEG_opcode: return doubleNeg(s); case DOUBLE_REM_opcode: return doubleRem(s); case DOUBLE_SUB_opcode: return doubleSub(s); //////////////////// // CONVERSION operations //////////////////// case DOUBLE_2FLOAT_opcode: return double2Float(s); case DOUBLE_2INT_opcode: return double2Int(s); case DOUBLE_2LONG_opcode: return double2Long(s); case DOUBLE_AS_LONG_BITS_opcode: return doubleAsLongBits(s); case INT_2DOUBLE_opcode: return int2Double(s); case INT_2BYTE_opcode: return int2Byte(s); case INT_2USHORT_opcode: return int2UShort(s); case INT_2FLOAT_opcode: return int2Float(s); case INT_2LONG_opcode: return int2Long(s); case INT_2ADDRSigExt_opcode: return int2AddrSigExt(s); case INT_2ADDRZerExt_opcode: return int2AddrZerExt(s); //-#if RVM_FOR_64_ADDR case LONG_2ADDR_opcode: return long2Addr(s); //-#endif case INT_2SHORT_opcode: return int2Short(s); case INT_BITS_AS_FLOAT_opcode: return intBitsAsFloat(s); case ADDR_2INT_opcode: return addr2Int(s); case ADDR_2LONG_opcode: return addr2Long(s); case FLOAT_2DOUBLE_opcode: return float2Double(s); case FLOAT_2INT_opcode: return float2Int(s); case FLOAT_2LONG_opcode: return float2Long(s); case FLOAT_AS_INT_BITS_opcode: return floatAsIntBits(s); case LONG_2FLOAT_opcode: return long2Float(s); case LONG_2INT_opcode: return long2Int(s); case LONG_2DOUBLE_opcode: return long2Double(s); case LONG_BITS_AS_DOUBLE_opcode: return longBitsAsDouble(s); //////////////////// // Field operations //////////////////// case ARRAYLENGTH_opcode: return arrayLength(s); case BOUNDS_CHECK_opcode: return boundsCheck(s); case CALL_opcode: return call(s); case GETFIELD_opcode: return getField(s); case GET_OBJ_TIB_opcode: return getObjTib(s); case GET_CLASS_TIB_opcode: return getClassTib(s); case GET_TYPE_FROM_TIB_opcode: return getTypeFromTib(s); case GET_ARRAY_ELEMENT_TIB_FROM_TIB_opcode: return getArrayElementTibFromTib(s); case GET_SUPERCLASS_IDS_FROM_TIB_opcode: return getSuperclassIdsFromTib(s); case GET_DOES_IMPLEMENT_FROM_TIB_opcode: return getDoesImplementFromTib(s); case REF_LOAD_opcode: return refLoad(s); default: return UNCHANGED; } }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/eb4369b6f8fdd0cd15c56bc3cbfa8673171db226/OPT_Simplifier.java/buggy/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1160,
16499,
12,
15620,
67,
7469,
3996,
2864,
960,
6011,
16,
16456,
67,
11983,
272,
13,
288,
565,
1620,
261,
87,
18,
588,
22808,
10756,
288,
1377,
368,
3517,
759,
1377,
368,
611,
57,
8085,
5295,
1377,
368,
3517,
759,
565,
648,
611,
57,
8085,
67,
4208,
38,
3740,
67,
556,
710,
30,
1377,
327,
11026,
21720,
12,
87,
1769,
1377,
368,
3517,
759,
1377,
368,
4235,
2203,
5295,
1377,
368,
3517,
759,
565,
648,
4235,
2203,
67,
5501,
67,
556,
710,
30,
1377,
327,
23034,
2047,
12,
87,
1769,
565,
648,
3206,
67,
10687,
67,
556,
710,
30,
1377,
327,
446,
1564,
12,
87,
1769,
565,
648,
6137,
67,
24968,
67,
10687,
67,
556,
710,
30,
1377,
327,
509,
7170,
1564,
12,
87,
1769,
565,
648,
14011,
67,
24968,
67,
10687,
67,
556,
710,
30,
1377,
327,
1525,
7170,
1564,
12,
87,
1769,
565,
648,
14565,
21871,
67,
556,
710,
30,
1377,
327,
866,
4155,
12,
1574,
6011,
16,
272,
1769,
565,
648,
14565,
21871,
67,
2124,
17978,
12135,
67,
556,
710,
30,
1377,
327,
866,
4155,
12,
1574,
6011,
16,
272,
1769,
565,
648,
14565,
21871,
67,
4400,
8560,
67,
556,
710,
30,
1377,
327,
866,
4155,
5962,
12,
87,
1769,
565,
648,
6937,
3932,
67,
556,
710,
30,
1377,
327,
28397,
12,
1574,
6011,
16,
272,
1769,
565,
648,
6937,
3932,
67,
4400,
8560,
67,
556,
710,
30,
1377,
327,
28397,
5962,
12,
87,
1769,
565,
648,
9730,
46,
8552,
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,
282,
1071,
760,
1160,
16499,
12,
15620,
67,
7469,
3996,
2864,
960,
6011,
16,
16456,
67,
11983,
272,
13,
288,
565,
1620,
261,
87,
18,
588,
22808,
10756,
288,
1377,
368,
3517,
759,
1377,
368,
611,
57,
8085,
5295,
1377,
368,
3517,
759,
565,
648,
611,
57,
8085,
67,
4208,
38,
3740,
67,
556,
710,
30,
1377,
327,
11026,
21720,
12,
87,
1769,
1377,
368,
3517,
759,
1377,
368,
4235,
2203,
5295,
1377,
368,
3517,
759,
565,
648,
4235,
2203,
67,
5501,
67,
556,
710,
30,
1377,
327,
23034,
2047,
12,
87,
1769,
565,
648,
3206,
67,
10687,
67,
556,
710,
30,
1377,
327,
446,
1564,
12,
87,
1769,
565,
648,
6137,
67,
24968,
67,
10687,
67,
556,
710,
2
] |
Label lblRotation = new Label( cmpContent, SWT.NONE );
|
Label lblRotation = new Label( cmpList, SWT.NONE );
|
public void getComponent( Composite parent ) { final int COLUMN_NUMBER = ChartUIUtil.is3DType( getChart( ) ) ? 5 : 4; cmpContent = new Composite( parent, SWT.NONE ); { GridLayout glContent = new GridLayout( COLUMN_NUMBER, false ); glContent.horizontalSpacing = HORIZONTAL_SPACING; cmpContent.setLayout( glContent ); GridData gd = new GridData( GridData.FILL_BOTH ); cmpContent.setLayoutData( gd ); } Label lblAxis = new Label( cmpContent, SWT.NONE ); { GridData gd = new GridData( ); gd.horizontalAlignment = SWT.CENTER; lblAxis.setLayoutData( gd ); lblAxis.setFont( JFaceResources.getBannerFont( ) ); lblAxis.setText( Messages.getString( "AxisSheetImpl.Label.Axis" ) ); //$NON-NLS-1$ } Label lblVisible = new Label( cmpContent, SWT.NONE ); { GridData gd = new GridData( ); gd.horizontalAlignment = SWT.CENTER; lblVisible.setLayoutData( gd ); lblVisible.setFont( JFaceResources.getBannerFont( ) ); lblVisible.setText( Messages.getString( "AxisSheetImpl.Label.Visible" ) ); //$NON-NLS-1$ } Label lblType = new Label( cmpContent, SWT.NONE ); { GridData gd = new GridData( ); gd.horizontalAlignment = SWT.CENTER; lblType.setLayoutData( gd ); lblType.setFont( JFaceResources.getBannerFont( ) ); lblType.setText( Messages.getString( "AxisSheetImpl.Label.Type" ) ); //$NON-NLS-1$ } Label lblColor = new Label( cmpContent, SWT.NONE ); { GridData gd = new GridData( ); gd.horizontalAlignment = SWT.CENTER; lblColor.setLayoutData( gd ); lblColor.setFont( JFaceResources.getBannerFont( ) ); lblColor.setText( Messages.getString( "AxisSheetImpl.Label.Color" ) ); //$NON-NLS-1$ } if ( ChartUIUtil.is3DType( getChart( ) ) ) { Label lblRotation = new Label( cmpContent, SWT.NONE ); { GridData gd = new GridData( ); gd.horizontalAlignment = SWT.BEGINNING; lblRotation.setLayoutData( gd ); lblRotation.setFont( JFaceResources.getBannerFont( ) ); lblRotation.setText( Messages.getString( "AxisSheetImpl.Label.Rotation" ) ); //$NON-NLS-1$ } } int treeIndex = 0; new AxisOptionChoser( ChartUIUtil.getAxisXForProcessing( (ChartWithAxes) getChart( ) ), Messages.getString( "AxisSheetImpl.Label.CategoryX" ), //$NON-NLS-1$ AngleType.X, treeIndex++ ).placeComponents( cmpContent ); int yaxisNumber = ChartUIUtil.getOrthogonalAxisNumber( getChart( ) ); for ( int i = 0; i < yaxisNumber; i++ ) { String text = Messages.getString( "AxisSheetImpl.Label.ValueY" ); //$NON-NLS-1$ new AxisOptionChoser( ChartUIUtil.getAxisYForProcessing( (ChartWithAxes) getChart( ), i ), yaxisNumber == 1 ? text : ( text + " - " + ( i + 1 ) ), AngleType.Y, treeIndex++ ).placeComponents( cmpContent ); //$NON-NLS-1$ } if ( ChartUIUtil.is3DType( getChart( ) ) ) { new AxisOptionChoser( ChartUIUtil.getAxisZForProcessing( (ChartWithAxes) getChart( ) ), Messages.getString( "AxisSheetImpl.Label.AncillaryZ" ), //$NON-NLS-1$ AngleType.Z, treeIndex++ ).placeComponents( cmpContent ); } }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/78f76553a1f11fcaa5ed317654b674aab583e177/AxisSheetImpl.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/axis/AxisSheetImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10322,
12,
14728,
982,
262,
202,
95,
202,
202,
6385,
509,
13473,
67,
9931,
273,
14804,
5370,
1304,
18,
291,
23,
40,
559,
12,
336,
7984,
12,
262,
262,
692,
1381,
294,
1059,
31,
202,
202,
9625,
1350,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
95,
1082,
202,
6313,
3744,
5118,
1350,
273,
394,
7145,
3744,
12,
13473,
67,
9931,
16,
629,
11272,
1082,
202,
7043,
1350,
18,
18396,
18006,
273,
24606,
67,
3118,
2226,
1360,
31,
1082,
202,
9625,
1350,
18,
542,
3744,
12,
5118,
1350,
11272,
1082,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
38,
18307,
11272,
1082,
202,
9625,
1350,
18,
542,
3744,
751,
12,
15551,
11272,
202,
202,
97,
202,
202,
2224,
14284,
6558,
273,
394,
5287,
12,
9411,
1350,
16,
348,
8588,
18,
9826,
11272,
202,
202,
95,
1082,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
11272,
1082,
202,
19016,
18,
18396,
11535,
273,
348,
8588,
18,
19835,
31,
1082,
202,
31885,
6558,
18,
542,
3744,
751,
12,
15551,
11272,
1082,
202,
31885,
6558,
18,
542,
5711,
12,
804,
11824,
3805,
18,
588,
27398,
5711,
12,
262,
11272,
1082,
202,
31885,
6558,
18,
542,
1528,
12,
4838,
18,
588,
780,
12,
315,
6558,
8229,
2828,
18,
2224,
18,
6558,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
2224,
14284,
6207,
273,
394,
5287,
12,
9411,
1350,
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,
10322,
12,
14728,
982,
262,
202,
95,
202,
202,
6385,
509,
13473,
67,
9931,
273,
14804,
5370,
1304,
18,
291,
23,
40,
559,
12,
336,
7984,
12,
262,
262,
692,
1381,
294,
1059,
31,
202,
202,
9625,
1350,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
95,
1082,
202,
6313,
3744,
5118,
1350,
273,
394,
7145,
3744,
12,
13473,
67,
9931,
16,
629,
11272,
1082,
202,
7043,
1350,
18,
18396,
18006,
273,
24606,
67,
3118,
2226,
1360,
31,
1082,
202,
9625,
1350,
18,
542,
3744,
12,
5118,
1350,
11272,
1082,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
38,
18307,
11272,
1082,
202,
9625,
2
] |
redoList.remove(operation);
|
private IStatus doRedo(IProgressMonitor monitor, IAdaptable info, IUndoableOperation operation) throws ExecutionException { IStatus status = getRedoApproval(operation, info); if (status.isOK()) { notifyAboutToRedo(operation); try { status = operation.redo(monitor, info); } catch (OperationCanceledException e) { status = Status.CANCEL_STATUS; } catch (ExecutionException e) { notifyNotOK(operation); if (DEBUG_OPERATION_HISTORY_UNEXPECTED) { System.out .print("OPERATIONHISTORY >>> ExecutionException while redoing "); //$NON-NLS-1$ System.out.print(operation); System.out.println(); } throw e; } catch (Exception e) { notifyNotOK(operation); if (DEBUG_OPERATION_HISTORY_UNEXPECTED) { System.out .print("OPERATIONHISTORY >>> Exception while redoing "); //$NON-NLS-1$ System.out.print(operation); System.out.println(); } throw new ExecutionException( "While redoing the operation, an exception occurred", e); //$NON-NLS-1$ } } // if successful, the operation is removed from the redo history and // placed back in the undo history. if (status.isOK()) { redoList.remove(operation); // Only add the operation to the undo stack if it can indeed be // undone. // This conservatism is added to support the integration of existing // frameworks (such as Refactoring) that produce undo and redo // behavior // on the fly and cannot guarantee that a successful redo means a // successful undo will be available. // See bug #84444 if (operation.canUndo() && checkUndoLimit(operation)) { undoList.add(operation); } // notify listeners must happen after history is updated notifyRedone(operation); } else { notifyNotOK(operation); } return status; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c4f49c37f5a7c1d2a57a4f931973796fb72f3c41/DefaultOperationHistory.java/clean/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/DefaultOperationHistory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1482,
741,
3715,
83,
12,
45,
5491,
7187,
6438,
16,
467,
13716,
429,
1123,
16,
1082,
202,
45,
31224,
429,
2988,
1674,
13,
1216,
20205,
288,
202,
202,
45,
1482,
1267,
273,
336,
3715,
83,
23461,
12,
7624,
16,
1123,
1769,
202,
202,
430,
261,
2327,
18,
291,
3141,
10756,
288,
1082,
202,
12336,
24813,
774,
3715,
83,
12,
7624,
1769,
1082,
202,
698,
288,
9506,
202,
2327,
273,
1674,
18,
1118,
83,
12,
10259,
16,
1123,
1769,
1082,
202,
97,
1044,
261,
2988,
23163,
503,
425,
13,
288,
9506,
202,
2327,
273,
2685,
18,
25268,
67,
8608,
31,
1082,
202,
97,
1044,
261,
14576,
425,
13,
288,
9506,
202,
12336,
1248,
3141,
12,
7624,
1769,
9506,
202,
430,
261,
9394,
67,
22040,
67,
31746,
67,
2124,
27409,
13,
288,
6862,
202,
3163,
18,
659,
6862,
1082,
202,
18,
1188,
2932,
22040,
31746,
4080,
20205,
1323,
24524,
310,
315,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
4405,
202,
3163,
18,
659,
18,
1188,
12,
7624,
1769,
6862,
202,
3163,
18,
659,
18,
8222,
5621,
9506,
202,
97,
9506,
202,
12849,
425,
31,
1082,
202,
97,
1044,
261,
503,
425,
13,
288,
9506,
202,
12336,
1248,
3141,
12,
7624,
1769,
9506,
202,
430,
261,
9394,
67,
22040,
67,
31746,
67,
2124,
27409,
13,
288,
6862,
202,
3163,
18,
659,
6862,
1082,
202,
18,
1188,
2932,
22040,
31746,
4080,
1185,
1323,
24524,
310,
315,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
4405,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1482,
741,
3715,
83,
12,
45,
5491,
7187,
6438,
16,
467,
13716,
429,
1123,
16,
1082,
202,
45,
31224,
429,
2988,
1674,
13,
1216,
20205,
288,
202,
202,
45,
1482,
1267,
273,
336,
3715,
83,
23461,
12,
7624,
16,
1123,
1769,
202,
202,
430,
261,
2327,
18,
291,
3141,
10756,
288,
1082,
202,
12336,
24813,
774,
3715,
83,
12,
7624,
1769,
1082,
202,
698,
288,
9506,
202,
2327,
273,
1674,
18,
1118,
83,
12,
10259,
16,
1123,
1769,
1082,
202,
97,
1044,
261,
2988,
23163,
503,
425,
13,
288,
9506,
202,
2327,
273,
2685,
18,
25268,
67,
8608,
31,
1082,
202,
97,
1044,
261,
14576,
425,
13,
288,
9506,
202,
12336,
1248,
3141,
12,
7624,
2
] |
|
following.push(FOLLOW_lhs_not_in_lhs_unary2280);
|
following.push(FOLLOW_lhs_not_in_lhs_unary2330);
|
public PatternDescr lhs_unary() throws RecognitionException { PatternDescr d; PatternDescr u = null; d = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:684:17: ( (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:684:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:684:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) int alt56=5; switch ( input.LA(1) ) { case 53: alt56=1; break; case 54: alt56=2; break; case 55: alt56=3; break; case ID: alt56=4; break; case 21: alt56=5; break; default: NoViableAltException nvae = new NoViableAltException("684:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | \'(\' u= lhs \')\' )", 56, 0, input); throw nvae; } switch (alt56) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:684:25: u= lhs_exist { following.push(FOLLOW_lhs_exist_in_lhs_unary2272); u=lhs_exist(); following.pop(); } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:685:25: u= lhs_not { following.push(FOLLOW_lhs_not_in_lhs_unary2280); u=lhs_not(); following.pop(); } break; case 3 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:686:25: u= lhs_eval { following.push(FOLLOW_lhs_eval_in_lhs_unary2288); u=lhs_eval(); following.pop(); } break; case 4 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:687:25: u= lhs_column { following.push(FOLLOW_lhs_column_in_lhs_unary2296); u=lhs_column(); following.pop(); } break; case 5 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:688:25: '(' u= lhs ')' { match(input,21,FOLLOW_21_in_lhs_unary2302); following.push(FOLLOW_lhs_in_lhs_unary2306); u=lhs(); following.pop(); match(input,23,FOLLOW_23_in_lhs_unary2308); } break; } d = u; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
318,
814,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
6830,
16198,
582,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
26,
5193,
30,
4033,
30,
261,
261,
89,
33,
8499,
67,
7398,
571,
582,
33,
8499,
67,
902,
571,
582,
33,
8499,
67,
8622,
571,
582,
33,
8499,
67,
2827,
571,
7321,
582,
33,
8499,
5777,
262,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
26,
5193,
30,
4033,
30,
261,
89,
33,
8499,
67,
7398,
571,
582,
33,
8499,
67,
902,
571,
582,
33,
8499,
67,
8622,
571,
582,
33,
8499,
67,
2827,
571,
7321,
582,
33,
8499,
5777,
262,
5411,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
26,
5193,
30,
4033,
30,
261,
89,
33,
8499,
67,
7398,
571,
582,
33,
8499,
67,
902,
571,
582,
33,
8499,
67,
8622,
571,
582,
33,
8499,
67,
2827,
571,
7321,
582,
33,
8499,
5777,
262,
5411,
509,
3770,
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,
6830,
16198,
8499,
67,
318,
814,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
6830,
16198,
582,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
26,
5193,
30,
4033,
30,
261,
261,
89,
33,
8499,
67,
7398,
571,
582,
33,
8499,
67,
902,
571,
582,
33,
8499,
67,
8622,
571,
582,
33,
8499,
67,
2827,
571,
7321,
582,
33,
8499,
5777,
262,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
2
] |
fTreeViewer.setSorter(ListUtil.PLUGIN_SORTER);
|
fTreeViewer.setComparator(ListUtil.PLUGIN_COMPARATOR);
|
protected StructuredViewer createViewer(Composite parent) { fTreeViewer = new TreeViewer(parent, SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL); fTreeViewer.setContentProvider(fContentProvider); final DependenciesLabelProvider labelProvider = new DependenciesLabelProvider( true); fTreeViewer.setLabelProvider(labelProvider); fTreeViewer.getControl().addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { labelProvider.dispose(); } }); fTreeViewer.setSorter(ListUtil.PLUGIN_SORTER); fTreeViewer.setAutoExpandLevel(2); return fTreeViewer; }
|
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/2c99ec563b6fa17cebdc7c80d292285e73ec04c2/DependenciesViewTreePage.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/views/dependencies/DependenciesViewTreePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
7362,
2862,
18415,
15193,
264,
12,
9400,
982,
13,
288,
202,
202,
74,
2471,
18415,
273,
394,
4902,
18415,
12,
2938,
16,
348,
8588,
18,
26588,
571,
348,
8588,
18,
58,
67,
2312,
14555,
9506,
202,
96,
348,
8588,
18,
44,
67,
2312,
14555,
1769,
202,
202,
74,
2471,
18415,
18,
542,
1350,
2249,
12,
74,
1350,
2249,
1769,
202,
202,
6385,
10532,
3209,
2224,
2249,
1433,
2249,
273,
394,
10532,
3209,
2224,
2249,
12,
9506,
202,
3767,
1769,
202,
202,
74,
2471,
18415,
18,
542,
2224,
2249,
12,
1925,
2249,
1769,
202,
202,
74,
2471,
18415,
18,
588,
3367,
7675,
1289,
1669,
4150,
2223,
12,
2704,
3035,
4150,
2223,
1435,
288,
1082,
202,
482,
918,
3604,
1669,
7423,
12,
1669,
4150,
1133,
425,
13,
288,
9506,
202,
1925,
2249,
18,
2251,
4150,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
74,
2471,
18415,
18,
542,
24952,
12,
682,
1304,
18,
19415,
67,
55,
916,
2560,
1769,
202,
202,
74,
2471,
18415,
18,
542,
4965,
12271,
2355,
12,
22,
1769,
202,
202,
2463,
284,
2471,
18415,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1117,
7362,
2862,
18415,
15193,
264,
12,
9400,
982,
13,
288,
202,
202,
74,
2471,
18415,
273,
394,
4902,
18415,
12,
2938,
16,
348,
8588,
18,
26588,
571,
348,
8588,
18,
58,
67,
2312,
14555,
9506,
202,
96,
348,
8588,
18,
44,
67,
2312,
14555,
1769,
202,
202,
74,
2471,
18415,
18,
542,
1350,
2249,
12,
74,
1350,
2249,
1769,
202,
202,
6385,
10532,
3209,
2224,
2249,
1433,
2249,
273,
394,
10532,
3209,
2224,
2249,
12,
9506,
202,
3767,
1769,
202,
202,
74,
2471,
18415,
18,
542,
2224,
2249,
12,
1925,
2249,
1769,
202,
202,
74,
2471,
18415,
18,
588,
3367,
7675,
1289,
1669,
4150,
2223,
12,
2704,
3035,
4150,
2223,
1435,
288,
1082,
202,
482,
918,
2
] |
true, false, Deadline.NEVER);
|
true, Deadline.NEVER);
|
private void crawlContent() { CrawlSpec spec = new CrawlSpec(sau.SIMULATED_URL_START, null); Crawler crawler = new GoslingCrawlerImpl(); crawler.doCrawl(sau, spec.getStartingUrls(), true, false, Deadline.NEVER); }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/9dd14be2537b30187a449016818b47822a235ac1/FuncSimulatedContent.java/clean/test/src/org/lockss/plugin/simulated/FuncSimulatedContent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
23182,
1350,
1435,
288,
565,
385,
15161,
1990,
857,
273,
394,
385,
15161,
1990,
12,
87,
8377,
18,
2320,
49,
1506,
6344,
67,
1785,
67,
7570,
16,
446,
1769,
565,
27433,
18588,
273,
394,
611,
538,
2456,
21342,
2828,
5621,
565,
18588,
18,
2896,
39,
15161,
12,
87,
8377,
16,
857,
18,
588,
11715,
10509,
9334,
1082,
565,
638,
16,
23967,
1369,
18,
5407,
2204,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
3238,
918,
23182,
1350,
1435,
288,
565,
385,
15161,
1990,
857,
273,
394,
385,
15161,
1990,
12,
87,
8377,
18,
2320,
49,
1506,
6344,
67,
1785,
67,
7570,
16,
446,
1769,
565,
27433,
18588,
273,
394,
611,
538,
2456,
21342,
2828,
5621,
565,
18588,
18,
2896,
39,
15161,
12,
87,
8377,
16,
857,
18,
588,
11715,
10509,
9334,
1082,
565,
638,
16,
23967,
1369,
18,
5407,
2204,
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
] |
public void mTokens() throws RecognitionException { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:10: ( T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24 | T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | MISC | WS | EOL | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | MULTI_LINE_COMMENT ) int alt15=53; alt15 = dfa15.predict(input); if (failed) return ; switch (alt15) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:10: T15 { mT15(); if (failed) return ; } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:14: T16 { mT16(); if (failed) return ; } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:18: T17 { mT17(); if (failed) return ; } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:22: T18 { mT18(); if (failed) return ; } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:26: T19 { mT19(); if (failed) return ; } break; case 6 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:30: T20 { mT20(); if (failed) return ; } break; case 7 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:34: T21 { mT21(); if (failed) return ; } break; case 8 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:38: T22 { mT22(); if (failed) return ; } break; case 9 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:42: T23 { mT23(); if (failed) return ; } break; case 10 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:46: T24 { mT24(); if (failed) return ; } break; case 11 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:50: T25 { mT25(); if (failed) return ; } break; case 12 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:54: T26 { mT26(); if (failed) return ; } break; case 13 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:58: T27 { mT27(); if (failed) return ; } break; case 14 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:62: T28 { mT28(); if (failed) return ; } break; case 15 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:66: T29 { mT29(); if (failed) return ; } break; case 16 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:70: T30 { mT30(); if (failed) return ; } break; case 17 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:74: T31 { mT31(); if (failed) return ; } break; case 18 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:78: T32 { mT32(); if (failed) return ; } break; case 19 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:82: T33 { mT33(); if (failed) return ; } break; case 20 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:86: T34 { mT34(); if (failed) return ; } break; case 21 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:90: T35 { mT35(); if (failed) return ; } break; case 22 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:94: T36 { mT36(); if (failed) return ; } break; case 23 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:98: T37 { mT37(); if (failed) return ; } break; case 24 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:102: T38 { mT38(); if (failed) return ; } break; case 25 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:106: T39 { mT39(); if (failed) return ; } break; case 26 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:110: T40 { mT40(); if (failed) return ; } break; case 27 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:114: T41 { mT41(); if (failed) return ; } break; case 28 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:118: T42 { mT42(); if (failed) return ; } break; case 29 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:122: T43 { mT43(); if (failed) return ; } break; case 30 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:126: T44 { mT44(); if (failed) return ; } break; case 31 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:130: T45 { mT45(); if (failed) return ; } break; case 32 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:134: T46 { mT46(); if (failed) return ; } break; case 33 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:138: T47 { mT47(); if (failed) return ; } break; case 34 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:142: T48 { mT48(); if (failed) return ; } break; case 35 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:146: T49 { mT49(); if (failed) return ; } break; case 36 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:150: T50 { mT50(); if (failed) return ; } break; case 37 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:154: T51 { mT51(); if (failed) return ; } break; case 38 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:158: T52 { mT52(); if (failed) return ; } break; case 39 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:162: T53 { mT53(); if (failed) return ; } break; case 40 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:166: T54 { mT54(); if (failed) return ; } break; case 41 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:170: T55 { mT55(); if (failed) return ; } break; case 42 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:174: T56 { mT56(); if (failed) return ; } break; case 43 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:178: MISC { mMISC(); if (failed) return ; } break; case 44 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:183: WS { mWS(); if (failed) return ; } break; case 45 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:186: EOL { mEOL(); if (failed) return ; } break; case 46 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:190: INT { mINT(); if (failed) return ; } break; case 47 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:194: FLOAT { mFLOAT(); if (failed) return ; } break; case 48 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:200: STRING { mSTRING(); if (failed) return ; } break; case 49 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:207: BOOL { mBOOL(); if (failed) return ; } break; case 50 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:212: ID { mID(); if (failed) return ; } break; case 51 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:215: SH_STYLE_SINGLE_LINE_COMMENT { mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 52 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:244: C_STYLE_SINGLE_LINE_COMMENT { mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 53 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:272: MULTI_LINE_COMMENT { mMULTI_LINE_COMMENT(); if (failed) return ; } break; } }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/bf3305a89ef5e916acbab744c38aaaec83bf67ff/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
5157,
1435,
1216,
9539,
288,
3639,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
21,
30,
2163,
30,
261,
399,
3600,
571,
399,
2313,
571,
399,
4033,
571,
399,
2643,
571,
399,
3657,
571,
399,
3462,
571,
399,
5340,
571,
399,
3787,
571,
399,
4366,
571,
399,
3247,
571,
399,
2947,
571,
399,
5558,
571,
399,
5324,
571,
399,
6030,
571,
399,
5540,
571,
399,
5082,
571,
399,
6938,
571,
399,
1578,
571,
399,
3707,
571,
399,
5026,
571,
399,
4763,
571,
399,
5718,
571,
399,
6418,
571,
399,
7414,
571,
399,
5520,
571,
399,
7132,
571,
399,
9803,
571,
399,
9452,
571,
399,
8942,
571,
399,
6334,
571,
399,
7950,
571,
399,
8749,
571,
399,
9462,
571,
399,
8875,
571,
399,
7616,
571,
399,
3361,
571,
399,
10593,
571,
399,
9401,
571,
399,
8643,
571,
399,
6564,
571,
399,
2539,
571,
399,
4313,
571,
20806,
2312,
571,
7649,
571,
19995,
571,
6137,
571,
15483,
571,
9469,
571,
9784,
1741,
571,
1599,
571,
6122,
67,
15066,
67,
20184,
67,
5997,
67,
12200,
571,
385,
67,
15066,
67,
20184,
67,
5997,
67,
12200,
571,
27125,
67,
5997,
67,
12200,
262,
3639,
509,
3770,
3600,
33,
8643,
31,
3639,
3770,
3600,
273,
23074,
3600,
18,
14491,
12,
2630,
1769,
309,
261,
7307,
13,
327,
274,
3639,
1620,
261,
2390,
3600,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
5157,
1435,
1216,
9539,
288,
3639,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
21,
30,
2163,
30,
261,
399,
3600,
571,
399,
2313,
571,
399,
4033,
571,
399,
2643,
571,
399,
3657,
571,
399,
3462,
571,
399,
5340,
571,
399,
3787,
571,
399,
4366,
571,
399,
3247,
571,
399,
2947,
571,
399,
5558,
571,
399,
5324,
571,
399,
6030,
571,
399,
5540,
571,
399,
5082,
571,
399,
6938,
571,
399,
1578,
571,
399,
3707,
571,
399,
5026,
571,
399,
4763,
571,
399,
5718,
571,
399,
6418,
571,
399,
7414,
2
] |
||
Assert.assert(inputCount < 3);
|
Assert._assert(inputCount < 3);
|
public void write(int oneByte) throws IOException { input[inputCount++] = (byte)(0xff & oneByte); if(inputCount==3) { outputOneAtom(); if(doLineBreaks) { if(charsOnLine==charsPerLine) { ((PrintStream)out).println(); charsOnLine=0; } Assert.assert(charsOnLine < charsPerLine); } } Assert.assert(inputCount < 3); } /** * This flushes the stream and closes the next stream downstream. */ public void close() throws IOException { flush(); out.close(); } /** * Calling this will put the ending padding on the base64 stream, * so don't call it until you have no data left. The class does no * unnecessary buffering, so you probably shouldn't call it at all. */ public void flush() throws IOException { if(inputCount > 0) { outputOneAtom(); }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/d161d0be5ee861e8d803fa3948f9312489bb47b8/Base64OutputStream.java/clean/security/jss/org/mozilla/jss/util/Base64OutputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1045,
12,
474,
1245,
3216,
13,
1216,
1860,
288,
202,
202,
2630,
63,
2630,
1380,
9904,
65,
273,
261,
7229,
21433,
20,
5297,
473,
1245,
3216,
1769,
202,
202,
430,
12,
2630,
1380,
631,
23,
13,
288,
1082,
202,
2844,
3335,
3641,
5621,
1082,
202,
430,
12,
2896,
1670,
26806,
13,
288,
9506,
202,
430,
12,
7549,
1398,
1670,
631,
7549,
2173,
1670,
13,
288,
6862,
202,
12443,
5108,
1228,
13,
659,
2934,
8222,
5621,
6862,
202,
7549,
1398,
1670,
33,
20,
31,
9506,
202,
97,
9506,
202,
8213,
18,
11231,
12,
7549,
1398,
1670,
411,
5230,
2173,
1670,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
8213,
18,
11231,
12,
2630,
1380,
411,
890,
1769,
202,
97,
202,
26873,
202,
380,
1220,
3663,
281,
326,
1407,
471,
13445,
326,
1024,
1407,
18186,
18,
202,
1195,
202,
482,
918,
1746,
1435,
1216,
1860,
288,
202,
202,
11330,
5621,
202,
202,
659,
18,
4412,
5621,
202,
97,
202,
26873,
202,
380,
21020,
333,
903,
1378,
326,
11463,
4992,
603,
326,
1026,
1105,
1407,
16,
202,
380,
1427,
2727,
1404,
745,
518,
3180,
1846,
1240,
1158,
501,
2002,
18,
225,
1021,
667,
1552,
1158,
202,
380,
19908,
25056,
16,
1427,
1846,
8656,
12044,
1404,
745,
518,
622,
777,
18,
202,
1195,
202,
482,
918,
3663,
1435,
1216,
1860,
288,
202,
202,
430,
12,
2630,
1380,
405,
374,
13,
288,
1082,
202,
2844,
3335,
3641,
5621,
202,
202,
97,
2,
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,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1045,
12,
474,
1245,
3216,
13,
1216,
1860,
288,
202,
202,
2630,
63,
2630,
1380,
9904,
65,
273,
261,
7229,
21433,
20,
5297,
473,
1245,
3216,
1769,
202,
202,
430,
12,
2630,
1380,
631,
23,
13,
288,
1082,
202,
2844,
3335,
3641,
5621,
1082,
202,
430,
12,
2896,
1670,
26806,
13,
288,
9506,
202,
430,
12,
7549,
1398,
1670,
631,
7549,
2173,
1670,
13,
288,
6862,
202,
12443,
5108,
1228,
13,
659,
2934,
8222,
5621,
6862,
202,
7549,
1398,
1670,
33,
20,
31,
9506,
202,
97,
9506,
202,
8213,
18,
11231,
12,
7549,
1398,
1670,
411,
5230,
2173,
1670,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
8213,
18,
11231,
12,
2630,
1380,
411,
2
] |
private static void paintInline( Context c, InlineBox inline, int lx, int ly, LineBox line ) { if ( InlineLayout.isReplaced( inline.node ) ) { //u.p("painting a replaced block: " + inline); c.getGraphics().translate( line.x, line.y + ( line.baseline - inline.height ) ); Renderer rend = LayoutFactory.getRenderer( inline.node ); //u.p("inline node = " + inline.node); //u.p("got the layout: " + layout); rend.paint( c, inline ); c.getGraphics().translate( -line.x, -( line.y + ( line.baseline - inline.height ) ) ); if ( c.debugDrawInlineBoxes() ) { GraphicsUtil.draw( c.getGraphics(), new Rectangle( lx + inline.x + 1, ly + inline.y + 1 - inline.height, inline.width - 2, inline.height - 2 ), Color.green ); } return; } if ( InlineLayout.isFloatedBlock( inline.node, c ) ) { //u.p("painting a floated block: " + inline); //u.p("line = " + line); Rectangle oe = c.getExtents(); //inline.x = 0; //u.p("extents = " + c.getExtents()); c.setExtents( new Rectangle( oe.x, 0, oe.width, oe.height ) ); int xoff = line.x + inline.x; int yoff = line.y + ( line.baseline - inline.height ) + inline.y; c.getGraphics().translate( xoff, yoff ); Renderer rend = LayoutFactory.getRenderer( inline.node ); rend.paint( c, inline.sub_block ); c.getGraphics().translate( -xoff, -yoff ); c.setExtents( oe ); return; } if ( inline.is_break ) { return; } Graphics g = c.getGraphics(); // handle relative if ( inline.relative ) { g.translate( inline.left, inline.top ); } c.updateSelection( inline ); // calculate the x and y relative to the baseline of the line (ly) and the // left edge of the line (lx) //String text = inline.text.substring(inline.start_index,inline.end_index); String text = inline.getSubstring(); int iy = ly + inline.y; int ix = lx + inline.x; // draw a selection rectangle paintSelection( c, inline, lx, ly ); //adjust font for current settings Font oldfont = c.getGraphics().getFont(); c.getGraphics().setFont( inline.getFont() ); Color oldcolor = c.getGraphics().getColor(); c.getGraphics().setColor( inline.color ); //draw the line //u.p("drawing: " + text + " at " + x + "," + iy); if ( text != null && text.length() > 0 ) { c.getGraphics().drawString( text, ix, iy ); } c.getGraphics().setColor( oldcolor ); //draw any text decoration Font cur_font = c.getGraphics().getFont(); LineMetrics lm = cur_font.getLineMetrics( text, ( (Graphics2D)c.getGraphics() ).getFontRenderContext() ); if ( inline.underline ) { float down = lm.getUnderlineOffset(); float thick = lm.getUnderlineThickness(); g.fillRect( ix, iy + (int)down, g.getFontMetrics().stringWidth( text ), (int)thick ); } if ( inline.strikethrough ) { float down = lm.getStrikethroughOffset(); float thick = lm.getStrikethroughThickness(); g.fillRect( ix, iy + (int)down, g.getFontMetrics().stringWidth( text ), (int)thick ); } if ( inline.overline ) { float down = lm.getAscent(); float thick = lm.getUnderlineThickness(); g.fillRect( ix, iy - (int)down, g.getFontMetrics().stringWidth( text ), (int)thick ); } if ( c.debugDrawInlineBoxes() ) { GraphicsUtil.draw( c.getGraphics(), new Rectangle( lx + inline.x + 1, ly + inline.y + 1 - inline.height, inline.width - 2, inline.height - 2 ), Color.green ); } // restore the old font c.getGraphics().setFont( oldfont ); // handle relative if ( inline.relative ) { g.translate( -inline.left, -inline.top ); } }
|
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/dab5f0ea0f21b11bc9059602a912aff22532b469/InlinePainter.java/clean/src/java/org/xhtmlrenderer/render/InlinePainter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
6015,
270,
395,
2126,
6459,
84,
1598,
10870,
12,
1042,
71,
16,
10870,
3514,
10047,
16,
474,
80,
92,
16,
474,
715,
16,
1670,
3514,
1369,
15329,
430,
12,
10870,
3744,
18,
291,
5729,
72,
12,
10047,
18,
2159,
3719,
95,
759,
89,
18,
84,
2932,
84,
1598,
310,
834,
964,
1966,
739,
2773,
15,
10047,
1769,
71,
18,
588,
17558,
7675,
13929,
12,
1369,
18,
92,
16,
1369,
18,
93,
15,
12,
1369,
18,
27818,
17,
10047,
18,
4210,
10019,
6747,
20262,
33,
3744,
1733,
18,
588,
6747,
12,
10047,
18,
2159,
1769,
759,
89,
18,
84,
2932,
267,
7511,
20680,
1546,
15,
10047,
18,
2159,
1769,
759,
89,
18,
84,
2932,
13212,
451,
292,
2012,
2773,
15,
6741,
1769,
20262,
18,
84,
1598,
12,
71,
16,
10047,
1769,
71,
18,
588,
17558,
7675,
13929,
19236,
1369,
18,
92,
16,
17,
12,
1369,
18,
93,
15,
12,
1369,
18,
27818,
17,
10047,
18,
4210,
3719,
1769,
430,
12,
71,
18,
4148,
6493,
10870,
29521,
10756,
95,
17558,
1304,
18,
9446,
12,
71,
18,
588,
17558,
9334,
2704,
19463,
12,
80,
92,
15,
10047,
18,
92,
15,
21,
16,
715,
15,
10047,
18,
93,
15,
21,
17,
10047,
18,
4210,
16,
10047,
18,
2819,
17,
22,
16,
10047,
18,
4210,
17,
22,
3631,
2957,
18,
11571,
1769,
97,
2463,
31,
97,
430,
12,
10870,
3744,
18,
291,
42,
383,
690,
1768,
12,
10047,
18,
2159,
16,
71,
3719,
95,
759,
89,
18,
84,
2932,
84,
1598,
310,
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,
6015,
270,
395,
2126,
6459,
84,
1598,
10870,
12,
1042,
71,
16,
10870,
3514,
10047,
16,
474,
80,
92,
16,
474,
715,
16,
1670,
3514,
1369,
15329,
430,
12,
10870,
3744,
18,
291,
5729,
72,
12,
10047,
18,
2159,
3719,
95,
759,
89,
18,
84,
2932,
84,
1598,
310,
834,
964,
1966,
739,
2773,
15,
10047,
1769,
71,
18,
588,
17558,
7675,
13929,
12,
1369,
18,
92,
16,
1369,
18,
93,
15,
12,
1369,
18,
27818,
17,
10047,
18,
4210,
10019,
6747,
20262,
33,
3744,
1733,
18,
588,
6747,
12,
10047,
18,
2159,
1769,
759,
89,
18,
84,
2932,
267,
7511,
20680,
1546,
15,
10047,
18,
2159,
1769,
759,
89,
18,
84,
2932,
13212,
451,
292,
2012,
2773,
15,
2
] |
||
return newMove( oldName, oldName.getSuffix( 1 ), newRdn, deleteOldRn );
|
return newMove( oldName, ( LdapDN ) oldName.getSuffix( 1 ), newRdn, deleteOldRn );
|
public Operation newModifyRn( Name oldName, String newRdn, boolean deleteOldRn ) throws NamingException { return newMove( oldName, oldName.getSuffix( 1 ), newRdn, deleteOldRn ); }
|
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/cfc1e0db255153cb8ed18cd1e735fa4815ad666b/OperationFactory.java/clean/mitosis/src/main/java/org/apache/directory/mitosis/operation/OperationFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4189,
394,
11047,
54,
82,
12,
1770,
22916,
16,
514,
394,
54,
5176,
16,
1250,
1430,
7617,
54,
82,
262,
1216,
26890,
565,
288,
3639,
327,
394,
7607,
12,
22916,
16,
261,
18053,
8609,
262,
22916,
18,
588,
5791,
12,
404,
262,
16,
394,
54,
5176,
16,
1430,
7617,
54,
82,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4189,
394,
11047,
54,
82,
12,
1770,
22916,
16,
514,
394,
54,
5176,
16,
1250,
1430,
7617,
54,
82,
262,
1216,
26890,
565,
288,
3639,
327,
394,
7607,
12,
22916,
16,
261,
18053,
8609,
262,
22916,
18,
588,
5791,
12,
404,
262,
16,
394,
54,
5176,
16,
1430,
7617,
54,
82,
11272,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 (getTreeNode().getParent() == null || CougaarThread.Debug) System.err.println("### " +this+ " thread count is " + runningThreadCount);
|
System.out.println("###" +this+ " thread count is " + runningThreadCount);
|
synchronized void decrementRunCount(Scheduler consumer) { if (CougaarThread.Debug) System.err.println("### decrementing " +this+ " on behalf of " +consumer); --runningThreadCount; if (runningThreadCount < 0) { if (getTreeNode().getParent() == null || CougaarThread.Debug) System.err.println("### " +this+ " thread count is " + runningThreadCount); } listenerProxy.notifyRightReturned(consumer); }
|
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/25cc9f532257908fbae6836d7cb86b9699a270f2/Scheduler.java/clean/core/src/org/cougaar/core/thread/Scheduler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
918,
15267,
1997,
1380,
12,
11870,
4765,
13,
288,
202,
430,
261,
4249,
637,
69,
297,
3830,
18,
2829,
13,
202,
565,
2332,
18,
370,
18,
8222,
2932,
13151,
15267,
310,
315,
397,
2211,
15,
315,
603,
12433,
6186,
434,
315,
9506,
4202,
397,
13230,
1769,
202,
413,
8704,
3830,
1380,
31,
202,
430,
261,
8704,
3830,
1380,
411,
374,
13,
288,
202,
565,
309,
261,
588,
12513,
7675,
588,
3054,
1435,
422,
446,
747,
7695,
637,
69,
297,
3830,
18,
2829,
13,
202,
202,
3163,
18,
370,
18,
8222,
2932,
13151,
315,
397,
2211,
15,
4405,
282,
315,
2650,
1056,
353,
315,
397,
6862,
282,
3549,
3830,
1380,
1769,
202,
97,
202,
12757,
3886,
18,
12336,
4726,
22360,
12,
13230,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
918,
15267,
1997,
1380,
12,
11870,
4765,
13,
288,
202,
430,
261,
4249,
637,
69,
297,
3830,
18,
2829,
13,
202,
565,
2332,
18,
370,
18,
8222,
2932,
13151,
15267,
310,
315,
397,
2211,
15,
315,
603,
12433,
6186,
434,
315,
9506,
4202,
397,
13230,
1769,
202,
413,
8704,
3830,
1380,
31,
202,
430,
261,
8704,
3830,
1380,
411,
374,
13,
288,
202,
565,
309,
261,
588,
12513,
7675,
588,
3054,
1435,
422,
446,
747,
7695,
637,
69,
297,
3830,
18,
2829,
13,
202,
202,
3163,
18,
370,
18,
8222,
2932,
13151,
315,
397,
2211,
15,
4405,
282,
315,
2650,
1056,
353,
315,
397,
6862,
282,
3549,
3830,
1380,
1769,
202,
97,
202,
12757,
3886,
18,
12336,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.