rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
return Collections.EMPTY_LIST; | return EMPTY_LIST; | public List childNodes() { return Collections.EMPTY_LIST; } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/b1293eda8454686e846e2a9837b348e2983bb423/DVarNode.java/clean/src/org/jruby/ast/DVarNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
10582,
1435,
288,
3639,
327,
8984,
67,
7085,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
10582,
1435,
288,
3639,
327,
8984,
67,
7085,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (pi == null) { pi = new ParamInfo(-1); pi.name = '@'+ci.realName; insertRow[colIndex] = pi; } | protected void setColValue(int colIndex, int jdbcType, Object value, int length) throws SQLException { super.setColValue(colIndex, jdbcType, value, length); if (!onInsertRow && currentRow == null) { throw new SQLException(Messages.get("error.resultset.norow"), "24000"); } colIndex--; ParamInfo pi; ColInfo ci = columns[colIndex]; if (onInsertRow) { pi = insertRow[colIndex]; if (pi == null) { pi = new ParamInfo(-1); pi.name = '@'+ci.realName; insertRow[colIndex] = pi; } } else { if (updateRow == null) { updateRow = new ParamInfo[columnCount]; } pi = updateRow[colIndex]; if (pi == null) { pi = new ParamInfo(-1); pi.name = '@'+ci.realName; updateRow[colIndex] = pi; } } if (value == null) { pi.value = null; pi.length = 0; pi.jdbcType = ci.jdbcType; pi.isSet = true; } else { pi.value = value; pi.length = length; pi.isSet = true; pi.jdbcType = jdbcType; pi.isUnicode = ci.sqlType.equals("ntext") || ci.sqlType.equals("nchar") || ci.sqlType.equals("nvarchar"); } } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/cd3de2773354449cdea7612343d8cf539c4e6cf4/MSCursorResultSet.java/clean/src/main/net/sourceforge/jtds/jdbc/MSCursorResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
444,
914,
620,
12,
474,
25893,
16,
509,
16579,
559,
16,
1033,
460,
16,
509,
769,
13,
565,
1216,
6483,
288,
3639,
2240,
18,
542,
914,
620,
12,
1293,
1016,
16,
16579,
559,
16,
460,
16,
769,
1769,
3639,
309,
16051,
265,
4600,
1999,
597,
31185,
422,
446,
13,
288,
5411,
604,
394,
6483,
12,
5058,
18,
588,
2932,
1636,
18,
2088,
542,
18,
29561,
543,
6,
3631,
315,
3247,
3784,
8863,
3639,
289,
3639,
25893,
413,
31,
3639,
3014,
966,
4790,
31,
3639,
1558,
966,
9039,
273,
2168,
63,
1293,
1016,
15533,
3639,
309,
261,
265,
4600,
1999,
13,
288,
5411,
4790,
273,
2243,
1999,
63,
1293,
1016,
15533,
5411,
309,
261,
7259,
422,
446,
13,
288,
7734,
4790,
273,
394,
3014,
966,
19236,
21,
1769,
7734,
4790,
18,
529,
273,
9175,
15,
8450,
18,
7688,
461,
31,
7734,
2243,
1999,
63,
1293,
1016,
65,
273,
4790,
31,
5411,
289,
3639,
289,
469,
288,
5411,
309,
261,
2725,
1999,
422,
446,
13,
288,
7734,
1089,
1999,
273,
394,
3014,
966,
63,
2827,
1380,
15533,
5411,
289,
5411,
4790,
273,
1089,
1999,
63,
1293,
1016,
15533,
5411,
309,
261,
7259,
422,
446,
13,
288,
7734,
4790,
273,
394,
3014,
966,
19236,
21,
1769,
7734,
4790,
18,
529,
273,
9175,
15,
8450,
18,
7688,
461,
31,
7734,
1089,
1999,
63,
1293,
1016,
65,
273,
4790,
31,
5411,
289,
3639,
289,
3639,
309,
261,
1132,
422,
446,
13,
288,
5411,
4790,
18,
1132,
565,
273,
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,
4750,
918,
444,
914,
620,
12,
474,
25893,
16,
509,
16579,
559,
16,
1033,
460,
16,
509,
769,
13,
565,
1216,
6483,
288,
3639,
2240,
18,
542,
914,
620,
12,
1293,
1016,
16,
16579,
559,
16,
460,
16,
769,
1769,
3639,
309,
16051,
265,
4600,
1999,
597,
31185,
422,
446,
13,
288,
5411,
604,
394,
6483,
12,
5058,
18,
588,
2932,
1636,
18,
2088,
542,
18,
29561,
543,
6,
3631,
315,
3247,
3784,
8863,
3639,
289,
3639,
25893,
413,
31,
3639,
3014,
966,
4790,
31,
3639,
1558,
966,
9039,
273,
2168,
63,
1293,
1016,
15533,
3639,
309,
261,
265,
4600,
1999,
13,
288,
5411,
4790,
273,
2243,
1999,
63,
1293,
1016,
15533,
5411,
309,
261,
7259,
422,
446,
2
] |
|
try { wr_.acquire(); try { c_.clear(); } finally { wr_.release(); } | try { wr_.acquire(); try { c_.clear(); } finally { wr_.release(); } } catch (InterruptedException ex) { Thread.currentThread().interrupt(); throw new UnsupportedOperationException(); } | public void clear() { try { wr_.acquire(); try { c_.clear(); } finally { wr_.release(); } } catch (InterruptedException ex) { Thread.currentThread().interrupt(); throw new UnsupportedOperationException(); } } | 4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/a6a25004fd5e24a1bc5f053aa539d01dc2553fbf/SyncCollection.java/buggy/src/java/org/logicalcobwebs/concurrent/SyncCollection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2424,
1435,
288,
565,
775,
288,
1377,
12408,
27799,
1077,
1039,
5621,
1377,
775,
288,
3639,
276,
27799,
8507,
5621,
1377,
289,
1377,
3095,
288,
3639,
12408,
27799,
9340,
5621,
1377,
289,
565,
289,
565,
1044,
261,
24485,
503,
431,
13,
288,
1377,
4884,
18,
2972,
3830,
7675,
31847,
5621,
1377,
604,
394,
13172,
5621,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2424,
1435,
288,
565,
775,
288,
1377,
12408,
27799,
1077,
1039,
5621,
1377,
775,
288,
3639,
276,
27799,
8507,
5621,
1377,
289,
1377,
3095,
288,
3639,
12408,
27799,
9340,
5621,
1377,
289,
565,
289,
565,
1044,
261,
24485,
503,
431,
13,
288,
1377,
4884,
18,
2972,
3830,
7675,
31847,
5621,
1377,
604,
394,
13172,
5621,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
PropertyType type = MetaDataDictionary.getInstance( ).getPropertyType( prop.getTypeCode( ) ); Object value = getProperty( module, propName ); return ( (BooleanPropertyType) type ).toBoolean( module, value ); | Object value = getProperty( module, prop ); return prop.getBooleanValue( module, value ); | public boolean getBooleanProperty( Module module, String propName ) { ElementPropertyDefn prop = getPropertyDefn( propName ); if ( prop == null ) return false; PropertyType type = MetaDataDictionary.getInstance( ).getPropertyType( prop.getTypeCode( ) ); Object value = getProperty( module, propName ); return ( (BooleanPropertyType) type ).toBoolean( module, value ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e7114ad5bbd4556bfe90ad8fef8d73f7007b3bbf/DesignElement.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
12835,
1396,
12,
5924,
1605,
16,
514,
9994,
262,
202,
95,
202,
202,
1046,
1396,
3262,
82,
2270,
273,
3911,
3262,
82,
12,
9994,
11272,
202,
202,
430,
261,
2270,
422,
446,
262,
1082,
202,
2463,
629,
31,
202,
202,
22802,
618,
273,
27512,
10905,
18,
588,
1442,
12,
262,
18,
588,
22802,
12,
9506,
202,
5986,
18,
588,
15460,
12,
262,
11272,
202,
202,
921,
460,
273,
3911,
12,
1605,
16,
9994,
11272,
202,
202,
2463,
261,
261,
5507,
22802,
13,
618,
262,
18,
869,
5507,
12,
1605,
16,
460,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
12835,
1396,
12,
5924,
1605,
16,
514,
9994,
262,
202,
95,
202,
202,
1046,
1396,
3262,
82,
2270,
273,
3911,
3262,
82,
12,
9994,
11272,
202,
202,
430,
261,
2270,
422,
446,
262,
1082,
202,
2463,
629,
31,
202,
202,
22802,
618,
273,
27512,
10905,
18,
588,
1442,
12,
262,
18,
588,
22802,
12,
9506,
202,
5986,
18,
588,
15460,
12,
262,
11272,
202,
202,
921,
460,
273,
3911,
12,
1605,
16,
9994,
11272,
202,
202,
2463,
261,
261,
5507,
22802,
13,
618,
262,
18,
869,
5507,
12,
1605,
16,
460,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
EclipseSourceDir[] sourceDirs, ArtifactRepository localRepository ) | EclipseSourceDir[] sourceDirs, ArtifactRepository localRepository, ArtifactResolver artifactResolver, List remoteArtifactRepositories ) | protected void write( File basedir, MavenProject project, List referencedReactorArtifacts, EclipseSourceDir[] sourceDirs, ArtifactRepository localRepository ) throws MojoExecutionException { FileWriter w; try { w = new FileWriter( new File( basedir, ".wtpmodules" ) ); //$NON-NLS-1$ } catch ( IOException ex ) { throw new MojoExecutionException( Messages.getString( "EclipsePlugin.erroropeningfile" ), ex ); //$NON-NLS-1$ } XMLWriter writer = new PrettyPrintXMLWriter( w ); writer.startElement( "project-modules" ); //$NON-NLS-1$ writer.addAttribute( "id", "moduleCoreId" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.startElement( "wb-module" ); //$NON-NLS-1$ writer.addAttribute( "deploy-name", project.getArtifactId() ); //$NON-NLS-1$ writer.startElement( "module-type" ); //$NON-NLS-1$ if ( "war".equals( project.getPackaging() ) ) //$NON-NLS-1$ { // <module-type module-type-id="jst.web"> // <version>2.4</version> // <property name="context-root" value="magnolia"> // </property> // </module-type> writer.addAttribute( "module-type-id", "jst.web" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.startElement( "version" ); //$NON-NLS-1$ // defaults to 2.4, try to detect real version from dependencies String servletVersion = "2.4"; //$NON-NLS-1$ for ( Iterator it = project.getArtifacts().iterator(); it.hasNext(); ) { Artifact artifact = (Artifact) it.next(); if ( "servletapi".equals( artifact.getArtifactId() ) //$NON-NLS-1$ || "geronimo-spec-servlet".equals( artifact.getArtifactId() ) ) //$NON-NLS-1$ { servletVersion = StringUtils.substring( artifact.getVersion(), 0, 3 ); } } writer.writeText( servletVersion ); writer.endElement(); writer.startElement( "property" ); //$NON-NLS-1$ writer.addAttribute( "name", "context-root" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.addAttribute( "value", project.getArtifactId() ); //$NON-NLS-1$ writer.endElement(); } else if ( "ejb".equals( project.getPackaging() ) ) //$NON-NLS-1$ { // <module-type module-type-id="jst.ejb"> // <version>2.1</version> // <property name="java-output-path" value="/bin/"/> // </module-type> writer.addAttribute( "module-type-id", "jst.ejb" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.startElement( "version" ); //$NON-NLS-1$ writer.writeText( "2.1" ); //$NON-NLS-1$ // @todo this is the default, find real ejb version from dependencies writer.endElement(); writer.startElement( "property" ); //$NON-NLS-1$ writer.addAttribute( "name", "java-output-path" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.addAttribute( "value", "/" + //$NON-NLS-1$ //$NON-NLS-2$ EclipseUtils.toRelativeAndFixSeparator( project.getBasedir(), project.getBuild().getOutputDirectory(), false ) ); writer.endElement(); } else { // <module-type module-type-id="jst.utility"> // <property name="java-output-path" value="/bin/"/> // </module-type> writer.addAttribute( "module-type-id", "jst.utility" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.startElement( "property" ); //$NON-NLS-1$ writer.addAttribute( "name", "java-output-path" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.addAttribute( "value", "/" + //$NON-NLS-1$ //$NON-NLS-2$ EclipseUtils.toRelativeAndFixSeparator( project.getBasedir(), project.getBuild().getOutputDirectory(), false ) ); writer.endElement(); } writer.endElement(); // module-type // source and resource paths. // deploy-path is "/" for utility and ejb projects, "/WEB-INF/classes" for webapps String target = "/"; //$NON-NLS-1$ if ( "war".equals( project.getPackaging() ) ) //$NON-NLS-1$ { writeWarSpecificResources( writer, basedir, project, referencedReactorArtifacts, localRepository ); target = "/WEB-INF/classes"; //$NON-NLS-1$ } for ( int j = 0; j < sourceDirs.length; j++ ) { EclipseSourceDir dir = sourceDirs[j]; // test src/resources are not added to wtpmodules if ( !dir.isTest() ) { // <wb-resource deploy-path="/" source-path="/src/java" /> writer.startElement( "wb-resource" ); //$NON-NLS-1$ writer.addAttribute( "deploy-path", target ); //$NON-NLS-1$ writer.addAttribute( "source-path", dir.getPath() ); //$NON-NLS-1$ writer.endElement(); } } writer.endElement(); // wb-module writer.endElement(); // project-modules IOUtil.close( w ); } | 51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/eac4ca45d70990815e5d0899018e4033104a343b/EclipseWtpmodulesWriter.java/buggy/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseWtpmodulesWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1045,
12,
1387,
15573,
16,
17176,
4109,
1984,
16,
987,
8042,
426,
3362,
16981,
16,
7682,
20840,
10472,
1830,
1621,
8526,
1084,
9872,
16,
14022,
3305,
1191,
3305,
16,
14022,
4301,
6462,
4301,
16,
987,
2632,
7581,
18429,
262,
3639,
1216,
18780,
565,
288,
3639,
24639,
341,
31,
3639,
775,
3639,
288,
5411,
341,
273,
394,
24639,
12,
394,
1387,
12,
15573,
16,
3552,
6046,
84,
6400,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
289,
3639,
1044,
261,
1860,
431,
262,
3639,
288,
5411,
604,
394,
18780,
12,
4838,
18,
588,
780,
12,
315,
23057,
10472,
3773,
18,
1636,
3190,
310,
768,
6,
262,
16,
431,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
289,
3639,
3167,
2289,
2633,
273,
394,
22328,
5108,
4201,
2289,
12,
341,
11272,
3639,
2633,
18,
1937,
1046,
12,
315,
4406,
17,
6400,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2633,
18,
1289,
1499,
12,
315,
350,
3113,
315,
2978,
4670,
548,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
3639,
2633,
18,
1937,
1046,
12,
315,
9464,
17,
2978,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2633,
18,
1289,
1499,
12,
315,
12411,
17,
529,
3113,
1984,
18,
588,
7581,
548,
1435,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
2633,
18,
1937,
1046,
12,
315,
2978,
17,
723,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1045,
12,
1387,
15573,
16,
17176,
4109,
1984,
16,
987,
8042,
426,
3362,
16981,
16,
7682,
20840,
10472,
1830,
1621,
8526,
1084,
9872,
16,
14022,
3305,
1191,
3305,
16,
14022,
4301,
6462,
4301,
16,
987,
2632,
7581,
18429,
262,
3639,
1216,
18780,
565,
288,
3639,
24639,
341,
31,
3639,
775,
3639,
288,
5411,
341,
273,
394,
24639,
12,
394,
1387,
12,
15573,
16,
3552,
6046,
84,
6400,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
289,
3639,
1044,
261,
1860,
431,
262,
3639,
288,
5411,
604,
394,
18780,
12,
4838,
18,
588,
780,
12,
315,
23057,
10472,
3773,
18,
1636,
3190,
310,
768,
6,
262,
16,
431,
11272,
4329,
3993,
17,
5106,
17,
2
] |
for (int i = 0; i < tnsnames.length; i++) | for (int i = 0; i < dbNames.length; i++) | public String[] discoverDatabases(String selected) { if (p_discovered != null) return p_discovered; // ArrayList<String> list = new ArrayList<String>(); ArrayList<String> dblist = new ArrayList<String>(); // default value to lowercase or null String def = selected; if (def != null && def.trim().length() == 0) def = null; if (def != null) { list.add(def.toLowerCase()); dblist.add(def.toLowerCase()); } if (m_XE) { String serviceName = "xe"; if (!list.contains(serviceName)) list.add(serviceName); } String path = System.getenv("ORACLE_HOME"); if (path == null) { // Search for Oracle Info path = System.getProperty("java.library.path"); String[] entries = path.split(File.pathSeparator); for (int e = 0; e < entries.length; e++) { String entry = entries[e].toLowerCase(); if (entry.indexOf("ora") != -1 && entry.endsWith("bin")) { StringBuffer sb = getTNS_File (entries[e].substring(0, entries[e].length()-4)); String[] tnsnames = getTNS_Names (sb, true); String[] dbNames = getTNS_Names (sb, false); if (tnsnames != null) { for (int i = 0; i < tnsnames.length; i++) { String tns = tnsnames[i]; // is lower case String db = dbNames[i]; if (!tns.equals(def)) { list.add(tns); dblist.add(db); } else { dblist.remove(0); dblist.add(0, db); } } break; } } } // for all path entries } else { StringBuffer sb = getTNS_File (path); String[] tnsnames = getTNS_Names (sb, true); String[] dbNames = getTNS_Names (sb, false); if (tnsnames != null) { for (int i = 0; i < tnsnames.length; i++) { String tns = tnsnames[i]; // is lower case String db = dbNames[i]; if (!tns.equals(def)) { list.add(tns); dblist.add(db); } else { dblist.remove(0); dblist.add(0, db); } } } } p_discovered = new String[list.size()]; list.toArray(p_discovered); p_dbname = new String[dblist.size()]; dblist.toArray(p_dbname); return p_discovered; } // discoverDatabases | 25591 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25591/0b818d3905ddae532c37bcb172838fffa4e7ade1/ConfigOracle.java/buggy/install/src/org/compiere/install/ConfigOracle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8526,
10372,
31635,
12,
780,
3170,
13,
202,
95,
202,
202,
430,
261,
84,
67,
2251,
16810,
480,
446,
13,
1082,
202,
2463,
293,
67,
2251,
16810,
31,
202,
202,
759,
202,
202,
19558,
32,
780,
34,
666,
273,
394,
2407,
32,
780,
34,
5621,
202,
202,
19558,
32,
780,
34,
1319,
1098,
273,
394,
2407,
32,
780,
34,
5621,
202,
202,
759,
202,
1886,
460,
358,
12400,
578,
446,
202,
202,
780,
1652,
273,
3170,
31,
202,
202,
430,
261,
536,
480,
446,
597,
1652,
18,
5290,
7675,
2469,
1435,
422,
374,
13,
1082,
202,
536,
273,
446,
31,
202,
202,
430,
261,
536,
480,
446,
13,
288,
1082,
202,
1098,
18,
1289,
12,
536,
18,
869,
5630,
10663,
1082,
202,
1966,
1098,
18,
1289,
12,
536,
18,
869,
5630,
10663,
202,
202,
97,
9506,
202,
430,
261,
81,
67,
60,
41,
13,
202,
202,
95,
1082,
202,
780,
6773,
273,
315,
6554,
14432,
1082,
202,
430,
16051,
1098,
18,
12298,
12,
15423,
3719,
9506,
202,
1098,
18,
1289,
12,
15423,
1769,
202,
202,
97,
9506,
202,
780,
589,
273,
2332,
18,
588,
3074,
2932,
916,
2226,
900,
67,
14209,
8863,
202,
202,
430,
261,
803,
422,
446,
13,
3196,
202,
95,
1082,
202,
759,
202,
2979,
364,
28544,
3807,
1082,
202,
803,
273,
2332,
18,
588,
1396,
2932,
6290,
18,
12083,
18,
803,
8863,
1082,
202,
780,
8526,
3222,
273,
589,
18,
4939,
12,
812,
18,
803,
6581,
1769,
1082,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8526,
10372,
31635,
12,
780,
3170,
13,
202,
95,
202,
202,
430,
261,
84,
67,
2251,
16810,
480,
446,
13,
1082,
202,
2463,
293,
67,
2251,
16810,
31,
202,
202,
759,
202,
202,
19558,
32,
780,
34,
666,
273,
394,
2407,
32,
780,
34,
5621,
202,
202,
19558,
32,
780,
34,
1319,
1098,
273,
394,
2407,
32,
780,
34,
5621,
202,
202,
759,
202,
1886,
460,
358,
12400,
578,
446,
202,
202,
780,
1652,
273,
3170,
31,
202,
202,
430,
261,
536,
480,
446,
597,
1652,
18,
5290,
7675,
2469,
1435,
422,
374,
13,
1082,
202,
536,
273,
446,
31,
202,
202,
430,
261,
536,
480,
446,
13,
288,
1082,
202,
1098,
18,
1289,
12,
2
] |
case 50: break; case 28: | case 48: break; case 27: | public Yytoken yylex() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; int [] zzAttrL = ZZ_ATTRIBUTE; while (true) { zzMarkedPosL = zzMarkedPos; zzAction = -1; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; zzState = zzLexicalState; zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) zzInput = zzBufferL[zzCurrentPosL++]; else if (zzAtEOF) { zzInput = YYEOF; break zzForAction; } else { // store back cached positions zzCurrentPos = zzCurrentPosL; zzMarkedPos = zzMarkedPosL; boolean eof = zzRefill(); // get translated positions and possibly new buffer zzCurrentPosL = zzCurrentPos; zzMarkedPosL = zzMarkedPos; zzBufferL = zzBuffer; zzEndReadL = zzEndRead; if (eof) { zzInput = YYEOF; break zzForAction; } else { zzInput = zzBufferL[zzCurrentPosL++]; } } int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ]; if (zzNext == -1) break zzForAction; zzState = zzNext; int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 26: { String s = yytext(); w.write(s); if(debug) log("Matched @media: "+s); } case 32: break; case 18: { String s = yytext(); w.write(s); if(debug) log("Matched unicode: "+s); } case 33: break; case 8: { String s = yytext(); w.write(s); if(debug) log("Matched close braces: "+s); } case 34: break; case 22: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 35: break; case 15: { String s = yytext(); w.write(s); if(debug) log("Matched ~=: "+s); } case 36: break; case 12: { String s = yytext(); if(debug) log("Matched string: "+s); if(paranoidStringCheck && s.indexOf(':') != -1) { w.write("/* Deleted disallowed string */"); log("Deleted disallowed string: "+s); } else { w.write(s); } } case 37: break; case 25: { String s = yytext(); w.write(s); if(debug) log("Matched @page: "+s); } case 38: break; case 13: { String s = yytext(); w.write(s); if(debug) log("Matched number: "+s); } case 39: break; case 1: { String s = yytext(); char c = s.charAt(0); log("Matched anything: "+yytext()+" - ignoring"); w.write("/* ignored unmatched char: "+c+" */"); // single char cannot break out of comment } case 40: break; case 6: { String s = yytext(); w.write(s); if(debug) log("Matched semicolon: "+s); } case 41: break; case 20: { String s = yytext(); if(debug) log("Got hexcolor: "+s); w.write(s); } case 42: break; case 7: { String s = yytext(); w.write(s); if(debug) log("Matched open braces: "+s); } case 43: break; case 2: { String s = yytext(); w.write(s); if(debug) log("Matched ident: "+s); } case 44: break; case 24: { String s = yytext(); w.write(s); if(debug) log("Matched unicode range: "+s); } case 45: break; case 29: { String s = yytext(); w.write(s); if(debug) log("Matched @font-face: "+s); } case 46: break; case 9: { String s = yytext(); if(s.startsWith("url")) throwError("Invalid contents of url()"); w.write(s); if(debug) log("Matched function start: "+s); } case 47: break; case 17: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 48: break; case 3: { String s = yytext(); w.write(s); if(debug) log("Matched whitespace: "+s); } case 49: break; case 23: { String s = yytext(); if(debug) log("Ignoring unrecognizable url: "+s); w.write("/* Ignoring unmatchable URL */url()"); } case 50: break; case 28: { String s = yytext(); if(debug) log("Found @import: "+s); s = s.substring("@import".length()); s = s.trim(); DecodedStringThingy dst = new DecodedStringThingy(s); s = dst.data; if(debug) log("URL: "+s); s = processImportURL(s); dst.data = s; if(debug) log("Processed URL: "+s); if(dst.quote == ' ') dst.quote = '\"'; if (!(s == null || s.equals(""))) { if(debug) log("URL now: "+s); s = "@import "+dst.toString(); if(debug) log("Writing: "+s); w.write(s); } else if(debug) log("Dropped @import"); } case 51: break; case 31: { String s = yytext(); w.write(s); if(debug) log("Matched important: "+s); } case 52: break; case 21: { String s = yytext(); StringBuffer sb = new StringBuffer(s.length()); sb.append("/* "); boolean inPrefix = true; for(int i=2;i<s.length()-2;i++) { char c = s.charAt(i); if(inPrefix && Character.isWhitespace(c)) { continue; } inPrefix = false; if(Character.isDigit(c) || Character.isWhitespace(c) || Character.isLetter(c) || c == '.' || c == '_' || c == '-') { // No @, no !, etc; IE has been known to do things with comments // in CSS, and other browsers may too sb.append(c); } } while(Character.isWhitespace(sb.charAt(sb.length()-1))) sb.deleteCharAt(sb.length()-1); sb.append(" */"); w.write(sb.toString()); if(debug) log("Matched comment: "+s+" -> "+sb.toString()); } case 53: break; case 19: { if(!deleteErrors) { throwError("Unknown @identifier "+yytext()); } else { String s = yytext(); if(debug) log("Discarded identifier: "+s); // Ignore } } case 54: break; case 27: { // This is horrible. However it seems that there is no other way to do it with either jflex or CUP, as {URL} cannot be an unambiguous token :( String s = yytext(); if(debug) log("Recognized URL: "+s); DecodedStringThingy dst = new DecodedStringThingy(s); if(!dst.url) { throw new IllegalStateException("parsing url().. isn't a url()"); } if(dst.suffix.length() > 0) { yypushback(dst.suffix.length()); dst.suffix = ""; } s = dst.data; if(debug) log("URL now: "+s); s = processURL(s); dst.data = s; if(s == null || s.equals("")) { if(debug) log("URL invalid"); w.write("url()"); } else { s = dst.toString(); if(debug) log("Writing: "+s); w.write(s); } } case 55: break; case 11: { String s = yytext(); w.write(s); if(debug) log("Matched measurement: "+s); } case 56: break; case 16: { String s = yytext(); w.write(s); if(debug) log("Matched |=: "+s); } case 57: break; case 30: { String s = yytext(); detectedCharset = s; if(debug) log("Matched and ignoring charset: "+s); // Ignore } case 58: break; case 10: { if(postBadImportFlag) { // Ignore postBadImportFlag = false; if(debug) log("Ignoring mediums list because after bad import: "+ yytext()); } else { String s = yytext(); w.write(s); if(debug) log("Matched and passing on mediums list: "+s); } } case 59: break; case 4: { String s = yytext(); w.write(s); if(debug) log("Matched single char: "+s); } case 60: break; case 14: { String s = yytext(); w.write(s); if(debug) log("Matched #name: "+s); } case 61: break; case 5: { String s = yytext(); w.write(s); if(debug) log("Matched function end: "+s); } case 62: break; default: if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { zzAtEOF = true; return null; } else { zzScanError(ZZ_NO_MATCH); } } } } | 8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/8611b2af3ba1b1861afc23367621eb525f20ee2a/CSSTokenizerFilter.java/buggy/src/freenet/clients/http/filter/CSSTokenizerFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1624,
93,
2316,
677,
1362,
92,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
11273,
1210,
31,
565,
509,
11273,
1803,
31,
565,
368,
3472,
1466,
30,
565,
509,
11273,
3935,
1616,
48,
31,
565,
509,
11273,
21486,
1616,
48,
31,
565,
509,
11273,
1638,
1994,
48,
273,
11273,
1638,
1994,
31,
565,
1149,
5378,
11273,
1892,
48,
273,
11273,
1892,
31,
565,
1149,
5378,
11273,
39,
863,
48,
273,
2285,
62,
67,
39,
8352,
31,
565,
509,
5378,
11273,
1429,
48,
273,
2285,
62,
67,
16596,
31,
565,
509,
5378,
11273,
1999,
863,
48,
273,
2285,
62,
67,
11226,
8352,
31,
565,
509,
5378,
11273,
3843,
48,
273,
2285,
62,
67,
11616,
31,
565,
1323,
261,
3767,
13,
288,
1377,
11273,
21486,
1616,
48,
273,
11273,
21486,
1616,
31,
1377,
11273,
1803,
273,
300,
21,
31,
1377,
11273,
3935,
1616,
48,
273,
11273,
3935,
1616,
273,
11273,
1685,
1994,
273,
11273,
21486,
1616,
48,
31,
3639,
11273,
1119,
273,
11273,
14756,
1706,
1119,
31,
1377,
11273,
1290,
1803,
30,
288,
3639,
1323,
261,
3767,
13,
288,
2868,
309,
261,
6378,
3935,
1616,
48,
411,
11273,
1638,
1994,
48,
13,
5411,
11273,
1210,
273,
11273,
1892,
48,
63,
6378,
3935,
1616,
48,
9904,
15533,
1850,
469,
309,
261,
6378,
861,
12706,
13,
288,
5411,
11273,
1210,
273,
1624,
61,
12706,
31,
5411,
898,
11273,
1290,
1803,
31,
1850,
289,
1850,
469,
288,
5411,
368,
1707,
1473,
3472,
6865,
5411,
11273,
3935,
1616,
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,
1071,
1624,
93,
2316,
677,
1362,
92,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
11273,
1210,
31,
565,
509,
11273,
1803,
31,
565,
368,
3472,
1466,
30,
565,
509,
11273,
3935,
1616,
48,
31,
565,
509,
11273,
21486,
1616,
48,
31,
565,
509,
11273,
1638,
1994,
48,
273,
11273,
1638,
1994,
31,
565,
1149,
5378,
11273,
1892,
48,
273,
11273,
1892,
31,
565,
1149,
5378,
11273,
39,
863,
48,
273,
2285,
62,
67,
39,
8352,
31,
565,
509,
5378,
11273,
1429,
48,
273,
2285,
62,
67,
16596,
31,
565,
509,
5378,
11273,
1999,
863,
48,
273,
2285,
62,
67,
11226,
8352,
31,
565,
509,
5378,
11273,
3843,
48,
273,
2285,
62,
67,
11616,
31,
565,
2
] |
XML replace(long index, Object xml) | private void replace(XmlCursor destCurs, XML newValue) | XML replace(long index, Object xml) { XMLList xlChildToReplace = (XMLList)child(index); if (xlChildToReplace.length() > 0) { // One exists an that index XML childToReplace = (XML)xlChildToReplace.item(0); insertChildAfter(childToReplace, xml); removeChild(index); } return this; } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/087a9c630080435e55ad1f50f28e17aa302e575d/XML.java/buggy/xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1453,
12,
4432,
6688,
1570,
2408,
87,
16,
3167,
6129,
13,
565,
288,
3639,
3167,
682,
15643,
1763,
774,
5729,
273,
261,
4201,
682,
13,
3624,
12,
1615,
1769,
3639,
309,
261,
18402,
1763,
774,
5729,
18,
2469,
1435,
405,
374,
13,
3639,
288,
5411,
368,
6942,
1704,
392,
716,
770,
5411,
3167,
1151,
774,
5729,
273,
261,
4201,
13,
18402,
1763,
774,
5729,
18,
1726,
12,
20,
1769,
5411,
2243,
1763,
4436,
12,
3624,
774,
5729,
16,
2025,
1769,
5411,
14213,
12,
1615,
1769,
3639,
289,
3639,
327,
333,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1453,
12,
4432,
6688,
1570,
2408,
87,
16,
3167,
6129,
13,
565,
288,
3639,
3167,
682,
15643,
1763,
774,
5729,
273,
261,
4201,
682,
13,
3624,
12,
1615,
1769,
3639,
309,
261,
18402,
1763,
774,
5729,
18,
2469,
1435,
405,
374,
13,
3639,
288,
5411,
368,
6942,
1704,
392,
716,
770,
5411,
3167,
1151,
774,
5729,
273,
261,
4201,
13,
18402,
1763,
774,
5729,
18,
1726,
12,
20,
1769,
5411,
2243,
1763,
4436,
12,
3624,
774,
5729,
16,
2025,
1769,
5411,
14213,
12,
1615,
1769,
3639,
289,
3639,
327,
333,
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
] |
protected void addRadioButtons(Composite buttonComposite) { | protected void addRadioButtons(Composite buttonComposite) { | protected void addRadioButtons(Composite buttonComposite) { RepositoryTaskData taskData = getRepositoryTaskData(); FormToolkit toolkit = new FormToolkit(buttonComposite.getDisplay()); int i = 0; Button selected = null; radios = new Button[taskData.getOperations().size()]; radioOptions = new Control[taskData.getOperations().size()]; for (Iterator<RepositoryOperation> it = taskData.getOperations().iterator(); it.hasNext();) { RepositoryOperation o = it.next(); radios[i] = toolkit.createButton(buttonComposite, "", SWT.RADIO); radios[i].setFont(TEXT_FONT); GridData radioData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); if (!o.hasOptions() && !o.isInput()) radioData.horizontalSpan = 4; else radioData.horizontalSpan = 3; radioData.heightHint = 20; String opName = o.getOperationName(); opName = opName.replaceAll("</.*>", ""); opName = opName.replaceAll("<.*>", ""); radios[i].setText(opName); radios[i].setLayoutData(radioData); // radios[i].setBackground(background); radios[i].addSelectionListener(new RadioButtonListener()); radios[i].addListener(SWT.FocusIn, new GenericListener()); if (o.hasOptions()) { radioData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); radioData.horizontalSpan = 1; radioData.heightHint = 20; radioData.widthHint = AbstractRepositoryTaskEditor.WRAP_LENGTH; // radioOptions[i] = new Combo(buttonComposite, SWT.NULL); radioOptions[i] = new CCombo(buttonComposite, SWT.FLAT | SWT.READ_ONLY); toolkit.adapt(radioOptions[i], true, true); // radioOptions[i] = new Combo(buttonComposite, SWT.MULTI | // SWT.V_SCROLL | SWT.READ_ONLY); // radioOptions[i].setData(FormToolkit.KEY_DRAW_BORDER, // FormToolkit.TEXT_BORDER); // radioOptions[i] = new Combo(buttonComposite, // SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL // | SWT.READ_ONLY); radioOptions[i].setFont(TEXT_FONT); radioOptions[i].setLayoutData(radioData); // radioOptions[i].setBackground(background); Object[] a = o.getOptionNames().toArray(); Arrays.sort(a); for (int j = 0; j < a.length; j++) { ((CCombo) radioOptions[i]).add((String) a[j]); } ((CCombo) radioOptions[i]).select(0); ((CCombo) radioOptions[i]).addSelectionListener(new RadioButtonListener()); } else if (o.isInput()) { radioData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); radioData.horizontalSpan = 1; radioData.widthHint = 120; // TODO: add condition for if opName = reassign to... String assignmentValue = ""; if (opName.equals(REASSIGN_BUG_TO)) { assignmentValue = repository.getUserName(); } radioOptions[i] = toolkit.createText(buttonComposite, assignmentValue);// , // SWT.SINGLE); radioOptions[i].setFont(TEXT_FONT); radioOptions[i].setLayoutData(radioData); // radioOptions[i].setBackground(background); ((Text) radioOptions[i]).setText(o.getInputValue()); ((Text) radioOptions[i]).addModifyListener(new RadioButtonListener()); } if (i == 0 || o.isChecked()) { if (selected != null) selected.setSelection(false); selected = radios[i]; radios[i].setSelection(true); if (o.hasOptions() && o.getOptionSelection() != null) { int j = 0; for (String s : ((CCombo) radioOptions[i]).getItems()) { if (s.compareTo(o.getOptionSelection()) == 0) { ((CCombo) radioOptions[i]).select(j); } j++; } } taskData.setSelectedOperation(o); } i++; } toolkit.paintBordersFor(buttonComposite); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/9da33c2a466e9470c85b9a43decd59aafc4b21c8/AbstractRepositoryTaskEditor.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractRepositoryTaskEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
19984,
14388,
12,
9400,
3568,
9400,
13,
288,
9506,
202,
3305,
2174,
751,
1562,
751,
273,
8261,
2174,
751,
5621,
202,
202,
1204,
6364,
8691,
5226,
8691,
273,
394,
2748,
6364,
8691,
12,
5391,
9400,
18,
588,
4236,
10663,
202,
202,
474,
277,
273,
374,
31,
202,
202,
3616,
3170,
273,
446,
31,
202,
202,
22799,
538,
273,
394,
12569,
63,
4146,
751,
18,
588,
9343,
7675,
1467,
1435,
15533,
202,
202,
17006,
1320,
273,
394,
8888,
63,
4146,
751,
18,
588,
9343,
7675,
1467,
1435,
15533,
202,
202,
1884,
261,
3198,
32,
3305,
2988,
34,
518,
273,
1562,
751,
18,
588,
9343,
7675,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
3305,
2988,
320,
273,
518,
18,
4285,
5621,
1082,
202,
22799,
538,
63,
77,
65,
273,
5226,
8691,
18,
2640,
3616,
12,
5391,
9400,
16,
23453,
348,
8588,
18,
28829,
4294,
1769,
1082,
202,
22799,
538,
63,
77,
8009,
542,
5711,
12,
5151,
67,
25221,
1769,
1082,
202,
6313,
751,
13512,
751,
273,
394,
7145,
751,
12,
6313,
751,
18,
44,
20344,
67,
26439,
67,
16061,
15870,
1769,
1082,
202,
430,
16051,
83,
18,
5332,
1320,
1435,
597,
401,
83,
18,
291,
1210,
10756,
9506,
202,
17006,
751,
18,
18396,
6952,
273,
1059,
31,
1082,
202,
12107,
9506,
202,
17006,
751,
18,
18396,
6952,
273,
890,
31,
1082,
202,
17006,
751,
18,
4210,
7002,
273,
4200,
31,
1082,
202,
780,
1061,
461,
273,
320,
18,
588,
2988,
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,
527,
19984,
14388,
12,
9400,
3568,
9400,
13,
288,
9506,
202,
3305,
2174,
751,
1562,
751,
273,
8261,
2174,
751,
5621,
202,
202,
1204,
6364,
8691,
5226,
8691,
273,
394,
2748,
6364,
8691,
12,
5391,
9400,
18,
588,
4236,
10663,
202,
202,
474,
277,
273,
374,
31,
202,
202,
3616,
3170,
273,
446,
31,
202,
202,
22799,
538,
273,
394,
12569,
63,
4146,
751,
18,
588,
9343,
7675,
1467,
1435,
15533,
202,
202,
17006,
1320,
273,
394,
8888,
63,
4146,
751,
18,
588,
9343,
7675,
1467,
1435,
15533,
202,
202,
1884,
261,
3198,
32,
3305,
2988,
34,
518,
273,
1562,
751,
18,
588,
9343,
7675,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
1082,
2
] |
for(int i=0;i<dataBlockStatus.length;i++) dataBlockStatus[i].cancel(); for(int i=0;i<checkBlockStatus.length;i++) checkBlockStatus[i].cancel(); | for(int i=0;i<dataBlockStatus.length;i++) { SingleFileFetcher f = dataBlockStatus[i]; if(f != null) f.cancel(); } for(int i=0;i<checkBlockStatus.length;i++) { SingleFileFetcher f = checkBlockStatus[i]; if(f != null) f.cancel(); } | private void startDecode() { synchronized(this) { if(startedDecode) return; startedDecode = true; } for(int i=0;i<dataBlockStatus.length;i++) dataBlockStatus[i].cancel(); for(int i=0;i<checkBlockStatus.length;i++) checkBlockStatus[i].cancel(); Runnable r = new Decoder(); Thread t = new Thread(r, "Decoder for "+this); t.setDaemon(true); t.start(); } | 45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/9d1f8fb16fdf7b68cf688782b98904ee023f6ccb/SplitFileFetcherSegment.java/buggy/src/freenet/client/async/SplitFileFetcherSegment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
787,
6615,
1435,
288,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12,
14561,
6615,
13,
327,
31,
1082,
202,
14561,
6615,
273,
638,
31,
202,
202,
97,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
892,
1768,
1482,
18,
2469,
31,
77,
27245,
1082,
202,
892,
1768,
1482,
63,
77,
8009,
10996,
5621,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
1893,
1768,
1482,
18,
2469,
31,
77,
27245,
1082,
202,
1893,
1768,
1482,
63,
77,
8009,
10996,
5621,
202,
202,
20013,
436,
273,
394,
15138,
5621,
202,
202,
3830,
268,
273,
394,
4884,
12,
86,
16,
315,
7975,
364,
13773,
2211,
1769,
202,
202,
88,
18,
542,
12858,
12,
3767,
1769,
202,
202,
88,
18,
1937,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
787,
6615,
1435,
288,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12,
14561,
6615,
13,
327,
31,
1082,
202,
14561,
6615,
273,
638,
31,
202,
202,
97,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
892,
1768,
1482,
18,
2469,
31,
77,
27245,
1082,
202,
892,
1768,
1482,
63,
77,
8009,
10996,
5621,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
1893,
1768,
1482,
18,
2469,
31,
77,
27245,
1082,
202,
1893,
1768,
1482,
63,
77,
8009,
10996,
5621,
202,
202,
20013,
436,
273,
394,
15138,
5621,
202,
202,
3830,
268,
273,
394,
4884,
12,
86,
16,
315,
7975,
364,
13773,
2211,
1769,
202,
202,
88,
2
] |
this.originalType = originalType; } | this.originalType = originalType; } | public void setOriginalType(int originalType) { this.originalType = originalType; } | 3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/7db9e738a62cae021d8a52915e84389f881d0f9e/Image.java/buggy/itext/src/com/lowagie/text/Image.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
8176,
559,
12,
474,
2282,
559,
13,
288,
3639,
333,
18,
8830,
559,
273,
2282,
559,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
8176,
559,
12,
474,
2282,
559,
13,
288,
3639,
333,
18,
8830,
559,
273,
2282,
559,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case 514 : if (DEBUG) { System.out.println("TypeArgumentList ::= TypeArgumentList COMMA TypeArgument"); } | case 515 : if (DEBUG) { System.out.println("TypeArgumentList ::= TypeArgumentList COMMA TypeArgument"); } | protected void consumeRule(int act) { switch ( act ) { case 26 : if (DEBUG) { System.out.println("Type ::= PrimitiveType"); } //$NON-NLS-1$ consumePrimitiveType(); break; case 40 : if (DEBUG) { System.out.println("ReferenceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeReferenceType(); break; case 44 : if (DEBUG) { System.out.println("ClassOrInterface ::= Name"); } //$NON-NLS-1$ consumeClassOrInterfaceName(); break; case 45 : if (DEBUG) { System.out.println("ClassOrInterface ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeClassOrInterface(); break; case 46 : if (DEBUG) { System.out.println("GenericType ::= ClassOrInterface TypeArguments"); } //$NON-NLS-1$ consumeGenericType(); break; case 47 : if (DEBUG) { System.out.println("ArrayTypeWithTypeArgumentsName ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeArrayTypeWithTypeArgumentsName(); break; case 48 : if (DEBUG) { System.out.println("ArrayType ::= PrimitiveType Dims"); } //$NON-NLS-1$ consumePrimitiveArrayType(); break; case 49 : if (DEBUG) { System.out.println("ArrayType ::= Name Dims"); } //$NON-NLS-1$ consumeNameArrayType(); break; case 50 : if (DEBUG) { System.out.println("ArrayType ::= ArrayTypeWithTypeArgumentsName Dims"); } //$NON-NLS-1$ consumeGenericTypeNameArrayType(); break; case 51 : if (DEBUG) { System.out.println("ArrayType ::= GenericType Dims"); } //$NON-NLS-1$ consumeGenericTypeArrayType(); break; case 56 : if (DEBUG) { System.out.println("QualifiedName ::= Name DOT SimpleName"); } //$NON-NLS-1$ consumeQualifiedName(); break; case 57 : if (DEBUG) { System.out.println("CompilationUnit ::= EnterCompilationUnit..."); } //$NON-NLS-1$ consumeCompilationUnit(); break; case 58 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration"); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 59 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 60 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 61 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 62 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 63 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= TypeDeclarations"); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 64 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 65 : if (DEBUG) { System.out.println("InternalCompilationUnit ::="); } //$NON-NLS-1$ consumeEmptyInternalCompilationUnit(); break; case 66 : if (DEBUG) { System.out.println("ReduceImports ::="); } //$NON-NLS-1$ consumeReduceImports(); break; case 67 : if (DEBUG) { System.out.println("EnterCompilationUnit ::="); } //$NON-NLS-1$ consumeEnterCompilationUnit(); break; case 78 : if (DEBUG) { System.out.println("CatchHeader ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeCatchHeader(); break; case 80 : if (DEBUG) { System.out.println("ImportDeclarations ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeImportDeclarations(); break; case 82 : if (DEBUG) { System.out.println("TypeDeclarations ::= TypeDeclarations TypeDeclaration"); } //$NON-NLS-1$ consumeTypeDeclarations(); break; case 83 : if (DEBUG) { System.out.println("PackageDeclaration ::= PackageDeclarationName SEMICOLON"); } //$NON-NLS-1$ consumePackageDeclaration(); break; case 84 : if (DEBUG) { System.out.println("PackageDeclarationName ::= Modifiers package..."); } //$NON-NLS-1$ consumePackageDeclarationNameWithModifiers(); break; case 85 : if (DEBUG) { System.out.println("PackageDeclarationName ::= package Name"); } //$NON-NLS-1$ consumePackageDeclarationName(); break; case 90 : if (DEBUG) { System.out.println("SingleTypeImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 91 : if (DEBUG) { System.out.println("SingleTypeImportDeclarationName ::= import Name"); } //$NON-NLS-1$ consumeSingleTypeImportDeclarationName(); break; case 92 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 93 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclarationName ::= import Name DOT..."); } //$NON-NLS-1$ consumeTypeImportOnDemandDeclarationName(); break; case 96 : if (DEBUG) { System.out.println("TypeDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyTypeDeclaration(); break; case 100 : if (DEBUG) { System.out.println("Modifiers ::= Modifiers Modifier"); } //$NON-NLS-1$ consumeModifiers2(); break; case 112 : if (DEBUG) { System.out.println("Modifier ::= Annotation"); } //$NON-NLS-1$ consumeAnnotationAsModifier(); break; case 113 : if (DEBUG) { System.out.println("ClassDeclaration ::= ClassHeader ClassBody"); } //$NON-NLS-1$ consumeClassDeclaration(); break; case 114 : if (DEBUG) { System.out.println("ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt..."); } //$NON-NLS-1$ consumeClassHeader(); break; case 115 : if (DEBUG) { System.out.println("ClassHeaderName ::= ClassHeaderName1 TypeParameters"); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 117 : if (DEBUG) { System.out.println("ClassHeaderName1 ::= Modifiersopt class Identifier"); } //$NON-NLS-1$ consumeClassHeaderName1(); break; case 118 : if (DEBUG) { System.out.println("ClassHeaderExtends ::= extends ClassType"); } //$NON-NLS-1$ consumeClassHeaderExtends(); break; case 119 : if (DEBUG) { System.out.println("ClassHeaderImplements ::= implements InterfaceTypeList"); } //$NON-NLS-1$ consumeClassHeaderImplements(); break; case 121 : if (DEBUG) { System.out.println("InterfaceTypeList ::= InterfaceTypeList COMMA..."); } //$NON-NLS-1$ consumeInterfaceTypeList(); break; case 122 : if (DEBUG) { System.out.println("InterfaceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeInterfaceType(); break; case 125 : if (DEBUG) { System.out.println("ClassBodyDeclarations ::= ClassBodyDeclarations..."); } //$NON-NLS-1$ consumeClassBodyDeclarations(); break; case 129 : if (DEBUG) { System.out.println("ClassBodyDeclaration ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 130 : if (DEBUG) { System.out.println("Diet ::="); } //$NON-NLS-1$ consumeDiet(); break; case 131 : if (DEBUG) { System.out.println("Initializer ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 138 : if (DEBUG) { System.out.println("ClassMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyClassMemberDeclaration(); break; case 141 : if (DEBUG) { System.out.println("FieldDeclaration ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFieldDeclaration(); break; case 143 : if (DEBUG) { System.out.println("VariableDeclarators ::= VariableDeclarators COMMA..."); } //$NON-NLS-1$ consumeVariableDeclarators(); break; case 146 : if (DEBUG) { System.out.println("EnterVariable ::="); } //$NON-NLS-1$ consumeEnterVariable(); break; case 147 : if (DEBUG) { System.out.println("ExitVariableWithInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithInitialization(); break; case 148 : if (DEBUG) { System.out.println("ExitVariableWithoutInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithoutInitialization(); break; case 149 : if (DEBUG) { System.out.println("ForceNoDiet ::="); } //$NON-NLS-1$ consumeForceNoDiet(); break; case 150 : if (DEBUG) { System.out.println("RestoreDiet ::="); } //$NON-NLS-1$ consumeRestoreDiet(); break; case 155 : if (DEBUG) { System.out.println("MethodDeclaration ::= MethodHeader MethodBody"); } //$NON-NLS-1$ // set to true to consume a method with a body consumeMethodDeclaration(true); break; case 156 : if (DEBUG) { System.out.println("AbstractMethodDeclaration ::= MethodHeader SEMICOLON"); } //$NON-NLS-1$ // set to false to consume a method without body consumeMethodDeclaration(false); break; case 157 : if (DEBUG) { System.out.println("MethodHeader ::= MethodHeaderName FormalParameterListopt"); } //$NON-NLS-1$ consumeMethodHeader(); break; case 158 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt TypeParameters Type..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(); break; case 159 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt Type Identifier LPAREN"); } //$NON-NLS-1$ consumeMethodHeaderName(); break; case 160 : if (DEBUG) { System.out.println("MethodHeaderRightParen ::= RPAREN"); } //$NON-NLS-1$ consumeMethodHeaderRightParen(); break; case 161 : if (DEBUG) { System.out.println("MethodHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeMethodHeaderExtendedDims(); break; case 162 : if (DEBUG) { System.out.println("MethodHeaderThrowsClause ::= throws ClassTypeList"); } //$NON-NLS-1$ consumeMethodHeaderThrowsClause(); break; case 163 : if (DEBUG) { System.out.println("ConstructorHeader ::= ConstructorHeaderName..."); } //$NON-NLS-1$ consumeConstructorHeader(); break; case 164 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt TypeParameters..."); } //$NON-NLS-1$ consumeConstructorHeaderNameWithTypeParameters(); break; case 165 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt Identifier LPAREN"); } //$NON-NLS-1$ consumeConstructorHeaderName(); break; case 167 : if (DEBUG) { System.out.println("FormalParameterList ::= FormalParameterList COMMA..."); } //$NON-NLS-1$ consumeFormalParameterList(); break; case 168 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFormalParameter(false); break; case 169 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type ELLIPSIS..."); } //$NON-NLS-1$ consumeFormalParameter(true); break; case 171 : if (DEBUG) { System.out.println("ClassTypeList ::= ClassTypeList COMMA ClassTypeElt"); } //$NON-NLS-1$ consumeClassTypeList(); break; case 172 : if (DEBUG) { System.out.println("ClassTypeElt ::= ClassType"); } //$NON-NLS-1$ consumeClassTypeElt(); break; case 173 : if (DEBUG) { System.out.println("MethodBody ::= NestedMethod LBRACE BlockStatementsopt..."); } //$NON-NLS-1$ consumeMethodBody(); break; case 174 : if (DEBUG) { System.out.println("NestedMethod ::="); } //$NON-NLS-1$ consumeNestedMethod(); break; case 175 : if (DEBUG) { System.out.println("StaticInitializer ::= StaticOnly Block"); } //$NON-NLS-1$ consumeStaticInitializer(); break; case 176 : if (DEBUG) { System.out.println("StaticOnly ::= static"); } //$NON-NLS-1$ consumeStaticOnly(); break; case 177 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader MethodBody"); } //$NON-NLS-1$ consumeConstructorDeclaration() ; break; case 178 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader SEMICOLON"); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration() ; break; case 179 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= this LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0, THIS_CALL); break; case 180 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments this"); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,THIS_CALL); break; case 181 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= super LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0,SUPER_CALL); break; case 182 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,SUPER_CALL); break; case 183 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT super..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, SUPER_CALL); break; case 184 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, SUPER_CALL); break; case 185 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT super LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, SUPER_CALL); break; case 186 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, SUPER_CALL); break; case 187 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT this..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, THIS_CALL); break; case 188 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, THIS_CALL); break; case 189 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT this LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, THIS_CALL); break; case 190 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, THIS_CALL); break; case 191 : if (DEBUG) { System.out.println("InterfaceDeclaration ::= InterfaceHeader InterfaceBody"); } //$NON-NLS-1$ consumeInterfaceDeclaration(); break; case 192 : if (DEBUG) { System.out.println("InterfaceHeader ::= InterfaceHeaderName..."); } //$NON-NLS-1$ consumeInterfaceHeader(); break; case 193 : if (DEBUG) { System.out.println("InterfaceHeaderName ::= InterfaceHeaderName1..."); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 195 : if (DEBUG) { System.out.println("InterfaceHeaderName1 ::= Modifiersopt interface..."); } //$NON-NLS-1$ consumeInterfaceHeaderName1(); break; case 197 : if (DEBUG) { System.out.println("InterfaceHeaderExtends ::= extends InterfaceTypeList"); } //$NON-NLS-1$ consumeInterfaceHeaderExtends(); break; case 200 : if (DEBUG) { System.out.println("InterfaceMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarations(); break; case 201 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclaration(); break; case 204 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= InvalidMethodDeclaration"); } //$NON-NLS-1$ ignoreMethodBody(); break; case 205 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(true); break; case 206 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(false); break; case 213 : if (DEBUG) { System.out.println("PushLeftBrace ::="); } //$NON-NLS-1$ consumePushLeftBrace(); break; case 214 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace ,opt RBRACE"); } //$NON-NLS-1$ consumeEmptyArrayInitializer(); break; case 215 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 216 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 218 : if (DEBUG) { System.out.println("VariableInitializers ::= VariableInitializers COMMA..."); } //$NON-NLS-1$ consumeVariableInitializers(); break; case 219 : if (DEBUG) { System.out.println("Block ::= OpenBlock LBRACE BlockStatementsopt RBRACE"); } //$NON-NLS-1$ consumeBlock(); break; case 220 : if (DEBUG) { System.out.println("OpenBlock ::="); } //$NON-NLS-1$ consumeOpenBlock() ; break; case 222 : if (DEBUG) { System.out.println("BlockStatements ::= BlockStatements BlockStatement"); } //$NON-NLS-1$ consumeBlockStatements() ; break; case 226 : if (DEBUG) { System.out.println("BlockStatement ::= InvalidInterfaceDeclaration"); } //$NON-NLS-1$ ignoreInterfaceDeclaration(); break; case 227 : if (DEBUG) { System.out.println("LocalVariableDeclarationStatement ::=..."); } //$NON-NLS-1$ consumeLocalVariableDeclarationStatement(); break; case 228 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Type PushModifiers..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 229 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Modifiers Type..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 230 : if (DEBUG) { System.out.println("PushModifiers ::="); } //$NON-NLS-1$ consumePushModifiers(); break; case 231 : if (DEBUG) { System.out.println("PushRealModifiers ::="); } //$NON-NLS-1$ consumePushRealModifiers(); break; case 257 : if (DEBUG) { System.out.println("EmptyStatement ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyStatement(); break; case 258 : if (DEBUG) { System.out.println("LabeledStatement ::= Identifier COLON Statement"); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 259 : if (DEBUG) { System.out.println("LabeledStatementNoShortIf ::= Identifier COLON..."); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 260 : if (DEBUG) { System.out.println("ExpressionStatement ::= StatementExpression SEMICOLON"); } //$NON-NLS-1$ consumeExpressionStatement(); break; case 269 : if (DEBUG) { System.out.println("IfThenStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfNoElse(); break; case 270 : if (DEBUG) { System.out.println("IfThenElseStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 271 : if (DEBUG) { System.out.println("IfThenElseStatementNoShortIf ::= if LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 272 : if (DEBUG) { System.out.println("SwitchStatement ::= switch LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementSwitch() ; break; case 273 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE RBRACE"); } //$NON-NLS-1$ consumeEmptySwitchBlock() ; break; case 276 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlock() ; break; case 278 : if (DEBUG) { System.out.println("SwitchBlockStatements ::= SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlockStatements() ; break; case 279 : if (DEBUG) { System.out.println("SwitchBlockStatement ::= SwitchLabels BlockStatements"); } //$NON-NLS-1$ consumeSwitchBlockStatement() ; break; case 281 : if (DEBUG) { System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); } //$NON-NLS-1$ consumeSwitchLabels() ; break; case 282 : if (DEBUG) { System.out.println("SwitchLabel ::= case ConstantExpression COLON"); } //$NON-NLS-1$ consumeCaseLabel(); break; case 283 : if (DEBUG) { System.out.println("SwitchLabel ::= default COLON"); } //$NON-NLS-1$ consumeDefaultLabel(); break; case 284 : if (DEBUG) { System.out.println("WhileStatement ::= while LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 285 : if (DEBUG) { System.out.println("WhileStatementNoShortIf ::= while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 286 : if (DEBUG) { System.out.println("DoStatement ::= do Statement while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementDo() ; break; case 287 : if (DEBUG) { System.out.println("ForStatement ::= for LPAREN ForInitopt SEMICOLON..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 288 : if (DEBUG) { System.out.println("ForStatementNoShortIf ::= for LPAREN ForInitopt..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 289 : if (DEBUG) { System.out.println("ForInit ::= StatementExpressionList"); } //$NON-NLS-1$ consumeForInit() ; break; case 293 : if (DEBUG) { System.out.println("StatementExpressionList ::= StatementExpressionList..."); } //$NON-NLS-1$ consumeStatementExpressionList() ; break; case 294 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression SEMICOLON"); } //$NON-NLS-1$ consumeSimpleAssertStatement() ; break; case 295 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression COLON Expression"); } //$NON-NLS-1$ consumeAssertStatement() ; break; case 296 : if (DEBUG) { System.out.println("BreakStatement ::= break SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreak() ; break; case 297 : if (DEBUG) { System.out.println("BreakStatement ::= break Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreakWithLabel() ; break; case 298 : if (DEBUG) { System.out.println("ContinueStatement ::= continue SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinue() ; break; case 299 : if (DEBUG) { System.out.println("ContinueStatement ::= continue Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinueWithLabel() ; break; case 300 : if (DEBUG) { System.out.println("ReturnStatement ::= return Expressionopt SEMICOLON"); } //$NON-NLS-1$ consumeStatementReturn() ; break; case 301 : if (DEBUG) { System.out.println("ThrowStatement ::= throw Expression SEMICOLON"); } //$NON-NLS-1$ consumeStatementThrow(); break; case 302 : if (DEBUG) { System.out.println("SynchronizedStatement ::= OnlySynchronized LPAREN..."); } //$NON-NLS-1$ consumeStatementSynchronized(); break; case 303 : if (DEBUG) { System.out.println("OnlySynchronized ::= synchronized"); } //$NON-NLS-1$ consumeOnlySynchronized(); break; case 304 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catches"); } //$NON-NLS-1$ consumeStatementTry(false); break; case 305 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catchesopt Finally"); } //$NON-NLS-1$ consumeStatementTry(true); break; case 307 : if (DEBUG) { System.out.println("ExitTryBlock ::="); } //$NON-NLS-1$ consumeExitTryBlock(); break; case 309 : if (DEBUG) { System.out.println("Catches ::= Catches CatchClause"); } //$NON-NLS-1$ consumeCatches(); break; case 310 : if (DEBUG) { System.out.println("CatchClause ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeStatementCatch() ; break; case 312 : if (DEBUG) { System.out.println("PushLPAREN ::= LPAREN"); } //$NON-NLS-1$ consumeLeftParen(); break; case 313 : if (DEBUG) { System.out.println("PushRPAREN ::= RPAREN"); } //$NON-NLS-1$ consumeRightParen(); break; case 318 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayThis(); break; case 319 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Expression_NotName..."); } //$NON-NLS-1$ consumePrimaryNoNewArray(); break; case 320 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Name PushRPAREN"); } //$NON-NLS-1$ consumePrimaryNoNewArrayWithName(); break; case 323 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameThis(); break; case 324 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT super"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameSuper(); break; case 325 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayName(); break; case 326 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayArrayType(); break; case 327 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveArrayType(); break; case 328 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveType(); break; case 331 : if (DEBUG) { System.out.println("AllocationHeader ::= new ClassType LPAREN..."); } //$NON-NLS-1$ consumeAllocationHeader(); break; case 332 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionWithTypeArguments(); break; case 333 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new ClassType LPAREN"); } //$NON-NLS-1$ consumeClassInstanceCreationExpression(); break; case 334 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 335 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 336 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 337 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 338 : if (DEBUG) { System.out.println("ClassInstanceCreationExpressionName ::= Name DOT"); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionName() ; break; case 339 : if (DEBUG) { System.out.println("ClassBodyopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 341 : if (DEBUG) { System.out.println("ClassBodySimpleNameopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 343 : if (DEBUG) { System.out.println("EnterAnonymousClassBodySimpleName ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBodySimpleName(); break; case 344 : if (DEBUG) { System.out.println("EnterAnonymousClassBody ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBody(); break; case 346 : if (DEBUG) { System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); } //$NON-NLS-1$ consumeArgumentList(); break; case 347 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new PrimitiveType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 348 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new ClassOrInterfaceType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 349 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 350 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new PrimitiveType"); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 351 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 352 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 354 : if (DEBUG) { System.out.println("DimWithOrWithOutExprs ::= DimWithOrWithOutExprs..."); } //$NON-NLS-1$ consumeDimWithOrWithOutExprs(); break; case 356 : if (DEBUG) { System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeDimWithOrWithOutExpr(); break; case 357 : if (DEBUG) { System.out.println("Dims ::= DimsLoop"); } //$NON-NLS-1$ consumeDims(); break; case 360 : if (DEBUG) { System.out.println("OneDimLoop ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeOneDimLoop(); break; case 361 : if (DEBUG) { System.out.println("FieldAccess ::= Primary DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(false); break; case 362 : if (DEBUG) { System.out.println("FieldAccess ::= super DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(true); break; case 363 : if (DEBUG) { System.out.println("MethodInvocation ::= Name LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeMethodInvocationName(); break; case 364 : if (DEBUG) { System.out.println("MethodInvocation ::= Name DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationNameWithTypeArguments(); break; case 365 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationPrimaryWithTypeArguments(); break; case 366 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationPrimary(); break; case 367 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationSuperWithTypeArguments(); break; case 368 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationSuper(); break; case 369 : if (DEBUG) { System.out.println("ArrayAccess ::= Name LBRACKET Expression RBRACKET"); } //$NON-NLS-1$ consumeArrayAccess(true); break; case 370 : if (DEBUG) { System.out.println("ArrayAccess ::= PrimaryNoNewArray LBRACKET Expression..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 371 : if (DEBUG) { System.out.println("ArrayAccess ::= ArrayCreationWithArrayInitializer..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 373 : if (DEBUG) { System.out.println("PostfixExpression ::= Name"); } //$NON-NLS-1$ consumePostfixExpression(); break; case 376 : if (DEBUG) { System.out.println("PostIncrementExpression ::= PostfixExpression PLUS_PLUS"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,true); break; case 377 : if (DEBUG) { System.out.println("PostDecrementExpression ::= PostfixExpression..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,true); break; case 378 : if (DEBUG) { System.out.println("PushPosition ::="); } //$NON-NLS-1$ consumePushPosition(); break; case 381 : if (DEBUG) { System.out.println("UnaryExpression ::= PLUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 382 : if (DEBUG) { System.out.println("UnaryExpression ::= MINUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 384 : if (DEBUG) { System.out.println("PreIncrementExpression ::= PLUS_PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,false); break; case 385 : if (DEBUG) { System.out.println("PreDecrementExpression ::= MINUS_MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,false); break; case 387 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= TWIDDLE PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 388 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= NOT PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 390 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN PrimitiveType Dimsopt..."); } //$NON-NLS-1$ consumeCastExpressionWithPrimitiveType(); break; case 391 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithGenericsArray(); break; case 392 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithQualifiedGenericsArray(); break; case 393 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionLL1(); break; case 394 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name Dims PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionWithNameArray(); break; case 395 : if (DEBUG) { System.out.println("OnlyTypeArgumentsForCastExpression ::= OnlyTypeArguments"); } //$NON-NLS-1$ consumeOnlyTypeArgumentsForCastExpression(); break; case 396 : if (DEBUG) { System.out.println("InsideCastExpression ::="); } //$NON-NLS-1$ consumeInsideCastExpression(); break; case 397 : if (DEBUG) { System.out.println("InsideCastExpressionLL1 ::="); } //$NON-NLS-1$ consumeInsideCastExpressionLL1(); break; case 398 : if (DEBUG) { System.out.println("InsideCastExpressionWithQualifiedGenerics ::="); } //$NON-NLS-1$ consumeInsideCastExpressionWithQualifiedGenerics(); break; case 400 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 401 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 402 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 404 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression PLUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 405 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression MINUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 407 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 408 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 409 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 411 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 412 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression GREATER..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 413 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS_EQUAL"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 414 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 416 : if (DEBUG) { System.out.println("InstanceofExpression ::= InstanceofExpression instanceof"); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 418 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 419 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 421 : if (DEBUG) { System.out.println("AndExpression ::= AndExpression AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 423 : if (DEBUG) { System.out.println("ExclusiveOrExpression ::= ExclusiveOrExpression XOR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 425 : if (DEBUG) { System.out.println("InclusiveOrExpression ::= InclusiveOrExpression OR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 427 : if (DEBUG) { System.out.println("ConditionalAndExpression ::= ConditionalAndExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 429 : if (DEBUG) { System.out.println("ConditionalOrExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 431 : if (DEBUG) { System.out.println("ConditionalExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 434 : if (DEBUG) { System.out.println("Assignment ::= PostfixExpression AssignmentOperator..."); } //$NON-NLS-1$ consumeAssignment(); break; case 436 : if (DEBUG) { System.out.println("Assignment ::= InvalidArrayInitializerAssignement"); } //$NON-NLS-1$ ignoreExpressionAssignment(); break; case 437 : if (DEBUG) { System.out.println("AssignmentOperator ::= EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(EQUAL); break; case 438 : if (DEBUG) { System.out.println("AssignmentOperator ::= MULTIPLY_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MULTIPLY); break; case 439 : if (DEBUG) { System.out.println("AssignmentOperator ::= DIVIDE_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(DIVIDE); break; case 440 : if (DEBUG) { System.out.println("AssignmentOperator ::= REMAINDER_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(REMAINDER); break; case 441 : if (DEBUG) { System.out.println("AssignmentOperator ::= PLUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(PLUS); break; case 442 : if (DEBUG) { System.out.println("AssignmentOperator ::= MINUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MINUS); break; case 443 : if (DEBUG) { System.out.println("AssignmentOperator ::= LEFT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(LEFT_SHIFT); break; case 444 : if (DEBUG) { System.out.println("AssignmentOperator ::= RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(RIGHT_SHIFT); break; case 445 : if (DEBUG) { System.out.println("AssignmentOperator ::= UNSIGNED_RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(UNSIGNED_RIGHT_SHIFT); break; case 446 : if (DEBUG) { System.out.println("AssignmentOperator ::= AND_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(AND); break; case 447 : if (DEBUG) { System.out.println("AssignmentOperator ::= XOR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(XOR); break; case 448 : if (DEBUG) { System.out.println("AssignmentOperator ::= OR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(OR); break; case 452 : if (DEBUG) { System.out.println("Expressionopt ::="); } //$NON-NLS-1$ consumeEmptyExpression(); break; case 457 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyClassBodyDeclarationsopt(); break; case 458 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeClassBodyDeclarationsopt(); break; case 459 : if (DEBUG) { System.out.println("Modifiersopt ::="); } //$NON-NLS-1$ consumeDefaultModifiers(); break; case 460 : if (DEBUG) { System.out.println("Modifiersopt ::= Modifiers"); } //$NON-NLS-1$ consumeModifiers(); break; case 461 : if (DEBUG) { System.out.println("BlockStatementsopt ::="); } //$NON-NLS-1$ consumeEmptyBlockStatementsopt(); break; case 463 : if (DEBUG) { System.out.println("Dimsopt ::="); } //$NON-NLS-1$ consumeEmptyDimsopt(); break; case 465 : if (DEBUG) { System.out.println("ArgumentListopt ::="); } //$NON-NLS-1$ consumeEmptyArgumentListopt(); break; case 469 : if (DEBUG) { System.out.println("FormalParameterListopt ::="); } //$NON-NLS-1$ consumeFormalParameterListopt(); break; case 473 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclarationsopt(); break; case 474 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarationsopt(); break; case 475 : if (DEBUG) { System.out.println("NestedType ::="); } //$NON-NLS-1$ consumeNestedType(); break; case 476 : if (DEBUG) { System.out.println("ForInitopt ::="); } //$NON-NLS-1$ consumeEmptyForInitopt(); break; case 478 : if (DEBUG) { System.out.println("ForUpdateopt ::="); } //$NON-NLS-1$ consumeEmptyForUpdateopt(); break; case 482 : if (DEBUG) { System.out.println("Catchesopt ::="); } //$NON-NLS-1$ consumeEmptyCatchesopt(); break; case 484 : if (DEBUG) { System.out.println("EnumDeclaration ::= EnumHeader ClassHeaderImplementsopt"); } //$NON-NLS-1$ consumeEnumDeclaration(); break; case 485 : if (DEBUG) { System.out.println("EnumHeader ::= Modifiersopt enum Identifier"); } //$NON-NLS-1$ consumeEnumHeader(); break; case 486 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumBodyDeclarationsopt RBRACE"); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 487 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE COMMA EnumBodyDeclarationsopt..."); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 488 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants COMMA..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 489 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 491 : if (DEBUG) { System.out.println("EnumConstants ::= EnumConstants COMMA EnumConstant"); } //$NON-NLS-1$ consumeEnumConstants(); break; case 492 : if (DEBUG) { System.out.println("EnumConstantHeader ::= Identifier Argumentsopt"); } //$NON-NLS-1$ consumeEnumConstantHeader(); break; case 493 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader ClassBody"); } //$NON-NLS-1$ consumeEnumConstantWithClassBody(); break; case 494 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader"); } //$NON-NLS-1$ consumeEnumConstantNoClassBody(); break; case 495 : if (DEBUG) { System.out.println("Arguments ::= LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeArguments(); break; case 496 : if (DEBUG) { System.out.println("Argumentsopt ::="); } //$NON-NLS-1$ consumeEmptyArguments(); break; case 498 : if (DEBUG) { System.out.println("EnumDeclarations ::= SEMICOLON ClassBodyDeclarationsopt"); } //$NON-NLS-1$ consumeEnumDeclarations(); break; case 499 : if (DEBUG) { System.out.println("EnumBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyEnumDeclarations(); break; case 501 : if (DEBUG) { System.out.println("EnhancedForStatement ::= EnhancedForStatementHeader..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 502 : if (DEBUG) { System.out.println("EnhancedForStatementNoShortIf ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 503 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Type..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(false); break; case 504 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Modifiers Type"); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(true); break; case 505 : if (DEBUG) { System.out.println("SingleStaticImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 506 : if (DEBUG) { System.out.println("SingleStaticImportDeclarationName ::= import static Name"); } //$NON-NLS-1$ consumeSingleStaticImportDeclarationName(); break; case 507 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 508 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclarationName ::= import static..."); } //$NON-NLS-1$ consumeStaticImportOnDemandDeclarationName(); break; case 509 : if (DEBUG) { System.out.println("TypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeTypeArguments(); break; case 510 : if (DEBUG) { System.out.println("OnlyTypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeOnlyTypeArguments(); break; case 512 : if (DEBUG) { System.out.println("TypeArgumentList1 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList1(); break; case 514 : if (DEBUG) { System.out.println("TypeArgumentList ::= TypeArgumentList COMMA TypeArgument"); } //$NON-NLS-1$ consumeTypeArgumentList(); break; case 515 : if (DEBUG) { System.out.println("TypeArgument ::= ReferenceType"); } //$NON-NLS-1$ consumeTypeArgument(); break; case 519 : if (DEBUG) { System.out.println("ReferenceType1 ::= ReferenceType GREATER"); } //$NON-NLS-1$ consumeReferenceType1(); break; case 520 : if (DEBUG) { System.out.println("ReferenceType1 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType1(); break; case 522 : if (DEBUG) { System.out.println("TypeArgumentList2 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList2(); break; case 525 : if (DEBUG) { System.out.println("ReferenceType2 ::= ReferenceType RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType2(); break; case 526 : if (DEBUG) { System.out.println("ReferenceType2 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType2(); break; case 528 : if (DEBUG) { System.out.println("TypeArgumentList3 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList3(); break; case 531 : if (DEBUG) { System.out.println("ReferenceType3 ::= ReferenceType UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType3(); break; case 532 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION"); } //$NON-NLS-1$ consumeWildcard(); break; case 533 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION WildcardBounds"); } //$NON-NLS-1$ consumeWildcardWithBounds(); break; case 534 : if (DEBUG) { System.out.println("WildcardBounds ::= extends ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsExtends(); break; case 535 : if (DEBUG) { System.out.println("WildcardBounds ::= super ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsSuper(); break; case 536 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION GREATER"); } //$NON-NLS-1$ consumeWildcard1(); break; case 537 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION WildcardBounds1"); } //$NON-NLS-1$ consumeWildcard1WithBounds(); break; case 538 : if (DEBUG) { System.out.println("WildcardBounds1 ::= extends ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Extends(); break; case 539 : if (DEBUG) { System.out.println("WildcardBounds1 ::= super ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Super(); break; case 540 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard2(); break; case 541 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION WildcardBounds2"); } //$NON-NLS-1$ consumeWildcard2WithBounds(); break; case 542 : if (DEBUG) { System.out.println("WildcardBounds2 ::= extends ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Extends(); break; case 543 : if (DEBUG) { System.out.println("WildcardBounds2 ::= super ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Super(); break; case 544 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard3(); break; case 545 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION WildcardBounds3"); } //$NON-NLS-1$ consumeWildcard3WithBounds(); break; case 546 : if (DEBUG) { System.out.println("WildcardBounds3 ::= extends ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Extends(); break; case 547 : if (DEBUG) { System.out.println("WildcardBounds3 ::= super ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Super(); break; case 548 : if (DEBUG) { System.out.println("TypeParameterHeader ::= Identifier"); } //$NON-NLS-1$ consumeTypeParameterHeader(); break; case 549 : if (DEBUG) { System.out.println("TypeParameters ::= LESS TypeParameterList1"); } //$NON-NLS-1$ consumeTypeParameters(); break; case 551 : if (DEBUG) { System.out.println("TypeParameterList ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList(); break; case 553 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtends(); break; case 554 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtendsAndBounds(); break; case 556 : if (DEBUG) { System.out.println("AdditionalBoundList ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList(); break; case 557 : if (DEBUG) { System.out.println("AdditionalBound ::= AND ReferenceType"); } //$NON-NLS-1$ consumeAdditionalBound(); break; case 559 : if (DEBUG) { System.out.println("TypeParameterList1 ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList1(); break; case 560 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader GREATER"); } //$NON-NLS-1$ consumeTypeParameter1(); break; case 561 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtends(); break; case 562 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtendsAndBounds(); break; case 564 : if (DEBUG) { System.out.println("AdditionalBoundList1 ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList1(); break; case 565 : if (DEBUG) { System.out.println("AdditionalBound1 ::= AND ReferenceType1"); } //$NON-NLS-1$ consumeAdditionalBound1(); break; case 571 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 572 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 575 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= TWIDDLE..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 576 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= NOT PushPosition"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 579 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 580 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name MULTIPLY..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MULTIPLY); break; case 581 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 582 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name DIVIDE..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.DIVIDE); break; case 583 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 584 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name REMAINDER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.REMAINDER); break; case 586 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 587 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name PLUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.PLUS); break; case 588 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 589 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name MINUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MINUS); break; case 591 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 592 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LEFT_SHIFT); break; case 593 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 594 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.RIGHT_SHIFT); break; case 595 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 596 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name UNSIGNED_RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 598 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 599 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS); break; case 600 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 601 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER); break; case 602 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 603 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS_EQUAL); break; case 604 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 605 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER_EQUAL); break; case 607 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::= Name instanceof..."); } //$NON-NLS-1$ consumeInstanceOfExpressionWithName(OperatorIds.INSTANCEOF); break; case 608 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::=..."); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 610 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 611 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.EQUAL_EQUAL); break; case 612 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 613 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.NOT_EQUAL); break; case 615 : if (DEBUG) { System.out.println("AndExpression_NotName ::= AndExpression_NotName AND..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 616 : if (DEBUG) { System.out.println("AndExpression_NotName ::= Name AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND); break; case 618 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 619 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::= Name XOR AndExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.XOR); break; case 621 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 622 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::= Name OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR); break; case 624 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 625 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::= Name AND_AND..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND_AND); break; case 627 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 628 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::= Name OR_OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR_OR); break; case 630 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 631 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::= Name QUESTION..."); } //$NON-NLS-1$ consumeConditionalExpressionWithName(OperatorIds.QUESTIONCOLON) ; break; case 635 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::= Modifiers AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 636 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::= AT PushModifiers..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 637 : if (DEBUG) { System.out.println("AnnotationTypeDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclaration() ; break; case 639 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyAnnotationTypeMemberDeclarationsopt() ; break; case 642 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarations() ; break; case 643 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationHeader ::= Modifiersopt"); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarationHeader() ; break; case 644 : if (DEBUG) { System.out.println("AnnotationTypeMemberHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeAnnotationTypeMemberHeaderExtendedDims() ; break; case 645 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclaration() ; break; case 648 : if (DEBUG) { System.out.println("DefaultValueopt ::="); } //$NON-NLS-1$ consumeEmptyDefaultValue() ; break; case 654 : if (DEBUG) { System.out.println("NormalAnnotation ::= AT Name LPAREN MemberValuePairsopt"); } //$NON-NLS-1$ consumeNormalAnnotation() ; break; case 655 : if (DEBUG) { System.out.println("MemberValuePairsopt ::="); } //$NON-NLS-1$ consumeEmptyMemberValuePairsopt() ; break; case 658 : if (DEBUG) { System.out.println("MemberValuePairs ::= MemberValuePairs COMMA..."); } //$NON-NLS-1$ consumeMemberValuePairs() ; break; case 659 : if (DEBUG) { System.out.println("MemberValuePair ::= SimpleName EQUAL MemberValue"); } //$NON-NLS-1$ consumeMemberValuePair() ; break; case 661 : if (DEBUG) { System.out.println("MemberValue ::= Name"); } //$NON-NLS-1$ consumeMemberValueAsName() ; break; case 664 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 665 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 666 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 667 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 669 : if (DEBUG) { System.out.println("MemberValues ::= MemberValues COMMA MemberValue"); } //$NON-NLS-1$ consumeMemberValues() ; break; case 670 : if (DEBUG) { System.out.println("MarkerAnnotation ::= AT Name"); } //$NON-NLS-1$ consumeMarkerAnnotation() ; break; case 671 : if (DEBUG) { System.out.println("SingleMemberAnnotation ::= AT Name LPAREN MemberValue..."); } //$NON-NLS-1$ consumeSingleMemberAnnotation() ; break; }} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/824f8fe833a1ba72b3abeaae68c054814da34c63/Parser.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
10659,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
9840,
559,
5621,
26924,
202,
8820,
31,
377,
648,
8063,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
2404,
559,
493,
33,
1659,
1162,
1358,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
2404,
559,
5621,
565,
1082,
202,
8820,
31,
377,
648,
13291,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
1770,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
797,
1162,
24730,
5621,
565,
1082,
202,
8820,
31,
377,
648,
12292,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
7928,
559,
15772,
1770,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
797,
1162,
1358,
5621,
565,
1082,
202,
8820,
31,
377,
648,
17077,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
30982,
493,
33,
1659,
1162,
1358,
1412,
4628,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
30982,
5621,
565,
1082,
202,
8820,
31,
377,
648,
17495,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
27182,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
10659,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
9840,
559,
5621,
26924,
202,
8820,
31,
377,
648,
8063,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
2404,
559,
493,
33,
1659,
1162,
1358,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
2404,
559,
5621,
565,
1082,
202,
8820,
31,
377,
648,
13291,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
2
] |
private void filterCR (boolean moreData) { int i, j; | private void filterCR(boolean moreData) { int i, j; | private void filterCR (boolean moreData) { int i, j; readBufferOverflow = -1;loop: for (i = j = readBufferPos; j < readBufferLength; i++, j++) { switch (readBuffer [j]) { case '\r': if (j == readBufferLength - 1) { if (moreData) { readBufferOverflow = '\r'; readBufferLength--; } else // CR at end of buffer readBuffer [i++] = '\n'; break loop; } else if (readBuffer [j + 1] == '\n') { j++; } readBuffer [i] = '\n'; break; case '\n': default: readBuffer [i] = readBuffer [j]; break; } } readBufferLength = i; } | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/clean/libjava/gnu/xml/aelfred2/XmlParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1034,
5093,
261,
6494,
1898,
751,
13,
565,
288,
202,
474,
277,
16,
525,
31,
202,
896,
1892,
15526,
273,
300,
21,
31,
6498,
30,
202,
1884,
261,
77,
273,
525,
273,
31404,
1616,
31,
525,
411,
31404,
1782,
31,
277,
9904,
16,
525,
27245,
288,
202,
565,
1620,
261,
896,
1892,
306,
78,
5717,
288,
202,
565,
648,
2337,
86,
4278,
202,
202,
430,
261,
78,
422,
31404,
1782,
300,
404,
13,
288,
1082,
565,
309,
261,
10161,
751,
13,
288,
1082,
202,
896,
1892,
15526,
273,
2337,
86,
13506,
1082,
202,
896,
1892,
1782,
413,
31,
1082,
565,
289,
469,
225,
202,
759,
6732,
622,
679,
434,
1613,
1082,
202,
896,
1892,
306,
77,
9904,
65,
273,
2337,
82,
13506,
1082,
565,
898,
2798,
31,
202,
202,
97,
469,
309,
261,
896,
1892,
306,
78,
397,
404,
65,
422,
2337,
82,
6134,
288,
1082,
565,
525,
9904,
31,
202,
202,
97,
202,
202,
896,
1892,
306,
77,
65,
273,
2337,
82,
13506,
202,
202,
8820,
31,
202,
565,
648,
2337,
82,
4278,
202,
565,
805,
30,
202,
202,
896,
1892,
306,
77,
65,
273,
31404,
306,
78,
15533,
202,
202,
8820,
31,
202,
565,
289,
202,
97,
202,
896,
1892,
1782,
273,
277,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1034,
5093,
261,
6494,
1898,
751,
13,
565,
288,
202,
474,
277,
16,
525,
31,
202,
896,
1892,
15526,
273,
300,
21,
31,
6498,
30,
202,
1884,
261,
77,
273,
525,
273,
31404,
1616,
31,
525,
411,
31404,
1782,
31,
277,
9904,
16,
525,
27245,
288,
202,
565,
1620,
261,
896,
1892,
306,
78,
5717,
288,
202,
565,
648,
2337,
86,
4278,
202,
202,
430,
261,
78,
422,
31404,
1782,
300,
404,
13,
288,
1082,
565,
309,
261,
10161,
751,
13,
288,
1082,
202,
896,
1892,
15526,
273,
2337,
86,
13506,
1082,
202,
896,
1892,
1782,
413,
31,
1082,
565,
289,
469,
225,
202,
759,
6732,
622,
679,
434,
1613,
1082,
202,
896,
1892,
306,
77,
2
] |
setModified(true); | public void setType(String type) { if (((type == null) && (_type != null)) || ((type != null) && (_type == null)) || ((type != null) && (_type != null) && !type.equals(_type))) { if (!XSS_ALLOW_TYPE) { type = XSSUtil.strip(type); } _type = type; setModified(true); } } | 53908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53908/f4d6afc6707f57fd84bf6b624f0c119657b0a766/AccountModel.java/buggy/portal-ejb/src/com/liferay/portal/model/AccountModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
8811,
12,
780,
618,
13,
288,
202,
202,
430,
261,
12443,
723,
422,
446,
13,
597,
261,
67,
723,
480,
446,
3719,
747,
9506,
202,
12443,
723,
480,
446,
13,
597,
261,
67,
723,
422,
446,
3719,
747,
9506,
202,
12443,
723,
480,
446,
13,
597,
261,
67,
723,
480,
446,
13,
597,
401,
723,
18,
14963,
24899,
723,
20349,
288,
1082,
202,
430,
16051,
60,
1260,
67,
13511,
67,
2399,
13,
288,
9506,
202,
723,
273,
1139,
1260,
1304,
18,
6406,
12,
723,
1769,
1082,
202,
97,
1082,
202,
67,
723,
273,
618,
31,
1082,
202,
542,
4575,
12,
3767,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
202,
482,
918,
8811,
12,
780,
618,
13,
288,
202,
202,
430,
261,
12443,
723,
422,
446,
13,
597,
261,
67,
723,
480,
446,
3719,
747,
9506,
202,
12443,
723,
480,
446,
13,
597,
261,
67,
723,
422,
446,
3719,
747,
9506,
202,
12443,
723,
480,
446,
13,
597,
261,
67,
723,
480,
446,
13,
597,
401,
723,
18,
14963,
24899,
723,
20349,
288,
1082,
202,
430,
16051,
60,
1260,
67,
13511,
67,
2399,
13,
288,
9506,
202,
723,
273,
1139,
1260,
1304,
18,
6406,
12,
723,
1769,
1082,
202,
97,
1082,
202,
67,
723,
273,
618,
31,
1082,
202,
542,
4575,
12,
3767,
1769,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if (maxTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension(maxTotalColumnWidth, table.getRowCount()* (table.getRowHeight()+table.getRowMargin())); | return new Dimension(maxTotalColumnWidth, getHeight()); | public Dimension getMaximumSize(JComponent comp) { int maxTotalColumnWidth = 0; for (int i = 0; i < table.getColumnCount(); i++) maxTotalColumnWidth += table.getColumnModel().getColumn(i).getMaxWidth(); if (maxTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension(maxTotalColumnWidth, table.getRowCount()* (table.getRowHeight()+table.getRowMargin())); } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/122427138f4d924215b30873df181d33176d2e84/BasicTableUI.java/clean/javax/swing/plaf/basic/BasicTableUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13037,
25194,
1225,
12,
46,
1841,
1161,
13,
282,
288,
565,
509,
943,
5269,
1494,
2384,
273,
374,
31,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1014,
18,
588,
1494,
1380,
5621,
277,
27245,
1377,
943,
5269,
1494,
2384,
1011,
1014,
18,
588,
1494,
1488,
7675,
588,
1494,
12,
77,
2934,
588,
2747,
2384,
5621,
565,
309,
261,
1896,
5269,
1494,
2384,
422,
374,
747,
1014,
18,
588,
26359,
1435,
422,
374,
13,
1377,
327,
446,
31,
565,
327,
394,
13037,
12,
1896,
5269,
1494,
2384,
16,
1014,
18,
588,
26359,
1435,
14,
7682,
261,
2121,
18,
588,
1999,
2686,
1435,
15,
2121,
18,
588,
1999,
9524,
1435,
10019,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13037,
25194,
1225,
12,
46,
1841,
1161,
13,
282,
288,
565,
509,
943,
5269,
1494,
2384,
273,
374,
31,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1014,
18,
588,
1494,
1380,
5621,
277,
27245,
1377,
943,
5269,
1494,
2384,
1011,
1014,
18,
588,
1494,
1488,
7675,
588,
1494,
12,
77,
2934,
588,
2747,
2384,
5621,
565,
309,
261,
1896,
5269,
1494,
2384,
422,
374,
747,
1014,
18,
588,
26359,
1435,
422,
374,
13,
1377,
327,
446,
31,
565,
327,
394,
13037,
12,
1896,
5269,
1494,
2384,
16,
1014,
18,
588,
26359,
1435,
14,
7682,
261,
2121,
18,
588,
1999,
2686,
1435,
15,
2121,
18,
588,
1999,
9524,
1435,
10019,
225,
289,
2,
-100,
-100,
-100
] |
{ | { | public byte [] getSourceBytes(){ byte [] result = null; myFactory.throwExceptionIfNotInitialized(); String HTMLContent = new String(); String currURL = getCurrentURL(); System.out.println("\nThe Current URL is -- " + currURL); try { URL aURL = new URL(currURL); URLConnection connection = aURL.openConnection(); connection.connect(); BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream())); boolean more = true; while (more) { String line = in.readLine(); if (line == null) more = false; else { HTMLContent = HTMLContent + line; } } } catch (Throwable e) { System.out.println("Error occurred while establishing connection -- \n ERROR - " + e); } result = HTMLContent.getBytes(); return result;} | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/afee19ff581e3d13844917014bf035cd25e515ae/CurrentPageImpl.java/buggy/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/CurrentPageImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1160,
5378,
7889,
2160,
1435,
95,
565,
1160,
5378,
563,
273,
446,
31,
565,
3399,
1733,
18,
12849,
503,
10288,
11459,
5621,
5411,
514,
3982,
1350,
273,
394,
514,
5621,
565,
514,
4306,
1785,
273,
5175,
1785,
5621,
565,
2332,
18,
659,
18,
8222,
31458,
82,
1986,
6562,
1976,
353,
1493,
315,
397,
4306,
1785,
1769,
565,
775,
288,
3639,
1976,
279,
1785,
273,
394,
1976,
12,
17016,
1785,
1769,
3639,
1976,
1952,
1459,
273,
279,
1785,
18,
3190,
1952,
5621,
3639,
1459,
18,
3612,
5621,
3639,
10633,
316,
273,
394,
10633,
12,
2704,
15322,
12,
4071,
18,
588,
4348,
1435,
10019,
3639,
1250,
1898,
273,
638,
31,
3639,
1323,
261,
10161,
13,
5411,
288,
7734,
514,
980,
273,
316,
18,
896,
1670,
5621,
7734,
309,
261,
1369,
422,
446,
13,
1898,
273,
629,
31,
7734,
469,
10792,
288,
13491,
3982,
1350,
273,
3982,
1350,
397,
980,
31,
10792,
289,
5411,
289,
565,
289,
565,
1044,
261,
15155,
425,
13,
225,
202,
95,
3639,
2332,
18,
659,
18,
8222,
2932,
668,
7841,
1323,
18312,
310,
1459,
1493,
521,
82,
5475,
300,
315,
397,
425,
1769,
225,
202,
97,
565,
563,
273,
3982,
1350,
18,
588,
2160,
5621,
565,
327,
563,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1160,
5378,
7889,
2160,
1435,
95,
565,
1160,
5378,
563,
273,
446,
31,
565,
3399,
1733,
18,
12849,
503,
10288,
11459,
5621,
5411,
514,
3982,
1350,
273,
394,
514,
5621,
565,
514,
4306,
1785,
273,
5175,
1785,
5621,
565,
2332,
18,
659,
18,
8222,
31458,
82,
1986,
6562,
1976,
353,
1493,
315,
397,
4306,
1785,
1769,
565,
775,
288,
3639,
1976,
279,
1785,
273,
394,
1976,
12,
17016,
1785,
1769,
3639,
1976,
1952,
1459,
273,
279,
1785,
18,
3190,
1952,
5621,
3639,
1459,
18,
3612,
5621,
3639,
10633,
316,
273,
394,
10633,
12,
2704,
15322,
12,
4071,
18,
588,
4348,
1435,
10019,
3639,
1250,
1898,
273,
638,
31,
3639,
1323,
261,
10161,
13,
5411,
288,
7734,
514,
980,
2
] |
&& (getBufferCount() == 0 || | && (count == 0 || | public void run() { Buffer buffer = openFiles(null,userDir,args); int count = getBufferCount(); if(count == 0) newFile(null); View view = null; boolean restoreFiles = restore && jEdit.getBooleanProperty("restore") && (getBufferCount() == 0 || jEdit.getBooleanProperty("restore.cli")); if(gui || count != 0) { view = PerspectiveManager .loadPerspective( restoreFiles); if(view == null) view = newView(null,buffer); else if(buffer != null) view.setBuffer(buffer); } // Start I/O threads EditBus.send(new EditorStarted(null)); VFSManager.start(); // Start edit server if(server != null) server.start(); GUIUtilities.hideSplashScreen(); Log.log(Log.MESSAGE,jEdit.class,"Startup " + "complete"); //{{{ Report any plugin errors if(pluginErrors != null) { showPluginErrorDialog(); } //}}} startupDone = true; // in one case not a single AWT class will // have been touched (splash screen off + // -nogui -nobackground switches on command // line) Toolkit.getDefaultToolkit(); } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/716387b3523a71db5d39252bab0d6b3cb9e9736b/jEdit.java/buggy/org/gjt/sp/jedit/jEdit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
1082,
202,
95,
9506,
202,
1892,
1613,
273,
1696,
2697,
12,
2011,
16,
1355,
1621,
16,
1968,
1769,
9506,
202,
474,
1056,
273,
22238,
1380,
5621,
9506,
202,
430,
12,
1883,
422,
374,
13,
6862,
202,
2704,
812,
12,
2011,
1769,
9506,
202,
1767,
1476,
273,
446,
31,
9506,
202,
6494,
5217,
2697,
273,
5217,
6862,
202,
10,
10,
525,
4666,
18,
588,
5507,
1396,
2932,
13991,
7923,
6862,
202,
10,
10,
261,
588,
1892,
1380,
1435,
422,
374,
747,
6862,
202,
78,
4666,
18,
588,
5507,
1396,
2932,
13991,
18,
4857,
7923,
1769,
9506,
202,
430,
12,
20292,
747,
1056,
480,
374,
13,
9506,
202,
95,
6862,
202,
1945,
273,
453,
414,
16772,
1318,
25083,
202,
18,
945,
14781,
16772,
12,
25083,
202,
13991,
2697,
1769,
6862,
202,
430,
12,
1945,
422,
446,
13,
25083,
202,
1945,
273,
394,
1767,
12,
2011,
16,
4106,
1769,
6862,
202,
12107,
309,
12,
4106,
480,
446,
13,
25083,
202,
1945,
18,
542,
1892,
12,
4106,
1769,
9506,
202,
97,
9506,
202,
759,
3603,
467,
19,
51,
7403,
9506,
202,
4666,
7086,
18,
4661,
12,
2704,
18451,
9217,
12,
2011,
10019,
9506,
202,
58,
4931,
1318,
18,
1937,
5621,
9506,
202,
759,
3603,
3874,
1438,
9506,
202,
430,
12,
3567,
480,
446,
13,
6862,
202,
3567,
18,
1937,
5621,
9506,
202,
43,
5370,
11864,
18,
11248,
16881,
961,
7956,
5621,
9506,
202,
1343,
18,
1330,
12,
1343,
18,
8723,
16,
78,
4666,
18,
1106,
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,
1875,
202,
482,
918,
1086,
1435,
1082,
202,
95,
9506,
202,
1892,
1613,
273,
1696,
2697,
12,
2011,
16,
1355,
1621,
16,
1968,
1769,
9506,
202,
474,
1056,
273,
22238,
1380,
5621,
9506,
202,
430,
12,
1883,
422,
374,
13,
6862,
202,
2704,
812,
12,
2011,
1769,
9506,
202,
1767,
1476,
273,
446,
31,
9506,
202,
6494,
5217,
2697,
273,
5217,
6862,
202,
10,
10,
525,
4666,
18,
588,
5507,
1396,
2932,
13991,
7923,
6862,
202,
10,
10,
261,
588,
1892,
1380,
1435,
422,
374,
747,
6862,
202,
78,
4666,
18,
588,
5507,
1396,
2932,
13991,
18,
4857,
7923,
1769,
9506,
202,
430,
12,
20292,
747,
1056,
480,
374,
13,
9506,
202,
95,
6862,
202,
1945,
273,
453,
414,
2
] |
throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Missing field: Filename on "+name, identifier); | throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Missing field: Filename on "+name, identifier, global); | public DiskDirPutFile(SimpleFieldSet subset, String identifier) throws MessageInvalidException { super(subset, identifier); String s = subset.get("Filename"); if(s == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Missing field: Filename on "+name, identifier); file = new File(s); } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/DiskDirPutFile.java/clean/src/freenet/node/fcp/DiskDirPutFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12951,
1621,
6426,
812,
12,
5784,
974,
694,
7931,
16,
514,
2756,
13,
1216,
2350,
1941,
503,
288,
202,
202,
9565,
12,
15657,
16,
2756,
1769,
202,
202,
780,
272,
273,
7931,
18,
588,
2932,
5359,
8863,
202,
202,
430,
12,
87,
422,
446,
13,
1082,
202,
12849,
394,
2350,
1941,
503,
12,
5752,
14935,
18,
19466,
67,
6776,
16,
315,
4841,
652,
30,
16671,
603,
13773,
529,
16,
2756,
1769,
202,
202,
768,
273,
394,
1387,
12,
87,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12951,
1621,
6426,
812,
12,
5784,
974,
694,
7931,
16,
514,
2756,
13,
1216,
2350,
1941,
503,
288,
202,
202,
9565,
12,
15657,
16,
2756,
1769,
202,
202,
780,
272,
273,
7931,
18,
588,
2932,
5359,
8863,
202,
202,
430,
12,
87,
422,
446,
13,
1082,
202,
12849,
394,
2350,
1941,
503,
12,
5752,
14935,
18,
19466,
67,
6776,
16,
315,
4841,
652,
30,
16671,
603,
13773,
529,
16,
2756,
1769,
202,
202,
768,
273,
394,
1387,
12,
87,
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
] |
System.out.println(); | buf.append("\n"); | void print(boolean dump) { System.out.println(toString()); for (Enumeration e = questions.elements() ; e.hasMoreElements() ;) { System.out.println(" ques:" + e.nextElement()); } int count=0; for (Enumeration e = answers.elements() ; e.hasMoreElements() ;count++) { if (count < numAnswers) { System.out.print(" answ:"); } else if (count < numAnswers + numAuthorities) { System.out.print(" auth:"); } else { System.out.print(" addi:"); } System.out.println(e.nextElement()); } if (dump) { for (int off = 0, len = packet.getLength() ; off < len ; off += 32) { int n = Math.min(32, len - off); if (off < 10) { System.out.print(' '); } if (off < 100) { System.out.print(' '); } System.out.print(off); System.out.print(':'); for (int i = 0 ; i < n ; i++) { if ((i % 8) == 0) { System.out.print(' '); } System.out.print(Integer.toHexString((data[off + i] & 0xF0) >> 4)); System.out.print(Integer.toHexString((data[off + i] & 0x0F) >> 0)); } System.out.println(); System.out.print(" "); for (int i = 0 ; i < n ; i++) { if ((i % 8) == 0) { System.out.print(' '); } System.out.print(' '); int ch = data[off + i] & 0xFF; System.out.print(((ch > ' ') && (ch < 127)) ? (char)ch : '.'); } System.out.println(); // limit message size if (off+32 >= 256) { System.out.println("...."); break; } } } } | 45694 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45694/2bacd6343e30965e7dfdd629570f2246a6f6078b/DNSIncoming.java/clean/jmdns/src/javax/jmdns/DNSIncoming.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1172,
12,
6494,
4657,
13,
288,
3639,
2332,
18,
659,
18,
8222,
12,
10492,
10663,
3639,
364,
261,
21847,
425,
273,
13494,
18,
6274,
1435,
274,
425,
18,
5332,
7417,
3471,
1435,
274,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
565,
719,
281,
2773,
397,
425,
18,
4285,
1046,
10663,
3639,
289,
3639,
509,
1056,
33,
20,
31,
3639,
364,
261,
21847,
425,
273,
12415,
18,
6274,
1435,
274,
425,
18,
5332,
7417,
3471,
1435,
274,
1883,
27245,
288,
5411,
309,
261,
1883,
411,
818,
19543,
13,
288,
7734,
2332,
18,
659,
18,
1188,
2932,
565,
4152,
91,
2773,
1769,
5411,
289,
469,
309,
261,
1883,
411,
818,
19543,
397,
818,
3594,
1961,
13,
288,
7734,
2332,
18,
659,
18,
1188,
2932,
565,
1357,
2773,
1769,
5411,
289,
469,
288,
7734,
2332,
18,
659,
18,
1188,
2932,
565,
527,
77,
2773,
1769,
5411,
289,
5411,
2332,
18,
659,
18,
8222,
12,
73,
18,
4285,
1046,
10663,
3639,
289,
3639,
309,
261,
8481,
13,
288,
5411,
364,
261,
474,
3397,
273,
374,
16,
562,
273,
4414,
18,
588,
1782,
1435,
274,
3397,
411,
562,
274,
3397,
1011,
3847,
13,
288,
7734,
509,
290,
273,
2361,
18,
1154,
12,
1578,
16,
562,
300,
3397,
1769,
7734,
309,
261,
3674,
411,
1728,
13,
288,
10792,
2332,
18,
659,
18,
1188,
2668,
28005,
7734,
289,
7734,
309,
261,
3674,
411,
2130,
13,
288,
10792,
2332,
18,
659,
18,
1188,
2668,
28005,
7734,
289,
7734,
2332,
18,
659,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1172,
12,
6494,
4657,
13,
288,
3639,
2332,
18,
659,
18,
8222,
12,
10492,
10663,
3639,
364,
261,
21847,
425,
273,
13494,
18,
6274,
1435,
274,
425,
18,
5332,
7417,
3471,
1435,
274,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
565,
719,
281,
2773,
397,
425,
18,
4285,
1046,
10663,
3639,
289,
3639,
509,
1056,
33,
20,
31,
3639,
364,
261,
21847,
425,
273,
12415,
18,
6274,
1435,
274,
425,
18,
5332,
7417,
3471,
1435,
274,
1883,
27245,
288,
5411,
309,
261,
1883,
411,
818,
19543,
13,
288,
7734,
2332,
18,
659,
18,
1188,
2932,
565,
4152,
91,
2773,
1769,
5411,
289,
469,
309,
261,
1883,
411,
818,
19543,
397,
818,
3594,
1961,
13,
288,
2
] |
messages.add( "The scm url must start with 'scm:'." ); | messages.add( "The scm url must start with 'scm'." ); | public List validateScmRepository( String scmUrl ) { List messages = new ArrayList(); if ( scmUrl == null ) { throw new NullPointerException( "The scm url cannot be null." ); } if ( !scmUrl.startsWith( "scm:" ) ) { messages.add( "The scm url must start with 'scm:'." ); return messages; } if ( scmUrl.length() < 6 ) { messages.add( ILLEGAL_SCM_URL ); return messages; } char delimiter; try { delimiter = findDelimiter( scmUrl ); } catch ( ScmRepositoryException e ) { messages.add( e.getMessage() ); return messages; } String providerType = scmUrl.substring( 4, scmUrl.indexOf( delimiter, 4 ) ); ScmProvider provider; try { provider = getProviderByType( providerType ); } catch ( NoSuchScmProviderException e ) { messages.add( "No such provider installed '" + providerType + "'." ); return messages; } String scmSpecificUrl = cleanScmUrl( scmUrl.substring( providerType.length() + 5 ) ); List providerMessages = provider.validateScmUrl( scmSpecificUrl, delimiter ); if ( providerMessages == null ) { throw new RuntimeException( "The SCM provider cannot return null from validateScmUrl()." ); } messages.addAll( providerMessages ); return messages; } | 48502 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48502/c68a19632315c0455d313cdc881af3aaedc349de/AbstractScmManager.java/buggy/maven-scm-api/src/main/java/org/apache/maven/scm/manager/AbstractScmManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
1954,
1541,
81,
3305,
12,
514,
29207,
1489,
262,
565,
288,
3639,
987,
2743,
273,
394,
2407,
5621,
3639,
309,
261,
29207,
1489,
422,
446,
262,
3639,
288,
5411,
604,
394,
10108,
12,
315,
1986,
29207,
880,
2780,
506,
446,
1199,
11272,
3639,
289,
3639,
309,
261,
401,
1017,
81,
1489,
18,
17514,
1190,
12,
315,
1017,
81,
2773,
262,
262,
3639,
288,
5411,
2743,
18,
1289,
12,
315,
1986,
29207,
880,
1297,
787,
598,
296,
1017,
81,
14550,
11272,
5411,
327,
2743,
31,
3639,
289,
3639,
309,
261,
29207,
1489,
18,
2469,
1435,
411,
1666,
262,
3639,
288,
5411,
2743,
18,
1289,
12,
467,
48,
19384,
1013,
67,
2312,
49,
67,
1785,
11272,
5411,
327,
2743,
31,
3639,
289,
3639,
1149,
5654,
31,
3639,
775,
3639,
288,
5411,
5654,
273,
1104,
12007,
12,
29207,
1489,
11272,
3639,
289,
3639,
1044,
261,
2850,
81,
3305,
503,
425,
262,
3639,
288,
5411,
2743,
18,
1289,
12,
425,
18,
24906,
1435,
11272,
5411,
327,
2743,
31,
3639,
289,
3639,
514,
2893,
559,
273,
29207,
1489,
18,
28023,
12,
1059,
16,
29207,
1489,
18,
31806,
12,
5654,
16,
1059,
262,
11272,
3639,
2850,
81,
2249,
2893,
31,
3639,
775,
3639,
288,
5411,
2893,
273,
16137,
14145,
12,
2893,
559,
11272,
3639,
289,
3639,
1044,
261,
5823,
1541,
81,
2249,
503,
425,
262,
3639,
288,
5411,
2743,
18,
1289,
12,
315,
2279,
4123,
2893,
5876,
2119,
397,
2893,
559,
397,
30156,
11272,
5411,
327,
2743,
31,
3639,
289,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
1954,
1541,
81,
3305,
12,
514,
29207,
1489,
262,
565,
288,
3639,
987,
2743,
273,
394,
2407,
5621,
3639,
309,
261,
29207,
1489,
422,
446,
262,
3639,
288,
5411,
604,
394,
10108,
12,
315,
1986,
29207,
880,
2780,
506,
446,
1199,
11272,
3639,
289,
3639,
309,
261,
401,
1017,
81,
1489,
18,
17514,
1190,
12,
315,
1017,
81,
2773,
262,
262,
3639,
288,
5411,
2743,
18,
1289,
12,
315,
1986,
29207,
880,
1297,
787,
598,
296,
1017,
81,
14550,
11272,
5411,
327,
2743,
31,
3639,
289,
3639,
309,
261,
29207,
1489,
18,
2469,
1435,
411,
1666,
262,
3639,
288,
5411,
2743,
18,
1289,
12,
467,
48,
19384,
1013,
67,
2312,
49,
67,
1785,
11272,
5411,
327,
2
] |
this.btnApproximate.setSelection( !getFormatSpecifier( ).isPrecise( ) ); this.btnApproximate.setEnabled( enabled ); | this.lblDelimiter.setEnabled( enabled ); this.lblPrefix.setEnabled( enabled ); this.lblSuffix.setEnabled( enabled ); | public void setEnabled( boolean enabled ) { this.btnApproximate.setSelection( !getFormatSpecifier( ).isPrecise( ) ); this.btnApproximate.setEnabled( enabled ); this.txtDelimiter.setEnabled( enabled ); this.txtPrefix.setEnabled( enabled ); this.txtSuffix.setEnabled( enabled ); this.btnUseNumerator.setEnabled( enabled && btnApproximate.getSelection( ) ); this.btnUseDenorminator.setEnabled( enabled && btnApproximate.getSelection( ) ); if ( getFormatSpecifier( ).getNumerator( ) > 0 ) { this.btnUseNumerator.setSelection( true ); this.btnUseDenorminator.setSelection( false ); } else { this.btnUseNumerator.setSelection( false ); this.btnUseDenorminator.setSelection( true ); } this.spnNumerator.setEnabled( enabled && btnApproximate.getSelection( ) && btnUseNumerator.getSelection( ) ); this.spnFractionDigits.setEnabled( enabled && btnApproximate.getSelection( ) && btnUseDenorminator.getSelection( ) ); super.setEnabled( enabled ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/a8cbb3bd39fd0de535656d42c24e44059a9ca11b/FormatSpecifierComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FormatSpecifierComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
12888,
12,
1250,
3696,
262,
202,
202,
95,
1082,
202,
2211,
18,
11898,
25789,
4988,
18,
542,
6233,
12,
401,
588,
1630,
21416,
12,
262,
18,
291,
1386,
30708,
12,
262,
11272,
1082,
202,
2211,
18,
11898,
25789,
4988,
18,
542,
1526,
12,
3696,
11272,
1082,
202,
2211,
18,
5830,
12007,
18,
542,
1526,
12,
3696,
11272,
1082,
202,
2211,
18,
5830,
2244,
18,
542,
1526,
12,
3696,
11272,
1082,
202,
2211,
18,
5830,
5791,
18,
542,
1526,
12,
3696,
11272,
1082,
202,
2211,
18,
11898,
3727,
2578,
7385,
18,
542,
1526,
12,
3696,
6862,
202,
10,
10,
10638,
25789,
4988,
18,
588,
6233,
12,
262,
11272,
1082,
202,
2211,
18,
11898,
3727,
8517,
535,
4240,
18,
542,
1526,
12,
3696,
6862,
202,
10,
10,
10638,
25789,
4988,
18,
588,
6233,
12,
262,
11272,
1082,
202,
430,
261,
10959,
21416,
12,
262,
18,
588,
2578,
7385,
12,
262,
405,
374,
262,
1082,
202,
95,
9506,
202,
2211,
18,
11898,
3727,
2578,
7385,
18,
542,
6233,
12,
638,
11272,
9506,
202,
2211,
18,
11898,
3727,
8517,
535,
4240,
18,
542,
6233,
12,
629,
11272,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
2211,
18,
11898,
3727,
2578,
7385,
18,
542,
6233,
12,
629,
11272,
9506,
202,
2211,
18,
11898,
3727,
8517,
535,
4240,
18,
542,
6233,
12,
638,
11272,
1082,
202,
97,
1082,
202,
2211,
18,
1752,
82,
2578,
7385,
18,
542,
1526,
12,
3696,
6862,
202,
10,
10,
10638,
25789,
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,
12888,
12,
1250,
3696,
262,
202,
202,
95,
1082,
202,
2211,
18,
11898,
25789,
4988,
18,
542,
6233,
12,
401,
588,
1630,
21416,
12,
262,
18,
291,
1386,
30708,
12,
262,
11272,
1082,
202,
2211,
18,
11898,
25789,
4988,
18,
542,
1526,
12,
3696,
11272,
1082,
202,
2211,
18,
5830,
12007,
18,
542,
1526,
12,
3696,
11272,
1082,
202,
2211,
18,
5830,
2244,
18,
542,
1526,
12,
3696,
11272,
1082,
202,
2211,
18,
5830,
5791,
18,
542,
1526,
12,
3696,
11272,
1082,
202,
2211,
18,
11898,
3727,
2578,
7385,
18,
542,
1526,
12,
3696,
6862,
202,
10,
10,
10638,
25789,
4988,
18,
588,
6233,
12,
262,
11272,
1082,
202,
2211,
18,
11898,
3727,
8517,
535,
2
] |
} catch (IOException e) { e.printStackTrace(); } finally | } catch (IOException e) { e.printStackTrace(); } catch (RuntimeException e) { throw new ParserException(e); } finally | public void write(ElementsLists elements) { write = DataFile.createWriter("8859_2", true); write.setDataFormat(new CSVFormat()); DataRow row = null; if((report!=null) && (report.exists())) { report.delete(); } List ocs =elements.getElements(DomainObjectFactory.newObjectClass().getClass()); try { write.open(report); row = write.next(); row.add("UMLClass"); row.add("UMLEntity"); row.add("UMLDescription"); row.add("ConceptName"); row.add("ConceptPreferredName"); row.add("Classification"); row.add("ConceptCode"); row.add("ConceptDefinition"); row.add("ConceptDefinitionSource"); row.add("ModifiedDate"); row.add("HumanVerified"); for(ObjectClass oc : (List<ObjectClass>) ocs) { String className = oc.getLongName(); className = className.substring(className.lastIndexOf(".") + 1); String [] conceptCodes = oc.getPreferredName().split(":"); for(int i = conceptCodes.length-1; i > -1; i--) { row = write.next(); row.add(className); row.add(className); row.add(oc.getPreferredDefinition()); Concept con = LookupUtil.lookupConcept(conceptCodes[i]); if(con != null) { row.add(con.getLongName()); row.add(con.getLongName()); if(i == conceptCodes.length-1) row.add("ObjectClass"); else row.add("ObjectClassQualifier" + ((conceptCodes.length-1) - i)); row.add(con.getPreferredName()); row.add(con.getPreferredDefinition()); row.add(con.getDefinitionSource()); row.addEmpty(); row.add(reviewTracker.get(oc.getLongName())?"1":"0"); } } DataElementConcept o = DomainObjectFactory.newDataElementConcept(); List<DataElementConcept> decs = (List<DataElementConcept>) elements.getElements(o.getClass()); for(DataElementConcept dec : decs) { if(dec.getObjectClass().getLongName() .equals(oc.getLongName())) { String [] propConCodes = dec.getProperty().getPreferredName().split(":"); for(int i = propConCodes.length-1; i > -1; i--) { row = write.next(); row.add(className); row.add(dec.getProperty().getLongName()); String propDef = null; findDef: for(Definition def : (Collection<Definition>)dec.getDefinitions()) { if(def.getType().equals(Definition.TYPE_UML_DEC)) { propDef = def.getDefinition(); break findDef; } } if(propDef != null) row.add(propDef); else row.addEmpty(); Concept con = LookupUtil.lookupConcept(propConCodes[i]); row.add(con.getLongName()); row.add(con.getLongName()); if(i == propConCodes.length-1) row.add("Property"); else row.add("PropertyQualifier" + ((propConCodes.length-1) - i)); row.add(con.getPreferredName()); row.add(con.getPreferredDefinition()); row.add(con.getDefinitionSource()); row.addEmpty(); row.add(reviewTracker.get(oc.getLongName() + "." + dec.getProperty().getLongName())?"1":"0"); } } } } } catch (IOException e) { e.printStackTrace(); } finally { write.close(); } } | 55019 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55019/79a91bb776fbd3c1a00be4d82fbb69b59b899572/CSVWriter.java/clean/src/gov/nih/nci/ncicb/cadsr/loader/parser/CSVWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1045,
12,
3471,
7432,
2186,
13,
282,
288,
565,
1045,
273,
1910,
812,
18,
2640,
2289,
2932,
17258,
67,
22,
3113,
638,
1769,
565,
1045,
18,
542,
751,
1630,
12,
2704,
10381,
1630,
10663,
565,
1910,
1999,
1027,
273,
446,
31,
565,
309,
12443,
6006,
5,
33,
2011,
13,
597,
261,
6006,
18,
1808,
1435,
3719,
202,
202,
95,
1082,
565,
2605,
18,
3733,
5621,
202,
202,
97,
565,
987,
320,
2143,
273,
6274,
18,
588,
3471,
12,
3748,
921,
1733,
18,
2704,
921,
797,
7675,
588,
797,
10663,
565,
775,
1377,
288,
3639,
1045,
18,
3190,
12,
6006,
1769,
3639,
1027,
273,
1045,
18,
4285,
5621,
3639,
1027,
18,
1289,
2932,
57,
1495,
797,
8863,
3639,
1027,
18,
1289,
2932,
2799,
900,
1628,
8863,
3639,
1027,
18,
1289,
2932,
57,
1495,
3291,
8863,
3639,
1027,
18,
1289,
2932,
15433,
461,
8863,
3639,
1027,
18,
1289,
2932,
15433,
16028,
461,
8863,
3639,
1027,
18,
1289,
2932,
19168,
8863,
3639,
1027,
18,
1289,
2932,
15433,
1085,
8863,
3639,
1027,
18,
1289,
2932,
15433,
1852,
8863,
3639,
1027,
18,
1289,
2932,
15433,
1852,
1830,
8863,
3639,
1027,
18,
1289,
2932,
4575,
1626,
8863,
3639,
1027,
18,
1289,
2932,
28201,
24369,
8863,
7734,
364,
12,
921,
797,
13345,
294,
261,
682,
32,
921,
797,
23429,
320,
2143,
13,
288,
1850,
514,
2658,
273,
13345,
18,
588,
3708,
461,
5621,
1850,
2658,
273,
2658,
18,
28023,
12,
12434,
18,
2722,
31985,
2932,
1199,
13,
397,
404,
1769,
1850,
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,
1045,
12,
3471,
7432,
2186,
13,
282,
288,
565,
1045,
273,
1910,
812,
18,
2640,
2289,
2932,
17258,
67,
22,
3113,
638,
1769,
565,
1045,
18,
542,
751,
1630,
12,
2704,
10381,
1630,
10663,
565,
1910,
1999,
1027,
273,
446,
31,
565,
309,
12443,
6006,
5,
33,
2011,
13,
597,
261,
6006,
18,
1808,
1435,
3719,
202,
202,
95,
1082,
565,
2605,
18,
3733,
5621,
202,
202,
97,
565,
987,
320,
2143,
273,
6274,
18,
588,
3471,
12,
3748,
921,
1733,
18,
2704,
921,
797,
7675,
588,
797,
10663,
565,
775,
1377,
288,
3639,
1045,
18,
3190,
12,
6006,
1769,
3639,
1027,
273,
1045,
18,
4285,
5621,
3639,
1027,
18,
1289,
2932,
57,
1495,
797,
8863,
2
] |
final GroovyClassLoader cl = new GroovyClassLoader(Thread.currentThread().getContextClassLoader()); | final GroovyClassLoader cl = new GroovyClassLoader(getClass().getClassLoader()); cl.setShouldRecompile(Boolean.TRUE); | public void testReloadingClasses() throws Exception { final GroovyClassLoader cl = new GroovyClassLoader(Thread.currentThread().getContextClassLoader()); cl.setResourceLoader( new GroovyResourceLoader() { public URL loadGroovySource(String filename) throws MalformedURLException { filename = filename.replace('.', '/') + ".groovy"; return cl.getResource(filename); } } ); File file = new File(cl.getResource("org/codehaus/groovy/grails/commons/TestReload.groovy").getFile()); FileWriter fw = new FileWriter(file); try { fw.write( "package org.codehaus.groovy.grails.commons;\n" + "class TestReload { \n" + "@Property hello = \"hello\"\n" + "}"); fw.close(); Class groovyClass = cl.loadClass("org.codehaus.groovy.grails.commons.TestReload",true,false); GroovyObject go = (GroovyObject)groovyClass.newInstance(); assertEquals("hello", go.getProperty("hello")); // change class fw = new FileWriter(file); fw.write( "package org.codehaus.groovy.grails.commons;\n" + "class TestReload { \n" + "@Property hello = \"goodbye\"\n" + "}"); fw.close(); // reload groovyClass = cl.loadClass("org.codehaus.groovy.grails.commons.TestReload",true,false); go = (GroovyObject)groovyClass.newInstance(); assertEquals("goodbye", go.getProperty("hello")); } finally { fw.close(); } } | 50129 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50129/010221f8cf00b39fcb0f475cdd08f8d71301edb9/ClassReloadingTests.java/clean/test/commons/org/codehaus/groovy/grails/commons/ClassReloadingTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
13013,
310,
4818,
1435,
1216,
1185,
288,
202,
202,
6385,
20841,
7805,
927,
273,
394,
20841,
7805,
12,
3830,
18,
2972,
3830,
7675,
29120,
7805,
10663,
202,
202,
830,
18,
542,
1420,
2886,
12,
394,
20841,
1420,
2886,
1435,
288,
1082,
202,
482,
1976,
1262,
43,
12859,
1830,
12,
780,
1544,
13,
1216,
20710,
288,
9506,
202,
3459,
273,
1544,
18,
2079,
2668,
1093,
16,
2023,
13,
397,
3552,
75,
12859,
14432,
9506,
202,
2463,
927,
18,
588,
1420,
12,
3459,
1769,
1082,
202,
97,
25083,
202,
97,
202,
1769,
25083,
202,
812,
585,
273,
394,
1387,
12,
830,
18,
588,
1420,
2932,
3341,
19,
710,
3395,
407,
19,
75,
12859,
19,
2752,
14573,
19,
6054,
87,
19,
4709,
13013,
18,
75,
12859,
20387,
29925,
10663,
9506,
202,
812,
2289,
7600,
273,
394,
24639,
12,
768,
1769,
202,
202,
698,
288,
1082,
202,
11966,
18,
2626,
12,
225,
315,
5610,
2358,
18,
710,
3395,
407,
18,
75,
12859,
18,
2752,
14573,
18,
6054,
87,
9747,
82,
6,
397,
25083,
202,
6,
1106,
7766,
13013,
288,
521,
82,
6,
397,
6862,
1082,
202,
6,
36,
1396,
19439,
273,
1239,
23711,
31670,
82,
6,
397,
25083,
202,
6,
1532,
1769,
6862,
202,
11966,
18,
4412,
5621,
25083,
202,
797,
24955,
797,
273,
927,
18,
945,
797,
2932,
3341,
18,
710,
3395,
407,
18,
75,
12859,
18,
2752,
14573,
18,
6054,
87,
18,
4709,
13013,
3113,
3767,
16,
5743,
1769,
6862,
6862,
202,
43,
12859,
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,
13013,
310,
4818,
1435,
1216,
1185,
288,
202,
202,
6385,
20841,
7805,
927,
273,
394,
20841,
7805,
12,
3830,
18,
2972,
3830,
7675,
29120,
7805,
10663,
202,
202,
830,
18,
542,
1420,
2886,
12,
394,
20841,
1420,
2886,
1435,
288,
1082,
202,
482,
1976,
1262,
43,
12859,
1830,
12,
780,
1544,
13,
1216,
20710,
288,
9506,
202,
3459,
273,
1544,
18,
2079,
2668,
1093,
16,
2023,
13,
397,
3552,
75,
12859,
14432,
9506,
202,
2463,
927,
18,
588,
1420,
12,
3459,
1769,
1082,
202,
97,
25083,
202,
97,
202,
1769,
25083,
202,
812,
585,
273,
394,
1387,
12,
830,
18,
588,
1420,
2932,
3341,
19,
710,
3395,
407,
19,
75,
12859,
19,
2752,
14573,
2
] |
expected.put("Employee.age", Arrays.asList(new Object[] {"SourceA", "SourceB"})); expected.put("Employee", Arrays.asList(new Object[] {"SourceB", "SourceA"})); expected.put("Address", Arrays.asList(new Object[] {"SourceB", "SourceA"})); | expected.put("Department", Arrays.asList(new Object[] {"testsource2", "testsource", "storedata"})); expected.put("Company", Arrays.asList(new Object[] {"testsource2", "testsource", "storedata"})); expected.put("Address", Arrays.asList(new Object[] {"testsource2", "testsource", "storedata"})); expected.put("Employable", Arrays.asList(new Object[] {"testsource2", "testsource", "storedata"})); expected.put("ImportantPerson", Arrays.asList(new Object[] {"testsource2", "testsource", "storedata"})); expected.put("Secretary", Arrays.asList(new Object[] {"testsource2", "testsource", "storedata"})); expected.put("Bank", Arrays.asList(new Object[] {"testsource2", "testsource", "storedata"})); expected.put("Types", Arrays.asList(new Object[] {"testsource2", "testsource", "storedata"})); expected.put("Employee.age", Arrays.asList(new Object[] {"storedata", "testsource2", "testsource"})); expected.put("Employee", Arrays.asList(new Object[] {"testsource2", "testsource", "storedata"})); expected.put("Broke", Arrays.asList(new Object[] {"testsource2", "testsource", "storedata"})); expected.put("HasAddress", Arrays.asList(new Object[] {"testsource2", "testsource", "storedata"})); expected.put("Manager", Arrays.asList(new Object[] {"testsource2", "testsource", "storedata"})); expected.put("CEO", Arrays.asList(new Object[] {"testsource2", "testsource", "storedata"})); expected.put("Contractor", Arrays.asList(new Object[] {"testsource2", "testsource", "storedata"})); | public void testGetDescriptors() throws Exception { Map expected = new HashMap(); expected.put("Employee.age", Arrays.asList(new Object[] {"SourceA", "SourceB"})); expected.put("Employee", Arrays.asList(new Object[] {"SourceB", "SourceA"})); expected.put("Address", Arrays.asList(new Object[] {"SourceB", "SourceA"})); assertEquals(expected, DataLoaderHelper.getDescriptors(model)); } | 7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/998cc196644b33a070095cd2ef7ae811525f0d88/DataLoaderHelperTest.java/clean/intermine/src/test/org/intermine/dataloader/DataLoaderHelperTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
12705,
1435,
1216,
1185,
288,
3639,
1635,
2665,
273,
394,
4317,
5621,
3639,
2665,
18,
458,
2932,
41,
27520,
18,
410,
3113,
5647,
18,
345,
682,
12,
2704,
1033,
8526,
12528,
1830,
37,
3113,
315,
1830,
38,
6,
6792,
1769,
3639,
2665,
18,
458,
2932,
41,
27520,
3113,
5647,
18,
345,
682,
12,
2704,
1033,
8526,
12528,
1830,
38,
3113,
315,
1830,
37,
6,
6792,
1769,
3639,
2665,
18,
458,
2932,
1887,
3113,
5647,
18,
345,
682,
12,
2704,
1033,
8526,
12528,
1830,
38,
3113,
315,
1830,
37,
6,
6792,
1769,
3639,
1815,
8867,
12,
3825,
16,
1910,
2886,
2276,
18,
588,
12705,
12,
2284,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
12705,
1435,
1216,
1185,
288,
3639,
1635,
2665,
273,
394,
4317,
5621,
3639,
2665,
18,
458,
2932,
41,
27520,
18,
410,
3113,
5647,
18,
345,
682,
12,
2704,
1033,
8526,
12528,
1830,
37,
3113,
315,
1830,
38,
6,
6792,
1769,
3639,
2665,
18,
458,
2932,
41,
27520,
3113,
5647,
18,
345,
682,
12,
2704,
1033,
8526,
12528,
1830,
38,
3113,
315,
1830,
37,
6,
6792,
1769,
3639,
2665,
18,
458,
2932,
1887,
3113,
5647,
18,
345,
682,
12,
2704,
1033,
8526,
12528,
1830,
38,
3113,
315,
1830,
37,
6,
6792,
1769,
3639,
1815,
8867,
12,
3825,
16,
1910,
2886,
2276,
18,
588,
12705,
12,
2284,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
setDefaultSourceLocator(launch, configuration); | setDefaultSourceLocator(launch, configuration); | public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (monitor == null) { monitor = new NullProgressMonitor(); } monitor .beginTask( LaunchingMessages .getString("WOJavaLocalApplicationLaunchConfigurationDelegate.Launching..._1"), IProgressMonitor.UNKNOWN); //$NON-NLS-1$ // check for cancellation if (monitor.isCanceled()) { return; } JavaProject javaProject = (JavaProject) (this .getJavaProject(configuration).getAdapter(JavaProject.class)); String mainTypeName = verifyMainTypeName(configuration); IVMInstall vm = verifyVMInstall(configuration); IVMRunner runner = vm.getVMRunner(mode); if (runner == null) { if (mode == ILaunchManager.DEBUG_MODE) { abort( MessageFormat .format( LaunchingMessages .getString("WOJavaLocalApplicationLaunchConfigurationDelegate.JRE_{0}_does_not_support_debug_mode._1"), new String[] { vm.getName() }), null, IJavaLaunchConfigurationConstants.ERR_VM_RUNNER_DOES_NOT_EXIST); //$NON-NLS-1$ } else { abort( MessageFormat .format( LaunchingMessages .getString("WOJavaLocalApplicationLaunchConfigurationDelegate.JRE_{0}_does_not_support_run_mode._2"), new String[] { vm.getName() }), null, IJavaLaunchConfigurationConstants.ERR_VM_RUNNER_DOES_NOT_EXIST); //$NON-NLS-1$ } } File workingDir = verifyWorkingDirectory(configuration); String workingDirName = null; if (workingDir != null) { workingDirName = workingDir.getAbsolutePath(); } String launchArguments = configuration .getAttribute( WOJavaLocalApplicationLaunchConfigurationDelegate.ATTR_WOLIPS_LAUNCH_WOARGUMENTS, Preferences.getPREF_LAUNCH_GLOBAL()); ILaunchInfo[] launchInfo = Preferences .getLaunchInfoFrom(launchArguments); StringBuffer launchArgument = new StringBuffer(); String automatic = "Automatic"; for (int i = 0; i < launchInfo.length; i++) { if (launchInfo[i].isEnabled()) { // -WOApplicationClassName String parameter = launchInfo[i].getParameter(); String argument = launchInfo[i].getArgument(); if (automatic.equals(argument)) { if ("-WOApplicationClassName".equals(parameter)) argument = mainTypeName; if ("-DWORoot=".equals(parameter)) { argument = VariablesPlugin.getDefault().getSystemRoot() .toOSString(); if (javaProject.isOnMacOSX()) { parameter = ""; argument = ""; } } if ("-DWORootDirectory=".equals(parameter)) { argument = VariablesPlugin.getDefault().getSystemRoot() .toOSString(); if (javaProject.isOnMacOSX()) { parameter = ""; argument = ""; } } if ("-DWOUserDirectory=".equals(parameter)) { argument = workingDir.getAbsolutePath(); } if ("-NSProjectSearchPath".equals(parameter)) { argument = javaProject.getGeneratedByWOLips(Preferences .getPREF_NS_PROJECT_SEARCH_PATH()); } } launchArgument.append(StringUtilities .toCommandlineParameterFormat(parameter, argument)); launchArgument.append(" "); } } String debugGroups = configuration .getAttribute( WOJavaLocalApplicationLaunchConfigurationDelegate.ATTR_WOLIPS_LAUNCH_DEBUG_GROUPS, ""); if (debugGroups != null && debugGroups.length() > 0) { launchArgument.append(" -DNSDebugGroups=\"("); launchArgument.append(debugGroups); launchArgument.append(")\""); } // Program & VM args String pgmArgs = getProgramArguments(configuration) + " " + launchArgument.toString(); String vmArgs = getVMArguments(configuration); StringBuffer vmArgsBuffer = new StringBuffer(vmArgs); this.addVMArguments(vmArgsBuffer, configuration, launch, mode); ExecutionArguments execArgs = new ExecutionArguments(vmArgsBuffer .toString(), pgmArgs); // VM-specific attributes Map vmAttributesMap = getVMSpecificAttributesMap(configuration); // Classpath String[] classpath = getClasspath(configuration); // Create VM config VMRunnerConfiguration runConfig = new VMRunnerConfiguration( mainTypeName, classpath); runConfig.setProgramArguments(execArgs.getProgramArgumentsArray()); runConfig.setVMArguments(execArgs.getVMArgumentsArray()); runConfig.setWorkingDirectory(workingDirName); runConfig.setVMSpecificAttributesMap(vmAttributesMap); // Bootpath String[] bootpath = getBootpath(configuration); runConfig.setBootClassPath(bootpath); // check for cancellation if (monitor.isCanceled()) { return; } // stop in main prepareStopInMain(configuration); // Launch the configuration runner.run(runConfig, launch, monitor); // check for cancellation if (monitor.isCanceled()) { return; } // set the default source locator if required setDefaultSourceLocator(launch, configuration); monitor.done(); } | 47899 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47899/f242ccb537b802c24cf9ef5a1d402800bbbe648f/WOJavaLocalApplicationLaunchConfigurationDelegate.java/clean/projects/wolips/plugins/org.objectstyle.wolips.launching/java/org/objectstyle/wolips/launching/delegates/WOJavaLocalApplicationLaunchConfigurationDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
8037,
12,
2627,
4760,
1750,
1664,
16,
514,
1965,
16,
1082,
202,
2627,
4760,
8037,
16,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
202,
202,
430,
261,
10259,
422,
446,
13,
288,
1082,
202,
10259,
273,
394,
4112,
5491,
7187,
5621,
202,
202,
97,
202,
202,
10259,
9506,
202,
18,
10086,
2174,
12,
25083,
202,
9569,
310,
5058,
6862,
9506,
202,
18,
588,
780,
2932,
59,
51,
5852,
2042,
3208,
9569,
1750,
9586,
18,
9569,
310,
2777,
67,
21,
6,
3631,
467,
5491,
7187,
18,
14737,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
759,
866,
364,
7272,
202,
202,
430,
261,
10259,
18,
291,
23163,
10756,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
5852,
4109,
2252,
4109,
273,
261,
5852,
4109,
13,
261,
2211,
9506,
202,
18,
588,
5852,
4109,
12,
7025,
2934,
588,
4216,
12,
5852,
4109,
18,
1106,
10019,
202,
202,
780,
2774,
7947,
273,
3929,
6376,
7947,
12,
7025,
1769,
202,
202,
45,
7397,
6410,
4268,
273,
3929,
7397,
6410,
12,
7025,
1769,
202,
202,
45,
7397,
9709,
8419,
273,
4268,
18,
588,
7397,
9709,
12,
3188,
1769,
202,
202,
430,
261,
18156,
422,
446,
13,
288,
1082,
202,
430,
261,
3188,
422,
467,
9569,
1318,
18,
9394,
67,
7038,
13,
288,
9506,
202,
18623,
12,
25083,
202,
1079,
1630,
6862,
9506,
202,
18,
2139,
12,
6862,
25083,
202,
9569,
310,
5058,
6862,
6862,
9506,
202,
18,
588,
780,
2932,
59,
51,
5852,
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,
8037,
12,
2627,
4760,
1750,
1664,
16,
514,
1965,
16,
1082,
202,
2627,
4760,
8037,
16,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
202,
202,
430,
261,
10259,
422,
446,
13,
288,
1082,
202,
10259,
273,
394,
4112,
5491,
7187,
5621,
202,
202,
97,
202,
202,
10259,
9506,
202,
18,
10086,
2174,
12,
25083,
202,
9569,
310,
5058,
6862,
9506,
202,
18,
588,
780,
2932,
59,
51,
5852,
2042,
3208,
9569,
1750,
9586,
18,
9569,
310,
2777,
67,
21,
6,
3631,
467,
5491,
7187,
18,
14737,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
759,
866,
364,
7272,
202,
202,
430,
261,
10259,
18,
291,
23163,
10756,
288,
1082,
202,
2463,
31,
2
] |
display("----", metadatas.getColumnDisplaySize(i)); addToConsole(" "); | this.display("----", metadatas.getColumnDisplaySize(i)); this.addToConsole(" "); | public void sendCommand(String cmd) { /* A simple reminder :) */ if(cmd.toLowerCase().equals("list_tables")) cmd = "SELECT * FROM INFORMATION_SCHEMA.SYSTEM_TABLES"; addToConsole("\n> "+cmd+"\n\n"); try { if(cmd.toLowerCase().equals("reconnect")) { hsqldb.connect(); addToConsole("Ok\n"); return; } java.sql.Statement st = hsqldb.getConnection().createStatement(); ResultSet result; if(!cmd.toLowerCase().equals("drop_tables")) { if(st.execute(cmd)) result = st.getResultSet(); else { addToConsole("Ok\n"); return; } } else { TableCreator.dropTables(hsqldb); addToConsole("Ok\n"); return; } if(result == null) { addToConsole("(null)\n"); return; } if(result.getFetchSize() == 0) { addToConsole("(done)\n"); return; } java.sql.SQLWarning warning = result.getWarnings(); while(warning != null) { addToConsole("Warning: "+warning.toString()); warning = warning.getNextWarning(); } ResultSetMetaData metadatas = result.getMetaData(); int nmbCol = metadatas.getColumnCount(); addToConsole(" "); for(int i = 1; i <= nmbCol ; i++) { display(metadatas.getColumnLabel(i), metadatas.getColumnDisplaySize(i)); addToConsole(" "); } addToConsole("\n"); addToConsole(" "); for(int i = 1; i <= nmbCol ; i++) { display(metadatas.getColumnTypeName(i), metadatas.getColumnDisplaySize(i)); addToConsole(" "); } addToConsole("\n"); addToConsole(" "); for(int i = 1; i <= nmbCol ; i++) { display("----", metadatas.getColumnDisplaySize(i)); addToConsole(" "); } addToConsole("\n"); boolean ret = true; while(ret) { ret = result.next(); if(!ret) break; display(Integer.toString(result.getRow()), 4); addToConsole(" "); for(int i =1; i <= nmbCol ; i++) { display(result.getString(i), metadatas.getColumnDisplaySize(i)); addToConsole(" "); } addToConsole("\n"); } } catch(java.sql.SQLException e) { addToConsole("SQLException : "+e.toString()+" : "+e.getCause()+"\n"); } } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/SqlConsole.java/buggy/src/thaw/plugins/SqlConsole.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1366,
2189,
12,
780,
1797,
13,
288,
202,
202,
20308,
432,
4143,
849,
14055,
294,
13,
1195,
202,
202,
430,
12,
4172,
18,
869,
5630,
7675,
14963,
2932,
1098,
67,
9373,
6,
3719,
1082,
202,
4172,
273,
315,
4803,
380,
4571,
2120,
23805,
67,
14233,
18,
14318,
67,
7775,
55,
14432,
202,
202,
1289,
774,
10215,
31458,
82,
34,
13773,
4172,
9078,
64,
82,
64,
82,
8863,
202,
202,
698,
288,
1082,
202,
430,
12,
4172,
18,
869,
5630,
7675,
14963,
2932,
25913,
6,
3719,
288,
9506,
202,
4487,
1217,
1966,
18,
3612,
5621,
9506,
202,
1289,
774,
10215,
2932,
8809,
64,
82,
8863,
9506,
202,
2463,
31,
1082,
202,
97,
25083,
202,
6290,
18,
4669,
18,
3406,
384,
273,
366,
4669,
1966,
18,
588,
1952,
7675,
2640,
3406,
5621,
1082,
202,
13198,
563,
31,
1082,
202,
430,
12,
5,
4172,
18,
869,
5630,
7675,
14963,
2932,
7285,
67,
9373,
6,
3719,
288,
9506,
202,
430,
12,
334,
18,
8837,
12,
4172,
3719,
6862,
202,
2088,
273,
384,
18,
588,
13198,
5621,
9506,
202,
12107,
288,
6862,
202,
1289,
774,
10215,
2932,
8809,
64,
82,
8863,
6862,
202,
2463,
31,
9506,
202,
97,
1082,
202,
97,
469,
288,
9506,
202,
1388,
10636,
18,
7285,
6905,
12,
4487,
1217,
1966,
1769,
9506,
202,
1289,
774,
10215,
2932,
8809,
64,
82,
8863,
9506,
202,
2463,
31,
1082,
202,
97,
6862,
25083,
202,
430,
12,
2088,
422,
446,
13,
288,
9506,
202,
1289,
774,
10215,
2932,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1366,
2189,
12,
780,
1797,
13,
288,
202,
202,
20308,
432,
4143,
849,
14055,
294,
13,
1195,
202,
202,
430,
12,
4172,
18,
869,
5630,
7675,
14963,
2932,
1098,
67,
9373,
6,
3719,
1082,
202,
4172,
273,
315,
4803,
380,
4571,
2120,
23805,
67,
14233,
18,
14318,
67,
7775,
55,
14432,
202,
202,
1289,
774,
10215,
31458,
82,
34,
13773,
4172,
9078,
64,
82,
64,
82,
8863,
202,
202,
698,
288,
1082,
202,
430,
12,
4172,
18,
869,
5630,
7675,
14963,
2932,
25913,
6,
3719,
288,
9506,
202,
4487,
1217,
1966,
18,
3612,
5621,
9506,
202,
1289,
774,
10215,
2932,
8809,
64,
82,
8863,
9506,
202,
2463,
31,
1082,
202,
97,
25083,
202,
6290,
18,
2
] |
public static boolean processHTTPGetRequest(MessageContext msgContext, InputStream in, OutputStream out, String contentType, String soapAction, String requestURI, ConfigurationContext configurationContext, Map requestParameters) throws AxisFault { if (soapAction != null && soapAction.startsWith("\"") && soapAction.endsWith("\"")) { | public static boolean processHTTPGetRequest( MessageContext msgContext, InputStream in, OutputStream out, String contentType, String soapAction, String requestURI, ConfigurationContext configurationContext, Map requestParameters) throws AxisFault { if (soapAction != null && soapAction.startsWith("\"") && soapAction.endsWith("\"")) { | public static boolean processHTTPGetRequest(MessageContext msgContext, InputStream in, OutputStream out, String contentType, String soapAction, String requestURI, ConfigurationContext configurationContext, Map requestParameters) throws AxisFault { if (soapAction != null && soapAction.startsWith("\"") && soapAction.endsWith("\"")) { soapAction = soapAction.substring(1, soapAction.length() - 1); } msgContext.setWSAAction(soapAction); msgContext.setSoapAction(soapAction); msgContext.setTo(new EndpointReference(requestURI)); msgContext.setProperty(MessageContext.TRANSPORT_OUT, out); msgContext.setServerSide(true); SOAPEnvelope envelope = HTTPTransportUtils.createEnvelopeFromGetRequest(requestURI, requestParameters); if (envelope == null) { return false; } else { msgContext.setDoingREST(true); msgContext.setEnvelope(envelope); AxisEngine engine = new AxisEngine(configurationContext); engine.receive(msgContext); return true; } } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/b50fb875033e86d89d9173e8def5120a820a8080/HTTPTransportUtils.java/buggy/modules/core/src/org/apache/axis2/transport/http/HTTPTransportUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
1207,
3693,
967,
691,
12,
1079,
1042,
1234,
1042,
16,
4766,
7734,
5037,
316,
16,
4766,
7734,
8962,
596,
16,
4766,
7734,
514,
5064,
16,
4766,
7734,
514,
9930,
1803,
16,
4766,
7734,
514,
590,
3098,
16,
4766,
7734,
4659,
1042,
1664,
1042,
16,
4766,
7734,
1635,
590,
2402,
13,
5411,
1216,
15509,
7083,
288,
3639,
309,
261,
19215,
1803,
480,
446,
597,
9930,
1803,
18,
17514,
1190,
2932,
2412,
7923,
597,
9930,
1803,
18,
5839,
1190,
2932,
8530,
3719,
288,
5411,
9930,
1803,
273,
9930,
1803,
18,
28023,
12,
21,
16,
9930,
1803,
18,
2469,
1435,
300,
404,
1769,
3639,
289,
3639,
1234,
1042,
18,
542,
2651,
37,
1803,
12,
19215,
1803,
1769,
3639,
1234,
1042,
18,
542,
20601,
1803,
12,
19215,
1803,
1769,
3639,
1234,
1042,
18,
542,
774,
12,
2704,
6961,
2404,
12,
2293,
3098,
10019,
3639,
1234,
1042,
18,
542,
1396,
12,
1079,
1042,
18,
8989,
31943,
67,
5069,
16,
596,
1769,
3639,
1234,
1042,
18,
542,
2081,
8895,
12,
3767,
1769,
3639,
16434,
10862,
9045,
273,
7734,
2239,
6568,
1989,
18,
2640,
10862,
1265,
967,
691,
12,
2293,
3098,
16,
590,
2402,
1769,
3639,
309,
261,
30290,
422,
446,
13,
288,
5411,
327,
629,
31,
3639,
289,
469,
288,
5411,
1234,
1042,
18,
542,
3244,
310,
12030,
12,
3767,
1769,
5411,
1234,
1042,
18,
542,
10862,
12,
30290,
1769,
5411,
15509,
4410,
4073,
273,
394,
15509,
4410,
12,
7025,
1042,
1769,
5411,
4073,
18,
18149,
12,
3576,
1042,
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,
1250,
1207,
3693,
967,
691,
12,
1079,
1042,
1234,
1042,
16,
4766,
7734,
5037,
316,
16,
4766,
7734,
8962,
596,
16,
4766,
7734,
514,
5064,
16,
4766,
7734,
514,
9930,
1803,
16,
4766,
7734,
514,
590,
3098,
16,
4766,
7734,
4659,
1042,
1664,
1042,
16,
4766,
7734,
1635,
590,
2402,
13,
5411,
1216,
15509,
7083,
288,
3639,
309,
261,
19215,
1803,
480,
446,
597,
9930,
1803,
18,
17514,
1190,
2932,
2412,
7923,
597,
9930,
1803,
18,
5839,
1190,
2932,
8530,
3719,
288,
5411,
9930,
1803,
273,
9930,
1803,
18,
28023,
12,
21,
16,
9930,
1803,
18,
2469,
1435,
300,
404,
1769,
3639,
289,
3639,
1234,
1042,
18,
542,
2651,
37,
1803,
12,
19215,
1803,
1769,
3639,
2
] |
jj_la1[89] = jj_gen; | jj_la1[90] = jj_gen; | final public void PrimarySuffix() throws ParseException { /*@bgen(jjtree) PrimarySuffix */ ASTPrimarySuffix jjtn000 = new ASTPrimarySuffix(this, JJTPRIMARYSUFFIX); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Token t; try { if (jj_2_29(2)) { jj_consume_token(DOT); jj_consume_token(THIS); } else if (jj_2_30(2)) { jj_consume_token(DOT); jj_consume_token(SUPER); } else if (jj_2_31(2)) { jj_consume_token(DOT); AllocationExpression(); } else if (jj_2_32(3)) { MemberSelector(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACKET: jj_consume_token(LBRACKET); Expression(); jj_consume_token(RBRACKET); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setIsArrayDereference(); break; case DOT: jj_consume_token(DOT); t = jj_consume_token(IDENTIFIER); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage(t.image); break; case LPAREN: Arguments(); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setIsArguments(); break; default: jj_la1[89] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (RuntimeException)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/a180e9b19197c7613f1e73c6ec8a574a17011e5e/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
15884,
5791,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
15884,
5791,
1195,
9183,
6793,
5791,
10684,
5088,
3784,
273,
394,
9183,
6793,
5791,
12,
2211,
16,
804,
46,
56,
18864,
14964,
1769,
1250,
10684,
5111,
3784,
273,
638,
31,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
1345,
268,
31,
565,
775,
288,
1377,
309,
261,
78,
78,
67,
22,
67,
5540,
12,
22,
3719,
288,
3639,
10684,
67,
21224,
67,
2316,
12,
17591,
1769,
3639,
10684,
67,
21224,
67,
2316,
12,
2455,
5127,
1769,
1377,
289,
469,
309,
261,
78,
78,
67,
22,
67,
5082,
12,
22,
3719,
288,
3639,
10684,
67,
21224,
67,
2316,
12,
17591,
1769,
3639,
10684,
67,
21224,
67,
2316,
12,
13272,
654,
1769,
1377,
289,
469,
309,
261,
78,
78,
67,
22,
67,
6938,
12,
22,
3719,
288,
3639,
10684,
67,
21224,
67,
2316,
12,
17591,
1769,
3639,
24242,
2300,
5621,
1377,
289,
469,
309,
261,
78,
78,
67,
22,
67,
1578,
12,
23,
3719,
288,
3639,
8596,
4320,
5621,
1377,
289,
469,
288,
3639,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
3639,
648,
511,
21217,
30,
1850,
10684,
67,
21224,
67,
2316,
12,
48,
21217,
1769,
1850,
5371,
5621,
1850,
10684,
67,
21224,
67,
2316,
12,
54,
21217,
1769,
7682,
10684,
3413,
18,
4412,
907,
3876,
12,
78,
78,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
15884,
5791,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
15884,
5791,
1195,
9183,
6793,
5791,
10684,
5088,
3784,
273,
394,
9183,
6793,
5791,
12,
2211,
16,
804,
46,
56,
18864,
14964,
1769,
1250,
10684,
5111,
3784,
273,
638,
31,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
1345,
268,
31,
565,
775,
288,
1377,
309,
261,
78,
78,
67,
22,
67,
5540,
12,
22,
3719,
288,
3639,
10684,
67,
21224,
67,
2316,
12,
17591,
1769,
3639,
10684,
67,
21224,
67,
2316,
12,
2455,
5127,
1769,
1377,
289,
469,
309,
261,
78,
78,
67,
22,
67,
5082,
12,
22,
3719,
288,
3639,
10684,
67,
21224,
67,
2
] |
if (!runProgressMonitorOperation(WorkbenchMessages.Save, progressOp,window)) { return ISaveablePart2.CANCEL; } return ISaveablePart2.YES; | return runProgressMonitorOperation(WorkbenchMessages.Save, progressOp, window); | static int savePart(final ISaveablePart2 saveable, IWorkbenchWindow window, boolean confirm) { // Short circuit. if (!saveable.isDirty()) { return ISaveablePart2.YES; } // If confirmation is required .. if (confirm) { int choice = AutomatedResponse; if (choice == USER_RESPONSE) { choice = saveable.promptToSaveOnClose(); } // Branch on the user choice. // The choice id is based on the order of button labels above. if (choice!=ISaveablePart2.YES) { return (choice==USER_RESPONSE?ISaveablePart2.DEFAULT:choice); } } // Create save block. IRunnableWithProgress progressOp = new IRunnableWithProgress() { public void run(IProgressMonitor monitor) { IProgressMonitor monitorWrap = new EventLoopProgressMonitor(monitor); saveable.doSave(monitorWrap); } }; // Do the save. if (!runProgressMonitorOperation(WorkbenchMessages.Save, progressOp,window)) { return ISaveablePart2.CANCEL; } return ISaveablePart2.YES; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/6bc33266e5741c8ee4c75a32ab132fd1537b6910/SaveableHelper.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/SaveableHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
509,
1923,
1988,
12,
6385,
4437,
836,
429,
1988,
22,
1923,
429,
16,
1875,
202,
45,
2421,
22144,
3829,
2742,
16,
1250,
6932,
13,
288,
202,
202,
759,
7925,
12937,
18,
202,
202,
430,
16051,
5688,
429,
18,
291,
10785,
10756,
288,
1082,
202,
2463,
4437,
836,
429,
1988,
22,
18,
29081,
31,
202,
202,
97,
202,
202,
759,
971,
14296,
353,
1931,
6116,
202,
202,
430,
261,
10927,
13,
288,
1082,
202,
474,
6023,
273,
11809,
362,
690,
1064,
31,
1082,
202,
430,
261,
11569,
422,
7443,
67,
14508,
13,
288,
9506,
202,
11569,
273,
1923,
429,
18,
13325,
774,
4755,
1398,
4605,
5621,
1082,
202,
97,
1082,
202,
759,
15449,
603,
326,
729,
6023,
18,
1082,
202,
759,
1021,
6023,
612,
353,
2511,
603,
326,
1353,
434,
3568,
3249,
5721,
18,
1082,
202,
430,
261,
11569,
5,
33,
45,
4755,
429,
1988,
22,
18,
29081,
13,
288,
9506,
202,
2463,
261,
11569,
631,
4714,
67,
14508,
35,
45,
4755,
429,
1988,
22,
18,
5280,
30,
11569,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
759,
1788,
1923,
1203,
18,
202,
202,
45,
20013,
1190,
5491,
4007,
3817,
273,
394,
467,
20013,
1190,
5491,
1435,
288,
1082,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
45,
5491,
7187,
6438,
2964,
273,
394,
2587,
6452,
5491,
7187,
12,
10259,
1769,
9506,
202,
5688,
429,
18,
2896,
4755,
12,
10259,
2964,
1769,
1082,
202,
97,
202,
202,
20451,
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,
3845,
509,
1923,
1988,
12,
6385,
4437,
836,
429,
1988,
22,
1923,
429,
16,
1875,
202,
45,
2421,
22144,
3829,
2742,
16,
1250,
6932,
13,
288,
202,
202,
759,
7925,
12937,
18,
202,
202,
430,
16051,
5688,
429,
18,
291,
10785,
10756,
288,
1082,
202,
2463,
4437,
836,
429,
1988,
22,
18,
29081,
31,
202,
202,
97,
202,
202,
759,
971,
14296,
353,
1931,
6116,
202,
202,
430,
261,
10927,
13,
288,
1082,
202,
474,
6023,
273,
11809,
362,
690,
1064,
31,
1082,
202,
430,
261,
11569,
422,
7443,
67,
14508,
13,
288,
9506,
202,
11569,
273,
1923,
429,
18,
13325,
774,
4755,
1398,
4605,
5621,
1082,
202,
97,
1082,
202,
759,
15449,
603,
326,
729,
6023,
2
] |
private void writeFile(String fileName, String contents) throws IOException { | private void writeFile(String fileName, String contents) throws IOException { | private void writeFile(String fileName, String contents) throws IOException { File theFile = new File(fileName); filesToClear.add(theFile); FileWriter fw = new FileWriter(theFile); fw.write(contents); fw.close(); } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/fd158509e4f6aa010e583ca0516756a1c2532047/ProjectTest.java/clean/main/test/net/sourceforge/cruisecontrol/ProjectTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
13286,
12,
780,
3968,
16,
514,
2939,
13,
3639,
1216,
1860,
288,
3639,
1387,
326,
812,
273,
394,
1387,
12,
17812,
1769,
3639,
1390,
774,
9094,
18,
1289,
12,
5787,
812,
1769,
3639,
24639,
7600,
273,
394,
24639,
12,
5787,
812,
1769,
3639,
7600,
18,
2626,
12,
3980,
1769,
3639,
7600,
18,
4412,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
13286,
12,
780,
3968,
16,
514,
2939,
13,
3639,
1216,
1860,
288,
3639,
1387,
326,
812,
273,
394,
1387,
12,
17812,
1769,
3639,
1390,
774,
9094,
18,
1289,
12,
5787,
812,
1769,
3639,
24639,
7600,
273,
394,
24639,
12,
5787,
812,
1769,
3639,
7600,
18,
2626,
12,
3980,
1769,
3639,
7600,
18,
4412,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String filePath = fileObj.getAbsolutePath() ; | String filePath = fileObj.getCanonicalPath() ; | public static String getPage(HttpServletRequest req, HttpServletResponse res) throws IOException { String host = req.getHeader("Host") ; String imcserver = Utility.getDomainPref("adminserver",host) ; String servlet_url = Utility.getDomainPref( "servlet_url",host ) ; String image_url = Utility.getDomainPref( "image_url", host ) ; File file_path = new File(Utility.getDomainPref( "image_path", host )); // Get the session HttpSession session = req.getSession(false); imcode.server.User user = (imcode.server.User)session.getValue("logon.isDone"); // marker object String meta_id = req.getParameter("meta_id"); String img_no = req.getParameter("img_no"); String img_preset = req.getParameter("imglist") ; String img_tag = "" ; if (img_preset == null) { img_preset = "" ; } else { img_tag = "<img src='"+img_preset+"'>" ; } String canon_path = file_path.getAbsolutePath() ; List imgList = (List)session.getValue("ImageBrowse.optionlist") ; session.removeValue("ImageBrowse.optionlist") ; if (imgList == null) { imgList = GetImages.getImageFiles(file_path, true, true); } StringBuffer options = new StringBuffer(imgList.size()*64) ; for(Iterator it=imgList.iterator();it.hasNext();) { File fileObj = (File) it.next(); try { String fileLen = "" + fileObj.length(); } catch (SecurityException e) { String fileLen = "Read ERROR"; } String filePath = fileObj.getAbsolutePath() ; if (filePath.startsWith(canon_path)) { filePath = filePath.substring(canon_path.length()) ; } if (filePath.startsWith(File.separator)) { filePath = filePath.substring(File.separator.length()) ; } File urlFile = new File(image_url+filePath) ; filePath = urlFile.getParentFile().getPath() ; String fileName = java.net.URLEncoder.encode(urlFile.getName()) ; filePath = filePath.replace(File.separatorChar,'/')+"/"+fileName ; StringBuffer filePathSb = new StringBuffer(filePath) ; // Replace all '+' and ' ' with '%20' for (int i=0; i<filePathSb.length() ; ++i) { if (filePathSb.charAt(i)=='+' || filePathSb.charAt(i)==' ') { filePathSb.replace(i,i+1,"%20") ; i += 2 ; } } filePath = filePathSb.toString() ; options.append("<option value=\"" + filePath + "\"" + (filePath.equals(img_preset)?" selected":"") + ">[" + fileObj.length() + "] " + filePath + "</option>\r\n"); } // TEMPLATE ImageBrowse.html Vector vec = new Vector () ; vec.add("#meta_id#"); vec.add(meta_id); vec.add("#img_preview#"); vec.add(img_tag); vec.add("#img_no#"); vec.add(img_no); vec.add("#options#"); vec.add(options.toString()); session.putValue("ImageBrowse.optionlist",imgList); String lang_prefix = IMCServiceRMI.sqlQueryStr(imcserver, "select lang_prefix from lang_prefixes where lang_id = "+user.getInt("lang_id")) ; return IMCServiceRMI.parseDoc(imcserver,vec,"ImageBrowse.html", lang_prefix) ; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/c0a48e8a9572127616e37a75984c4b2d67b6d23d/ImageBrowse.java/buggy/servlets/ImageBrowse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
8957,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
1216,
1860,
288,
202,
780,
1479,
4697,
202,
33,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
202,
780,
709,
71,
3567,
1875,
202,
33,
13134,
18,
588,
3748,
23218,
2932,
3666,
3567,
3113,
2564,
13,
274,
202,
780,
8100,
67,
718,
3639,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
23231,
67,
718,
3113,
2564,
262,
274,
202,
780,
1316,
67,
718,
7734,
273,
13134,
18,
588,
3748,
23218,
12,
315,
2730,
67,
718,
3113,
1479,
262,
274,
202,
812,
585,
67,
803,
273,
394,
1387,
12,
6497,
18,
588,
3748,
23218,
12,
315,
2730,
67,
803,
3113,
1479,
262,
1769,
202,
759,
968,
326,
1339,
202,
2940,
2157,
1339,
273,
1111,
18,
588,
2157,
12,
5743,
1769,
202,
381,
710,
18,
3567,
18,
1299,
729,
225,
273,
261,
381,
710,
18,
3567,
18,
1299,
13,
3184,
18,
24805,
2932,
1330,
265,
18,
291,
7387,
8863,
225,
368,
5373,
733,
202,
780,
2191,
67,
350,
273,
1111,
18,
588,
1662,
2932,
3901,
67,
350,
8863,
202,
780,
3774,
67,
2135,
273,
1111,
18,
588,
1662,
2932,
6081,
67,
2135,
8863,
202,
780,
3774,
67,
27524,
273,
1111,
18,
588,
1662,
2932,
6081,
1098,
7923,
274,
202,
780,
3774,
67,
2692,
273,
1408,
274,
202,
430,
261,
6081,
67,
27524,
422,
446,
13,
288,
202,
565,
3774,
67,
27524,
273,
1408,
274,
202,
97,
469,
288,
202,
565,
3774,
67,
2692,
273,
3532,
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,
8957,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
1216,
1860,
288,
202,
780,
1479,
4697,
202,
33,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
202,
780,
709,
71,
3567,
1875,
202,
33,
13134,
18,
588,
3748,
23218,
2932,
3666,
3567,
3113,
2564,
13,
274,
202,
780,
8100,
67,
718,
3639,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
23231,
67,
718,
3113,
2564,
262,
274,
202,
780,
1316,
67,
718,
7734,
273,
13134,
18,
588,
3748,
23218,
12,
315,
2730,
67,
718,
3113,
1479,
262,
274,
202,
812,
585,
67,
803,
273,
394,
1387,
12,
6497,
18,
588,
3748,
23218,
12,
315,
2730,
67,
803,
3113,
1479,
262,
1769,
202,
759,
968,
2
] |
public RubyScope getScope() { return rubyScope; | public ScopeStack getScope() { return scope; | public RubyScope getScope() { return rubyScope; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e774974ded4f5d3e83d7f3e7d5f152a6de3fffee/Ruby.java/clean/org/jruby/Ruby.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3876,
19203,
1435,
288,
3639,
327,
22155,
3876,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3876,
19203,
1435,
288,
3639,
327,
22155,
3876,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String db = JDBC2Tests.getURL(); | String db = TestUtil.getURL(); | protected void initializeDataSource() { if (bds == null) { bds = new SimpleDataSource(); String db = JDBC2Tests.getURL(); if (db.indexOf('/') > -1) { db = db.substring(db.lastIndexOf('/') + 1); } else if (db.indexOf(':') > -1) { db = db.substring(db.lastIndexOf(':') + 1); } bds.setDatabaseName(db); bds.setUser(JDBC2Tests.getUser()); bds.setPassword(JDBC2Tests.getPassword()); } } | 11803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11803/d634a5903f615a45cb463155c04d3df904e1b91a/SimpleDataSourceTest.java/clean/src/interfaces/jdbc/org/postgresql/test/jdbc2/optional/SimpleDataSourceTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4046,
8597,
1435,
202,
95,
202,
202,
430,
261,
70,
2377,
422,
446,
13,
202,
202,
95,
1082,
202,
70,
2377,
273,
394,
4477,
8597,
5621,
1082,
202,
780,
1319,
273,
16364,
22,
14650,
18,
588,
1785,
5621,
1082,
202,
430,
261,
1966,
18,
31806,
2668,
2473,
13,
405,
300,
21,
13,
1082,
202,
95,
9506,
202,
1966,
273,
1319,
18,
28023,
12,
1966,
18,
2722,
31985,
2668,
2473,
13,
397,
404,
1769,
1082,
202,
97,
1082,
202,
12107,
309,
261,
1966,
18,
31806,
2668,
2497,
13,
405,
300,
21,
13,
1082,
202,
95,
9506,
202,
1966,
273,
1319,
18,
28023,
12,
1966,
18,
2722,
31985,
2668,
2497,
13,
397,
404,
1769,
1082,
202,
97,
1082,
202,
70,
2377,
18,
542,
4254,
461,
12,
1966,
1769,
1082,
202,
70,
2377,
18,
542,
1299,
12,
30499,
22,
14650,
18,
588,
1299,
10663,
1082,
202,
70,
2377,
18,
542,
3913,
12,
30499,
22,
14650,
18,
588,
3913,
10663,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1117,
918,
4046,
8597,
1435,
202,
95,
202,
202,
430,
261,
70,
2377,
422,
446,
13,
202,
202,
95,
1082,
202,
70,
2377,
273,
394,
4477,
8597,
5621,
1082,
202,
780,
1319,
273,
16364,
22,
14650,
18,
588,
1785,
5621,
1082,
202,
430,
261,
1966,
18,
31806,
2668,
2473,
13,
405,
300,
21,
13,
1082,
202,
95,
9506,
202,
1966,
273,
1319,
18,
28023,
12,
1966,
18,
2722,
31985,
2668,
2473,
13,
397,
404,
1769,
1082,
202,
97,
1082,
202,
12107,
309,
261,
1966,
18,
31806,
2668,
2497,
13,
405,
300,
21,
13,
1082,
202,
95,
9506,
202,
1966,
273,
1319,
18,
28023,
12,
1966,
18,
2722,
31985,
2668,
2497,
13,
397,
404,
1769,
1082,
202,
97,
2
] |
m_saxWriter.write(e); parent.remove(e); | digestElement(parent, e); | private void exportUser(Element parent, CmsUser user) throws CmsException, SAXException { // add user node to the manifest.xml Element e = parent.addElement(I_CmsConstants.C_EXPORT_TAG_USERDATA); e.addElement(I_CmsConstants.C_EXPORT_TAG_NAME, user.getName()); // encode the password, using a base 64 decoder sun.misc.BASE64Encoder enc = new sun.misc.BASE64Encoder(); String passwd = new String(enc.encodeBuffer(user.getPassword().getBytes())); e.addElement(I_CmsConstants.C_EXPORT_TAG_PASSWORD).addCDATA(passwd); e.addElement(I_CmsConstants.C_EXPORT_TAG_RECOVERYPASSWORD).addCDATA(user.getRecoveryPassword()); e.addElement(I_CmsConstants.C_EXPORT_TAG_DESCRIPTION).addCDATA(user.getDescription()); e.addElement(I_CmsConstants.C_EXPORT_TAG_FIRSTNAME).addText(user.getFirstname()); e.addElement(I_CmsConstants.C_EXPORT_TAG_LASTNAME).addText(user.getLastname()); e.addElement(I_CmsConstants.C_EXPORT_TAG_EMAIL).addText(user.getEmail()); e.addElement(I_CmsConstants.C_EXPORT_TAG_FLAGS).addText(Integer.toString(user.getFlags())); e.addElement(I_CmsConstants.C_EXPORT_TAG_DEFAULTGROUP).addText(user.getDefaultGroup().getName()); e.addElement(I_CmsConstants.C_EXPORT_TAG_ADDRESS).addCDATA(user.getAddress()); e.addElement(I_CmsConstants.C_EXPORT_TAG_SECTION).addText(user.getSection()); e.addElement(I_CmsConstants.C_EXPORT_TAG_TYPE).addText(Integer.toString(user.getType())); // serialize the hashtable and write the info into a file try { String datfileName = "/~" + I_CmsConstants.C_EXPORT_TAG_USERINFO + "/" + user.getName() + ".dat"; // create tag for userinfo e.addElement(I_CmsConstants.C_EXPORT_TAG_USERINFO).addText(datfileName); ByteArrayOutputStream bout = new ByteArrayOutputStream(); ObjectOutputStream oout = new ObjectOutputStream(bout); oout.writeObject(user.getAdditionalInfo()); oout.close(); byte[] serializedInfo = bout.toByteArray(); // store the serialized user info hashtable in the zip-file ZipEntry entry = new ZipEntry(datfileName); m_exportZipStream.putNextEntry(entry); m_exportZipStream.write(serializedInfo); m_exportZipStream.closeEntry(); } catch (IOException ioe) { m_report.println(ioe); if (OpenCms.getLog(this).isErrorEnabled()) { OpenCms.getLog(this).error("Error writing user data to zip for user " + user.getName(), ioe); } } // append the node for groups of user Vector userGroups = m_cms.getDirectGroupsOfUser(user.getName()); Element g = e.addElement(I_CmsConstants.C_EXPORT_TAG_USERGROUPS); for (int i = 0; i < userGroups.size(); i++) { String groupName = ((CmsGroup)userGroups.elementAt(i)).getName(); g.addElement(I_CmsConstants.C_EXPORT_TAG_GROUPNAME).addElement(I_CmsConstants.C_EXPORT_TAG_NAME).addText(groupName); } // write the XML m_saxWriter.write(e); parent.remove(e); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/53cff9a64940155d16d0c3fb52dbbc95ed3cae02/CmsExport.java/buggy/src/org/opencms/importexport/CmsExport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3359,
1299,
12,
1046,
982,
16,
25492,
729,
13,
1216,
11228,
16,
14366,
288,
3639,
368,
527,
729,
756,
358,
326,
5643,
18,
2902,
3639,
3010,
425,
273,
982,
18,
1289,
1046,
12,
45,
67,
4747,
2918,
18,
39,
67,
31275,
67,
7927,
67,
4714,
4883,
1769,
3639,
425,
18,
1289,
1046,
12,
45,
67,
4747,
2918,
18,
39,
67,
31275,
67,
7927,
67,
1985,
16,
729,
18,
17994,
10663,
3639,
368,
2017,
326,
2201,
16,
1450,
279,
1026,
5178,
8320,
3639,
13887,
18,
23667,
18,
8369,
1105,
7204,
2446,
273,
394,
13887,
18,
23667,
18,
8369,
1105,
7204,
5621,
3639,
514,
19093,
273,
394,
514,
12,
1331,
18,
3015,
1892,
12,
1355,
18,
588,
3913,
7675,
588,
2160,
1435,
10019,
3639,
425,
18,
1289,
1046,
12,
45,
67,
4747,
2918,
18,
39,
67,
31275,
67,
7927,
67,
13784,
2934,
1289,
18375,
12,
24002,
1769,
3639,
425,
18,
1289,
1046,
12,
45,
67,
4747,
2918,
18,
39,
67,
31275,
67,
7927,
67,
30724,
17529,
13784,
2934,
1289,
18375,
12,
1355,
18,
588,
11548,
3913,
10663,
3639,
425,
18,
1289,
1046,
12,
45,
67,
4747,
2918,
18,
39,
67,
31275,
67,
7927,
67,
15911,
2934,
1289,
18375,
12,
1355,
18,
588,
3291,
10663,
3639,
425,
18,
1289,
1046,
12,
45,
67,
4747,
2918,
18,
39,
67,
31275,
67,
7927,
67,
15354,
1985,
2934,
1289,
1528,
12,
1355,
18,
588,
3759,
529,
10663,
3639,
425,
18,
1289,
1046,
12,
45,
67,
4747,
2918,
18,
39,
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,
3238,
918,
3359,
1299,
12,
1046,
982,
16,
25492,
729,
13,
1216,
11228,
16,
14366,
288,
3639,
368,
527,
729,
756,
358,
326,
5643,
18,
2902,
3639,
3010,
425,
273,
982,
18,
1289,
1046,
12,
45,
67,
4747,
2918,
18,
39,
67,
31275,
67,
7927,
67,
4714,
4883,
1769,
3639,
425,
18,
1289,
1046,
12,
45,
67,
4747,
2918,
18,
39,
67,
31275,
67,
7927,
67,
1985,
16,
729,
18,
17994,
10663,
3639,
368,
2017,
326,
2201,
16,
1450,
279,
1026,
5178,
8320,
3639,
13887,
18,
23667,
18,
8369,
1105,
7204,
2446,
273,
394,
13887,
18,
23667,
18,
8369,
1105,
7204,
5621,
3639,
514,
19093,
273,
394,
514,
12,
1331,
18,
3015,
1892,
12,
1355,
18,
588,
3913,
2
] |
cb.onFailure(new FetchException(FetchException.TOO_BIG, e), this); | cb.onFailure(new FetchException(FetchException.TOO_BIG, e.estimatedSize, false /* FIXME */, clientMetadata.getMIMEType()), this); | private void finish() { try { synchronized(this) { if(finished) { Logger.error(this, "Was already finished"); return; } finished = true; } Bucket data = finalStatus(); // Decompress while(!decompressors.isEmpty()) { Compressor c = (Compressor) decompressors.removeLast(); try { Bucket out = returnBucket; if(!decompressors.isEmpty()) out = null; data = c.decompress(data, fetchContext.bucketFactory, Math.max(fetchContext.maxTempLength, fetchContext.maxOutputLength), out); } catch (IOException e) { cb.onFailure(new FetchException(FetchException.BUCKET_ERROR, e), this); return; } catch (CompressionOutputSizeException e) { cb.onFailure(new FetchException(FetchException.TOO_BIG, e), this); return; } } cb.onSuccess(new FetchResult(clientMetadata, data), this); } catch (FetchException e) { cb.onFailure(e, this); } } | 48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/f466a9cbfdb3a13d7bde7e38d0a46b0f45645263/SplitFileFetcher.java/clean/src/freenet/client/async/SplitFileFetcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4076,
1435,
288,
202,
202,
698,
288,
1082,
202,
22043,
12,
2211,
13,
288,
9506,
202,
430,
12,
13527,
13,
288,
6862,
202,
3328,
18,
1636,
12,
2211,
16,
315,
14992,
1818,
6708,
8863,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
13527,
273,
638,
31,
1082,
202,
97,
1082,
202,
4103,
501,
273,
727,
1482,
5621,
1082,
202,
759,
26824,
1028,
1082,
202,
17523,
12,
5,
323,
14706,
1383,
18,
291,
1921,
10756,
288,
9506,
202,
16552,
280,
276,
273,
261,
16552,
280,
13,
16824,
1383,
18,
4479,
3024,
5621,
9506,
202,
698,
288,
6862,
202,
4103,
596,
273,
327,
4103,
31,
6862,
202,
430,
12,
5,
323,
14706,
1383,
18,
291,
1921,
10756,
596,
273,
446,
31,
6862,
202,
892,
273,
276,
18,
323,
14706,
12,
892,
16,
2158,
1042,
18,
7242,
1733,
16,
2361,
18,
1896,
12,
5754,
1042,
18,
1896,
7185,
1782,
16,
2158,
1042,
18,
1896,
1447,
1782,
3631,
596,
1769,
9506,
202,
97,
1044,
261,
14106,
425,
13,
288,
6862,
202,
7358,
18,
265,
5247,
12,
2704,
8065,
503,
12,
5005,
503,
18,
28888,
67,
3589,
16,
425,
3631,
333,
1769,
6862,
202,
2463,
31,
9506,
202,
97,
1044,
261,
15270,
1447,
1225,
503,
425,
13,
288,
6862,
202,
7358,
18,
265,
5247,
12,
2704,
8065,
503,
12,
5005,
503,
18,
4296,
51,
67,
19044,
16,
425,
3631,
333,
1769,
6862,
202,
2463,
31,
9506,
202,
97,
1082,
202,
97,
1082,
202,
7358,
18,
265,
4510,
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,
4076,
1435,
288,
202,
202,
698,
288,
1082,
202,
22043,
12,
2211,
13,
288,
9506,
202,
430,
12,
13527,
13,
288,
6862,
202,
3328,
18,
1636,
12,
2211,
16,
315,
14992,
1818,
6708,
8863,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
13527,
273,
638,
31,
1082,
202,
97,
1082,
202,
4103,
501,
273,
727,
1482,
5621,
1082,
202,
759,
26824,
1028,
1082,
202,
17523,
12,
5,
323,
14706,
1383,
18,
291,
1921,
10756,
288,
9506,
202,
16552,
280,
276,
273,
261,
16552,
280,
13,
16824,
1383,
18,
4479,
3024,
5621,
9506,
202,
698,
288,
6862,
202,
4103,
596,
273,
327,
4103,
31,
6862,
202,
430,
12,
5,
323,
14706,
1383,
18,
291,
1921,
2
] |
inserter = new ClientPutter(this, data, uri, cm, ctx, client.node.chkPutScheduler, client.node.sskPutScheduler, priorityClass, getCHKOnly, isMetadata, client, fs.subset("progress")); | Logger.minor(this, "data = "+data+", uploadFrom = "+ClientPutMessage.uploadFromString(uploadFrom)); inserter = new ClientPutter(this, data, uri, cm, ctx, client.node.chkPutScheduler, client.node.sskPutScheduler, priorityClass, getCHKOnly, isMetadata, client, null); if((persistenceType != PERSIST_CONNECTION) && (handler != null)) sendPendingMessages(handler.outputHandler, true, false, false); | public ClientPut(SimpleFieldSet fs, FCPClient client2) throws PersistenceParseException, IOException { super(fs, client2); String mimeType = fs.get("Metadata.ContentType"); String from = fs.get("UploadFrom"); if(from.equals("direct")) { uploadFrom = ClientPutMessage.UPLOAD_FROM_DIRECT; } else if(from.equals("disk")) { uploadFrom = ClientPutMessage.UPLOAD_FROM_DISK; } else if(from.equals("redirect")) { uploadFrom = ClientPutMessage.UPLOAD_FROM_REDIRECT; } else { // FIXME remove this back compatibility hack in a few builds' time String s = fs.get("FromDisk"); if(s.equalsIgnoreCase("true")) uploadFrom = ClientPutMessage.UPLOAD_FROM_DISK; else if(s.equalsIgnoreCase("false")) uploadFrom = ClientPutMessage.UPLOAD_FROM_DIRECT; else throw new PersistenceParseException("Unknown UploadFrom: "+from); } ClientMetadata cm = new ClientMetadata(mimeType); boolean isMetadata = false; if(uploadFrom == ClientPutMessage.UPLOAD_FROM_DISK) { origFilename = new File(fs.get("Filename")); data = new FileBucket(origFilename, true, false, false, false); targetURI = null; } else if(uploadFrom == ClientPutMessage.UPLOAD_FROM_DIRECT) { origFilename = null; if(!succeeded) { byte[] key = HexUtil.hexToBytes(fs.get("TempBucket.DecryptKey")); String fnam = fs.get("TempBucket.Filename"); long sz = Long.parseLong(fs.get("TempBucket.Size")); try { data = client.server.node.persistentTempBucketFactory.registerEncryptedBucket(fnam, key, sz); if(data.size() != sz) throw new PersistenceParseException("Size of bucket is wrong: "+data.size()+" should be "+sz); } catch (IOException e) { throw new PersistenceParseException("Could not read old bucket (should be "+sz+" bytes) for "+identifier); } } else data = null; targetURI = null; } else if(uploadFrom == ClientPutMessage.UPLOAD_FROM_REDIRECT) { String target = fs.get("TargetURI"); targetURI = new FreenetURI(target); Metadata m = new Metadata(Metadata.SIMPLE_REDIRECT, targetURI, cm); cm = null; byte[] d; try { d = m.writeToByteArray(); } catch (MetadataUnresolvedException e) { // Impossible Logger.error(this, "Impossible: "+e, e); onFailure(new InserterException(InserterException.INTERNAL_ERROR, "Impossible: "+e+" in ClientPut", null), null); this.data = null; clientMetadata = null; origFilename = null; inserter = null; return; } data = new SimpleReadOnlyArrayBucket(d); origFilename = null; isMetadata = true; } else { throw new PersistenceParseException("shouldn't happen"); } this.clientMetadata = cm; inserter = new ClientPutter(this, data, uri, cm, ctx, client.node.chkPutScheduler, client.node.sskPutScheduler, priorityClass, getCHKOnly, isMetadata, client, fs.subset("progress")); } | 46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/022b3b641f81edc10e6026a8efd1ca7217d42d0c/ClientPut.java/buggy/src/freenet/node/fcp/ClientPut.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
6426,
12,
5784,
974,
694,
2662,
16,
478,
4258,
1227,
1004,
22,
13,
1216,
13381,
13047,
16,
1860,
288,
202,
202,
9565,
12,
2556,
16,
1004,
22,
1769,
202,
202,
780,
10707,
273,
2662,
18,
588,
2932,
2277,
18,
8046,
8863,
202,
202,
780,
628,
273,
2662,
18,
588,
2932,
4777,
1265,
8863,
9506,
202,
430,
12,
2080,
18,
14963,
2932,
7205,
6,
3719,
288,
1082,
202,
6327,
1265,
273,
2445,
6426,
1079,
18,
23347,
67,
11249,
67,
17541,
31,
202,
202,
97,
469,
309,
12,
2080,
18,
14963,
2932,
10863,
6,
3719,
288,
1082,
202,
6327,
1265,
273,
2445,
6426,
1079,
18,
23347,
67,
11249,
67,
2565,
11129,
31,
202,
202,
97,
469,
309,
12,
2080,
18,
14963,
2932,
7590,
6,
3719,
288,
1082,
202,
6327,
1265,
273,
2445,
6426,
1079,
18,
23347,
67,
11249,
67,
25103,
31,
202,
202,
97,
469,
288,
1082,
202,
759,
9852,
1206,
333,
1473,
8926,
11769,
316,
279,
11315,
10736,
11,
813,
1082,
202,
780,
272,
273,
2662,
18,
588,
2932,
1265,
6247,
8863,
1082,
202,
430,
12,
87,
18,
14963,
5556,
2932,
3767,
6,
3719,
9506,
202,
6327,
1265,
273,
2445,
6426,
1079,
18,
23347,
67,
11249,
67,
2565,
11129,
31,
1082,
202,
12107,
309,
12,
87,
18,
14963,
5556,
2932,
5743,
6,
3719,
9506,
202,
6327,
1265,
273,
2445,
6426,
1079,
18,
23347,
67,
11249,
67,
17541,
31,
1082,
202,
12107,
9506,
202,
12849,
394,
13381,
13047,
2932,
4874,
9414,
1265,
30,
13773,
2080,
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,
2445,
6426,
12,
5784,
974,
694,
2662,
16,
478,
4258,
1227,
1004,
22,
13,
1216,
13381,
13047,
16,
1860,
288,
202,
202,
9565,
12,
2556,
16,
1004,
22,
1769,
202,
202,
780,
10707,
273,
2662,
18,
588,
2932,
2277,
18,
8046,
8863,
202,
202,
780,
628,
273,
2662,
18,
588,
2932,
4777,
1265,
8863,
9506,
202,
430,
12,
2080,
18,
14963,
2932,
7205,
6,
3719,
288,
1082,
202,
6327,
1265,
273,
2445,
6426,
1079,
18,
23347,
67,
11249,
67,
17541,
31,
202,
202,
97,
469,
309,
12,
2080,
18,
14963,
2932,
10863,
6,
3719,
288,
1082,
202,
6327,
1265,
273,
2445,
6426,
1079,
18,
23347,
67,
11249,
67,
2565,
11129,
31,
202,
202,
97,
469,
309,
2
] |
if (VM.VerifyAssertions) VM.assert(compiler.klass.isDynamicBridge()); | if (VM.VerifyAssertions) VM._assert(compiler.klass.isDynamicBridge()); | generateInlineCode(VM_Compiler compiler, VM_Method methodToBeCalled) { VM_Atom methodName = methodToBeCalled.getName(); VM_Assembler asm = compiler.asm; int spSaveAreaOffset = compiler.spSaveAreaOffset; if (methodName == VM_MagicNames.sysCall0) { generateSysCall1(asm, 0, false ); generateSysCall2(asm, 0); generateSysCallRet_I(asm, 0); } else if (methodName == VM_MagicNames.sysCall1) { int valueOffset = generateSysCall1(asm, SIZE_INTEGER, false ); valueOffset -= SIZE_INTEGER; asm.emitL(3, valueOffset, SP); // load value generateSysCall2(asm, SIZE_INTEGER); generateSysCallRet_I(asm, SIZE_INTEGER); } else if (methodName == VM_MagicNames.sysCall2) { int valueOffset = generateSysCall1(asm, 2 * SIZE_INTEGER, false ); valueOffset -= SIZE_INTEGER; asm.emitL(3, valueOffset, SP); // load value1 valueOffset -= SIZE_INTEGER; asm.emitL(3 + 1, valueOffset, SP); // load value2 generateSysCall2(asm, 2 * SIZE_INTEGER); generateSysCallRet_I(asm, 2 * SIZE_INTEGER); } else if (methodName == VM_MagicNames.sysCall3) { int valueOffset = generateSysCall1(asm, 3 * SIZE_INTEGER, false ); valueOffset -= SIZE_INTEGER; asm.emitL(3, valueOffset, SP); // load value1 valueOffset -= SIZE_INTEGER; asm.emitL(3 + 1, valueOffset, SP); // load value2 valueOffset -= SIZE_INTEGER; asm.emitL(3 + 2, valueOffset, SP); // load value3 generateSysCall2(asm, 3 * SIZE_INTEGER); generateSysCallRet_I(asm, 3 * SIZE_INTEGER); } else if (methodName == VM_MagicNames.sysCall4) { int valueOffset = generateSysCall1(asm, 4 * SIZE_INTEGER, false ); valueOffset -= SIZE_INTEGER; asm.emitL(3, valueOffset, SP); // load value1 valueOffset -= SIZE_INTEGER; asm.emitL(3 + 1, valueOffset, SP); // load value2 valueOffset -= SIZE_INTEGER; asm.emitL(3 + 2, valueOffset, SP); // load value3 valueOffset -= SIZE_INTEGER; asm.emitL(3 + 3, valueOffset, SP); // load value4 generateSysCall2(asm, 4 * SIZE_INTEGER); generateSysCallRet_I(asm, 4 * SIZE_INTEGER); } else if (methodName == VM_MagicNames.sysCall_L_0) { generateSysCall1(asm, 0, false ); generateSysCall2(asm, 0); generateSysCallRet_L(asm, 0); } else if (methodName == VM_MagicNames.sysCall_L_I) { int valueOffset = generateSysCall1(asm, SIZE_INTEGER, false ); valueOffset -= SIZE_INTEGER; asm.emitL(3, valueOffset, SP); // load value generateSysCall2(asm, SIZE_INTEGER); generateSysCallRet_L(asm, SIZE_INTEGER); } else if (methodName == VM_MagicNames.sysCallAD) { int valueOffset = generateSysCall1(asm, 3 * SIZE_INTEGER, false ); valueOffset -= SIZE_INTEGER; asm.emitL(3, valueOffset, SP); // load value1 valueOffset -= SIZE_INTEGER; asm.emitLFD(0, valueOffset, SP); // load value2 generateSysCall2(asm, 3 * SIZE_INTEGER); generateSysCallRet_I(asm, 3 * SIZE_INTEGER); } else if (methodName == VM_MagicNames.sysCallSigWait) { int ipOffset = VM_Entrypoints.registersIPField.getOffset(); int gprsOffset = VM_Entrypoints.registersGPRsField.getOffset(); asm.emitL (T0, 0, SP); // t0 := address of VM_Registers object asm.emitCAL (SP, 4, SP); // pop address of VM_Registers object VM_ForwardReference fr1 = asm.emitForwardBL(); fr1.resolve(asm); asm.emitMFLR(0); asm.emitST (0, ipOffset, T0 ); // store ip into VM_Registers Object asm.emitL (T0, gprsOffset, T0); // TO <- registers.gprs[] asm.emitST (FP, FP*4, T0); int valueOffset = generateSysCall1(asm, 2 * SIZE_INTEGER, true ); valueOffset -= SIZE_INTEGER; asm.emitL(3, valueOffset, SP); // load value1 valueOffset -= SIZE_INTEGER; asm.emitL(3 + 1, valueOffset, SP); // load value2 generateSysCall2(asm, 2 * SIZE_INTEGER); generateSysCallRet_I(asm, 2 * SIZE_INTEGER); } else if (methodName == VM_MagicNames.getFramePointer) { asm.emitSTU(FP, -4, SP); // push FP } else if (methodName == VM_MagicNames.getCallerFramePointer) { asm.emitL (T0, 0, SP); // pop frame pointer of callee frame asm.emitL (T1, STACKFRAME_FRAME_POINTER_OFFSET, T0); // load frame pointer of caller frame asm.emitST(T1, 0, SP); // push frame pointer of caller frame } else if (methodName == VM_MagicNames.setCallerFramePointer) { asm.emitL (T0, +4, SP); // fp asm.emitL (T1, 0, SP); // value asm.emitST (T1, STACKFRAME_FRAME_POINTER_OFFSET, T0); // *(address+SFPO) := value asm.emitCAL(SP, 8, SP); // pop address, pop value } else if (methodName == VM_MagicNames.getCompiledMethodID) { asm.emitL (T0, 0, SP); // pop frame pointer of callee frame asm.emitL (T1, STACKFRAME_METHOD_ID_OFFSET, T0); // load frame pointer of caller frame asm.emitST(T1, 0, SP); // push frame pointer of caller frame } else if (methodName == VM_MagicNames.setCompiledMethodID) { asm.emitL (T0, +4, SP); // fp asm.emitL (T1, 0, SP); // value asm.emitST (T1, STACKFRAME_METHOD_ID_OFFSET, T0); // *(address+SNIO) := value asm.emitCAL(SP, 8, SP); // pop address, pop value } else if (methodName == VM_MagicNames.getNextInstructionAddress) { asm.emitL (T0, 0, SP); // pop frame pointer of callee frame asm.emitL (T1, STACKFRAME_NEXT_INSTRUCTION_OFFSET, T0); // load frame pointer of caller frame asm.emitST(T1, 0, SP); // push frame pointer of caller frame } else if (methodName == VM_MagicNames.setNextInstructionAddress) { asm.emitL (T0, +4, SP); // fp asm.emitL (T1, 0, SP); // value asm.emitST (T1, STACKFRAME_NEXT_INSTRUCTION_OFFSET, T0); // *(address+SNIO) := value asm.emitCAL(SP, 8, SP); // pop address, pop value } else if (methodName == VM_MagicNames.getReturnAddress) { asm.emitL (T0, 0, SP); // pop frame pointer of callee frame asm.emitL (T1, STACKFRAME_FRAME_POINTER_OFFSET, T0); // load frame pointer of caller frame asm.emitL (T2, STACKFRAME_NEXT_INSTRUCTION_OFFSET, T1); // load frame pointer of caller frame asm.emitST(T2, 0, SP); // push frame pointer of caller frame } else if (methodName == VM_MagicNames.setReturnAddress) { asm.emitL (T0, +4, SP); // fp asm.emitL (T0, STACKFRAME_FRAME_POINTER_OFFSET, T0); // load frame pointer of caller frame asm.emitL (T1, 0, SP); // value asm.emitST (T1, STACKFRAME_NEXT_INSTRUCTION_OFFSET, T0); // *(address+SNIO) := value asm.emitCAL(SP, 8, SP); // pop address, pop value } else if (methodName == VM_MagicNames.getTocPointer || methodName == VM_MagicNames.getJTOC) { asm.emitSTU(JTOC, -4, SP); // push JTOC } else if (methodName == VM_MagicNames.getThreadId) { asm.emitSTU(TI, -4, SP); // push TI } else if (methodName == VM_MagicNames.setThreadId) { asm.emitL (TI, 0, SP); // TI := (shifted) thread index asm.emitCAL(SP, 4, SP); // pop threadid arg } else if (methodName == VM_MagicNames.getProcessorRegister) { asm.emitSTU(PROCESSOR_REGISTER, -4, SP); } else if (methodName == VM_MagicNames.setProcessorRegister) { asm.emitL (PROCESSOR_REGISTER, 0, SP); // register := arg asm.emitCAL(SP, 4, SP); // pop arg } else if (methodName == VM_MagicNames.getTimeBase) { int label = asm.getMachineCodeIndex(); asm.emitMFTBU(T0); // T0 := time base, upper asm.emitMFTB (T1); // T1 := time base, lower asm.emitMFTBU(T2); // T2 := time base, upper asm.emitCMP (T0, T2); // T0 == T2? asm.emitBC (NE, label); // lower rolled over, try again asm.emitSTU (T1, -4, SP); // push low asm.emitSTU (T0, -4, SP); // push high } else if (methodName == VM_MagicNames.getTime) { asm.emitL (T0, 0, SP); // t0 := address of VM_Processor object asm.emitCAL(SP, 4, SP); // pop arg asm.emitLtoc(S0, VM_Entrypoints.getTimeInstructionsField.getOffset()); asm.emitMTLR(S0); asm.emitCall(spSaveAreaOffset); // call out of line machine code asm.emitSTFDU (F0, -8, SP); // push return value } else if (methodName == VM_MagicNames.invokeMain) { asm.emitL (T0, 0, SP); // t0 := ip asm.emitMTLR(T0); asm.emitCAL (SP, 4, SP); // pop ip asm.emitL (T0, 0, SP); // t0 := parameter asm.emitCall(spSaveAreaOffset); // call asm.emitCAL (SP, 4, SP); // pop parameter } else if (methodName == VM_MagicNames.invokeClassInitializer) { asm.emitL (T0, 0, SP); // t0 := address to be called asm.emitCAL (SP, 4, SP); // pop ip asm.emitMTLR(T0); asm.emitCall(spSaveAreaOffset); // call } else if (methodName == VM_MagicNames.invokeMethodReturningVoid) { generateMethodInvocation(asm, spSaveAreaOffset); // call method } else if (methodName == VM_MagicNames.invokeMethodReturningInt) { generateMethodInvocation(asm, spSaveAreaOffset); // call method asm.emitSTU(T0, -4, SP); // push result } else if (methodName == VM_MagicNames.invokeMethodReturningLong) { generateMethodInvocation(asm, spSaveAreaOffset); // call method asm.emitSTU(T1, -4, SP); // push result asm.emitSTU(T0, -4, SP); // push result } else if (methodName == VM_MagicNames.invokeMethodReturningFloat) { generateMethodInvocation(asm, spSaveAreaOffset); // call method asm.emitSTFSU(F0, -4, SP); // push result } else if (methodName == VM_MagicNames.invokeMethodReturningDouble) { generateMethodInvocation(asm, spSaveAreaOffset); // call method asm.emitSTFDU(F0, -8, SP); // push result } else if (methodName == VM_MagicNames.invokeMethodReturningObject) { generateMethodInvocation(asm, spSaveAreaOffset); // call method asm.emitSTU(T0, -4, SP); // push result } else if (methodName == VM_MagicNames.getIntAtOffset || methodName == VM_MagicNames.getObjectAtOffset || methodName == VM_MagicNames.getObjectArrayAtOffset) { asm.emitL (T0, +4, SP); // pop object asm.emitL (T1, 0, SP); // pop offset asm.emitLX (T0, T1, T0); // *(object+offset) asm.emitSTU (T0, 4, SP); // push *(object+offset) } else if (methodName == VM_MagicNames.getByteAtOffset) { asm.emitL (T0, +4, SP); // pop object asm.emitL (T1, 0, SP); // pop offset asm.emitLBZX(T0, T1, T0); // load byte with zero extension. asm.emitSTU (T0, 4, SP); // push *(object+offset) } else if (methodName == VM_MagicNames.setIntAtOffset || methodName == VM_MagicNames.setObjectAtOffset) { asm.emitL (T0, +8, SP); // pop object asm.emitL (T1, +4, SP); // pop offset asm.emitL (T2, 0, SP); // pop newvalue asm.emitSTX(T2, T1, T0); // *(object+offset) = newvalue asm.emitCAL(SP, 12, SP); // drop all args } else if (methodName == VM_MagicNames.setByteAtOffset) { asm.emitL (T0, +8, SP); // pop object asm.emitL (T1, +4, SP); // pop offset asm.emitL (T2, 0, SP); // pop newvalue asm.emitSTBX(T2, T1, T0); // *(object+offset) = newvalue asm.emitCAL(SP, 12, SP); // drop all args } else if (methodName == VM_MagicNames.getLongAtOffset) { asm.emitL (T1, +4, SP); // pop object asm.emitL (T2, 0, SP); // pop offset asm.emitLX (T0, T1, T2); // *(object+offset) asm.emitCAL(T2, +4, T2); // offset += 4 asm.emitLX (T1, T1, T2); // *(object+offset+4) asm.emitST (T0, 0, SP); // *sp := *(object+offset) asm.emitST (T1, +4, SP); // *sp+4 := *(object+offset+4) } else if (methodName == VM_MagicNames.setLongAtOffset) { asm.emitL (T0,+12, SP); // pop object asm.emitL (T1, +8, SP); // pop offset asm.emitL (T2, 0, SP); // pop newvalue low asm.emitSTX(T2, T1, T0); // *(object+offset) = newvalue low asm.emitCAL(T1, +4, T1); // offset += 4 asm.emitL (T2, +4, SP); // pop newvalue high asm.emitSTX(T2, T1, T0); // *(object+offset) = newvalue high asm.emitCAL(SP, 16, SP); // drop all args } else if (methodName == VM_MagicNames.getMemoryWord || methodName == VM_MagicNames.getMemoryAddress) { asm.emitL (T0, 0, SP); // address asm.emitL (T0, 0, T0); // *address asm.emitST (T0, 0, SP); // *sp := *address } else if (methodName == VM_MagicNames.setMemoryWord || methodName == VM_MagicNames.setMemoryAddress) { asm.emitL (T0, 4, SP); // address asm.emitL (T1, 0, SP); // value asm.emitST (T1, 0, T0); // *address := value asm.emitCAL(SP, 8, SP); // pop address, pop value } else if (methodName == VM_MagicNames.prepare) { asm.emitL (T0, 4, SP); // pop object asm.emitL (T1, 0, SP); // pop offset if (VM.BuildForSingleVirtualProcessor) { asm.emitLX (T0, T1, T0); // *(object+offset) } else { asm.emitLWARX(T0, T1, T0); // *(object+offset), setting processor's reservation address } asm.emitSTU (T0, 4, SP); // push *(object+offset) } else if (methodName == VM_MagicNames.attempt) { asm.emitL (T0, 12, SP); // pop object asm.emitL (T1, 8, SP); // pop offset asm.emitL (T2, 0, SP); // pop newValue (ignore oldValue) if (VM.BuildForSingleVirtualProcessor) { asm.emitSTX (T2, T1, T0); // store new value (on one VP this succeeds by definition) asm.emitCAL (T0, 1, 0); // T0 := true asm.emitSTU (T0, 12, SP); // push success of conditional store } else { asm.emitSTWCXr(T2, T1, T0); // store new value and set CR0 asm.emitCAL (T0, 0, 0); // T0 := false VM_ForwardReference fr = asm.emitForwardBC(NE); // skip, if store failed asm.emitCAL (T0, 1, 0); // T0 := true fr.resolve(asm); asm.emitSTU (T0, 12, SP); // push success of conditional store } } else if (methodName == VM_MagicNames.setThreadSwitchBit) { asm.emitCRORC(THREAD_SWITCH_BIT, 0, 0); } else if (methodName == VM_MagicNames.clearThreadSwitchBit) { asm.emitCRANDC(THREAD_SWITCH_BIT, 0, 0); } else if (methodName == VM_MagicNames.saveThreadState) { asm.emitL (T0, 0, SP); // T0 := address of VM_Registers object asm.emitLtoc(S0, VM_Entrypoints.saveThreadStateInstructionsField.getOffset()); asm.emitMTLR(S0); asm.emitCall(spSaveAreaOffset); // call out of line machine code asm.emitCAL(SP, 4, SP); // pop arg } else if (methodName == VM_MagicNames.threadSwitch) { asm.emitL(T0, 4, SP); // T0 := address of previous VM_Thread object asm.emitL(T1, 0, SP); // T1 := address of VM_Registers of new thread asm.emitLtoc(S0, VM_Entrypoints.threadSwitchInstructionsField.getOffset()); asm.emitMTLR(S0); asm.emitCall(spSaveAreaOffset); asm.emitCAL(SP, 8, SP); // pop two args } else if (methodName == VM_MagicNames.restoreHardwareExceptionState) { asm.emitL(T0, 0, SP); // T0 := address of VM_Registers object asm.emitLtoc(S0, VM_Entrypoints.restoreHardwareExceptionStateInstructionsField.getOffset()); asm.emitMTLR(S0); asm.emitBLR(); // branch to out of line machine code (does not return) } else if (methodName == VM_MagicNames.returnToNewStack) { asm.emitL (FP, 0, SP); // FP := new stackframe asm.emitL (S0, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); // fetch... asm.emitMTLR(S0); // ...return address asm.emitBLR (); // return to caller } else if (methodName == VM_MagicNames.dynamicBridgeTo) { if (VM.VerifyAssertions) VM.assert(compiler.klass.isDynamicBridge()); // fetch parameter (address to branch to) into CT register // asm.emitL(T0, 0, SP); asm.emitMTCTR(T0); // restore volatile and non-volatile registers // (note that these are only saved for "dynamic bridge" methods) // int offset = compiler.frameSize; // restore non-volatile and volatile fprs for (int i = LAST_NONVOLATILE_FPR; i >= FIRST_VOLATILE_FPR; --i) asm.emitLFD(i, offset -= 8, FP); // restore non-volatile gprs for (int i = LAST_NONVOLATILE_GPR; i >= FIRST_NONVOLATILE_GPR; --i) asm.emitL(i, offset -= 4, FP); // skip saved thread-id, processor, and scratch registers offset -= (FIRST_NONVOLATILE_GPR - LAST_VOLATILE_GPR - 1) * 4; // restore volatile gprs for (int i = LAST_VOLATILE_GPR; i >= FIRST_VOLATILE_GPR; --i) asm.emitL(i, offset -= 4, FP); // pop stackframe asm.emitL(FP, 0, FP); // restore link register asm.emitL(S0, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); asm.emitMTLR(S0); asm.emitBCTR(); // branch always, through count register } else if (methodName == VM_MagicNames.objectAsAddress || methodName == VM_MagicNames.addressAsByteArray || methodName == VM_MagicNames.addressAsIntArray || methodName == VM_MagicNames.addressAsObject || methodName == VM_MagicNames.addressAsObjectArray || methodName == VM_MagicNames.addressAsType || methodName == VM_MagicNames.objectAsType || methodName == VM_MagicNames.objectAsByteArray || methodName == VM_MagicNames.objectAsShortArray || methodName == VM_MagicNames.objectAsIntArray || methodName == VM_MagicNames.addressAsThread || methodName == VM_MagicNames.objectAsThread || methodName == VM_MagicNames.objectAsProcessor || //-#if RVM_WITH_JIKESRVM_MEMORY_MANAGERS methodName == VM_MagicNames.addressAsBlockControl || methodName == VM_MagicNames.addressAsSizeControl || methodName == VM_MagicNames.addressAsSizeControlArray || //-#if RVM_WITH_CONCURRENT_GC methodName == VM_MagicNames.threadAsRCCollectorThread || //-#endif //-#endif methodName == VM_MagicNames.threadAsCollectorThread || methodName == VM_MagicNames.addressAsRegisters || methodName == VM_MagicNames.addressAsStack || methodName == VM_MagicNames.floatAsIntBits || methodName == VM_MagicNames.intBitsAsFloat || methodName == VM_MagicNames.doubleAsLongBits || methodName == VM_MagicNames.longBitsAsDouble) { // no-op (a type change, not a representation change) } else if (methodName == VM_MagicNames.getObjectType) { generateGetObjectType(asm); } else if (methodName == VM_MagicNames.getArrayLength) { generateGetArrayLength(asm); } else if (methodName == VM_MagicNames.sync) { asm.emitSYNC(); } else if (methodName == VM_MagicNames.isync) { asm.emitISYNC(); } else if (methodName == VM_MagicNames.dcbst) { asm.emitL(T0, 0, SP); // address asm.emitCAL(SP, 4, SP); // pop asm.emitDCBST(0, T0); } else if (methodName == VM_MagicNames.icbi) { asm.emitL(T0, 0, SP); // address asm.emitCAL(SP, 4, SP); // pop asm.emitICBI(0, T0); } else if (methodName == VM_MagicNames.pragmaNoOptCompile) { // meaningless; for the optimizing compiler forces baseline compilation } else if (methodName == VM_MagicNames.addressFromInt) { // no-op if (DEBUG >= 1) VM.sysWriteln("VM_AddressCompiler.java: Translating VM_Address.fromInt as no-op"); } else if (methodName == VM_MagicNames.addressToInt) { // no-op if (DEBUG >= 1) VM.sysWriteln("VM_AddressCompiler.java: Translating VM_Address.toInt as no-op"); } else if (methodName == VM_MagicNames.addressAdd) { // same as an integer add if (DEBUG >= 1) VM.sysWriteln("VM_AddressCompiler.java: Translating VM_Address.add as integer add"); asm.emitL (T0, 0, SP); asm.emitL (T1, 4, SP); asm.emitA (T2, T1, T0); asm.emitSTU(T2, 4, SP); } else if (methodName == VM_MagicNames.addressSub || methodName == VM_MagicNames.addressDiff) { // same as an integer subtraction if (DEBUG >= 1) VM.sysWriteln("VM_AddressCompiler.java: Translating VM_Address.sub/diff as integer sub"); asm.emitL (T0, 0, SP); asm.emitL (T1, 4, SP); asm.emitSF (T2, T0, T1); asm.emitSTU(T2, 4, SP); } else if (methodName == VM_MagicNames.addressLT) { // unsigned comparison generating a boolean if (DEBUG >= 1) VM.sysWriteln("VM_AddressCompiler.java: Translating VM_Address.LT as unsigned comparison"); generateAddrComparison(asm, LT); } else if (methodName == VM_MagicNames.addressLE) { // unsigned comparison generating a boolean if (DEBUG >= 1) VM.sysWriteln("VM_AddressCompiler.java: Translating VM_Address.LE as unsigned comparison"); generateAddrComparison(asm, LE); } else if (methodName == VM_MagicNames.addressEQ) { // unsigned comparison generating a boolean if (DEBUG >= 1) VM.sysWriteln("VM_AddressCompiler.java: Translating VM_Address.EQ as unsigned comparison"); generateAddrComparison(asm, EQ); } else if (methodName == VM_MagicNames.addressNE) { // unsigned comparison generating a boolean if (DEBUG >= 1) VM.sysWriteln("VM_AddressCompiler.java: Translating VM_Address.NE as unsigned comparison"); generateAddrComparison(asm, NE); } else if (methodName == VM_MagicNames.addressGT) { // unsigned comparison generating a boolean if (DEBUG >= 1) VM.sysWriteln("VM_AddressCompiler.java: Translating VM_Address.GT as unsigned comparison"); generateAddrComparison(asm, GT); } else if (methodName == VM_MagicNames.addressGE) { // unsigned comparison generating a boolean if (DEBUG >= 1) VM.sysWriteln("VM_AddressCompiler.java: Translating VM_Address.GE as unsigned comparison"); generateAddrComparison(asm, GE); } else if (methodName == VM_MagicNames.addressIsZero) { // unsigned comparison generating a boolean if (DEBUG >= 1) VM.sysWriteln("VM_AddressCompiler.java: Translating VM_Address.isZero as unsigned comparison"); asm.emitLIL (T0, 0); asm.emitSTU (T0, -4, SP); generateAddrComparison(asm, EQ); } else if (methodName == VM_MagicNames.addressIsMax) { // unsigned comparison generating a boolean if (DEBUG >= 1) VM.sysWriteln("VM_AddressCompiler.java: Translating VM_Address.isMax as unsigned comparison"); asm.emitLIL (T0, -1); asm.emitSTU (T0, -4, SP); generateAddrComparison(asm, EQ); } else if (methodName == VM_MagicNames.addressZero) { // unsigned comparison generating a boolean if (DEBUG >= 1) VM.sysWriteln("VM_AddressCompiler.java: Translating VM_Address.zero as 0"); asm.emitLIL (T0, 0); asm.emitSTU (T0, -4, SP); } else if (methodName == VM_MagicNames.addressMax) { // unsigned comparison generating a boolean if (DEBUG >= 1) VM.sysWriteln("VM_AddressCompiler.java: Translating VM_Address.max as -1"); asm.emitLIL (T0, -1); asm.emitSTU (T0, -4, SP); } else { VM.sysWrite("VM_MagicCompiler.java: no magic for " + methodToBeCalled + "\n"); if (VM.VerifyAssertions) VM.assert(NOT_REACHED); } } private static void generateAddrComparison(VM_Assembler asm, int cc) { asm.emitL (T1, 0, SP); asm.emitL (T0, 4, SP); asm.emitLIL(T2, 1); asm.emitCMPL(T0, T1); // unsigned comparison VM_ForwardReference fr = asm.emitForwardBC(cc); asm.emitLIL(T2, 0); fr.resolve(asm); asm.emitSTU(T2, 4, SP); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/f852e312fd5d6396bdeff809dda7a5e06d3d3bed/VM_MagicCompiler.java/clean/rvm/src/vm/arch/powerPC/compilers/baseline/VM_MagicCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
2103,
10870,
1085,
12,
7397,
67,
9213,
5274,
16,
8251,
67,
1305,
707,
15360,
8185,
13,
288,
565,
8251,
67,
3641,
1377,
4918,
4202,
273,
707,
15360,
8185,
18,
17994,
5621,
565,
8251,
67,
1463,
5747,
749,
20415,
2868,
273,
5274,
18,
23522,
31,
565,
509,
1850,
1694,
4755,
5484,
2335,
273,
5274,
18,
1752,
4755,
5484,
2335,
31,
1850,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
9499,
1477,
20,
13,
288,
1377,
2103,
12712,
1477,
21,
12,
23522,
16,
374,
16,
629,
11272,
1377,
2103,
12712,
1477,
22,
12,
23522,
16,
374,
1769,
1377,
2103,
12712,
1477,
7055,
67,
45,
12,
23522,
16,
374,
1769,
565,
289,
469,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
9499,
1477,
21,
13,
288,
1377,
509,
460,
2335,
273,
2103,
12712,
1477,
21,
12,
23522,
16,
11963,
67,
14217,
16,
629,
11272,
1377,
460,
2335,
3947,
11963,
67,
14217,
31,
1377,
20415,
18,
18356,
48,
12,
23,
16,
460,
2335,
16,
225,
11405,
1769,
1850,
368,
1262,
460,
1377,
2103,
12712,
1477,
22,
12,
23522,
16,
11963,
67,
14217,
1769,
1377,
2103,
12712,
1477,
7055,
67,
45,
12,
23522,
16,
11963,
67,
14217,
1769,
565,
289,
469,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
9499,
1477,
22,
13,
288,
1377,
509,
460,
2335,
273,
2103,
12712,
1477,
21,
12,
23522,
16,
576,
380,
11963,
67,
14217,
16,
629,
11272,
1377,
460,
2335,
3947,
11963,
67,
14217,
31,
1377,
20415,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
2103,
10870,
1085,
12,
7397,
67,
9213,
5274,
16,
8251,
67,
1305,
707,
15360,
8185,
13,
288,
565,
8251,
67,
3641,
1377,
4918,
4202,
273,
707,
15360,
8185,
18,
17994,
5621,
565,
8251,
67,
1463,
5747,
749,
20415,
2868,
273,
5274,
18,
23522,
31,
565,
509,
1850,
1694,
4755,
5484,
2335,
273,
5274,
18,
1752,
4755,
5484,
2335,
31,
1850,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
9499,
1477,
20,
13,
288,
1377,
2103,
12712,
1477,
21,
12,
23522,
16,
374,
16,
629,
11272,
1377,
2103,
12712,
1477,
22,
12,
23522,
16,
374,
1769,
1377,
2103,
12712,
1477,
7055,
67,
45,
12,
23522,
16,
374,
1769,
565,
289,
469,
309,
261,
2039,
461,
422,
8251,
2
] |
public static WeaponType createMG() { WeaponType weapon = new WeaponType(); weapon.name = "Machine Gun"; weapon.internalName = weapon.name; weapon.mepName = "IS Machine Gun"; weapon.mtfName = "ISMachine Gun"; weapon.heat = 0; weapon.damage = 2; weapon.rackSize = 2; weapon.ammoType = AmmoType.T_MG; weapon.minimumRange = WEAPON_NA; weapon.shortRange = 1; weapon.mediumRange = 2; weapon.longRange = 3; weapon.tonnage = 0.5f; weapon.criticals = 1; weapon.bv = 5; return weapon; } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/19768fb3c0b30b271bc193aa54683c8592962b26/WeaponType.java/clean/megamek/src/megamek/common/WeaponType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1660,
28629,
559,
752,
49,
43,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
7734,
732,
28629,
18,
529,
273,
315,
6981,
611,
318,
14432,
3639,
732,
28629,
18,
7236,
461,
273,
732,
28629,
18,
529,
31,
3639,
732,
28629,
18,
81,
881,
461,
273,
315,
5127,
12026,
611,
318,
14432,
3639,
732,
28629,
18,
1010,
74,
461,
273,
315,
5127,
6981,
611,
318,
14432,
3639,
732,
28629,
18,
580,
270,
273,
374,
31,
3639,
732,
28629,
18,
72,
301,
410,
273,
576,
31,
3639,
732,
28629,
18,
21580,
1225,
273,
576,
31,
3639,
732,
28629,
18,
301,
8683,
559,
273,
3986,
8683,
559,
18,
56,
67,
49,
43,
31,
3639,
732,
28629,
18,
15903,
2655,
273,
13880,
2203,
673,
67,
11277,
31,
3639,
732,
28629,
18,
6620,
2655,
273,
404,
31,
3639,
732,
28629,
18,
19011,
2655,
273,
576,
31,
3639,
732,
28629,
18,
5748,
2655,
273,
890,
31,
3639,
732,
28629,
18,
1917,
82,
410,
273,
374,
18,
25,
74,
31,
3639,
732,
28629,
18,
27826,
335,
1031,
273,
404,
31,
3639,
732,
28629,
18,
70,
90,
273,
1381,
31,
7734,
327,
732,
28629,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1660,
28629,
559,
752,
49,
43,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
7734,
732,
28629,
18,
529,
273,
315,
6981,
611,
318,
14432,
3639,
732,
28629,
18,
7236,
461,
273,
732,
28629,
18,
529,
31,
3639,
732,
28629,
18,
81,
881,
461,
273,
315,
5127,
12026,
611,
318,
14432,
3639,
732,
28629,
18,
1010,
74,
461,
273,
315,
5127,
6981,
611,
318,
14432,
3639,
732,
28629,
18,
580,
270,
273,
374,
31,
3639,
732,
28629,
18,
72,
301,
410,
273,
576,
31,
3639,
732,
28629,
18,
21580,
1225,
273,
576,
31,
3639,
732,
28629,
18,
301,
8683,
559,
273,
3986,
8683,
559,
18,
56,
67,
49,
43,
31,
2
] |
||
out.println("<h1>Hello World<h1>"); out.println("Blah blah blah."); | out.println("<h1>Hello World</h1>"); doJNDI(out); | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); ServletOutputStream out = response.getOutputStream(); out.println("<html>"); out.println("<h1>Hello World<h1>"); out.println("Blah blah blah."); out.println("</html>"); out.flush(); } | 13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/11b80b66c7bb4248815268fb1ff430a16ba75a7c/HelloWorld.java/clean/trunk/modules/test-webapp/src/main/java/com/acme/HelloWorld.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
2940,
18572,
590,
16,
12446,
766,
13,
1216,
16517,
16,
1860,
565,
288,
3639,
766,
18,
542,
8046,
2932,
955,
19,
2620,
8863,
3639,
7971,
4632,
596,
273,
766,
18,
588,
4632,
5621,
3639,
596,
18,
8222,
2932,
32,
2620,
2984,
1769,
3639,
596,
18,
8222,
2932,
32,
76,
21,
34,
18601,
21820,
32,
76,
21,
2984,
1769,
3639,
596,
18,
8222,
2932,
4802,
9795,
2811,
9795,
2811,
9795,
1199,
1769,
3639,
596,
18,
8222,
2932,
1757,
2620,
2984,
1769,
3639,
596,
18,
11330,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
2940,
18572,
590,
16,
12446,
766,
13,
1216,
16517,
16,
1860,
565,
288,
3639,
766,
18,
542,
8046,
2932,
955,
19,
2620,
8863,
3639,
7971,
4632,
596,
273,
766,
18,
588,
4632,
5621,
3639,
596,
18,
8222,
2932,
32,
2620,
2984,
1769,
3639,
596,
18,
8222,
2932,
32,
76,
21,
34,
18601,
21820,
32,
76,
21,
2984,
1769,
3639,
596,
18,
8222,
2932,
4802,
9795,
2811,
9795,
2811,
9795,
1199,
1769,
3639,
596,
18,
8222,
2932,
1757,
2620,
2984,
1769,
3639,
596,
18,
11330,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
VigilantGroup group = (VigilantGroup) RootDomainObject.readDomainObjectByOID(VigilantGroup.class, Integer.valueOf(gid)); | VigilantGroup group = (VigilantGroup) RootDomainObject .readDomainObjectByOID(VigilantGroup.class, Integer .valueOf(gid)); | public ActionForward prepareAddIncompatiblePersonToVigilant( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { VigilantGroupBean bean = new VigilantGroupBean(); Person person = getLoggedPerson(request); ExamCoordinator coordinator = person.getCurrentExamCoordinator(); bean.setExamCoordinator(coordinator); String gid = request.getParameter("gid"); VigilantGroup group = (VigilantGroup) RootDomainObject.readDomainObjectByOID(VigilantGroup.class, Integer.valueOf(gid)); bean.setSelectedVigilantGroup(group); request.setAttribute("bean", bean); return mapping.findForward("addIncompatiblePersonToVigilant"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/b4e07cb81546f17714024b0945d2a7ee89e0d2d5/VigilantGroupManagement.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/vigilancy/VigilantGroupManagement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
2911,
986,
24272,
8346,
774,
58,
360,
330,
970,
12,
1082,
202,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
9984,
590,
16,
1082,
202,
2940,
29910,
766,
13,
1216,
1185,
288,
202,
202,
58,
360,
330,
970,
1114,
3381,
3931,
273,
394,
776,
360,
330,
970,
1114,
3381,
5621,
202,
202,
8346,
6175,
273,
9189,
2423,
8346,
12,
2293,
1769,
202,
202,
424,
301,
25307,
24794,
273,
6175,
18,
588,
3935,
424,
301,
25307,
5621,
202,
202,
14496,
18,
542,
424,
301,
25307,
12,
5732,
4240,
1769,
202,
202,
780,
11399,
273,
590,
18,
588,
1662,
2932,
15780,
8863,
202,
202,
58,
360,
330,
970,
1114,
1041,
273,
261,
58,
360,
330,
970,
1114,
13,
7450,
3748,
921,
18,
896,
3748,
921,
858,
12945,
12,
58,
360,
330,
970,
1114,
18,
1106,
16,
2144,
18,
1132,
951,
12,
15780,
10019,
202,
202,
14496,
18,
542,
7416,
58,
360,
330,
970,
1114,
12,
1655,
1769,
9506,
202,
2293,
18,
542,
1499,
2932,
14496,
3113,
3931,
1769,
202,
202,
2463,
2874,
18,
4720,
8514,
2932,
1289,
24272,
8346,
774,
58,
360,
330,
970,
8863,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
2911,
986,
24272,
8346,
774,
58,
360,
330,
970,
12,
1082,
202,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
9984,
590,
16,
1082,
202,
2940,
29910,
766,
13,
1216,
1185,
288,
202,
202,
58,
360,
330,
970,
1114,
3381,
3931,
273,
394,
776,
360,
330,
970,
1114,
3381,
5621,
202,
202,
8346,
6175,
273,
9189,
2423,
8346,
12,
2293,
1769,
202,
202,
424,
301,
25307,
24794,
273,
6175,
18,
588,
3935,
424,
301,
25307,
5621,
202,
202,
14496,
18,
542,
424,
301,
25307,
12,
5732,
4240,
1769,
202,
202,
780,
11399,
273,
590,
18,
588,
1662,
2932,
15780,
8863,
202,
202,
58,
360,
330,
970,
1114,
1041,
273,
261,
58,
360,
330,
970,
2
] |
m.setPercentBase(LengthBase.BLOCK_HEIGHT); | m.setPercentBase(LengthBase.CONTAINING_BLOCK_HEIGHT); | private void createAreaDimensionProperties() { PropertyMaker m; LengthProperty.Maker l; DimensionPropertyMaker pdim; CorrespondingPropertyMaker corr; // block-progression-dimension m = new LengthRangeProperty.Maker(PR_BLOCK_PROGRESSION_DIMENSION); m.setInherited(false); m.setPercentBase(LengthBase.BLOCK_HEIGHT); l = new LengthProperty.Maker(CP_MINIMUM); l.setDefault("auto"); l.addEnum("auto", getEnumProperty(EN_AUTO, "AUTO")); l.setPercentBase(LengthBase.CONTAINING_BOX); l.setByShorthand(true); m.addSubpropMaker(l); l = new LengthProperty.Maker(CP_OPTIMUM); l.setDefault("auto"); l.addEnum("auto", getEnumProperty(EN_AUTO, "AUTO")); l.setPercentBase(LengthBase.CONTAINING_BOX); l.setByShorthand(true); m.addSubpropMaker(l); l = new LengthProperty.Maker(CP_MAXIMUM); l.addEnum("auto", getEnumProperty(EN_AUTO, "AUTO")); l.setDefault("auto"); l.setPercentBase(LengthBase.CONTAINING_BOX); l.setByShorthand(true); m.addSubpropMaker(l); pdim = new DimensionPropertyMaker(m); pdim.setCorresponding(PR_HEIGHT, PR_HEIGHT, PR_WIDTH); pdim.setExtraCorresponding(new int[][] { {PR_MIN_HEIGHT, PR_MIN_HEIGHT, PR_MIN_WIDTH, }, {PR_MAX_HEIGHT, PR_MAX_HEIGHT, PR_MAX_WIDTH, } }); pdim.setRelative(true); m.setCorresponding(pdim); addPropertyMaker("block-progression-dimension", m); // content-height l = new LengthProperty.Maker(PR_CONTENT_HEIGHT); l.setInherited(false); l.addEnum("auto", getEnumProperty(EN_AUTO, "AUTO")); l.addEnum("scale-to-fit", getEnumProperty(EN_SCALE_TO_FIT, "SCALE_TO_FIT")); l.setDefault("auto"); l.setPercentBase(LengthBase.IMAGE_INTRINSIC_HEIGHT); addPropertyMaker("content-height", l); // content-width l = new LengthProperty.Maker(PR_CONTENT_WIDTH); l.setInherited(false); l.addEnum("auto", getEnumProperty(EN_AUTO, "AUTO")); l.addEnum("scale-to-fit", getEnumProperty(EN_SCALE_TO_FIT, "SCALE_TO_FIT")); l.setDefault("auto"); l.setPercentBase(LengthBase.IMAGE_INTRINSIC_WIDTH); addPropertyMaker("content-width", l); // height l = new LengthProperty.Maker(PR_HEIGHT); l.setInherited(false); l.addEnum("auto", getEnumProperty(EN_AUTO, "AUTO")); l.setPercentBase(LengthBase.BLOCK_HEIGHT); l.setDefault("auto"); addPropertyMaker("height", l); // inline-progression-dimension m = new LengthRangeProperty.Maker(PR_INLINE_PROGRESSION_DIMENSION); m.setInherited(false); m.setPercentBase(LengthBase.BLOCK_WIDTH); l = new LengthProperty.Maker(CP_MINIMUM); l.setDefault("auto"); l.addEnum("auto", getEnumProperty(EN_AUTO, "AUTO")); l.setPercentBase(LengthBase.CONTAINING_BOX); l.setByShorthand(true); m.addSubpropMaker(l); l = new LengthProperty.Maker(CP_OPTIMUM); l.setDefault("auto"); l.addEnum("auto", getEnumProperty(EN_AUTO, "AUTO")); l.setPercentBase(LengthBase.CONTAINING_BOX); l.setByShorthand(true); m.addSubpropMaker(l); l = new LengthProperty.Maker(CP_MAXIMUM); l.addEnum("auto", getEnumProperty(EN_AUTO, "AUTO")); l.setDefault("auto"); l.setPercentBase(LengthBase.CONTAINING_BOX); l.setByShorthand(true); m.addSubpropMaker(l); pdim = new DimensionPropertyMaker(m); pdim.setRelative(true); pdim.setCorresponding(PR_WIDTH, PR_WIDTH, PR_HEIGHT); pdim.setExtraCorresponding(new int[][] { {PR_MIN_WIDTH, PR_MIN_WIDTH, PR_MIN_HEIGHT, }, {PR_MAX_WIDTH, PR_MAX_WIDTH, PR_MAX_HEIGHT, } }); m.setCorresponding(pdim); addPropertyMaker("inline-progression-dimension", m); // max-height m = new ToBeImplementedProperty.Maker(PR_MAX_HEIGHT); m.setInherited(false); m.setDefault("0pt"); addPropertyMaker("max-height", m); // max-width m = new ToBeImplementedProperty.Maker(PR_MAX_WIDTH); m.setInherited(false); m.setDefault("none"); addPropertyMaker("max-width", m); // min-height m = new ToBeImplementedProperty.Maker(PR_MIN_HEIGHT); m.setInherited(false); m.setDefault("0pt"); addPropertyMaker("min-height", m); // min-width m = new ToBeImplementedProperty.Maker(PR_MIN_WIDTH); m.setInherited(false); m.setDefault(""); addPropertyMaker("min-width", m); // scaling m = new EnumProperty.Maker(PR_SCALING); m.setInherited(true); m.addEnum("uniform", getEnumProperty(EN_UNIFORM, "UNIFORM")); m.addEnum("non-uniform", getEnumProperty(EN_NON_UNIFORM, "NON_UNIFORM")); m.setDefault("uniform"); addPropertyMaker("scaling", m); // scaling-method m = new EnumProperty.Maker(PR_SCALING_METHOD); m.setInherited(false); m.addEnum("auto", getEnumProperty(EN_AUTO, "AUTO")); m.addEnum("integer-pixels", getEnumProperty(EN_INTEGER_PIXELS, "INTEGER_PIXELS")); m.addEnum("resample-any-method", getEnumProperty(EN_RESAMPLE_ANY_METHOD, "RESAMPLE_ANY_METHOD")); m.setDefault("auto"); addPropertyMaker("scaling-method", m); // width l = new LengthProperty.Maker(PR_WIDTH); l.setInherited(false); l.addEnum("auto", getEnumProperty(EN_AUTO, "AUTO")); l.setPercentBase(LengthBase.BLOCK_WIDTH); l.setDefault("auto"); addPropertyMaker("width", l);/*LF*/ // block-progression-unit (**CUSTOM EXTENSION**)/*LF*/ l = new LengthProperty.Maker(PR_X_BLOCK_PROGRESSION_UNIT);/*LF*/ l.setInherited(false);/*LF*/ l.setDefault("0pt");/*LF*/ addPropertyMaker("block-progression-unit", l); } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/8cad88a3e360b7c05118fb66275f45b090f51c97/FOPropertyMapping.java/buggy/src/java/org/apache/fop/fo/FOPropertyMapping.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
5484,
8611,
2297,
1435,
288,
3639,
4276,
12373,
312,
31,
3639,
11311,
1396,
18,
12373,
328,
31,
3639,
13037,
1396,
12373,
293,
3509,
31,
3639,
9557,
17863,
310,
1396,
12373,
19480,
31,
3639,
368,
1203,
17,
8298,
285,
17,
11808,
3639,
312,
273,
394,
11311,
2655,
1396,
18,
12373,
12,
8025,
67,
11403,
67,
3373,
43,
862,
4475,
67,
2565,
958,
3156,
1146,
1769,
3639,
312,
18,
542,
29078,
12,
5743,
1769,
3639,
312,
18,
542,
8410,
2171,
12,
1782,
2171,
18,
6067,
6964,
1360,
67,
11403,
67,
14595,
1769,
3639,
328,
273,
394,
11311,
1396,
18,
12373,
12,
4258,
67,
6236,
18605,
1769,
3639,
328,
18,
542,
1868,
2932,
6079,
8863,
3639,
328,
18,
1289,
3572,
2932,
6079,
3113,
26813,
1396,
12,
1157,
67,
18909,
16,
315,
18909,
7923,
1769,
3639,
328,
18,
542,
8410,
2171,
12,
1782,
2171,
18,
6067,
6964,
1360,
67,
16876,
1769,
3639,
328,
18,
542,
858,
1555,
15830,
12,
3767,
1769,
3639,
312,
18,
1289,
1676,
5986,
12373,
12,
80,
1769,
3639,
328,
273,
394,
11311,
1396,
18,
12373,
12,
4258,
67,
15620,
18605,
1769,
3639,
328,
18,
542,
1868,
2932,
6079,
8863,
3639,
328,
18,
1289,
3572,
2932,
6079,
3113,
26813,
1396,
12,
1157,
67,
18909,
16,
315,
18909,
7923,
1769,
3639,
328,
18,
542,
8410,
2171,
12,
1782,
2171,
18,
6067,
6964,
1360,
67,
16876,
1769,
3639,
328,
18,
542,
858,
1555,
15830,
12,
3767,
1769,
3639,
312,
18,
1289,
1676,
5986,
12373,
12,
80,
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,
5484,
8611,
2297,
1435,
288,
3639,
4276,
12373,
312,
31,
3639,
11311,
1396,
18,
12373,
328,
31,
3639,
13037,
1396,
12373,
293,
3509,
31,
3639,
9557,
17863,
310,
1396,
12373,
19480,
31,
3639,
368,
1203,
17,
8298,
285,
17,
11808,
3639,
312,
273,
394,
11311,
2655,
1396,
18,
12373,
12,
8025,
67,
11403,
67,
3373,
43,
862,
4475,
67,
2565,
958,
3156,
1146,
1769,
3639,
312,
18,
542,
29078,
12,
5743,
1769,
3639,
312,
18,
542,
8410,
2171,
12,
1782,
2171,
18,
6067,
6964,
1360,
67,
11403,
67,
14595,
1769,
3639,
328,
273,
394,
11311,
1396,
18,
12373,
12,
4258,
67,
6236,
18605,
1769,
3639,
328,
18,
542,
1868,
2932,
6079,
8863,
3639,
328,
18,
2
] |
} else { | } else if (myLoggingService.isInfoEnabled()) { | private void handlePersistEarly(boolean justFoundProviders) { // If the agent just finished finding providers, force a persistence now // that way, if the agent dies anytime after this, it will come // back with its providers intact if (PERSIST_EARLY && justFoundProviders) { try { // Bug 3282: Persistence doesn't put in the correct reasons for // blocking in SchedulableStatus getBlackboardService().persistNow(); // Now send a Cougaar event indicating the agent has its providers // and has persisted them. if (myEventService != null && myEventService.isEventEnabled()) { myEventService.event(getAgentIdentifier() + " persisted after finding providers."); } else { myLoggingService.info(getAgentIdentifier() + " (no event service): persisted after finding providers."); } } catch (PersistenceNotEnabledException nope) { if (myEventService != null && myEventService.isEventEnabled()) { myEventService.event(getAgentIdentifier() + " finished finding providers (persistence not enabled)."); } else { myLoggingService.info(getAgentIdentifier() + " (no event service): finished finding providers (persistence not enabled)."); } } // try/catch block } // if we just found our providers } | 14011 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14011/a3e3c833854d13adf48efd969f944067feaed061/SDClientPlugin.java/clean/servicediscovery/src/org/cougaar/servicediscovery/plugin/SDClientPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1640,
12771,
41,
20279,
12,
6494,
2537,
2043,
10672,
13,
288,
565,
368,
971,
326,
4040,
2537,
6708,
13727,
9165,
16,
2944,
279,
9756,
2037,
565,
368,
716,
4031,
16,
309,
326,
4040,
27890,
1281,
957,
1839,
333,
16,
518,
903,
12404,
565,
368,
1473,
598,
2097,
9165,
509,
621,
565,
309,
261,
3194,
18732,
67,
9250,
7076,
597,
2537,
2043,
10672,
13,
288,
1377,
775,
288,
202,
759,
16907,
3847,
11149,
30,
13381,
3302,
1404,
1378,
316,
326,
3434,
14000,
364,
225,
202,
759,
9445,
316,
348,
4292,
429,
1482,
202,
588,
13155,
3752,
1179,
7675,
19251,
8674,
5621,
202,
202,
759,
4494,
1366,
279,
7695,
637,
69,
297,
871,
11193,
326,
4040,
711,
2097,
9165,
202,
759,
471,
711,
14249,
2182,
18,
202,
430,
261,
4811,
1133,
1179,
480,
446,
597,
202,
565,
3399,
1133,
1179,
18,
291,
1133,
1526,
10756,
288,
202,
225,
3399,
1133,
1179,
18,
2575,
12,
588,
3630,
3004,
1435,
397,
4697,
377,
315,
14249,
1839,
13727,
9165,
1199,
1769,
202,
97,
469,
288,
202,
225,
3399,
7735,
1179,
18,
1376,
12,
588,
3630,
3004,
1435,
397,
4697,
202,
6,
261,
2135,
871,
1156,
4672,
14249,
1839,
13727,
9165,
1199,
1769,
202,
97,
1377,
289,
1044,
261,
13182,
1248,
1526,
503,
1158,
347,
13,
288,
202,
430,
261,
4811,
1133,
1179,
480,
446,
597,
202,
565,
3399,
1133,
1179,
18,
291,
1133,
1526,
10756,
288,
202,
225,
3399,
1133,
1179,
18,
2575,
12,
588,
3630,
3004,
1435,
397,
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,
1640,
12771,
41,
20279,
12,
6494,
2537,
2043,
10672,
13,
288,
565,
368,
971,
326,
4040,
2537,
6708,
13727,
9165,
16,
2944,
279,
9756,
2037,
565,
368,
716,
4031,
16,
309,
326,
4040,
27890,
1281,
957,
1839,
333,
16,
518,
903,
12404,
565,
368,
1473,
598,
2097,
9165,
509,
621,
565,
309,
261,
3194,
18732,
67,
9250,
7076,
597,
2537,
2043,
10672,
13,
288,
1377,
775,
288,
202,
759,
16907,
3847,
11149,
30,
13381,
3302,
1404,
1378,
316,
326,
3434,
14000,
364,
225,
202,
759,
9445,
316,
348,
4292,
429,
1482,
202,
588,
13155,
3752,
1179,
7675,
19251,
8674,
5621,
202,
202,
759,
4494,
1366,
279,
7695,
637,
69,
297,
871,
11193,
326,
4040,
711,
2097,
2
] |
new PrintStream(m_rawOut).println(m_formatter.format("login.failure")); | if(m_useTicket) return; m_out.println(m_formatter.format("login.failure")); | public void run() { try { // Start keystroke poller // m_in.start(); m_in.setKeystrokeListener(m_heartbeatSender); // Try to login // UserInfo userInfo = null; try { for(int idx = 0; idx < 3; ++idx) { try { userInfo = this.login(); m_userId = userInfo.getId(); Thread.currentThread().setName("Session (" + userInfo.getUserid() + ")"); break; } catch(AuthenticationException e) { new PrintStream(m_rawOut).println(m_formatter.format("login.failure")); } } } catch(LoginProhibitedException e) { m_out.println(e.getMessage()); } catch(LoginNotAllowedException e) { m_out.println(e.getMessage()); } catch(InterruptedException e) { // Interrupted during login // return; } catch(Exception e) { // Unhandled exception while logging in? // I'm afraid the ride is over... // e.printStackTrace(); return; } // Didn't manage to log in? Game over! // if(userInfo == null) return; // Set up IO with the correct character set // String charSet = userInfo.getCharset(); for(;;) { try { m_out.setCharset(charSet); m_in.setCharset(charSet); break; } catch(UnsupportedEncodingException e) { // Doesn't even support plain US-ASCII? We're outta here // if(charSet.equals("US-ASCII")) throw new RuntimeException("No suitable character set!"); // Resort to US-ASCII // charSet = "US-ASCII"; } } // Replace message formatter with a localized one // String locale = userInfo.getLocale(); if(locale != null) { int p = locale.indexOf('_'); m_locale = p != -1 ? new Locale(locale.substring(0, p), locale.substring(p + 1)) : new Locale(locale); m_formatter = new MessageFormatter(m_locale); } else m_locale = Locale.getDefault(); m_dateSymbols = new DateFormatSymbols(m_locale); m_formatter.setTimeZone(userInfo.getTimeZone()); m_out.println(m_formatter.format("login.welcome", userInfo.getName())); m_out.println(); userInfo = null; // Don't need it anymore... Let it be GC'd // Print motd (if any) // try { String motd = m_session.readSystemFile(SystemFiles.WELCOME_MESSAGE); m_out.println(); WordWrapper ww = this.getWordWrapper(motd); String line; while((line = ww.nextLine()) != null) m_out.println(line); m_out.println(); } catch(ObjectNotFoundException e) { // No motd. No big deal. } catch(AuthorizationException e) { Logger.error(this, "Users don't have permission for motd"); } catch(UnexpectedException e) { Logger.error(this, e); } // Run the login and profile script // this.getDisplayController().normal(); try { // Get profile scripts // FileStatus[] profiles = m_session.listFiles(this.getLoggedInUserId(), ".profile.%.cmd"); int nProfiles = profiles.length; String profile = null; if(nProfiles == 1) profile = profiles[0].getName(); else if(nProfiles > 1) { // More than one profile. Ask user. // for(;;) { m_out.println(m_formatter.format("login.profiles")); for(int idx = 0; idx < nProfiles; ++idx) { String name = profiles[idx].getName(); m_out.print(idx + 1); m_out.print(". "); m_out.println(name.substring(9, name.length() - 4)); } m_out.println(); m_out.print(m_formatter.format("login.chose.profile")); try { String choiceStr = m_in.innerReadLine("1", "", 3, 0); try { int choice = Integer.parseInt(choiceStr); profile = profiles[choice - 1].getName(); break; } catch(NumberFormatException e) { // Bad choice // m_out.println(); m_out.println(m_formatter.format("login.profil.invalid.choice")); } catch(ArrayIndexOutOfBoundsException e) { // Bad choice // m_out.println(); m_out.println(m_formatter.format("login.profil.invalid.choice")); } } catch(EventDeliveredException e) { // Should not happen // throw new UnexpectedException(this.getLoggedInUserId(), e); } } } String loginScript = null; String profileScript = null; try { loginScript = m_session.readFile(this.getLoggedInUserId(), ".login.cmd"); if(profile != null) profileScript = m_session.readFile(this.getLoggedInUserId(), profile); } catch(ObjectNotFoundException e) { // No login script. Not much to do // } if(profileScript != null) this.executeScript(profileScript); if(loginScript != null) this.executeScript(loginScript); } catch(KOMException e) { m_out.println(e.formatMessage(this)); m_out.println(); } catch(IOException e) { e.printStackTrace(m_out); } catch(InterruptedException e) { return; } catch(ImmediateShutdownException e) { return; } // Start heartbeat sender // m_heartbeatSender.start(); // MAIN SCREEN TURN ON! // this.mainloop(); m_out.println(m_formatter.format("login.goodbye", m_session.getLoggedInUser().getName())); } finally { // Shut down... // try { // Clean up... // if(m_session != null) { synchronized(this) { m_session.close(); m_session = null; } } } catch(Exception e) { // Ooops! Exception while cleaning up! // m_out.println(m_formatter.format("logout.failure")); } } } | 3907 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3907/d8b318e4b1f13c093cc95d5cf8be74e086cf9703/ClientSession.java/clean/kom/java/nu/rydin/kom/frontend/text/ClientSession.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
202,
95,
3196,
202,
698,
202,
202,
95,
1082,
565,
368,
3603,
498,
16181,
24525,
1082,
565,
368,
1082,
565,
312,
67,
267,
18,
1937,
5621,
1082,
565,
312,
67,
267,
18,
542,
653,
16181,
2223,
12,
81,
67,
25445,
12021,
1769,
1082,
202,
759,
6161,
358,
3925,
1082,
202,
759,
1082,
202,
21015,
16753,
273,
446,
31,
1082,
202,
698,
1082,
202,
95,
9506,
202,
1884,
12,
474,
2067,
273,
374,
31,
2067,
411,
890,
31,
965,
3465,
13,
9506,
202,
95,
6862,
202,
698,
6862,
202,
95,
25083,
202,
1355,
966,
273,
333,
18,
5819,
5621,
25083,
202,
81,
67,
18991,
273,
16753,
18,
26321,
5621,
25083,
202,
3830,
18,
2972,
3830,
7675,
542,
461,
2932,
2157,
7566,
397,
16753,
18,
588,
1299,
350,
1435,
397,
7310,
1769,
25083,
202,
8820,
31,
6862,
202,
97,
6862,
202,
14683,
12,
6492,
503,
425,
13,
6862,
202,
95,
25083,
202,
2704,
21677,
12,
81,
67,
1899,
1182,
2934,
8222,
12,
81,
67,
12354,
18,
2139,
2932,
5819,
18,
12251,
7923,
1769,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
1082,
202,
14683,
12,
5358,
626,
29993,
503,
425,
13,
1082,
202,
95,
9506,
565,
312,
67,
659,
18,
8222,
12,
73,
18,
24906,
10663,
1082,
202,
97,
1082,
202,
14683,
12,
5358,
19354,
503,
425,
13,
1082,
202,
95,
9506,
565,
312,
67,
659,
18,
8222,
12,
73,
18,
24906,
10663,
1082,
202,
97,
1082,
202,
14683,
12,
24485,
503,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
202,
95,
3196,
202,
698,
202,
202,
95,
1082,
565,
368,
3603,
498,
16181,
24525,
1082,
565,
368,
1082,
565,
312,
67,
267,
18,
1937,
5621,
1082,
565,
312,
67,
267,
18,
542,
653,
16181,
2223,
12,
81,
67,
25445,
12021,
1769,
1082,
202,
759,
6161,
358,
3925,
1082,
202,
759,
1082,
202,
21015,
16753,
273,
446,
31,
1082,
202,
698,
1082,
202,
95,
9506,
202,
1884,
12,
474,
2067,
273,
374,
31,
2067,
411,
890,
31,
965,
3465,
13,
9506,
202,
95,
6862,
202,
698,
6862,
202,
95,
25083,
202,
1355,
966,
273,
333,
18,
5819,
5621,
25083,
202,
81,
67,
18991,
273,
16753,
18,
26321,
5621,
25083,
202,
3830,
18,
2972,
2
] |
store(is.getBlock()); | try { synchronized(this) { sskDatastore.put(is.getBlock(), true); } } catch (KeyCollisionException e) { } catch (IOException e) { Logger.error(this, "Datastore failure: "+e, e); } | public void realPutSSK(ClientSSKBlock block, boolean cache) throws LowLevelPutException { SSKInsertSender is; long uid = random.nextLong(); if(!lockUID(uid)) { Logger.error(this, "Could not lock UID just randomly generated: "+uid+" - probably indicates broken PRNG"); throw new LowLevelPutException(LowLevelPutException.INTERNAL_ERROR); } long startTime = System.currentTimeMillis(); synchronized(this) { if(cache) { try { sskDatastore.put(block); } catch (IOException e) { Logger.error(this, "Datastore failure: "+e, e); } } is = makeInsertSender(block, MAX_HTL, uid, null, false, lm.getLocation().getValue(), cache); } boolean hasForwardedRejectedOverload = false; // Wait for status while(true) { synchronized(is) { if(is.getStatus() == SSKInsertSender.NOT_FINISHED) { try { is.wait(5*1000); } catch (InterruptedException e) { // Ignore } } if(is.getStatus() != SSKInsertSender.NOT_FINISHED) break; } if((!hasForwardedRejectedOverload) && is.receivedRejectedOverload()) { hasForwardedRejectedOverload = true; throttleWindow.rejectedOverload(); } } // Wait for completion while(true) { synchronized(is) { if(is.getStatus() != SSKInsertSender.NOT_FINISHED) break; try { is.wait(10*1000); } catch (InterruptedException e) { // Go around again } } } Logger.minor(this, "Completed "+uid+" overload="+hasForwardedRejectedOverload+" "+is.getStatusString()); // Finished? if(!hasForwardedRejectedOverload) { // Is it ours? Did we send a request? if(is.sentRequest() && is.uid == uid && (is.getStatus() == SSKInsertSender.ROUTE_NOT_FOUND || is.getStatus() == SSKInsertSender.SUCCESS)) { // It worked! long endTime = System.currentTimeMillis(); long rtt = endTime - startTime; throttleWindow.requestCompleted(); sskInsertThrottle.successfulCompletion(rtt); } } if(is.hasCollided()) { // Store it locally so it can be fetched immediately, and overwrites any locally inserted. store(is.getBlock()); throw new LowLevelPutException(LowLevelPutException.COLLISION); } if(is.getStatus() == SSKInsertSender.SUCCESS) { Logger.normal(this, "Succeeded inserting "+block); return; } else { int status = is.getStatus(); String msg = "Failed inserting "+block+" : "+is.getStatusString(); if(status == CHKInsertSender.ROUTE_NOT_FOUND) msg += " - this is normal on small networks; the data will still be propagated, but it can't find the 20+ nodes needed for full success"; if(is.getStatus() != SSKInsertSender.ROUTE_NOT_FOUND) Logger.error(this, msg); else Logger.normal(this, msg); switch(is.getStatus()) { case SSKInsertSender.NOT_FINISHED: Logger.error(this, "IS still running in putCHK!: "+is); throw new LowLevelPutException(LowLevelPutException.INTERNAL_ERROR); case SSKInsertSender.GENERATED_REJECTED_OVERLOAD: case SSKInsertSender.TIMED_OUT: throw new LowLevelPutException(LowLevelPutException.REJECTED_OVERLOAD); case SSKInsertSender.ROUTE_NOT_FOUND: throw new LowLevelPutException(LowLevelPutException.ROUTE_NOT_FOUND); case SSKInsertSender.ROUTE_REALLY_NOT_FOUND: throw new LowLevelPutException(LowLevelPutException.ROUTE_REALLY_NOT_FOUND); case SSKInsertSender.INTERNAL_ERROR: throw new LowLevelPutException(LowLevelPutException.INTERNAL_ERROR); default: Logger.error(this, "Unknown CHKInsertSender code in putSSK: "+is.getStatus()+" on "+is); throw new LowLevelPutException(LowLevelPutException.INTERNAL_ERROR); } } } | 45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/42311dad991102d95e5383bfc789478a839c4662/Node.java/clean/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2863,
6426,
1260,
47,
12,
1227,
1260,
47,
1768,
1203,
16,
1250,
1247,
13,
1216,
23629,
2355,
6426,
503,
288,
3639,
348,
11129,
4600,
12021,
353,
31,
3639,
1525,
4555,
273,
2744,
18,
4285,
3708,
5621,
3639,
309,
12,
5,
739,
3060,
12,
1911,
3719,
288,
5411,
4242,
18,
1636,
12,
2211,
16,
315,
4445,
486,
2176,
10034,
2537,
20153,
4374,
30,
13773,
1911,
9078,
300,
8656,
8527,
12933,
11770,
4960,
8863,
5411,
604,
394,
23629,
2355,
6426,
503,
12,
10520,
2355,
6426,
503,
18,
14005,
67,
3589,
1769,
3639,
289,
3639,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
3639,
3852,
12,
2211,
13,
288,
540,
202,
430,
12,
2493,
13,
288,
540,
202,
202,
698,
288,
540,
1082,
202,
1049,
79,
21191,
18,
458,
12,
2629,
1769,
540,
202,
202,
97,
1044,
261,
14106,
425,
13,
288,
540,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
21191,
5166,
30,
13773,
73,
16,
425,
1769,
540,
202,
202,
97,
540,
202,
97,
5411,
353,
273,
1221,
4600,
12021,
12,
2629,
16,
5397,
4552,
67,
5062,
48,
16,
4555,
16,
446,
16,
629,
16,
14966,
18,
588,
2735,
7675,
24805,
9334,
1247,
1769,
3639,
289,
3639,
1250,
711,
22915,
19902,
4851,
945,
273,
629,
31,
3639,
368,
5838,
364,
1267,
3639,
1323,
12,
3767,
13,
288,
540,
202,
22043,
12,
291,
13,
288,
540,
202,
202,
430,
12,
291,
18,
588,
1482,
1435,
422,
348,
11129,
4600,
12021,
18,
4400,
67,
23259,
2056,
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,
2863,
6426,
1260,
47,
12,
1227,
1260,
47,
1768,
1203,
16,
1250,
1247,
13,
1216,
23629,
2355,
6426,
503,
288,
3639,
348,
11129,
4600,
12021,
353,
31,
3639,
1525,
4555,
273,
2744,
18,
4285,
3708,
5621,
3639,
309,
12,
5,
739,
3060,
12,
1911,
3719,
288,
5411,
4242,
18,
1636,
12,
2211,
16,
315,
4445,
486,
2176,
10034,
2537,
20153,
4374,
30,
13773,
1911,
9078,
300,
8656,
8527,
12933,
11770,
4960,
8863,
5411,
604,
394,
23629,
2355,
6426,
503,
12,
10520,
2355,
6426,
503,
18,
14005,
67,
3589,
1769,
3639,
289,
3639,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
3639,
3852,
12,
2211,
13,
288,
540,
202,
430,
12,
2493,
13,
288,
540,
202,
202,
2
] |
public NewSectionDialog( Shell parent, java.util.List list ) | public NewSectionDialog( Shell parent ) | public NewSectionDialog( Shell parent, java.util.List list ) { this( parent ); assert list != null; setContents( list ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/aadd7a3a3f6b97e67373b5ccd4348e8ff6532eb5/NewSectionDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/NewSectionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1166,
5285,
6353,
12,
19433,
982,
16,
2252,
18,
1367,
18,
682,
666,
262,
202,
95,
202,
202,
2211,
12,
982,
11272,
202,
202,
11231,
666,
480,
446,
31,
202,
202,
542,
6323,
12,
666,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1166,
5285,
6353,
12,
19433,
982,
16,
2252,
18,
1367,
18,
682,
666,
262,
202,
95,
202,
202,
2211,
12,
982,
11272,
202,
202,
11231,
666,
480,
446,
31,
202,
202,
542,
6323,
12,
666,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new Hierarchy[] {type.getHierarchy()}; | return new Hierarchy[] {getTypeHierarchy(exprType)}; | private Hierarchy[] collectHierarchies(Exp queryPart) { Type type = queryPart.getType(); if (type instanceof SetType) { type = ((SetType) type).getElementType(); } if (type instanceof TupleType) { final Type[] types = ((TupleType) type).elementTypes; ArrayList hierarchyList = new ArrayList(); for (int i = 0; i < types.length; i++) { final Hierarchy hierarchy = types[i].getHierarchy(); hierarchyList.add(hierarchy); } return (Hierarchy[]) hierarchyList.toArray(new Hierarchy[hierarchyList.size()]); } return new Hierarchy[] {type.getHierarchy()}; } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/c47c34fc2b9857bdd2bc8779f05b9f44abaf6a44/Query.java/clean/src/main/mondrian/olap/Query.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
670,
6000,
8526,
3274,
44,
5148,
606,
12,
2966,
843,
1988,
13,
288,
3639,
1412,
618,
273,
843,
1988,
18,
588,
559,
5621,
3639,
309,
261,
723,
1276,
1000,
559,
13,
288,
5411,
618,
273,
14015,
25181,
13,
618,
2934,
588,
17481,
5621,
3639,
289,
3639,
309,
261,
723,
1276,
7257,
559,
13,
288,
5411,
727,
1412,
8526,
1953,
273,
14015,
9038,
559,
13,
618,
2934,
2956,
2016,
31,
5411,
2407,
9360,
682,
273,
394,
2407,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1953,
18,
2469,
31,
277,
27245,
288,
7734,
727,
670,
6000,
9360,
273,
1953,
63,
77,
8009,
588,
12074,
5621,
7734,
9360,
682,
18,
1289,
12,
17937,
1769,
5411,
289,
5411,
327,
261,
12074,
63,
5717,
10792,
9360,
682,
18,
31447,
12,
2704,
670,
6000,
63,
17937,
682,
18,
1467,
1435,
19226,
3639,
289,
3639,
327,
394,
670,
6000,
8526,
288,
588,
559,
12074,
12,
8638,
559,
16869,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
670,
6000,
8526,
3274,
44,
5148,
606,
12,
2966,
843,
1988,
13,
288,
3639,
1412,
618,
273,
843,
1988,
18,
588,
559,
5621,
3639,
309,
261,
723,
1276,
1000,
559,
13,
288,
5411,
618,
273,
14015,
25181,
13,
618,
2934,
588,
17481,
5621,
3639,
289,
3639,
309,
261,
723,
1276,
7257,
559,
13,
288,
5411,
727,
1412,
8526,
1953,
273,
14015,
9038,
559,
13,
618,
2934,
2956,
2016,
31,
5411,
2407,
9360,
682,
273,
394,
2407,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1953,
18,
2469,
31,
277,
27245,
288,
7734,
727,
670,
6000,
9360,
273,
1953,
63,
77,
8009,
588,
12074,
5621,
7734,
9360,
682,
18,
1289,
12,
17937,
1769,
5411,
289,
2
] |
public MavenProject build( File projectDescriptor, ArtifactRepository localRepository, List activeExternalProfiles ) throws ProjectBuildingException { ProfileManager profileManager = new DefaultProfileManager( container ); if ( activeExternalProfiles != null ) { for ( Iterator it = activeExternalProfiles.iterator(); it.hasNext(); ) { Profile profile = (Profile) it.next(); // since it's already determined to be active, we'll explicitly set it as activated in the mgr. profileManager.explicitlyActivate( profile.getId() ); profileManager.addProfile( profile ); } } return buildFromSourceFile( projectDescriptor, localRepository, profileManager ); } | 50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/d466205274b1a04edc89551db56aa32049ee2b39/DefaultMavenProjectBuilder.java/clean/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
17176,
4109,
1361,
12,
1387,
1984,
3187,
16,
14022,
3305,
1191,
3305,
16,
987,
2695,
6841,
12450,
262,
3639,
1216,
5420,
16713,
503,
565,
288,
3639,
11357,
1318,
3042,
1318,
273,
394,
2989,
4029,
1318,
12,
1478,
11272,
7734,
309,
261,
2695,
6841,
12450,
480,
446,
262,
3639,
288,
5411,
364,
261,
4498,
518,
273,
2695,
6841,
12450,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
11357,
3042,
273,
261,
4029,
13,
518,
18,
4285,
5621,
27573,
368,
3241,
518,
1807,
1818,
11383,
358,
506,
2695,
16,
732,
5614,
8122,
444,
518,
487,
14892,
316,
326,
13333,
18,
7734,
3042,
1318,
18,
16511,
715,
21370,
12,
3042,
18,
26321,
1435,
11272,
27573,
3042,
1318,
18,
1289,
4029,
12,
3042,
11272,
5411,
289,
3639,
289,
7734,
327,
1361,
1265,
31150,
12,
1984,
3187,
16,
1191,
3305,
16,
3042,
1318,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17176,
4109,
1361,
12,
1387,
1984,
3187,
16,
14022,
3305,
1191,
3305,
16,
987,
2695,
6841,
12450,
262,
3639,
1216,
5420,
16713,
503,
565,
288,
3639,
11357,
1318,
3042,
1318,
273,
394,
2989,
4029,
1318,
12,
1478,
11272,
7734,
309,
261,
2695,
6841,
12450,
480,
446,
262,
3639,
288,
5411,
364,
261,
4498,
518,
273,
2695,
6841,
12450,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
11357,
3042,
273,
261,
4029,
13,
518,
18,
4285,
5621,
27573,
368,
3241,
518,
1807,
1818,
11383,
358,
506,
2695,
16,
732,
5614,
8122,
444,
518,
487,
14892,
316,
326,
13333,
18,
7734,
3042,
1318,
18,
16511,
715,
21370,
12,
3042,
18,
26321,
1435,
11272,
27573,
3042,
2
] |
||
error("bad separator in content model", new Character(c)); | error("bad separator in content model", "U+" + Integer.toHexString(c)); | private ElementContentModel readElements(StringBuffer acc) throws IOException, XMLStreamException { char separator; ElementContentModel model = new ElementContentModel(); // Parse first content particle skipWhitespace(); model.addContentParticle(readContentParticle(acc)); // End or separator skipWhitespace(); char c = readCh(); switch (c) { case ')': acc.append(')'); mark(1); c = readCh(); switch (c) { case '?': acc.append(c); model.min = 0; model.max = 1; break; case '*': acc.append(c); model.min = 0; model.max = -1; break; case '+': acc.append(c); model.min = 1; model.max = -1; break; default: reset(); } return model; // done case ',': case '|': separator = c; acc.append(c); break; default: error("bad separator in content model", new Character(c)); return model; } // Parse subsequent content particles while (true) { skipWhitespace(); model.addContentParticle(readContentParticle(acc)); skipWhitespace(); c = readCh(); if (c == ')') { acc.append(')'); break; } else if (c != separator) { error("bad separator in content model", new Character(c)); return model; } else acc.append(c); } // Check for occurrence indicator mark(1); c = readCh(); switch (c) { case '?': acc.append(c); model.min = 0; model.max = 1; break; case '*': acc.append(c); model.min = 0; model.max = -1; break; case '+': acc.append(c); model.min = 1; model.max = -1; break; default: reset(); } return model; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/b91aa9e58f8db725da1b33461ffd38af23bedf33/XMLParser.java/buggy/gnu/xml/stream/XMLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3010,
1350,
1488,
855,
3471,
12,
780,
1892,
4078,
13,
565,
1216,
1860,
16,
21526,
225,
288,
565,
1149,
4182,
31,
565,
3010,
1350,
1488,
938,
273,
394,
3010,
1350,
1488,
5621,
3639,
368,
2884,
1122,
913,
20036,
565,
2488,
9431,
5621,
565,
938,
18,
1289,
1350,
1988,
3711,
12,
896,
1350,
1988,
3711,
12,
8981,
10019,
565,
368,
4403,
578,
4182,
565,
2488,
9431,
5621,
565,
1149,
276,
273,
855,
782,
5621,
565,
1620,
261,
71,
13,
1377,
288,
1377,
648,
5777,
30,
3639,
4078,
18,
6923,
2668,
2506,
1769,
3639,
2267,
12,
21,
1769,
3639,
276,
273,
855,
782,
5621,
3639,
1620,
261,
71,
13,
1850,
288,
1850,
648,
13023,
4278,
5411,
4078,
18,
6923,
12,
71,
1769,
5411,
938,
18,
1154,
273,
374,
31,
5411,
938,
18,
1896,
273,
404,
31,
5411,
898,
31,
1850,
648,
5306,
30,
5411,
4078,
18,
6923,
12,
71,
1769,
5411,
938,
18,
1154,
273,
374,
31,
5411,
938,
18,
1896,
273,
300,
21,
31,
5411,
898,
31,
1850,
648,
15126,
4278,
5411,
4078,
18,
6923,
12,
71,
1769,
5411,
938,
18,
1154,
273,
404,
31,
5411,
938,
18,
1896,
273,
300,
21,
31,
5411,
898,
31,
1850,
805,
30,
5411,
2715,
5621,
1850,
289,
3639,
327,
938,
31,
368,
2731,
1377,
648,
3316,
30,
1377,
648,
6699,
4278,
3639,
4182,
273,
276,
31,
3639,
4078,
18,
6923,
12,
71,
1769,
3639,
898,
31,
1377,
805,
30,
3639,
555,
2932,
8759,
4182,
316,
913,
938,
3113,
315,
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,
3010,
1350,
1488,
855,
3471,
12,
780,
1892,
4078,
13,
565,
1216,
1860,
16,
21526,
225,
288,
565,
1149,
4182,
31,
565,
3010,
1350,
1488,
938,
273,
394,
3010,
1350,
1488,
5621,
3639,
368,
2884,
1122,
913,
20036,
565,
2488,
9431,
5621,
565,
938,
18,
1289,
1350,
1988,
3711,
12,
896,
1350,
1988,
3711,
12,
8981,
10019,
565,
368,
4403,
578,
4182,
565,
2488,
9431,
5621,
565,
1149,
276,
273,
855,
782,
5621,
565,
1620,
261,
71,
13,
1377,
288,
1377,
648,
5777,
30,
3639,
4078,
18,
6923,
2668,
2506,
1769,
3639,
2267,
12,
21,
1769,
3639,
276,
273,
855,
782,
5621,
3639,
1620,
261,
71,
13,
1850,
288,
1850,
648,
13023,
4278,
5411,
4078,
18,
6923,
2
] |
label3 = new Label(sShell, SWT.NONE); label3.setBounds(new org.eclipse.swt.graphics.Rectangle(8,90,105,17)); label3.setText("Validity in days"); validityLabel = new Label(sShell, SWT.NONE); validityLabel.setBounds(new org.eclipse.swt.graphics.Rectangle(121,89,53,20)); | private void createSShell() { sShell = new Shell(); sShell.setText("IPSec Connector Client"); sShell.setSize(new org.eclipse.swt.graphics.Point(249,360)); certificateProgress = new ProgressBar(sShell, SWT.NONE); certificateProgress.setBounds(new org.eclipse.swt.graphics.Rectangle(5,238,217,30)); label1 = new Label(sShell, SWT.NONE); label1.setBounds(new org.eclipse.swt.graphics.Rectangle(8,8,89,18)); label1.setText("IPSec gateway"); gatewayLabel = new Label(sShell, SWT.NONE); gatewayLabel.setBounds(new org.eclipse.swt.graphics.Rectangle(123,8,81,20)); gatewayLabel.setText("0.0.0.0"); label4 = new Label(sShell, SWT.NONE); label4.setBounds(new org.eclipse.swt.graphics.Rectangle(9,113,171,19)); label4.setText("Common name for certificate"); commonNameLabel = new Label(sShell, SWT.NONE); commonNameLabel.setBounds(new org.eclipse.swt.graphics.Rectangle(7,138,223,24)); label5 = new Label(sShell, SWT.NONE); label5.setBounds(new org.eclipse.swt.graphics.Rectangle(6,277,201,17)); label5.setText("Authenticating admin"); authenticationProgress = new ProgressBar(sShell, SWT.NONE); authenticationProgress.setBounds(new org.eclipse.swt.graphics.Rectangle(6,297,219,31)); startButton = new Button(sShell, SWT.NONE); startButton.setBounds(new org.eclipse.swt.graphics.Rectangle(6,169,69,28)); startButton.setText("Start"); label2 = new Label(sShell, SWT.NONE); label2.setBounds(new org.eclipse.swt.graphics.Rectangle(7,52,107,17)); label2.setText("Certificate authority"); caDnLabel = new Label(sShell, SWT.NONE); caDnLabel.setBounds(new org.eclipse.swt.graphics.Rectangle(121,52,116,17)); caDnLabel.setText("O=Bla, CN=My CA"); label6 = new Label(sShell, SWT.NONE); label6.setBounds(new org.eclipse.swt.graphics.Rectangle(8,31,90,17)); label6.setText("Remote network"); remoteNetworkLabel = new Label(sShell, SWT.NONE); remoteNetworkLabel.setBounds(new org.eclipse.swt.graphics.Rectangle(121,32,84,16)); remoteNetworkLabel.setText("0.0.0.0/0"); label3 = new Label(sShell, SWT.NONE); label3.setBounds(new org.eclipse.swt.graphics.Rectangle(8,90,105,17)); label3.setText("Validity in days"); validityLabel = new Label(sShell, SWT.NONE); validityLabel.setBounds(new org.eclipse.swt.graphics.Rectangle(121,89,53,20)); cancelButton = new Button(sShell, SWT.NONE); cancelButton.setBounds(new org.eclipse.swt.graphics.Rectangle(163,170,62,30)); cancelButton.setText("Cancel"); } | 14316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14316/d226f16687c4490b7673e47fe9b62a383f6cf34b/IPSecConnectorClient.java/clean/src/org/eu/mayrhofer/apps/IPSecConnectorClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
1260,
76,
1165,
1435,
288,
202,
202,
87,
13220,
273,
394,
19433,
5621,
202,
202,
87,
13220,
18,
542,
1528,
2932,
2579,
2194,
15779,
2445,
8863,
202,
202,
87,
13220,
18,
542,
1225,
12,
2704,
2358,
18,
20416,
18,
5328,
88,
18,
31586,
18,
2148,
12,
3247,
29,
16,
29751,
10019,
202,
202,
14108,
5491,
273,
394,
27793,
12,
87,
13220,
16,
348,
8588,
18,
9826,
1769,
202,
202,
14108,
5491,
18,
542,
5694,
12,
2704,
2358,
18,
20416,
18,
5328,
88,
18,
31586,
18,
19463,
12,
25,
16,
4366,
28,
16,
22,
4033,
16,
5082,
10019,
202,
202,
1925,
21,
273,
394,
5287,
12,
87,
13220,
16,
348,
8588,
18,
9826,
1769,
202,
202,
1925,
21,
18,
542,
5694,
12,
2704,
2358,
18,
20416,
18,
5328,
88,
18,
31586,
18,
19463,
12,
28,
16,
28,
16,
6675,
16,
2643,
10019,
202,
202,
1925,
21,
18,
542,
1528,
2932,
2579,
2194,
6878,
8863,
202,
202,
11127,
2224,
273,
394,
5287,
12,
87,
13220,
16,
348,
8588,
18,
9826,
1769,
202,
202,
11127,
2224,
18,
542,
5694,
12,
2704,
2358,
18,
20416,
18,
5328,
88,
18,
31586,
18,
19463,
12,
12936,
16,
28,
16,
11861,
16,
3462,
10019,
202,
202,
11127,
2224,
18,
542,
1528,
2932,
20,
18,
20,
18,
20,
18,
20,
8863,
202,
202,
1925,
24,
273,
394,
5287,
12,
87,
13220,
16,
348,
8588,
18,
9826,
1769,
202,
202,
1925,
24,
18,
542,
5694,
12,
2704,
2358,
18,
20416,
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,
752,
1260,
76,
1165,
1435,
288,
202,
202,
87,
13220,
273,
394,
19433,
5621,
202,
202,
87,
13220,
18,
542,
1528,
2932,
2579,
2194,
15779,
2445,
8863,
202,
202,
87,
13220,
18,
542,
1225,
12,
2704,
2358,
18,
20416,
18,
5328,
88,
18,
31586,
18,
2148,
12,
3247,
29,
16,
29751,
10019,
202,
202,
14108,
5491,
273,
394,
27793,
12,
87,
13220,
16,
348,
8588,
18,
9826,
1769,
202,
202,
14108,
5491,
18,
542,
5694,
12,
2704,
2358,
18,
20416,
18,
5328,
88,
18,
31586,
18,
19463,
12,
25,
16,
4366,
28,
16,
22,
4033,
16,
5082,
10019,
202,
202,
1925,
21,
273,
394,
5287,
12,
87,
13220,
16,
348,
8588,
18,
9826,
1769,
202,
2
] |
|
myResult = getSpaceBeforeLBrace(mySettings.SPACE_BEFORE_WHILE_LBRACE, mySettings.BRACE_STYLE, new TextRange(myParent.getTextRange().getStartOffset(), myChild1.getTextRange().getEndOffset()), mySettings.KEEP_SIMPLE_BLOCKS_IN_ONE_LINE); | if (myChild2.getElementType() == ElementType.BLOCK_STATEMENT) { myResult = getSpaceBeforeLBrace(mySettings.SPACE_BEFORE_WHILE_LBRACE, mySettings.BRACE_STYLE, new TextRange(myParent.getTextRange().getStartOffset(), myChild1.getTextRange().getEndOffset()), mySettings.KEEP_SIMPLE_BLOCKS_IN_ONE_LINE); } else { createSpacingBeforeElementInsideControlStatement(); } | public void visitWhileStatement(PsiWhileStatement statement) { if (myRole2 == ChildRole.LPARENTH) { createSpaceInCode(mySettings.SPACE_BEFORE_WHILE_PARENTHESES); } else if (myRole1 == ChildRole.LPARENTH || myRole2 == ChildRole.RPARENTH) { createSpaceInCode(mySettings.SPACE_WITHIN_WHILE_PARENTHESES); } else if (myRole2 == ChildRole.LOOP_BODY) { myResult = getSpaceBeforeLBrace(mySettings.SPACE_BEFORE_WHILE_LBRACE, mySettings.BRACE_STYLE, new TextRange(myParent.getTextRange().getStartOffset(), myChild1.getTextRange().getEndOffset()), mySettings.KEEP_SIMPLE_BLOCKS_IN_ONE_LINE); } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/8077c103aea6a5e7b5aa9803c89cfc9aca38639e/JavaSpacePropertyProcessor.java/clean/source/com/intellij/psi/formatter/java/JavaSpacePropertyProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3757,
15151,
3406,
12,
52,
7722,
15151,
3406,
3021,
13,
288,
565,
309,
261,
4811,
2996,
22,
422,
7451,
2996,
18,
48,
14943,
44,
13,
288,
1377,
752,
3819,
382,
1085,
12,
4811,
2628,
18,
6616,
67,
19152,
67,
12557,
13578,
67,
14943,
3900,
1090,
55,
1769,
565,
289,
565,
469,
309,
261,
4811,
2996,
21,
422,
7451,
2996,
18,
48,
14943,
44,
747,
3399,
2996,
22,
422,
7451,
2996,
18,
54,
14943,
44,
13,
288,
1377,
752,
3819,
382,
1085,
12,
4811,
2628,
18,
6616,
67,
9147,
706,
67,
12557,
13578,
67,
14943,
3900,
1090,
55,
1769,
565,
289,
565,
469,
309,
261,
4811,
2996,
22,
422,
7451,
2996,
18,
28677,
67,
16691,
13,
288,
1377,
3399,
1253,
273,
1322,
909,
4649,
12995,
9963,
12,
4811,
2628,
18,
6616,
67,
19152,
67,
12557,
13578,
67,
12995,
9254,
16,
3399,
2628,
18,
26980,
67,
15066,
16,
4766,
1377,
394,
3867,
2655,
12,
4811,
3054,
18,
588,
1528,
2655,
7675,
588,
1685,
2335,
9334,
4766,
10792,
3399,
1763,
21,
18,
588,
1528,
2655,
7675,
588,
1638,
2335,
1435,
3631,
4766,
1377,
3399,
2628,
18,
6859,
10541,
67,
31669,
900,
67,
11403,
55,
67,
706,
67,
5998,
67,
5997,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3757,
15151,
3406,
12,
52,
7722,
15151,
3406,
3021,
13,
288,
565,
309,
261,
4811,
2996,
22,
422,
7451,
2996,
18,
48,
14943,
44,
13,
288,
1377,
752,
3819,
382,
1085,
12,
4811,
2628,
18,
6616,
67,
19152,
67,
12557,
13578,
67,
14943,
3900,
1090,
55,
1769,
565,
289,
565,
469,
309,
261,
4811,
2996,
21,
422,
7451,
2996,
18,
48,
14943,
44,
747,
3399,
2996,
22,
422,
7451,
2996,
18,
54,
14943,
44,
13,
288,
1377,
752,
3819,
382,
1085,
12,
4811,
2628,
18,
6616,
67,
9147,
706,
67,
12557,
13578,
67,
14943,
3900,
1090,
55,
1769,
565,
289,
565,
469,
309,
261,
4811,
2996,
22,
422,
7451,
2996,
18,
28677,
67,
16691,
13,
288,
2
] |
(ElemTemplateElement[]) transformer.m_currentTemplateElements.clone(); | (ObjectStack) transformer.m_currentTemplateElements.clone(); | TransformSnapshotImpl(TransformerImpl transformer) { try { // Are all these clones deep enough? ResultTreeHandler rtf = transformer.getResultTreeHandler(); m_eventCount = rtf.m_eventCount; // yuck. No clone. Hope this is good enough. m_nsSupport = new NamespaceSupport2(); Enumeration prefixes = rtf.m_nsSupport.getPrefixes(); while (prefixes.hasMoreElements()) { String prefix = (String) prefixes.nextElement(); String uri = rtf.m_nsSupport.getURI(prefix); m_nsSupport.declarePrefix(prefix, uri); } m_nsContextPushed = rtf.m_nsContextPushed; XPathContext xpc = transformer.getXPathContext(); m_variableStacks = (VariableStack) xpc.getVarStack().clone(); m_currentNodes = (int[]) xpc.getCurrentNodeStack().clone(); m_currentExpressionNodes = (int[]) xpc.getCurrentExpressionNodeStack().clone(); m_contextNodeLists = (Stack) xpc.getContextNodeListsStack().clone(); if (!m_contextNodeLists.empty()) m_contextNodeList = (DTMIterator) xpc.getContextNodeList().clone(); m_axesIteratorStack = (Stack) xpc.getAxesIteratorStackStacks().clone(); m_currentTemplateRuleIsNull = (BoolStack) transformer.m_currentTemplateRuleIsNull.clone(); m_currentTemplateElements = (ElemTemplateElement[]) transformer.m_currentTemplateElements.clone(); m_currentMatchTemplates = (Stack) transformer.m_currentMatchTemplates.clone(); m_currentMatchNodes = (NodeVector) transformer.m_currentMatchedNodes.clone(); m_countersTable = (CountersTable) transformer.getCountersTable().clone(); if (transformer.m_attrSetStack != null) m_attrSetStack = (Stack) transformer.m_attrSetStack.clone(); } catch (CloneNotSupportedException cnse) { throw new org.apache.xml.utils.WrappedRuntimeException(cnse); } } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/d51b08356cc6f8c78bee2a852df4e9888db4d097/TransformSnapshotImpl.java/buggy/src/org/apache/xalan/transformer/TransformSnapshotImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
11514,
4568,
2828,
12,
8319,
2828,
8360,
13,
225,
288,
565,
775,
565,
288,
1377,
368,
12520,
777,
4259,
927,
5322,
4608,
7304,
35,
1377,
3438,
2471,
1503,
436,
6632,
273,
8360,
18,
588,
1253,
2471,
1503,
5621,
1377,
312,
67,
2575,
1380,
273,
436,
6632,
18,
81,
67,
2575,
1380,
31,
1377,
368,
677,
9031,
18,
225,
2631,
3236,
18,
670,
1306,
333,
353,
7494,
7304,
18,
1377,
312,
67,
2387,
6289,
273,
394,
6005,
6289,
22,
5621,
1377,
13864,
9419,
273,
436,
6632,
18,
81,
67,
2387,
6289,
18,
588,
11700,
5621,
1377,
1323,
261,
17777,
18,
5332,
7417,
3471,
10756,
1377,
288,
3639,
514,
1633,
273,
261,
780,
13,
9419,
18,
4285,
1046,
5621,
3639,
514,
2003,
273,
436,
6632,
18,
81,
67,
2387,
6289,
18,
588,
3098,
12,
3239,
1769,
3639,
312,
67,
2387,
6289,
18,
29554,
2244,
12,
3239,
16,
2003,
1769,
1377,
289,
1377,
312,
67,
2387,
1042,
7621,
329,
273,
436,
6632,
18,
81,
67,
2387,
1042,
7621,
329,
31,
1377,
10172,
1042,
619,
2436,
273,
8360,
18,
588,
14124,
1042,
5621,
1377,
312,
67,
6105,
28090,
273,
261,
3092,
2624,
13,
619,
2436,
18,
588,
1537,
2624,
7675,
14056,
5621,
1377,
312,
67,
2972,
3205,
273,
261,
474,
63,
5717,
619,
2436,
18,
588,
3935,
907,
2624,
7675,
14056,
5621,
1377,
312,
67,
2972,
2300,
3205,
273,
3639,
261,
474,
63,
5717,
619,
2436,
18,
588,
3935,
2300,
907,
2624,
7675,
14056,
5621,
1377,
312,
67,
2472,
907,
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,
11514,
4568,
2828,
12,
8319,
2828,
8360,
13,
225,
288,
565,
775,
565,
288,
1377,
368,
12520,
777,
4259,
927,
5322,
4608,
7304,
35,
1377,
3438,
2471,
1503,
436,
6632,
273,
8360,
18,
588,
1253,
2471,
1503,
5621,
1377,
312,
67,
2575,
1380,
273,
436,
6632,
18,
81,
67,
2575,
1380,
31,
1377,
368,
677,
9031,
18,
225,
2631,
3236,
18,
670,
1306,
333,
353,
7494,
7304,
18,
1377,
312,
67,
2387,
6289,
273,
394,
6005,
6289,
22,
5621,
1377,
13864,
9419,
273,
436,
6632,
18,
81,
67,
2387,
6289,
18,
588,
11700,
5621,
1377,
1323,
261,
17777,
18,
5332,
7417,
3471,
10756,
1377,
288,
3639,
514,
1633,
273,
261,
780,
13,
9419,
18,
4285,
1046,
5621,
3639,
2
] |
iVisited.accept(_Payload); | _Payload.visitBlockArgNode(iVisited); | public void visitBlockArgNode(BlockArgNode iVisited) { iVisited.accept(_Payload); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/043fa4419ad506aa6f8843684eb8114b226fe4b5/DefaultIteratorVisitor.java/buggy/org/jruby/nodes/visitor/DefaultIteratorVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
1768,
4117,
907,
12,
1768,
4117,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
1768,
4117,
907,
12,
1768,
4117,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
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
] |
JFileChooser chooser = new JFileChooser(); FileFilter filter = new FileFilter() { public boolean accept(File file) { return file.isDirectory() || file.getName().endsWith(".jar"); } public String getDescription() { return "Jar files (*.jar)"; } }; chooser.setFileFilter(filter); int rc = chooser.showDialog(this, "Add Jar file"); if (rc == JFileChooser.APPROVE_OPTION) { jarNameTextField.setText(chooser.getSelectedFile().getPath()); addJarToList(); } | JFileChooser chooser = new JFileChooser(); FileFilter filter = new FileFilter() { public boolean accept(File file) { return file.isDirectory() || file.getName().endsWith(".jar"); } public String getDescription() { return "Jar files (*.jar)"; } }; chooser.setFileFilter(filter); int rc = chooser.showDialog(this, "Add Jar file"); if (rc == JFileChooser.APPROVE_OPTION) { jarNameTextField.setText(chooser.getSelectedFile().getPath()); addJarToList(); } | private void browseJarButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_browseJarButtonActionPerformed JFileChooser chooser = new JFileChooser(); FileFilter filter = new FileFilter() { public boolean accept(File file) { return file.isDirectory() || file.getName().endsWith(".jar"); } public String getDescription() { return "Jar files (*.jar)"; } }; chooser.setFileFilter(filter); int rc = chooser.showDialog(this, "Add Jar file"); if (rc == JFileChooser.APPROVE_OPTION) { jarNameTextField.setText(chooser.getSelectedFile().getPath()); addJarToList(); } }//GEN-LAST:event_browseJarButtonActionPerformed | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/20d4fcba199a7f0794ac868634a88239a9a6a294/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
21670,
10813,
3616,
19449,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
25731,
10813,
3616,
19449,
202,
46,
812,
17324,
5011,
13164,
273,
394,
804,
812,
17324,
5621,
202,
29837,
1034,
273,
394,
1387,
1586,
1435,
288,
202,
565,
1071,
1250,
2791,
12,
812,
585,
13,
288,
327,
585,
18,
291,
2853,
1435,
747,
585,
18,
17994,
7675,
5839,
1190,
2932,
18,
11930,
8863,
289,
202,
565,
1071,
514,
11056,
1435,
288,
327,
315,
10813,
1390,
261,
11146,
11930,
2225,
31,
289,
202,
20451,
202,
2599,
13164,
18,
542,
29837,
12,
2188,
1769,
202,
474,
4519,
273,
5011,
13164,
18,
4500,
6353,
12,
2211,
16,
315,
986,
15644,
585,
8863,
202,
430,
261,
1310,
422,
804,
812,
17324,
18,
2203,
3373,
3412,
67,
7425,
13,
288,
202,
565,
7334,
461,
16157,
18,
542,
1528,
12,
2599,
13164,
18,
588,
7416,
812,
7675,
588,
743,
10663,
202,
565,
527,
10813,
25772,
5621,
202,
97,
565,
289,
759,
16652,
17,
14378,
30,
2575,
67,
25731,
10813,
3616,
19449,
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,
918,
21670,
10813,
3616,
19449,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
25731,
10813,
3616,
19449,
202,
46,
812,
17324,
5011,
13164,
273,
394,
804,
812,
17324,
5621,
202,
29837,
1034,
273,
394,
1387,
1586,
1435,
288,
202,
565,
1071,
1250,
2791,
12,
812,
585,
13,
288,
327,
585,
18,
291,
2853,
1435,
747,
585,
18,
17994,
7675,
5839,
1190,
2932,
18,
11930,
8863,
289,
202,
565,
1071,
514,
11056,
1435,
288,
327,
315,
10813,
1390,
261,
11146,
11930,
2225,
31,
289,
202,
20451,
202,
2599,
13164,
18,
542,
29837,
12,
2188,
1769,
202,
474,
4519,
273,
5011,
13164,
18,
4500,
6353,
12,
2211,
2
] |
for (TimePoint point: getTimePoints()) { | for (TimePoint point : getTimePoints()) { | public List<TimePoint> getAllAttributePoints(Attributes attributes) { List<TimePoint> pointList = new ArrayList<TimePoint>(); for (TimePoint point: getTimePoints()) { if (point.getPointAttributes().contains(attributes)) { pointList.add(point); } } return pointList; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/2148a82d40be3ca9c714470d990c2702c189337a/Timeline.java/clean/src/net/sourceforge/fenixedu/domain/assiduousness/util/Timeline.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
32,
950,
2148,
34,
5514,
1499,
5636,
12,
2498,
1677,
13,
288,
3639,
987,
32,
950,
2148,
34,
1634,
682,
273,
394,
2407,
32,
950,
2148,
34,
5621,
3639,
364,
261,
950,
2148,
1634,
294,
6135,
5636,
10756,
288,
5411,
309,
261,
1153,
18,
588,
2148,
2498,
7675,
12298,
12,
4350,
3719,
288,
7734,
1634,
682,
18,
1289,
12,
1153,
1769,
5411,
289,
3639,
289,
3639,
327,
1634,
682,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
32,
950,
2148,
34,
5514,
1499,
5636,
12,
2498,
1677,
13,
288,
3639,
987,
32,
950,
2148,
34,
1634,
682,
273,
394,
2407,
32,
950,
2148,
34,
5621,
3639,
364,
261,
950,
2148,
1634,
294,
6135,
5636,
10756,
288,
5411,
309,
261,
1153,
18,
588,
2148,
2498,
7675,
12298,
12,
4350,
3719,
288,
7734,
1634,
682,
18,
1289,
12,
1153,
1769,
5411,
289,
3639,
289,
3639,
327,
1634,
682,
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
] |
final WebClient webClient = new WebClient(BrowserVersion_); | final WebClient webClient = new WebClient(BROWSER_VERSION); | public void testYahooLogin_secure() throws Exception { try { final WebClient webClient = new WebClient(BrowserVersion_); final HtmlPage page = (HtmlPage)webClient.getPage( new URL( "https://login.yahoo.com/" ) ); final HtmlForm form = page.getFormByName("login_form"); assertNotNull(form); } catch( final MalformedURLException e ) { System.out.println("Skipping https test: "+getName()); } } | 3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/ce8302ac28bf1fb5d0cc242a8bf82d819d0eac2c/SanityCheck.java/buggy/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/SanityCheck.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
61,
9795,
5161,
5358,
67,
8869,
1435,
1216,
1185,
288,
3639,
775,
288,
5411,
727,
2999,
1227,
3311,
1227,
273,
394,
2999,
1227,
12,
38,
24846,
67,
5757,
1769,
5411,
727,
5430,
1964,
1363,
273,
261,
4353,
1964,
13,
4875,
1227,
18,
588,
1964,
12,
394,
1976,
12,
315,
4528,
2207,
5819,
18,
93,
9795,
5161,
18,
832,
4898,
262,
11272,
5411,
727,
5430,
1204,
646,
273,
1363,
18,
588,
1204,
5911,
2932,
5819,
67,
687,
8863,
5411,
25395,
12,
687,
1769,
3639,
289,
3639,
1044,
12,
727,
20710,
425,
262,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
16877,
2333,
1842,
30,
13773,
17994,
10663,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
61,
9795,
5161,
5358,
67,
8869,
1435,
1216,
1185,
288,
3639,
775,
288,
5411,
727,
2999,
1227,
3311,
1227,
273,
394,
2999,
1227,
12,
38,
24846,
67,
5757,
1769,
5411,
727,
5430,
1964,
1363,
273,
261,
4353,
1964,
13,
4875,
1227,
18,
588,
1964,
12,
394,
1976,
12,
315,
4528,
2207,
5819,
18,
93,
9795,
5161,
18,
832,
4898,
262,
11272,
5411,
727,
5430,
1204,
646,
273,
1363,
18,
588,
1204,
5911,
2932,
5819,
67,
687,
8863,
5411,
25395,
12,
687,
1769,
3639,
289,
3639,
1044,
12,
727,
20710,
425,
262,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
16877,
2333,
1842,
30,
13773,
17994,
10663,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100
] |
if (job.getStatus().getRunState() != JobStatus.RUNNING && (job.getFinishTime() + RETIRE_JOB_INTERVAL < System.currentTimeMillis())) { it.remove(); jobsByArrival.remove(job); | if (job.getStatus().getRunState() != JobStatus.RUNNING && job.getStatus().getRunState() != JobStatus.PREP && (job.getFinishTime() + RETIRE_JOB_INTERVAL < System.currentTimeMillis())) { it.remove(); jobInitQueue.remove(job); jobsByArrival.remove(job); } } | public void run() { while (shouldRun) { try { Thread.sleep(RETIRE_JOB_CHECK_INTERVAL); } catch (InterruptedException ie) { } synchronized (jobs) { for (Iterator it = jobs.keySet().iterator(); it.hasNext(); ) { String jobid = (String) it.next(); JobInProgress job = (JobInProgress) jobs.get(jobid); if (job.getStatus().getRunState() != JobStatus.RUNNING && (job.getFinishTime() + RETIRE_JOB_INTERVAL < System.currentTimeMillis())) { it.remove(); jobsByArrival.remove(job); } } } } } | 51718 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51718/b6fb13699445bb8fc24b8351b5603c045fb2c6d4/JobTracker.java/buggy/src/java/org/apache/hadoop/mapred/JobTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
1323,
261,
13139,
1997,
13,
288,
7734,
775,
288,
10792,
4884,
18,
19607,
12,
10238,
45,
862,
67,
18321,
67,
10687,
67,
16435,
1769,
7734,
289,
1044,
261,
24485,
503,
9228,
13,
288,
7734,
289,
27573,
3852,
261,
10088,
13,
288,
10792,
364,
261,
3198,
518,
273,
6550,
18,
856,
694,
7675,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
13491,
514,
1719,
350,
273,
261,
780,
13,
518,
18,
4285,
5621,
13491,
3956,
13434,
1719,
273,
261,
2278,
13434,
13,
6550,
18,
588,
12,
4688,
350,
1769,
13491,
309,
261,
4688,
18,
588,
1482,
7675,
588,
1997,
1119,
1435,
480,
25852,
18,
29358,
597,
18701,
261,
4688,
18,
588,
11641,
950,
1435,
397,
10366,
45,
862,
67,
18321,
67,
16435,
411,
2332,
18,
2972,
28512,
1435,
3719,
288,
18701,
518,
18,
4479,
5621,
18701,
6550,
858,
5715,
5162,
18,
4479,
12,
4688,
1769,
13491,
289,
10792,
289,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
1323,
261,
13139,
1997,
13,
288,
7734,
775,
288,
10792,
4884,
18,
19607,
12,
10238,
45,
862,
67,
18321,
67,
10687,
67,
16435,
1769,
7734,
289,
1044,
261,
24485,
503,
9228,
13,
288,
7734,
289,
27573,
3852,
261,
10088,
13,
288,
10792,
364,
261,
3198,
518,
273,
6550,
18,
856,
694,
7675,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
13491,
514,
1719,
350,
273,
261,
780,
13,
518,
18,
4285,
5621,
13491,
3956,
13434,
1719,
273,
261,
2278,
13434,
13,
6550,
18,
588,
12,
4688,
350,
1769,
13491,
309,
261,
4688,
18,
588,
1482,
7675,
588,
1997,
1119,
1435,
480,
25852,
18,
29358,
597,
18701,
261,
4688,
18,
588,
11641,
2
] |
PackageNode a = (PackageNode) btParser.getSym(1); List b = (List) btParser.getSym(2), c = (List) btParser.getSym(3); btParser.setSym1(nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c)); | Object comment = btParser.getSym(1); PackageNode a = (PackageNode) btParser.getSym(2); List b = (List) btParser.getSym(3), c = (List) btParser.getSym(4); Node n = nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c); if (comment != null) { System.out.println("Setting comment on " + n + " to " + comment.toString()); n.setComment(comment.toString()); } btParser.setSym1(n); | public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER) { System.out.println("Turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassOrInterfaceType ::= ClassType // case 15: break; // // Rule 16: ClassType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: InterfaceType ::= TypeName // case 17: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 18: TypeName ::= identifier // case 18: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 19: TypeName ::= TypeName DOT identifier // case 19: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 20: ClassName ::= TypeName // case 20: break; // // Rule 21: TypeVariable ::= identifier // case 21: break; // // Rule 22: ArrayType ::= Type LBRACKET RBRACKET // case 22: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(array(a, pos(), 1)); break; } // // Rule 23: TypeParameter ::= TypeVariable TypeBoundopt // case 23: bad_rule = 23; break; // // Rule 24: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 26: bad_rule = 26; break; // // Rule 27: AdditionalBound ::= AND InterfaceType // case 27: bad_rule = 27; break; // // Rule 28: TypeArguments ::= LESS ActualTypeArgumentList GREATER // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: ActualTypeArgumentList ::= ActualTypeArgumentList COMMA ActualTypeArgument // case 30: bad_rule = 30; break; // // Rule 31: Wildcard ::= QUESTION WildcardBoundsOpt // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= extends ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: WildcardBounds ::= super ReferenceType // case 33: bad_rule = 33; break; // // Rule 34: PackageName ::= identifier // case 34: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 35: PackageName ::= PackageName DOT identifier // case 35: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 36: ExpressionName ::= identifier // case 36: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 37: ExpressionName ::= AmbiguousName DOT identifier // case 37: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 38: MethodName ::= identifier // case 38: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 39: MethodName ::= AmbiguousName DOT identifier // case 39: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= identifier // case 40: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 41: PackageOrTypeName ::= PackageOrTypeName DOT identifier // case 41: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= identifier // case 42: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 43: AmbiguousName ::= AmbiguousName DOT identifier // case 43: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 44: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 44: { PackageNode a = (PackageNode) btParser.getSym(1); List b = (List) btParser.getSym(2), c = (List) btParser.getSym(3); btParser.setSym1(nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c)); break; } // // Rule 45: ImportDeclarations ::= ImportDeclaration // case 45: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 46: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 46: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 47: TypeDeclarations ::= TypeDeclaration // case 47: { List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(1); if (a != null) l.add(a); btParser.setSym1(l); break; } // // Rule 48: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 48: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 49: PackageDeclaration ::= package PackageName SEMICOLON // case 49: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 50: ImportDeclaration ::= SingleTypeImportDeclaration // case 50: break; // // Rule 51: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 51: break; // // Rule 52: ImportDeclaration ::= SingleStaticImportDeclaration // case 52: break; // // Rule 53: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 53: break; // // Rule 54: SingleTypeImportDeclaration ::= import TypeName SEMICOLON // case 54: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 55: TypeImportOnDemandDeclaration ::= import PackageOrTypeName DOT MULTIPLY SEMICOLON // case 55: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 56: SingleStaticImportDeclaration ::= import static TypeName DOT identifier SEMICOLON // case 56: bad_rule = 56; break; // // Rule 57: StaticImportOnDemandDeclaration ::= import static TypeName DOT MULTIPLY SEMICOLON // case 57: bad_rule = 57; break; // // Rule 58: TypeDeclaration ::= ClassDeclaration // case 58: break; // // Rule 59: TypeDeclaration ::= InterfaceDeclaration // case 59: break; // // Rule 60: TypeDeclaration ::= SEMICOLON // case 60: { btParser.setSym1(null); break; } // // Rule 61: ClassDeclaration ::= NormalClassDeclaration // case 61: break; // // Rule 62: NormalClassDeclaration ::= ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 62: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); if (a.isValue()) btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); else btParser.setSym1(nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 63: ClassModifiers ::= ClassModifier // case 63: break; // // Rule 64: ClassModifiers ::= ClassModifiers ClassModifier // case 64: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 65: ClassModifier ::= public // case 65: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 66: ClassModifier ::= protected // case 66: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 67: ClassModifier ::= private // case 67: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 68: ClassModifier ::= abstract // case 68: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 69: ClassModifier ::= static // case 69: { btParser.setSym1(Flags.STATIC); break; } // // Rule 70: ClassModifier ::= final // case 70: { btParser.setSym1(Flags.FINAL); break; } // // Rule 71: ClassModifier ::= strictfp // case 71: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 72: TypeParameters ::= LESS TypeParameterList GREATER // case 72: bad_rule = 72; break; // // Rule 73: TypeParameterList ::= TypeParameter // case 73: bad_rule = 73; break; // // Rule 74: TypeParameterList ::= TypeParameterList COMMA TypeParameter // case 74: bad_rule = 74; break; // // Rule 75: Super ::= extends ClassType // case 75: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 76: Interfaces ::= implements InterfaceTypeList // case 76: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 77: InterfaceTypeList ::= InterfaceType // case 77: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 78: InterfaceTypeList ::= InterfaceTypeList COMMA InterfaceType // case 78: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 79: ClassBody ::= LBRACE ClassBodyDeclarationsopt RBRACE // case 79: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 80: ClassBodyDeclarations ::= ClassBodyDeclaration // case 80: break; // // Rule 81: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 81: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 82: ClassBodyDeclaration ::= ClassMemberDeclaration // case 82: break; // // Rule 83: ClassBodyDeclaration ::= InstanceInitializer // case 83: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 84: ClassBodyDeclaration ::= StaticInitializer // case 84: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 85: ClassBodyDeclaration ::= ConstructorDeclaration // case 85: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 86: ClassMemberDeclaration ::= FieldDeclaration // case 86: break; // // Rule 87: ClassMemberDeclaration ::= MethodDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= ClassDeclaration // case 88: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 89: ClassMemberDeclaration ::= InterfaceDeclaration // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 90: ClassMemberDeclaration ::= SEMICOLON // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 91: FieldDeclaration ::= FieldModifiersopt Type VariableDeclarators SEMICOLON // case 91: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 92: VariableDeclarators ::= VariableDeclarator // case 92: { List l = new TypedList(new LinkedList(), VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 93: VariableDeclarators ::= VariableDeclarators COMMA VariableDeclarator // case 93: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 94: VariableDeclarator ::= VariableDeclaratorId // case 94: break; // // Rule 95: VariableDeclarator ::= VariableDeclaratorId EQUAL VariableInitializer // case 95: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 96: VariableDeclaratorId ::= identifier // case 96: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 97: VariableDeclaratorId ::= VariableDeclaratorId LBRACKET RBRACKET // case 97: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 98: VariableInitializer ::= Expression // case 98: break; // // Rule 99: VariableInitializer ::= ArrayInitializer // case 99: break; // // Rule 100: FieldModifiers ::= FieldModifier // case 100: break; // // Rule 101: FieldModifiers ::= FieldModifiers FieldModifier // case 101: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 102: FieldModifier ::= public // case 102: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 103: FieldModifier ::= protected // case 103: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 104: FieldModifier ::= private // case 104: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 105: FieldModifier ::= static // case 105: { btParser.setSym1(Flags.STATIC); break; } // // Rule 106: FieldModifier ::= final // case 106: { btParser.setSym1(Flags.FINAL); break; } // // Rule 107: FieldModifier ::= transient // case 107: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 108: FieldModifier ::= volatile // case 108: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 109: MethodDeclaration ::= MethodHeader MethodBody // case 109: { MethodDecl a = (MethodDecl) btParser.getSym(1); Block b = (Block) btParser.getSym(2); btParser.setSym1(a.body(b)); break; } // // Rule 110: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 110: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 111: ResultType ::= Type // case 111: break; // // Rule 112: ResultType ::= void // case 112: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 113: MethodDeclarator ::= identifier LPAREN FormalParameterListopt RPAREN // case 113: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 114: MethodDeclarator ::= MethodDeclarator LBRACKET RBRACKET // case 114: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 115: FormalParameterList ::= LastFormalParameter // case 115: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 116: FormalParameterList ::= FormalParameters COMMA LastFormalParameter // case 116: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 117: FormalParameters ::= FormalParameter // case 117: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 118: FormalParameters ::= FormalParameters COMMA FormalParameter // case 118: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 119: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 119: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); VarDeclarator b = (VarDeclarator) btParser.getSym(3); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 121: VariableModifiers ::= VariableModifiers VariableModifier // case 121: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 122: VariableModifier ::= final // case 122: { btParser.setSym1(Flags.FINAL); break; } // // Rule 123: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 123: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); VarDeclarator b = (VarDeclarator) btParser.getSym(4); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 124: MethodModifiers ::= MethodModifier // case 124: break; // // Rule 125: MethodModifiers ::= MethodModifiers MethodModifier // case 125: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 126: MethodModifier ::= public // case 126: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 127: MethodModifier ::= protected // case 127: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 128: MethodModifier ::= private // case 128: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 129: MethodModifier ::= abstract // case 129: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 130: MethodModifier ::= static // case 130: { btParser.setSym1(Flags.STATIC); break; } // // Rule 131: MethodModifier ::= final // case 131: { btParser.setSym1(Flags.FINAL); break; } // // Rule 132: MethodModifier ::= synchronized // case 132: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 133: MethodModifier ::= native // case 133: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 134: MethodModifier ::= strictfp // case 134: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 135: Throws ::= throws ExceptionTypeList // case 135: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 136: ExceptionTypeList ::= ExceptionType // case 136: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 137: ExceptionTypeList ::= ExceptionTypeList COMMA ExceptionType // case 137: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 138: ExceptionType ::= ClassType // case 138: break; // // Rule 139: ExceptionType ::= TypeVariable // case 139: break; // // Rule 140: MethodBody ::= Block // case 140: break; // // Rule 141: MethodBody ::= SEMICOLON // case 141: btParser.setSym1(null); break; // // Rule 142: InstanceInitializer ::= Block // case 142: break; // // Rule 143: StaticInitializer ::= static Block // case 143: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 144: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 144: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 145: ConstructorDeclarator ::= SimpleTypeName LPAREN FormalParameterListopt RPAREN // case 145: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 146: SimpleTypeName ::= identifier // case 146: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 147: ConstructorModifiers ::= ConstructorModifier // case 147: break; // // Rule 148: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 148: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 149: ConstructorModifier ::= public // case 149: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 150: ConstructorModifier ::= protected // case 150: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 151: ConstructorModifier ::= private // case 151: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 152: ConstructorBody ::= LBRACE ExplicitConstructorInvocationopt BlockStatementsopt RBRACE // case 152: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 153: ExplicitConstructorInvocation ::= this LPAREN ArgumentListopt RPAREN SEMICOLON // case 153: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 154: ExplicitConstructorInvocation ::= super LPAREN ArgumentListopt RPAREN SEMICOLON // case 154: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 155: ExplicitConstructorInvocation ::= Primary DOT this LPAREN ArgumentListopt RPAREN SEMICOLON // case 155: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= Primary DOT super LPAREN ArgumentListopt RPAREN SEMICOLON // case 156: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 157: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 157: bad_rule = 157; break; // // Rule 158: EnumBody ::= LBRACE EnumConstantsopt ,opt EnumBodyDeclarationsopt RBRACE // case 158: bad_rule = 158; break; // // Rule 159: EnumConstants ::= EnumConstant // case 159: bad_rule = 159; break; // // Rule 160: EnumConstants ::= EnumConstants COMMA EnumConstant // case 160: bad_rule = 160; break; // // Rule 161: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 161: bad_rule = 161; break; // // Rule 162: Arguments ::= LPAREN ArgumentListopt RPAREN // case 162: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 163: EnumBodyDeclarations ::= SEMICOLON ClassBodyDeclarationsopt // case 163: bad_rule = 163; break; // // Rule 164: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 164: break; // // Rule 165: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 165: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(4); ClassBody d = (ClassBody) btParser.getSym(5); btParser.setSym1(nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d)); break; } // // Rule 166: InterfaceModifiers ::= InterfaceModifier // case 166: break; // // Rule 167: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 167: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 168: InterfaceModifier ::= public // case 168: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 169: InterfaceModifier ::= protected // case 169: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 170: InterfaceModifier ::= private // case 170: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 171: InterfaceModifier ::= abstract // case 171: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 172: InterfaceModifier ::= static // case 172: { btParser.setSym1(Flags.STATIC); break; } // // Rule 173: InterfaceModifier ::= strictfp // case 173: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 174: ExtendsInterfaces ::= extends InterfaceType // case 174: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 175: ExtendsInterfaces ::= ExtendsInterfaces COMMA InterfaceType // case 175: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 176: InterfaceBody ::= LBRACE InterfaceMemberDeclarationsopt RBRACE // case 176: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 177: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 177: break; // // Rule 178: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 178: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 179: InterfaceMemberDeclaration ::= ConstantDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 180: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ClassDeclaration // case 181: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 182: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= SEMICOLON // case 183: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 184: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 185: ConstantModifiers ::= ConstantModifier // case 185: break; // // Rule 186: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 186: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 187: ConstantModifier ::= public // case 187: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 188: ConstantModifier ::= static // case 188: { btParser.setSym1(Flags.STATIC); break; } // // Rule 189: ConstantModifier ::= final // case 189: { btParser.setSym1(Flags.FINAL); break; } // // Rule 190: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt SEMICOLON // case 190: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 191: AbstractMethodModifiers ::= AbstractMethodModifier // case 191: break; // // Rule 192: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 192: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 193: AbstractMethodModifier ::= public // case 193: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 194: AbstractMethodModifier ::= abstract // case 194: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 195: AnnotationTypeDeclaration ::= InterfaceModifiersopt AT interface identifier AnnotationTypeBody // case 195: bad_rule = 195; break; // // Rule 196: AnnotationTypeBody ::= LBRACE AnnotationTypeElementDeclarationsopt RBRACE // case 196: bad_rule = 196; break; // // Rule 197: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier LPAREN RPAREN DefaultValueopt SEMICOLON // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= SEMICOLON // case 205: bad_rule = 205; break; // // Rule 206: DefaultValue ::= default ElementValue // case 206: bad_rule = 206; break; // // Rule 207: Annotations ::= Annotation // case 207: bad_rule = 207; break; // // Rule 208: Annotations ::= Annotations Annotation // case 208: bad_rule = 208; break; // // Rule 209: Annotation ::= NormalAnnotation // case 209: bad_rule = 209; break; // // Rule 210: Annotation ::= MarkerAnnotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= SingleElementAnnotation // case 211: bad_rule = 211; break; // // Rule 212: NormalAnnotation ::= AT TypeName LPAREN ElementValuePairsopt RPAREN // case 212: bad_rule = 212; break; // // Rule 213: ElementValuePairs ::= ElementValuePair // case 213: bad_rule = 213; break; // // Rule 214: ElementValuePairs ::= ElementValuePairs COMMA ElementValuePair // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePair ::= SimpleName EQUAL ElementValue // case 215: bad_rule = 215; break; // // Rule 216: SimpleName ::= identifier // case 216: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 217: ElementValue ::= ConditionalExpression // case 217: bad_rule = 217; break; // // Rule 218: ElementValue ::= Annotation // case 218: bad_rule = 218; break; // // Rule 219: ElementValue ::= ElementValueArrayInitializer // case 219: bad_rule = 219; break; // // Rule 220: ElementValueArrayInitializer ::= LBRACE ElementValuesopt ,opt RBRACE // case 220: bad_rule = 220; break; // // Rule 221: ElementValues ::= ElementValue // case 221: bad_rule = 221; break; // // Rule 222: ElementValues ::= ElementValues COMMA ElementValue // case 222: bad_rule = 222; break; // // Rule 223: MarkerAnnotation ::= AT TypeName // case 223: bad_rule = 223; break; // // Rule 224: SingleElementAnnotation ::= AT TypeName LPAREN ElementValue RPAREN // case 224: bad_rule = 224; break; // // Rule 225: ArrayInitializer ::= LBRACE VariableInitializersopt ,opt RBRACE // case 225: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 226: VariableInitializers ::= VariableInitializer // case 226: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 227: VariableInitializers ::= VariableInitializers COMMA VariableInitializer // case 227: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 228: Block ::= LBRACE BlockStatementsopt RBRACE // case 228: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 229: BlockStatements ::= BlockStatement // case 229: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 230: BlockStatements ::= BlockStatements BlockStatement // case 230: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 231: BlockStatement ::= LocalVariableDeclarationStatement // case 231: break; // // Rule 232: BlockStatement ::= ClassDeclaration // case 232: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= Statement // case 233: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 234: LocalVariableDeclarationStatement ::= LocalVariableDeclaration SEMICOLON // case 234: break; // // Rule 235: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 235: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.LocalDecl(pos(d), flags, array(a, pos(d), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 236: Statement ::= StatementWithoutTrailingSubstatement // case 236: break; // // Rule 237: Statement ::= LabeledStatement // case 237: break; // // Rule 238: Statement ::= IfThenStatement // case 238: break; // // Rule 239: Statement ::= IfThenElseStatement // case 239: break; // // Rule 240: Statement ::= WhileStatement // case 240: break; // // Rule 241: Statement ::= ForStatement // case 241: break; // // Rule 242: StatementWithoutTrailingSubstatement ::= Block // case 242: break; // // Rule 243: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= AssertStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= DoStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= BreakStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= TryStatement // case 253: break; // // Rule 254: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 254: break; // // Rule 255: StatementNoShortIf ::= LabeledStatementNoShortIf // case 255: break; // // Rule 256: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 256: break; // // Rule 257: StatementNoShortIf ::= WhileStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= ForStatementNoShortIf // case 258: break; // // Rule 259: IfThenStatement ::= if LPAREN Expression RPAREN Statement // case 259: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 260: IfThenElseStatement ::= if LPAREN Expression RPAREN StatementNoShortIf else Statement // case 260: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 261: IfThenElseStatementNoShortIf ::= if LPAREN Expression RPAREN StatementNoShortIf else StatementNoShortIf // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 262: EmptyStatement ::= SEMICOLON // case 262: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 263: LabeledStatement ::= identifier COLON Statement // case 263: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 264: LabeledStatementNoShortIf ::= identifier COLON StatementNoShortIf // case 264: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 265: ExpressionStatement ::= StatementExpression SEMICOLON // case 265: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 266: StatementExpression ::= Assignment // case 266: break; // // Rule 267: StatementExpression ::= PreIncrementExpression // case 267: break; // // Rule 268: StatementExpression ::= PreDecrementExpression // case 268: break; // // Rule 269: StatementExpression ::= PostIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PostDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= MethodInvocation // case 271: break; // // Rule 272: StatementExpression ::= ClassInstanceCreationExpression // case 272: break; // // Rule 273: AssertStatement ::= assert Expression SEMICOLON // case 273: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 274: AssertStatement ::= assert Expression COLON Expression SEMICOLON // case 274: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 275: SwitchStatement ::= switch LPAREN Expression RPAREN SwitchBlock // case 275: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 276: SwitchBlock ::= LBRACE SwitchBlockStatementGroupsopt SwitchLabelsopt RBRACE // case 276: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 277: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 277: break; // // Rule 278: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 278: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 279: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 280: SwitchLabels ::= SwitchLabel // case 280: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 281: SwitchLabels ::= SwitchLabels SwitchLabel // case 281: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 282: SwitchLabel ::= case ConstantExpression COLON // case 282: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 283: SwitchLabel ::= case EnumConstant COLON // case 283: bad_rule = 283; break; // // Rule 284: SwitchLabel ::= default COLON // case 284: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 285: EnumConstant ::= identifier // case 285: bad_rule = 285; break; // // Rule 286: WhileStatement ::= while LPAREN Expression RPAREN Statement // case 286: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 287: WhileStatementNoShortIf ::= while LPAREN Expression RPAREN StatementNoShortIf // case 287: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 288: DoStatement ::= do Statement while LPAREN Expression RPAREN SEMICOLON // case 288: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 289: ForStatement ::= BasicForStatement // case 289: break; // // Rule 290: ForStatement ::= EnhancedForStatement // case 290: break; // // Rule 291: BasicForStatement ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN Statement // case 291: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 292: ForStatementNoShortIf ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN StatementNoShortIf // case 292: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 293: ForInit ::= StatementExpressionList // case 293: break; // // Rule 294: ForInit ::= LocalVariableDeclaration // case 294: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 295: ForUpdate ::= StatementExpressionList // case 295: break; // // Rule 296: StatementExpressionList ::= StatementExpression // case 296: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 297: StatementExpressionList ::= StatementExpressionList COMMA StatementExpression // case 297: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 298: BreakStatement ::= break identifieropt SEMICOLON // case 298: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 299: ContinueStatement ::= continue identifieropt SEMICOLON // case 299: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 300: ReturnStatement ::= return Expressionopt SEMICOLON // case 300: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 301: ThrowStatement ::= throw Expression SEMICOLON // case 301: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 302: SynchronizedStatement ::= synchronized LPAREN Expression RPAREN Block // case 302: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 303: TryStatement ::= try Block Catches // case 303: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 304: TryStatement ::= try Block Catchesopt Finally // case 304: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 305: Catches ::= CatchClause // case 305: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 306: Catches ::= Catches CatchClause // case 306: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 307: CatchClause ::= catch LPAREN FormalParameter RPAREN Block // case 307: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 308: Finally ::= finally Block // case 308: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 309: Primary ::= PrimaryNoNewArray // case 309: break; // // Rule 310: Primary ::= ArrayCreationExpression // case 310: break; // // Rule 311: PrimaryNoNewArray ::= Literal // case 311: break; // // Rule 312: PrimaryNoNewArray ::= Type DOT class // case 312: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 313: PrimaryNoNewArray ::= void DOT class // case 313: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 314: PrimaryNoNewArray ::= this // case 314: { btParser.setSym1(nf.This(pos())); break; } // // Rule 315: PrimaryNoNewArray ::= ClassName DOT this // case 315: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 316: PrimaryNoNewArray ::= LPAREN Expression RPAREN // case 316: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 317: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 317: break; // // Rule 318: PrimaryNoNewArray ::= FieldAccess // case 318: break; // // Rule 319: PrimaryNoNewArray ::= MethodInvocation // case 319: break; // // Rule 320: PrimaryNoNewArray ::= ArrayAccess // case 320: break; // // Rule 321: Literal ::= IntegerLiteral // case 321: { // TODO: remove any prefix (such as 0x) polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 322: Literal ::= LongLiteral // case 322: { // TODO: remove any suffix (such as L) or prefix (such as 0x) polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 323: Literal ::= FloatingPointLiteral // case 323: { // TODO: remove any suffix (such as F) polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 324: Literal ::= DoubleLiteral // case 324: { // TODO: remove any suffix (such as D) polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 325: Literal ::= BooleanLiteral // case 325: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 326: Literal ::= CharacterLiteral // case 326: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 327: Literal ::= StringLiteral // case 327: { polyglot.lex.StringLiteral a = string_lit(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), a.getValue())); break; } // // Rule 328: Literal ::= null // case 328: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 329: BooleanLiteral ::= true // case 329: break; // // Rule 330: BooleanLiteral ::= false // case 330: break; // // Rule 331: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN ClassBodyopt // case 331: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 332: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 332: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 333: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 333: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 334: ArgumentList ::= Expression // case 334: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 335: ArgumentList ::= ArgumentList COMMA Expression // case 335: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 336: ArrayCreationExpression ::= new PrimitiveType DimExprs Dimsopt // case 336: { CanonicalTypeNode a = (CanonicalTypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); Integer c = (Integer) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b, c.intValue())); break; } // // Rule 337: ArrayCreationExpression ::= new ClassOrInterfaceType DimExprs Dimsopt // case 337: { TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); Integer c = (Integer) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b, c.intValue())); break; } // // Rule 338: ArrayCreationExpression ::= new PrimitiveType Dims ArrayInitializer // case 338: { CanonicalTypeNode a = (CanonicalTypeNode) btParser.getSym(2); Integer b = (Integer) btParser.getSym(3); ArrayInit c = (ArrayInit) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b.intValue(), c)); break; } // // Rule 339: ArrayCreationExpression ::= new ClassOrInterfaceType Dims ArrayInitializer // case 339: { TypeNode a = (TypeNode) btParser.getSym(2); Integer b = (Integer) btParser.getSym(3); ArrayInit c = (ArrayInit) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b.intValue(), c)); break; } // // Rule 340: DimExprs ::= DimExpr // case 340: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 341: DimExprs ::= DimExprs DimExpr // case 341: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 342: DimExpr ::= LBRACKET Expression RBRACKET // case 342: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 343: Dims ::= LBRACKET RBRACKET // case 343: { btParser.setSym1(new Integer(1)); break; } // // Rule 344: Dims ::= Dims LBRACKET RBRACKET // case 344: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 345: FieldAccess ::= Primary DOT identifier // case 345: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 346: FieldAccess ::= super DOT identifier // case 346: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 347: FieldAccess ::= ClassName DOT super DOT identifier // case 347: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 348: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN // case 348: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 349: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN // case 349: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 350: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN // case 350: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 351: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN // case 351: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 352: PostfixExpression ::= Primary // case 352: break; // // Rule 353: PostfixExpression ::= ExpressionName // case 353: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 354: PostfixExpression ::= PostIncrementExpression // case 354: break; // // Rule 355: PostfixExpression ::= PostDecrementExpression // case 355: break; // // Rule 356: PostIncrementExpression ::= PostfixExpression PLUS_PLUS // case 356: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 357: PostDecrementExpression ::= PostfixExpression MINUS_MINUS // case 357: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 358: UnaryExpression ::= PreIncrementExpression // case 358: break; // // Rule 359: UnaryExpression ::= PreDecrementExpression // case 359: break; // // Rule 360: UnaryExpression ::= PLUS UnaryExpression // case 360: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 361: UnaryExpression ::= MINUS UnaryExpression // case 361: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 363: PreIncrementExpression ::= PLUS_PLUS UnaryExpression // case 363: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 364: PreDecrementExpression ::= MINUS_MINUS UnaryExpression // case 364: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 365: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 365: break; // // Rule 366: UnaryExpressionNotPlusMinus ::= TWIDDLE UnaryExpression // case 366: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 367: UnaryExpressionNotPlusMinus ::= NOT UnaryExpression // case 367: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 369: MultiplicativeExpression ::= UnaryExpression // case 369: break; // // Rule 370: MultiplicativeExpression ::= MultiplicativeExpression MULTIPLY UnaryExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 371: MultiplicativeExpression ::= MultiplicativeExpression DIVIDE UnaryExpression // case 371: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 372: MultiplicativeExpression ::= MultiplicativeExpression REMAINDER UnaryExpression // case 372: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 373: AdditiveExpression ::= MultiplicativeExpression // case 373: break; // // Rule 374: AdditiveExpression ::= AdditiveExpression PLUS MultiplicativeExpression // case 374: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 375: AdditiveExpression ::= AdditiveExpression MINUS MultiplicativeExpression // case 375: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 376: ShiftExpression ::= AdditiveExpression // case 376: break; // // Rule 377: ShiftExpression ::= ShiftExpression LEFT_SHIFT AdditiveExpression // case 377: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 378: ShiftExpression ::= ShiftExpression GREATER GREATER AdditiveExpression // case 378: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 379: ShiftExpression ::= ShiftExpression GREATER GREATER GREATER AdditiveExpression // case 379: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 380: RelationalExpression ::= ShiftExpression // case 380: break; // // Rule 381: RelationalExpression ::= RelationalExpression LESS ShiftExpression // case 381: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 382: RelationalExpression ::= RelationalExpression GREATER ShiftExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 383: RelationalExpression ::= RelationalExpression LESS_EQUAL ShiftExpression // case 383: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 384: RelationalExpression ::= RelationalExpression GREATER EQUAL ShiftExpression // case 384: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 385: EqualityExpression ::= RelationalExpression // case 385: break; // // Rule 386: EqualityExpression ::= EqualityExpression EQUAL_EQUAL RelationalExpression // case 386: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 387: EqualityExpression ::= EqualityExpression NOT_EQUAL RelationalExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 388: AndExpression ::= EqualityExpression // case 388: break; // // Rule 389: AndExpression ::= AndExpression AND EqualityExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 390: ExclusiveOrExpression ::= AndExpression // case 390: break; // // Rule 391: ExclusiveOrExpression ::= ExclusiveOrExpression XOR AndExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 392: InclusiveOrExpression ::= ExclusiveOrExpression // case 392: break; // // Rule 393: InclusiveOrExpression ::= InclusiveOrExpression OR ExclusiveOrExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 394: ConditionalAndExpression ::= InclusiveOrExpression // case 394: break; // // Rule 395: ConditionalAndExpression ::= ConditionalAndExpression AND_AND InclusiveOrExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 396: ConditionalOrExpression ::= ConditionalAndExpression // case 396: break; // // Rule 397: ConditionalOrExpression ::= ConditionalOrExpression OR_OR ConditionalAndExpression // case 397: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 398: ConditionalExpression ::= ConditionalOrExpression // case 398: break; // // Rule 399: ConditionalExpression ::= ConditionalOrExpression QUESTION Expression COLON ConditionalExpression // case 399: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 400: AssignmentExpression ::= ConditionalExpression // case 400: break; // // Rule 401: AssignmentExpression ::= Assignment // case 401: break; // // Rule 402: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 402: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 403: LeftHandSide ::= ExpressionName // case 403: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 404: LeftHandSide ::= FieldAccess // case 404: break; // // Rule 405: LeftHandSide ::= ArrayAccess // case 405: break; // // Rule 406: AssignmentOperator ::= EQUAL // case 406: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 407: AssignmentOperator ::= MULTIPLY_EQUAL // case 407: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= DIVIDE_EQUAL // case 408: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= REMAINDER_EQUAL // case 409: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= PLUS_EQUAL // case 410: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= MINUS_EQUAL // case 411: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= LEFT_SHIFT_EQUAL // case 412: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= GREATER GREATER EQUAL // case 413: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 414: AssignmentOperator ::= GREATER GREATER GREATER EQUAL // case 414: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 415: AssignmentOperator ::= AND_EQUAL // case 415: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 416: AssignmentOperator ::= XOR_EQUAL // case 416: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 417: AssignmentOperator ::= OR_EQUAL // case 417: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 418: Expression ::= AssignmentExpression // case 418: break; // // Rule 419: ConstantExpression ::= Expression // case 419: break; // // Rule 420: Dimsopt ::= // case 420: { btParser.setSym1(new Integer(0)); break; } // // Rule 421: Dimsopt ::= Dims // case 421: break; // // Rule 422: Catchesopt ::= // case 422: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 423: Catchesopt ::= Catches // case 423: break; // // Rule 424: identifieropt ::= // case 424: btParser.setSym1(null); break; // // Rule 425: identifieropt ::= identifier // case 425: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 426: ForUpdateopt ::= // case 426: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 427: ForUpdateopt ::= ForUpdate // case 427: break; // // Rule 428: Expressionopt ::= // case 428: btParser.setSym1(null); break; // // Rule 429: Expressionopt ::= Expression // case 429: break; // // Rule 430: ForInitopt ::= // case 430: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 431: ForInitopt ::= ForInit // case 431: break; // // Rule 432: SwitchLabelsopt ::= // case 432: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 433: SwitchLabelsopt ::= SwitchLabels // case 433: break; // // Rule 434: SwitchBlockStatementGroupsopt ::= // case 434: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 435: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 435: break; // // Rule 436: VariableModifiersopt ::= // case 436: { btParser.setSym1(Flags.NONE); break; } // // Rule 437: VariableModifiersopt ::= VariableModifiers // case 437: break; // // Rule 438: VariableInitializersopt ::= // case 438: btParser.setSym1(null); break; // // Rule 439: VariableInitializersopt ::= VariableInitializers // case 439: break; // // Rule 440: ElementValuesopt ::= // case 440: btParser.setSym1(null); break; // // Rule 441: ElementValuesopt ::= ElementValues // case 441: bad_rule = 441; break; // // Rule 442: ElementValuePairsopt ::= // case 442: btParser.setSym1(null); break; // // Rule 443: ElementValuePairsopt ::= ElementValuePairs // case 443: bad_rule = 443; break; // // Rule 444: DefaultValueopt ::= // case 444: btParser.setSym1(null); break; // // Rule 445: DefaultValueopt ::= DefaultValue // case 445: break; // // Rule 446: AnnotationTypeElementDeclarationsopt ::= // case 446: btParser.setSym1(null); break; // // Rule 447: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 447: bad_rule = 447; break; // // Rule 448: AbstractMethodModifiersopt ::= // case 448: { btParser.setSym1(Flags.NONE); break; } // // Rule 449: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 449: break; // // Rule 450: ConstantModifiersopt ::= // case 450: { btParser.setSym1(Flags.NONE); break; } // // Rule 451: ConstantModifiersopt ::= ConstantModifiers // case 451: break; // // Rule 452: InterfaceMemberDeclarationsopt ::= // case 452: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 453: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 453: break; // // Rule 454: ExtendsInterfacesopt ::= // case 454: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 455: ExtendsInterfacesopt ::= ExtendsInterfaces // case 455: break; // // Rule 456: InterfaceModifiersopt ::= // case 456: { btParser.setSym1(Flags.NONE); break; } // // Rule 457: InterfaceModifiersopt ::= InterfaceModifiers // case 457: break; // // Rule 458: ClassBodyopt ::= // case 458: btParser.setSym1(null); break; // // Rule 459: ClassBodyopt ::= ClassBody // case 459: break; // // Rule 460: Argumentsopt ::= // case 460: btParser.setSym1(null); break; // // Rule 461: Argumentsopt ::= Arguments // case 461: bad_rule = 461; break; // // Rule 462: EnumBodyDeclarationsopt ::= // case 462: btParser.setSym1(null); break; // // Rule 463: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 463: bad_rule = 463; break; // // Rule 464: ,opt ::= // case 464: btParser.setSym1(null); break; // // Rule 465: ,opt ::= COMMA // case 465: break; // // Rule 466: EnumConstantsopt ::= // case 466: btParser.setSym1(null); break; // // Rule 467: EnumConstantsopt ::= EnumConstants // case 467: bad_rule = 467; break; // // Rule 468: ArgumentListopt ::= // case 468: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 469: ArgumentListopt ::= ArgumentList // case 469: break; // // Rule 470: BlockStatementsopt ::= // case 470: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 471: BlockStatementsopt ::= BlockStatements // case 471: break; // // Rule 472: ExplicitConstructorInvocationopt ::= // case 472: btParser.setSym1(null); break; // // Rule 473: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 473: break; // // Rule 474: ConstructorModifiersopt ::= // case 474: { btParser.setSym1(Flags.NONE); break; } // // Rule 475: ConstructorModifiersopt ::= ConstructorModifiers // case 475: break; // // Rule 476: ...opt ::= // case 476: btParser.setSym1(null); break; // // Rule 477: ...opt ::= ELLIPSIS // case 477: break; // // Rule 478: FormalParameterListopt ::= // case 478: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 479: FormalParameterListopt ::= FormalParameterList // case 479: break; // // Rule 480: Throwsopt ::= // case 480: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 481: Throwsopt ::= Throws // case 481: break; // // Rule 482: MethodModifiersopt ::= // case 482: { btParser.setSym1(Flags.NONE); break; } // // Rule 483: MethodModifiersopt ::= MethodModifiers // case 483: break; // // Rule 484: FieldModifiersopt ::= // case 484: { btParser.setSym1(Flags.NONE); break; } // // Rule 485: FieldModifiersopt ::= FieldModifiers // case 485: break; // // Rule 486: ClassBodyDeclarationsopt ::= // case 486: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 487: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 487: break; // // Rule 488: Interfacesopt ::= // case 488: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 489: Interfacesopt ::= Interfaces // case 489: break; // // Rule 490: Superopt ::= // case 490: btParser.setSym1(null); break; // // Rule 491: Superopt ::= Super // case 491: break; // // Rule 492: TypeParametersopt ::= // case 492: btParser.setSym1(null); break; // // Rule 493: TypeParametersopt ::= TypeParameters // case 493: break; // // Rule 494: ClassModifiersopt ::= // case 494: { btParser.setSym1(Flags.NONE); break; } // // Rule 495: ClassModifiersopt ::= ClassModifiers // case 495: break; // // Rule 496: Annotationsopt ::= // case 496: btParser.setSym1(null); break; // // Rule 497: Annotationsopt ::= Annotations // case 497: bad_rule = 497; break; // // Rule 498: TypeDeclarationsopt ::= // case 498: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 499: TypeDeclarationsopt ::= TypeDeclarations // case 499: break; // // Rule 500: ImportDeclarationsopt ::= // case 500: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 501: ImportDeclarationsopt ::= ImportDeclarations // case 501: break; // // Rule 502: PackageDeclarationopt ::= // case 502: btParser.setSym1(null); break; // // Rule 503: PackageDeclarationopt ::= PackageDeclaration // case 503: break; // // Rule 504: WildcardBoundsOpt ::= // case 504: btParser.setSym1(null); break; // // Rule 505: WildcardBoundsOpt ::= WildcardBounds // case 505: bad_rule = 505; break; // // Rule 506: AdditionalBoundListopt ::= // case 506: btParser.setSym1(null); break; // // Rule 507: AdditionalBoundListopt ::= AdditionalBoundList // case 507: bad_rule = 507; break; // // Rule 508: TypeBoundopt ::= // case 508: btParser.setSym1(null); break; // // Rule 509: TypeBoundopt ::= TypeBound // case 509: bad_rule = 509; break; // // Rule 510: TypeArgumentsopt ::= // case 510: btParser.setSym1(null); break; // // Rule 511: TypeArgumentsopt ::= TypeArguments // case 511: bad_rule = 511; break; // // Rule 512: Type ::= DataType PlaceTypeSpecifieropt // case 512: { assert(btParser.getSym(2) == null); //btParser.setSym1(); break; } // // Rule 513: Type ::= nullable LESS Type GREATER // case 513: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 514: Type ::= future LESS Type GREATER // case 514: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 515: Type ::= boxed LESS Type GREATER // case 515: bad_rule = 515; break; // // Rule 516: Type ::= fun LESS Type COMMA Type GREATER // case 516: bad_rule = 516; break; // // Rule 517: DataType ::= PrimitiveType // case 517: break; // // Rule 518: DataType ::= ClassOrInterfaceType // case 518: break; // // Rule 519: DataType ::= ArrayType // case 519: break; // // Rule 520: PlaceTypeSpecifier ::= AT PlaceType // case 520: bad_rule = 520; break; // // Rule 521: PlaceType ::= place // case 521: bad_rule = 521; break; // // Rule 522: PlaceType ::= activity // case 522: bad_rule = 522; break; // // Rule 523: PlaceType ::= method // case 523: bad_rule = 523; break; // // Rule 524: PlaceType ::= current // case 524: bad_rule = 524; break; // // Rule 525: PlaceType ::= PlaceExpression // case 525: bad_rule = 525; break; // // Rule 526: ClassOrInterfaceType ::= TypeName DepParametersopt // case 526: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 527: DepParameters ::= LPAREN DepParameterExpr RPAREN // case 527: break; // // Rule 528: DepParameterExpr ::= ArgumentList WhereClauseopt // case 528: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 529: DepParameterExpr ::= WhereClause // case 529: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 530: WhereClause ::= COLON Expression // case 530: break; // // Rule 532: X10ArrayType ::= Type LBRACKET DOT RBRACKET // case 532: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); System.out.println("Parser parses X10ArrayType Type [.] as |" + t +"|"); btParser.setSym1(t); break; } // // Rule 533: X10ArrayType ::= Type reference LBRACKET DOT RBRACKET // case 533: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 534: X10ArrayType ::= Type value LBRACKET DOT RBRACKET // case 534: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 535: X10ArrayType ::= Type LBRACKET DepParameterExpr RBRACKET // case 535: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 536: X10ArrayType ::= Type reference LBRACKET DepParameterExpr RBRACKET // case 536: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 537: X10ArrayType ::= Type value LBRACKET DepParameterExpr RBRACKET // case 537: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 538: ObjectKind ::= value // case 538: bad_rule = 538; break; // // Rule 539: ObjectKind ::= reference // case 539: bad_rule = 539; break; // // Rule 540: MethodModifier ::= atomic // case 540: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 541: MethodModifier ::= extern // case 541: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 542: ClassDeclaration ::= ValueClassDeclaration // case 542: break; // // Rule 543: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 543: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 544: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 544: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 545: ArrayCreationExpression ::= new ArrayBaseType LBRACKET Expression RBRACKET // case 545: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(4); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c); btParser.setSym1(nf.NewArray(pos(), a, l)); break; } // // Rule 546: ArrayCreationExpression ::= new ArrayBaseType LBRACKET RBRACKET ArrayInitializer // case 546: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(5); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 0, d)); break; } // // Rule 547: ArrayCreationExpression ::= new ArrayBaseType LBRACKET DOT Expression RBRACKET // case 547: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(5); System.out.println("parser: Parsed new " + a + " [. " + c + " ]"); btParser.setSym1(nf.ArrayConstructor(pos(), a, false, c, null)); break; } // // Rule 548: ArrayCreationExpression ::= new ArrayBaseType LBRACKET DOT Expression RBRACKET Expression // case 548: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); System.out.println("parser: Parsed new " + a + " [. " + c + " ]" + d); btParser.setSym1(nf.ArrayConstructor(pos(), a, false, c, d)); break; } // // Rule 549: ArrayCreationExpression ::= new ArrayBaseType value LBRACKET DOT Expression RBRACKET // case 549: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(6); btParser.setSym1(nf.ArrayConstructor(pos(), a, true, c, null)); break; } // // Rule 550: ArrayCreationExpression ::= new ArrayBaseType value LBRACKET DOT Expression RBRACKET Expression // case 550: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(6); Expr d = (Expr) btParser.getSym(8); btParser.setSym1(nf.ArrayConstructor(pos(), a, true, c, d)); break; } // // Rule 551: ArrayBaseType ::= PrimitiveType // case 551: break; // // Rule 552: ArrayBaseType ::= ClassOrInterfaceType // case 552: break; // // Rule 553: ArrayAccess ::= ExpressionName LBRACKET ArgumentList RBRACKET // case 553: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); System.out.println("ArrayAccess parsing:" + b + " size =" + b.size()); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 554: ArrayAccess ::= PrimaryNoNewArray LBRACKET ArgumentList RBRACKET // case 554: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); System.out.println("ArrayAccess parsing:" + b + " size =" + b.size()); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 555: Statement ::= NowStatement // case 555: break; // // Rule 556: Statement ::= ClockedStatement // case 556: break; // // Rule 557: Statement ::= AsyncStatement // case 557: break; // // Rule 558: Statement ::= AtomicStatement // case 558: break; // // Rule 559: Statement ::= WhenStatement // case 559: break; // // Rule 560: Statement ::= ForEachStatement // case 560: break; // // Rule 561: Statement ::= AtEachStatement // case 561: break; // // Rule 562: Statement ::= FinishStatement // case 562: break; // // Rule 563: StatementWithoutTrailingSubstatement ::= NextStatement // case 563: break; // // Rule 564: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 564: break; // // Rule 565: StatementNoShortIf ::= NowStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= ClockedStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AsyncStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= AtomicStatementNoShortIf // case 568: break; // // Rule 569: StatementNoShortIf ::= WhenStatementNoShortIf // case 569: break; // // Rule 570: StatementNoShortIf ::= ForEachStatementNoShortIf // case 570: break; // // Rule 571: StatementNoShortIf ::= AtEachStatementNoShortIf // case 571: break; // // Rule 572: StatementNoShortIf ::= FinishStatementNoShortIf // case 572: break; // // Rule 573: NowStatement ::= now LPAREN Clock RPAREN Statement // case 573: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 574: ClockedStatement ::= clocked LPAREN ClockList RPAREN Statement // case 574: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 575: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 575: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 576: AsyncStatement ::= async LPAREN here RPAREN Statement // case 576: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 577: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 577: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 578: AtomicStatement ::= atomic LPAREN here RPAREN Statement // case 578: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 579: WhenStatement ::= when LPAREN Expression RPAREN Statement // case 579: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 580: WhenStatement ::= WhenStatement or LPAREN Expression RPAREN Statement // case 580: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 581: ForEachStatement ::= foreach LPAREN FormalParameter COLON Expression RPAREN Statement // case 581: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 582: AtEachStatement ::= ateach LPAREN FormalParameter COLON Expression RPAREN Statement // case 582: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 583: EnhancedForStatement ::= for LPAREN FormalParameter COLON Expression RPAREN Statement // case 583: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 584: FinishStatement ::= finish Statement // case 584: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 585: NowStatementNoShortIf ::= now LPAREN Clock RPAREN StatementNoShortIf // case 585: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 586: ClockedStatementNoShortIf ::= clocked LPAREN ClockList RPAREN StatementNoShortIf // case 586: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 587: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 587: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 588: AsyncStatementNoShortIf ::= async LPAREN here RPAREN StatementNoShortIf // case 588: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 589: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 589: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 590: AtomicStatementNoShortIf ::= atomic LPAREN here RPAREN StatementNoShortIf // case 590: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 591: WhenStatementNoShortIf ::= when LPAREN Expression RPAREN StatementNoShortIf // case 591: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 592: WhenStatementNoShortIf ::= WhenStatement or LPAREN Expression RPAREN StatementNoShortIf // case 592: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 593: ForEachStatementNoShortIf ::= foreach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 593: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 594: AtEachStatementNoShortIf ::= ateach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 594: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 595: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 595: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 596: PlaceExpressionSingleList ::= LPAREN PlaceExpression RPAREN // case 596: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 597: PlaceExpression ::= here // case 597: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 598: PlaceExpression ::= this // case 598: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 599: PlaceExpression ::= ExpressionName // case 599: { Expr e = (Expr) btParser.getSym(1); btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), e, "place")); break; } // // Rule 600: PlaceExpression ::= ArrayAccess // case 600: bad_rule = 600; break; // // Rule 601: NextStatement ::= next SEMICOLON // case 601: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 602: AwaitStatement ::= await Expression SEMICOLON // case 602: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 603: ClockList ::= Clock // case 603: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 604: ClockList ::= ClockList COMMA Clock // case 604: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 605: Clock ::= identifier // case 605: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 606: CastExpression ::= LPAREN Type RPAREN UnaryExpressionNotPlusMinus // case 606: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 607: MethodInvocation ::= Primary ARROW identifier LPAREN ArgumentListopt RPAREN // case 607: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 608: RelationalExpression ::= RelationalExpression instanceof Type // case 608: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 609: ExpressionName ::= here // case 609: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return nf.Here(pos); } }); break; } // // Rule 610: Primary ::= FutureExpression // case 610: break; // // Rule 611: FutureExpression ::= future PlaceExpressionSingleListopt LBRACE Expression RBRACE // case 611: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 612: FutureExpression ::= future LPAREN here RPAREN LBRACE Expression RBRACE // case 612: { Expr e2 = (Expr) btParser.getSym(6); btParser.setSym1(nf.Future(pos(), nf.Here(pos(btParser.getFirstToken(3))), e2)); break; } // // Rule 613: FunExpression ::= fun Type LPAREN FormalParameterListopt RPAREN LBRACE Expression RBRACE // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 617: bad_rule = 617; break; // // Rule 618: MethodInvocation ::= TypeName DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 621: bad_rule = 621; break; // // Rule 622: PlaceTypeSpecifieropt ::= // case 622: btParser.setSym1(null); break; // // Rule 623: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 623: break; // // Rule 624: DepParametersopt ::= // case 624: btParser.setSym1(null); break; // // Rule 625: DepParametersopt ::= DepParameters // case 625: break; // // Rule 626: WhereClauseopt ::= // case 626: btParser.setSym1(null); break; // // Rule 627: WhereClauseopt ::= WhereClause // case 627: break; // // Rule 628: ObjectKindopt ::= // case 628: btParser.setSym1(null); break; // // Rule 629: ObjectKindopt ::= ObjectKind // case 629: break; // // Rule 630: ArrayInitializeropt ::= // case 630: btParser.setSym1(null); break; // // Rule 631: ArrayInitializeropt ::= ArrayInitializer // case 631: break; // // Rule 632: ConcreteDistributionopt ::= // case 632: btParser.setSym1(null); break; // // Rule 633: ConcreteDistributionopt ::= ConcreteDistribution // case 633: break; // // Rule 634: PlaceExpressionSingleListopt ::= // case 634: btParser.setSym1(null); break; // // Rule 635: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 635: break; // // Rule 636: ArgumentListopt ::= // case 636: btParser.setSym1(null); break; // // Rule 637: ArgumentListopt ::= ArgumentList // case 637: break; // // Rule 638: DepParametersopt ::= // case 638: btParser.setSym1(null); break; // // Rule 639: DepParametersopt ::= DepParameters // case 639: break; default: break; } return; } | 1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/f14971e321c6a9348df794730cae61aaf3cfbf90/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,
309,
261,
8759,
67,
5345,
480,
374,
13,
5411,
327,
31,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
2756,
493,
33,
26765,
5411,
368,
5411,
648,
404,
30,
288,
7734,
309,
261,
683,
87,
1228,
18,
588,
5677,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
480,
1139,
2163,
26954,
2942,
18,
56,
47,
67,
16606,
13,
7734,
288,
10792,
2332,
18,
659,
18,
8222,
2932,
15858,
310,
4932,
315,
397,
4766,
4202,
846,
87,
1228,
18,
17994,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
315,
622,
315,
397,
4766,
4202,
846,
87,
1228,
18,
588,
1670,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
6153,
397,
4766,
4202,
846,
87,
1228,
18,
588,
1494,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
315,
1368,
392,
2756,
8863,
7734,
289,
7734,
898,
31,
5411,
289,
1171,
368,
5411,
368,
6781,
576,
30,
225,
14488,
559,
493,
33,
16980,
559,
5411,
368,
5411,
648,
576,
30,
7734,
898,
31,
2398,
368,
5411,
368,
6781,
890,
30,
225,
14488,
559,
493,
33,
1250,
5411,
368,
5411,
648,
890,
30,
288,
7734,
10921,
2678,
18,
542,
11901,
21,
12,
82,
74,
18,
15512,
559,
907,
12,
917,
9334,
3742,
18,
5507,
1435,
10019,
7734,
898,
31,
5411,
289,
1171,
368,
5411,
368,
6781,
1059,
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,
309,
261,
8759,
67,
5345,
480,
374,
13,
5411,
327,
31,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
2756,
493,
33,
26765,
5411,
368,
5411,
648,
404,
30,
288,
7734,
309,
261,
683,
87,
1228,
18,
588,
5677,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
480,
1139,
2163,
26954,
2942,
18,
56,
47,
67,
16606,
13,
7734,
288,
10792,
2332,
18,
659,
18,
8222,
2932,
15858,
310,
4932,
315,
397,
4766,
4202,
846,
87,
1228,
18,
17994,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
315,
622,
315,
397,
4766,
4202,
2
] |
if(!end) ins.addRoute(src,dest); | if(!end) { if (KjcOptions.magicdram && node.getPrevious() != null && node.getPrevious().isInputTrace()) createMagicDramLoad((InputTraceNode)node.getPrevious(), node, (init || primePump), rawChip); if (KjcOptions.magicdram && node.getNext() != null && node.getNext().isOutputTrace()) createMagicDramStore((OutputTraceNode)node.getNext(), node, (init || primePump), rawChip); ins.addRoute(src,dest); | private static void createSwitchCodeLinear(FilterTraceNode node, Trace parent, FilterInfo filterInfo, boolean init, boolean primePump, RawTile tile, RawChip rawChip, int mult) { //createReceiveCode(0, node, parent, filterInfo, init, primePump, tile, rawChip); ComputeNode sourceNode = null; if (node.getPrevious().isFilterTrace()) sourceNode = rawChip.getTile(((FilterTraceNode)node.getPrevious()).getX(), ((FilterTraceNode)node.getPrevious()).getY()); else { if (KjcOptions.magicdram && node.getPrevious() != null && node.getPrevious().isInputTrace() && tile.hasIODevice()) sourceNode = tile.getIODevice(); else return; } SwitchIPort src = rawChip.getIPort(sourceNode, tile); sourceNode = null; ComputeNode destNode = null; if (node.getNext().isFilterTrace()) destNode = rawChip.getTile(((FilterTraceNode)node.getNext()).getX(), ((FilterTraceNode)node.getNext()).getY()); else { if (KjcOptions.magicdram && node.getNext() != null && node.getNext().isOutputTrace() && tile.hasIODevice()) destNode = tile.getIODevice(); else return; } SwitchOPort dest = rawChip.getOPort(tile, destNode); destNode = null; FilterContent content = node.getFilter(); final int peek = content.getArray().length; final int pop = content.getPopCount(); final int numPop = peek/pop; final boolean begin=content.getBegin(); final boolean end=content.getEnd(); System.out.println("SRC: "+src); System.out.println("DEST: "+dest); SwitchCodeStore code = tile.getSwitchCode(); boolean first=true; for(int i = 0; i<numPop-1; i++) for(int j = 0; j<pop; j++) { FullIns ins = new FullIns(tile, new MoveIns(SwitchReg.R1, src)); ins.addRoute(src, SwitchOPort.CSTI); //if(!first) { if(!end) ins.addRoute(src,dest); //} code.appendIns(ins, init||primePump); for(int k = i-1; k>= 0; k--) { FullIns newIns = new FullIns(tile); newIns.addRoute(SwitchReg.R1, SwitchOPort.CSTI); code.appendIns(newIns, init||primePump); } FullIns newIns=null; if(!begin) { newIns=new FullIns(tile); newIns.addRoute(src, SwitchOPort.CSTI); code.appendIns(newIns, init||primePump); } /*if(!first) { newIns = new FullIns(tile); newIns.addRoute(SwitchIPort.CSTO,dest); code.appendIns(newIns, init||primePump); } first=false;*/ } final int turns=content.getPos(); for(int turn=0;turn<turns;turn++) for(int j = 0; j<pop; j++) { FullIns ins = new FullIns(tile, new MoveIns(SwitchReg.R1, src)); ins.addRoute(src, SwitchOPort.CSTI); if(!first) { if(!end) ins.addRoute(src,dest); } code.appendIns(ins, init||primePump); for(int k = numPop-2; k>= 0; k--) { FullIns newIns = new FullIns(tile); newIns.addRoute(SwitchReg.R1, SwitchOPort.CSTI); code.appendIns(newIns, init||primePump); } FullIns newIns=null; if(!begin) { newIns=new FullIns(tile); newIns.addRoute(src, SwitchOPort.CSTI); code.appendIns(newIns, init||primePump); } if(!first) { newIns = new FullIns(tile); newIns.addRoute(SwitchIPort.CSTO,dest); code.appendIns(newIns, init||primePump); } first=false; } Label label = code.getFreshLabel(); //for(int rounds=0;rounds<2;rounds++) { //if(rounds>0) code.appendIns(label, init||primePump); final int numTimes = Linear.getMult(peek); int pendingSends=0; int times=0; FullIns ins; for(int i = 0;i<numTimes;i++) { for(int j=0;j<pop;j++) { if(numPop==1&&j==0) pendingSends++; times++; ins = new FullIns(tile, new MoveIns(SwitchReg.R1, src)); ins.addRoute(src, SwitchOPort.CSTI); if(!end/*&&rounds>0*/) ins.addRoute(src,dest); code.appendIns(ins, init||primePump); if(times==4) { times=0; if(pendingSends>0) { if(!begin) { ins=new FullIns(tile); ins.addRoute(src,SwitchOPort.CSTI); code.appendIns(ins,init||primePump); } for(int l=0;l<pendingSends-1;l++) { ins=new FullIns(tile); if(!begin) ins.addRoute(src,SwitchOPort.CSTI); //if(rounds>0) ins.addRoute(SwitchIPort.CSTO,dest); code.appendIns(ins,init||primePump); } //if(rounds>0) { ins=new FullIns(tile); ins.addRoute(SwitchIPort.CSTO,dest); code.appendIns(ins,init||primePump); //} pendingSends=0; } } for(int k = 1;k<numPop;k++) { if(j==0&&k==numPop-1) pendingSends++; times++; ins=new FullIns(tile); ins.addRoute(SwitchReg.R1, SwitchOPort.CSTI); code.appendIns(ins, init||primePump); if(times==4) { times=0; if(pendingSends>0) { if(!begin) { ins=new FullIns(tile); ins.addRoute(src,SwitchOPort.CSTI); code.appendIns(ins,init||primePump); } for(int l=0;l<pendingSends-1;l++) { ins=new FullIns(tile); if(!begin) ins.addRoute(src,SwitchOPort.CSTI); //if(rounds>0) ins.addRoute(SwitchIPort.CSTO,dest); code.appendIns(ins,init||primePump); } //if(rounds>0) { ins=new FullIns(tile); ins.addRoute(SwitchIPort.CSTO,dest); code.appendIns(ins,init||primePump); //} pendingSends=0; } } } } //} } /*for(int i=0;i<numTimes-1;i++) { FullIns newIns=new FullIns(tile); newIns.addRoute(SwitchIPort.CSTO,dest); code.appendIns(newIns,init||primePump); } FullIns newIns=new FullIns(tile,new JumpIns(label.getLabel())); newIns.addRoute(SwitchIPort.CSTO,dest); code.appendIns(newIns,init||primePump);*/ code.appendIns(new JumpIns(label.getLabel()),init||primePump); } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/be8ece97cdc9fa776cd19ca706d4a0ed53636c58/Rawify.java/clean/streams/src/at/dms/kjc/spacetime/Rawify.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
752,
10200,
1085,
15982,
12,
1586,
3448,
907,
756,
16,
2677,
982,
16,
9944,
4202,
4008,
966,
1034,
966,
16,
1250,
1208,
16,
1250,
17014,
52,
2801,
16,
9944,
4202,
6576,
9337,
4769,
16,
6576,
782,
625,
1831,
782,
625,
16,
509,
1778,
13,
288,
202,
759,
2640,
11323,
1085,
12,
20,
16,
225,
756,
16,
225,
982,
16,
225,
1034,
966,
16,
225,
1208,
16,
225,
17014,
52,
2801,
16,
225,
4769,
16,
225,
1831,
782,
625,
1769,
202,
7018,
907,
26799,
273,
446,
31,
202,
430,
261,
2159,
18,
588,
8351,
7675,
291,
1586,
3448,
10756,
202,
565,
26799,
273,
1831,
782,
625,
18,
588,
9337,
12443,
12,
1586,
3448,
907,
13,
2159,
18,
588,
8351,
1435,
2934,
588,
60,
9334,
282,
25083,
14015,
1586,
3448,
907,
13,
2159,
18,
588,
8351,
1435,
2934,
588,
61,
10663,
202,
12107,
288,
202,
565,
309,
261,
47,
78,
71,
1320,
18,
11179,
72,
1940,
597,
756,
18,
588,
8351,
1435,
480,
225,
446,
597,
202,
202,
2159,
18,
588,
8351,
7675,
291,
1210,
3448,
1435,
597,
202,
202,
15368,
18,
5332,
4294,
3654,
10756,
3196,
202,
3168,
907,
273,
4769,
18,
588,
4294,
3654,
5621,
202,
565,
469,
3196,
202,
2463,
31,
202,
97,
202,
10200,
2579,
499,
1705,
273,
1831,
782,
625,
18,
588,
2579,
499,
12,
3168,
907,
16,
4769,
1769,
202,
3168,
907,
273,
446,
31,
202,
7018,
907,
1570,
907,
273,
446,
31,
202,
430,
261,
2159,
18,
588,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
752,
10200,
1085,
15982,
12,
1586,
3448,
907,
756,
16,
2677,
982,
16,
9944,
4202,
4008,
966,
1034,
966,
16,
1250,
1208,
16,
1250,
17014,
52,
2801,
16,
9944,
4202,
6576,
9337,
4769,
16,
6576,
782,
625,
1831,
782,
625,
16,
509,
1778,
13,
288,
202,
759,
2640,
11323,
1085,
12,
20,
16,
225,
756,
16,
225,
982,
16,
225,
1034,
966,
16,
225,
1208,
16,
225,
17014,
52,
2801,
16,
225,
4769,
16,
225,
1831,
782,
625,
1769,
202,
7018,
907,
26799,
273,
446,
31,
202,
430,
261,
2159,
18,
588,
8351,
7675,
291,
1586,
3448,
10756,
202,
565,
26799,
273,
1831,
782,
625,
18,
588,
9337,
12443,
12,
1586,
3448,
907,
13,
2159,
2
] |
? DONTENUM | READONLY | PERMANENT : DONTENUM; | ? READONLY | PERMANENT : PERMANENT; | protected int findInstanceIdInfo(String s) { int id;// #generated# Last update: 2001-05-20 00:12:12 GMT+02:00 L0: { id = 0; String X = null; int c; L: switch (s.length()) { case 4: X="name";id=Id_name; break L; case 5: X="arity";id=Id_arity; break L; case 6: X="length";id=Id_length; break L; case 9: c=s.charAt(0); if (c=='a') { X="arguments";id=Id_arguments; } else if (c=='p') { X="prototype";id=Id_prototype; } break L; } if (X!=null && X!=s && !X.equals(s)) id = 0; }// #/generated#// #/string_id_map# if (id == 0) return super.findInstanceIdInfo(s); int attr; switch (id) { case Id_length: case Id_arity: case Id_name: attr = DONTENUM | READONLY | PERMANENT; break; case Id_prototype: attr = (isPrototypePropertyImmune) ? DONTENUM | READONLY | PERMANENT : DONTENUM; break; case Id_arguments: attr = DONTENUM | PERMANENT; break; default: throw new IllegalStateException(); } return instanceIdInfo(attr, id); } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/2493b1c42d6dbe2bf745ce08c4a851c5e171529d/BaseFunction.java/clean/js/rhino/src/org/mozilla/javascript/BaseFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
1104,
15327,
966,
12,
780,
272,
13,
565,
288,
3639,
509,
612,
31,
759,
468,
11168,
7,
6825,
1089,
30,
4044,
21,
17,
6260,
17,
3462,
9631,
30,
2138,
30,
2138,
21706,
15,
3103,
30,
713,
3639,
511,
20,
30,
288,
612,
273,
374,
31,
514,
1139,
273,
446,
31,
509,
276,
31,
5411,
511,
30,
1620,
261,
87,
18,
2469,
10756,
288,
5411,
648,
1059,
30,
1139,
1546,
529,
14432,
350,
33,
548,
67,
529,
31,
898,
511,
31,
5411,
648,
1381,
30,
1139,
1546,
20498,
14432,
350,
33,
548,
67,
20498,
31,
898,
511,
31,
5411,
648,
1666,
30,
1139,
1546,
2469,
14432,
350,
33,
548,
67,
2469,
31,
898,
511,
31,
5411,
648,
2468,
30,
276,
33,
87,
18,
3001,
861,
12,
20,
1769,
7734,
309,
261,
71,
18920,
69,
6134,
288,
1139,
1546,
7099,
14432,
350,
33,
548,
67,
7099,
31,
289,
7734,
469,
309,
261,
71,
18920,
84,
6134,
288,
1139,
1546,
18541,
14432,
350,
33,
548,
67,
18541,
31,
289,
7734,
898,
511,
31,
5411,
289,
5411,
309,
261,
60,
5,
33,
2011,
597,
1139,
5,
33,
87,
597,
401,
60,
18,
14963,
12,
87,
3719,
612,
273,
374,
31,
3639,
289,
759,
468,
19,
11168,
7,
759,
468,
19,
1080,
67,
350,
67,
1458,
7,
3639,
309,
261,
350,
422,
374,
13,
327,
2240,
18,
4720,
15327,
966,
12,
87,
1769,
3639,
509,
1604,
31,
3639,
1620,
261,
350,
13,
288,
1850,
648,
3124,
67,
2469,
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,
4750,
509,
1104,
15327,
966,
12,
780,
272,
13,
565,
288,
3639,
509,
612,
31,
759,
468,
11168,
7,
6825,
1089,
30,
4044,
21,
17,
6260,
17,
3462,
9631,
30,
2138,
30,
2138,
21706,
15,
3103,
30,
713,
3639,
511,
20,
30,
288,
612,
273,
374,
31,
514,
1139,
273,
446,
31,
509,
276,
31,
5411,
511,
30,
1620,
261,
87,
18,
2469,
10756,
288,
5411,
648,
1059,
30,
1139,
1546,
529,
14432,
350,
33,
548,
67,
529,
31,
898,
511,
31,
5411,
648,
1381,
30,
1139,
1546,
20498,
14432,
350,
33,
548,
67,
20498,
31,
898,
511,
31,
5411,
648,
1666,
30,
1139,
1546,
2469,
14432,
350,
33,
548,
67,
2469,
31,
898,
511,
31,
5411,
648,
2
] |
vstack.fpuStack.visitItems(new ItemVisitor() { public void visit(Item item) { if (!vstack.contains(item)) { throw new InternalError( "Item " + item + " is not on the vstack, but still of the fpu stack in method " + currentMethod + " at address " + curAddress); } } }); | vstack.fpuStack.visitItems(new ItemVisitor() { public void visit(Item item) { if (!vstack.contains(item)) { throw new InternalError( "Item " + item + " is not on the vstack, but still of the fpu stack in method " + currentMethod + " at address " + curAddress); } } }); | public void endInstruction() { // In debug mode, do a lot of verifications if (paranoia) { // Verify the register usage // No registers can be in use, unless they are on the virtual stack. final X86RegisterPool pool = eContext.getPool(); pool.visitUsedRegisters(new RegisterVisitor() { public void visit(Register reg) { if (!vstack.uses(reg)) { throw new InternalError("Register " + reg + " is in use outsite of the vstack in method " + currentMethod + " at bytecode address " + curAddress); } } }); // All items on the FPU stack must also be on the vstack. vstack.fpuStack.visitItems(new ItemVisitor() { public void visit(Item item) { if (!vstack.contains(item)) { throw new InternalError( "Item " + item + " is not on the vstack, but still of the fpu stack in method " + currentMethod + " at address " + curAddress); } } }); // No item on the vstack may have been released (kind==0) vstack.visitItems(new ItemVisitor() { public void visit(Item item) { if (item.getKind() == 0) { throw new InternalError("Item " + item + " is kind 0 in method " + currentMethod + " at address " + curAddress); } if (item.isRegister()) { if (item instanceof WordItem) { if (pool.getOwner(((WordItem) item).getRegister()) != item) { throw new InternalError( "Item " + item + " uses a register which is not registered in the register ppol in method " + currentMethod + " at address " + curAddress); } } else { if (pool.getOwner(((DoubleWordItem) item) .getLsbRegister()) != item) { throw new InternalError( "Item " + item + " uses an LSB register which is not registered in the register ppol in method " + currentMethod + " at address " + curAddress); } if (pool.getOwner(((DoubleWordItem) item) .getMsbRegister()) != item) { throw new InternalError( "Item " + item + " uses an MSB register which is not registered in the register ppol in method " + currentMethod + " at address " + curAddress); } } } } }); } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/4c9e1b93fdcd3878abf615621ec6a36bf839ab10/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
679,
11983,
1435,
288,
202,
202,
759,
657,
1198,
1965,
16,
741,
279,
17417,
434,
1924,
6640,
202,
202,
430,
261,
1065,
31922,
1155,
13,
288,
1082,
202,
759,
8553,
326,
1744,
4084,
1082,
202,
759,
2631,
10285,
848,
506,
316,
999,
16,
3308,
2898,
854,
603,
326,
5024,
2110,
18,
1082,
202,
6385,
1139,
5292,
3996,
2864,
2845,
273,
425,
1042,
18,
588,
2864,
5621,
1082,
202,
6011,
18,
11658,
6668,
10277,
12,
2704,
5433,
7413,
1435,
288,
9506,
202,
482,
918,
3757,
12,
3996,
960,
13,
288,
6862,
202,
430,
16051,
90,
3772,
18,
6117,
12,
1574,
3719,
288,
25083,
202,
12849,
394,
3186,
668,
2932,
3996,
315,
397,
960,
6862,
9506,
202,
15,
315,
353,
316,
999,
596,
4256,
434,
326,
19510,
316,
707,
315,
6862,
9506,
202,
15,
783,
1305,
397,
315,
622,
22801,
1758,
315,
6862,
9506,
202,
15,
662,
1887,
1769,
6862,
202,
97,
9506,
202,
97,
1082,
202,
22938,
1082,
202,
759,
4826,
1516,
603,
326,
478,
18061,
2110,
1297,
2546,
506,
603,
326,
19510,
18,
1082,
202,
90,
3772,
18,
7944,
89,
2624,
18,
11658,
3126,
12,
2704,
4342,
7413,
1435,
288,
9506,
202,
482,
918,
3757,
12,
1180,
761,
13,
288,
6862,
202,
430,
16051,
90,
3772,
18,
12298,
12,
1726,
3719,
288,
25083,
202,
12849,
394,
3186,
668,
12,
6862,
9506,
202,
6,
1180,
315,
6862,
25083,
202,
15,
761,
6862,
25083,
202,
15,
315,
353,
486,
603,
326,
19510,
16,
1496,
4859,
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,
679,
11983,
1435,
288,
202,
202,
759,
657,
1198,
1965,
16,
741,
279,
17417,
434,
1924,
6640,
202,
202,
430,
261,
1065,
31922,
1155,
13,
288,
1082,
202,
759,
8553,
326,
1744,
4084,
1082,
202,
759,
2631,
10285,
848,
506,
316,
999,
16,
3308,
2898,
854,
603,
326,
5024,
2110,
18,
1082,
202,
6385,
1139,
5292,
3996,
2864,
2845,
273,
425,
1042,
18,
588,
2864,
5621,
1082,
202,
6011,
18,
11658,
6668,
10277,
12,
2704,
5433,
7413,
1435,
288,
9506,
202,
482,
918,
3757,
12,
3996,
960,
13,
288,
6862,
202,
430,
16051,
90,
3772,
18,
6117,
12,
1574,
3719,
288,
25083,
202,
12849,
394,
3186,
668,
2932,
3996,
315,
397,
960,
6862,
9506,
202,
2
] |
C_Term me = aType1.depClause().varWhoseTypeIsThis(); | C_Var me = aType1.depClause().varWhoseTypeIsThis(); | protected X10Field_c checkArrayFields(X10Field_c result) { X10Type aType = (X10Type) result.target.type(); X10TypeSystem xts = (X10TypeSystem) aType.typeSystem(); if (result.name.equals("distribution") && xts.isX10Array(aType)) { X10ParsedClassType aType1 = (X10ParsedClassType) aType; X10ParsedClassType type = ((X10ParsedClassType) result.type()).makeVariant(); //Report.report(1, "X10Field_c aType1=" + aType1 + " " + aType1.getClass()); type.setRank(aType1.rank()); if (aType1.isRect()) type.setRect(); if (aType1.isZeroBased()) type.setZeroBased(); type.setOnePlace(aType1.onePlace()); Constraint c = aType1.depClause(); if (c != null) { C_Term me = aType1.depClause().varWhoseTypeIsThis(); if (me !=null) { C_Field f = new C_Field_c(result.fieldInstance(), me); Constraint myC = type.depClause(); myC.setVarWhoseTypeThisIs(f); } } result = (X10Field_c) result.fieldInstance(result.fieldInstance().type(type)).type(type); return result; } if (name.equals("region") && (xts.isX10Array(aType) || xts.isDistribution(aType)) ) { X10ParsedClassType aType1 = (X10ParsedClassType) aType; X10ParsedClassType type = ((X10ParsedClassType) result.type()).makeVariant(); type.setRank(aType1.rank()); if (aType1.isRect()) type.setRect(); if (aType1.isZeroBased()) type.setZeroBased(); Constraint c = aType1.depClause(); if (c != null) { C_Term me = aType1.depClause().varWhoseTypeIsThis(); if (me !=null) { C_Field f = new C_Field_c(result.fieldInstance(), me); Constraint myC = type.depClause(); myC.setVarWhoseTypeThisIs(f); } } result = (X10Field_c) result.fieldInstance(result.fieldInstance().type(type)).type(type); return result; } return result; } | 1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/0bcfe1c7752a4b88a81bf24d1405ca6c98d711bb/X10Field_c.java/clean/x10.compiler/src/polyglot/ext/x10/ast/X10Field_c.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1139,
2163,
974,
67,
71,
866,
1076,
2314,
12,
60,
2163,
974,
67,
71,
563,
13,
288,
202,
202,
60,
2163,
559,
279,
559,
273,
261,
60,
2163,
559,
13,
563,
18,
3299,
18,
723,
5621,
202,
202,
60,
2163,
559,
3163,
619,
3428,
273,
261,
60,
2163,
559,
3163,
13,
279,
559,
18,
723,
3163,
5621,
202,
202,
430,
261,
2088,
18,
529,
18,
14963,
2932,
16279,
7923,
597,
619,
3428,
18,
291,
60,
2163,
1076,
12,
69,
559,
3719,
288,
1082,
202,
60,
2163,
11257,
18328,
279,
559,
21,
273,
261,
60,
2163,
11257,
18328,
13,
279,
559,
31,
1082,
202,
60,
2163,
11257,
18328,
618,
273,
14015,
60,
2163,
11257,
18328,
13,
563,
18,
723,
1435,
2934,
6540,
9356,
5621,
1082,
202,
759,
4820,
18,
6006,
12,
21,
16,
315,
60,
2163,
974,
67,
71,
279,
559,
21,
1546,
397,
279,
559,
21,
397,
315,
315,
397,
279,
559,
21,
18,
588,
797,
10663,
1082,
202,
723,
18,
542,
12925,
12,
69,
559,
21,
18,
11500,
10663,
1082,
202,
430,
261,
69,
559,
21,
18,
291,
6120,
10756,
618,
18,
542,
6120,
5621,
1082,
202,
430,
261,
69,
559,
21,
18,
291,
7170,
9802,
10756,
618,
18,
542,
7170,
9802,
5621,
1082,
202,
723,
18,
542,
3335,
6029,
12,
69,
559,
21,
18,
476,
6029,
10663,
1082,
202,
5806,
276,
273,
279,
559,
21,
18,
15037,
7044,
5621,
1875,
202,
430,
261,
71,
480,
446,
13,
288,
9506,
202,
39,
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,
225,
202,
1117,
1139,
2163,
974,
67,
71,
866,
1076,
2314,
12,
60,
2163,
974,
67,
71,
563,
13,
288,
202,
202,
60,
2163,
559,
279,
559,
273,
261,
60,
2163,
559,
13,
563,
18,
3299,
18,
723,
5621,
202,
202,
60,
2163,
559,
3163,
619,
3428,
273,
261,
60,
2163,
559,
3163,
13,
279,
559,
18,
723,
3163,
5621,
202,
202,
430,
261,
2088,
18,
529,
18,
14963,
2932,
16279,
7923,
597,
619,
3428,
18,
291,
60,
2163,
1076,
12,
69,
559,
3719,
288,
1082,
202,
60,
2163,
11257,
18328,
279,
559,
21,
273,
261,
60,
2163,
11257,
18328,
13,
279,
559,
31,
1082,
202,
60,
2163,
11257,
18328,
618,
273,
14015,
60,
2163,
11257,
18328,
13,
563,
2
] |
FileOutputStream out = new FileOutputStream( file ); byte[] buff = new byte[stream.available( )]; stream.read( buff ); out.write( buff ); out.close( ); stream.close( ); | private void doFinish( IPath locationPath, String fileName, InputStream stream, IProgressMonitor monitor ) { // create a sample file monitor.beginTask( CREATING + fileName, 2 ); final File file = new File( locationPath.toString( ), fileName ); try { File container = new File( locationPath.toString( ) ); if ( !container.exists( ) ) { container.mkdirs( ); } FileOutputStream out = new FileOutputStream( file ); byte[] buff = new byte[stream.available( )]; stream.read( buff ); out.write( buff ); out.close( ); stream.close( ); } catch ( Exception e ) { ExceptionHandler.handle( e ); } monitor.worked( 1 ); monitor.setTaskName( OPENING_FILE_FOR_EDITING ); getShell( ).getDisplay( ).asyncExec( new Runnable( ) { public void run( ) { IWorkbench workbench = PlatformUI.getWorkbench( ); IWorkbenchWindow window = workbench.getActiveWorkbenchWindow( ); IWorkbenchPage page = window.getActivePage( ); try { IEditorPart editorPart = page.openEditor( new ReportEditorInput( file ), IReportEditorContants.LIBRARY_EDITOR_ID, true ); ModuleHandle model = SessionHandleAdapter.getInstance( ).getReportDesignHandle( ); if(ReportPlugin.getDefault( ).getEnableCommentPreference( )){ model.setStringProperty( ModuleHandle.COMMENTS_PROP, ReportPlugin.getDefault( ).getCommentPreference( ) ); model.save( ); editorPart.doSave( null ); } } catch ( Exception e ) { ExceptionHandler.handle( e ); } } } ); monitor.worked( 1 ); fireLibraryChanged(fileName); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/76ebe408a984f02b49cbaf1597c0c7a0213901fe/WizardNewLibraryCreationPage.java/buggy/UI/org.eclipse.birt.report.designer.ui.rcp/src/org/eclipse/birt/report/designer/ui/internal/rcp/wizards/WizardNewLibraryCreationPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
11641,
12,
467,
743,
2117,
743,
16,
514,
3968,
16,
1082,
202,
4348,
1407,
16,
467,
5491,
7187,
6438,
262,
202,
95,
202,
202,
759,
752,
279,
3296,
585,
202,
202,
10259,
18,
10086,
2174,
12,
9666,
28054,
397,
3968,
16,
576,
11272,
202,
202,
6385,
1387,
585,
273,
394,
1387,
12,
2117,
743,
18,
10492,
12,
262,
16,
3968,
11272,
202,
202,
698,
202,
202,
95,
1082,
202,
812,
1478,
273,
394,
1387,
12,
2117,
743,
18,
10492,
12,
262,
11272,
1082,
202,
430,
261,
401,
3782,
18,
1808,
12,
262,
262,
1082,
202,
95,
9506,
202,
3782,
18,
24816,
8291,
12,
11272,
1082,
202,
97,
1082,
202,
812,
4632,
596,
273,
394,
12942,
12,
585,
11272,
1082,
202,
7229,
8526,
6139,
273,
394,
1160,
63,
3256,
18,
5699,
12,
262,
15533,
1082,
202,
3256,
18,
896,
12,
6139,
11272,
1082,
202,
659,
18,
2626,
12,
6139,
11272,
1082,
202,
659,
18,
4412,
12,
11272,
1082,
202,
3256,
18,
4412,
12,
11272,
1082,
202,
97,
202,
202,
14683,
261,
1185,
425,
262,
202,
202,
95,
1082,
202,
18894,
18,
4110,
12,
425,
11272,
202,
202,
97,
202,
202,
10259,
18,
1252,
329,
12,
404,
11272,
202,
202,
10259,
18,
542,
2174,
461,
12,
11919,
1360,
67,
3776,
67,
7473,
67,
10776,
1360,
11272,
202,
202,
588,
13220,
12,
262,
18,
588,
4236,
12,
262,
18,
3810,
1905,
12,
394,
10254,
12,
262,
288,
1082,
202,
482,
918,
1086,
12,
262,
1082,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
11641,
12,
467,
743,
2117,
743,
16,
514,
3968,
16,
1082,
202,
4348,
1407,
16,
467,
5491,
7187,
6438,
262,
202,
95,
202,
202,
759,
752,
279,
3296,
585,
202,
202,
10259,
18,
10086,
2174,
12,
9666,
28054,
397,
3968,
16,
576,
11272,
202,
202,
6385,
1387,
585,
273,
394,
1387,
12,
2117,
743,
18,
10492,
12,
262,
16,
3968,
11272,
202,
202,
698,
202,
202,
95,
1082,
202,
812,
1478,
273,
394,
1387,
12,
2117,
743,
18,
10492,
12,
262,
11272,
1082,
202,
430,
261,
401,
3782,
18,
1808,
12,
262,
262,
1082,
202,
95,
9506,
202,
3782,
18,
24816,
8291,
12,
11272,
1082,
202,
97,
1082,
202,
812,
4632,
596,
273,
394,
2
] |
|
private void astore(short local) { | private void astore(short local) { | private void astore(short local) { xop(ByteCode.ASTORE_0, ByteCode.ASTORE, local); } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/9d6bb8957ead2c95a3562b84a47b63afc8cfc761/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
279,
2233,
12,
6620,
1191,
13,
288,
3639,
619,
556,
12,
3216,
1085,
18,
9053,
8607,
67,
20,
16,
3506,
1085,
18,
9053,
8607,
16,
1191,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
279,
2233,
12,
6620,
1191,
13,
288,
3639,
619,
556,
12,
3216,
1085,
18,
9053,
8607,
67,
20,
16,
3506,
1085,
18,
9053,
8607,
16,
1191,
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
] |
genPubKeyFromSpec(rsa); | try { genPubKeyFromSpec(rsa); } catch (Exception ex) { if (Constants.debug_level > 3) System.out.println("Exception caught genPubKeyFromSpec(rsa): " + ex.getMessage()); exception = true; } | public void doTest() throws Throwable { RSATestValues rsa = new RSATestValues(); DSATestValues dsa = new DSATestValues(); // Generate RSA private key from spec genPrivKeyFromSpec(rsa); // Generate DSA private key from spec genPrivKeyFromSpec(dsa); // translate RSA key genPubKeyFromSpec(rsa); // translate key genPubKeyFromSpec(dsa); System.exit(0); } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/2c88207a24bea2d0af88356473969a2e94d3f349/KeyFactoryTest.java/buggy/security/jss/org/mozilla/jss/tests/KeyFactoryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
4709,
1435,
1216,
4206,
288,
3639,
14746,
789,
395,
1972,
14771,
273,
394,
14746,
789,
395,
1972,
5621,
3639,
8678,
789,
395,
1972,
3780,
69,
273,
394,
8678,
789,
395,
1972,
5621,
3639,
368,
6654,
13470,
3238,
498,
628,
857,
3639,
3157,
15475,
653,
1265,
1990,
12,
24654,
1769,
3639,
368,
6654,
463,
5233,
3238,
498,
628,
857,
3639,
3157,
15475,
653,
1265,
1990,
12,
19603,
1769,
3639,
368,
4204,
13470,
498,
3639,
775,
288,
3157,
17924,
1265,
1990,
12,
24654,
1769,
289,
1044,
261,
503,
431,
13,
288,
309,
261,
2918,
18,
4148,
67,
2815,
405,
890,
13,
2332,
18,
659,
18,
8222,
2932,
503,
13537,
3157,
17924,
1265,
1990,
12,
24654,
4672,
315,
397,
431,
18,
24906,
10663,
1520,
273,
638,
31,
289,
3639,
368,
4204,
498,
202,
4507,
17924,
1265,
1990,
12,
19603,
1769,
202,
3163,
18,
8593,
12,
20,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
741,
4709,
1435,
1216,
4206,
288,
3639,
14746,
789,
395,
1972,
14771,
273,
394,
14746,
789,
395,
1972,
5621,
3639,
8678,
789,
395,
1972,
3780,
69,
273,
394,
8678,
789,
395,
1972,
5621,
3639,
368,
6654,
13470,
3238,
498,
628,
857,
3639,
3157,
15475,
653,
1265,
1990,
12,
24654,
1769,
3639,
368,
6654,
463,
5233,
3238,
498,
628,
857,
3639,
3157,
15475,
653,
1265,
1990,
12,
19603,
1769,
3639,
368,
4204,
13470,
498,
3639,
775,
288,
3157,
17924,
1265,
1990,
12,
24654,
1769,
289,
1044,
261,
503,
431,
13,
288,
309,
261,
2918,
18,
4148,
67,
2815,
405,
890,
13,
2332,
18,
659,
18,
8222,
2932,
503,
13537,
3157,
17924,
1265,
1990,
12,
24654,
4672,
315,
2
] |
String internString = i18n.get(ProjectionLoader.class, PrettyNameProperty, I18n.TOOLTIP, "Presentable name for Projection"); | String internString = i18n.get(BasicProjectionLoader.class, PrettyNameProperty, "Projection Name"); | public Properties getPropertyInfo(Properties props) { props = super.getPropertyInfo(props); String internString = i18n.get(ProjectionLoader.class, PrettyNameProperty, I18n.TOOLTIP, "Presentable name for Projection"); props.put(PrettyNameProperty + LabelEditorProperty, internString); props.put(PrettyNameProperty, prettyName); internString = i18n.get(ProjectionLoader.class, DescriptionProperty, I18n.TOOLTIP, "Presentable description name for Projection"); props.put(DescriptionProperty + LabelEditorProperty, internString); props.put(DescriptionProperty, description); props.put(initPropertiesProperty, PrettyNameProperty + " " + DescriptionProperty); return props; } | 3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/96423e359dbf9d3897fd6d9d1f44b3546e24cef7/BasicProjectionLoader.java/buggy/src/openmap/com/bbn/openmap/proj/BasicProjectionLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6183,
3911,
966,
12,
2297,
3458,
13,
288,
3639,
3458,
273,
2240,
18,
588,
1396,
966,
12,
9693,
1769,
3639,
514,
8216,
780,
273,
277,
2643,
82,
18,
588,
12,
14789,
2886,
18,
1106,
16,
4766,
3639,
22328,
461,
1396,
16,
467,
2643,
82,
18,
26263,
56,
2579,
16,
4766,
4202,
315,
6351,
429,
508,
364,
21288,
8863,
3639,
3458,
18,
458,
12,
20491,
461,
1396,
397,
5287,
6946,
1396,
16,
8216,
780,
1769,
3639,
3458,
18,
458,
12,
20491,
461,
1396,
16,
7517,
461,
1769,
3639,
8216,
780,
273,
277,
2643,
82,
18,
588,
12,
14789,
2886,
18,
1106,
16,
4766,
6507,
1396,
16,
467,
2643,
82,
18,
26263,
56,
2579,
16,
27573,
315,
6351,
429,
2477,
508,
364,
21288,
8863,
3639,
3458,
18,
458,
12,
3291,
1396,
397,
5287,
6946,
1396,
16,
8216,
780,
1769,
3639,
3458,
18,
458,
12,
3291,
1396,
16,
2477,
1769,
3639,
3458,
18,
458,
12,
2738,
2297,
1396,
16,
22328,
461,
1396,
397,
315,
315,
397,
6507,
1396,
1769,
3639,
327,
3458,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6183,
3911,
966,
12,
2297,
3458,
13,
288,
3639,
3458,
273,
2240,
18,
588,
1396,
966,
12,
9693,
1769,
3639,
514,
8216,
780,
273,
277,
2643,
82,
18,
588,
12,
14789,
2886,
18,
1106,
16,
4766,
3639,
22328,
461,
1396,
16,
467,
2643,
82,
18,
26263,
56,
2579,
16,
4766,
4202,
315,
6351,
429,
508,
364,
21288,
8863,
3639,
3458,
18,
458,
12,
20491,
461,
1396,
397,
5287,
6946,
1396,
16,
8216,
780,
1769,
3639,
3458,
18,
458,
12,
20491,
461,
1396,
16,
7517,
461,
1769,
3639,
8216,
780,
273,
277,
2643,
82,
18,
588,
12,
14789,
2886,
18,
1106,
16,
4766,
6507,
1396,
16,
467,
2643,
82,
18,
26263,
56,
2579,
16,
27573,
315,
6351,
429,
2
] |
ContentUI content = (ContentUI) contentManager.getContent(component); | BackContentUI content = (BackContentUI) contentManager.getContent(component); | public void propertyChange(PropertyChangeEvent evt) { Content content = (Content) evt.getSource(); boolean oldValue = (Boolean) evt.getOldValue(); boolean newValue = (Boolean) evt.getNewValue(); if (!oldValue && newValue) { final JDialog dialog = new JDialog(parentFrame, false); dialog.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); Window parentWindow = SwingUtilities.windowForComponent(tabbedContentManager); Component component = content.getComponent(); int tabIndex = tabbedContentManager.indexOfComponent(component); if (tabIndex != -1) { tabbedContentManager.removeTabAt(tabIndex); } else { if (tabbedContentManager.getParent() == null) toolWindowManager.setMainContent(null); else throw new IllegalStateException("Invalid Content : " + content); } component.setPreferredSize(component.getSize()); dialog.setTitle(content.getTitle()); dialog.getContentPane().add(component); Point location = parentWindow.getLocation(); location.x += 5; location.y += 5; dialog.setLocation(location); dialog.pack(); if (TransparencyManager.getInstance().isServiceAvailable()) { WindowTransparencyListener windowTransparencyListener = new WindowTransparencyListener(dialog); dialog.addWindowListener(windowTransparencyListener); dialog.addWindowFocusListener(windowTransparencyListener); } dialog.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent event) { Component component = dialog.getContentPane().getComponent(0); ContentUI content = (ContentUI) contentManager.getContent(component); content.fireSelected(false); content.setDetached(false); } }); dialog.addWindowFocusListener(new WindowFocusListener() { public void windowGainedFocus(WindowEvent e) { if (!valueAdjusting && !contentValueAdjusting) { ContentUI newSelected = (ContentUI) contentManager.getContent( dialog.getContentPane().getComponent(0)); if (newSelected == lastSelected) return; if (lastSelected != null) { try { lastSelected.fireSelected(false); } catch (Exception ignoreIt) { } } lastSelected = newSelected; newSelected.fireSelected(true); } } public void windowLostFocus(WindowEvent e) { } }); if (parentFrame == null) dialog.addWindowFocusListener(new ToFrontWindowFocusListener(dialog)); dialog.toFront(); dialog.setVisible(true); SwingUtil.requestFocus(dialog); } else if (oldValue && !newValue) { Window window = SwingUtilities.windowForComponent(content.getComponent()); window.setVisible(false); window.dispose(); addUIForContent(content); tabbedContentManager.setSelectedIndex(tabbedContentManager.getTabCount() - 1); } } | 51282 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51282/e55a969e6bef2a08953e54dc8d2ca365ec1ce2e4/MyDoggyTabbedContentManagerUI.java/clean/mydoggy-plaf/src/main/java/org/noos/xing/mydoggy/plaf/ui/content/tabbed/MyDoggyTabbedContentManagerUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1272,
3043,
12,
1396,
20930,
6324,
13,
288,
5411,
3697,
913,
273,
261,
1350,
13,
6324,
18,
588,
1830,
5621,
5411,
1250,
11144,
273,
261,
5507,
13,
6324,
18,
588,
7617,
620,
5621,
5411,
1250,
6129,
273,
261,
5507,
13,
6324,
18,
588,
1908,
620,
5621,
5411,
309,
16051,
1673,
620,
597,
6129,
13,
288,
7734,
727,
804,
6353,
6176,
273,
394,
804,
6353,
12,
2938,
3219,
16,
629,
1769,
7734,
6176,
18,
542,
1868,
4605,
2988,
12,
3829,
2918,
18,
3191,
67,
4400,
44,
1360,
67,
673,
67,
13384,
1769,
7734,
6076,
982,
3829,
273,
26145,
11864,
18,
5668,
1290,
1841,
12,
7032,
2992,
1350,
1318,
1769,
7734,
5435,
1794,
273,
913,
18,
588,
1841,
5621,
7734,
509,
3246,
1016,
273,
3246,
2992,
1350,
1318,
18,
31806,
1841,
12,
4652,
1769,
7734,
309,
261,
7032,
1016,
480,
300,
21,
13,
288,
10792,
3246,
2992,
1350,
1318,
18,
4479,
5661,
861,
12,
7032,
1016,
1769,
7734,
289,
469,
288,
10792,
309,
261,
7032,
2992,
1350,
1318,
18,
588,
3054,
1435,
422,
446,
13,
13491,
5226,
3829,
1318,
18,
542,
6376,
1350,
12,
2011,
1769,
10792,
469,
13491,
604,
394,
5477,
2932,
1941,
3697,
294,
315,
397,
913,
1769,
7734,
289,
7734,
1794,
18,
542,
16028,
1225,
12,
4652,
18,
588,
1225,
10663,
7734,
6176,
18,
542,
4247,
12,
1745,
18,
588,
4247,
10663,
7734,
6176,
18,
588,
1350,
8485,
7675,
1289,
12,
4652,
1769,
7734,
4686,
2117,
273,
982,
3829,
18,
588,
2735,
5621,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1272,
3043,
12,
1396,
20930,
6324,
13,
288,
5411,
3697,
913,
273,
261,
1350,
13,
6324,
18,
588,
1830,
5621,
5411,
1250,
11144,
273,
261,
5507,
13,
6324,
18,
588,
7617,
620,
5621,
5411,
1250,
6129,
273,
261,
5507,
13,
6324,
18,
588,
1908,
620,
5621,
5411,
309,
16051,
1673,
620,
597,
6129,
13,
288,
7734,
727,
804,
6353,
6176,
273,
394,
804,
6353,
12,
2938,
3219,
16,
629,
1769,
7734,
6176,
18,
542,
1868,
4605,
2988,
12,
3829,
2918,
18,
3191,
67,
4400,
44,
1360,
67,
673,
67,
13384,
1769,
7734,
6076,
982,
3829,
273,
26145,
11864,
18,
5668,
1290,
1841,
12,
7032,
2992,
1350,
1318,
1769,
7734,
5435,
1794,
273,
913,
18,
588,
1841,
2
] |
if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); } | if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); } | public RubyObject m_private_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PRIVATE) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
312,
67,
1152,
67,
1336,
67,
5163,
12,
54,
10340,
921,
8526,
833,
13,
288,
202,
202,
6494,
2341,
8051,
273,
629,
31,
202,
202,
430,
261,
1968,
18,
2469,
405,
374,
13,
288,
1082,
202,
6702,
8051,
273,
833,
63,
20,
8009,
291,
5510,
5621,
202,
202,
97,
202,
202,
2463,
707,
682,
12,
6702,
8051,
16,
394,
19817,
863,
1305,
1435,
288,
1082,
202,
482,
509,
1836,
12,
921,
498,
16,
1033,
460,
16,
1033,
1501,
13,
288,
9506,
202,
759,
4812,
833,
9506,
202,
54,
10340,
548,
612,
273,
261,
54,
10340,
548,
13,
498,
31,
9506,
202,
1305,
907,
1417,
273,
261,
1305,
907,
13,
460,
31,
9506,
202,
54,
10340,
1076,
11841,
273,
261,
54,
10340,
1076,
13,
1501,
31,
9506,
202,
430,
261,
3432,
18,
588,
2250,
907,
1435,
422,
446,
13,
288,
6862,
202,
814,
18,
6206,
12,
588,
54,
10340,
7675,
588,
12616,
10663,
6862,
202,
814,
18,
6206,
12,
54,
10340,
780,
18,
81,
67,
2704,
780,
12,
588,
54,
10340,
9334,
612,
18,
869,
461,
1435,
10019,
9506,
202,
97,
469,
309,
14015,
3432,
18,
588,
2279,
338,
1435,
473,
5245,
18,
3417,
2294,
67,
20055,
13,
480,
374,
13,
288,
6862,
202,
54,
10340,
780,
508,
273,
19817,
780,
18,
81,
67,
2704,
780,
12,
588,
54,
10340,
9334,
612,
18,
869,
461,
10663,
6862,
202,
430,
261,
814,
18,
81,
67,
18499,
12,
529,
2934,
291,
8381,
10756,
288,
25083,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
312,
67,
1152,
67,
1336,
67,
5163,
12,
54,
10340,
921,
8526,
833,
13,
288,
202,
202,
6494,
2341,
8051,
273,
629,
31,
202,
202,
430,
261,
1968,
18,
2469,
405,
374,
13,
288,
1082,
202,
6702,
8051,
273,
833,
63,
20,
8009,
291,
5510,
5621,
202,
202,
97,
202,
202,
2463,
707,
682,
12,
6702,
8051,
16,
394,
19817,
863,
1305,
1435,
288,
1082,
202,
482,
509,
1836,
12,
921,
498,
16,
1033,
460,
16,
1033,
1501,
13,
288,
9506,
202,
759,
4812,
833,
9506,
202,
54,
10340,
548,
612,
273,
261,
54,
10340,
548,
13,
498,
31,
9506,
202,
1305,
907,
1417,
273,
261,
1305,
907,
13,
460,
31,
9506,
202,
54,
2
] |
jumpType = JUMP_NONE; | public int getJumpType() { if (jumpType == JUMP_UNKNOWN) { for (Object oMount : miscList) { Mounted m = (Mounted)oMount; if (m.getType().hasFlag(MiscType.F_JUMP_JET)) { if ((m.getType().getTechLevel() == TechConstants.T_IS_LEVEL_3) || (m.getType().getTechLevel() == TechConstants.T_CLAN_LEVEL_3)) { jumpType = JUMP_IMPROVED; } else { jumpType = JUMP_STANDARD; } break; } else if (m.getType().hasFlag(MiscType.F_JUMP_BOOSTER)) { jumpType = JUMP_BOOSTER; break; } } jumpType = JUMP_NONE; } return jumpType; } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/fd126aacd6d8213d3d0571d191483afe4b242ae6/Mech.java/clean/megamek/src/megamek/common/Mech.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
9285,
2801,
559,
1435,
288,
3639,
309,
261,
24574,
559,
422,
804,
23942,
67,
14737,
13,
288,
5411,
364,
261,
921,
320,
8725,
294,
20448,
682,
13,
288,
7734,
13076,
329,
312,
273,
261,
8725,
329,
13,
83,
8725,
31,
7734,
309,
261,
81,
18,
588,
559,
7675,
5332,
4678,
12,
11729,
71,
559,
18,
42,
67,
46,
23942,
67,
46,
1584,
3719,
288,
10792,
309,
14015,
81,
18,
588,
559,
7675,
588,
56,
8987,
2355,
1435,
422,
399,
8987,
2918,
18,
56,
67,
5127,
67,
10398,
67,
23,
13,
13491,
747,
261,
81,
18,
588,
559,
7675,
588,
56,
8987,
2355,
1435,
422,
399,
8987,
2918,
18,
56,
67,
5017,
1258,
67,
10398,
67,
23,
3719,
288,
13491,
11833,
559,
273,
804,
23942,
67,
3445,
3373,
12135,
31,
10792,
289,
469,
288,
13491,
11833,
559,
273,
804,
23942,
67,
882,
18264,
31,
10792,
289,
10792,
898,
31,
7734,
289,
469,
309,
261,
81,
18,
588,
559,
7675,
5332,
4678,
12,
11729,
71,
559,
18,
42,
67,
46,
23942,
67,
5315,
4005,
654,
3719,
288,
10792,
11833,
559,
273,
804,
23942,
67,
5315,
4005,
654,
31,
10792,
898,
31,
7734,
289,
5411,
289,
10402,
289,
3639,
327,
11833,
559,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
9285,
2801,
559,
1435,
288,
3639,
309,
261,
24574,
559,
422,
804,
23942,
67,
14737,
13,
288,
5411,
364,
261,
921,
320,
8725,
294,
20448,
682,
13,
288,
7734,
13076,
329,
312,
273,
261,
8725,
329,
13,
83,
8725,
31,
7734,
309,
261,
81,
18,
588,
559,
7675,
5332,
4678,
12,
11729,
71,
559,
18,
42,
67,
46,
23942,
67,
46,
1584,
3719,
288,
10792,
309,
14015,
81,
18,
588,
559,
7675,
588,
56,
8987,
2355,
1435,
422,
399,
8987,
2918,
18,
56,
67,
5127,
67,
10398,
67,
23,
13,
13491,
747,
261,
81,
18,
588,
559,
7675,
588,
56,
8987,
2355,
1435,
422,
399,
8987,
2918,
18,
56,
67,
5017,
1258,
67,
10398,
67,
23,
2
] |
|
_tier.deregisterData(getUID()); } | _tier.deregisterData(getUID()); } | doStop() { _log.info("stopping"); _tier.deregisterData(getUID()); // TODO - leave cluster } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/a2608ecf073f21457f97954cda18ce59a88fe2c6/HttpSessionManager.java/clean/modules/clustering/src/java/org/apache/geronimo/clustering/web/HttpSessionManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
741,
4947,
1435,
225,
288,
565,
389,
1330,
18,
1376,
2932,
5681,
1382,
8863,
565,
389,
88,
2453,
18,
765,
1332,
1249,
751,
12,
588,
3060,
10663,
565,
368,
2660,
300,
8851,
2855,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
741,
4947,
1435,
225,
288,
565,
389,
1330,
18,
1376,
2932,
5681,
1382,
8863,
565,
389,
88,
2453,
18,
765,
1332,
1249,
751,
12,
588,
3060,
10663,
565,
368,
2660,
300,
8851,
2855,
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
] |
} else if((s = desc.indexOf("conflicting types for `")) != -1) { int p = desc.indexOf("\'", s); if (p != -1) { varName = desc.substring(desc.indexOf("`") + 1, p); | } else if((s = desc.indexOf("conflicting types for `")) != -1) { int p = desc.indexOf("\'", s); if (p != -1) { varName = desc.substring(desc.indexOf("`") + 1, p); | public boolean processLine(String line, ErrorParserManager eoParser) { // Known patterns. // (a) // filename:lineno: description // // (b) // filename:lineno:column: description // // (b) // In file included from b.h:2, // from a.h:3, // from hello.c:3: // c.h:2:15: missing ')' in macro parameter list // // (c) // h.c: In function `main': // h.c:41: `foo' undeclared (first use in this function) // h.c:41: (Each undeclared identifier is reported only once // h.c:41: for each function it appears in.) // h.c:41: parse error before `char' // h.c:75: `p' undeclared (first use in this function) int firstColon = line.indexOf(':'); /* Guard against drive in Windows platform. */ if (firstColon == 1) { try { String os = System.getProperty("os.name"); if (os != null && os.startsWith("Win")) { try { if (Character.isLetter(line.charAt(0))) { firstColon = line.indexOf(':', 2); } } catch (StringIndexOutOfBoundsException e) { } } } catch (SecurityException e) { } } if (firstColon != -1) { try { int secondColon = -1; int num = -1; while ((secondColon = line.indexOf(':', firstColon + 1)) != -1) { String lineNumber = line.substring(firstColon + 1, secondColon); try { num = Integer.parseInt(lineNumber); } catch (NumberFormatException e) { // Failed. } if (num != -1) { break; // Find possible match. } firstColon = secondColon; } if (secondColon != -1) { int col = -1; String fileName = line.substring(0, firstColon); String varName = null; String desc = line.substring(secondColon + 1).trim(); int severity = IMarkerGenerator.SEVERITY_ERROR_RESOURCE; /* Then check for the column */ int thirdColon= line.indexOf(':', secondColon + 1); if (thirdColon != -1) { String columnNumber = line.substring(secondColon + 1, thirdColon); try { col = Integer.parseInt(columnNumber); } catch (NumberFormatException e) { } } if (col != -1) { desc = line.substring(thirdColon + 1).trim(); } // gnu c: filename:no: (Each undeclared identifier is reported // only once. filename:no: for each function it appears in.) if (desc.startsWith ("(Each undeclared")) { // Do nothing. return false; } else { String previous = eoParser.getPreviousLine(); if (desc.endsWith(")") && previous.indexOf("(Each undeclared") >= 0 ) { // Do nothing. return false; } } /* See if we can get a var name * Look for: * `foo' undeclared * `foo' defined but not used * conflicting types for `foo' * previous declaration of `foo' * parse error before `foo' * */ int s; if((s = desc.indexOf("\' undeclared")) != -1) { int p = desc.indexOf("`"); if (p != -1) { varName = desc.substring(p+1, s); //System.out.println("undex varName "+ varName); } } else if((s = desc.indexOf("\' defined but not used")) != -1) { int p = desc.indexOf("`"); if (p != -1) { varName = desc.substring(p+1, s); //System.out.println("unused varName "+ varName); } } else if((s = desc.indexOf("conflicting types for `")) != -1) { int p = desc.indexOf("\'", s); if (p != -1) { varName = desc.substring(desc.indexOf("`") + 1, p); //System.out.println("confl varName "+ varName); } } else if((s = desc.indexOf("previous declaration of `")) != -1) { int p = desc.indexOf("\'", s); if (p != -1) { varName = desc.substring(desc.indexOf("`") + 1, p); //System.out.println("prev varName "+ varName); } } else if ((s = desc.indexOf("parse error before ")) != -1) { int p = desc.indexOf("\'", s); if (p != -1) { varName = desc.substring(desc.indexOf("`") + 1, p); //System.out.println("prev varName "+ varName); } } /* * In file included from b.h:2, * from a.h:3, * from hello.c:3: * c.h:2:15: missing ')' in macro parameter list * * We reconstruct the multiline gcc errors to multiple errors: * c.h:3:15: missing ')' in macro parameter list * b.h:2: in inclusion c.h:3:15 * a.h:3: in inclusion b.h:2 * hello.c:3: in inclusion a.h:3 * */ if (eoParser.getScratchBuffer().startsWith("In file included from ")) { if (line.startsWith("from ")) { // We want the last error in the chain, so continue. eoParser.appendToScratchBuffer(line); return false; } String buffer = eoParser.getScratchBuffer(); eoParser.clearScratchBuffer(); int from = -1; String inclusionError = fileName + ":" + num; while ((from = buffer.indexOf("from ")) != -1) { int coma = buffer.indexOf(',', from); String buf; if (coma != -1) { buf = buffer.substring(from + 5, coma) + ':'; buffer = buffer.substring(coma); } else { buf = buffer.substring(from + 5); buffer = ""; } String t = buf; buf += " in inclusion " + inclusionError; inclusionError = t; // Call the parsing process again. processLine(buf, eoParser); } } IFile file = eoParser.findFilePath(fileName); if (file == null) { // Parse the entire project. file = eoParser.findFileName(fileName); if (file != null) { // If there is a conflict set the error on the project. if (eoParser.isConflictingName(fileName)) { desc = "*" + desc; file = null; } } } if (desc.startsWith("warning") || desc.startsWith("Warning")) { severity = IMarkerGenerator.SEVERITY_WARNING; // Remove the warning. String d = desc.substring("warning".length()).trim(); if (d.startsWith(":")) { d = d.substring(1).trim(); } if (d.length() != 0) { desc = d; } } // Display the fileName. if (file == null) { desc = desc +"[" + fileName + "]"; } eoParser.generateMarker(file, num, desc, severity, varName); } else { if (line.startsWith("In file included from ")) { eoParser.appendToScratchBuffer(line); } else if (line.startsWith("from ")) { eoParser.appendToScratchBuffer(line); } } } catch (StringIndexOutOfBoundsException e) { } catch (NumberFormatException e) { } } return false; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/74206bb9c0adfac164644b684d089bbdf8757013/GCCErrorParser.java/clean/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1207,
1670,
12,
780,
980,
16,
1068,
2678,
1318,
425,
83,
2678,
13,
288,
202,
202,
759,
30036,
6884,
18,
202,
202,
759,
261,
69,
13,
202,
202,
759,
1544,
30,
17782,
30,
2477,
202,
202,
759,
202,
202,
759,
261,
70,
13,
202,
202,
759,
1544,
30,
17782,
30,
2827,
30,
2477,
202,
202,
759,
202,
202,
759,
261,
70,
13,
202,
202,
759,
657,
585,
5849,
628,
324,
18,
76,
30,
22,
16,
202,
202,
759,
6862,
628,
279,
18,
76,
30,
23,
16,
202,
202,
759,
6862,
628,
19439,
18,
71,
30,
23,
30,
202,
202,
759,
276,
18,
76,
30,
22,
30,
3600,
30,
3315,
5777,
316,
11522,
1569,
666,
202,
202,
759,
202,
202,
759,
261,
71,
13,
202,
202,
759,
366,
18,
71,
30,
657,
445,
1375,
5254,
4278,
202,
202,
759,
366,
18,
71,
30,
9803,
30,
1375,
11351,
11,
640,
16571,
261,
3645,
999,
316,
333,
445,
13,
202,
202,
759,
366,
18,
71,
30,
9803,
30,
261,
3442,
640,
16571,
2756,
353,
14010,
1338,
3647,
202,
202,
759,
366,
18,
71,
30,
9803,
30,
364,
1517,
445,
518,
14606,
316,
12998,
202,
202,
759,
366,
18,
71,
30,
9803,
30,
1109,
555,
1865,
1375,
3001,
11,
202,
202,
759,
366,
18,
71,
30,
5877,
30,
1375,
84,
11,
640,
16571,
261,
3645,
999,
316,
333,
445,
13,
202,
202,
474,
1122,
19636,
273,
980,
18,
31806,
2668,
2497,
1769,
202,
202,
20308,
22809,
5314,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1207,
1670,
12,
780,
980,
16,
1068,
2678,
1318,
425,
83,
2678,
13,
288,
202,
202,
759,
30036,
6884,
18,
202,
202,
759,
261,
69,
13,
202,
202,
759,
1544,
30,
17782,
30,
2477,
202,
202,
759,
202,
202,
759,
261,
70,
13,
202,
202,
759,
1544,
30,
17782,
30,
2827,
30,
2477,
202,
202,
759,
202,
202,
759,
261,
70,
13,
202,
202,
759,
657,
585,
5849,
628,
324,
18,
76,
30,
22,
16,
202,
202,
759,
6862,
628,
279,
18,
76,
30,
23,
16,
202,
202,
759,
6862,
628,
19439,
18,
71,
30,
23,
30,
202,
202,
759,
276,
18,
76,
30,
22,
30,
3600,
30,
3315,
5777,
316,
11522,
1569,
666,
202,
2
] |
addMenuItem(menu, m_itemShowInfoPanel, KeyEvent.VK_I, "show-info-panel"); | menu.addItem(m_itemShowInfoPanel, KeyEvent.VK_I, "show-info-panel"); | private JMenu createMenuSettings() { JMenu menu = createMenu("Settings", KeyEvent.VK_S); m_itemShowToolbar = new JCheckBoxMenuItem("Show Toolbar"); addMenuItem(menu, m_itemShowToolbar, KeyEvent.VK_T, "show-toolbar"); m_itemShowInfoPanel = new JCheckBoxMenuItem("Show Info Panel"); addMenuItem(menu, m_itemShowInfoPanel, KeyEvent.VK_I, "show-info-panel"); menu.addSeparator(); m_itemShowTree = new JCheckBoxMenuItem("Show Tree"); addMenuItem(menu, m_itemShowTree, KeyEvent.VK_S, KeyEvent.VK_F7, getFunctionKeyShortcut(), "show-tree"); m_itemShowShell = new JCheckBoxMenuItem("Show Shell"); addMenuItem(menu, m_itemShowShell, KeyEvent.VK_S, KeyEvent.VK_F8, getFunctionKeyShortcut(), "show-shell"); m_itemShowAnalyze = new JCheckBoxMenuItem("Show Analyze"); addMenuItem(menu, m_itemShowAnalyze, KeyEvent.VK_S, KeyEvent.VK_F9, getFunctionKeyShortcut(), "analyze"); menu.addSeparator(); menu.add(createMenuConfigureBoard()); menu.add(createMenuConfigureTree()); m_menuConfigureShell = createMenuConfigureShell(); menu.add(m_menuConfigureShell); m_menuConfigureAnalyze = createMenuConfigureAnalyze(); menu.add(m_menuConfigureAnalyze); return menu; } | 2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/d10ef3afb87b5fa533364efda721c197866c21a6/GoGuiMenuBar.java/buggy/src/net/sf/gogui/gogui/GoGuiMenuBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
804,
4599,
752,
4599,
2628,
1435,
565,
288,
3639,
804,
4599,
3824,
273,
752,
4599,
2932,
2628,
3113,
23737,
18,
58,
47,
67,
55,
1769,
3639,
312,
67,
1726,
5706,
17907,
273,
394,
804,
19174,
12958,
2932,
5706,
13288,
3215,
8863,
3639,
527,
12958,
12,
5414,
16,
312,
67,
1726,
5706,
17907,
16,
23737,
18,
58,
47,
67,
56,
16,
10792,
315,
4500,
17,
18849,
8863,
3639,
312,
67,
1726,
5706,
966,
5537,
273,
394,
804,
19174,
12958,
2932,
5706,
3807,
23641,
8863,
3639,
527,
12958,
12,
5414,
16,
312,
67,
1726,
5706,
966,
5537,
16,
23737,
18,
58,
47,
67,
45,
16,
10792,
315,
4500,
17,
1376,
17,
13916,
8863,
3639,
3824,
18,
1289,
6581,
5621,
3639,
312,
67,
1726,
5706,
2471,
273,
394,
804,
19174,
12958,
2932,
5706,
4902,
8863,
3639,
527,
12958,
12,
5414,
16,
312,
67,
1726,
5706,
2471,
16,
23737,
18,
58,
47,
67,
55,
16,
23737,
18,
58,
47,
67,
42,
27,
16,
10792,
18697,
653,
15576,
9334,
315,
4500,
17,
3413,
8863,
3639,
312,
67,
1726,
5706,
13220,
273,
394,
804,
19174,
12958,
2932,
5706,
19433,
8863,
3639,
527,
12958,
12,
5414,
16,
312,
67,
1726,
5706,
13220,
16,
23737,
18,
58,
47,
67,
55,
16,
23737,
18,
58,
47,
67,
42,
28,
16,
10792,
18697,
653,
15576,
9334,
315,
4500,
17,
10304,
8863,
3639,
312,
67,
1726,
5706,
31984,
273,
394,
804,
19174,
12958,
2932,
5706,
1922,
9508,
8863,
3639,
527,
12958,
12,
5414,
16,
312,
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,
3238,
804,
4599,
752,
4599,
2628,
1435,
565,
288,
3639,
804,
4599,
3824,
273,
752,
4599,
2932,
2628,
3113,
23737,
18,
58,
47,
67,
55,
1769,
3639,
312,
67,
1726,
5706,
17907,
273,
394,
804,
19174,
12958,
2932,
5706,
13288,
3215,
8863,
3639,
527,
12958,
12,
5414,
16,
312,
67,
1726,
5706,
17907,
16,
23737,
18,
58,
47,
67,
56,
16,
10792,
315,
4500,
17,
18849,
8863,
3639,
312,
67,
1726,
5706,
966,
5537,
273,
394,
804,
19174,
12958,
2932,
5706,
3807,
23641,
8863,
3639,
527,
12958,
12,
5414,
16,
312,
67,
1726,
5706,
966,
5537,
16,
23737,
18,
58,
47,
67,
45,
16,
10792,
315,
4500,
17,
1376,
17,
13916,
8863,
3639,
3824,
18,
1289,
6581,
5621,
2
] |
while ( keys.hasNext() ) { AttributeTypeAndValue current = ( AttributeTypeAndValue ) keys.next(); String type = current.getType(); | while ( keys.hasNext() ) { AttributeTypeAndValue current = ( AttributeTypeAndValue ) keys.next(); String type = current.getType(); | public int compareTo( Object object ) { if ( object instanceof Rdn ) { Rdn rdn = ( Rdn ) object; if ( rdn == null ) { return SUPERIOR; } if ( rdn.nbAtavs != nbAtavs ) { // We don't have the same number of ATAVs. The Rdn which // has the higher number of Atav is the one which is // superior return nbAtavs - rdn.nbAtavs; } switch ( nbAtavs ) { case 0: return EQUALS; case 1: return atav.compareTo( rdn.atav ); default: // We have more than one value. We will // go through all of them. Iterator keys = atavs.iterator(); while ( keys.hasNext() ) { AttributeTypeAndValue current = ( AttributeTypeAndValue ) keys.next(); String type = current.getType(); if ( rdn.atavTypes.containsKey( type ) ) { List atavLocalList = ( List ) atavTypes.get( type ); List atavParamList = ( List ) rdn.atavTypes.get( type ); if ( atavLocalList.size() == 1 ) { // We have only one ATAV AttributeTypeAndValue atavLocal = ( AttributeTypeAndValue ) atavLocalList.get( 0 ); AttributeTypeAndValue atavParam = ( AttributeTypeAndValue ) atavParamList.get( 0 ); return atavLocal.compareTo( atavParam ); } else { // We have to verify that each value of the // first list are present in // the second list Iterator atavLocals = atavLocalList.iterator(); while ( atavLocals.hasNext() ) { AttributeTypeAndValue atavLocal = ( AttributeTypeAndValue ) atavLocals.next(); Iterator atavParams = atavParamList.iterator(); boolean found = false; while ( atavParams.hasNext() ) { AttributeTypeAndValue atavParam = ( AttributeTypeAndValue ) atavParams.next(); if ( atavLocal.compareTo( atavParam ) == EQUALS ) { found = true; break; } } if ( !found ) { // The ATAV does not exist in the second // RDN return SUPERIOR; } } } return EQUALS; } else { // We can't find an atav in the rdn : the current // one is superior return SUPERIOR; } } return EQUALS; } } else { return object != null ? UNDEFINED : SUPERIOR; } } | 54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/46cb53a5c275e1621f93eedcb952b2ad923f49bd/Rdn.java/buggy/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
9292,
12,
1033,
733,
262,
565,
288,
3639,
309,
261,
733,
1276,
534,
5176,
262,
3639,
288,
5411,
534,
5176,
436,
5176,
273,
261,
534,
5176,
262,
733,
31,
5411,
309,
261,
436,
5176,
422,
446,
262,
5411,
288,
7734,
327,
16459,
654,
45,
916,
31,
5411,
289,
5411,
309,
261,
436,
5176,
18,
6423,
861,
842,
87,
480,
4264,
861,
842,
87,
262,
5411,
288,
7734,
368,
1660,
2727,
1404,
1240,
326,
1967,
1300,
434,
14464,
5856,
87,
18,
1021,
534,
5176,
1492,
7734,
368,
711,
326,
10478,
1300,
434,
2380,
842,
353,
326,
1245,
1492,
353,
7734,
368,
2240,
9659,
7734,
327,
4264,
861,
842,
87,
300,
436,
5176,
18,
6423,
861,
842,
87,
31,
5411,
289,
5411,
1620,
261,
4264,
861,
842,
87,
262,
5411,
288,
7734,
648,
374,
30,
10792,
327,
27557,
31,
7734,
648,
404,
30,
10792,
327,
225,
396,
90,
18,
9877,
774,
12,
436,
5176,
18,
396,
90,
11272,
7734,
805,
30,
10792,
368,
1660,
1240,
1898,
2353,
1245,
460,
18,
1660,
903,
10792,
368,
1960,
3059,
777,
434,
2182,
18,
10792,
4498,
1311,
273,
225,
396,
6904,
18,
9838,
5621,
10792,
1323,
261,
1311,
18,
5332,
2134,
1435,
262,
10792,
288,
13491,
26414,
30154,
783,
273,
261,
26414,
30154,
262,
1311,
18,
4285,
5621,
13491,
514,
618,
273,
783,
18,
588,
559,
5621,
13491,
309,
261,
436,
5176,
18,
396,
90,
2016,
18,
12298,
653,
12,
618,
262,
262,
13491,
288,
18701,
987,
225,
396,
90,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
9292,
12,
1033,
733,
262,
565,
288,
3639,
309,
261,
733,
1276,
534,
5176,
262,
3639,
288,
5411,
534,
5176,
436,
5176,
273,
261,
534,
5176,
262,
733,
31,
5411,
309,
261,
436,
5176,
422,
446,
262,
5411,
288,
7734,
327,
16459,
654,
45,
916,
31,
5411,
289,
5411,
309,
261,
436,
5176,
18,
6423,
861,
842,
87,
480,
4264,
861,
842,
87,
262,
5411,
288,
7734,
368,
1660,
2727,
1404,
1240,
326,
1967,
1300,
434,
14464,
5856,
87,
18,
1021,
534,
5176,
1492,
7734,
368,
711,
326,
10478,
1300,
434,
2380,
842,
353,
326,
1245,
1492,
353,
7734,
368,
2240,
9659,
7734,
327,
4264,
861,
842,
87,
300,
436,
5176,
18,
6423,
861,
842,
87,
2
] |
} | } else if (mType.hasSubType(MiscType.S_WRECKING_BALL)) { nDamage = 8; } | public static int getDamageFor(Entity entity, Mounted club) { MiscType mType = (MiscType)(club.getType()); int nDamage = (int)Math.floor(entity.getWeight() / 5.0); if (mType.hasSubType(MiscType.S_SWORD)) { nDamage = (int)(Math.ceil(entity.getWeight() / 10.0) + 1.0); } else if (mType.hasSubType(MiscType.S_MACE_THB)) { nDamage *= 2; } else if (mType.hasSubType(MiscType.S_MACE)) { nDamage = (int)Math.floor(entity.getWeight() / 4.0); } else if (mType.hasSubType(MiscType.S_PILE_DRIVER)) { // Pile Drivers have constant damage, not variable like most. nDamage = 9; } else if (mType.hasSubType(MiscType.S_DUAL_SAW)) { // Saws have constant damage, not variable like most. nDamage = 7; } else if (mType.hasSubType(MiscType.S_CHAINSAW)) { // Saws have constant damage, not variable like most. nDamage = 5; } else if (mType.hasSubType(MiscType.S_BACKHOE)) { // Backhoes have constant damage, not variable like most. nDamage = 6; } else if (mType.isShield()) { nDamage = mType.getDamageAbsorption(entity,club.getLocation()); } // TSM doesn't apply to some weapons, including Saws. if (entity.heat >= 9 && !(mType.hasSubType(MiscType.S_DUAL_SAW) || mType.hasSubType(MiscType.S_CHAINSAW) || mType.hasSubType(MiscType.S_PILE_DRIVER) || mType.isShield()) && ((Mech)entity).hasTSM()) { nDamage *= 2; } int clubLocation = club.getLocation(); // tree clubs don't have a location--use right arm (is this okay?) if (clubLocation == Entity.LOC_NONE) { clubLocation = Mech.LOC_RARM; } if (entity.getLocationStatus(clubLocation) == ILocationExposureStatus.WET) { nDamage /= 2.0f; } return nDamage + entity.getCrew().modifyPhysicalDamagaForMeleeSpecialist(); } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/9e5c8530da3d1aaa4a48b9b7c6c56bf003fe518b/ClubAttackAction.java/buggy/megamek/src/megamek/common/actions/ClubAttackAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
2343,
301,
410,
1290,
12,
1943,
1522,
16,
13076,
329,
927,
373,
13,
288,
3639,
16584,
71,
559,
312,
559,
273,
261,
11729,
71,
559,
21433,
830,
373,
18,
588,
559,
10663,
3639,
509,
290,
40,
301,
410,
273,
261,
474,
13,
10477,
18,
74,
5807,
12,
1096,
18,
588,
6544,
1435,
342,
1381,
18,
20,
1769,
3639,
309,
261,
81,
559,
18,
5332,
30511,
12,
11729,
71,
559,
18,
55,
67,
55,
7952,
3719,
288,
5411,
290,
40,
301,
410,
273,
261,
474,
21433,
10477,
18,
311,
330,
12,
1096,
18,
588,
6544,
1435,
342,
1728,
18,
20,
13,
397,
404,
18,
20,
1769,
3639,
289,
469,
309,
261,
81,
559,
18,
5332,
30511,
12,
11729,
71,
559,
18,
55,
67,
59,
862,
3507,
1360,
67,
38,
4685,
3719,
288,
225,
290,
40,
301,
410,
273,
1725,
31,
289,
469,
309,
261,
81,
559,
18,
5332,
30511,
12,
11729,
71,
559,
18,
55,
67,
5535,
1441,
67,
2455,
38,
3719,
288,
5411,
290,
40,
301,
410,
6413,
576,
31,
3639,
289,
469,
309,
261,
81,
559,
18,
5332,
30511,
12,
11729,
71,
559,
18,
55,
67,
59,
862,
3507,
1360,
67,
38,
4685,
3719,
288,
225,
290,
40,
301,
410,
273,
1725,
31,
289,
469,
309,
261,
81,
559,
18,
5332,
30511,
12,
11729,
71,
559,
18,
55,
67,
5535,
1441,
3719,
288,
5411,
290,
40,
301,
410,
273,
261,
474,
13,
10477,
18,
74,
5807,
12,
1096,
18,
588,
6544,
1435,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
2343,
301,
410,
1290,
12,
1943,
1522,
16,
13076,
329,
927,
373,
13,
288,
3639,
16584,
71,
559,
312,
559,
273,
261,
11729,
71,
559,
21433,
830,
373,
18,
588,
559,
10663,
3639,
509,
290,
40,
301,
410,
273,
261,
474,
13,
10477,
18,
74,
5807,
12,
1096,
18,
588,
6544,
1435,
342,
1381,
18,
20,
1769,
3639,
309,
261,
81,
559,
18,
5332,
30511,
12,
11729,
71,
559,
18,
55,
67,
55,
7952,
3719,
288,
5411,
290,
40,
301,
410,
273,
261,
474,
21433,
10477,
18,
311,
330,
12,
1096,
18,
588,
6544,
1435,
342,
1728,
18,
20,
13,
397,
404,
18,
20,
1769,
3639,
289,
469,
309,
261,
81,
559,
18,
5332,
30511,
2
] |
public ClassCastException(String s) | public ClassCastException() | public ClassCastException(String s) { super(s); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/ClassCastException.java/buggy/core/src/classpath/java/java/lang/ClassCastException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
24034,
1435,
225,
288,
565,
2240,
12,
87,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
24034,
1435,
225,
288,
565,
2240,
12,
87,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public CDebugTarget( ILaunch launch, | public CDebugTarget( ILaunch launch, int targetType, | public CDebugTarget( ILaunch launch, ICDITarget cdiTarget, String name, IProcess process, IProject project, boolean allowsTerminate, boolean allowsDisconnect ) { super( null ); setLaunch( launch ); setDebugTarget( this ); setName( name ); setProcess( process ); setCDITarget( cdiTarget ); setBreakpoints( new HashMap( 5 ) ); setTemporaryBreakpoints( new ArrayList() ); if ( getLaunch().getSourceLocator() == null ) getLaunch().setSourceLocator( createSourceLocator( project ) ); setConfiguration( cdiTarget.getSession().getConfiguration() ); fSupportsTerminate = allowsTerminate & getConfiguration().supportsTerminate(); fSupportsDisconnect = allowsDisconnect & getConfiguration().supportsDisconnect(); setThreadList( new ArrayList( 5 ) ); initialize(); DebugPlugin.getDefault().getLaunchManager().addLaunchListener( this ); DebugPlugin.getDefault().getExpressionManager().addExpressionListener( this ); getCDISession().getEventManager().addEventListener( this ); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/4054c82f50a7dcf2907ff5bb94dc106943302f43/CDebugTarget.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
385,
2829,
2326,
12,
467,
9569,
8037,
16,
509,
16065,
16,
15106,
467,
10160,
1285,
826,
276,
3211,
2326,
16,
15106,
514,
508,
16,
6862,
1082,
467,
2227,
1207,
16,
6862,
1082,
467,
4109,
1984,
16,
6862,
1082,
1250,
5360,
26106,
16,
6862,
1082,
1250,
5360,
18895,
262,
202,
95,
202,
202,
9565,
12,
446,
11272,
202,
202,
542,
9569,
12,
8037,
11272,
202,
202,
542,
2829,
2326,
12,
333,
11272,
202,
202,
542,
461,
12,
508,
11272,
202,
202,
542,
2227,
12,
1207,
11272,
202,
202,
542,
10160,
1285,
826,
12,
276,
3211,
2326,
11272,
202,
202,
542,
7634,
4139,
12,
394,
4317,
12,
1381,
262,
11272,
202,
202,
542,
11685,
7634,
4139,
12,
394,
2407,
1435,
11272,
202,
202,
430,
261,
9014,
4760,
7675,
588,
1830,
5786,
1435,
422,
446,
262,
1082,
202,
588,
9569,
7675,
542,
1830,
5786,
12,
752,
1830,
5786,
12,
1984,
262,
11272,
202,
202,
542,
1750,
12,
276,
3211,
2326,
18,
588,
2157,
7675,
588,
1750,
1435,
11272,
202,
202,
74,
27878,
26106,
273,
5360,
26106,
473,
10316,
7675,
28064,
26106,
5621,
202,
202,
74,
27878,
18895,
273,
5360,
18895,
473,
10316,
7675,
28064,
18895,
5621,
202,
202,
542,
3830,
682,
12,
394,
2407,
12,
1381,
262,
11272,
202,
202,
11160,
5621,
202,
202,
2829,
3773,
18,
588,
1868,
7675,
588,
9569,
1318,
7675,
1289,
9569,
2223,
12,
333,
11272,
202,
202,
2829,
3773,
18,
588,
1868,
7675,
588,
2300,
1318,
7675,
1289,
2300,
2223,
12,
333,
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,
385,
2829,
2326,
12,
467,
9569,
8037,
16,
509,
16065,
16,
15106,
467,
10160,
1285,
826,
276,
3211,
2326,
16,
15106,
514,
508,
16,
6862,
1082,
467,
2227,
1207,
16,
6862,
1082,
467,
4109,
1984,
16,
6862,
1082,
1250,
5360,
26106,
16,
6862,
1082,
1250,
5360,
18895,
262,
202,
95,
202,
202,
9565,
12,
446,
11272,
202,
202,
542,
9569,
12,
8037,
11272,
202,
202,
542,
2829,
2326,
12,
333,
11272,
202,
202,
542,
461,
12,
508,
11272,
202,
202,
542,
2227,
12,
1207,
11272,
202,
202,
542,
10160,
1285,
826,
12,
276,
3211,
2326,
11272,
202,
202,
542,
7634,
4139,
12,
394,
4317,
12,
1381,
262,
11272,
202,
202,
542,
11685,
7634,
4139,
12,
394,
2
] |
public void setUp() throws Exception { | public void setUp() throws Exception { | public void setUp() throws Exception { connect(); } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/d48066e24a9a4b4edf35b9545de98ba05acafd4d/TestBase.java/clean/src/test/net/sourceforge/jtds/test/TestBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24292,
1435,
2398,
1216,
1185,
565,
288,
3639,
3077,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
918,
24292,
1435,
2398,
1216,
1185,
565,
288,
3639,
3077,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT)); | n.putIntProp(Node.ISNUMBER_PROP, Node.RIGHT); | int rewriteForNumberVariables(Node n) { switch (n.getType()) { case TokenStream.POP : { Node child = n.getFirstChild(); int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NoType; } case TokenStream.NUMBER : n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; case TokenStream.GETVAR : { OptLocalVariable theVar = (OptLocalVariable)(n.getProp(Node.VARIABLE_PROP)); if (theVar != null) { if (inDirectCallFunction && theVar.isParameter()) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } else if (theVar.isNumber()) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } } return TypeEvent.NoType; } case TokenStream.INC : case TokenStream.DEC : { Node child = n.getFirstChild(); // will be a GETVAR or GETPROP if (child.getType() == TokenStream.GETVAR) { OptLocalVariable theVar = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); if ((theVar != null) && theVar.isNumber()) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); markDCPNumberContext(child); return TypeEvent.NumberType; } else return TypeEvent.NoType; } else return TypeEvent.NoType; } case TokenStream.SETVAR : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int rType = rewriteForNumberVariables(rChild); OptLocalVariable theVar = (OptLocalVariable)(n.getProp(Node.VARIABLE_PROP)); if (inDirectCallFunction && theVar.isParameter()) { if (rType == TypeEvent.NumberType) { if (!convertParameter(rChild)) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } markDCPNumberContext(rChild); return TypeEvent.NoType; } else return rType; } else { if ((theVar != null) && theVar.isNumber()) { if (rType != TypeEvent.NumberType) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToBack(newRChild); } n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); markDCPNumberContext(rChild); return TypeEvent.NumberType; } else { if (rType == TypeEvent.NumberType) { if (!convertParameter(rChild)) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToBack(newRChild); } } return TypeEvent.NoType; } } } case TokenStream.RELOP : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int lType = rewriteForNumberVariables(lChild); int rType = rewriteForNumberVariables(rChild); markDCPNumberContext(lChild); markDCPNumberContext(rChild); if ((n.getInt() == TokenStream.INSTANCEOF) || (n.getInt() == TokenStream.IN)) { if (lType == TypeEvent.NumberType) { if (!convertParameter(lChild)) { n.removeChild(lChild); Node nuChild = new Node(TokenStream.CONVERT, lChild); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToFront(nuChild); } } if (rType == TypeEvent.NumberType) { if (!convertParameter(rChild)) { n.removeChild(rChild); Node nuChild = new Node(TokenStream.CONVERT, rChild); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToBack(nuChild); } } } else { if (convertParameter(lChild)) { if (convertParameter(rChild)) { return TypeEvent.NoType; } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT)); } } } else { if (convertParameter(rChild)) { if (lType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.LEFT)); } } else { if (lType == TypeEvent.NumberType) { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); } else { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.LEFT)); } } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT)); } } } } } // we actually build a boolean value return TypeEvent.NoType; } case TokenStream.ADD : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int lType = rewriteForNumberVariables(lChild); int rType = rewriteForNumberVariables(rChild); if (convertParameter(lChild)) { if (convertParameter(rChild)) { return TypeEvent.NoType; } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.RIGHT)); } } } else { if (convertParameter(rChild)) { if (lType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.LEFT)); } } else { if (lType == TypeEvent.NumberType) { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.BOTH)); return TypeEvent.NumberType; } else { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.LEFT)); } } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.RIGHT)); } } } } return TypeEvent.NoType; } case TokenStream.BITXOR : case TokenStream.BITOR : case TokenStream.BITAND : case TokenStream.RSH : case TokenStream.LSH : case TokenStream.SUB : case TokenStream.MUL : case TokenStream.DIV : case TokenStream.MOD : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int lType = rewriteForNumberVariables(lChild); int rType = rewriteForNumberVariables(rChild); markDCPNumberContext(lChild); markDCPNumberContext(rChild); if (lType == TypeEvent.NumberType) { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } else { if (!convertParameter(rChild)) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToBack(newRChild); n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); } return TypeEvent.NumberType; } } else { if (rType == TypeEvent.NumberType) { if (!convertParameter(lChild)) { n.removeChild(lChild); Node newLChild = new Node(TokenStream.CONVERT, lChild); newLChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToFront(newLChild); n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); } return TypeEvent.NumberType; } else { if (!convertParameter(lChild)) { n.removeChild(lChild); Node newLChild = new Node(TokenStream.CONVERT, lChild); newLChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToFront(newLChild); } if (!convertParameter(rChild)) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToBack(newRChild); } n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } } } case TokenStream.SETELEM : { Node arrayBase = n.getFirstChild(); Node arrayIndex = arrayBase.getNextSibling(); Node rValue = arrayIndex.getNextSibling(); int baseType = rewriteForNumberVariables(arrayBase); if (baseType == TypeEvent.NumberType) {// can never happen ??? if (!convertParameter(arrayBase)) { n.removeChild(arrayBase); Node nuChild = new Node(TokenStream.CONVERT, arrayBase); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToFront(nuChild); } } int indexType = rewriteForNumberVariables(arrayIndex); if (indexType == TypeEvent.NumberType) { // setting the ISNUMBER_PROP signals the codegen // to use the scriptRuntime.setElem that takes // a double index n.putProp(Node.ISNUMBER_PROP, new Integer(Node.LEFT)); markDCPNumberContext(arrayIndex); } int rValueType = rewriteForNumberVariables(rValue); if (rValueType == TypeEvent.NumberType) { if (!convertParameter(rValue)) { n.removeChild(rValue); Node nuChild = new Node(TokenStream.CONVERT, rValue); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToBack(nuChild); } } return TypeEvent.NoType; } case TokenStream.GETELEM : { Node arrayBase = n.getFirstChild(); Node arrayIndex = arrayBase.getNextSibling(); int baseType = rewriteForNumberVariables(arrayBase); if (baseType == TypeEvent.NumberType) {// can never happen ??? if (!convertParameter(arrayBase)) { n.removeChild(arrayBase); Node nuChild = new Node(TokenStream.CONVERT, arrayBase); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToFront(nuChild); } } int indexType = rewriteForNumberVariables(arrayIndex); if (indexType == TypeEvent.NumberType) { // setting the ISNUMBER_PROP signals the codegen // to use the scriptRuntime.getElem that takes // a double index n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT)); markDCPNumberContext(arrayIndex); } return TypeEvent.NoType; } case TokenStream.CALL : { FunctionNode target = (FunctionNode)n.getProp(Node.DIRECTCALL_PROP); if (target != null) {/* we leave each child as a Number if it can be. The codegen will handle moving the pairs of parameters.*/ Node child = n.getFirstChild(); // the function rewriteForNumberVariables(child); child = child.getNextSibling(); // the 'this' object rewriteForNumberVariables(child); child = child.getNextSibling(); // the first arg while (child != null) { int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) { markDCPNumberContext(child); } child = child.getNextSibling(); } return TypeEvent.NoType; } // else fall thru... } default : { Node child = n.getFirstChild(); while (child != null) { Node nextChild = child.getNextSibling(); int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) { if (!convertParameter(child)) { n.removeChild(child); Node nuChild = new Node(TokenStream.CONVERT, child); nuChild.putProp(Node.TYPE_PROP, Object.class); if (nextChild == null) n.addChildToBack(nuChild); else n.addChildBefore(nuChild, nextChild); } } child = nextChild; } return TypeEvent.NoType; } } } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/f6c346cc7699c007b0b9b27d9c3cdb5446052c64/Optimizer.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Optimizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
10738,
1290,
1854,
6158,
12,
907,
290,
13,
565,
288,
3639,
1620,
261,
82,
18,
588,
559,
10756,
288,
5411,
648,
3155,
1228,
18,
30374,
294,
288,
10792,
2029,
1151,
273,
290,
18,
588,
3759,
1763,
5621,
10792,
509,
618,
273,
10738,
1290,
1854,
6158,
12,
3624,
1769,
10792,
309,
261,
723,
422,
1412,
1133,
18,
1854,
559,
13,
13491,
290,
18,
458,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
394,
2144,
12,
907,
18,
38,
18307,
10019,
5397,
327,
1412,
1133,
18,
2279,
559,
31,
7734,
289,
5411,
648,
3155,
1228,
18,
9931,
294,
7734,
290,
18,
458,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
394,
2144,
12,
907,
18,
38,
18307,
10019,
7734,
327,
1412,
1133,
18,
1854,
559,
31,
5411,
648,
3155,
1228,
18,
3264,
7716,
294,
288,
10792,
12056,
2042,
3092,
326,
1537,
7682,
273,
261,
6179,
2042,
3092,
21433,
82,
18,
588,
4658,
12,
907,
18,
16444,
67,
15811,
10019,
10792,
309,
261,
5787,
1537,
480,
446,
13,
288,
13491,
309,
261,
267,
5368,
1477,
2083,
597,
326,
1537,
18,
291,
1662,
10756,
288,
18701,
290,
18,
458,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
394,
2144,
12,
907,
18,
38,
18307,
10019,
18701,
327,
1412,
1133,
18,
1854,
559,
31,
13491,
289,
13491,
469,
18701,
309,
261,
5787,
1537,
18,
291,
1854,
10756,
288,
27573,
290,
18,
458,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
394,
2144,
12,
907,
18,
38,
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,
509,
10738,
1290,
1854,
6158,
12,
907,
290,
13,
565,
288,
3639,
1620,
261,
82,
18,
588,
559,
10756,
288,
5411,
648,
3155,
1228,
18,
30374,
294,
288,
10792,
2029,
1151,
273,
290,
18,
588,
3759,
1763,
5621,
10792,
509,
618,
273,
10738,
1290,
1854,
6158,
12,
3624,
1769,
10792,
309,
261,
723,
422,
1412,
1133,
18,
1854,
559,
13,
13491,
290,
18,
458,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
394,
2144,
12,
907,
18,
38,
18307,
10019,
5397,
327,
1412,
1133,
18,
2279,
559,
31,
7734,
289,
5411,
648,
3155,
1228,
18,
9931,
294,
7734,
290,
18,
458,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
394,
2144,
12,
907,
18,
38,
18307,
2
] |
final HashSet cachableAttributes = authzManager.getCachableAttributes(); | public static Map attemptLogin(final String loginTicketId, final String ssoTicketId, final String userId, final String password) throws UnknownTicketException, InoperableStateException, IllegalInputException, AuthenticationException, DirectoryUnavailableException { // Sanity checks. if (!ready) throw new InoperableStateException(NOT_READY); if (loginTicketId == null || loginTicketId.equals("")) throw new IllegalInputException("Login ticket ID must be a non-empty string"); if (userId == null || userId.equals("")) throw new IllegalInputException("User ID must be a non-empty string"); if (password == null || password.equals("")) throw new IllegalInputException("Password must be a non-empty string"); // Look up authentication attempt from the store. final MoriaAuthnAttempt authnAttempt; try { authnAttempt = store.getAuthnAttempt(loginTicketId, true, null); } catch (NonExistentTicketException e) { accessLogger.logUser(AccessStatusType.NONEXISTENT_LOGIN_TICKET, null, userId, loginTicketId, null); messageLogger.logDebug(CAUGHT_NONEXISTENT_TICKET, loginTicketId, e); throw new UnknownTicketException(NONEXISTENT_TICKET); } catch (InvalidTicketException e) { accessLogger.logUser(AccessStatusType.INVALID_LOGIN_TICKET, null, userId, loginTicketId, null); messageLogger.logWarn(CAUGHT_INVALID_TICKET, loginTicketId, e); throw new UnknownTicketException(NONEXISTENT_TICKET); } catch (MoriaStoreException e) { messageLogger.logCritical(CAUGHT_STORE, loginTicketId, e); throw new InoperableStateException(STORE_DOWN); } // TODO: Must be done for directNonInteractiveAuthentication. Should be // extracted to a method. // Parse requested attributes and extract special attributes. final String[] requestedAttributes = authnAttempt.getRequestedAttributes(); final HashSet parsedRequestAttributes = new HashSet(); boolean appendTGT = false; for (int i = 0; i < requestedAttributes.length; i++) { if (requestedAttributes[i].equals(TGT_IDENTIFIER)) { appendTGT = true; } else { parsedRequestAttributes.add(requestedAttributes[i]); } } // Resolve list of cached and requested attributes. final HashSet cachableAttributes = authzManager.getCachableAttributes(); final HashSet retrieveAttributes = new HashSet(cachableAttributes); retrieveAttributes.addAll(parsedRequestAttributes); // Authentication. final HashMap fetchedAttributes; try { fetchedAttributes = directoryManager.authenticate(new Credentials(userId, password), (String[]) retrieveAttributes.toArray(new String[retrieveAttributes.size()])); } catch (AuthenticationFailedException e) { accessLogger.logUser(AccessStatusType.BAD_USER_CREDENTIALS, null, userId, loginTicketId, null); messageLogger.logDebug("AuthenticationFailedException caught", loginTicketId, e); throw new AuthenticationException(); } catch (BackendException e) { messageLogger.logWarn("BackendException caught", loginTicketId, e); throw new DirectoryUnavailableException(); } // Remove any existing SSO ticket. if (ssoTicketId != null && !ssoTicketId.equals("")) { try { store.removeSSOTicket(ssoTicketId); } catch (NonExistentTicketException e) { // The ticket has probably already timed out. messageLogger.logDebug("SSO ticket does not exist - may have timed out", ssoTicketId, e); } catch (InvalidTicketException e) { // Using a non-SSO ticket for SSO. messageLogger.logWarn("Using a non-SSO ticket for SSO", ssoTicketId, e); } catch (MoriaStoreException e) { // Unable to access the store. messageLogger.logCritical(CAUGHT_STORE, ssoTicketId, e); throw new InoperableStateException(STORE_DOWN); } } // Cache attributes and get tickets. final String serviceTicketId; final String newSSOTicketId; final HashMap cacheAttributes = new HashMap(); final HashMap authnAttemptAttrs = new HashMap(); final Iterator it = cachableAttributes.iterator(); while (it.hasNext()) { final String attrName = (String) it.next(); cacheAttributes.put(attrName, fetchedAttributes.get(attrName)); } for (int i = 0; i < requestedAttributes.length; i++) { authnAttemptAttrs.put(requestedAttributes[i], fetchedAttributes.get(requestedAttributes[i])); } try { newSSOTicketId = store.cacheUserData(cacheAttributes); if (appendTGT) { authnAttemptAttrs.put(TGT_IDENTIFIER, store.createTicketGrantingTicket(newSSOTicketId, authnAttempt.getServicePrincipal())); } store.setTransientAttributes(loginTicketId, authnAttemptAttrs); serviceTicketId = store.createServiceTicket(loginTicketId); } catch (NonExistentTicketException e) { /* Should not happen due to previous validation in this method */ messageLogger.logWarn(CAUGHT_NONEXISTENT_TICKET + ", should not happen (already validated)", loginTicketId, e); throw new UnknownTicketException(NONEXISTENT_TICKET); } catch (InvalidTicketException e) { messageLogger.logWarn(CAUGHT_INVALID_TICKET + ", should not happen (already validated)", loginTicketId, e); throw new UnknownTicketException(NONEXISTENT_TICKET); } catch (MoriaStoreException e) { messageLogger.logCritical(CAUGHT_STORE, ssoTicketId, e); throw new InoperableStateException(STORE_DOWN); } /* Return tickets */ final HashMap tickets = new HashMap(); tickets.put(SERVICE_TICKET, serviceTicketId); tickets.put(SSO_TICKET, newSSOTicketId); accessLogger.logUser(AccessStatusType.SUCCESSFUL_INTERACTIVE_AUTHENTICATION, authnAttempt.getServicePrincipal(), userId, loginTicketId, "Service: " + serviceTicketId + " SSO: " + ssoTicketId); return tickets; } | 1637 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1637/ff5ccbaf1f80725c21585af04028c69f3e0d60cb/MoriaController.java/clean/moria2/modules/moria-ctrl/src/java/no/feide/moria/controller/MoriaController.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
727,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
727,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
727,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
727,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
1071,
6385,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
760,
6385,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
1635,
6385,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
4395,
5358,
12,
6385,
6385,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
514,
6385,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
3925,
13614,
548,
16,
6385,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
727,
6385,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
514,
6385,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
27250,
13614,
548,
16,
6385,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
727,
6385,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
514,
6385,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
6249,
16,
6385,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
727,
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,
727,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
727,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
727,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
727,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
1071,
6385,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
760,
6385,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
1635,
6385,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
4395,
5358,
12,
6385,
6385,
6847,
7122,
429,
2498,
273,
18686,
1318,
18,
588,
11309,
429,
2498,
5621,
2
] |
|
getParent() { return(parent); } | public MenuContainer getParent() { return parent; } | getParent(){ return(parent);} | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/buggy/core/src/classpath/java/java/awt/MenuComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5089,
1435,
95,
225,
327,
12,
2938,
1769,
97,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5089,
1435,
95,
225,
327,
12,
2938,
1769,
97,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ComponentData societyComponentData = experiment.getSocietyComponentData(); if (societyComponentData == null) { if(log.isWarnEnabled()) { log.warn("ConsoleInternalFrame: Need to save experiment"); } | ArrayList entries = console.getAgentComponentDescriptions(nodeName, agentName); if (entries == null) | private void displayPlugins(String agentName) { ComponentData societyComponentData = experiment.getSocietyComponentData(); if (societyComponentData == null) { if(log.isWarnEnabled()) { log.warn("ConsoleInternalFrame: Need to save experiment"); } return; } ComponentData[] children = societyComponentData.getChildren(); ComponentData nodeComponentData = null; for (int i = 0; i < children.length; i++) { if (children[i].getType().equals(ComponentData.HOST)) { ComponentData[] nodes = children[i].getChildren(); for (int j = 0; j < nodes.length; j++) { if (nodes[j].getName().equals(node.getShortName())) { nodeComponentData = nodes[j]; break; } } } } // If couldn't find the node in the ComponentData, give up if (nodeComponentData == null) return; ComponentData agentComponentData = null; // The "agent" might be a NodeAgent, in which case this is the right spot. if (agentName.equals(nodeComponentData.getName())) { agentComponentData = nodeComponentData; } else { // OK. Find the sub-Agent with the right name ComponentData[] agents = nodeComponentData.getChildren(); for (int i = 0; i < agents.length; i++) { if (agents[i] instanceof AgentComponentData && agents[i].getName().equals(agentName)) { agentComponentData = agents[i]; break; } } } // If couldn't find the Agent in the ComponentData for the node, give up if (agentComponentData == null) return; // Loop through the children ComponentData[] agentChildren = agentComponentData.getChildren(); ArrayList entries = new ArrayList(agentChildren.length); for (int i = 0; i < agentChildren.length; i++) { // If this Agent is a NodeAgent, ignore its Agent children. if (agentChildren[i].getType().equals(ComponentData.AGENT)) continue; // FIXME: This should use same code as ExperimentINIWriter if possible StringBuffer sb = new StringBuffer(); if (agentChildren[i].getType().equals(ComponentData.AGENTBINDER)) { sb.append("Node.AgentManager.Agent.PluginManager.Binder"); } else if (agentChildren[i].getType().equals(ComponentData.NODEBINDER)) { sb.append("Node.AgentManager.Binder"); } else { sb.append(agentChildren[i].getType()); } if(ComponentDescription.parsePriority(agentChildren[i].getPriority()) != ComponentDescription.PRIORITY_COMPONENT) { sb.append("(" + agentChildren[i].getPriority() + ")"); } sb.append(" = "); sb.append(agentChildren[i].getClassName()); if (agentChildren[i].parameterCount() != 0) { sb.append("("); Object[] params = agentChildren[i].getParameters(); sb.append(params[0].toString()); for (int j = 1; j < agentChildren[i].parameterCount(); j++) { sb.append(","); sb.append(params[j].toString()); } sb.append(")"); } entries.add(sb.toString()); } JList plugInsList = new JList(entries.toArray()); JScrollPane jsp = new JScrollPane(plugInsList, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); jsp.setPreferredSize(new Dimension(400, 100)); JPanel agentInfoPanel = new JPanel(); agentInfoPanel.setLayout(new GridBagLayout()); plugInsList.setBackground(agentInfoPanel.getBackground()); int x = 0; int y = 0; agentInfoPanel.add(new JLabel("SubComponents:"), new GridBagConstraints(x++, y, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(10, 0, 5, 5), 0, 0)); agentInfoPanel.add(jsp, new GridBagConstraints(x, y++, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 0), 0, 0)); JOptionPane.showMessageDialog(this, agentInfoPanel, "Information: " + agentName, JOptionPane.PLAIN_MESSAGE); } | 9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/11903fbfe9ced7218d9a28db3cd6327518b244a9/ConsoleInternalFrame.java/clean/csmart/src/org/cougaar/tools/csmart/ui/console/ConsoleInternalFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2562,
9461,
12,
780,
4040,
461,
13,
288,
565,
5435,
751,
272,
1882,
14369,
1841,
751,
273,
8724,
18,
588,
55,
1882,
14369,
1841,
751,
5621,
565,
309,
261,
87,
1882,
14369,
1841,
751,
422,
446,
13,
288,
1377,
309,
12,
1330,
18,
291,
3160,
1526,
10756,
288,
3639,
613,
18,
8935,
2932,
10215,
3061,
3219,
30,
12324,
358,
1923,
8724,
8863,
1377,
289,
1377,
327,
31,
565,
289,
565,
5435,
751,
8526,
2325,
273,
272,
1882,
14369,
1841,
751,
18,
588,
4212,
5621,
565,
5435,
751,
756,
1841,
751,
273,
446,
31,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2325,
18,
2469,
31,
277,
27245,
288,
1377,
309,
261,
5906,
63,
77,
8009,
588,
559,
7675,
14963,
12,
1841,
751,
18,
8908,
3719,
288,
3639,
5435,
751,
8526,
2199,
273,
2325,
63,
77,
8009,
588,
4212,
5621,
3639,
364,
261,
474,
525,
273,
374,
31,
525,
411,
2199,
18,
2469,
31,
525,
27245,
288,
1850,
309,
261,
4690,
63,
78,
8009,
17994,
7675,
14963,
12,
2159,
18,
588,
29983,
1435,
3719,
288,
5411,
756,
1841,
751,
273,
2199,
63,
78,
15533,
5411,
898,
31,
1850,
289,
3639,
289,
1377,
289,
565,
289,
565,
368,
225,
971,
17991,
1404,
1104,
326,
756,
316,
326,
5435,
751,
16,
8492,
731,
565,
309,
261,
2159,
1841,
751,
422,
446,
13,
1377,
327,
31,
565,
5435,
751,
4040,
1841,
751,
273,
446,
31,
565,
368,
1021,
315,
5629,
6,
4825,
506,
279,
2029,
3630,
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,
2562,
9461,
12,
780,
4040,
461,
13,
288,
565,
5435,
751,
272,
1882,
14369,
1841,
751,
273,
8724,
18,
588,
55,
1882,
14369,
1841,
751,
5621,
565,
309,
261,
87,
1882,
14369,
1841,
751,
422,
446,
13,
288,
1377,
309,
12,
1330,
18,
291,
3160,
1526,
10756,
288,
3639,
613,
18,
8935,
2932,
10215,
3061,
3219,
30,
12324,
358,
1923,
8724,
8863,
1377,
289,
1377,
327,
31,
565,
289,
565,
5435,
751,
8526,
2325,
273,
272,
1882,
14369,
1841,
751,
18,
588,
4212,
5621,
565,
5435,
751,
756,
1841,
751,
273,
446,
31,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2325,
18,
2469,
31,
277,
27245,
288,
1377,
309,
261,
5906,
63,
77,
2
] |
Logger.normal(this, "FNP port is on "+bindto+":"+portNumber); System.out.println("FNP port is on "+bindto+":"+portNumber); | Logger.normal(this, "FNP port is on "+bindto+ ':' +portNumber); System.out.println("FNP port is on "+bindto+ ':' +portNumber); | void start(boolean noSwaps) throws NodeInitException { if(!noSwaps) lm.startSender(this, this.swapInterval); nodePinger.start(); dnsr.start(); ps.start(); usm.start(); myMemoryChecker.start(); peers.start(); if(isUsingWrapper()) { Logger.normal(this, "Using wrapper correctly: "+nodeStarter); System.out.println("Using wrapper correctly: "+nodeStarter); } else { Logger.error(this, "NOT using wrapper (at least not correctly). Your freenet-ext.jar <http://downloads.freenetproject.org/alpha/freenet-ext.jar> and/or wrapper.conf <https://emu.freenetproject.org/svn/trunk/apps/installer/installclasspath/config/wrapper.conf> need to be updated."); System.out.println("NOT using wrapper (at least not correctly). Your freenet-ext.jar <http://downloads.freenetproject.org/alpha/freenet-ext.jar> and/or wrapper.conf <https://emu.freenetproject.org/svn/trunk/apps/installer/installclasspath/config/wrapper.conf> need to be updated."); } Logger.normal(this, "Freenet 0.7 Build #"+Version.buildNumber()+" r"+Version.cvsRevision); System.out.println("Freenet 0.7 Build #"+Version.buildNumber()+" r"+Version.cvsRevision); Logger.normal(this, "FNP port is on "+bindto+":"+portNumber); System.out.println("FNP port is on "+bindto+":"+portNumber); // Start services // SubConfig pluginManagerConfig = new SubConfig("pluginmanager3", config);// pluginManager3 = new freenet.plugin_new.PluginManager(pluginManagerConfig); ipDetector.start(); // Node Updater try{ nodeUpdater = NodeUpdater.maybeCreate(this, config); Logger.normal(this, "Starting the node updater"); }catch (Exception e) { e.printStackTrace(); throw new NodeInitException(EXIT_COULD_NOT_START_UPDATER, "Could not start Updater: "+e); } /* SimpleToadletServer server = new SimpleToadletServer(port+2000); FProxyToadlet fproxy = new FProxyToadlet(n.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS)); PProxyToadlet pproxy = new PProxyToadlet(n.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS), n.pluginManager); server.register(fproxy, "/", false); server.register(pproxy, "/plugins/", true); * */ // Start testnet handler if(testnetHandler != null) testnetHandler.start(); checkForEvilJVMBug(); // TODO: implement a "required" version if needed if(NodeStarter.RECOMMENDED_EXT_BUILD_NUMBER > NodeStarter.extBuildNumber) clientCore.alerts.register(new ExtOldAgeUserAlert()); else if(NodeStarter.extBuildNumber == -1) clientCore.alerts.register(new ExtOldAgeUserAlert()); this.clientCore.start(config); // After everything has been created, write the config file back to disk. config.finishedInit(this.ps); config.setHasNodeStarted(); config.store(); // Process any data in the extra peer data directory peers.readExtraPeerData(); Thread t = new Thread(throttlePersister, "Throttle data persister thread"); t.setDaemon(true); t.start(); hasStarted = true; } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/62fd59041864b4ed1f43adc676de6bfb5ea977f3/Node.java/clean/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
787,
12,
6494,
1158,
6050,
6679,
13,
1216,
2029,
2570,
503,
288,
9506,
202,
430,
12,
5,
2135,
6050,
6679,
13,
1082,
202,
25972,
18,
1937,
12021,
12,
2211,
16,
333,
18,
22270,
4006,
1769,
202,
202,
2159,
52,
6658,
18,
1937,
5621,
202,
202,
14926,
86,
18,
1937,
5621,
202,
202,
1121,
18,
1937,
5621,
202,
202,
407,
81,
18,
1937,
5621,
202,
202,
4811,
6031,
8847,
18,
1937,
5621,
202,
202,
30502,
18,
1937,
5621,
9506,
202,
430,
12,
291,
7736,
3611,
10756,
288,
1082,
202,
3328,
18,
6130,
12,
2211,
16,
315,
7736,
4053,
8783,
30,
13773,
2159,
510,
14153,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
7736,
4053,
8783,
30,
13773,
2159,
510,
14153,
1769,
202,
202,
97,
469,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
4400,
1450,
4053,
261,
270,
4520,
486,
8783,
2934,
225,
20471,
284,
2842,
278,
17,
408,
18,
11930,
411,
2505,
2207,
7813,
87,
18,
74,
2842,
278,
4406,
18,
3341,
19,
5429,
19,
74,
2842,
278,
17,
408,
18,
11930,
34,
471,
19,
280,
4053,
18,
3923,
411,
4528,
2207,
24995,
18,
74,
2842,
278,
4406,
18,
3341,
19,
31505,
19,
26133,
19,
11411,
19,
20163,
19,
5425,
26302,
19,
1425,
19,
8376,
18,
3923,
34,
1608,
358,
506,
3526,
1199,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
4400,
1450,
4053,
261,
270,
4520,
486,
8783,
2934,
225,
20471,
284,
2842,
278,
17,
408,
18,
11930,
411,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
787,
12,
6494,
1158,
6050,
6679,
13,
1216,
2029,
2570,
503,
288,
9506,
202,
430,
12,
5,
2135,
6050,
6679,
13,
1082,
202,
25972,
18,
1937,
12021,
12,
2211,
16,
333,
18,
22270,
4006,
1769,
202,
202,
2159,
52,
6658,
18,
1937,
5621,
202,
202,
14926,
86,
18,
1937,
5621,
202,
202,
1121,
18,
1937,
5621,
202,
202,
407,
81,
18,
1937,
5621,
202,
202,
4811,
6031,
8847,
18,
1937,
5621,
202,
202,
30502,
18,
1937,
5621,
9506,
202,
430,
12,
291,
7736,
3611,
10756,
288,
1082,
202,
3328,
18,
6130,
12,
2211,
16,
315,
7736,
4053,
8783,
30,
13773,
2159,
510,
14153,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
7736,
4053,
8783,
30,
2
] |
AST tmp219_AST = null; tmp219_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp219_AST); | AST tmp222_AST = null; tmp222_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp222_AST); | public final void rangeExpr() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST rangeExpr_AST = null; additiveExpr(); astFactory.addASTChild(currentAST, returnAST); { switch ( LA(1)) { case LITERAL_to: { AST tmp219_AST = null; tmp219_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp219_AST); match(LITERAL_to); additiveExpr(); astFactory.addASTChild(currentAST, returnAST); break; } case EOF: case RPAREN: case EQ: case RCURLY: case COMMA: case LITERAL_empty: case LITERAL_for: case LITERAL_let: case LITERAL_where: case LITERAL_return: case LITERAL_order: case LITERAL_ascending: case LITERAL_descending: case LITERAL_satisfies: case LITERAL_else: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case RPPAREN: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } rangeExpr_AST = (AST)currentAST.root; returnAST = rangeExpr_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/d31ac0d651739cc32d55579c14a0786f6bfb4200/XPathParser2.java/clean/src/org/exist/parser/XPathParser2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1048,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
1048,
4742,
67,
9053,
273,
446,
31,
9506,
202,
1289,
3720,
4742,
5621,
202,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
202,
202,
95,
202,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
511,
18454,
67,
869,
30,
202,
202,
95,
1082,
202,
9053,
1853,
22,
3657,
67,
9053,
273,
446,
31,
1082,
202,
5645,
22,
3657,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
1082,
202,
689,
1733,
18,
6540,
9053,
2375,
12,
2972,
9053,
16,
1853,
22,
3657,
67,
9053,
1769,
1082,
202,
1916,
12,
23225,
67,
869,
1769,
1082,
202,
1289,
3720,
4742,
5621,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
6431,
30,
202,
202,
3593,
534,
15111,
30,
202,
202,
3593,
22426,
30,
202,
202,
3593,
534,
26314,
30,
202,
202,
3593,
17373,
30,
202,
202,
3593,
511,
18454,
67,
5531,
30,
202,
202,
3593,
511,
18454,
67,
1884,
30,
202,
202,
3593,
511,
18454,
67,
1810,
30,
202,
202,
3593,
511,
18454,
67,
6051,
30,
202,
202,
3593,
511,
18454,
67,
2463,
30,
202,
202,
3593,
511,
18454,
67,
1019,
30,
202,
202,
3593,
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,
1048,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
1048,
4742,
67,
9053,
273,
446,
31,
9506,
202,
1289,
3720,
4742,
5621,
202,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
202,
202,
95,
202,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
511,
18454,
67,
869,
30,
202,
202,
95,
1082,
202,
9053,
1853,
22,
3657,
67,
9053,
273,
446,
31,
1082,
202,
5645,
22,
3657,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
1082,
202,
689,
1733,
2
] |
suite.addTest(IPBondDescriptorTest.suite()); | public static Test suite() { TestSuite suite = new TestSuite("All QSAR Tests"); // Individual Tests - Please add correlatively suite.addTest(DescriptorEngineTest.suite()); // from cdk.test.qsar.atomic suite.addTest(AtomDegreeDescriptorTest.suite()); suite.addTest(AtomHybridizationDescriptorTest.suite()); suite.addTest(AtomHybridizationVSEPRDescriptorTest.suite()); suite.addTest(AtomValenceDescriptorTest.suite()); suite.addTest(BondsToAtomDescriptorTest.suite()); suite.addTest(CovalentRadiusDescriptorTest.suite()); suite.addTest(DistanceToAtomDescriptorTest.suite()); suite.addTest(EffectiveAtomPolarizabilityDescriptorTest.suite()); suite.addTest(InductiveAtomicHardnessDescriptorTest.suite()); suite.addTest(InductiveAtomicSoftnessDescriptorTest.suite()); suite.addTest(IPAtomicDescriptorTest.suite()); suite.addTest(IsProtonInAromaticSystemDescriptorTest.suite()); suite.addTest(IsProtonInConjugatedPiSystemDescriptorTest.suite()); suite.addTest(PartialPiChargeDescriptorTest.suite()); suite.addTest(PartialSigmaChargeDescriptorTest.suite()); suite.addTest(PartialTChargeMMFF94DescriptorTest.suite()); suite.addTest(PartialTChargePEOEDescriptorTest.suite()); suite.addTest(PeriodicTablePositionDescriptorTest.suite()); suite.addTest(PiElectronegativityDescriptorTest.suite()); suite.addTest(ProtonTotalPartialChargeDescriptorTest.suite()); suite.addTest(RDFProtonDescriptorTest.suite()); suite.addTest(SigmaElectronegativityDescriptorTest.suite()); suite.addTest(VdWRadiusDescriptorTest.suite()); // from cdk.test.qsar.bond suite.addTest(BondPartialPiChargeDescriptorTest.suite()); suite.addTest(BondPartialSigmaChargeDescriptorTest.suite()); suite.addTest(BondPartialTChargeDescriptorTest.suite()); suite.addTest(BondSigmaElectronegativityDescriptorTest.suite()); suite.addTest(IPBondDescriptorTest.suite()); suite.addTest(ResonancePositiveChargeDescriptorTest.suite()); // from cdk.test.qsar.molecular suite.addTest(AminoAcidCountDescriptorTest.suite()); suite.addTest(APolDescriptorTest.suite()); suite.addTest(AromaticAtomsCountDescriptorTest.suite()); suite.addTest(AromaticBondsCountDescriptorTest.suite()); suite.addTest(AtomCountDescriptorTest.suite()); suite.addTest(BCUTDescriptorTest.suite()); suite.addTest(BondCountDescriptorTest.suite()); suite.addTest(BPolDescriptorTest.suite()); suite.addTest(CarbonConnectivityOrderZeroDescriptorTest.suite()); suite.addTest(CarbonConnectivityOrderOneDescriptorTest.suite()); suite.addTest(ConnectivityOrderZeroDescriptorTest.suite()); suite.addTest(ConnectivityOrderOneDescriptorTest.suite()); suite.addTest(CPSADescriptorTest.suite()); suite.addTest(EccentricConnectivityIndexDescriptorTest.suite()); suite.addTest(GravitationalIndexDescriptorTest.suite()); suite.addTest(HBondAcceptorCountDescriptorTest.suite()); suite.addTest(HBondDonorCountDescriptorTest.suite()); suite.addTest(IPMolecularDescriptorTest.suite()); suite.addTest(KappaShapeIndicesDescriptorTest.suite()); suite.addTest(LargestChainDescriptorTest.suite()); suite.addTest(LargestPiSystemDescriptorTest.suite()); suite.addTest(LengthOverBreadthDescriptorTest.suite()); suite.addTest(LongestAliphaticChainDescriptorTest.suite()); suite.addTest(MDEDescriptorTest.suite()); suite.addTest(MomentOfInertiaDescriptorTest.suite()); suite.addTest(PetitjeanNumberDescriptorTest.suite()); suite.addTest(PetitjeanShapeIndexDescriptorTest.suite()); suite.addTest(RotatableBondsCountDescriptorTest.suite()); suite.addTest(RuleOfFiveDescriptorTest.suite()); suite.addTest(TaeAminoAcidDescriptorTest.suite()); suite.addTest(TPSADescriptorTest.suite()); suite.addTest(ValenceCarbonConnectivityOrderZeroDescriptorTest.suite()); suite.addTest(ValenceCarbonConnectivityOrderOneDescriptorTest.suite()); suite.addTest(ValenceConnectivityOrderZeroDescriptorTest.suite()); suite.addTest(ValenceConnectivityOrderOneDescriptorTest.suite()); suite.addTest(WeightDescriptorTest.suite()); suite.addTest(WeightedPathDescriptorTest.suite()); suite.addTest(WHIMDescriptorTest.suite()); suite.addTest(WienerNumbersDescriptorTest.suite()); suite.addTest(XLogPDescriptorTest.suite()); suite.addTest(ZagrebIndexDescriptorTest.suite()); // from cdk.test.qsar.model.R suite.addTest(CNNClassificationModelTest.suite()); suite.addTest(org.openscience.cdk.test.qsar.model.R.CNNRegressionModelTest.suite()); suite.addTest(org.openscience.cdk.test.qsar.model.R.LinearRegressionModelTest.suite()); suite.addTest(ModelLoadSaveTest.suite()); suite.addTest(org.openscience.cdk.test.qsar.model.R.QSARRModelTests.suite()); suite.addTest(SJavaEnvironmentTest.suite());// from cdk.test.qsar.model.R2 suite.addTest(org.openscience.cdk.test.qsar.model.R2.CNNRegressionModelTest.suite()); suite.addTest(org.openscience.cdk.test.qsar.model.R2.LinearRegressionModelTest.suite()); suite.addTest(org.openscience.cdk.test.qsar.model.R2.QSARRModelTests.suite()); suite.addTest(RJavaEnvironmentTest.suite());// from cdk.test.qsar.model.R2 suite.addTest(J48WModelTest.suite()); suite.addTest(LinearRegressionWModelTest.suite()); suite.addTest(QSARWekaModelTests.suite()); return suite; } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/b6af522c4ce4f633fd2ebcbcff48366c24ccf0b6/MqsarTests.java/clean/src/org/openscience/cdk/test/MqsarTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
7766,
11371,
1435,
288,
3639,
7766,
13587,
11371,
273,
394,
7766,
13587,
2932,
1595,
2238,
55,
985,
7766,
87,
8863,
3639,
368,
24147,
7766,
87,
300,
7801,
527,
1858,
2878,
17526,
202,
3639,
11371,
18,
1289,
4709,
12,
3187,
4410,
4709,
18,
30676,
10663,
13491,
368,
628,
276,
2883,
18,
3813,
18,
12926,
297,
18,
27718,
3639,
11371,
18,
1289,
4709,
12,
3641,
22885,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
3641,
17507,
14400,
1588,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
3641,
17507,
14400,
1588,
58,
1090,
8025,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
3641,
3053,
802,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
26090,
774,
3641,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
4249,
1125,
319,
10196,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
7200,
774,
3641,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
28531,
3641,
5850,
297,
452,
2967,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
382,
1828,
688,
23102,
29601,
4496,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
382,
1828,
688,
23102,
12468,
4496,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
2579,
23102,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
2520,
626,
1917,
382,
37,
27468,
3163,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
7766,
11371,
1435,
288,
3639,
7766,
13587,
11371,
273,
394,
7766,
13587,
2932,
1595,
2238,
55,
985,
7766,
87,
8863,
3639,
368,
24147,
7766,
87,
300,
7801,
527,
1858,
2878,
17526,
202,
3639,
11371,
18,
1289,
4709,
12,
3187,
4410,
4709,
18,
30676,
10663,
13491,
368,
628,
276,
2883,
18,
3813,
18,
12926,
297,
18,
27718,
3639,
11371,
18,
1289,
4709,
12,
3641,
22885,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
3641,
17507,
14400,
1588,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
3641,
17507,
14400,
1588,
58,
1090,
8025,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
3641,
3053,
802,
3187,
4709,
18,
30676,
10663,
2
] |
|
public void setLocator (SourceLocator location) { locator = location; | public void setLocator(SourceLocator location) { locator = location; | public void setLocator (SourceLocator location) { locator = location; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/TransformerException.java/clean/core/src/classpath/javax/javax/xml/transform/TransformerException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
5786,
261,
1830,
5786,
2117,
13,
288,
202,
202,
20048,
273,
2117,
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,
918,
444,
5786,
261,
1830,
5786,
2117,
13,
288,
202,
202,
20048,
273,
2117,
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
] |
interfaceDetectThread.stopDetection(); | if(interfaceDetectThread != null) interfaceDetectThread.stopDetection(); | public void finishedAbnormal(){ interfaceDetectThread.stopDetection(); } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/3d252b34cd6d158f69d9d5ce3839bef225be2cef/InitialSetupInterfaceJPanel.java/buggy/gui/api/com/untangle/gui/login/InitialSetupInterfaceJPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6708,
5895,
6130,
1435,
95,
202,
430,
12,
5831,
12081,
3830,
480,
446,
13,
1560,
12081,
3830,
18,
5681,
10214,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
6708,
5895,
6130,
1435,
95,
202,
430,
12,
5831,
12081,
3830,
480,
446,
13,
1560,
12081,
3830,
18,
5681,
10214,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
System.err.println("importResources"); | public CmsImport(String importFile, String importPath, CmsObject cms) throws CmsException { m_importFile = importFile; m_importPath = importPath; m_cms = cms; System.err.println("getImportResource"); // open the import resource getImportResource(); System.err.println("getXmlConfigFile"); // read the xml-config file getXmlConfigFile(); System.err.println("importResources"); // import the resources importResources(); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/fd5e41b17ade20528273a7ef74ba3d7fdcd6a48a/CmsImport.java/clean/src/com/opencms/file/CmsImport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2149,
5010,
12,
780,
1930,
812,
16,
514,
30336,
16,
14371,
6166,
13,
3196,
202,
15069,
11228,
288,
202,
202,
81,
67,
5666,
812,
273,
1930,
812,
31,
202,
202,
81,
67,
5666,
743,
273,
30336,
31,
202,
202,
81,
67,
6851,
273,
6166,
31,
3639,
2332,
18,
370,
18,
8222,
2932,
588,
5010,
1420,
8863,
202,
202,
759,
1696,
326,
1930,
1058,
202,
202,
588,
5010,
1420,
5621,
1082,
2332,
18,
370,
18,
8222,
2932,
588,
4432,
13705,
8863,
202,
202,
759,
855,
326,
2025,
17,
1425,
585,
202,
202,
588,
4432,
13705,
5621,
1082,
2332,
18,
370,
18,
8222,
2932,
5666,
3805,
8863,
202,
202,
759,
1930,
326,
2703,
202,
202,
5666,
3805,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2149,
5010,
12,
780,
1930,
812,
16,
514,
30336,
16,
14371,
6166,
13,
3196,
202,
15069,
11228,
288,
202,
202,
81,
67,
5666,
812,
273,
1930,
812,
31,
202,
202,
81,
67,
5666,
743,
273,
30336,
31,
202,
202,
81,
67,
6851,
273,
6166,
31,
3639,
2332,
18,
370,
18,
8222,
2932,
588,
5010,
1420,
8863,
202,
202,
759,
1696,
326,
1930,
1058,
202,
202,
588,
5010,
1420,
5621,
1082,
2332,
18,
370,
18,
8222,
2932,
588,
4432,
13705,
8863,
202,
202,
759,
855,
326,
2025,
17,
1425,
585,
202,
202,
588,
4432,
13705,
5621,
1082,
2332,
18,
370,
18,
8222,
2932,
5666,
3805,
8863,
202,
202,
759,
1930,
326,
2703,
202,
202,
5666,
3805,
5621,
2
] |
|
this.channel1.close(); | try { this.channel1.close(); } catch (Exception e) { } | protected void tearDown() throws Exception { super.tearDown(); if (null != this.channel1) { this.channel1.close(); } if (null != this.channel2) { this.channel2.close(); } if (null != this.datagramSocket1) { this.datagramSocket1.close(); } if (null != this.datagramSocket2) { this.datagramSocket2.close(); } localAddr1 = null; localAddr2 = null; } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/dd7d7186a3fd62e298a4a14d517dace20da8539c/DatagramChannelTest.java/buggy/modules/nio/src/test/java/org/apache/harmony/tests/java/nio/channels/DatagramChannelTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
268,
2091,
4164,
1435,
1216,
1185,
288,
3639,
2240,
18,
736,
297,
4164,
5621,
3639,
309,
261,
2011,
480,
333,
18,
4327,
21,
13,
288,
5411,
775,
288,
333,
18,
4327,
21,
18,
4412,
5621,
289,
1044,
261,
503,
425,
13,
288,
225,
289,
3639,
289,
3639,
309,
261,
2011,
480,
333,
18,
4327,
22,
13,
288,
5411,
333,
18,
4327,
22,
18,
4412,
5621,
3639,
289,
3639,
309,
261,
2011,
480,
333,
18,
3404,
17049,
4534,
21,
13,
288,
5411,
333,
18,
3404,
17049,
4534,
21,
18,
4412,
5621,
3639,
289,
3639,
309,
261,
2011,
480,
333,
18,
3404,
17049,
4534,
22,
13,
288,
5411,
333,
18,
3404,
17049,
4534,
22,
18,
4412,
5621,
3639,
289,
3639,
1191,
3178,
21,
273,
446,
31,
3639,
1191,
3178,
22,
273,
446,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
268,
2091,
4164,
1435,
1216,
1185,
288,
3639,
2240,
18,
736,
297,
4164,
5621,
3639,
309,
261,
2011,
480,
333,
18,
4327,
21,
13,
288,
5411,
775,
288,
333,
18,
4327,
21,
18,
4412,
5621,
289,
1044,
261,
503,
425,
13,
288,
225,
289,
3639,
289,
3639,
309,
261,
2011,
480,
333,
18,
4327,
22,
13,
288,
5411,
333,
18,
4327,
22,
18,
4412,
5621,
3639,
289,
3639,
309,
261,
2011,
480,
333,
18,
3404,
17049,
4534,
21,
13,
288,
5411,
333,
18,
3404,
17049,
4534,
21,
18,
4412,
5621,
3639,
289,
3639,
309,
261,
2011,
480,
333,
18,
3404,
17049,
4534,
22,
13,
288,
5411,
333,
18,
3404,
17049,
4534,
22,
18,
4412,
5621,
3639,
2
] |
scopeStack[tryStackTop++] = scope; | stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; | public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Scriptable fnOrScript, InterpreterData theData) throws JavaScriptException { int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = theData.itsVariableTable.size(); final int maxLocals = theData.itsMaxLocals; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; // stack[0 <= i < VAR_SHFT]: stack data // stack[VAR_SHFT <= i < LOCAL_SHFT]: variables // stack[LOCAL_SHFT <= i]: // used for newtemp/usetemp etc. // id stack[x] == DBL_MRK, real value for stack[x] is in sDbl[x] final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[LOCAL_SHFT + maxLocals]; double[] sDbl = new double[LOCAL_SHFT + maxLocals]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= args.length) stack[VAR_SHFT + i] = undefined; else stack[VAR_SHFT + i] = args[i]; } for ( ; i < maxVars; i++) stack[VAR_SHFT + i] = undefined; } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; double lDbl; int rIntValue; double rDbl; int[] catchStack = null; Scriptable[] scopeStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } if (theData.itsMaxTryDepth > 0) { // catchStack[2 * i]: catch data // catchStack[2 * i + 1]: finally data catchStack = new int[theData.itsMaxTryDepth * 2]; scopeStack = new Scriptable[theData.itsMaxTryDepth]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; catchStack[tryStackTop * 2 + 1] = i; scopeStack[tryStackTop++] = scope; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[++pc] & 0xFF); pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lLongValue = stack_uint32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lLongValue >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : int lineNum = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; break; case TokenStream.CALL : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; break; case TokenStream.NEW : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && (iCode[pc+1] << 8) + (iCode[pc+2] & 0xFF) != -1) { // special code for better error message for call // to undefined lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : cx.interpreterSecurityDomain = null; result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; case TokenStream.LINE : case TokenStream.BREAKPOINT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == TokenStream.BREAKPOINT || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (EcmaError ee) { if (cx.debugger != null) cx.debugger.handleExceptionThrown(cx, ee.getErrorObject()); // an offical ECMA error object, // handle as if it were a JavaScriptException stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop * 2]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = catchStack[tryStackTop * 2 + 1]; if (pc == 0) { if (frame != null) cx.popFrame(); throw ee; } } stack[0] = ee.getErrorObject(); } else { if (frame != null) cx.popFrame(); throw ee; } // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (JavaScriptException jsx) { if (cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, ScriptRuntime.unwrapJavaScriptException(jsx)); } stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop * 2]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = catchStack[tryStackTop * 2 + 1]; if (pc == 0) { if (frame != null) cx.popFrame(); throw jsx; } stack[0] = jsx; } else { stack[0] = ScriptRuntime.unwrapJavaScriptException(jsx); } } else { if (frame != null) cx.popFrame(); throw jsx; } // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (RuntimeException jx) { if (cx.debugger != null) cx.debugger.handleExceptionThrown(cx, jx); cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { stackTop = 0; stack[0] = jx; pc = catchStack[--tryStackTop * 2 + 1]; scope = scopeStack[tryStackTop]; if (pc == 0) { if (frame != null) cx.popFrame(); throw jx; } } else { if (frame != null) cx.popFrame(); throw jx; } // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; if (frame != null) cx.popFrame(); return result; } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/bee05de110e688522361fc733e5ee8210b9508c9/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
565,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
565,
22780,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
326,
751,
18,
1282,
3092,
1388,
18,
1467,
5621,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
7734,
727,
509,
8350,
67,
2664,
4464,
273,
943,
2624,
31,
540,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
67,
2664,
4464,
397,
943,
5555,
31,
540,
368,
2110,
63,
20,
1648,
277,
411,
8350,
67,
2664,
4464,
14542,
2110,
501,
3639,
368,
2110,
63,
7716,
67,
2664,
4464,
1648,
277,
411,
15234,
67,
2664,
4464,
14542,
3152,
3639,
368,
2110,
63,
14922,
67,
2664,
4464,
1648,
277,
14542,
225,
368,
1399,
364,
394,
5814,
19,
407,
278,
30752,
5527,
18,
3639,
368,
612,
2110,
63,
92,
65,
422,
2383,
48,
67,
23464,
47,
16,
2863,
460,
364,
2110,
63,
92,
65,
353,
316,
272,
40,
3083,
63,
92,
65,
7734,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
11599,
18,
2290,
48,
67,
23464,
47,
31,
7734,
1033,
8526,
2110,
273,
394,
1033,
63,
14922,
67,
2664,
4464,
397,
943,
1333,
1031,
15533,
3639,
1645,
8526,
272,
40,
3083,
273,
394,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
565,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
565,
22780,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
326,
751,
18,
1282,
3092,
1388,
18,
1467,
5621,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
7734,
727,
509,
8350,
67,
2664,
4464,
273,
943,
2624,
31,
540,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
67,
2664,
4464,
397,
943,
5555,
2
] |
this.operands = operands;; | this.operands = operands; | public OPER(String sourcefile, int linenumber, String opcode, Temp dst, Temp[] operands) { super(sourcefile, linenumber); this.opcode = opcode; this.dst = dst; this.operands = operands;; } | 2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/a177b8bc91239ad048828802f1e01b28cd6b10cf/OPER.java/clean/IR/QuadSSA/OPER.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
17205,
12,
780,
1084,
768,
16,
509,
4739,
21998,
16,
202,
202,
780,
11396,
16,
16380,
3046,
16,
16380,
8526,
14883,
13,
288,
202,
9565,
12,
3168,
768,
16,
4739,
21998,
1769,
202,
2211,
18,
556,
710,
273,
11396,
31,
202,
2211,
18,
11057,
273,
3046,
31,
202,
2211,
18,
4063,
5708,
273,
14883,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
17205,
12,
780,
1084,
768,
16,
509,
4739,
21998,
16,
202,
202,
780,
11396,
16,
16380,
3046,
16,
16380,
8526,
14883,
13,
288,
202,
9565,
12,
3168,
768,
16,
4739,
21998,
1769,
202,
2211,
18,
556,
710,
273,
11396,
31,
202,
2211,
18,
11057,
273,
3046,
31,
202,
2211,
18,
4063,
5708,
273,
14883,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (isLocal) | so = servant_preinvoke (self, "_is_a", java.lang.Object.class); try | public boolean is_a( org.omg.CORBA.Object self, String logical_type_id ) { /* First, try to find out without a remote invocation. */ /* check most derived type as defined in the IOR first * (this type might otherwise not be found if the helper * is consulted and the reference was not narrowed to * the most derived type. In this case, the ids returned by * the helper won't contain the most derived type */ ParsedIOR pior = getParsedIOR(); if ( pior.getTypeId().equals( logical_type_id ) ) return true; /* The Ids in ObjectImpl will at least contain the type id found in the object reference itself. */ String[] ids = ( ( org.omg.CORBA.portable.ObjectImpl ) self )._ids(); /* the last id will be CORBA.Object, and we know that already... */ for ( int i = 0; i < ids.length - 1; i++ ) { if ( ids[ i ].equals( logical_type_id ) ) return true; } /* ok, we could not affirm by simply looking at the locally available type ids, so ask the object itself */ org.omg.CORBA.portable.OutputStream os; org.omg.CORBA.portable.InputStream is; org.omg.PortableServer.Servant servant; org.omg.CORBA.portable.ServantObject so; boolean isLocal = is_really_local (self); while (true) { // If local object call _is_a directly if (isLocal) { so = servant_preinvoke (self, "_is_a", java.lang.Object.class); try { servant = (org.omg.PortableServer.Servant) so.servant; return (servant._is_a (logical_type_id)); } catch (SystemException se) { isLocal = false; continue; } finally { servant_postinvoke (self, so); } } else { try { os = request( self, "_is_a", true ); os.write_string( logical_type_id ); is = invoke( self, os ); return is.read_boolean(); } catch ( RemarshalException r ) { } catch ( ApplicationException _ax ) { String _id = _ax.getId(); throw new RuntimeException( "Unexpected exception " + _id ); } } } } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/e70ba17102fb7cb0d3bb0d7583ca3a759cbdd2fd/Delegate.java/clean/src/org/jacorb/orb/Delegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
67,
69,
12,
2358,
18,
362,
75,
18,
9428,
12536,
18,
921,
365,
16,
514,
6374,
67,
723,
67,
350,
262,
565,
288,
3639,
1748,
5783,
16,
775,
358,
1104,
596,
2887,
279,
2632,
9495,
18,
1195,
3639,
1748,
866,
4486,
10379,
618,
487,
2553,
316,
326,
467,
916,
1122,
540,
380,
261,
2211,
618,
4825,
3541,
486,
506,
1392,
309,
326,
4222,
1850,
380,
353,
27710,
329,
471,
326,
2114,
1703,
486,
17383,
329,
358,
540,
380,
326,
4486,
10379,
618,
18,
657,
333,
648,
16,
326,
3258,
2106,
635,
540,
380,
326,
4222,
8462,
1404,
912,
326,
4486,
10379,
618,
540,
1195,
3639,
19244,
45,
916,
4790,
280,
273,
25406,
45,
916,
5621,
3639,
309,
261,
4790,
280,
18,
588,
11731,
7675,
14963,
12,
6374,
67,
723,
67,
350,
262,
262,
5411,
327,
638,
31,
3639,
1748,
282,
1021,
29085,
316,
1033,
2828,
903,
622,
4520,
912,
326,
618,
612,
2398,
1392,
316,
326,
733,
2114,
6174,
18,
3639,
1195,
3639,
514,
8526,
3258,
273,
261,
261,
2358,
18,
362,
75,
18,
9428,
12536,
18,
655,
429,
18,
921,
2828,
262,
365,
262,
6315,
2232,
5621,
3639,
1748,
326,
1142,
612,
903,
506,
28359,
12536,
18,
921,
16,
471,
732,
5055,
716,
1818,
2777,
1195,
3639,
364,
261,
509,
277,
273,
374,
31,
277,
411,
3258,
18,
2469,
300,
404,
31,
277,
9904,
262,
3639,
288,
5411,
309,
261,
3258,
63,
277,
308,
18,
14963,
12,
6374,
67,
723,
67,
350,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
67,
69,
12,
2358,
18,
362,
75,
18,
9428,
12536,
18,
921,
365,
16,
514,
6374,
67,
723,
67,
350,
262,
565,
288,
3639,
1748,
5783,
16,
775,
358,
1104,
596,
2887,
279,
2632,
9495,
18,
1195,
3639,
1748,
866,
4486,
10379,
618,
487,
2553,
316,
326,
467,
916,
1122,
540,
380,
261,
2211,
618,
4825,
3541,
486,
506,
1392,
309,
326,
4222,
1850,
380,
353,
27710,
329,
471,
326,
2114,
1703,
486,
17383,
329,
358,
540,
380,
326,
4486,
10379,
618,
18,
657,
333,
648,
16,
326,
3258,
2106,
635,
540,
380,
326,
4222,
8462,
1404,
912,
326,
4486,
10379,
618,
540,
1195,
3639,
19244,
45,
916,
4790,
280,
273,
25406,
45,
916,
5621,
2
] |
throw new PSQLException("postgresql.con.fathom", status); | throw new PSQLException("postgresql.con.fathom", PSQLState.CONNECTION_FAILURE, status); | private void receiveCommandStatusV3() throws SQLException { //TODO: better handle the msg len int l_len = pgStream.ReceiveIntegerR(4); //read l_len -5 bytes (-4 for l_len and -1 for trailing \0) status = connection.getEncoding().decode(pgStream.Receive(l_len-5)); //now read and discard the trailing \0 pgStream.Receive(1); try { // Now handle the update count correctly. if (status.startsWith("INSERT") || status.startsWith("UPDATE") || status.startsWith("DELETE") || status.startsWith("MOVE")) { update_count = Integer.parseInt(status.substring(1 + status.lastIndexOf(' '))); } if (status.startsWith("INSERT")) { insert_oid = Long.parseLong(status.substring(1 + status.indexOf(' '), status.lastIndexOf(' '))); } } catch (NumberFormatException nfe) { throw new PSQLException("postgresql.con.fathom", status); } } | 2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/6e93868448b5865def90afe6f30990ceb61cdde4/QueryExecutor.java/buggy/org/postgresql/core/QueryExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6798,
2189,
1482,
58,
23,
1435,
1216,
6483,
202,
95,
202,
202,
759,
6241,
30,
7844,
1640,
326,
1234,
562,
202,
202,
474,
328,
67,
1897,
273,
7184,
1228,
18,
11323,
4522,
54,
12,
24,
1769,
202,
202,
759,
896,
328,
67,
1897,
300,
25,
1731,
24927,
24,
364,
328,
67,
1897,
471,
300,
21,
364,
7341,
521,
20,
13,
202,
202,
2327,
273,
1459,
18,
588,
4705,
7675,
3922,
12,
8365,
1228,
18,
11323,
12,
80,
67,
1897,
17,
25,
10019,
3196,
202,
759,
3338,
855,
471,
10388,
326,
7341,
521,
20,
202,
202,
8365,
1228,
18,
11323,
12,
21,
1769,
202,
202,
698,
202,
202,
95,
1082,
202,
759,
4494,
1640,
326,
1089,
1056,
8783,
18,
1082,
202,
430,
261,
2327,
18,
17514,
1190,
2932,
11356,
7923,
747,
1267,
18,
17514,
1190,
2932,
8217,
7923,
747,
1267,
18,
17514,
1190,
2932,
6460,
7923,
747,
1267,
18,
17514,
1190,
2932,
16537,
6,
3719,
1082,
202,
95,
9506,
202,
2725,
67,
1883,
273,
2144,
18,
2670,
1702,
12,
2327,
18,
28023,
12,
21,
397,
1267,
18,
2722,
31985,
2668,
296,
3719,
1769,
1082,
202,
97,
1082,
202,
430,
261,
2327,
18,
17514,
1190,
2932,
11356,
6,
3719,
1082,
202,
95,
9506,
202,
6387,
67,
839,
273,
3407,
18,
2670,
3708,
12,
2327,
18,
28023,
12,
21,
397,
1267,
18,
31806,
2668,
296,
3631,
6862,
6862,
1082,
202,
2327,
18,
2722,
31985,
2668,
296,
3719,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6798,
2189,
1482,
58,
23,
1435,
1216,
6483,
202,
95,
202,
202,
759,
6241,
30,
7844,
1640,
326,
1234,
562,
202,
202,
474,
328,
67,
1897,
273,
7184,
1228,
18,
11323,
4522,
54,
12,
24,
1769,
202,
202,
759,
896,
328,
67,
1897,
300,
25,
1731,
24927,
24,
364,
328,
67,
1897,
471,
300,
21,
364,
7341,
521,
20,
13,
202,
202,
2327,
273,
1459,
18,
588,
4705,
7675,
3922,
12,
8365,
1228,
18,
11323,
12,
80,
67,
1897,
17,
25,
10019,
3196,
202,
759,
3338,
855,
471,
10388,
326,
7341,
521,
20,
202,
202,
8365,
1228,
18,
11323,
12,
21,
1769,
202,
202,
698,
202,
202,
95,
1082,
202,
759,
4494,
1640,
326,
1089,
2
] |
Spring retVal = y; if ((retVal == null) && (height != null) && (south != null)) { retVal = Spring.sum(south, Spring.minus(height)); } return retVal; | if (y != null) return y; else if ((v == null) && (height != null) && (south != null)) v = Spring.sum(south, Spring.minus(height)); return v; | public Spring getY() { Spring retVal = y; if ((retVal == null) && (height != null) && (south != null)) { retVal = Spring.sum(south, Spring.minus(height)); } return retVal; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/SpringLayout.java/buggy/core/src/classpath/javax/javax/swing/SpringLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
22751,
10448,
1435,
565,
288,
1377,
22751,
12197,
273,
677,
31,
1377,
309,
14015,
1349,
3053,
422,
446,
13,
597,
261,
4210,
480,
446,
13,
597,
261,
87,
15347,
480,
446,
3719,
3639,
288,
1850,
12197,
273,
22751,
18,
1364,
12,
87,
15347,
16,
22751,
18,
19601,
12,
4210,
10019,
3639,
289,
1377,
327,
12197,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
22751,
10448,
1435,
565,
288,
1377,
22751,
12197,
273,
677,
31,
1377,
309,
14015,
1349,
3053,
422,
446,
13,
597,
261,
4210,
480,
446,
13,
597,
261,
87,
15347,
480,
446,
3719,
3639,
288,
1850,
12197,
273,
22751,
18,
1364,
12,
87,
15347,
16,
22751,
18,
19601,
12,
4210,
10019,
3639,
289,
1377,
327,
12197,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
protected void updateTarget( InstructionHandle old_ih, InstructionHandle new_ih, InstructionList new_il) { old_ih.removeTargeter(this); if (new_ih != null) new_ih.addTargeter(this); body = new_il; if (old_ih == start) { start = new_ih; } if (old_ih == end) { end = new_ih; } | public final void updateTarget(InstructionHandle old_ih, InstructionHandle new_ih) { throw new RuntimeException("Ranges must be updated with an enclosing instructionList"); | protected void updateTarget( InstructionHandle old_ih, InstructionHandle new_ih, InstructionList new_il) { old_ih.removeTargeter(this); if (new_ih != null) new_ih.addTargeter(this); body = new_il; if (old_ih == start) { start = new_ih; } if (old_ih == end) { end = new_ih; } } | 7955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7955/9c535bada84254eb397d1988ce1b04443145fdcc/Range.java/buggy/org.aspectj/modules/weaver/src/org/aspectj/weaver/bcel/Range.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1089,
2326,
12,
3639,
24605,
3259,
1592,
67,
7392,
16,
540,
24605,
3259,
394,
67,
7392,
16,
3639,
24605,
682,
394,
67,
330,
13,
377,
288,
3639,
1592,
67,
7392,
18,
4479,
2326,
264,
12,
2211,
1769,
3639,
309,
261,
2704,
67,
7392,
480,
446,
13,
2398,
394,
67,
7392,
18,
1289,
2326,
264,
12,
2211,
1769,
3639,
1417,
273,
394,
67,
330,
31,
7734,
309,
261,
1673,
67,
7392,
422,
787,
13,
288,
5411,
787,
273,
394,
67,
7392,
31,
3639,
289,
540,
309,
261,
1673,
67,
7392,
422,
679,
13,
288,
5411,
679,
273,
394,
67,
7392,
31,
3639,
289,
6647,
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,
4750,
918,
1089,
2326,
12,
3639,
24605,
3259,
1592,
67,
7392,
16,
540,
24605,
3259,
394,
67,
7392,
16,
3639,
24605,
682,
394,
67,
330,
13,
377,
288,
3639,
1592,
67,
7392,
18,
4479,
2326,
264,
12,
2211,
1769,
3639,
309,
261,
2704,
67,
7392,
480,
446,
13,
2398,
394,
67,
7392,
18,
1289,
2326,
264,
12,
2211,
1769,
3639,
1417,
273,
394,
67,
330,
31,
7734,
309,
261,
1673,
67,
7392,
422,
787,
13,
288,
5411,
787,
273,
394,
67,
7392,
31,
3639,
289,
540,
309,
261,
1673,
67,
7392,
422,
679,
13,
288,
5411,
679,
273,
394,
67,
7392,
31,
3639,
289,
6647,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
lc = LT(1); | public final void arrayInitializer() throws RecognitionException, TokenStreamException { Token lc = null; lc = LT(1); match(LCURLY); { switch ( LA(1)) { case LITERAL_void: case LITERAL_boolean: case LITERAL_byte: case LITERAL_char: case LITERAL_short: case LITERAL_int: case LITERAL_float: case LITERAL_long: case LITERAL_double: case IDENT: case LCURLY: case LPAREN: case PLUS: case MINUS: case INC: case DEC: case BNOT: case LNOT: case LITERAL_this: case LITERAL_super: case LITERAL_true: case LITERAL_false: case LITERAL_null: case LITERAL_new: case NUM_INT: case CHAR_LITERAL: case STRING_LITERAL: case NUM_FLOAT: { initializer(); { _loop73: do { if ((LA(1)==COMMA) && (_tokenSet_9.member(LA(2)))) { match(COMMA); initializer(); } else { break _loop73; } } while (true); } { switch ( LA(1)) { case COMMA: { match(COMMA); break; } case RCURLY: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } break; } case RCURLY: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } match(RCURLY); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/2a200ab1a5c2a6bb2a8e3032a859769178b530b7/JavaRecognizer.java/clean/src_new/org/argouml/uml/reveng/java/JavaRecognizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
526,
14729,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
1345,
225,
9109,
273,
446,
31,
9506,
202,
17704,
273,
11807,
12,
21,
1769,
202,
202,
1916,
12,
13394,
1785,
61,
1769,
202,
202,
95,
202,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
511,
18454,
67,
6459,
30,
202,
202,
3593,
511,
18454,
67,
6494,
30,
202,
202,
3593,
511,
18454,
67,
7229,
30,
202,
202,
3593,
511,
18454,
67,
3001,
30,
202,
202,
3593,
511,
18454,
67,
6620,
30,
202,
202,
3593,
511,
18454,
67,
474,
30,
202,
202,
3593,
511,
18454,
67,
5659,
30,
202,
202,
3593,
511,
18454,
67,
5748,
30,
202,
202,
3593,
511,
18454,
67,
9056,
30,
202,
202,
3593,
19768,
30,
202,
202,
3593,
511,
26314,
30,
202,
202,
3593,
511,
15111,
30,
202,
202,
3593,
22443,
3378,
30,
202,
202,
3593,
6989,
3378,
30,
202,
202,
3593,
2120,
39,
30,
202,
202,
3593,
2030,
39,
30,
202,
202,
3593,
605,
4400,
30,
202,
202,
3593,
511,
4400,
30,
202,
202,
3593,
511,
18454,
67,
2211,
30,
202,
202,
3593,
511,
18454,
67,
9565,
30,
202,
202,
3593,
511,
18454,
67,
3767,
30,
202,
202,
3593,
511,
18454,
67,
5743,
30,
202,
202,
3593,
511,
18454,
67,
2011,
30,
202,
202,
3593,
511,
18454,
67,
2704,
30,
202,
202,
3593,
9443,
67,
3217,
30,
202,
202,
3593,
12090,
67,
23225,
30,
202,
202,
3593,
9469,
67,
23225,
30,
202,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
526,
14729,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
1345,
225,
9109,
273,
446,
31,
9506,
202,
17704,
273,
11807,
12,
21,
1769,
202,
202,
1916,
12,
13394,
1785,
61,
1769,
202,
202,
95,
202,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
511,
18454,
67,
6459,
30,
202,
202,
3593,
511,
18454,
67,
6494,
30,
202,
202,
3593,
511,
18454,
67,
7229,
30,
202,
202,
3593,
511,
18454,
67,
3001,
30,
202,
202,
3593,
511,
18454,
67,
6620,
30,
202,
202,
3593,
511,
18454,
67,
474,
30,
202,
202,
3593,
511,
18454,
67,
5659,
30,
202,
202,
3593,
511,
18454,
67,
5748,
30,
202,
202,
3593,
511,
2
] |
|
while (isSpace(c)) { c = nextc(); } pushback(c); | while (isSpace(c)) { c = nextc(); } pushback(c); | private int parseQuotedWords(int closeQuote, int openQuote) { int c = nextc(); ISourcePosition position = support.getPosition(); // Skip preceding spaces. while (isSpace(c)) { c = nextc(); } pushback(c); ArrayNode qwords = new ArrayNode(position); // FIX int nest = 0; StringBuffer stringToken = new StringBuffer(); while ((c = nextc()) != closeQuote || nest > 0) { if (c == -1) { errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); //$NON-NLS-1$ return 0; } if (c == '\\') { c = nextc(); switch (c) { case '\n' : continue; case '\\' : c = '\\'; break; default : if (c == closeQuote || (openQuote != 0 && c == openQuote)) { stringToken.append((char) c); continue; } if (!isSpace(c)) { stringToken.append('\\'); } break; } } else if (isSpace(c)) { qwords.add(new StrNode(support.getPosition(), stringToken.toString())); stringToken.setLength(0); //Benoit: reset the buffer // skip continuous spaces c = nextc(); while (isSpace(c)) { c = nextc(); } pushback(c); continue; } if (openQuote != 0) { if (c == openQuote) { nest++; } if (c == closeQuote && nest-- == 0) { break; } } stringToken.append((char) c); } if (stringToken.length() > 0) { qwords.add(new StrNode(support.getPosition(), stringToken.toString())); } lexState = LexState.EXPR_END; yaccValue = qwords; return Token.tARRAY; } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1109,
15919,
7363,
12,
474,
1746,
10257,
16,
509,
1696,
10257,
13,
288,
202,
202,
474,
276,
273,
1024,
71,
5621,
202,
202,
45,
1830,
2555,
1754,
273,
2865,
18,
588,
2555,
5621,
202,
202,
759,
6611,
19969,
7292,
18,
202,
202,
17523,
261,
291,
3819,
12,
71,
3719,
288,
1082,
202,
71,
273,
1024,
71,
5621,
202,
202,
97,
202,
202,
6206,
823,
12,
71,
1769,
202,
202,
1076,
907,
1043,
3753,
273,
394,
1510,
907,
12,
3276,
1769,
368,
8563,
202,
202,
474,
15095,
273,
374,
31,
202,
202,
780,
1892,
533,
1345,
273,
394,
6674,
5621,
202,
202,
17523,
14015,
71,
273,
1024,
71,
10756,
480,
1746,
10257,
747,
15095,
405,
374,
13,
288,
1082,
202,
430,
261,
71,
422,
300,
21,
13,
288,
9506,
202,
1636,
1503,
18,
4110,
668,
12,
45,
4229,
18,
31075,
900,
67,
3589,
16,
1754,
16,
4838,
18,
588,
780,
2932,
318,
29133,
67,
1080,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2463,
374,
31,
1082,
202,
97,
1082,
202,
430,
261,
71,
422,
5282,
13,
288,
9506,
202,
71,
273,
1024,
71,
5621,
9506,
202,
9610,
261,
71,
13,
288,
6862,
202,
3593,
2337,
82,
11,
294,
25083,
202,
17143,
31,
6862,
202,
3593,
5282,
294,
25083,
202,
71,
273,
5282,
31,
25083,
202,
8820,
31,
6862,
202,
1886,
294,
25083,
202,
430,
261,
71,
422,
1746,
10257,
747,
261,
3190,
10257,
480,
374,
597,
276,
422,
1696,
10257,
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,
15919,
7363,
12,
474,
1746,
10257,
16,
509,
1696,
10257,
13,
288,
202,
202,
474,
276,
273,
1024,
71,
5621,
202,
202,
45,
1830,
2555,
1754,
273,
2865,
18,
588,
2555,
5621,
202,
202,
759,
6611,
19969,
7292,
18,
202,
202,
17523,
261,
291,
3819,
12,
71,
3719,
288,
1082,
202,
71,
273,
1024,
71,
5621,
202,
202,
97,
202,
202,
6206,
823,
12,
71,
1769,
202,
202,
1076,
907,
1043,
3753,
273,
394,
1510,
907,
12,
3276,
1769,
368,
8563,
202,
202,
474,
15095,
273,
374,
31,
202,
202,
780,
1892,
533,
1345,
273,
394,
6674,
5621,
202,
202,
17523,
14015,
71,
273,
1024,
71,
10756,
480,
1746,
10257,
747,
15095,
405,
374,
2
] |
public org.quickfix.field.PartyIDSource getPartyIDSource() throws FieldNotFound { org.quickfix.field.PartyIDSource value = new org.quickfix.field.PartyIDSource(); | public quickfix.field.PartyIDSource getPartyIDSource() throws FieldNotFound { quickfix.field.PartyIDSource value = new quickfix.field.PartyIDSource(); | public org.quickfix.field.PartyIDSource getPartyIDSource() throws FieldNotFound { org.quickfix.field.PartyIDSource value = new org.quickfix.field.PartyIDSource(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelRequest.java/clean/src/java/src/quickfix/fix44/OrderCancelRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
1689,
7325,
734,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
1689,
7325,
734,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public FillerWorkBreakDownElement(BreakdownElement _e, Node _aNode) { | public FillerWorkBreakDownElement(Element _e, Node _aNode) { | public FillerWorkBreakDownElement(BreakdownElement _e, Node _aNode) { super(_e, _aNode); fill() ; } | 55530 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55530/f3c49e732739dfcc6bf4d44f231f8bd8edd3ba82/FillerWorkBreakDownElement.java/buggy/spelp/trunk/import_xml/src/wilos/business/services/util/xml/fillers/FillerWorkBreakDownElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14192,
264,
2421,
7634,
4164,
1046,
12,
7634,
2378,
1046,
389,
73,
16,
2029,
389,
69,
907,
13,
288,
202,
202,
9565,
24899,
73,
16,
389,
69,
907,
1769,
202,
202,
5935,
1435,
274,
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,
482,
14192,
264,
2421,
7634,
4164,
1046,
12,
7634,
2378,
1046,
389,
73,
16,
2029,
389,
69,
907,
13,
288,
202,
202,
9565,
24899,
73,
16,
389,
69,
907,
1769,
202,
202,
5935,
1435,
274,
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
] |
} else if (element instanceof AbstractCategory) { AbstractCategory cat = (AbstractCategory) element; | } else if (element instanceof ICategory) { ICategory cat = (ICategory) element; switch (columnIndex) { case 0: return new Boolean(false); case 1: return ""; case 2: return ""; case 3: return cat.getDescription(true); } }else if (element instanceof IQuery) { IQuery cat = (IQuery) element; | public Object getValue(Object element, String property) { try{ int columnIndex = Arrays.asList(columnNames).indexOf(property); if (element instanceof ITaskListElement) { final ITaskListElement taskListElement = (ITaskListElement)element; ITask task = null; if(taskListElement.hasCorrespondingActivatableTask()){ task = taskListElement.getOrCreateCorrespondingTask(); } switch (columnIndex) { case 0: if(task == null){ return new Boolean(true); } else { return new Boolean(task.isCompleted()); } case 1: return ""; case 2: String priorityString = taskListElement.getPriority().substring(1); return new Integer(priorityString); case 3: return taskListElement.getDescription(true); } } else if (element instanceof AbstractCategory) { AbstractCategory cat = (AbstractCategory) element; switch (columnIndex) { case 0: return new Boolean(false); case 1: return ""; case 2: return ""; case 3: return cat.getDescription(true); } } } catch (Exception e){ MylarPlugin.log(e, e.getMessage()); } return ""; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/a8047aa0760d65d351dc4ad7ce92338f8018e8b5/TaskListView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
2366,
12,
921,
930,
16,
514,
1272,
13,
288,
5411,
775,
95,
202,
540,
202,
474,
14882,
273,
5647,
18,
345,
682,
12,
2827,
1557,
2934,
31806,
12,
4468,
1769,
202,
5411,
309,
261,
2956,
1276,
467,
2174,
682,
1046,
13,
288,
202,
2398,
202,
6385,
467,
2174,
682,
1046,
1562,
682,
1046,
273,
261,
1285,
835,
682,
1046,
13,
2956,
31,
6862,
202,
1285,
835,
1562,
273,
446,
31,
6862,
202,
430,
12,
4146,
682,
1046,
18,
5332,
6217,
17863,
310,
12241,
8163,
2174,
10756,
95,
25083,
202,
4146,
273,
1562,
682,
1046,
18,
588,
17717,
6217,
17863,
310,
2174,
5621,
6862,
202,
97,
6862,
202,
9610,
261,
2827,
1016,
13,
288,
6862,
202,
3593,
374,
30,
25083,
202,
430,
12,
4146,
422,
446,
15329,
6862,
1082,
202,
2463,
394,
3411,
12,
3767,
1769,
25083,
202,
97,
469,
288,
6862,
1082,
202,
2463,
394,
3411,
12,
4146,
18,
291,
9556,
10663,
25083,
202,
97,
6862,
202,
3593,
404,
30,
25083,
202,
2463,
1408,
31,
6862,
202,
3593,
576,
30,
25083,
202,
780,
4394,
780,
273,
1562,
682,
1046,
18,
588,
8183,
7675,
28023,
12,
21,
1769,
25083,
202,
2463,
394,
2144,
12,
8457,
780,
1769,
6862,
202,
3593,
890,
30,
25083,
202,
2463,
1562,
682,
1046,
18,
588,
3291,
12,
3767,
1769,
6862,
202,
97,
9506,
202,
97,
469,
309,
261,
2956,
1276,
4115,
4457,
13,
288,
6862,
202,
7469,
4457,
6573,
273,
261,
7469,
4457,
13,
930,
31,
6862,
202,
9610,
261,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
2366,
12,
921,
930,
16,
514,
1272,
13,
288,
5411,
775,
95,
202,
540,
202,
474,
14882,
273,
5647,
18,
345,
682,
12,
2827,
1557,
2934,
31806,
12,
4468,
1769,
202,
5411,
309,
261,
2956,
1276,
467,
2174,
682,
1046,
13,
288,
202,
2398,
202,
6385,
467,
2174,
682,
1046,
1562,
682,
1046,
273,
261,
1285,
835,
682,
1046,
13,
2956,
31,
6862,
202,
1285,
835,
1562,
273,
446,
31,
6862,
202,
430,
12,
4146,
682,
1046,
18,
5332,
6217,
17863,
310,
12241,
8163,
2174,
10756,
95,
25083,
202,
4146,
273,
1562,
682,
1046,
18,
588,
17717,
6217,
17863,
310,
2174,
5621,
6862,
202,
97,
6862,
202,
9610,
261,
2827,
1016,
13,
288,
6862,
202,
3593,
2
] |
(PsiCodeBlock) PsiTreeUtil.getParentOfType(variable, PsiCodeBlock.class); | PsiTreeUtil.getParentOfType(variable, PsiCodeBlock.class); | private static boolean isImmediatelyReturned(PsiVariable variable) { final PsiCodeBlock containingScope = (PsiCodeBlock) PsiTreeUtil.getParentOfType(variable, PsiCodeBlock.class); if (containingScope == null) { return false; } final PsiDeclarationStatement declarationStatement = (PsiDeclarationStatement) PsiTreeUtil.getParentOfType(variable, PsiDeclarationStatement.class); if (declarationStatement == null) { return false; } PsiStatement nextStatement = null; final PsiStatement[] statements = containingScope.getStatements(); for (int i = 0; i < statements.length - 1; i++) { if (statements[i].equals(declarationStatement)) { nextStatement = statements[i + 1]; } } if (nextStatement == null) { return false; } if (!(nextStatement instanceof PsiReturnStatement)) { return false; } final PsiReturnStatement returnStatement = (PsiReturnStatement) nextStatement; final PsiExpression returnValue = returnStatement.getReturnValue(); if (returnValue == null) { return false; } if (!(returnValue instanceof PsiReferenceExpression)) { return false; } final PsiElement referent = ((PsiReference) returnValue).resolve(); return !(referent == null || !referent.equals(variable)); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/2d46d291193579a7564649b4881c7ea8e02eda5b/UnnecessaryLocalVariableInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/UnnecessaryLocalVariableInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
353,
1170,
7101,
22360,
12,
52,
7722,
3092,
2190,
13,
288,
3639,
727,
453,
7722,
1085,
1768,
4191,
3876,
273,
7734,
453,
7722,
2471,
1304,
18,
588,
3054,
18859,
12,
6105,
16,
453,
7722,
1085,
1768,
18,
1106,
1769,
3639,
309,
261,
1213,
3280,
3876,
422,
446,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
727,
453,
7722,
6094,
3406,
8266,
3406,
273,
7734,
261,
52,
7722,
6094,
3406,
13,
453,
7722,
2471,
1304,
18,
588,
3054,
18859,
12,
6105,
16,
453,
7722,
6094,
3406,
18,
1106,
1769,
3639,
309,
261,
22448,
3406,
422,
446,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
453,
7722,
3406,
1024,
3406,
273,
446,
31,
3639,
727,
453,
7722,
3406,
8526,
6317,
273,
4191,
3876,
18,
588,
14663,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6317,
18,
2469,
300,
404,
31,
277,
27245,
288,
5411,
309,
261,
18393,
63,
77,
8009,
14963,
12,
22448,
3406,
3719,
288,
7734,
1024,
3406,
273,
6317,
63,
77,
397,
404,
15533,
5411,
289,
3639,
289,
3639,
309,
261,
4285,
3406,
422,
446,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
309,
16051,
12,
4285,
3406,
1276,
453,
7722,
990,
3406,
3719,
288,
5411,
327,
629,
31,
3639,
289,
3639,
727,
453,
7722,
990,
3406,
327,
3406,
273,
261,
52,
7722,
990,
3406,
13,
1024,
3406,
31,
3639,
727,
453,
7722,
2300,
7750,
273,
327,
3406,
18,
588,
19092,
5621,
3639,
309,
261,
2463,
620,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
353,
1170,
7101,
22360,
12,
52,
7722,
3092,
2190,
13,
288,
3639,
727,
453,
7722,
1085,
1768,
4191,
3876,
273,
7734,
453,
7722,
2471,
1304,
18,
588,
3054,
18859,
12,
6105,
16,
453,
7722,
1085,
1768,
18,
1106,
1769,
3639,
309,
261,
1213,
3280,
3876,
422,
446,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
727,
453,
7722,
6094,
3406,
8266,
3406,
273,
7734,
261,
52,
7722,
6094,
3406,
13,
453,
7722,
2471,
1304,
18,
588,
3054,
18859,
12,
6105,
16,
453,
7722,
6094,
3406,
18,
1106,
1769,
3639,
309,
261,
22448,
3406,
422,
446,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
453,
7722,
3406,
1024,
3406,
273,
446,
31,
3639,
727,
2
] |
receiver.callMethod(iVisited.getVariableName() + "=", value.toRubyObject()); | receiver.callMethod(iVisited.getVariableName() + "=", value); | public void visitOpAsgnNode(OpAsgnNode iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject value = receiver.callMethod(iVisited.getVariableName()); if (iVisited.getOperatorName().equals("||")) { if (value.isTrue()) { result = value; return; } else { value = eval(iVisited.getValueNode()); } } else if (iVisited.getOperatorName().equals("&&")) { if (!value.isTrue()) { result = value; return; } else { value = eval(iVisited.getValueNode()); } } else { value = value.callMethod(iVisited.getOperatorName(), eval(iVisited.getValueNode()).toRubyObject()); } receiver.callMethod(iVisited.getVariableName() + "=", value.toRubyObject()); result = value; } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/f235ab756f32ea9496f8f880066b46ad95ebb692/EvaluateVisitor.java/clean/org/jruby/evaluator/EvaluateVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
3817,
37,
1055,
82,
907,
12,
3817,
37,
1055,
82,
907,
277,
30019,
13,
288,
3639,
15908,
10340,
921,
5971,
273,
5302,
12,
77,
30019,
18,
588,
12952,
907,
10663,
3639,
15908,
10340,
921,
460,
273,
5971,
18,
1991,
1305,
12,
77,
30019,
18,
588,
21519,
10663,
3639,
309,
261,
77,
30019,
18,
588,
5592,
461,
7675,
14963,
2932,
20081,
6,
3719,
288,
5411,
309,
261,
1132,
18,
291,
5510,
10756,
288,
7734,
563,
273,
460,
31,
7734,
327,
31,
5411,
289,
469,
288,
7734,
460,
273,
5302,
12,
77,
30019,
18,
24805,
907,
10663,
5411,
289,
3639,
289,
469,
309,
261,
77,
30019,
18,
588,
5592,
461,
7675,
14963,
2932,
10,
10,
6,
3719,
288,
5411,
309,
16051,
1132,
18,
291,
5510,
10756,
288,
7734,
563,
273,
460,
31,
7734,
327,
31,
5411,
289,
469,
288,
7734,
460,
273,
5302,
12,
77,
30019,
18,
24805,
907,
10663,
5411,
289,
3639,
289,
469,
288,
5411,
460,
273,
460,
18,
1991,
1305,
12,
77,
30019,
18,
588,
5592,
461,
9334,
5302,
12,
77,
30019,
18,
24805,
907,
1435,
2934,
869,
54,
10340,
921,
10663,
3639,
289,
3639,
5971,
18,
1991,
1305,
12,
77,
30019,
18,
588,
21519,
1435,
397,
9671,
16,
460,
1769,
3639,
563,
273,
460,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
3817,
37,
1055,
82,
907,
12,
3817,
37,
1055,
82,
907,
277,
30019,
13,
288,
3639,
15908,
10340,
921,
5971,
273,
5302,
12,
77,
30019,
18,
588,
12952,
907,
10663,
3639,
15908,
10340,
921,
460,
273,
5971,
18,
1991,
1305,
12,
77,
30019,
18,
588,
21519,
10663,
3639,
309,
261,
77,
30019,
18,
588,
5592,
461,
7675,
14963,
2932,
20081,
6,
3719,
288,
5411,
309,
261,
1132,
18,
291,
5510,
10756,
288,
7734,
563,
273,
460,
31,
7734,
327,
31,
5411,
289,
469,
288,
7734,
460,
273,
5302,
12,
77,
30019,
18,
24805,
907,
10663,
5411,
289,
3639,
289,
469,
309,
261,
77,
30019,
18,
588,
5592,
461,
7675,
14963,
2932,
10,
10,
6,
3719,
2
] |
Subsets and Splits