rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
((EncryptionToken) token).getEncryptionToken(), suite); rpd.setSignatureToken(((SignatureToken) token).getSignatureToken(), suite);
|
((EncryptionToken) token).getEncryptionToken()); rpd.setSignatureToken(((SignatureToken) token).getSignatureToken());
|
private static void symmetricBinding(SymmetricBinding binding, RampartPolicyData rpd) throws WSSPolicyException { Assertion token = binding.getProtectionToken(); AlgorithmSuite suite = binding.getAlgorithmSuite(); if (token != null) { rpd.setProtectionToken(((ProtectionToken)token).getProtectionToken(), suite); } else { token = binding.getEncryptionToken(); Assertion token1 = binding.getSignatureToken(); if (token == null && token1 == null) { // this is an error - throw something } rpd.setEncryptionToken( ((EncryptionToken) token).getEncryptionToken(), suite); rpd.setSignatureToken(((SignatureToken) token).getSignatureToken(), suite); } }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/4821185ddb93fcf5c23239ce2637999764705da6/RampartPolicyBuilder.java/buggy/modules/security/src/org/apache/rampart/policy/RampartPolicyBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
15108,
5250,
12,
29496,
5250,
5085,
16,
5411,
534,
931,
485,
2582,
751,
8715,
72,
13,
1216,
678,
1260,
2582,
503,
288,
3639,
9067,
1147,
273,
5085,
18,
588,
16938,
1345,
5621,
3639,
15067,
13587,
11371,
273,
5085,
18,
588,
6801,
13587,
5621,
3639,
309,
261,
2316,
480,
446,
13,
288,
5411,
8715,
72,
18,
542,
16938,
1345,
12443,
12,
16938,
1345,
13,
2316,
2934,
588,
16938,
1345,
9334,
11371,
1769,
3639,
289,
469,
288,
5411,
1147,
273,
5085,
18,
588,
7894,
1345,
5621,
5411,
9067,
1147,
21,
273,
5085,
18,
588,
5374,
1345,
5621,
5411,
309,
261,
2316,
422,
446,
597,
1147,
21,
422,
446,
13,
288,
7734,
368,
333,
353,
392,
555,
300,
604,
5943,
5411,
289,
5411,
8715,
72,
18,
542,
7894,
1345,
12,
10792,
14015,
7894,
1345,
13,
1147,
2934,
588,
7894,
1345,
9334,
11371,
1769,
5411,
8715,
72,
18,
542,
5374,
1345,
12443,
12,
5374,
1345,
13,
1147,
2934,
588,
5374,
1345,
9334,
10792,
11371,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
15108,
5250,
12,
29496,
5250,
5085,
16,
5411,
534,
931,
485,
2582,
751,
8715,
72,
13,
1216,
678,
1260,
2582,
503,
288,
3639,
9067,
1147,
273,
5085,
18,
588,
16938,
1345,
5621,
3639,
15067,
13587,
11371,
273,
5085,
18,
588,
6801,
13587,
5621,
3639,
309,
261,
2316,
480,
446,
13,
288,
5411,
8715,
72,
18,
542,
16938,
1345,
12443,
12,
16938,
1345,
13,
2316,
2934,
588,
16938,
1345,
9334,
11371,
1769,
3639,
289,
469,
288,
5411,
1147,
273,
5085,
18,
588,
7894,
1345,
5621,
5411,
9067,
1147,
21,
273,
5085,
18,
588,
5374,
1345,
5621,
5411,
309,
261,
2316,
422,
446,
597,
1147,
21,
422,
446,
13,
288,
7734,
368,
333,
353,
392,
555,
300,
2
] |
public String[] getMoney() //test comprator = 6; { setComprator(11); String return_str=new String(""); int oldId = getId(); java.sql.ResultSet oldRs = getRs(); String strIndexConnOfId = new String(""); java.util.ArrayList in = new java.util.ArrayList(); java.util.Iterator it = null; // nova ideq porodena ot fakta 4e pri razdelqneto na stringa i //ako imeto na ednata kletka ima intervali no se polu4ava gre6ka java.util.HashMap Gropes = new java.util.HashMap(); int i = 0; try { registerParameters(); setRs(getCstm().executeQuery()); while(getRs().next()) { Gropes.put(new Integer(getRs().getInt("id_n_money")),new String(getRs().getString("cod_lat_n_money"))); in.add(new Integer(getRs().getInt("id_n_money"))); i++; } } catch(Exception e) { e.printStackTrace(); } setRs(oldRs); setId(oldId); indexMoney = new int[i]; it = in.iterator(); splitNamesM = new String[i]; i=0; while(it.hasNext()) { indexMoney[i] =(Integer) it.next(); splitNamesM[i] = (String) Gropes.get(indexMoney[i]); i++; } return splitNamesM; }
|
12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/dcebcb137cae72183f70dd584cabe1d90b452696/casaOpAdvances.java/buggy/src/imakante/sales/casaOpAdvances.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
780,
8526,
588,
23091,
1435,
759,
3813,
832,
683,
639,
33,
26,
31,
95,
542,
799,
683,
639,
12,
2499,
1769,
780,
2463,
67,
701,
33,
2704,
780,
2932,
8863,
474,
1673,
548,
33,
26321,
5621,
6290,
18,
4669,
18,
13198,
1673,
18880,
33,
588,
18880,
5621,
780,
701,
1016,
3543,
951,
548,
33,
2704,
780,
2932,
8863,
6290,
18,
1367,
18,
19558,
267,
33,
2704,
6290,
18,
1367,
18,
19558,
5621,
6290,
18,
1367,
18,
3198,
305,
33,
2011,
31,
759,
82,
16739,
831,
85,
3831,
369,
24457,
352,
507,
79,
2351,
24,
881,
566,
354,
94,
3771,
85,
2758,
265,
345,
371,
10658,
759,
581,
83,
381,
278,
265,
69,
329,
82,
396,
79,
1810,
79,
4581,
11606,
1125,
267,
2584,
3915,
89,
24,
842,
346,
266,
26,
79,
4365,
1629,
18,
1367,
18,
8658,
43,
1764,
281,
33,
2704,
6290,
18,
1367,
18,
8658,
5621,
474,
77,
33,
20,
31,
698,
95,
4861,
2402,
5621,
542,
18880,
12,
588,
39,
334,
81,
7675,
8837,
1138,
10663,
17523,
12,
588,
18880,
7675,
4285,
10756,
95,
43,
1764,
281,
18,
458,
12,
2704,
4522,
12,
588,
18880,
7675,
588,
1702,
2932,
350,
67,
82,
67,
2586,
402,
7923,
3631,
2704,
780,
12,
588,
18880,
7675,
588,
780,
2932,
1559,
67,
4801,
67,
82,
67,
2586,
402,
6,
3719,
1769,
267,
18,
1289,
12,
2704,
4522,
12,
588,
18880,
7675,
588,
1702,
2932,
350,
67,
82,
67,
2586,
402,
6,
3719,
1769,
77,
9904,
31,
9090,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
780,
8526,
588,
23091,
1435,
759,
3813,
832,
683,
639,
33,
26,
31,
95,
542,
799,
683,
639,
12,
2499,
1769,
780,
2463,
67,
701,
33,
2704,
780,
2932,
8863,
474,
1673,
548,
33,
26321,
5621,
6290,
18,
4669,
18,
13198,
1673,
18880,
33,
588,
18880,
5621,
780,
701,
1016,
3543,
951,
548,
33,
2704,
780,
2932,
8863,
6290,
18,
1367,
18,
19558,
267,
33,
2704,
6290,
18,
1367,
18,
19558,
5621,
6290,
18,
1367,
18,
3198,
305,
33,
2011,
31,
759,
82,
16739,
831,
85,
3831,
369,
24457,
352,
507,
79,
2351,
24,
881,
566,
354,
94,
3771,
85,
2758,
265,
345,
371,
10658,
759,
581,
83,
381,
278,
265,
69,
329,
82,
396,
79,
1810,
79,
2
] |
||
return parentModule;
|
if (cref.getNext() == null) { return null; } return (RubyModule)cref.getNext().getValue();
|
public RubyModule getParent() { return parentModule; }
|
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/a1b8fc1d456e3d5c6e01579b88773383068aa85c/RubyModule.java/buggy/src/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
5089,
1435,
288,
377,
202,
430,
261,
71,
1734,
18,
588,
2134,
1435,
422,
446,
13,
288,
327,
446,
31,
289,
225,
327,
261,
54,
10340,
3120,
13,
71,
1734,
18,
588,
2134,
7675,
24805,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
5089,
1435,
288,
377,
202,
430,
261,
71,
1734,
18,
588,
2134,
1435,
422,
446,
13,
288,
327,
446,
31,
289,
225,
327,
261,
54,
10340,
3120,
13,
71,
1734,
18,
588,
2134,
7675,
24805,
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
] |
parseFieldTypeSignature(it, buf);
|
else { if (it.current() == '+' || it.current() == '-') { parseWildcardIndicator(it, buf); } parseFieldTypeSignature(it, buf); }
|
public void parseTypeArgument(CharacterIterator it, final StringBuffer buf) throws SignatureParsingException { if (it.current() == '+' || it.current() == '-') { parseWildcardIndicator(it, buf); } parseFieldTypeSignature(it, buf); }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/909f408e60f3ac8f0c98cda06f26a7d6196dae7d/SignatureParser.java/clean/compiler/impl/com/intellij/compiler/classParsing/SignatureParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1109,
559,
1379,
12,
7069,
3198,
518,
16,
727,
6674,
1681,
13,
1216,
9249,
13963,
503,
288,
565,
309,
261,
305,
18,
2972,
1435,
422,
10058,
747,
518,
18,
2972,
1435,
422,
4014,
13,
288,
1377,
1109,
12121,
13140,
12,
305,
16,
1681,
1769,
565,
289,
565,
469,
288,
309,
261,
305,
18,
2972,
1435,
422,
10058,
747,
518,
18,
2972,
1435,
422,
4014,
13,
288,
1109,
12121,
13140,
12,
305,
16,
1681,
1769,
289,
1109,
13715,
5374,
12,
305,
16,
1681,
1769,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1109,
559,
1379,
12,
7069,
3198,
518,
16,
727,
6674,
1681,
13,
1216,
9249,
13963,
503,
288,
565,
309,
261,
305,
18,
2972,
1435,
422,
10058,
747,
518,
18,
2972,
1435,
422,
4014,
13,
288,
1377,
1109,
12121,
13140,
12,
305,
16,
1681,
1769,
565,
289,
565,
469,
288,
309,
261,
305,
18,
2972,
1435,
422,
10058,
747,
518,
18,
2972,
1435,
422,
4014,
13,
288,
1109,
12121,
13140,
12,
305,
16,
1681,
1769,
289,
1109,
13715,
5374,
12,
305,
16,
1681,
1769,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (jj_3R_85()) return true; if (jj_3R_63()) return true; if (jj_scan_token(IDENTIFIER)) return true; if (jj_scan_token(COLON)) return true;
|
if (jj_3R_68()) return true;
|
final private boolean jj_3_43() { if (jj_3R_85()) return true; if (jj_3R_63()) return true; if (jj_scan_token(IDENTIFIER)) return true; if (jj_scan_token(COLON)) return true; return false; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/2c4cc3303f04cdb3883f34b25cfe841b0bdf1fb5/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
67,
8942,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
7140,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
4449,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
4935,
673,
3719,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
67,
8942,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
7140,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
4449,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
4935,
673,
3719,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
protected void growReactionArray() {
|
private void growReactionArray() {
|
protected void growReactionArray() { growArraySize = reactions.length; Reaction[] newreactions = new Reaction[reactions.length + growArraySize]; System.arraycopy(reactions, 0, newreactions, 0, reactions.length); reactions = newreactions; }
|
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/dc6b64d8eb0fb0511a68798ee9429e207254084c/SetOfReactions.java/buggy/src/org/openscience/cdk/SetOfReactions.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
13334,
21581,
1076,
1435,
288,
202,
202,
75,
492,
1076,
1225,
273,
28389,
18,
2469,
31,
202,
202,
21581,
8526,
394,
266,
4905,
273,
394,
868,
1128,
63,
266,
4905,
18,
2469,
397,
13334,
1076,
1225,
15533,
202,
202,
3163,
18,
1126,
3530,
12,
266,
4905,
16,
374,
16,
394,
266,
4905,
16,
374,
16,
28389,
18,
2469,
1769,
202,
202,
266,
4905,
273,
394,
266,
4905,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
13334,
21581,
1076,
1435,
288,
202,
202,
75,
492,
1076,
1225,
273,
28389,
18,
2469,
31,
202,
202,
21581,
8526,
394,
266,
4905,
273,
394,
868,
1128,
63,
266,
4905,
18,
2469,
397,
13334,
1076,
1225,
15533,
202,
202,
3163,
18,
1126,
3530,
12,
266,
4905,
16,
374,
16,
394,
266,
4905,
16,
374,
16,
28389,
18,
2469,
1769,
202,
202,
266,
4905,
273,
394,
266,
4905,
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
] |
if(fs.get("IgnoreDS").equalsIgnoreCase("true")){ ignoreDS=true; }else{ ignoreDS=false; } if(fs.get("DSOnly").equalsIgnoreCase("true")){ dsOnly=true; }else{ dsOnly=false; }
|
ignoreDS = Fields.stringToBool(fs.get("IgnoreDS"), false); dsOnly = Fields.stringToBool(fs.get("DSOnly"), false);
|
public ClientGetMessage(SimpleFieldSet fs) throws MessageInvalidException { short defaultPriority; if(fs.get("IgnoreDS").equalsIgnoreCase("true")){ ignoreDS=true; }else{ ignoreDS=false; } if(fs.get("DSOnly").equalsIgnoreCase("true")){ dsOnly=true; }else{ dsOnly=false; } identifier = fs.get("Identifier"); if(identifier == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No Identifier", null); try { uri = new FreenetURI(fs.get("URI")); } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.URI_PARSE_ERROR, e.getMessage(), identifier); } String verbosityString = fs.get("Verbosity"); if(verbosityString == null) verbosity = 0; else { try { verbosity = Integer.parseInt(verbosityString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Verbosity field: "+e.getMessage(), identifier); } } String returnTypeString = fs.get("ReturnType"); if(returnTypeString == null || returnTypeString.equalsIgnoreCase("direct")) { returnType = RETURN_TYPE_DIRECT; diskFile = null; tempFile = null; // default just below fproxy defaultPriority = RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS; } else if(returnTypeString.equalsIgnoreCase("none")) { diskFile = null; tempFile = null; returnType = RETURN_TYPE_NONE; defaultPriority = RequestStarter.PREFETCH_PRIORITY_CLASS; } else if(returnTypeString.equalsIgnoreCase("disk")) { defaultPriority = RequestStarter.BULK_SPLITFILE_PRIORITY_CLASS; returnType = RETURN_TYPE_DISK; String filename = fs.get("Filename"); if(filename == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Missing Filename", identifier); diskFile = new File(filename); String tempFilename = fs.get("TempFilename"); if(tempFilename == null) tempFilename = filename + ".freenet-tmp"; tempFile = new File(tempFilename); if(!diskFile.getParentFile().equals(tempFile.getParentFile())) throw new MessageInvalidException(ProtocolErrorMessage.FILENAME_AND_TEMP_FILENAME_MUST_BE_IN_SAME_DIR, null, identifier); if(diskFile.exists()) throw new MessageInvalidException(ProtocolErrorMessage.DISK_TARGET_EXISTS, null, identifier); try { if(!tempFile.createNewFile()) throw new MessageInvalidException(ProtocolErrorMessage.COULD_NOT_CREATE_FILE, null, identifier); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.COULD_NOT_CREATE_FILE, e.getMessage(), identifier); } } else throw new MessageInvalidException(ProtocolErrorMessage.MESSAGE_PARSE_ERROR, "Unknown return-type", identifier); String maxSizeString = fs.get("MaxSize"); if(maxSizeString == null) // default to unlimited maxSize = Long.MAX_VALUE; else { try { maxSize = Long.parseLong(maxSizeString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } String maxTempSizeString = fs.get("MaxTempSize"); if(maxTempSizeString == null) // default to unlimited maxTempSize = Long.MAX_VALUE; else { try { maxTempSize = Long.parseLong(maxTempSizeString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } String maxRetriesString = fs.get("MaxRetries"); if(maxRetriesString == null) // default to 0 maxRetries = 0; else { try { maxRetries = Integer.parseInt(maxRetriesString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } String priorityString = fs.get("PriorityClass"); if(priorityString == null) { // defaults to the one just below fproxy priorityClass = defaultPriority; } else { try { priorityClass = Short.parseShort(priorityString, 10); if(priorityClass < RequestStarter.MAXIMUM_PRIORITY_CLASS || priorityClass > RequestStarter.MINIMUM_PRIORITY_CLASS) throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Valid priorities are from "+RequestStarter.MAXIMUM_PRIORITY_CLASS+" to "+RequestStarter.MINIMUM_PRIORITY_CLASS, identifier); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing PriorityClass field: "+e.getMessage(), identifier); } } }
|
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/c76e66320637c9e8c51b294047e6cecb45bc9066/ClientGetMessage.java/clean/src/freenet/node/fcp/ClientGetMessage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
967,
1079,
12,
5784,
974,
694,
2662,
13,
1216,
2350,
1941,
503,
288,
202,
202,
6620,
805,
8183,
31,
202,
202,
430,
12,
2556,
18,
588,
2932,
3777,
3948,
20387,
14963,
5556,
2932,
3767,
6,
3719,
95,
1082,
202,
6185,
3948,
33,
3767,
31,
202,
202,
97,
12107,
95,
1082,
202,
6185,
3948,
33,
5743,
31,
202,
202,
97,
202,
202,
430,
12,
2556,
18,
588,
2932,
3948,
3386,
20387,
14963,
5556,
2932,
3767,
6,
3719,
95,
1082,
202,
2377,
3386,
33,
3767,
31,
202,
202,
97,
12107,
95,
1082,
202,
2377,
3386,
33,
5743,
31,
202,
202,
97,
202,
202,
5644,
273,
2662,
18,
588,
2932,
3004,
8863,
202,
202,
430,
12,
5644,
422,
446,
13,
1082,
202,
12849,
394,
2350,
1941,
503,
12,
5752,
14935,
18,
19466,
67,
6776,
16,
315,
2279,
10333,
3113,
446,
1769,
202,
202,
698,
288,
1082,
202,
1650,
273,
394,
478,
2842,
278,
3098,
12,
2556,
18,
588,
2932,
3098,
7923,
1769,
202,
202,
97,
1044,
261,
18695,
20160,
425,
13,
288,
1082,
202,
12849,
394,
2350,
1941,
503,
12,
5752,
14935,
18,
3098,
67,
21045,
67,
3589,
16,
425,
18,
24906,
9334,
2756,
1769,
202,
202,
97,
202,
202,
780,
11561,
780,
273,
2662,
18,
588,
2932,
30594,
8863,
202,
202,
430,
12,
16629,
8807,
780,
422,
446,
13,
1082,
202,
16629,
8807,
273,
374,
31,
202,
202,
12107,
288,
1082,
202,
698,
288,
9506,
202,
16629,
8807,
273,
2144,
18,
2670,
1702,
12,
16629,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
967,
1079,
12,
5784,
974,
694,
2662,
13,
1216,
2350,
1941,
503,
288,
202,
202,
6620,
805,
8183,
31,
202,
202,
430,
12,
2556,
18,
588,
2932,
3777,
3948,
20387,
14963,
5556,
2932,
3767,
6,
3719,
95,
1082,
202,
6185,
3948,
33,
3767,
31,
202,
202,
97,
12107,
95,
1082,
202,
6185,
3948,
33,
5743,
31,
202,
202,
97,
202,
202,
430,
12,
2556,
18,
588,
2932,
3948,
3386,
20387,
14963,
5556,
2932,
3767,
6,
3719,
95,
1082,
202,
2377,
3386,
33,
3767,
31,
202,
202,
97,
12107,
95,
1082,
202,
2377,
3386,
33,
5743,
31,
202,
202,
97,
202,
202,
5644,
273,
2662,
18,
588,
2932,
3004,
8863,
202,
202,
430,
12,
5644,
422,
2
] |
if ( isCreationMatch && ConcoctionsDatabase.getMixingMethod( itemId ) == ItemCreationRequest.NOCREATE ) continue;
|
if ( isCreationMatch && ConcoctionsDatabase.getMixingMethod( itemId ) == ItemCreationRequest.NOCREATE && itemId != ItemCreationRequest.MEAT_PASTE && itemId != ItemCreationRequest.MEAT_STACK && itemId != ItemCreationRequest.DENSE_STACK ) continue;
|
public static int getFirstMatchingItemId( List nameList ) { if ( nameList.isEmpty() ) return -1; String [] nameArray = new String[ nameList.size() ]; nameList.toArray( nameArray ); int shortestIndex = -1; boolean npcStoreMatch = false; int shortestLength = Integer.MAX_VALUE; int itemId; for ( int i = 0; i < nameArray.length; ++i ) { itemId = TradeableItemDatabase.getItemId( nameArray[i] ); if ( isCreationMatch && ConcoctionsDatabase.getMixingMethod( itemId ) == ItemCreationRequest.NOCREATE ) continue; if ( NPCStoreDatabase.contains( nameArray[i], false ) ) { if ( !npcStoreMatch ) { npcStoreMatch = true; shortestIndex = i; shortestLength = nameArray[i].length(); } else if ( nameArray[i].length() < shortestLength ) { shortestIndex = i; shortestLength = nameArray[i].length(); } } if ( !npcStoreMatch && nameArray[i].length() < shortestLength ) { shortestIndex = i; shortestLength = nameArray[i].length(); } } return shortestIndex == -1 ? -1 : TradeableItemDatabase.getItemId( nameArray[ shortestIndex ] ); }
|
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/f4b2cef0b09c3e65f5244f50f2d1ccad31894712/KoLmafiaCLI.java/buggy/src/net/sourceforge/kolmafia/KoLmafiaCLI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
7521,
9517,
17673,
12,
987,
508,
682,
262,
202,
95,
202,
202,
430,
261,
508,
682,
18,
291,
1921,
1435,
262,
1082,
202,
2463,
300,
21,
31,
202,
202,
780,
5378,
508,
1076,
273,
394,
514,
63,
508,
682,
18,
1467,
1435,
308,
31,
202,
202,
529,
682,
18,
31447,
12,
508,
1076,
11272,
202,
202,
474,
20579,
1016,
273,
300,
21,
31,
202,
202,
6494,
1130,
71,
2257,
2060,
273,
629,
31,
202,
202,
474,
20579,
1782,
273,
2144,
18,
6694,
67,
4051,
31,
202,
202,
474,
18424,
31,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
508,
1076,
18,
2469,
31,
965,
77,
262,
202,
202,
95,
1082,
202,
1726,
548,
273,
2197,
323,
429,
1180,
4254,
18,
588,
17673,
12,
508,
1076,
63,
77,
65,
11272,
1082,
202,
430,
261,
353,
9906,
2060,
597,
735,
2894,
349,
87,
4254,
18,
588,
21294,
310,
1305,
12,
18424,
262,
422,
4342,
9906,
691,
18,
3417,
9344,
262,
9506,
202,
17143,
31,
1082,
202,
430,
261,
423,
3513,
2257,
4254,
18,
12298,
12,
508,
1076,
63,
77,
6487,
629,
262,
262,
1082,
202,
95,
9506,
202,
430,
261,
401,
82,
2436,
2257,
2060,
262,
9506,
202,
95,
6862,
202,
82,
2436,
2257,
2060,
273,
638,
31,
6862,
202,
6620,
395,
1016,
273,
277,
31,
6862,
202,
6620,
395,
1782,
273,
508,
1076,
63,
77,
8009,
2469,
5621,
9506,
202,
97,
9506,
202,
12107,
309,
261,
508,
1076,
63,
77,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
7521,
9517,
17673,
12,
987,
508,
682,
262,
202,
95,
202,
202,
430,
261,
508,
682,
18,
291,
1921,
1435,
262,
1082,
202,
2463,
300,
21,
31,
202,
202,
780,
5378,
508,
1076,
273,
394,
514,
63,
508,
682,
18,
1467,
1435,
308,
31,
202,
202,
529,
682,
18,
31447,
12,
508,
1076,
11272,
202,
202,
474,
20579,
1016,
273,
300,
21,
31,
202,
202,
6494,
1130,
71,
2257,
2060,
273,
629,
31,
202,
202,
474,
20579,
1782,
273,
2144,
18,
6694,
67,
4051,
31,
202,
202,
474,
18424,
31,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
508,
1076,
18,
2469,
31,
965,
77,
262,
202,
202,
95,
1082,
202,
2
] |
TaskListManager manager = MylarTaskListPlugin.getTaskListManager();
|
TaskListManager manager = TasksUiPlugin.getTaskListManager();
|
public void testLocalBugUnqual() throws InterruptedException { lists.clear(); String bugPrefix = "<server>-"; // TaskList t = MylarTaskListPlugin.getTaskListManager().getTaskList(); // MylarTaskListPlugin.getTaskListManager().setTaskList(t); TaskListManager manager = MylarTaskListPlugin.getTaskListManager(); TaskCategory cat = new TaskCategory("Testing Category", manager.getTaskList()); manager.getTaskList().addCategory(cat); BugzillaTask bugTask1 = new BugzillaTask(bugPrefix + 94185, "<bugzilla info>", true); manager.getTaskList().moveToContainer(cat, bugTask1); // cat.addTask(bugTask1); while (bugTask1.isSynchronizing()) { Thread.sleep(500); } BugzillaTask bugTask2 = new BugzillaTask(bugPrefix + 3692, "<bugzilla info>", true); manager.getTaskList().moveToContainer(cat, bugTask2); // cat.addTask(bugTask2); while (bugTask2.isSynchronizing()) { Thread.sleep(500); } BugzillaTask bugTask3 = new BugzillaTask(bugPrefix + 3693, "<bugzilla info>", true); manager.getTaskList().moveToContainer(cat, bugTask3); // cat.addTask(bugTask3); while (bugTask3.isSynchronizing()) { Thread.sleep(500); } BugzillaTask bugTask4 = new BugzillaTask(bugPrefix + 9583, "<bugzilla info>", true); manager.getTaskList().moveToContainer(cat, bugTask4); // cat.addTask(bugTask4); while (bugTask4.isSynchronizing()) { Thread.sleep(500); } BugzillaMylarSearch s = new BugzillaMylarSearch(BugzillaMylarSearch.LOCAL_UNQUAL, astNodeType, IBugzillaConstants.ECLIPSE_BUGZILLA_URL); IActiveSearchListener l = new IActiveSearchListener() { private boolean gathered = false; public void searchCompleted(List<?> results) { lists.add(results); gathered = true; } public boolean resultsGathered() { return gathered; } }; // perform the search SearchPluginTestHelper.search(s, l); // do an inital search assertTrue("No collectors returned", lists.size() != 0); List<?> c = lists.get(0); assertEquals("Results not the right size", 3, c.size()); MylarBugsManager.getBridge().removeFromLandmarksHash(astNodeType); MylarTaskListPlugin.getTaskListManager().getTaskList().deleteCategory(cat); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b23efbfef800ff6f85224f036d6a11e9fab7acba/BugzillaActiveSearchTest.java/buggy/sandbox/org.eclipse.mylyn.sandbox.ui/testsrc/org/eclipse/mylyn/sandbox/tests/BugzillaActiveSearchTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2042,
19865,
984,
3369,
1435,
1216,
7558,
288,
202,
202,
9772,
18,
8507,
5621,
202,
202,
780,
7934,
2244,
273,
3532,
3567,
34,
10951,
31,
202,
202,
759,
3837,
682,
268,
273,
8005,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
7675,
588,
2174,
682,
5621,
202,
202,
759,
8005,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
7675,
542,
2174,
682,
12,
88,
1769,
202,
202,
2174,
682,
1318,
3301,
273,
8005,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
5621,
202,
202,
2174,
4457,
6573,
273,
394,
3837,
4457,
2932,
22218,
9856,
3113,
3301,
18,
588,
2174,
682,
10663,
202,
202,
4181,
18,
588,
2174,
682,
7675,
1289,
4457,
12,
2574,
1769,
202,
202,
19865,
15990,
2174,
7934,
2174,
21,
273,
394,
16907,
15990,
2174,
12,
925,
2244,
397,
31069,
30489,
16,
3532,
925,
15990,
1123,
2984,
16,
638,
1769,
202,
202,
4181,
18,
588,
2174,
682,
7675,
8501,
774,
2170,
12,
2574,
16,
7934,
2174,
21,
1769,
202,
202,
759,
6573,
18,
1289,
2174,
12,
925,
2174,
21,
1769,
202,
202,
17523,
261,
925,
2174,
21,
18,
291,
19298,
6894,
10756,
288,
1082,
202,
3830,
18,
19607,
12,
12483,
1769,
202,
202,
97,
202,
202,
19865,
15990,
2174,
7934,
2174,
22,
273,
394,
16907,
15990,
2174,
12,
925,
2244,
397,
6580,
9975,
16,
3532,
925,
15990,
1123,
2984,
16,
638,
1769,
202,
202,
4181,
18,
588,
2174,
682,
7675,
8501,
774,
2170,
12,
2574,
16,
7934,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2042,
19865,
984,
3369,
1435,
1216,
7558,
288,
202,
202,
9772,
18,
8507,
5621,
202,
202,
780,
7934,
2244,
273,
3532,
3567,
34,
10951,
31,
202,
202,
759,
3837,
682,
268,
273,
8005,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
7675,
588,
2174,
682,
5621,
202,
202,
759,
8005,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
7675,
542,
2174,
682,
12,
88,
1769,
202,
202,
2174,
682,
1318,
3301,
273,
8005,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
5621,
202,
202,
2174,
4457,
6573,
273,
394,
3837,
4457,
2932,
22218,
9856,
3113,
3301,
18,
588,
2174,
682,
10663,
202,
202,
4181,
18,
588,
2174,
682,
7675,
1289,
4457,
2
] |
}
|
}
|
public void setProperty(String key, Object value) { props.put(key,value); }
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/13168fa7577466c5b01ad958d75ece97ed20b547/Mode.java/buggy/org/gjt/sp/jedit/Mode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7486,
12,
780,
498,
16,
1033,
460,
13,
202,
95,
202,
202,
9693,
18,
458,
12,
856,
16,
1132,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7486,
12,
780,
498,
16,
1033,
460,
13,
202,
95,
202,
202,
9693,
18,
458,
12,
856,
16,
1132,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if( m_errorListener != null ) { try { m_errorListener.fatalError( new TransformerException(se) ); } catch( TransformerException ex1 ) { throw new TransformerConfigurationException( ex1 );
|
if (m_errorListener != null) { try { m_errorListener.fatalError(new TransformerException(se));
|
public Templates newTemplates(Source source) throws TransformerConfigurationException { TemplatesHandler builder = newTemplatesHandler(); String baseID = source.getSystemId(); if (null == baseID) { try { String currentDir = System.getProperty("user.dir"); baseID = "file:///" + currentDir + java.io.File.separatorChar + source.getClass().getName(); } catch (SecurityException se) { // For untrusted applet case, user.dir is outside the sandbox // and not accessible: just leave baseID as null (-sb & -sc) } } else { try { baseID = SystemIDResolver.getAbsoluteURI(baseID); } catch(TransformerException te) { throw new TransformerConfigurationException(te); } } builder.setSystemId(baseID); if (source instanceof DOMSource) { DOMSource dsource = (DOMSource) source; Node node = dsource.getNode(); if (null != node) return processFromNode(node, baseID); else { String messageStr = XSLMessages.createMessage(XSLTErrorResources.ER_ILLEGAL_DOMSOURCE_INPUT, null); throw new IllegalArgumentException(messageStr); } } try { InputSource isource = SAXSource.sourceToInputSource(source); XMLReader reader = null; if (source instanceof SAXSource) reader = ((SAXSource) source).getXMLReader(); if (null == reader) { // Use JAXP1.1 ( if possible ) try { javax.xml.parsers.SAXParserFactory factory = javax.xml.parsers.SAXParserFactory.newInstance(); factory.setNamespaceAware(true); javax.xml.parsers.SAXParser jaxpParser = factory.newSAXParser(); reader = jaxpParser.getXMLReader(); } catch (javax.xml.parsers.ParserConfigurationException ex) { throw new org.xml.sax.SAXException(ex); } catch (javax.xml.parsers.FactoryConfigurationError ex1) { throw new org.xml.sax.SAXException(ex1.toString()); } catch (NoSuchMethodError ex2){} catch (AbstractMethodError ame){} } if (null == reader) reader = XMLReaderFactory.createXMLReader(); // If you set the namespaces to true, we'll end up getting double // xmlns attributes. Needs to be fixed. -sb // reader.setFeature("http://xml.org/sax/features/namespace-prefixes", true); try { reader.setFeature("http://apache.org/xml/features/validation/dynamic", true); } catch (org.xml.sax.SAXException ex) { // feature not recognized } reader.setContentHandler(builder); reader.parse(isource); } catch (IOException ioe) { if( m_errorListener != null ) { try { m_errorListener.fatalError( new TransformerException(ioe) ); return null; } catch( TransformerException ex1 ) { throw new TransformerConfigurationException( ex1 ); } } else throw new TransformerConfigurationException(ioe.getMessage(), ioe); } catch (org.xml.sax.SAXException se) { if( m_errorListener != null ) { try { m_errorListener.fatalError( new TransformerException(se) ); } catch( TransformerException ex1 ) { throw new TransformerConfigurationException( ex1 ); } } else throw new TransformerConfigurationException(se.getMessage(), se); } return builder.getTemplates(); }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/322b00d9e5d3d0c55b4a161f76257bec656fb3b2/TransformerFactoryImpl.java/clean/src/org/apache/xalan/processor/TransformerFactoryImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
26212,
394,
8218,
12,
1830,
1084,
13,
1850,
1216,
11519,
10737,
225,
288,
565,
26212,
1503,
2089,
273,
394,
8218,
1503,
5621,
565,
514,
1026,
734,
273,
1084,
18,
588,
3163,
548,
5621,
565,
309,
261,
2011,
422,
1026,
734,
13,
565,
288,
1377,
775,
1377,
288,
3639,
514,
783,
1621,
273,
2332,
18,
588,
1396,
2932,
1355,
18,
1214,
8863,
3639,
1026,
734,
273,
315,
768,
2207,
4898,
397,
783,
1621,
397,
2252,
18,
1594,
18,
812,
18,
11287,
2156,
1171,
397,
1084,
18,
588,
797,
7675,
17994,
5621,
2868,
289,
1377,
1044,
261,
24918,
695,
13,
1377,
288,
3639,
368,
2457,
640,
25247,
21853,
648,
16,
729,
18,
1214,
353,
8220,
326,
15202,
540,
368,
225,
471,
486,
12718,
30,
2537,
8851,
1026,
734,
487,
446,
24927,
18366,
473,
300,
1017,
13,
1377,
289,
565,
289,
565,
469,
565,
288,
1377,
775,
1377,
288,
3639,
1026,
734,
273,
2332,
734,
4301,
18,
588,
10368,
3098,
12,
1969,
734,
1769,
1377,
289,
1377,
1044,
12,
8319,
503,
6489,
13,
1377,
288,
3639,
604,
394,
11519,
10737,
12,
736,
1769,
1377,
289,
565,
289,
565,
2089,
18,
542,
3163,
548,
12,
1969,
734,
1769,
565,
309,
261,
3168,
1276,
4703,
1830,
13,
565,
288,
1377,
4703,
1830,
302,
3168,
273,
261,
8168,
1830,
13,
1084,
31,
1377,
2029,
756,
273,
302,
3168,
18,
588,
907,
5621,
1377,
309,
261,
2011,
480,
756,
13,
3639,
327,
1207,
28570,
12,
2159,
16,
1026,
734,
1769,
1377,
469,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26212,
394,
8218,
12,
1830,
1084,
13,
1850,
1216,
11519,
10737,
225,
288,
565,
26212,
1503,
2089,
273,
394,
8218,
1503,
5621,
565,
514,
1026,
734,
273,
1084,
18,
588,
3163,
548,
5621,
565,
309,
261,
2011,
422,
1026,
734,
13,
565,
288,
1377,
775,
1377,
288,
3639,
514,
783,
1621,
273,
2332,
18,
588,
1396,
2932,
1355,
18,
1214,
8863,
3639,
1026,
734,
273,
315,
768,
2207,
4898,
397,
783,
1621,
397,
2252,
18,
1594,
18,
812,
18,
11287,
2156,
1171,
397,
1084,
18,
588,
797,
7675,
17994,
5621,
2868,
289,
1377,
1044,
261,
24918,
695,
13,
1377,
288,
3639,
368,
2457,
640,
25247,
21853,
648,
16,
729,
18,
1214,
353,
8220,
326,
15202,
540,
368,
2
] |
if (getActiveFileName() == null) {
|
if (getNewActiveFileName() == null) {
|
public void start() { // set the LR for our utility object util.setContext(this.context); compress.setContext(this.context); if (fileNamePatternStr != null) { fileNamePattern = new FileNamePattern(fileNamePatternStr, this.context); determineCompressionMode(); } else { addWarn(FNP_NOT_SET); addWarn(SEE_FNP_NOT_SET); throw new IllegalStateException(FNP_NOT_SET + SEE_FNP_NOT_SET); } // if (activeFileName == null) { if (getActiveFileName() == null) { addWarn("The ActiveFile name option must be set before using this rolling policy."); throw new IllegalStateException("The ActiveFileName option must be set."); } if (maxIndex < minIndex) { addWarn("MaxIndex (" + maxIndex + ") cannot be smaller than MinIndex (" + minIndex + ")."); addWarn("Setting maxIndex to equal minIndex."); maxIndex = minIndex; } if ((maxIndex - minIndex) > MAX_WINDOW_SIZE) { addWarn("Large window sizes are not allowed."); maxIndex = minIndex + MAX_WINDOW_SIZE; addWarn("MaxIndex reduced to " + maxIndex); } IntegerTokenConverter itc = fileNamePattern.getIntegerTokenConverter(); if (itc == null) { throw new IllegalStateException("FileNamePattern [" + fileNamePattern.getPattern() + "] does not contain a valid IntegerToken"); } }
|
49426 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49426/622bfacdcef9be0e8fc4869655a7b58da0f2b96b/FixedWindowRollingPolicy.java/buggy/logback-core/src/main/java/ch/qos/logback/core/rolling/FixedWindowRollingPolicy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
787,
1435,
288,
565,
368,
444,
326,
511,
54,
364,
3134,
12788,
733,
565,
1709,
18,
542,
1042,
12,
2211,
18,
2472,
1769,
565,
8099,
18,
542,
1042,
12,
2211,
18,
2472,
1769,
565,
309,
261,
17812,
3234,
1585,
480,
446,
13,
288,
1377,
3968,
3234,
273,
394,
25075,
3234,
12,
17812,
3234,
1585,
16,
333,
18,
2472,
1769,
1377,
4199,
15270,
2309,
5621,
565,
289,
469,
288,
1377,
527,
3160,
12,
19793,
52,
67,
4400,
67,
4043,
1769,
1377,
527,
3160,
12,
1090,
41,
67,
19793,
52,
67,
4400,
67,
4043,
1769,
1377,
604,
394,
5477,
12,
19793,
52,
67,
4400,
67,
4043,
397,
3174,
41,
67,
19793,
52,
67,
4400,
67,
4043,
1769,
565,
289,
565,
368,
309,
261,
3535,
4771,
422,
446,
13,
288,
565,
309,
261,
588,
1908,
3896,
4771,
1435,
422,
446,
13,
288,
1377,
527,
3160,
2932,
1986,
8857,
812,
508,
1456,
1297,
506,
444,
1865,
1450,
333,
21793,
3329,
1199,
1769,
1377,
604,
394,
5477,
2932,
1986,
8857,
4771,
1456,
1297,
506,
444,
1199,
1769,
565,
289,
565,
309,
261,
1896,
1016,
411,
1131,
1016,
13,
288,
1377,
527,
3160,
2932,
2747,
1016,
7566,
397,
30764,
397,
9369,
2780,
506,
10648,
2353,
5444,
1016,
7566,
1850,
397,
1131,
1016,
397,
9369,
1199,
1769,
1377,
527,
3160,
2932,
5568,
30764,
358,
3959,
1131,
1016,
1199,
1769,
1377,
30764,
273,
1131,
1016,
31,
565,
289,
565,
309,
14015,
1896,
1016,
300,
1131,
1016,
13,
405,
4552,
67,
23407,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
787,
1435,
288,
565,
368,
444,
326,
511,
54,
364,
3134,
12788,
733,
565,
1709,
18,
542,
1042,
12,
2211,
18,
2472,
1769,
565,
8099,
18,
542,
1042,
12,
2211,
18,
2472,
1769,
565,
309,
261,
17812,
3234,
1585,
480,
446,
13,
288,
1377,
3968,
3234,
273,
394,
25075,
3234,
12,
17812,
3234,
1585,
16,
333,
18,
2472,
1769,
1377,
4199,
15270,
2309,
5621,
565,
289,
469,
288,
1377,
527,
3160,
12,
19793,
52,
67,
4400,
67,
4043,
1769,
1377,
527,
3160,
12,
1090,
41,
67,
19793,
52,
67,
4400,
67,
4043,
1769,
1377,
604,
394,
5477,
12,
19793,
52,
67,
4400,
67,
4043,
397,
3174,
41,
67,
19793,
52,
67,
4400,
67,
4043,
1769,
565,
2
] |
if (BeansObservables.DEBUG) { Policy .getLog() .log( new Status( IStatus.WARNING, Policy.JFACE_DATABINDING, "Could not remove listener from " + object, e)); }
|
protected void lastListenerRemoved() { if (listener != null) { Method removePropertyChangeListenerMethod = null; try { removePropertyChangeListenerMethod = object.getClass() .getMethod( "removePropertyChangeListener", //$NON-NLS-1$ new Class[] { String.class, PropertyChangeListener.class }); } catch (SecurityException e) { // best effort - ignore } catch (NoSuchMethodException e) { // best effort - ignore } if (removePropertyChangeListenerMethod != null) { try { removePropertyChangeListenerMethod.invoke(object, new Object[] { propertyDescriptor.getName(), listener }); } catch (IllegalArgumentException e) { // best effort - ignore } catch (IllegalAccessException e) { // best effort - ignore } catch (InvocationTargetException e) { // best effort - ignore } } // set listener to null because we are no longer listening listener = null; } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/bc7d47fb503d7f8b2b5ed9c8f42855e2e9384979/JavaBeanObservableValue.java/clean/bundles/org.eclipse.core.databinding.beans/src/org/eclipse/core/internal/databinding/internal/beans/JavaBeanObservableValue.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
430,
261,
14495,
26199,
1538,
18,
9394,
13,
288,
7436,
263,
588,
1343,
1435,
263,
1330,
12,
394,
2685,
12,
467,
1482,
18,
9511,
16,
7436,
18,
46,
11300,
67,
11102,
2090,
2356,
1360,
16,
315,
4445,
486,
1206,
2991,
628,
315,
397,
733,
16,
425,
10019,
289,
918,
430,
261,
14495,
26199,
1538,
18,
9394,
13,
288,
7436,
263,
588,
1343,
1435,
263,
1330,
12,
394,
2685,
12,
467,
1482,
18,
9511,
16,
7436,
18,
46,
11300,
67,
11102,
2090,
2356,
1360,
16,
315,
4445,
486,
1206,
2991,
628,
315,
397,
733,
16,
425,
10019,
289,
1142,
2223,
10026,
1435,
430,
261,
14495,
26199,
1538,
18,
9394,
13,
288,
7436,
263,
588,
1343,
1435,
263,
1330,
12,
394,
2685,
12,
467,
1482,
18,
9511,
16,
7436,
18,
46,
11300,
67,
11102,
2090,
2356,
1360,
16,
315,
4445,
486,
1206,
2991,
628,
315,
397,
733,
16,
425,
10019,
289,
288,
202,
202,
430,
430,
261,
14495,
26199,
1538,
18,
9394,
13,
288,
7436,
263,
588,
1343,
1435,
263,
1330,
12,
394,
2685,
12,
467,
1482,
18,
9511,
16,
7436,
18,
46,
11300,
67,
11102,
2090,
2356,
1360,
16,
315,
4445,
486,
1206,
2991,
628,
315,
397,
733,
16,
425,
10019,
289,
261,
12757,
430,
261,
14495,
26199,
1538,
18,
9394,
13,
288,
7436,
263,
588,
1343,
1435,
263,
1330,
12,
394,
2685,
12,
467,
1482,
18,
9511,
16,
7436,
18,
46,
11300,
67,
11102,
2090,
2356,
1360,
16,
315,
4445,
486,
1206,
2991,
628,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
430,
261,
14495,
26199,
1538,
18,
9394,
13,
288,
7436,
263,
588,
1343,
1435,
263,
1330,
12,
394,
2685,
12,
467,
1482,
18,
9511,
16,
7436,
18,
46,
11300,
67,
11102,
2090,
2356,
1360,
16,
315,
4445,
486,
1206,
2991,
628,
315,
397,
733,
16,
425,
10019,
289,
918,
430,
261,
14495,
26199,
1538,
18,
9394,
13,
288,
7436,
263,
588,
1343,
1435,
263,
1330,
12,
394,
2685,
12,
467,
1482,
18,
9511,
16,
7436,
18,
46,
11300,
67,
11102,
2090,
2356,
1360,
16,
315,
4445,
486,
1206,
2991,
628,
315,
397,
733,
16,
425,
10019,
289,
1142,
2223,
10026,
1435,
430,
261,
14495,
26199,
1538,
18,
9394,
13,
288,
7436,
263,
588,
1343,
1435,
263,
2
] |
|
this.molecule = (IMolecule) mol.clone();
|
try { this.molecule = (IMolecule) mol.clone(); } catch (CloneNotSupportedException e) { logger.error("Should clone, but exception occured: ", e.getMessage()); logger.debug(e); }
|
public void setMolecule(IMolecule mol, boolean clone) { org.openscience.cdk.interfaces.IAtom atom = null; if (clone) { this.molecule = (IMolecule) mol.clone(); } else { this.molecule = mol; } for (int f = 0; f < molecule.getAtomCount(); f++) { atom = molecule.getAtomAt(f); atom.setPoint2d(null); atom.setFlag(CDKConstants.ISPLACED, false); atom.setFlag(CDKConstants.VISITED, false); atom.setFlag(CDKConstants.ISINRING, false); atom.setFlag(CDKConstants.ISALIPHATIC, false); } atomPlacer.setMolecule(this.molecule); ringPlacer.setMolecule(this.molecule); ringPlacer.setAtomPlacer(this.atomPlacer); }
|
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/2b55a607674535cd8492e3539d8f3dce16fc3b92/StructureDiagramGenerator.java/clean/src/org/openscience/cdk/layout/StructureDiagramGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15430,
10545,
12,
3445,
10545,
12629,
16,
1250,
3236,
13,
202,
95,
202,
202,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
45,
3641,
3179,
273,
446,
31,
202,
202,
430,
261,
14056,
13,
202,
202,
95,
1082,
202,
2211,
18,
81,
10545,
273,
261,
3445,
10545,
13,
12629,
18,
14056,
5621,
202,
202,
97,
469,
202,
202,
95,
1082,
202,
2211,
18,
81,
10545,
273,
12629,
31,
202,
202,
97,
202,
202,
1884,
261,
474,
284,
273,
374,
31,
284,
411,
13661,
18,
588,
3641,
1380,
5621,
284,
27245,
202,
202,
95,
1082,
202,
7466,
273,
13661,
18,
588,
3641,
861,
12,
74,
1769,
1082,
202,
7466,
18,
542,
2148,
22,
72,
12,
2011,
1769,
1082,
202,
7466,
18,
542,
4678,
12,
39,
3398,
2918,
18,
45,
3118,
2534,
23552,
16,
629,
1769,
1082,
202,
7466,
18,
542,
4678,
12,
39,
3398,
2918,
18,
26780,
1285,
2056,
16,
629,
1769,
1082,
202,
7466,
18,
542,
4678,
12,
39,
3398,
2918,
18,
5127,
706,
54,
1360,
16,
629,
1769,
1082,
202,
7466,
18,
542,
4678,
12,
39,
3398,
2918,
18,
5127,
1013,
2579,
44,
11781,
16,
629,
1769,
202,
202,
97,
202,
202,
7466,
1749,
10598,
18,
542,
29669,
12,
2211,
18,
81,
10545,
1769,
202,
202,
8022,
1749,
10598,
18,
542,
29669,
12,
2211,
18,
81,
10545,
1769,
202,
202,
8022,
1749,
10598,
18,
542,
3641,
1749,
10598,
12,
2211,
18,
7466,
1749,
10598,
1769,
202,
97,
2,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15430,
10545,
12,
3445,
10545,
12629,
16,
1250,
3236,
13,
202,
95,
202,
202,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
45,
3641,
3179,
273,
446,
31,
202,
202,
430,
261,
14056,
13,
202,
202,
95,
1082,
202,
2211,
18,
81,
10545,
273,
261,
3445,
10545,
13,
12629,
18,
14056,
5621,
202,
202,
97,
469,
202,
202,
95,
1082,
202,
2211,
18,
81,
10545,
273,
12629,
31,
202,
202,
97,
202,
202,
1884,
261,
474,
284,
273,
374,
31,
284,
411,
13661,
18,
588,
3641,
1380,
5621,
284,
27245,
202,
202,
95,
1082,
202,
7466,
273,
13661,
18,
588,
3641,
861,
12,
74,
1769,
1082,
202,
7466,
18,
542,
2148,
22,
2
] |
eNotify(new ENotificationImpl(this, Notification.UNSET, AttributePackage.FONT_DEFINITION__WORD_WRAP, oldWordWrap, WORD_WRAP_EDEFAULT, oldWordWrapESet));
|
eNotify(new ENotificationImpl(this, Notification.UNSET, AttributePackage.FONT_DEFINITION__WORD_WRAP, oldWordWrap, WORD_WRAP_EDEFAULT, oldWordWrapESet));
|
public void unsetWordWrap() { boolean oldWordWrap = wordWrap; boolean oldWordWrapESet = wordWrapESet; wordWrap = WORD_WRAP_EDEFAULT; wordWrapESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, AttributePackage.FONT_DEFINITION__WORD_WRAP, oldWordWrap, WORD_WRAP_EDEFAULT, oldWordWrapESet)); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/FontDefinitionImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/FontDefinitionImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2646,
3944,
2964,
1435,
565,
288,
3639,
1250,
1592,
3944,
2964,
273,
2076,
2964,
31,
3639,
1250,
1592,
3944,
2964,
41,
694,
273,
2076,
2964,
41,
694,
31,
3639,
2076,
2964,
273,
21464,
67,
27664,
67,
11236,
31,
3639,
2076,
2964,
41,
694,
273,
629,
31,
3639,
309,
261,
73,
21107,
10756,
5411,
22596,
12,
2704,
19953,
12,
2211,
16,
8050,
18,
2124,
4043,
16,
3601,
2261,
18,
25221,
67,
25312,
972,
7952,
67,
27664,
16,
1592,
3944,
2964,
16,
21464,
67,
27664,
67,
11236,
16,
1592,
3944,
2964,
41,
694,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2646,
3944,
2964,
1435,
565,
288,
3639,
1250,
1592,
3944,
2964,
273,
2076,
2964,
31,
3639,
1250,
1592,
3944,
2964,
41,
694,
273,
2076,
2964,
41,
694,
31,
3639,
2076,
2964,
273,
21464,
67,
27664,
67,
11236,
31,
3639,
2076,
2964,
41,
694,
273,
629,
31,
3639,
309,
261,
73,
21107,
10756,
5411,
22596,
12,
2704,
19953,
12,
2211,
16,
8050,
18,
2124,
4043,
16,
3601,
2261,
18,
25221,
67,
25312,
972,
7952,
67,
27664,
16,
1592,
3944,
2964,
16,
21464,
67,
27664,
67,
11236,
16,
1592,
3944,
2964,
41,
694,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
list.addAll(decl);
|
list.addAll(decl);
|
final public ClassBody classBody() throws ParseException { Token t; List<Node> list = new LinkedList<Node>(); List<Node> decl; try { jj_consume_token(LBRACE); label_8: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ABSTRACT: case BOOLEAN: case BYTE: case CHAR: case CLASS: case DOUBLE: case ENUM: case FINAL: case FLOAT: case INT: case INTERFACE: case LONG: case NATIVE: case PRIVATE: case PROTECTED: case PUBLIC: case SHORT: case STATIC: case SYNCHRONIZED: case TRANSIENT: case VOID: case VOLATILE: case IDENTIFIER: case LBRACE: case SEMICOLON: case LESS: ; break; default: jj_la1[21] = jj_gen; break label_8; } decl = classBodyDeclaration(); list.addAll(decl); } t = jj_consume_token(RBRACE); {if (true) return new ClassBody(list, t.endLine, t.endColumn);} } catch (ParseException pe) { _throwParseException(pe,"Invalid class body"); } throw new Error("Missing return statement in function"); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/b153c43e59717c98f32c67f14d61a00a81016991/Parser.java/buggy/dynamicjava/src/koala/dynamicjava/parser/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
1659,
2250,
667,
2250,
1435,
1216,
10616,
288,
565,
3155,
268,
31,
565,
987,
32,
907,
34,
666,
273,
394,
10688,
32,
907,
34,
5621,
565,
987,
32,
907,
34,
3496,
31,
565,
775,
288,
1377,
10684,
67,
21224,
67,
2316,
12,
12995,
9254,
1769,
1377,
1433,
67,
28,
30,
1377,
1323,
261,
3767,
13,
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,
10336,
21398,
30,
3639,
648,
18993,
30,
3639,
648,
20660,
30,
3639,
648,
12090,
30,
3639,
648,
7383,
30,
3639,
648,
14918,
30,
3639,
648,
24776,
30,
3639,
648,
17563,
1013,
30,
3639,
648,
15483,
30,
3639,
648,
6137,
30,
3639,
648,
11391,
11300,
30,
3639,
648,
14011,
30,
3639,
648,
423,
12992,
30,
3639,
648,
23685,
30,
3639,
648,
4629,
26729,
30,
3639,
648,
17187,
30,
3639,
648,
20079,
30,
3639,
648,
19980,
30,
3639,
648,
7068,
50,
1792,
19359,
24131,
30,
3639,
648,
14996,
24937,
30,
3639,
648,
27085,
30,
3639,
648,
776,
1741,
27405,
30,
3639,
648,
26765,
30,
3639,
648,
511,
26980,
30,
3639,
648,
3174,
22972,
1741,
673,
30,
3639,
648,
21216,
30,
1850,
274,
1850,
898,
31,
3639,
805,
30,
1850,
10684,
67,
11821,
21,
63,
5340,
65,
273,
10684,
67,
4507,
31,
1850,
898,
1433,
67,
28,
31,
3639,
289,
3639,
3496,
273,
667,
2250,
6094,
5621,
1377,
666,
18,
1289,
1595,
12,
8840,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1659,
2250,
667,
2250,
1435,
1216,
10616,
288,
565,
3155,
268,
31,
565,
987,
32,
907,
34,
666,
273,
394,
10688,
32,
907,
34,
5621,
565,
987,
32,
907,
34,
3496,
31,
565,
775,
288,
1377,
10684,
67,
21224,
67,
2316,
12,
12995,
9254,
1769,
1377,
1433,
67,
28,
30,
1377,
1323,
261,
3767,
13,
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,
10336,
21398,
30,
3639,
648,
18993,
30,
3639,
648,
20660,
30,
3639,
648,
12090,
30,
3639,
648,
7383,
30,
3639,
648,
14918,
30,
3639,
648,
24776,
30,
3639,
648,
17563,
1013,
30,
3639,
2
] |
review.setReviewContent(getMatrixManager().getNode(ref).getId());
|
Node node = getMatrixManager().getNode(ref); review.setReviewContentNode(node); review.setReviewContent(node.getId());
|
public ModelAndView handleRequest(Object requestModel, Map request, Map session, Map application, Errors errors) { String strId = null; String lookupId = null; String returnView = "return"; String manager = ""; if (request.get("process_type_key") != null) { session.put("process_type_key", request.get("process_type_key")); session.put(ReviewHelper.REVIEW_TYPE_KEY, request.get(ReviewHelper.REVIEW_TYPE_KEY)); } String processTypeKey = (String)session.get("process_type_key"); if (processTypeKey != null && !processTypeKey.equals(WizardPage.PROCESS_TYPE_KEY)) { lookupId = processTypeKey; returnView = "helperDone"; manager = "org.theospi.portfolio.wizard.mgt.WizardManager"; } else if (processTypeKey != null) { lookupId = processTypeKey; manager = "matrixManager"; } strId = (String) request.get(lookupId); if (strId==null) { strId = (String) session.get(lookupId); } String secondPass = (String)session.get("secondPass"); if (secondPass != null) { strId = (String)session.get(lookupId); String formType = (String)session.get(ResourceEditingHelper.CREATE_SUB_TYPE); Map model = new HashMap(); model.put(lookupId, strId); Placement placement = ToolManager.getCurrentPlacement(); String currentSite = placement.getContext(); //cwm add security stuff for review Review review = getReviewManager().createNew( "New Review", currentSite, getIdManager().getId(strId), "", ""); review.setDeviceId(formType); review.setParent(strId); String strType = (String)session.get(ReviewHelper.REVIEW_TYPE); review.setType(Integer.parseInt(strType)); session.remove(ResourceEditingHelper.CREATE_TYPE); session.remove(ResourceEditingHelper.CREATE_SUB_TYPE); session.remove(ReviewHelper.REVIEW_TYPE); session.remove(ResourceEditingHelper.CREATE_PARENT); session.remove(lookupId); //session.remove("process_type_key"); session.remove("secondPass"); if (session.get(FilePickerHelper.FILE_PICKER_CANCEL) == null && session.get(FilePickerHelper.FILE_PICKER_ATTACHMENTS) != null) { // here is where we setup the id List refs = (List)session.get(FilePickerHelper.FILE_PICKER_ATTACHMENTS); if (refs.size() == 1) { Reference ref = (Reference)refs.get(0); review.setReviewContent(getMatrixManager().getNode(ref).getId()); getReviewManager().saveReview(review); } else { review.setReviewContent(null); } session.remove(FilePickerHelper.FILE_PICKER_ATTACHMENTS); session.remove(FilePickerHelper.FILE_PICKER_CANCEL); if (session.get(ReviewHelper.REVIEW_POST_PROCESSOR_WORKFLOWS) != null) { model.put("workflows", session.get(ReviewHelper.REVIEW_POST_PROCESSOR_WORKFLOWS)); model.put("manager", manager); model.put("obj_id", strId); return new ModelAndView("postProcessor", model); } } session.remove(FilePickerHelper.FILE_PICKER_CANCEL); return new ModelAndView(returnView, model); } Id id = getIdManager().getId(strId); ObjectWithWorkflow obj = null; if (lookupId.equals(WizardPage.PROCESS_TYPE_KEY)) { WizardPage page = matrixManager.getWizardPage(id); obj = page.getPageDefinition(); } else { CompletedWizard cw = wizardManager.getCompletedWizard(id); obj = cw.getWizard(); } String type = (String)session.get(ReviewHelper.REVIEW_TYPE_KEY); session.remove(ReviewHelper.REVIEW_TYPE_KEY); int intType = Integer.parseInt(type); String formTypeId = ""; switch (intType) { case Review.REVIEW_TYPE: formTypeId = obj.getReviewDevice().getValue(); break; case Review.EVALUATION_TYPE: formTypeId = obj.getEvaluationDevice().getValue(); session.put(ReviewHelper.REVIEW_POST_PROCESSOR_WORKFLOWS, obj.getEvalWorkflows()); break; case Review.REFLECTION_TYPE: formTypeId = obj.getReflectionDevice().getValue(); break; } session.put(ReviewHelper.REVIEW_TYPE, type); session.put(ResourceEditingHelper.CREATE_TYPE, ResourceEditingHelper.CREATE_TYPE_FORM); if (request.get("current_review_id") == null) {// CWM fix the parent path session.put(ResourceEditingHelper.CREATE_PARENT, "/user/" + SessionManager.getCurrentSessionUserId() + "/"); session.put(ResourceEditingHelper.CREATE_SUB_TYPE, formTypeId); session.remove(ResourceEditingHelper.ATTACHMENT_ID); } else { session.put(ResourceEditingHelper.ATTACHMENT_ID, request.get("current_review_id")); } session.put("page_id", strId); session.put("secondPass", "true"); return new ModelAndView("success"); }
|
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/419df908463b203af5589861d64b8d9cd7db88f8/ReviewHelperController.java/buggy/matrix/tool/src/java/org/theospi/portfolio/matrix/control/ReviewHelperController.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3164,
1876,
1767,
15713,
12,
921,
590,
1488,
16,
1635,
590,
16,
1635,
1339,
16,
1635,
2521,
16,
9372,
1334,
13,
288,
1377,
514,
609,
548,
273,
446,
31,
1377,
514,
3689,
548,
273,
446,
31,
1377,
514,
327,
1767,
273,
315,
2463,
14432,
1377,
514,
3301,
273,
1408,
31,
5411,
309,
261,
2293,
18,
588,
2932,
2567,
67,
723,
67,
856,
7923,
480,
446,
13,
288,
540,
1339,
18,
458,
2932,
2567,
67,
723,
67,
856,
3113,
590,
18,
588,
2932,
2567,
67,
723,
67,
856,
7923,
1769,
540,
1339,
18,
458,
12,
9159,
2276,
18,
862,
12145,
67,
2399,
67,
3297,
16,
590,
18,
588,
12,
9159,
2276,
18,
862,
12145,
67,
2399,
67,
3297,
10019,
1377,
289,
5411,
514,
1207,
559,
653,
273,
261,
780,
13,
3184,
18,
588,
2932,
2567,
67,
723,
67,
856,
8863,
5375,
309,
261,
2567,
559,
653,
480,
446,
597,
401,
2567,
559,
653,
18,
14963,
12,
27130,
1964,
18,
16560,
67,
2399,
67,
3297,
3719,
288,
540,
3689,
548,
273,
1207,
559,
653,
31,
540,
327,
1767,
273,
315,
4759,
7387,
14432,
540,
3301,
273,
315,
3341,
18,
5787,
538,
7259,
18,
28962,
18,
31837,
18,
81,
4521,
18,
27130,
1318,
14432,
1377,
289,
1377,
469,
309,
261,
2567,
559,
653,
480,
446,
13,
288,
540,
3689,
548,
273,
1207,
559,
653,
31,
540,
3301,
273,
315,
5667,
1318,
14432,
1377,
289,
1377,
609,
548,
273,
261,
780,
13,
590,
18,
588,
12,
8664,
548,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3164,
1876,
1767,
15713,
12,
921,
590,
1488,
16,
1635,
590,
16,
1635,
1339,
16,
1635,
2521,
16,
9372,
1334,
13,
288,
1377,
514,
609,
548,
273,
446,
31,
1377,
514,
3689,
548,
273,
446,
31,
1377,
514,
327,
1767,
273,
315,
2463,
14432,
1377,
514,
3301,
273,
1408,
31,
5411,
309,
261,
2293,
18,
588,
2932,
2567,
67,
723,
67,
856,
7923,
480,
446,
13,
288,
540,
1339,
18,
458,
2932,
2567,
67,
723,
67,
856,
3113,
590,
18,
588,
2932,
2567,
67,
723,
67,
856,
7923,
1769,
540,
1339,
18,
458,
12,
9159,
2276,
18,
862,
12145,
67,
2399,
67,
3297,
16,
590,
18,
588,
12,
9159,
2276,
18,
862,
12145,
67,
2399,
67,
3297,
2
] |
ArrayList list = new ArrayList(); list.add(stub1); list.add(stub2); return list; }
|
ArrayList list = new ArrayList(); list.add(stub1); list.add(stub2); return list; }
|
static public List asList( Stub stub1, Stub stub2 ) { ArrayList list = new ArrayList(); list.add(stub1); list.add(stub2); return list; }
|
57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/StubsSequence.java/buggy/jmock/examples/timed-cache/src/test/jmock/examples/timedcache/StubsSequence.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
1071,
987,
8528,
12,
26483,
7168,
21,
16,
26483,
7168,
22,
262,
288,
202,
202,
19558,
666,
273,
394,
2407,
5621,
202,
202,
1098,
18,
1289,
12,
12847,
21,
1769,
202,
202,
1098,
18,
1289,
12,
12847,
22,
1769,
202,
202,
2463,
666,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
1071,
987,
8528,
12,
26483,
7168,
21,
16,
26483,
7168,
22,
262,
288,
202,
202,
19558,
666,
273,
394,
2407,
5621,
202,
202,
1098,
18,
1289,
12,
12847,
21,
1769,
202,
202,
1098,
18,
1289,
12,
12847,
22,
1769,
202,
202,
2463,
666,
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
] |
grailsViewResolver.setProperty("prefix", SpringConfigUtils.createLiteralValue("/WEB-INF/grails-app/views"));
|
grailsViewResolver.setProperty("prefix", SpringConfigUtils.createLiteralValue("/WEB-INF/grails-app/views/"));
|
private void populateControllerReferences(Collection beanReferences, Map urlMappings) { Bean simpleGrailsController = SpringConfigUtils.createSingletonBean(SimpleGrailsController.class); simpleGrailsController.setAutowire("byType"); beanReferences.add(SpringConfigUtils.createBeanReference("simpleGrailsController", simpleGrailsController)); Bean grailsViewResolver = SpringConfigUtils.createSingletonBean(GrailsViewResolver.class); grailsViewResolver.setProperty("viewClass",SpringConfigUtils.createLiteralValue("org.springframework.web.servlet.view.JstlView")); grailsViewResolver.setProperty("prefix", SpringConfigUtils.createLiteralValue("/WEB-INF/grails-app/views")); grailsViewResolver.setProperty("suffix", SpringConfigUtils.createLiteralValue(".jsp")); beanReferences.add(SpringConfigUtils.createBeanReference("jspViewResolver", grailsViewResolver)); Bean simpleUrlHandlerMapping = null; if (application.getControllers().length > 0 || application.getPageFlows().length > 0) { simpleUrlHandlerMapping = SpringConfigUtils.createSingletonBean(GrailsUrlHandlerMapping.class); beanReferences.add(SpringConfigUtils.createBeanReference("handlerMapping", simpleUrlHandlerMapping)); } GrailsControllerClass[] simpleControllers = application.getControllers(); for (int i = 0; i < simpleControllers.length; i++) { GrailsControllerClass simpleController = simpleControllers[i]; if (!simpleController.getAvailable()) { continue; } Bean controllerClass = SpringConfigUtils.createSingletonBean(MethodInvokingFactoryBean.class); controllerClass.setProperty("targetObject", SpringConfigUtils.createBeanReference("grailsApplication")); controllerClass.setProperty("targetMethod", SpringConfigUtils.createLiteralValue("getController")); controllerClass.setProperty("arguments", SpringConfigUtils.createLiteralValue(simpleController.getFullName())); beanReferences.add(SpringConfigUtils.createBeanReference(simpleController.getFullName() + "Class", controllerClass)); controllerClassBeans.put(simpleController.getFullName() + "Class", controllerClass); Bean controller = SpringConfigUtils.createPrototypeBean(); controller.setFactoryBean(SpringConfigUtils.createBeanReference(simpleController.getFullName() + "Class")); controller.setFactoryMethod("newInstance"); controller.setAutowire("byName"); /*if (simpleController.byType()) { controller.setAutowire("byType"); } else if (simpleController.byName()) { controller.setAutowire("byName"); }*/ beanReferences.add(SpringConfigUtils.createBeanReference(simpleController.getFullName(), controller)); for (int x = 0; x < simpleController.getURIs().length; x++) { if(!urlMappings.containsKey(simpleController.getURIs()[x])) urlMappings.put(simpleController.getURIs()[x], "simpleGrailsController"); } } if (simpleUrlHandlerMapping != null) { simpleUrlHandlerMapping.setProperty("mappings", SpringConfigUtils.createProperties(urlMappings)); } GrailsTagLibClass[] tagLibs = application.getGrailsTabLibClasses(); for (int i = 0; i < tagLibs.length; i++) { GrailsTagLibClass grailsTagLib = tagLibs[i]; Bean taglibClass = SpringConfigUtils.createSingletonBean(MethodInvokingFactoryBean.class); taglibClass.setProperty("targetObject", SpringConfigUtils.createBeanReference("grailsApplication")); taglibClass.setProperty("targetMethod", SpringConfigUtils.createLiteralValue("getGrailsTagLibClass")); taglibClass.setProperty("arguments", SpringConfigUtils.createLiteralValue(grailsTagLib.getFullName())); beanReferences.add(SpringConfigUtils.createBeanReference(grailsTagLib.getFullName() + "Class", taglibClass)); controllerClassBeans.put(grailsTagLib.getFullName() + "Class", taglibClass); Bean taglib = SpringConfigUtils.createPrototypeBean(); taglib.setFactoryBean(SpringConfigUtils.createBeanReference(grailsTagLib.getFullName() + "Class")); taglib.setFactoryMethod("newInstance"); taglib.setAutowire("byName"); beanReferences.add(SpringConfigUtils.createBeanReference(grailsTagLib.getFullName(), taglib)); } }
|
50831 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50831/9319b2487e82433202c4b7e86c557193a7ad2ae3/SpringConfig.java/clean/src/commons/org/codehaus/groovy/grails/commons/spring/SpringConfig.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6490,
2933,
8221,
12,
2532,
3931,
8221,
16,
1635,
880,
7742,
13,
288,
202,
202,
3381,
4143,
14571,
14573,
2933,
273,
22751,
809,
1989,
18,
2640,
19571,
3381,
12,
5784,
14571,
14573,
2933,
18,
1106,
1769,
202,
202,
9647,
14571,
14573,
2933,
18,
542,
7150,
543,
577,
2932,
1637,
559,
8863,
202,
202,
14496,
8221,
18,
1289,
12,
55,
11638,
809,
1989,
18,
2640,
3381,
2404,
2932,
9647,
14571,
14573,
2933,
3113,
4143,
14571,
14573,
2933,
10019,
9506,
202,
3381,
3087,
14573,
1767,
4301,
273,
22751,
809,
1989,
18,
2640,
19571,
3381,
12,
14571,
14573,
1767,
4301,
18,
1106,
1769,
9506,
202,
2752,
14573,
1767,
4301,
18,
542,
1396,
2932,
1945,
797,
3113,
55,
11638,
809,
1989,
18,
2640,
6177,
620,
2932,
3341,
18,
87,
11638,
12303,
18,
4875,
18,
23231,
18,
1945,
18,
46,
334,
80,
1767,
7923,
1769,
202,
202,
2752,
14573,
1767,
4301,
18,
542,
1396,
2932,
3239,
3113,
22751,
809,
1989,
18,
2640,
6177,
620,
2932,
19,
14778,
17,
19212,
19,
2752,
14573,
17,
2910,
19,
7061,
7923,
1769,
202,
202,
2752,
14573,
1767,
4301,
18,
542,
1396,
2932,
8477,
3113,
22751,
809,
1989,
18,
2640,
6177,
620,
2932,
18,
24926,
7923,
1769,
202,
202,
14496,
8221,
18,
1289,
12,
55,
11638,
809,
1989,
18,
2640,
3381,
2404,
2932,
24926,
1767,
4301,
3113,
3087,
14573,
1767,
4301,
10019,
9506,
202,
3381,
4143,
1489,
1503,
3233,
273,
446,
31,
202,
202,
430,
261,
3685,
18,
588,
13745,
7675,
2469,
405,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6490,
2933,
8221,
12,
2532,
3931,
8221,
16,
1635,
880,
7742,
13,
288,
202,
202,
3381,
4143,
14571,
14573,
2933,
273,
22751,
809,
1989,
18,
2640,
19571,
3381,
12,
5784,
14571,
14573,
2933,
18,
1106,
1769,
202,
202,
9647,
14571,
14573,
2933,
18,
542,
7150,
543,
577,
2932,
1637,
559,
8863,
202,
202,
14496,
8221,
18,
1289,
12,
55,
11638,
809,
1989,
18,
2640,
3381,
2404,
2932,
9647,
14571,
14573,
2933,
3113,
4143,
14571,
14573,
2933,
10019,
9506,
202,
3381,
3087,
14573,
1767,
4301,
273,
22751,
809,
1989,
18,
2640,
19571,
3381,
12,
14571,
14573,
1767,
4301,
18,
1106,
1769,
9506,
202,
2752,
14573,
1767,
4301,
18,
542,
1396,
2932,
1945,
797,
3113,
55,
11638,
2
] |
switch ( eDerivedStructuralFeatureID( eFeature ) )
|
switch ( featureID )
|
public void eSet( EStructuralFeature eFeature, Object newValue ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case ModelPackage.CHART_WITHOUT_AXES__VERSION : setVersion( (String) newValue ); return; case ModelPackage.CHART_WITHOUT_AXES__TYPE : setType( (String) newValue ); return; case ModelPackage.CHART_WITHOUT_AXES__SUB_TYPE : setSubType( (String) newValue ); return; case ModelPackage.CHART_WITHOUT_AXES__DESCRIPTION : setDescription( (Text) newValue ); return; case ModelPackage.CHART_WITHOUT_AXES__BLOCK : setBlock( (Block) newValue ); return; case ModelPackage.CHART_WITHOUT_AXES__DIMENSION : setDimension( (ChartDimension) newValue ); return; case ModelPackage.CHART_WITHOUT_AXES__SCRIPT : setScript( (String) newValue ); return; case ModelPackage.CHART_WITHOUT_AXES__UNITS : setUnits( (String) newValue ); return; case ModelPackage.CHART_WITHOUT_AXES__SERIES_THICKNESS : setSeriesThickness( ( (Double) newValue ).doubleValue( ) ); return; case ModelPackage.CHART_WITHOUT_AXES__GRID_COLUMN_COUNT : setGridColumnCount( ( (Integer) newValue ).intValue( ) ); return; case ModelPackage.CHART_WITHOUT_AXES__EXTENDED_PROPERTIES : getExtendedProperties( ).clear( ); getExtendedProperties( ).addAll( (Collection) newValue ); return; case ModelPackage.CHART_WITHOUT_AXES__SAMPLE_DATA : setSampleData( (SampleData) newValue ); return; case ModelPackage.CHART_WITHOUT_AXES__STYLES : getStyles( ).clear( ); getStyles( ).addAll( (Collection) newValue ); return; case ModelPackage.CHART_WITHOUT_AXES__INTERACTIVITY : setInteractivity( (Interactivity) newValue ); return; case ModelPackage.CHART_WITHOUT_AXES__SERIES_DEFINITIONS : getSeriesDefinitions( ).clear( ); getSeriesDefinitions( ).addAll( (Collection) newValue ); return; case ModelPackage.CHART_WITHOUT_AXES__MIN_SLICE : setMinSlice( ( (Double) newValue ).doubleValue( ) ); return; case ModelPackage.CHART_WITHOUT_AXES__MIN_SLICE_PERCENT : setMinSlicePercent( ( (Boolean) newValue ).booleanValue( ) ); return; case ModelPackage.CHART_WITHOUT_AXES__MIN_SLICE_LABEL : setMinSliceLabel( (String) newValue ); return; } eDynamicSet( eFeature, newValue ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/036e8c78765730b146e5854b9d6c397a296fed86/ChartWithoutAxesImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ChartWithoutAxesImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20199,
12,
512,
14372,
4595,
425,
4595,
16,
1033,
6129,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3164,
2261,
18,
1792,
4928,
67,
9147,
5069,
67,
2501,
3991,
972,
5757,
294,
9506,
202,
542,
1444,
12,
261,
780,
13,
6129,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3164,
2261,
18,
1792,
4928,
67,
9147,
5069,
67,
2501,
3991,
972,
2399,
294,
9506,
202,
542,
559,
12,
261,
780,
13,
6129,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3164,
2261,
18,
1792,
4928,
67,
9147,
5069,
67,
2501,
3991,
972,
8362,
67,
2399,
294,
9506,
202,
542,
30511,
12,
261,
780,
13,
6129,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3164,
2261,
18,
1792,
4928,
67,
9147,
5069,
67,
2501,
3991,
972,
15911,
294,
9506,
202,
542,
3291,
12,
261,
1528,
13,
6129,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3164,
2261,
18,
1792,
4928,
67,
9147,
5069,
67,
2501,
3991,
972,
11403,
294,
9506,
202,
542,
1768,
12,
261,
1768,
13,
6129,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3164,
2261,
18,
1792,
4928,
67,
9147,
5069,
67,
2501,
3991,
972,
2565,
958,
3156,
1146,
294,
9506,
202,
542,
8611,
12,
261,
7984,
8611,
13,
6129,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3164,
2261,
18,
1792,
4928,
67,
9147,
5069,
67,
2501,
3991,
972,
10885,
294,
9506,
202,
542,
3651,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20199,
12,
512,
14372,
4595,
425,
4595,
16,
1033,
6129,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3164,
2261,
18,
1792,
4928,
67,
9147,
5069,
67,
2501,
3991,
972,
5757,
294,
9506,
202,
542,
1444,
12,
261,
780,
13,
6129,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3164,
2261,
18,
1792,
4928,
67,
9147,
5069,
67,
2501,
3991,
972,
2399,
294,
9506,
202,
542,
559,
12,
261,
780,
13,
6129,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3164,
2261,
18,
1792,
4928,
67,
9147,
5069,
67,
2501,
3991,
972,
8362,
67,
2399,
294,
9506,
202,
542,
30511,
2
] |
System.arraycopy(list.getItems(), index, newItems,index+1, getSize()-index);
|
System.arraycopy(list.getItems(), index, newItems,index+1, computeSize()-index);
|
public int addElement(Object value, int index) { updating=true; try { if (index<0 || index>getSize()) index=getSize(); String[] newItems = new String[getSize()+1]; System.arraycopy(list.getItems(), 0, newItems,0, index); newItems[index]=(String)value; System.arraycopy(list.getItems(), index, newItems,index+1, getSize()-index); list.setItems(newItems); fireChangeEvent(ChangeEvent.ADD, null, value, index); } finally{ updating=false; } return index; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/0761e1ecd3419699cb01bfda9e914b2a545d7fac/ListUpdatableCollection.java/clean/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/swt/ListUpdatableCollection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
9335,
12,
921,
460,
16,
509,
770,
13,
288,
202,
202,
5533,
1776,
33,
3767,
31,
9506,
202,
698,
288,
1082,
202,
430,
261,
1615,
32,
20,
747,
770,
34,
588,
1225,
10756,
9506,
202,
1615,
33,
588,
1225,
5621,
1082,
202,
780,
8526,
394,
3126,
273,
394,
514,
63,
588,
1225,
1435,
15,
21,
15533,
25083,
202,
3163,
18,
1126,
3530,
12,
1098,
18,
588,
3126,
9334,
374,
16,
394,
3126,
16,
20,
16,
770,
1769,
1082,
202,
2704,
3126,
63,
1615,
65,
28657,
780,
13,
1132,
31,
1082,
202,
3163,
18,
1126,
3530,
12,
1098,
18,
588,
3126,
9334,
770,
16,
394,
3126,
16,
1615,
15,
21,
16,
9950,
1435,
17,
1615,
1769,
1082,
202,
1098,
18,
542,
3126,
12,
2704,
3126,
1769,
1082,
202,
12179,
20930,
12,
20930,
18,
8355,
16,
446,
16,
460,
16,
770,
1769,
202,
202,
97,
202,
202,
23417,
95,
1082,
202,
5533,
1776,
33,
5743,
31,
202,
202,
97,
202,
202,
2463,
770,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
9335,
12,
921,
460,
16,
509,
770,
13,
288,
202,
202,
5533,
1776,
33,
3767,
31,
9506,
202,
698,
288,
1082,
202,
430,
261,
1615,
32,
20,
747,
770,
34,
588,
1225,
10756,
9506,
202,
1615,
33,
588,
1225,
5621,
1082,
202,
780,
8526,
394,
3126,
273,
394,
514,
63,
588,
1225,
1435,
15,
21,
15533,
25083,
202,
3163,
18,
1126,
3530,
12,
1098,
18,
588,
3126,
9334,
374,
16,
394,
3126,
16,
20,
16,
770,
1769,
1082,
202,
2704,
3126,
63,
1615,
65,
28657,
780,
13,
1132,
31,
1082,
202,
3163,
18,
1126,
3530,
12,
1098,
18,
588,
3126,
9334,
770,
16,
394,
3126,
16,
1615,
15,
21,
16,
9950,
1435,
17,
1615,
1769,
2
] |
while (filelist.hasNext()) { String filename = (String) filelist.next(); Document doc = this.historyImpl.getDocumentForFile(filename);
|
while (filelist.hasNext()) { String filename = (String) filelist.next(); Document doc = this.historyImpl.getDocumentForFile(filename);
|
private QueryResultSet findByXpath(String xpathExpression) { Vector vect = new Vector(); Iterator filelist = this.historyImpl.getFileList(); Navigator navigator = DocumentNavigator.getInstance(); XPath xpath; try { xpath = navigator.parseXPath(xpathExpression); } catch (SAXPathException e) { throw new RuntimeException(e); } while (filelist.hasNext()) { String filename = (String) filelist.next(); Document doc = this.historyImpl.getDocumentForFile(filename); List nodes; try { nodes = xpath.selectNodes(doc); } catch (JaxenException e) { throw new RuntimeException(e); } Iterator i = nodes.iterator(); while (i.hasNext()) { Node node = (Node) i.next(); NodeList propertyNodes = node.getChildNodes(); String ts = node.getAttributes().getNamedItem("timestamp") .getNodeValue(); Date timestamp = new Date(Long.parseLong(ts)); ArrayList nameVals = new ArrayList(); int len = propertyNodes.getLength(); for (int j = 0; j < len; j++) { Node propertyNode = propertyNodes.item(j); if (propertyNode.getNodeType() == Node.ELEMENT_NODE) { nameVals.add(propertyNode.getNodeName()); // Get nested TEXT node's value nameVals.add(propertyNode.getFirstChild() .getNodeValue()); } } String[] propertyNames = new String[nameVals.size() / 2]; String[] propertyValues = new String[propertyNames.length]; for (int j = 0; j < propertyNames.length; j++) { propertyNames[j] = (String) nameVals.get(j * 2); propertyValues[j] = (String) nameVals.get(j * 2 + 1); } HistoryRecord record = new HistoryRecord(propertyNames, propertyValues, timestamp); vect.add(record); } } return new DefaultQueryResultSet(vect); }
|
43455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43455/dd511f0f97892bf31dc2a7a1989480bf6b6b5308/HistoryReaderImpl.java/clean/src/net/java/sip/communicator/impl/history/HistoryReaderImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
2770,
13198,
6224,
28137,
12,
780,
6748,
2300,
13,
288,
202,
202,
5018,
21623,
273,
394,
5589,
5621,
202,
202,
3198,
26204,
273,
333,
18,
8189,
2828,
18,
588,
26098,
5621,
202,
202,
22817,
19796,
273,
4319,
22817,
18,
588,
1442,
5621,
202,
202,
14124,
6748,
31,
202,
202,
698,
288,
1082,
202,
18644,
273,
19796,
18,
2670,
14124,
12,
18644,
2300,
1769,
202,
202,
97,
1044,
261,
55,
2501,
743,
503,
425,
13,
288,
1082,
202,
12849,
394,
3235,
12,
73,
1769,
202,
202,
97,
202,
202,
17523,
261,
7540,
5449,
18,
5332,
2134,
10756,
288,
1082,
202,
780,
1544,
273,
261,
780,
13,
26204,
18,
4285,
5621,
1082,
202,
2519,
997,
273,
333,
18,
8189,
2828,
18,
588,
2519,
1290,
812,
12,
3459,
1769,
1082,
202,
682,
2199,
31,
1082,
202,
698,
288,
9506,
202,
4690,
273,
6748,
18,
4025,
3205,
12,
2434,
1769,
1082,
202,
97,
1044,
261,
46,
651,
275,
503,
425,
13,
288,
9506,
202,
12849,
394,
3235,
12,
73,
1769,
1082,
202,
97,
1082,
202,
3198,
277,
273,
2199,
18,
9838,
5621,
1082,
202,
17523,
261,
77,
18,
5332,
2134,
10756,
288,
9506,
202,
907,
756,
273,
261,
907,
13,
277,
18,
4285,
5621,
9506,
202,
19914,
1272,
3205,
273,
756,
18,
588,
22460,
5621,
9506,
202,
780,
3742,
273,
756,
18,
588,
2498,
7675,
588,
7604,
1180,
2932,
5508,
7923,
25083,
202,
18,
588,
907,
620,
5621,
9506,
202,
1626,
2858,
273,
394,
2167,
12,
3708,
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,
2770,
13198,
6224,
28137,
12,
780,
6748,
2300,
13,
288,
202,
202,
5018,
21623,
273,
394,
5589,
5621,
202,
202,
3198,
26204,
273,
333,
18,
8189,
2828,
18,
588,
26098,
5621,
202,
202,
22817,
19796,
273,
4319,
22817,
18,
588,
1442,
5621,
202,
202,
14124,
6748,
31,
202,
202,
698,
288,
1082,
202,
18644,
273,
19796,
18,
2670,
14124,
12,
18644,
2300,
1769,
202,
202,
97,
1044,
261,
55,
2501,
743,
503,
425,
13,
288,
1082,
202,
12849,
394,
3235,
12,
73,
1769,
202,
202,
97,
202,
202,
17523,
261,
7540,
5449,
18,
5332,
2134,
10756,
288,
1082,
202,
780,
1544,
273,
261,
780,
13,
26204,
18,
4285,
5621,
1082,
202,
2519,
997,
273,
333,
18,
2
] |
pcm.createWorkgroup("blah"); System.out.println("JOINED A WORKGROUP");
|
pcm2.createWorkgroup("Parser"); System.out.println("JOINED Parser"); }catch (WGCException w){} try { pcm2.joinWorkgroup("Oracle-Parser"); System.out.println("JOINED Oracle-Parser");
|
public static void main(String[] args) { String data = "TESTING DATA 1"; Cacheable x = new Cacheable("TAG1",data,data.length()); PersonalCacheModuleImpl pcm = new PersonalCacheModuleImpl("Test"); try { pcm.createWorkgroup("blah"); System.out.println("JOINED A WORKGROUP"); }catch (WGCException w){} if(pcm!=null) { pcm.put(x); } try { pcm.createWorkgroup("blah"); System.out.println("JOINED A WORKGROUP"); }catch (WGCException w){ System.out.println("WORKGROUP ALREADY EXISTS"); } System.out.println("EXISTING WORKGROUPS:"); pcm.printWorkgroupNames(); }
|
14629 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14629/8546ef4dfc946864c6b45218a0c2cfed2294f05a/Test.java/buggy/impl/Test.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
377,
514,
501,
273,
315,
16961,
1360,
8730,
404,
14432,
377,
4379,
429,
619,
273,
394,
4379,
429,
2932,
7927,
21,
3113,
892,
16,
892,
18,
2469,
10663,
377,
11573,
287,
1649,
3120,
2828,
6125,
81,
273,
394,
11573,
287,
1649,
3120,
2828,
2932,
4709,
8863,
377,
775,
288,
4202,
6125,
81,
18,
2640,
2421,
1655,
2932,
3083,
9795,
8863,
4202,
2332,
18,
659,
18,
8222,
2932,
18800,
2056,
432,
17062,
8468,
8863,
377,
289,
14683,
261,
59,
15396,
503,
341,
13,
2916,
377,
309,
12,
2436,
81,
5,
33,
2011,
13,
288,
4202,
6125,
81,
18,
458,
12,
92,
1769,
5411,
289,
377,
775,
288,
4202,
6125,
81,
18,
2640,
2421,
1655,
2932,
3083,
9795,
8863,
4202,
2332,
18,
659,
18,
8222,
2932,
18800,
2056,
432,
17062,
8468,
8863,
377,
289,
14683,
261,
59,
15396,
503,
341,
15329,
3639,
2332,
18,
659,
18,
8222,
2932,
10566,
8468,
7981,
20305,
20476,
8863,
1377,
289,
4202,
2332,
18,
659,
18,
8222,
2932,
11838,
1360,
17062,
28977,
2773,
1769,
1377,
6125,
81,
18,
1188,
2421,
1655,
1557,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
377,
514,
501,
273,
315,
16961,
1360,
8730,
404,
14432,
377,
4379,
429,
619,
273,
394,
4379,
429,
2932,
7927,
21,
3113,
892,
16,
892,
18,
2469,
10663,
377,
11573,
287,
1649,
3120,
2828,
6125,
81,
273,
394,
11573,
287,
1649,
3120,
2828,
2932,
4709,
8863,
377,
775,
288,
4202,
6125,
81,
18,
2640,
2421,
1655,
2932,
3083,
9795,
8863,
4202,
2332,
18,
659,
18,
8222,
2932,
18800,
2056,
432,
17062,
8468,
8863,
377,
289,
14683,
261,
59,
15396,
503,
341,
13,
2916,
377,
309,
12,
2436,
81,
5,
33,
2011,
13,
288,
4202,
6125,
81,
18,
458,
12,
92,
1769,
5411,
289,
377,
775,
288,
4202,
6125,
2
] |
.setMessage("Should be limited to (specific-script - uppercase - invisibles + \u0130); thus not contain: \\u200E{0}\\u200E",
|
.setMessage("Should be limited to (specific-script - uppercase - invisibles + \u0130); thus not contain: \u200E{0}\u200E",
|
private void checkExemplar(String v, List result) { if (v == null) return; UnicodeSet exemplar1 = new UnicodeSet(v); String fixedExemplar1 = CollectionUtilities.prettyPrint(exemplar1, true, null, null, col, col); UnicodeSet doubleCheck = new UnicodeSet(fixedExemplar1); if (!doubleCheck.equals(exemplar1)) { result.add(new CheckStatus().setCause(this).setType(CheckStatus.errorType) .setMessage("Internal Error: formatting not working for {0}", new Object[]{exemplar1})); } else if (!v.equals(fixedExemplar1)) { result.add(new CheckStatus().setCause(this).setType(CheckStatus.warningType) .setMessage("Better formatting would be \\u200E{0}\\u200E", new Object[]{fixedExemplar1})); } if (!AllowedInExemplars.containsAll(exemplar1)) { exemplar1 = CollectionUtilities.flatten(exemplar1).removeAll(AllowedInExemplars); if (exemplar1.size() != 0) { fixedExemplar1 = CollectionUtilities.prettyPrint(exemplar1, true, null, null, col, col); result.add(new CheckStatus().setCause(this).setType(CheckStatus.warningType) .setMessage("Should be limited to (specific-script - uppercase - invisibles + \u0130); thus not contain: \\u200E{0}\\u200E", new Object[]{fixedExemplar1})); } } else if (!isRoot && exemplar1.size() == 0) { result.add(new CheckStatus().setCause(this).setType(CheckStatus.errorType) .setMessage("Exemplar set must not be empty.") .setHTMLMessage("Exemplar set must not be empty:" + " see <a href='http://www.unicode.org/cldr/data_formats.html#Exemplar'>Exemplars</a>")); } }
|
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/0e665807241888cbcea0c3ea970d04b6334456eb/CheckExemplars.java/clean/tools/java/org/unicode/cldr/test/CheckExemplars.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
866,
424,
351,
412,
297,
12,
780,
331,
16,
987,
563,
13,
288,
202,
202,
430,
261,
90,
422,
446,
13,
327,
31,
377,
202,
16532,
694,
431,
351,
412,
297,
21,
273,
394,
9633,
694,
12,
90,
1769,
377,
202,
780,
5499,
424,
351,
412,
297,
21,
273,
2200,
11864,
18,
19073,
5108,
12,
338,
351,
412,
297,
21,
16,
638,
16,
446,
16,
446,
16,
645,
16,
645,
1769,
377,
202,
16532,
694,
1645,
1564,
273,
394,
9633,
694,
12,
12429,
424,
351,
412,
297,
21,
1769,
377,
202,
430,
16051,
9056,
1564,
18,
14963,
12,
338,
351,
412,
297,
21,
3719,
288,
202,
377,
202,
2088,
18,
1289,
12,
2704,
2073,
1482,
7675,
542,
10683,
12,
2211,
2934,
542,
559,
12,
1564,
1482,
18,
1636,
559,
13,
202,
377,
202,
377,
202,
18,
542,
1079,
2932,
3061,
1068,
30,
10407,
486,
5960,
364,
288,
20,
1532,
16,
394,
1033,
63,
7073,
338,
351,
412,
297,
21,
6792,
1769,
377,
202,
97,
469,
309,
16051,
90,
18,
14963,
12,
12429,
424,
351,
412,
297,
21,
3719,
288,
202,
377,
202,
2088,
18,
1289,
12,
2704,
2073,
1482,
7675,
542,
10683,
12,
2211,
2934,
542,
559,
12,
1564,
1482,
18,
8551,
559,
13,
202,
377,
202,
18,
542,
1079,
2932,
38,
11214,
10407,
4102,
506,
1736,
89,
6976,
41,
95,
20,
97,
1695,
89,
6976,
41,
3113,
394,
1033,
63,
7073,
12429,
424,
351,
412,
297,
21,
6792,
1769,
377,
202,
97,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
424,
351,
412,
297,
12,
780,
331,
16,
987,
563,
13,
288,
202,
202,
430,
261,
90,
422,
446,
13,
327,
31,
377,
202,
16532,
694,
431,
351,
412,
297,
21,
273,
394,
9633,
694,
12,
90,
1769,
377,
202,
780,
5499,
424,
351,
412,
297,
21,
273,
2200,
11864,
18,
19073,
5108,
12,
338,
351,
412,
297,
21,
16,
638,
16,
446,
16,
446,
16,
645,
16,
645,
1769,
377,
202,
16532,
694,
1645,
1564,
273,
394,
9633,
694,
12,
12429,
424,
351,
412,
297,
21,
1769,
377,
202,
430,
16051,
9056,
1564,
18,
14963,
12,
338,
351,
412,
297,
21,
3719,
288,
202,
377,
202,
2088,
18,
1289,
12,
2704,
2073,
1482,
2
] |
myBerkeleyDirectory = aBerkeleyDirectory; }
|
myBerkeleyDirectory = aBerkeleyDirectory; }
|
public void setBerkeleyDirectory(String aBerkeleyDirectory) { myBerkeleyDirectory = aBerkeleyDirectory; }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/b13c667b376deb4a8f2c235ffd847b57616d23c4/ServerStructure.java/buggy/grendel/sources/grendel/prefs/base/ServerStructure.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
15268,
264,
79,
292,
402,
2853,
12,
780,
279,
38,
264,
79,
292,
402,
2853,
13,
288,
565,
3399,
38,
264,
79,
292,
402,
2853,
273,
279,
38,
264,
79,
292,
402,
2853,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
918,
15268,
264,
79,
292,
402,
2853,
12,
780,
279,
38,
264,
79,
292,
402,
2853,
13,
288,
565,
3399,
38,
264,
79,
292,
402,
2853,
273,
279,
38,
264,
79,
292,
402,
2853,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public IRubyObject evalWithBinding(ThreadContext context, IRubyObject src, IRubyObject scope, String file) { // both of these are ensured by the (very few) callers assert !scope.isNil(); assert file != null; ThreadContext threadContext = getRuntime().getCurrentContext(); ISourcePosition savedPosition = threadContext.getPosition(); IRubyObject result = getRuntime().getNil(); IRubyObject newSelf = null; if (!(scope instanceof RubyBinding)) { if (scope instanceof RubyProc) { scope = ((RubyProc) scope).binding(); } else { // bomb out, it's not a binding or a proc throw getRuntime().newTypeError("wrong argument type " + scope.getMetaClass() + " (expected Proc/Binding)"); } } Block blockOfBinding = ((RubyBinding)scope).getBlock(); try { // Binding provided for scope, use it threadContext.preEvalWithBinding(blockOfBinding); newSelf = threadContext.getFrameSelf(); result = EvaluationState.eval(threadContext, getRuntime().parse(src.toString(), file, blockOfBinding.getDynamicScope()), newSelf); } finally { threadContext.postEvalWithBinding(blockOfBinding); // restore position threadContext.setPosition(savedPosition); } return result; }
|
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/clean/src/org/jruby/RubyObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
5302,
1190,
5250,
12,
3830,
1042,
819,
16,
15908,
10340,
921,
1705,
16,
15908,
10340,
921,
2146,
16,
514,
585,
13,
288,
3639,
368,
3937,
434,
4259,
854,
3387,
72,
635,
326,
261,
3242,
11315,
13,
19932,
3639,
1815,
401,
4887,
18,
291,
12616,
5621,
3639,
1815,
585,
480,
446,
31,
7734,
4884,
1042,
2650,
1042,
273,
18814,
7675,
588,
3935,
1042,
5621,
7734,
467,
1830,
2555,
5198,
2555,
273,
2650,
1042,
18,
588,
2555,
5621,
3639,
15908,
10340,
921,
563,
273,
18814,
7675,
588,
12616,
5621,
7734,
15908,
10340,
921,
394,
10084,
273,
446,
31,
3639,
309,
16051,
12,
4887,
1276,
19817,
5250,
3719,
288,
5411,
309,
261,
4887,
1276,
19817,
15417,
13,
288,
7734,
2146,
273,
14015,
54,
10340,
15417,
13,
2146,
2934,
7374,
5621,
5411,
289,
469,
288,
7734,
368,
324,
16659,
596,
16,
518,
1807,
486,
279,
5085,
578,
279,
5418,
7734,
604,
18814,
7675,
2704,
19030,
2932,
21530,
1237,
618,
315,
397,
2146,
18,
588,
2781,
797,
1435,
397,
315,
261,
3825,
18470,
19,
5250,
2225,
1769,
5411,
289,
3639,
289,
3639,
3914,
1203,
951,
5250,
273,
14015,
54,
10340,
5250,
13,
4887,
2934,
588,
1768,
5621,
3639,
775,
288,
5411,
368,
15689,
2112,
364,
2146,
16,
999,
518,
5411,
2650,
1042,
18,
1484,
13904,
1190,
5250,
12,
2629,
951,
5250,
1769,
13491,
394,
10084,
273,
2650,
1042,
18,
588,
3219,
10084,
5621,
5411,
563,
273,
17340,
1119,
18,
8622,
12,
5930,
1042,
16,
18814,
7675,
2670,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15908,
10340,
921,
5302,
1190,
5250,
12,
3830,
1042,
819,
16,
15908,
10340,
921,
1705,
16,
15908,
10340,
921,
2146,
16,
514,
585,
13,
288,
3639,
368,
3937,
434,
4259,
854,
3387,
72,
635,
326,
261,
3242,
11315,
13,
19932,
3639,
1815,
401,
4887,
18,
291,
12616,
5621,
3639,
1815,
585,
480,
446,
31,
7734,
4884,
1042,
2650,
1042,
273,
18814,
7675,
588,
3935,
1042,
5621,
7734,
467,
1830,
2555,
5198,
2555,
273,
2650,
1042,
18,
588,
2555,
5621,
3639,
15908,
10340,
921,
563,
273,
18814,
7675,
588,
12616,
5621,
7734,
15908,
10340,
921,
394,
10084,
273,
446,
31,
3639,
309,
16051,
12,
4887,
1276,
19817,
5250,
3719,
288,
5411,
309,
261,
4887,
1276,
19817,
15417,
13,
2
] |
||
println(" yy_was_pushback = (yy_attributes & "+LOOKEND+") == "+LOOKEND+";");
|
println(" yy_was_pushback = (yyFlexAttributes & "+LOOKEND+") == "+LOOKEND+";");
|
private void emitGetRowMapNext() { println(" int yy_next = yytrans_l[ yy_rowMap_l[yy_state] + yycmap_l[yy_input] ];"); println(" if (yy_next == "+DFA.NO_TARGET+") break yy_forAction;"); println(" yy_state = yy_next;"); println(); println(" int yy_attributes = yy_attr_l[yy_state];"); if ( scanner.lookAheadUsed ) { println(" if ( (yy_attributes & "+PUSHBACK+") == "+PUSHBACK+" )"); println(" yy_pushbackPos_l = yy_currentPos_l;"); println(); } println(" if ( (yy_attributes & "+FINAL+") == "+FINAL+" ) {"); if ( scanner.lookAheadUsed ) println(" yy_was_pushback = (yy_attributes & "+LOOKEND+") == "+LOOKEND+";"); skel.emitNext(); println(" if ( (yy_attributes & "+NOLOOK+") == "+NOLOOK+" ) break yy_forAction;"); skel.emitNext(); }
|
45285 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45285/c518aa49b35aa173caad4915a39b60ecb78d8528/Emitter.java/clean/jflex/src/JFlex/Emitter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3626,
967,
1999,
863,
2134,
1435,
288,
565,
3785,
2932,
1850,
509,
9016,
67,
4285,
273,
9016,
2338,
67,
80,
63,
9016,
67,
492,
863,
67,
80,
63,
6795,
67,
2019,
65,
397,
9016,
22738,
67,
80,
63,
6795,
67,
2630,
65,
308,
4868,
1769,
565,
3785,
2932,
1850,
309,
261,
6795,
67,
4285,
422,
13773,
40,
2046,
18,
3417,
67,
16374,
15,
7923,
898,
9016,
67,
1884,
1803,
4868,
1769,
565,
3785,
2932,
1850,
9016,
67,
2019,
273,
9016,
67,
4285,
4868,
1769,
565,
3785,
5621,
565,
3785,
2932,
1850,
509,
9016,
67,
4350,
273,
9016,
67,
1747,
67,
80,
63,
6795,
67,
2019,
65,
4868,
1769,
565,
309,
261,
7683,
18,
7330,
24250,
6668,
262,
288,
1377,
3785,
2932,
1850,
309,
261,
261,
6795,
67,
4350,
473,
13773,
30348,
8720,
15,
7923,
422,
13773,
30348,
8720,
9078,
262,
8863,
1377,
3785,
2932,
5411,
9016,
67,
6206,
823,
1616,
67,
80,
273,
9016,
67,
2972,
1616,
67,
80,
4868,
1769,
1377,
3785,
5621,
565,
289,
565,
3785,
2932,
1850,
309,
261,
261,
6795,
67,
4350,
473,
13773,
7263,
1013,
15,
7923,
422,
13773,
7263,
1013,
9078,
262,
288,
8863,
565,
309,
261,
7683,
18,
7330,
24250,
6668,
262,
4202,
3785,
2932,
5411,
9016,
67,
17416,
67,
6206,
823,
273,
261,
6795,
19667,
2498,
473,
13773,
1502,
3141,
4415,
15,
7923,
422,
13773,
1502,
3141,
4415,
9078,
4868,
1769,
565,
4343,
292,
18,
18356,
2134,
5621,
3639,
3785,
2932,
5411,
309,
261,
261,
6795,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3626,
967,
1999,
863,
2134,
1435,
288,
565,
3785,
2932,
1850,
509,
9016,
67,
4285,
273,
9016,
2338,
67,
80,
63,
9016,
67,
492,
863,
67,
80,
63,
6795,
67,
2019,
65,
397,
9016,
22738,
67,
80,
63,
6795,
67,
2630,
65,
308,
4868,
1769,
565,
3785,
2932,
1850,
309,
261,
6795,
67,
4285,
422,
13773,
40,
2046,
18,
3417,
67,
16374,
15,
7923,
898,
9016,
67,
1884,
1803,
4868,
1769,
565,
3785,
2932,
1850,
9016,
67,
2019,
273,
9016,
67,
4285,
4868,
1769,
565,
3785,
5621,
565,
3785,
2932,
1850,
509,
9016,
67,
4350,
273,
9016,
67,
1747,
67,
80,
63,
6795,
67,
2019,
65,
4868,
1769,
565,
309,
261,
7683,
18,
7330,
24250,
6668,
2
] |
return addWebUser(dbc, name, password, group, description, null, additionalInfos);
|
return addWebUser(dbc, name, password, group, null, description, additionalInfos);
|
public CmsUser addWebUser( CmsDbContext dbc, String name, String password, String group, String description, Map additionalInfos) throws CmsException, CmsSecurityException, CmsIllegalArgumentException, CmsDbEntryNotFoundException { return addWebUser(dbc, name, password, group, description, null, additionalInfos); }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/2e49baef3a8cdf14ae889b298c78c26737c24e52/CmsDriverManager.java/buggy/src/org/opencms/db/CmsDriverManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
25492,
527,
4079,
1299,
12,
3639,
30670,
9881,
16,
3639,
514,
508,
16,
3639,
514,
2201,
16,
3639,
514,
1041,
16,
3639,
514,
2477,
16,
3639,
1635,
3312,
7655,
13,
565,
1216,
11228,
16,
2149,
24918,
16,
2149,
31237,
16,
25983,
1622,
3990,
288,
3639,
327,
527,
4079,
1299,
12,
9137,
16,
508,
16,
2201,
16,
1041,
16,
446,
16,
2477,
16,
3312,
7655,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
25492,
527,
4079,
1299,
12,
3639,
30670,
9881,
16,
3639,
514,
508,
16,
3639,
514,
2201,
16,
3639,
514,
1041,
16,
3639,
514,
2477,
16,
3639,
1635,
3312,
7655,
13,
565,
1216,
11228,
16,
2149,
24918,
16,
2149,
31237,
16,
25983,
1622,
3990,
288,
3639,
327,
527,
4079,
1299,
12,
9137,
16,
508,
16,
2201,
16,
1041,
16,
446,
16,
2477,
16,
3312,
7655,
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
] |
public GridHandleAdapter getGridHandleAdapter( Object obj )
|
public GridHandleAdapter getGridHandleAdapter( Object obj, IModelAdapterHelper mark )
|
public GridHandleAdapter getGridHandleAdapter( Object obj ) { return getGridHandleAdapter( obj, null ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/04c0fff3428d48e39b79934e3718691f7e83ec98/HandleAdapterFactory.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/core/model/schematic/HandleAdapterFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7145,
3259,
4216,
336,
6313,
3259,
4216,
12,
1033,
1081,
262,
202,
95,
202,
202,
2463,
336,
6313,
3259,
4216,
12,
1081,
16,
446,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7145,
3259,
4216,
336,
6313,
3259,
4216,
12,
1033,
1081,
262,
202,
95,
202,
202,
2463,
336,
6313,
3259,
4216,
12,
1081,
16,
446,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private int yylex() { char c; boolean spaceSeen = false; boolean commandState; if (lex_strterm != null) { int tok = lex_strterm.parseString(this, src); if (tok == Tokens.tSTRING_END || tok == Tokens.tREGEXP_END) { lex_strterm = null; lex_state = LexState.EXPR_END; } return tok; } currentPos = src.getPosition(); commandState = commandStart; commandStart = false; retry: for(;;) { c = src.read(); switch(c) { case '\004': /* ^D */ case '\032': /* ^Z */ case 0: /* end of script. */ return 0; /* white spaces */ case ' ': case '\t': case '\f': case '\r': case '\13': /* '\v' */ spaceSeen = true; continue retry; case '#': /* it's a comment */ while ((c = src.read()) != '\n') { if (c == EOF) { return 0; } } /* fall through */ case '\n': // Replace a string of newlines with a single one while((c = src.read()) == '\n') { currentPos = src.getPosition(); } src.unread( c ); if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_CLASS) { continue retry; } commandStart = true; lex_state = LexState.EXPR_BEG; return '\n'; case '*': if ((c = src.read()) == '*') { if ((c = src.read()) == '=') { yaccValue = "**"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } yaccValue = "**"; src.unread(c); c = Tokens.tPOW; } else { if (c == '=') { yaccValue = "*"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { warnings.warning(src.getPosition(), "`*' interpreted as argument prefix"); c = Tokens.tSTAR; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tSTAR; } else { c = Tokens.tSTAR2; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "*"; return c; case '!': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { return Tokens.tNEQ; } if (c == '~') { return Tokens.tNMATCH; } src.unread(c); return Tokens.tBANG; case '=': // Skip documentation nodes if (src.wasBeginOfLine()) { /* skip embedded rd document */ if (isNextNoCase("begin")) { c = src.read(); if (Character.isWhitespace(c)) { // In case last next was the newline. src.unread(c); for (;;) { c = src.read(); // If a line is followed by a blank line put // it back. while (c == '\n') { c = src.read(); } if (c == EOF) { throw new SyntaxException(src.getPosition(), "embedded document meets end of file"); } if (c != '=') continue; if (src.wasBeginOfLine() && isNextNoCase("end")) { //if (src.peek('\n')) { // break; //} //c = src.read(); //if (Character.isWhitespace(c)) { src.readLine(); break; //} //src.unread(c); } } continue retry; } src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } c = src.read(); if (c == '=') { c = src.read(); if (c == '=') { yaccValue = "==="; return Tokens.tEQQ; } src.unread(c); yaccValue = "=="; return Tokens.tEQ; } if (c == '~') { yaccValue = "=~"; return Tokens.tMATCH; } else if (c == '>') { return Tokens.tASSOC; } src.unread(c); return '='; case '<': c = src.read(); if (c == '<' && lex_state != LexState.EXPR_END && lex_state != LexState.EXPR_DOT && lex_state != LexState.EXPR_ENDARG && lex_state != LexState.EXPR_CLASS && (!lex_state.isArgument() || spaceSeen)) { int tok = hereDocumentIdentifier(); if (tok != 0) return tok; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if (c == '=') { if ((c = src.read()) == '>') { yaccValue = "<=>"; return Tokens.tCMP; } yaccValue = "<="; src.unread(c); return Tokens.tLEQ; } if (c == '<') { yaccValue = "<<"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tLSHFT; } yaccValue = "<"; src.unread(c); return Tokens.tLT; case '>': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if ((c = src.read()) == '=') { yaccValue = ">="; return Tokens.tGEQ; } if (c == '>') { yaccValue = ">>"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tRSHFT; } yaccValue = ">"; src.unread(c); return Tokens.tGT; case '"': lex_strterm = new StringTerm(str_dquote, '"', '\0'); return Tokens.tSTRING_BEG; case '`': yaccValue = "`"; if (lex_state == LexState.EXPR_FNAME) { lex_state = LexState.EXPR_END; return Tokens.tBACK_REF2; } if (lex_state == LexState.EXPR_DOT) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } return Tokens.tBACK_REF2; } lex_strterm = new StringTerm(str_xquote, '`', '\0'); return Tokens.tXSTRING_BEG; case '\'': lex_strterm = new StringTerm(str_squote, '\'', '\0'); return Tokens.tSTRING_BEG; case '?': if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG) { lex_state = LexState.EXPR_BEG; return '?'; } c = src.read(); if (c == EOF) { throw new SyntaxException(src.getPosition(), "incomplete character syntax"); } if (Character.isWhitespace(c)){ if (!lex_state.isArgument()){ int c2 = 0; switch (c) { case ' ': c2 = 's'; break; case '\n': c2 = 'n'; break; case '\t': c2 = 't'; break; /* What is \v in C? case '\v': c2 = 'v'; break; */ case '\r': c2 = 'r'; break; case '\f': c2 = 'f'; break; } if (c2 != 0) { warnings.warn(src.getPosition(), "invalid character syntax; use ?\\" + c2); } } src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; /*} else if (ismbchar(c)) { // ruby - we don't support them either? rb_warn("multibyte character literal not supported yet; use ?\\" + c); support.unread(c); lexState = LexState.EXPR_BEG; return '?';*/ } else if ((Character.isLetterOrDigit(c) || c == '_') && !src.peek('\n') && isNext_identchar()) { src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; } else if (c == '\\') { c = src.readEscape(); } c &= 0xff; lex_state = LexState.EXPR_END; yaccValue = new Long(c); return Tokens.tINTEGER; case '&': if ((c = src.read()) == '&') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "&&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tANDOP; } else if (c == '=') { yaccValue = "&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)){ warnings.warning(src.getPosition(), "`&' interpreted as argument prefix"); c = Tokens.tAMPER; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tAMPER; } else { c = Tokens.tAMPER2; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "&"; return c; case '|': if ((c = src.read()) == '|') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "||"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tOROP; } if (c == '=') { yaccValue = "|"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "|"; src.unread(c); return Tokens.tPIPE; case '+': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@+"; return Tokens.tUPLUS; } yaccValue = "+"; src.unread(c); return Tokens.tPLUS; } if (c == '=') { yaccValue = "+"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { c = '+'; return parseNumber(c); } return Tokens.tUPLUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tPLUS; case '-': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@-"; return Tokens.tUMINUS; } yaccValue = "-"; src.unread(c); return Tokens.tMINUS; } if (c == '=') { yaccValue = "-"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { return Tokens.tUMINUS_NUM; } return Tokens.tUMINUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tMINUS; case '.': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '.') { if ((c = src.read()) == '.') { return Tokens.tDOT3; } src.unread(c); return Tokens.tDOT2; } src.unread(c); if (Character.isDigit(c)) { throw new SyntaxException(src.getPosition(), "no .<digit> floating literal anymore; put 0 before dot"); } lex_state = LexState.EXPR_DOT; return Tokens.tDOT; case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return parseNumber(c); case ']': case '}': case ')': conditionState.restart(); cmdArgumentState.restart(); lex_state = LexState.EXPR_END; return c; case ':': c = src.read(); if (c == ':') { if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_CLASS || (lex_state.isArgument() && spaceSeen)) { lex_state = LexState.EXPR_BEG; return Tokens.tCOLON3; } lex_state = LexState.EXPR_DOT; return Tokens.tCOLON2; } if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG || Character.isWhitespace(c)) { src.unread(c); lex_state = LexState.EXPR_BEG; return ':'; } switch (c) { case '\'': lex_strterm = new StringTerm(str_ssym, c, '\0'); break; case '"': lex_strterm = new StringTerm(str_dsym, c, '\0'); break; default: src.unread(c); break; } lex_state = LexState.EXPR_FNAME; return Tokens.tSYMBEG; case '/': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } if ((c = src.read()) == '=') { yaccValue = "/"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen) { if (!Character.isWhitespace(c)) { arg_ambiguous(); lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "/"; return Tokens.tDIVIDE; case '^': yaccValue = "^"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } src.unread(c); return Tokens.tCARET; case ';': commandStart = true; case ',': lex_state = LexState.EXPR_BEG; return c; case '~': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { if ((c = src.read()) != '@') { src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "~"; return Tokens.tTILDE; case '(': c = Tokens.tLPAREN2; commandStart = true; if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLPAREN; } else if (spaceSeen) { if (lex_state == LexState.EXPR_CMDARG) { c = Tokens.tLPAREN_ARG; } else if (lex_state == LexState.EXPR_ARG) { warnings.warn(src.getPosition(), "don't put space before argument parentheses"); c = Tokens.tLPAREN2; } } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '[': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if ((c = src.read()) == ']') { if ((c = src.read()) == '=') { yaccValue = "[]="; return Tokens.tASET; } yaccValue = "[]"; src.unread(c); return Tokens.tAREF; } src.unread(c); return '['; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLBRACK; } else if (lex_state.isArgument() && spaceSeen) { c = Tokens.tLBRACK; } lex_state = LexState.EXPR_BEG; conditionState.stop(); cmdArgumentState.stop(); return c; case '{': c = Tokens.tLCURLY; if (lex_state.isArgument() || lex_state == LexState.EXPR_END) { c = Tokens.tLCURLY; /* block (primary) */ } else if (lex_state == LexState.EXPR_ENDARG) { c = Tokens.tLBRACE_ARG; /* block (expr) */ } else { c = Tokens.tLBRACE; /* hash */ } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '\\': c = src.read(); if (c == '\n') { spaceSeen = true; continue retry; /* skip \\n */ } src.unread(c); return '\\'; case '%': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { return parseQuote(src.read()); } if ((c = src.read()) == '=') { yaccValue = "%"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { return parseQuote(c); } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "%"; src.unread(c); return Tokens.tPERCENT; case '$': lex_state = LexState.EXPR_END; tokenBuffer.setLength(0); c = src.read(); switch (c) { case '_': /* $_: last read line string */ c = src.read(); if (isIdentifierChar(c)) { tokenBuffer.append('$'); tokenBuffer.append('_'); break; } src.unread(c); c = '_'; /* fall through */ case '*': /* $*: argv */ case '$': /* $$: pid */ case '?': /* $?: last status */ case '!': /* $!: error string */ case '@': /* $@: error position */ case '/': /* $/: input record separator */ case '\\': /* $\: output record separator */ case ';': /* $;: field separator */ case ',': /* $,: output field separator */ case '.': /* $.: last read line number */ case '=': /* $=: ignorecase */ case ':': /* $:: load path */ case '<': /* $<: reading filename */ case '>': /* $>: default output handle */ case '\"': /* $": already loaded files */ tokenBuffer.append('$'); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); return Tokens.tGVAR; case '-': tokenBuffer.append('$'); tokenBuffer.append(c); c = src.read(); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); /* xxx shouldn't check if valid option variable */ return Tokens.tGVAR; case '~': /* $~: match-data */ case '&': /* $&: last match */ case '`': /* $`: string before last match */ case '\'': /* $': string after last match */ case '+': /* $+: string matches last paren. */ yaccValue = new BackRefNode(src.getPosition(), c); return Tokens.tBACK_REF; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': tokenBuffer.append('$'); do { tokenBuffer.append(c); c = src.read(); } while (Character.isDigit(c)); src.unread(c); yaccValue = new NthRefNode(src.getPosition(), Integer.parseInt(tokenBuffer.substring(1))); return Tokens.tNTH_REF; default: if (!isIdentifierChar(c)) { src.unread(c); return '$'; } case '0': tokenBuffer.append('$'); } break; case '@': c = src.read(); tokenBuffer.setLength(0); tokenBuffer.append('@'); if (c == '@') { tokenBuffer.append('@'); c = src.read(); } if (Character.isDigit(c)) { if (tokenBuffer.length() == 1) { throw new SyntaxException(src.getPosition(), "`@" + c + "' is not allowed as an instance variable name"); } throw new SyntaxException(src.getPosition(), "`@@" + c + "' is not allowed as a class variable name"); } if (!isIdentifierChar(c)) { src.unread(c); return '@'; } break; case '_': if (src.wasBeginOfLine() && src.matchString("_END__\n", false)) { parserSupport.getResult().setEndSeen(true); return 0; } tokenBuffer.setLength(0); break; default: if (!isIdentifierChar(c)) { throw new SyntaxException(src.getPosition(), "Invalid char `\\" + new PrintfFormat("%.3o").sprintf(c) + "' in expression"); } tokenBuffer.setLength(0); break; } do { tokenBuffer.append(c); /* no special multibyte character handling is needed in Java * if (ismbchar(c)) { int i, len = mbclen(c)-1; for (i = 0; i < len; i++) { c = src.read(); tokenBuffer.append(c); } }*/ c = src.read(); } while (isIdentifierChar(c)); char peek = src.read(); if ((c == '!' || c == '?') && isIdentifierChar(tokenBuffer.charAt(0)) && peek != '=') { src.unread(peek); tokenBuffer.append(c); } else { src.unread(peek); src.unread(c); } int result = 0; switch (tokenBuffer.charAt(0)) { case '$': lex_state = LexState.EXPR_END; result = Tokens.tGVAR; break; case '@': lex_state = LexState.EXPR_END; if (tokenBuffer.charAt(1) == '@') { result = Tokens.tCVAR; } else { result = Tokens.tIVAR; } break; default: char last = tokenBuffer.charAt(tokenBuffer.length() - 1); if (last == '!' || last == '?') { result = Tokens.tFID; } else { if (lex_state == LexState.EXPR_FNAME) { /* // Enebo: This should be equivalent to below without // so much read/unread action. if ((c = src.read()) == '=') { char c2 = src.read(); if (c2 != '~' && c2 != '>' && (c2 != '=' || (c2 == '\n' && src.peek('>')))) { result = Token.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c2); src.unread(c); } } else { src.unread(c); } */ if ((c = src.read()) == '=' && !src.peek('~') && !src.peek('>') && (!src.peek('=') || (src.peek('\n') && src.getCharAt(1) == '>'))) { result = Tokens.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c); } } if (result == 0 && ISUPPER(tokenBuffer.charAt(0))) { result = Tokens.tCONSTANT; } else { result = Tokens.tIDENTIFIER; } } if (lex_state != LexState.EXPR_DOT) { /* See if it is a reserved word. */ Keyword keyword = Keyword.getKeyword(tokenBuffer.toString(), tokenBuffer.length()); if (keyword != null) { // enum lex_state LexState state = lex_state; lex_state = keyword.state; if (state.isExprFName()) { yaccValue = keyword.name; } if (keyword.id0 == Tokens.kDO) { if (conditionState.isInState()) { return Tokens.kDO_COND; } if (cmdArgumentState.isInState() && state != LexState.EXPR_CMDARG) { return Tokens.kDO_BLOCK; } if (state == LexState.EXPR_ENDARG) { return Tokens.kDO_BLOCK; } return Tokens.kDO; } if (state == LexState.EXPR_BEG) { return keyword.id0; } if (keyword.id0 != keyword.id1) { lex_state = LexState.EXPR_BEG; } return keyword.id1; } } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_ARG || lex_state == LexState.EXPR_CMDARG) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } } else { lex_state = LexState.EXPR_END; } } yaccValue = tokenBuffer.toString(); // Lame: parsing logic made it into lexer in ruby...So we // are emulating if (IdUtil.isLocal((String)yaccValue) && ((((LocalNamesElement) parserSupport.getLocalNames().peek()).isInBlock() && ((BlockNamesElement) parserSupport.getBlockNames().peek()).isDefined((String) yaccValue)) || ((LocalNamesElement) parserSupport.getLocalNames().peek()).isLocalRegistered((String) yaccValue))) { lex_state = LexState.EXPR_END; } return result; } }
|
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/b1293eda8454686e846e2a9837b348e2983bb423/RubyYaccLexer.java/clean/src/org/jruby/lexer/yacc/RubyYaccLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
1149,
276,
31,
3639,
1250,
3476,
15160,
273,
629,
31,
3639,
1250,
1296,
1119,
31,
7734,
309,
261,
4149,
67,
701,
6408,
480,
446,
13,
288,
1082,
202,
474,
946,
273,
5275,
67,
701,
6408,
18,
2670,
780,
12,
2211,
16,
1705,
1769,
1082,
202,
430,
261,
17692,
422,
13899,
18,
88,
5804,
67,
4415,
747,
946,
422,
13899,
18,
88,
28225,
67,
4415,
13,
288,
9506,
565,
5275,
67,
701,
6408,
273,
446,
31,
9506,
565,
5275,
67,
2019,
273,
15123,
1119,
18,
2294,
8025,
67,
4415,
31,
1082,
202,
97,
1082,
202,
2463,
946,
31,
3639,
289,
3639,
783,
1616,
273,
1705,
18,
588,
2555,
5621,
7734,
1296,
1119,
273,
1296,
1685,
31,
3639,
1296,
1685,
273,
629,
31,
7734,
3300,
30,
364,
12,
25708,
13,
288,
5411,
276,
273,
1705,
18,
896,
5621,
5411,
1620,
12,
71,
13,
288,
5411,
648,
2337,
26565,
4278,
202,
202,
20308,
3602,
40,
1195,
5411,
648,
2337,
20,
1578,
4278,
202,
202,
20308,
3602,
62,
1195,
5411,
648,
374,
30,
1082,
202,
20308,
679,
434,
2728,
18,
1195,
7734,
327,
374,
31,
21821,
1748,
9578,
7292,
1195,
5411,
648,
296,
4290,
648,
2337,
88,
4278,
648,
2337,
74,
4278,
648,
2337,
86,
4278,
5411,
648,
2337,
3437,
4278,
1748,
2337,
90,
11,
1195,
7734,
3476,
15160,
273,
638,
31,
7734,
1324,
3300,
31,
5411,
648,
2946,
4278,
202,
202,
20308,
518,
1807,
279,
2879,
1195,
7734,
1323,
14015,
71,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
1149,
276,
31,
3639,
1250,
3476,
15160,
273,
629,
31,
3639,
1250,
1296,
1119,
31,
7734,
309,
261,
4149,
67,
701,
6408,
480,
446,
13,
288,
1082,
202,
474,
946,
273,
5275,
67,
701,
6408,
18,
2670,
780,
12,
2211,
16,
1705,
1769,
1082,
202,
430,
261,
17692,
422,
13899,
18,
88,
5804,
67,
4415,
747,
946,
422,
13899,
18,
88,
28225,
67,
4415,
13,
288,
9506,
565,
5275,
67,
701,
6408,
273,
446,
31,
9506,
565,
5275,
67,
2019,
273,
15123,
1119,
18,
2294,
8025,
67,
4415,
31,
1082,
202,
97,
1082,
202,
2463,
946,
31,
3639,
289,
3639,
783,
1616,
273,
1705,
18,
588,
2555,
5621,
7734,
1296,
2
] |
||
if ( exists ) {
|
if ( !exists ) {
|
public void modifyTuple(ReteTuple tuple, PropagationContext context, WorkingMemoryImpl workingMemory) { LinkedList memory = (LinkedList) workingMemory.getNodeMemory( this ); boolean exists = ( ( tuple.getNext() != null && tuple.getPrevious() != null ) || memory.getFirst() == tuple); if ( exists ) { // Remove the tuple so it can be readded to the top of the list memory.remove( tuple ); } boolean allowed = this.condition.isAllowed( tuple, workingMemory ); if ( allowed ) { memory.add( tuple ); if ( exists ) { propagateAssertTuple( tuple, context, workingMemory ); } else { propagateModifyTuple( tuple, context, workingMemory ); } } else { propagateRetractTuple( tuple, context, workingMemory ); } }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/1b0088443f6b147d1c1206265637a2c545515070/EvalConditionNode.java/clean/drools-core/src/main/java/org/drools/reteoo/EvalConditionNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5612,
9038,
12,
7055,
73,
9038,
3193,
16,
18701,
1186,
9095,
367,
1042,
819,
16,
18701,
22732,
6031,
2828,
5960,
6031,
13,
288,
3639,
10688,
3778,
273,
261,
13174,
682,
13,
5960,
6031,
18,
588,
907,
6031,
12,
333,
11272,
3639,
1250,
1704,
273,
261,
261,
3193,
18,
588,
2134,
1435,
480,
446,
597,
3193,
18,
588,
8351,
1435,
480,
446,
262,
747,
225,
3778,
18,
588,
3759,
1435,
422,
3193,
1769,
3639,
309,
261,
401,
1808,
262,
288,
5411,
368,
3581,
326,
3193,
1427,
518,
848,
506,
855,
785,
358,
326,
1760,
434,
326,
666,
5411,
3778,
18,
4479,
12,
3193,
11272,
3639,
289,
3639,
1250,
2935,
273,
333,
18,
4175,
18,
291,
5042,
12,
3193,
16,
4766,
10792,
5960,
6031,
11272,
3639,
309,
261,
2935,
262,
288,
5411,
3778,
18,
1289,
12,
3193,
11272,
5411,
309,
261,
401,
1808,
262,
288,
7734,
13551,
8213,
9038,
12,
3193,
16,
4766,
1377,
819,
16,
4766,
1377,
5960,
6031,
11272,
5411,
289,
469,
288,
7734,
13551,
11047,
9038,
12,
3193,
16,
4766,
1377,
819,
16,
4766,
1377,
5960,
6031,
11272,
5411,
289,
3639,
289,
469,
288,
5411,
13551,
7055,
14266,
9038,
12,
3193,
16,
4766,
282,
819,
16,
4766,
282,
5960,
6031,
11272,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5612,
9038,
12,
7055,
73,
9038,
3193,
16,
18701,
1186,
9095,
367,
1042,
819,
16,
18701,
22732,
6031,
2828,
5960,
6031,
13,
288,
3639,
10688,
3778,
273,
261,
13174,
682,
13,
5960,
6031,
18,
588,
907,
6031,
12,
333,
11272,
3639,
1250,
1704,
273,
261,
261,
3193,
18,
588,
2134,
1435,
480,
446,
597,
3193,
18,
588,
8351,
1435,
480,
446,
262,
747,
225,
3778,
18,
588,
3759,
1435,
422,
3193,
1769,
3639,
309,
261,
401,
1808,
262,
288,
5411,
368,
3581,
326,
3193,
1427,
518,
848,
506,
855,
785,
358,
326,
1760,
434,
326,
666,
5411,
3778,
18,
4479,
12,
3193,
11272,
3639,
289,
3639,
1250,
2935,
273,
333,
18,
4175,
18,
291,
5042,
12,
2
] |
if (BUILTIN.equals("xyz3")) { logger.debug("New coord found." + s); try { StringTokenizer st = new StringTokenizer(s); x3.addElement(st.nextToken()); y3.addElement(st.nextToken()); z3.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 175,1); } }
|
currentChars = currentChars + s;
|
public void characterData (char ch[], int start, int length) { // logger.debug("CD"); String s = toString(ch, start, length).trim(); switch (CurrentElement) { case STRING : logger.debug("Builtin: " + BUILTIN); if (BUILTIN.equals("elementType")) { logger.debug("Element: " + s.trim()); elsym.addElement(s); } else if (BUILTIN.equals("atomRef")) { curRef++; logger.debug("Bond: ref #" + curRef); if (curRef == 1) { bondARef1.addElement(s.trim()); } else if (curRef == 2) { bondARef2.addElement(s.trim()); } } else if (BUILTIN.equals("order")) { logger.debug("Bond: order " + s.trim()); order.addElement(s.trim()); } else if (BUILTIN.equals("formalCharge")) { logger.debug("Charge: " + s.trim()); elcharge.addElement(s.trim()); } break; case FLOAT : if (BUILTIN.equals("x3")) { x3.addElement(s.trim()); } else if (BUILTIN.equals("y3")) { y3.addElement(s.trim()); } else if (BUILTIN.equals("z3")) { z3.addElement(s.trim()); } else if (BUILTIN.equals("x2")) { x2.addElement(s.trim()); } else if (BUILTIN.equals("y2")) { y2.addElement(s.trim()); } break; case COORDINATE2 : if (BUILTIN.equals("xy2")) { logger.debug("New coord found." + s); try { StringTokenizer st = new StringTokenizer(s); x2.addElement(st.nextToken()); y2.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 175,1); } } break; case COORDINATE3 : if (BUILTIN.equals("xyz3")) { logger.debug("New coord found." + s); try { StringTokenizer st = new StringTokenizer(s); x3.addElement(st.nextToken()); y3.addElement(st.nextToken()); z3.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 175,1); } } break; case STRINGARRAY : if (BUILTIN.equals("id")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) { String token = st.nextToken(); logger.debug("StringArray (Token): " + token); elid.addElement(token); } } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 186,1); } } else if (BUILTIN.equals("elementType")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) elsym.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 194,1); } } else if (BUILTIN.equals("atomRefs")) { curRef++; logger.debug("New atomRefs found: " + curRef); try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) { String token = st.nextToken(); logger.debug("Token: " + token); if (curRef == 1) { bondARef1.addElement(token); } else if (curRef == 2) { bondARef2.addElement(token); } } } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 194,1); } } else if (BUILTIN.equals("order")) { logger.debug("New bond order found."); try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) { String token = st.nextToken(); logger.debug("Token: " + token); order.addElement(token); } } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 194,1); } } break; case INTEGERARRAY : logger.debug("IntegerArray: builtin = " + BUILTIN); if (BUILTIN.equals("formalCharge")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) { String token = st.nextToken(); logger.debug("Charge added: " + token); elcharge.addElement(token); } } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 205,1); } } case FLOATARRAY : if (BUILTIN.equals("x3")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) x3.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 205,1); } } else if (BUILTIN.equals("y3")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) y3.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 213,1); } } else if (BUILTIN.equals("z3")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) z3.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 221,1); } } else if (BUILTIN.equals("x2")) { logger.debug("New floatArray found."); try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) x2.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 205,1); } } else if (BUILTIN.equals("y2")) { logger.debug("New floatArray found."); try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) y2.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 213,1); } } break; } }
|
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/8f9b8d4786fbeb6ba3b5913f1e5c5a9ebf157701/Convention.java/buggy/org/openscience/cdk/io/cml/Convention.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3351,
751,
261,
3001,
462,
63,
6487,
509,
787,
16,
509,
769,
13,
288,
202,
759,
1194,
18,
4148,
2932,
10160,
8863,
202,
780,
272,
273,
1762,
12,
343,
16,
787,
16,
769,
2934,
5290,
5621,
202,
9610,
261,
3935,
1046,
13,
288,
202,
3593,
9469,
294,
202,
565,
1194,
18,
4148,
2932,
28032,
30,
315,
397,
10937,
2627,
56,
706,
1769,
202,
565,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
2956,
559,
6,
3719,
288,
202,
202,
4901,
18,
4148,
2932,
1046,
30,
315,
397,
272,
18,
5290,
10663,
202,
202,
292,
8117,
18,
1289,
1046,
12,
87,
1769,
1082,
565,
289,
469,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
7466,
1957,
6,
3719,
288,
202,
202,
1397,
1957,
9904,
31,
202,
202,
4901,
18,
4148,
2932,
9807,
30,
1278,
31526,
397,
662,
1957,
1769,
202,
202,
430,
261,
1397,
1957,
422,
404,
13,
288,
1082,
565,
8427,
37,
1957,
21,
18,
1289,
1046,
12,
87,
18,
5290,
10663,
202,
202,
97,
469,
309,
261,
1397,
1957,
422,
576,
13,
288,
1082,
565,
8427,
37,
1957,
22,
18,
1289,
1046,
12,
87,
18,
5290,
10663,
202,
202,
97,
202,
565,
289,
469,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
1019,
6,
3719,
288,
202,
202,
4901,
18,
4148,
2932,
9807,
30,
1353,
315,
397,
272,
18,
5290,
10663,
202,
202,
1019,
18,
1289,
1046,
12,
87,
18,
5290,
10663,
202,
565,
289,
469,
309,
261,
3000,
2627,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3351,
751,
261,
3001,
462,
63,
6487,
509,
787,
16,
509,
769,
13,
288,
202,
759,
1194,
18,
4148,
2932,
10160,
8863,
202,
780,
272,
273,
1762,
12,
343,
16,
787,
16,
769,
2934,
5290,
5621,
202,
9610,
261,
3935,
1046,
13,
288,
202,
3593,
9469,
294,
202,
565,
1194,
18,
4148,
2932,
28032,
30,
315,
397,
10937,
2627,
56,
706,
1769,
202,
565,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
2956,
559,
6,
3719,
288,
202,
202,
4901,
18,
4148,
2932,
1046,
30,
315,
397,
272,
18,
5290,
10663,
202,
202,
292,
8117,
18,
1289,
1046,
12,
87,
1769,
1082,
565,
289,
469,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
7466,
2
] |
boolean showButtons = true;
|
public void layout(boolean flushCache) { if (inLayout) { return; } boolean showButtons = true; inLayout = true; try { viewForm.setLayoutDeferred(true); tabFolder.setMinimizeVisible(showButtons && minimizeVisible); tabFolder.setMaximizeVisible(showButtons && maximizeVisible); // Flush the cached sizes if necessary if (flushCache) { topLeftCache.flush(); topRightCache.flush(); topCenterCache.flush(); } // HACK: Force the tab folder to do a layout, since it doesn't always // resize its title area each time setBounds is called. if (!(useTopRightOptimization && (topRightResized || lastWidth == getControl() .getBounds().width))) { // If we can't use the optimization, then we need to force a layout // of the tab folder tabFolder.setTopRight(titleAreaProxy, SWT.FILL); } useTopRightOptimization = false; // END OF HACK Rectangle titleArea = DragUtil.getDisplayBounds(titleAreaProxy); Point topRightSize = topRightCache .computeSize(SWT.DEFAULT, SWT.DEFAULT); Point topCenterSize = topCenterCache.computeSize(SWT.DEFAULT, SWT.DEFAULT); // Determine if there is enough room for the trim in the title area int requiredWidth = topRightSize.x + topCenterSize.x; int requiredHeight = Math.max(topRightSize.y, topCenterSize.y); boolean lastTrimOnTop = putTrimOnTop; putTrimOnTop = (titleArea.width >= requiredWidth && titleArea.height >= requiredHeight); Control topRight = topRightCache.getControl(); Control topCenter = topCenterCache.getControl(); if (putTrimOnTop) { // Try to avoid calling setTop* whenever possible, since this will // trigger a layout // of the viewForm. if (!lastTrimOnTop) { // Arrange controls in the title bar viewFormTopCenterProxy.setTarget(null); viewFormTopRightProxy.setTarget(null); viewForm.setTopCenter(null); viewForm.setTopRight(null); } Rectangle topRightArea = new Rectangle(titleArea.x + titleArea.width - topRightSize.x, titleArea.y + (titleArea.height - topRightSize.y) / 2, topRightSize.x, topRightSize.y); if (topRight != null) { topRight.setBounds(Geometry.toControl(topRight.getParent(), topRightArea)); } if (topCenter != null) { Rectangle topCenterArea = new Rectangle(topRightArea.x - topCenterSize.x, titleArea.y + (titleArea.height - topCenterSize.y) / 2, topCenterSize.x, topCenterSize.y); Rectangle localCoords = Geometry.toControl(topCenter .getParent(), topCenterArea); topCenter.setBounds(localCoords); } } else { if (lastTrimOnTop) { if (topCenter != null) { viewFormTopCenterProxy.setTarget(topCenterCache); viewForm.setTopCenter(viewFormTopCenterProxy.getControl()); } if (topRight != null) { viewFormTopRightProxy.setTarget(topRightCache); viewForm.setTopRight(viewFormTopRightProxy.getControl()); } } } Rectangle newBounds = tabFolder.getClientArea(); viewForm.setBounds(newBounds); } finally { viewForm.setLayoutDeferred(false); inLayout = false; } viewFormTopRightProxy.layout(); viewFormTopLeftProxy.layout(); viewFormTopCenterProxy.layout(); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/309b49c00e0acd3b364d858ae4bd7c1455279cdd/PaneFolder.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/PaneFolder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3511,
12,
6494,
3663,
1649,
13,
288,
377,
202,
430,
261,
267,
3744,
13,
288,
377,
202,
202,
2463,
31,
377,
202,
97,
377,
202,
9079,
316,
3744,
273,
638,
31,
202,
202,
698,
288,
202,
1171,
202,
1945,
1204,
18,
542,
3744,
16886,
12,
3767,
1769,
1082,
3639,
3246,
3899,
18,
542,
2930,
10153,
6207,
12,
4500,
14388,
597,
18935,
6207,
1769,
202,
3639,
3246,
3899,
18,
542,
2747,
10153,
6207,
12,
4500,
14388,
597,
943,
10153,
6207,
1769,
1082,
3639,
368,
11624,
326,
3472,
8453,
309,
4573,
202,
3639,
309,
261,
11330,
1649,
13,
288,
202,
5411,
1760,
3910,
1649,
18,
11330,
5621,
202,
5411,
1760,
4726,
1649,
18,
11330,
5621,
202,
5411,
1760,
8449,
1649,
18,
11330,
5621,
202,
3639,
289,
1082,
3639,
368,
670,
3649,
30,
11889,
326,
3246,
3009,
358,
741,
279,
3511,
16,
3241,
518,
3302,
1404,
3712,
202,
3639,
368,
7041,
2097,
2077,
5091,
1517,
813,
444,
5694,
353,
2566,
18,
202,
3639,
309,
16051,
12,
1202,
3401,
4726,
13930,
1588,
597,
261,
3669,
4726,
607,
1235,
747,
1142,
2384,
422,
27174,
1435,
202,
7734,
263,
588,
5694,
7675,
2819,
20349,
288,
202,
5411,
368,
971,
732,
848,
1404,
999,
326,
14850,
16,
1508,
732,
1608,
358,
2944,
279,
3511,
202,
5411,
368,
434,
326,
3246,
3009,
202,
5411,
3246,
3899,
18,
542,
3401,
4726,
12,
2649,
5484,
3886,
16,
348,
8588,
18,
29818,
1769,
202,
3639,
289,
202,
3639,
999,
3401,
4726,
13930,
1588,
273,
629,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3511,
12,
6494,
3663,
1649,
13,
288,
377,
202,
430,
261,
267,
3744,
13,
288,
377,
202,
202,
2463,
31,
377,
202,
97,
377,
202,
9079,
316,
3744,
273,
638,
31,
202,
202,
698,
288,
202,
1171,
202,
1945,
1204,
18,
542,
3744,
16886,
12,
3767,
1769,
1082,
3639,
3246,
3899,
18,
542,
2930,
10153,
6207,
12,
4500,
14388,
597,
18935,
6207,
1769,
202,
3639,
3246,
3899,
18,
542,
2747,
10153,
6207,
12,
4500,
14388,
597,
943,
10153,
6207,
1769,
1082,
3639,
368,
11624,
326,
3472,
8453,
309,
4573,
202,
3639,
309,
261,
11330,
1649,
13,
288,
202,
5411,
1760,
3910,
1649,
18,
11330,
5621,
202,
5411,
1760,
4726,
1649,
18,
11330,
5621,
202,
5411,
1760,
2
] |
|
if (m_isTopElement) {
|
if (!m_typeSet && m_isTopElement) { int todo = 0; m_typeSet = true;
|
public void setContentType(String type) { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_FLEXRESPONSE_SETTING_CONTENTTYPE_1, type)); } // only if this is the "Top-Level" element, do set the content type // otherwise an included JSP could reset the type with some unwanted defaults if (m_isTopElement) { super.setContentType(type); return; } }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/feb7737a52ef484aa149b11b44837884465aa199/CmsFlexResponse.java/buggy/src/org/opencms/flex/CmsFlexResponse.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21852,
12,
780,
618,
13,
288,
3639,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
288,
5411,
2018,
18,
4148,
12,
5058,
18,
588,
7675,
856,
12,
5058,
18,
4842,
67,
42,
21130,
14508,
67,
1090,
12239,
67,
6067,
1157,
30651,
67,
21,
16,
618,
10019,
3639,
289,
3639,
368,
1338,
309,
333,
353,
326,
315,
3401,
17,
2355,
6,
930,
16,
741,
444,
326,
913,
618,
5411,
368,
3541,
392,
5849,
804,
3118,
3377,
2715,
326,
618,
598,
2690,
30264,
3467,
1850,
309,
16051,
81,
67,
723,
694,
597,
312,
67,
291,
3401,
1046,
13,
288,
509,
10621,
273,
374,
31,
225,
312,
67,
723,
694,
273,
638,
31,
5411,
2240,
18,
542,
8046,
12,
723,
1769,
5411,
327,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21852,
12,
780,
618,
13,
288,
3639,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
288,
5411,
2018,
18,
4148,
12,
5058,
18,
588,
7675,
856,
12,
5058,
18,
4842,
67,
42,
21130,
14508,
67,
1090,
12239,
67,
6067,
1157,
30651,
67,
21,
16,
618,
10019,
3639,
289,
3639,
368,
1338,
309,
333,
353,
326,
315,
3401,
17,
2355,
6,
930,
16,
741,
444,
326,
913,
618,
5411,
368,
3541,
392,
5849,
804,
3118,
3377,
2715,
326,
618,
598,
2690,
30264,
3467,
1850,
309,
16051,
81,
67,
723,
694,
597,
312,
67,
291,
3401,
1046,
13,
288,
509,
10621,
273,
374,
31,
225,
312,
67,
723,
694,
273,
638,
31,
5411,
2240,
18,
542,
8046,
12,
2
] |
if (! docInfo.isImported()) {
|
if (!docInfo.isImported()) {
|
public void actionPerformed(ActionEvent e) { DocumentInfo docInfo = ((RecentFilesListItem) e.getSource()).getDocumentInfo(); String filename = docInfo.getPath(); if (!Outliner.documents.isFileNameUnique(filename)) { String msg = GUITreeLoader.reg.getText("message_file_already_open"); msg = Replace.replace(msg,GUITreeComponentRegistry.PLACEHOLDER_1, filename); JOptionPane.showMessageDialog(Outliner.outliner, msg); return; } // TEMP: get protocol from protocolName String protocolName = docInfo.getProtocolName(); FileProtocol protocol = null; if (protocolName == null || protocolName.equals("")) { protocol = Outliner.fileProtocolManager.getDefault(); } else { protocol = Outliner.fileProtocolManager.getProtocol(protocolName); } // Open or Import the file, as is appropriate if (! docInfo.isImported()) { FileMenu.openFile(docInfo, protocol); } else { FileMenu.importFile(docInfo,protocol); } // end if-else }
|
49473 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49473/8779cdb98eb677d6cfddacf5bd9d3b772489fa4c/RecentFilesList.java/buggy/outliner/src/com/organic/maynard/outliner/RecentFilesList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
202,
2519,
966,
997,
966,
273,
14015,
17076,
2697,
13575,
13,
425,
18,
588,
1830,
1435,
2934,
588,
2519,
966,
5621,
202,
202,
780,
1544,
273,
997,
966,
18,
588,
743,
5621,
202,
202,
430,
16051,
1182,
7511,
264,
18,
24795,
18,
291,
4771,
6303,
12,
3459,
3719,
288,
1082,
202,
780,
1234,
273,
611,
57,
1285,
992,
2886,
18,
1574,
18,
588,
1528,
2932,
2150,
67,
768,
67,
17583,
67,
3190,
8863,
1082,
202,
3576,
273,
6910,
18,
2079,
12,
3576,
16,
30673,
1285,
992,
1841,
4243,
18,
12134,
21424,
67,
21,
16,
1544,
1769,
25083,
202,
46,
1895,
8485,
18,
4500,
1079,
6353,
12,
1182,
7511,
264,
18,
659,
7511,
264,
16,
1234,
1769,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
759,
24401,
30,
336,
1771,
628,
1771,
461,
202,
202,
780,
1771,
461,
273,
997,
966,
18,
588,
5752,
461,
5621,
202,
202,
812,
5752,
1771,
273,
446,
31,
202,
202,
430,
261,
8373,
461,
422,
446,
747,
1771,
461,
18,
14963,
2932,
6,
3719,
288,
1082,
202,
8373,
273,
2976,
7511,
264,
18,
768,
5752,
1318,
18,
588,
1868,
5621,
202,
202,
97,
469,
288,
1082,
202,
8373,
273,
2976,
7511,
264,
18,
768,
5752,
1318,
18,
588,
5752,
12,
8373,
461,
1769,
202,
202,
97,
202,
202,
759,
3502,
578,
6164,
326,
585,
16,
487,
353,
5505,
202,
202,
430,
16051,
997,
966,
18,
291,
24934,
10756,
288,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
202,
2519,
966,
997,
966,
273,
14015,
17076,
2697,
13575,
13,
425,
18,
588,
1830,
1435,
2934,
588,
2519,
966,
5621,
202,
202,
780,
1544,
273,
997,
966,
18,
588,
743,
5621,
202,
202,
430,
16051,
1182,
7511,
264,
18,
24795,
18,
291,
4771,
6303,
12,
3459,
3719,
288,
1082,
202,
780,
1234,
273,
611,
57,
1285,
992,
2886,
18,
1574,
18,
588,
1528,
2932,
2150,
67,
768,
67,
17583,
67,
3190,
8863,
1082,
202,
3576,
273,
6910,
18,
2079,
12,
3576,
16,
30673,
1285,
992,
1841,
4243,
18,
12134,
21424,
67,
21,
16,
1544,
1769,
25083,
202,
46,
1895,
8485,
18,
4500,
1079,
6353,
12,
1182,
2
] |
if (m_siteAlias && checkForAlias && (context != null))
|
if (m_siteAlias && checkForAlias && (context != null) && (context.length() > 0))
|
public boolean parseEntityReference(String reference, Reference ref) { String id = null; String context = ""; // for content hosting resources and collections if (reference.startsWith(REFERENCE_ROOT)) { // parse out the local resource id id = reference.substring(REFERENCE_ROOT.length(), reference.length()); } // for content hosting resources and collections - full url // TODO: really? would this ever be used? -ggolden else if (reference.startsWith(getUrl(""))) { // parse out the local resource id id = reference.substring(getUrl("").length(), reference.length()); } // not mine else { return false; } // recognize a short reference if (m_shortRefs) { // ignoring the first separator, get the first item separated from the rest String prefix[] = StringUtil.splitFirst((id.length() > 1) ? id.substring(1) : "", Entity.SEPARATOR); if (prefix.length > 0) { // the following are recognized as full reference prefixe; if seen, the sort ref feature is not applied if (!(prefix[0].equals("group") || prefix[0].equals("user") || prefix[0].equals("group-user") || prefix[0].equals("public") || prefix[0].equals("attachment"))) { String newPrefix = null; // a "~" starts a /user/ reference if (prefix[0].startsWith("~")) { newPrefix = Entity.SEPARATOR + "user" + Entity.SEPARATOR + prefix[0].substring(1); } // otherwise a /group/ reference else { newPrefix = Entity.SEPARATOR + "group" + Entity.SEPARATOR + prefix[0]; } // reattach the tail (if any) to get the new id (if no taik, make sure we end with a separator if id started out with one) id = newPrefix + ((prefix.length > 1) ? (Entity.SEPARATOR + prefix[1]) : (id.endsWith(Entity.SEPARATOR) ? Entity.SEPARATOR : "")); } } } // parse out the associated site id, with alias checking String parts[] = StringUtil.split(id, Entity.SEPARATOR); boolean checkForAlias = true; if (parts.length >= 3) { if (parts[1].equals("group")) { context = parts[2]; } else if (parts[1].equals("user")) { context = m_siteService.getUserSiteId(parts[2]); // for user sites, don't check for alias checkForAlias = false; } else if (parts[1].equals("group-user")) { // use just the group context context = parts[2]; } // recognize alias for site id - but if a site id exists that matches the requested site id, that's what we will use if (m_siteAlias && checkForAlias && (context != null)) { if (!m_siteService.siteExists(context)) { try { String target = m_aliasService.getTarget(context); // just to stay well clear of infinite looping (the newReference will call us for content references) // ignore any targets that are to the content service -ggolden if (!(target.startsWith(REFERENCE_ROOT) || target.startsWith(getUrl("")))) { Reference targetRef = m_entityManager.newReference(target); boolean changed = false; // for a site reference if (SiteService.APPLICATION_ID.equals(targetRef.getType())) { // use the ref's id, i.e. the site id context = targetRef.getId(); changed = true; } // for mail archive reference // TODO: taken from MailArchiveService.APPLICATION_ID to (fake) reduce a dependency -ggolden else if ("sakai:mailarchive".equals(targetRef.getType())) { // use the ref's context as the site id context = targetRef.getContext(); changed = true; } // if changed, update the id if (changed) { parts[2] = context; String newId = StringUtil.unsplit(parts, Entity.SEPARATOR); // add the trailing separator if needed if (id.endsWith(Entity.SEPARATOR)) newId += Entity.SEPARATOR; id = newId; } } } catch (IdUnusedException noAlias) { } } } } ref.set(APPLICATION_ID, null, id, null, context); return true; }
|
52245 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52245/97cea557b2a0e9e678f18855fd2505a2f9c7bc3c/BaseContentService.java/buggy/content-impl/impl/src/java/org/sakaiproject/content/impl/BaseContentService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1109,
1943,
2404,
12,
780,
2114,
16,
6268,
1278,
13,
202,
95,
202,
202,
780,
612,
273,
446,
31,
202,
202,
780,
819,
273,
1408,
31,
202,
202,
759,
364,
913,
24469,
2703,
471,
6980,
202,
202,
430,
261,
6180,
18,
17514,
1190,
12,
14617,
67,
9185,
3719,
202,
202,
95,
1082,
202,
759,
1109,
596,
326,
1191,
1058,
612,
1082,
202,
350,
273,
2114,
18,
28023,
12,
14617,
67,
9185,
18,
2469,
9334,
2114,
18,
2469,
10663,
202,
202,
97,
202,
202,
759,
364,
913,
24469,
2703,
471,
6980,
300,
1983,
880,
202,
202,
759,
2660,
30,
8654,
35,
4102,
333,
14103,
506,
1399,
35,
300,
14253,
1673,
275,
202,
202,
12107,
309,
261,
6180,
18,
17514,
1190,
12,
588,
1489,
2932,
6,
20349,
202,
202,
95,
1082,
202,
759,
1109,
596,
326,
1191,
1058,
612,
1082,
202,
350,
273,
2114,
18,
28023,
12,
588,
1489,
2932,
20387,
2469,
9334,
2114,
18,
2469,
10663,
202,
202,
97,
202,
202,
759,
486,
312,
558,
202,
202,
12107,
202,
202,
95,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
759,
21431,
279,
3025,
2114,
202,
202,
430,
261,
81,
67,
6620,
9837,
13,
202,
202,
95,
1082,
202,
759,
14398,
326,
1122,
4182,
16,
336,
326,
1122,
761,
8936,
628,
326,
3127,
1082,
202,
780,
1633,
8526,
273,
14205,
18,
4939,
3759,
12443,
350,
18,
2469,
1435,
405,
404,
13,
692,
612,
18,
28023,
12,
21,
13,
294,
23453,
3887,
18,
4550,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
1943,
2404,
12,
780,
2114,
16,
6268,
1278,
13,
202,
95,
202,
202,
780,
612,
273,
446,
31,
202,
202,
780,
819,
273,
1408,
31,
202,
202,
759,
364,
913,
24469,
2703,
471,
6980,
202,
202,
430,
261,
6180,
18,
17514,
1190,
12,
14617,
67,
9185,
3719,
202,
202,
95,
1082,
202,
759,
1109,
596,
326,
1191,
1058,
612,
1082,
202,
350,
273,
2114,
18,
28023,
12,
14617,
67,
9185,
18,
2469,
9334,
2114,
18,
2469,
10663,
202,
202,
97,
202,
202,
759,
364,
913,
24469,
2703,
471,
6980,
300,
1983,
880,
202,
202,
759,
2660,
30,
8654,
35,
4102,
333,
14103,
506,
1399,
35,
300,
14253,
1673,
275,
202,
202,
12107,
309,
261,
2
] |
String expected = "[Promotion Media].[All Promotion Media].[No Media], " +
|
String expected = "[Promotion Media].[All Promotion Media].[No Media]" + nl +
|
public void testTopSum(FoodMartTestCase test) { Axis axis = test.executeAxis2( "TopSum({[Promotion Media].[Media Type].members}, 200000, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Promotion Media].[No Media], " + "[Promotion Media].[All Promotion Media].[Daily Paper, Radio, TV]"; test.assertEquals(expected, test.toString(axis.positions)); }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/a561767e2eeef6a7bc92808ee3b0f2aa0061d8fb/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1842,
3401,
3495,
12,
42,
4773,
49,
485,
4709,
2449,
1842,
13,
288,
6862,
202,
6558,
2654,
273,
1842,
18,
8837,
6558,
22,
12,
6862,
1082,
202,
6,
3401,
3495,
12590,
63,
13224,
8240,
6128,
8009,
63,
5419,
1412,
8009,
7640,
5779,
576,
11706,
16,
306,
23177,
1823,
8009,
63,
2802,
25996,
65,
2225,
1769,
6862,
202,
780,
2665,
273,
5158,
13224,
8240,
6128,
8009,
63,
1595,
17552,
8240,
6128,
8009,
63,
2279,
6128,
6487,
315,
397,
6862,
1082,
202,
6,
63,
13224,
8240,
6128,
8009,
63,
1595,
17552,
8240,
6128,
8009,
63,
40,
12857,
20971,
16,
31552,
16,
399,
58,
4279,
31,
6862,
202,
3813,
18,
11231,
8867,
12,
3825,
16,
1842,
18,
10492,
12,
4890,
18,
12388,
10019,
9506,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1842,
3401,
3495,
12,
42,
4773,
49,
485,
4709,
2449,
1842,
13,
288,
6862,
202,
6558,
2654,
273,
1842,
18,
8837,
6558,
22,
12,
6862,
1082,
202,
6,
3401,
3495,
12590,
63,
13224,
8240,
6128,
8009,
63,
5419,
1412,
8009,
7640,
5779,
576,
11706,
16,
306,
23177,
1823,
8009,
63,
2802,
25996,
65,
2225,
1769,
6862,
202,
780,
2665,
273,
5158,
13224,
8240,
6128,
8009,
63,
1595,
17552,
8240,
6128,
8009,
63,
2279,
6128,
6487,
315,
397,
6862,
1082,
202,
6,
63,
13224,
8240,
6128,
8009,
63,
1595,
17552,
8240,
6128,
8009,
63,
40,
12857,
20971,
16,
31552,
16,
399,
58,
4279,
31,
6862,
202,
3813,
18,
11231,
8867,
12,
3825,
16,
1842,
18,
10492,
2
] |
log.error("-use_all_interfaces flag requires JDK 1.4 or greater");
|
System.err.println("-use_all_interfaces flag requires JDK 1.4 or greater");
|
public static void main(String args[]) { MulticastSocket[] sockets=null; MulticastSocket sock; InetAddress mcast_addr=null, bind_addr=null; DatagramPacket packet; byte[] buf=new byte[0]; String tmp; int ttl=32; String line; DataInputStream in; AckReceiver ack_receiver=null; boolean use_all_interfaces=false; int port=5555; try { for(int i=0; i < args.length; i++) { tmp=args[i]; if("-help".equals(tmp)) { help(); return; } if("-bind_addr".equals(tmp)) { bind_addr=InetAddress.getByName(args[++i]); continue; } if("-mcast_addr".equals(tmp)) { mcast_addr=InetAddress.getByName(args[++i]); continue; } if("-ttl".equals(tmp)) { ttl=Integer.parseInt(args[++i]); continue; } if("-port".equals(tmp)) { port=Integer.parseInt(args[++i]); continue; } if("-use_all_interfaces".equals(tmp)) { use_all_interfaces=true; continue; } help(); return; } if(mcast_addr == null) mcast_addr=InetAddress.getByName("224.0.0.150"); if(use_all_interfaces) { if(!is1_4()) { log.error("-use_all_interfaces flag requires JDK 1.4 or greater"); return; } } } catch(Exception ex) { log.error(ex); return; } try { if(use_all_interfaces) { Vector v=new Vector(); for(Enumeration en=NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) { NetworkInterface intf=(NetworkInterface)en.nextElement(); for(Enumeration e2=intf.getInetAddresses(); e2.hasMoreElements();) { bind_addr=(InetAddress)e2.nextElement(); v.addElement(bind_addr); } } sockets=new MulticastSocket[v.size()]; for(int i=0; i < v.size(); i++) { sock=new MulticastSocket(port); sock.setTimeToLive(ttl); sock.setInterface((InetAddress)v.elementAt(i)); sockets[i]=sock; ack_receiver=new AckReceiver(sock); ack_receiver.start(); } } else { sockets=new MulticastSocket[1]; sockets[0]=new MulticastSocket(port); sockets[0].setTimeToLive(ttl); if(bind_addr != null) sockets[0].setInterface(bind_addr); ack_receiver=new AckReceiver(sockets[0]); ack_receiver.start(); } for(int i=0; i < sockets.length; i++) { sock=sockets[i]; if(sock == null) continue; System.out.println("Socket #" + (i+1) + '=' + sock.getLocalAddress() + ':' + sock.getLocalPort() + ", ttl=" + sock.getTimeToLive() + ", bind interface=" + sock.getInterface()); } in=new DataInputStream(System.in); while(true) { System.out.print("> "); line=in.readLine(); if(line.startsWith("quit") || line.startsWith("exit")) System.exit(0); buf=line.getBytes(); packet=new DatagramPacket(buf, buf.length, mcast_addr, port); send(packet, sockets); // send on all interfaces } } catch(Exception e) { log.error(e); } }
|
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/5ad015d9a78e1da3350d9b398b46b2f5d4508564/McastSenderTest1_4.java/buggy/tests/other/org/jgroups/tests/McastSenderTest1_4.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
202,
202,
5049,
12544,
4534,
8526,
16762,
33,
2011,
31,
202,
5049,
12544,
4534,
282,
7313,
31,
202,
382,
278,
1887,
4202,
312,
4155,
67,
4793,
33,
2011,
16,
1993,
67,
4793,
33,
2011,
31,
202,
5139,
17049,
6667,
565,
4414,
31,
202,
7229,
8526,
5411,
1681,
33,
2704,
1160,
63,
20,
15533,
202,
780,
5411,
1853,
31,
202,
474,
9079,
6337,
33,
1578,
31,
202,
780,
5411,
980,
31,
202,
751,
4348,
282,
316,
31,
202,
11931,
12952,
4202,
8479,
67,
24454,
33,
2011,
31,
202,
6494,
6647,
999,
67,
454,
67,
15898,
33,
5743,
31,
202,
474,
9079,
1756,
33,
27982,
31,
202,
698,
288,
202,
565,
364,
12,
474,
277,
33,
20,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
202,
202,
5645,
33,
1968,
63,
77,
15533,
202,
202,
430,
2932,
17,
5201,
9654,
14963,
12,
5645,
3719,
288,
1082,
565,
2809,
5621,
1082,
565,
327,
31,
202,
202,
97,
202,
202,
430,
2932,
17,
4376,
67,
4793,
9654,
14963,
12,
5645,
3719,
288,
1082,
565,
1993,
67,
4793,
33,
382,
278,
1887,
18,
588,
5911,
12,
1968,
63,
9904,
77,
19226,
1082,
565,
1324,
31,
202,
202,
97,
202,
202,
430,
2932,
17,
81,
4155,
67,
4793,
9654,
14963,
12,
5645,
3719,
288,
1082,
565,
312,
4155,
67,
4793,
33,
382,
278,
1887,
18,
588,
5911,
12,
1968,
63,
9904,
77,
19226,
1082,
565,
1324,
31,
202,
202,
97,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
202,
202,
5049,
12544,
4534,
8526,
16762,
33,
2011,
31,
202,
5049,
12544,
4534,
282,
7313,
31,
202,
382,
278,
1887,
4202,
312,
4155,
67,
4793,
33,
2011,
16,
1993,
67,
4793,
33,
2011,
31,
202,
5139,
17049,
6667,
565,
4414,
31,
202,
7229,
8526,
5411,
1681,
33,
2704,
1160,
63,
20,
15533,
202,
780,
5411,
1853,
31,
202,
474,
9079,
6337,
33,
1578,
31,
202,
780,
5411,
980,
31,
202,
751,
4348,
282,
316,
31,
202,
11931,
12952,
4202,
8479,
67,
24454,
33,
2011,
31,
202,
6494,
6647,
999,
67,
454,
67,
15898,
33,
5743,
31,
202,
474,
9079,
1756,
33,
27982,
31,
202,
698,
288,
202,
2
] |
public void drawBytes(byte[] data, int offset, int length, int x, int y)
|
public void drawBytes(byte[] data, int offset, int length, int x, int y)
|
public void drawBytes(byte[] data, int offset, int length, int x, int y) { // TODO }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/f0b8d9192146032bb99d2226be59618517953004/DebugGraphics.java/buggy/javax/swing/DebugGraphics.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3724,
2160,
12,
7229,
8526,
501,
16,
509,
1384,
16,
509,
769,
16,
509,
619,
16,
509,
677,
13,
225,
288,
565,
368,
2660,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3724,
2160,
12,
7229,
8526,
501,
16,
509,
1384,
16,
509,
769,
16,
509,
619,
16,
509,
677,
13,
225,
288,
565,
368,
2660,
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
] |
Object arrayDesc = method.invoke(clArrayDescriptor, new Object[] {"NUMBERVARRAY", conn});
|
Object arrayDesc = method.invoke(clArrayDescriptor, new Object[] {"NUMBER_VARRAY", conn});
|
public static boolean oci_bind_array_by_name(Env env, @NotNull OracleStatement stmt, @NotNull String name, @NotNull ArrayValue varArray, @NotNull int maxTableLength, @Optional("0") int maxItemLength, @Optional("0") int type) { try { PreparedStatement oracleStmt = stmt.getPreparedStatement(); java.sql.Connection conn = ((UserConnection) oracleStmt.getConnection()).getConnection(); // Create an oracle.sql.ARRAY object to hold the values // oracle.sql.ArrayDescriptor arrayDesc = // oracle.sql.ArrayDescriptor.createDescriptor("number_varray", conn); Class clArrayDescriptor = Class.forName("oracle.sql.ArrayDescriptor"); Method method = clArrayDescriptor.getDeclaredMethod("createDescriptor", new Class[] {String.class, java.sql.Connection.class}); Object arrayDesc = method.invoke(clArrayDescriptor, new Object[] {"NUMBERVARRAY", conn}); Value keyArray[] = varArray.getKeyArray(); // int arrayValues[] = {123, 234}; // oracle.sql.ARRAY array = new oracle.sql.ARRAY(arrayDesc, conn, arrayValues); Class clARRAY = Class.forName("oracle.sql.ARRAY"); Constructor constructor = clARRAY.getDeclaredConstructor(new Class[] { clArrayDescriptor, Connection.class, Object.class}); Array oracleArray = (Array) constructor.newInstance(new Object[] {arrayDesc, conn, keyArray}); // Bind array // ((oracle.jdbc.driver.OraclePreparedStatement)oracleStmt).setARRAY(1, array); // cl = Class.forName("oracle.jdbc.driver.OraclePreparedStatement"); // method = cl.getDeclaredMethod("setARRAY", // new Class[] {Integer.TYPE, Object[].class}); if (name.startsWith(":")) { name = name.substring(1); } // method.invoke(oracleStmt, new Object[] {name, oracleArray}); oracleStmt.setArray(1, oracleArray); // drop descriptor ???? 'number_varray' ???? return true; } catch (Exception e) { log.log(Level.FINE, e.toString(), e); return false; } }
|
3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/4218e4ed395e533239c8c6a7e3e289bf0f72ed96/OracleModule.java/buggy/quercus/src/main/java/com/caucho/quercus/lib/db/OracleModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
19262,
67,
4376,
67,
1126,
67,
1637,
67,
529,
12,
3491,
1550,
16,
4766,
9079,
632,
5962,
28544,
3406,
3480,
16,
4766,
9079,
632,
5962,
514,
508,
16,
4766,
9079,
632,
5962,
1510,
620,
569,
1076,
16,
4766,
9079,
632,
5962,
509,
943,
1388,
1782,
16,
4766,
9079,
632,
6542,
2932,
20,
7923,
509,
943,
1180,
1782,
16,
4766,
9079,
632,
6542,
2932,
20,
7923,
509,
618,
13,
225,
288,
565,
775,
288,
1377,
16913,
20865,
8952,
273,
3480,
18,
588,
29325,
5621,
1377,
2252,
18,
4669,
18,
1952,
1487,
273,
14015,
1299,
1952,
13,
20865,
8952,
18,
588,
1952,
1435,
2934,
588,
1952,
5621,
1377,
368,
1788,
392,
20865,
18,
4669,
18,
8552,
733,
358,
6887,
326,
924,
1377,
368,
20865,
18,
4669,
18,
1076,
3187,
526,
4217,
273,
1377,
368,
282,
20865,
18,
4669,
18,
1076,
3187,
18,
2640,
3187,
2932,
2696,
67,
90,
1126,
3113,
1487,
1769,
1377,
1659,
927,
1076,
3187,
273,
1659,
18,
1884,
461,
2932,
280,
16066,
18,
4669,
18,
1076,
3187,
8863,
1377,
2985,
707,
273,
927,
1076,
3187,
18,
588,
18888,
1305,
2932,
2640,
3187,
3113,
4766,
6647,
394,
1659,
8526,
288,
780,
18,
1106,
16,
2252,
18,
4669,
18,
1952,
18,
1106,
22938,
1377,
1033,
526,
4217,
273,
707,
18,
14407,
12,
830,
1076,
3187,
16,
394,
1033,
8526,
12528,
9931,
67,
7716,
6722,
3113,
1487,
22938,
1377,
1445,
498,
1076,
8526,
273,
569,
1076,
18,
588,
653,
1076,
5621,
368,
509,
526,
1972,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
19262,
67,
4376,
67,
1126,
67,
1637,
67,
529,
12,
3491,
1550,
16,
4766,
9079,
632,
5962,
28544,
3406,
3480,
16,
4766,
9079,
632,
5962,
514,
508,
16,
4766,
9079,
632,
5962,
1510,
620,
569,
1076,
16,
4766,
9079,
632,
5962,
509,
943,
1388,
1782,
16,
4766,
9079,
632,
6542,
2932,
20,
7923,
509,
943,
1180,
1782,
16,
4766,
9079,
632,
6542,
2932,
20,
7923,
509,
618,
13,
225,
288,
565,
775,
288,
1377,
16913,
20865,
8952,
273,
3480,
18,
588,
29325,
5621,
1377,
2252,
18,
4669,
18,
1952,
1487,
273,
14015,
1299,
1952,
13,
20865,
8952,
18,
588,
1952,
1435,
2934,
588,
1952,
5621,
1377,
368,
1788,
392,
20865,
18,
4669,
18,
8552,
733,
2
] |
protected void createDescriptionLayout(FormToolkit toolkit, final ScrolledForm form) { Section section = toolkit.createSection(form.getBody(), ExpandableComposite.TITLE_BAR | Section.TWISTIE); section.setText(LABEL_SECTION_DESCRIPTION); section.setExpanded(true); section.setLayout(new GridLayout()); section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); section.addExpansionListener(new IExpansionListener() { public void expansionStateChanging(ExpansionEvent e) { form.reflow(true); } public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); // Description Area Composite descriptionComposite = toolkit.createComposite(section); GridLayout descriptionLayout = new GridLayout(); descriptionLayout.numColumns = 1; descriptionComposite.setLayout(descriptionLayout); // descriptionComposite.setBackground(background); //GridData descriptionData = new GridData(GridData.FILL_HORIZONTAL); //descriptionData.horizontalSpan = 1; //descriptionData.grabExcessVerticalSpace = false; // descriptionComposite.setLayoutData(descriptionData); // End Description Area section.setClient(descriptionComposite); // FormText t = newLayout(descriptionComposite, 4, "Description:", // HEADER); // t.addListener(SWT.FocusIn, new DescriptionListener()); //StyledText t = newLayout(descriptionComposite, 4, bug.getDescription(), VALUE); // t.setFont(COMMENT_FONT); TextViewer viewer = addRepositoryText(repository, descriptionComposite, bug.getDescription()); StyledText styledText = viewer.getTextWidget(); styledText.addListener(SWT.FocusIn, new DescriptionListener()); texts.add(textsindex, styledText); textHash.put(bug.getDescription(), styledText); textsindex++; }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/021b803558816829652dd500f5695e5bfd03ae6c/ExistingBugEditor.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
3291,
3744,
12,
1204,
6364,
8691,
5226,
8691,
16,
727,
2850,
25054,
1204,
646,
13,
288,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
687,
18,
588,
2250,
9334,
16429,
429,
9400,
18,
14123,
67,
21908,
571,
10092,
18,
18869,
5511,
8732,
1769,
202,
202,
3464,
18,
542,
1528,
12,
13545,
67,
19082,
67,
15911,
1769,
202,
202,
3464,
18,
542,
17957,
12,
3767,
1769,
202,
202,
3464,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
3464,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
202,
202,
3464,
18,
1289,
2966,
12162,
2223,
12,
2704,
467,
2966,
12162,
2223,
1435,
288,
1082,
202,
482,
918,
17965,
1119,
782,
18183,
12,
2966,
12162,
1133,
425,
13,
288,
9506,
202,
687,
18,
1734,
821,
12,
3767,
1769,
1082,
202,
97,
1082,
202,
482,
918,
17965,
1119,
5033,
12,
2966,
12162,
1133,
425,
13,
288,
9506,
202,
687,
18,
1734,
821,
12,
3767,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
759,
6507,
16668,
202,
202,
9400,
2477,
9400,
273,
5226,
8691,
18,
2640,
9400,
12,
3464,
1769,
202,
202,
6313,
3744,
2477,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
3384,
3744,
18,
2107,
3380,
273,
404,
31,
202,
202,
3384,
9400,
18,
542,
3744,
12,
3384,
3744,
1769,
202,
202,
759,
2477,
9400,
18,
542,
8199,
12,
9342,
1769,
202,
202,
759,
6313,
751,
2477,
751,
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,
225,
202,
1117,
918,
752,
3291,
3744,
12,
1204,
6364,
8691,
5226,
8691,
16,
727,
2850,
25054,
1204,
646,
13,
288,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
687,
18,
588,
2250,
9334,
16429,
429,
9400,
18,
14123,
67,
21908,
571,
10092,
18,
18869,
5511,
8732,
1769,
202,
202,
3464,
18,
542,
1528,
12,
13545,
67,
19082,
67,
15911,
1769,
202,
202,
3464,
18,
542,
17957,
12,
3767,
1769,
202,
202,
3464,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
3464,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
202,
202,
3464,
18,
1289,
2966,
12162,
2223,
12,
2704,
467,
2966,
12162,
2223,
1435,
2
] |
||
field.setFieldFlags(field.FF_DONOTSPELLCHECK);
|
field.setFieldFlags(PdfFormField.FF_DONOTSPELLCHECK);
|
protected PdfFormField getChoiceField(boolean isList) throws IOException, DocumentException { options &= ~MULTILINE; String uchoices[] = choices; if (uchoices == null) uchoices = new String[0]; int topChoice = choiceSelection; if (topChoice >= uchoices.length) topChoice = uchoices.length - 1; text = ""; if (topChoice >= 0) text = uchoices[topChoice]; if (topChoice < 0) topChoice = 0; PdfFormField field = null; String mix[][] = null; if (choiceExports == null) { if (isList) field = PdfFormField.createList(writer, uchoices, topChoice); else field = PdfFormField.createCombo(writer, (options & EDIT) != 0, uchoices, topChoice); } else { mix = new String[uchoices.length][2]; for (int k = 0; k < mix.length; ++k) mix[k][0] = mix[k][1] = uchoices[k]; int top = Math.min(uchoices.length, choiceExports.length); for (int k = 0; k < top; ++k) { if (choiceExports[k] != null) mix[k][0] = choiceExports[k]; } if (isList) field = PdfFormField.createList(writer, mix, topChoice); else field = PdfFormField.createCombo(writer, (options & EDIT) != 0, mix, topChoice); } field.setWidget(box, PdfAnnotation.HIGHLIGHT_INVERT); field.setFieldName(fieldName); if (rotation != 0) field.setMKRotation(rotation); if (uchoices.length > 0) { if (mix != null) { field.setValueAsString(mix[topChoice][0]); field.setDefaultValueAsString(mix[topChoice][0]); } else { field.setValueAsString(text); field.setDefaultValueAsString(text); } } field.setBorderStyle(new PdfBorderDictionary(borderWidth, borderStyle, new PdfDashPattern(3))); PdfAppearance tp; if (isList) { tp = getListAppearance(); if (topFirst > 0) field.put(PdfName.TI, new PdfNumber(topFirst)); } else tp = getAppearance(); field.setAppearance(PdfAnnotation.APPEARANCE_NORMAL, tp); PdfAppearance da = (PdfAppearance)tp.getDuplicate(); da.setFontAndSize(getRealFont(), fontSize); if (textColor == null) da.setGrayFill(0); else da.setColorFill(textColor); field.setDefaultAppearanceString(da); if (borderColor != null) field.setMKBorderColor(borderColor); if (backgroundColor != null) field.setMKBackgroundColor(backgroundColor); switch (visibility) { case HIDDEN: field.setFlags(field.FLAGS_PRINT | field.FLAGS_HIDDEN); break; case VISIBLE_BUT_DOES_NOT_PRINT: break; case HIDDEN_BUT_PRINTABLE: field.setFlags(field.FLAGS_PRINT | field.FLAGS_NOVIEW); break; default: field.setFlags(field.FLAGS_PRINT); break; } if ((options & READ_ONLY) != 0) field.setFieldFlags(field.FF_READ_ONLY); if ((options & REQUIRED) != 0) field.setFieldFlags(field.FF_REQUIRED); if ((options & DO_NOT_SPELL_CHECK) != 0) field.setFieldFlags(field.FF_DONOTSPELLCHECK); return field; }
|
3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/d5ea4c51096461cb5209f62da9c94ef3cf85c500/TextField.java/clean/itext/src/com/lowagie/text/pdf/TextField.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
9989,
27317,
336,
10538,
974,
12,
6494,
28106,
13,
1216,
1860,
16,
4319,
503,
288,
3639,
702,
12058,
4871,
12845,
30690,
31,
3639,
514,
582,
11937,
8526,
273,
7246,
31,
3639,
309,
261,
89,
11937,
422,
446,
13,
5411,
582,
11937,
273,
394,
514,
63,
20,
15533,
3639,
509,
1760,
10538,
273,
6023,
6233,
31,
3639,
309,
261,
3669,
10538,
1545,
582,
11937,
18,
2469,
13,
5411,
1760,
10538,
273,
582,
11937,
18,
2469,
300,
404,
31,
3639,
977,
273,
1408,
31,
3639,
309,
261,
3669,
10538,
1545,
374,
13,
5411,
977,
273,
582,
11937,
63,
3669,
10538,
15533,
3639,
309,
261,
3669,
10538,
411,
374,
13,
5411,
1760,
10538,
273,
374,
31,
3639,
9989,
27317,
652,
273,
446,
31,
3639,
514,
6843,
63,
6362,
65,
273,
446,
31,
3639,
309,
261,
11569,
15352,
422,
446,
13,
288,
5411,
309,
261,
291,
682,
13,
7734,
652,
273,
9989,
27317,
18,
2640,
682,
12,
6299,
16,
582,
11937,
16,
1760,
10538,
1769,
5411,
469,
7734,
652,
273,
9989,
27317,
18,
2640,
16156,
12,
6299,
16,
261,
2116,
473,
21307,
13,
480,
374,
16,
582,
11937,
16,
1760,
10538,
1769,
3639,
289,
3639,
469,
288,
5411,
6843,
273,
394,
514,
63,
89,
11937,
18,
2469,
6362,
22,
15533,
5411,
364,
261,
474,
417,
273,
374,
31,
417,
411,
6843,
18,
2469,
31,
965,
79,
13,
7734,
6843,
63,
79,
6362,
20,
65,
273,
6843,
63,
79,
6362,
21,
65,
273,
582,
11937,
63,
79,
15533,
5411,
509,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
9989,
27317,
336,
10538,
974,
12,
6494,
28106,
13,
1216,
1860,
16,
4319,
503,
288,
3639,
702,
12058,
4871,
12845,
30690,
31,
3639,
514,
582,
11937,
8526,
273,
7246,
31,
3639,
309,
261,
89,
11937,
422,
446,
13,
5411,
582,
11937,
273,
394,
514,
63,
20,
15533,
3639,
509,
1760,
10538,
273,
6023,
6233,
31,
3639,
309,
261,
3669,
10538,
1545,
582,
11937,
18,
2469,
13,
5411,
1760,
10538,
273,
582,
11937,
18,
2469,
300,
404,
31,
3639,
977,
273,
1408,
31,
3639,
309,
261,
3669,
10538,
1545,
374,
13,
5411,
977,
273,
582,
11937,
63,
3669,
10538,
15533,
3639,
309,
261,
3669,
10538,
411,
374,
13,
5411,
1760,
10538,
273,
374,
31,
3639,
9989,
27317,
652,
2
] |
if(!altheld) { setCurrentHex(board.getHex(board.lastCursor)); altheld = true; }
|
setCurrentHex(board.getHex(board.lastCursor)); altheld = true;
|
public void keyPressed(KeyEvent ke) { switch(ke.getKeyCode()) { case KeyEvent.VK_CONTROL : if(!ctrlheld) { paintHex(board.lastCursor); ctrlheld = true; } break; case KeyEvent.VK_ALT : if(!altheld) { setCurrentHex(board.getHex(board.lastCursor)); altheld = true; //board.highlight(board.lastCursor); } break; } }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/3045e322f5d70e8d851c863279a5680bed754e84/BoardEditor.java/clean/megamek/src/megamek/client/ui/AWT/BoardEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
498,
24624,
12,
653,
1133,
12519,
13,
288,
3639,
1620,
12,
4491,
18,
588,
653,
1085,
10756,
288,
3639,
648,
23737,
18,
58,
47,
67,
18248,
294,
2398,
309,
12,
5,
16277,
76,
488,
13,
288,
7734,
12574,
7037,
12,
3752,
18,
2722,
6688,
1769,
7734,
6414,
76,
488,
273,
638,
31,
5411,
289,
5411,
898,
31,
3639,
648,
23737,
18,
58,
47,
67,
18255,
294,
2398,
309,
12,
5,
4162,
488,
13,
288,
7734,
12589,
7037,
12,
3752,
18,
588,
7037,
12,
3752,
18,
2722,
6688,
10019,
7734,
524,
451,
488,
273,
638,
31,
7734,
368,
3752,
18,
15978,
12,
3752,
18,
2722,
6688,
1769,
5411,
289,
5411,
898,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
498,
24624,
12,
653,
1133,
12519,
13,
288,
3639,
1620,
12,
4491,
18,
588,
653,
1085,
10756,
288,
3639,
648,
23737,
18,
58,
47,
67,
18248,
294,
2398,
309,
12,
5,
16277,
76,
488,
13,
288,
7734,
12574,
7037,
12,
3752,
18,
2722,
6688,
1769,
7734,
6414,
76,
488,
273,
638,
31,
5411,
289,
5411,
898,
31,
3639,
648,
23737,
18,
58,
47,
67,
18255,
294,
2398,
309,
12,
5,
4162,
488,
13,
288,
7734,
12589,
7037,
12,
3752,
18,
588,
7037,
12,
3752,
18,
2722,
6688,
10019,
7734,
524,
451,
488,
273,
638,
31,
7734,
368,
3752,
18,
15978,
12,
3752,
18,
2722,
6688,
1769,
5411,
289,
5411,
898,
31,
3639,
289,
565,
289,
2,
-100
] |
public void queryDied(Exception e)
|
public void queryDied(QueryThread sender, Exception e)
|
public void queryDied(Exception e) { RDFAuthorUtilities.ShowError( "Error Making Query", "There was an error making the query.\nUseful error text:\n" + e, RDFAuthorUtilities.Critical, queryDrawer.parentWindow()); infoTextField.setStringValue("Last query failed."); NSApplication.beep(); // Since these can take a while I'll beep queryThread = null; }
|
364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/364/775540fc4c20cf0fb652870ea0a369be64772ac6/QueryController.java/buggy/rdfweb.org/RDFAuthor/QueryController.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
843,
40,
2092,
12,
1138,
3830,
5793,
16,
1185,
425,
13,
565,
288,
3639,
13539,
3594,
11864,
18,
5706,
668,
12,
5411,
315,
668,
490,
6159,
2770,
3113,
315,
9828,
1703,
392,
555,
10480,
326,
843,
8403,
82,
3727,
2706,
555,
977,
5581,
82,
6,
397,
425,
16,
2398,
13539,
3594,
11864,
18,
30286,
16,
2398,
843,
21631,
18,
2938,
3829,
10663,
3639,
1123,
16157,
18,
542,
19733,
2932,
3024,
843,
2535,
1199,
1769,
7734,
11472,
3208,
18,
2196,
881,
5621,
368,
7897,
4259,
848,
4862,
279,
1323,
467,
5614,
506,
881,
7734,
843,
3830,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
843,
40,
2092,
12,
1138,
3830,
5793,
16,
1185,
425,
13,
565,
288,
3639,
13539,
3594,
11864,
18,
5706,
668,
12,
5411,
315,
668,
490,
6159,
2770,
3113,
315,
9828,
1703,
392,
555,
10480,
326,
843,
8403,
82,
3727,
2706,
555,
977,
5581,
82,
6,
397,
425,
16,
2398,
13539,
3594,
11864,
18,
30286,
16,
2398,
843,
21631,
18,
2938,
3829,
10663,
3639,
1123,
16157,
18,
542,
19733,
2932,
3024,
843,
2535,
1199,
1769,
7734,
11472,
3208,
18,
2196,
881,
5621,
368,
7897,
4259,
848,
4862,
279,
1323,
467,
5614,
506,
881,
7734,
843,
3830,
273,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (s.length()>23 && subsecond) {
|
if (sbuf.length()>23 && subsecond) {
|
public Timestamp getTimestamp(int columnIndex) throws SQLException { String s = getString(columnIndex); if(s==null) return null; boolean subsecond; //if string contains a '.' we have fractional seconds if (s.indexOf('.') == -1) { subsecond = false; } else { subsecond = true; } //here we are modifying the string from ISO format to a format java can understand //java expects timezone info as 'GMT-08:00' instead of '-08' in postgres ISO format //and java expects three digits if fractional seconds are present instead of two for postgres //so this code strips off timezone info and adds on the GMT+/-... //as well as adds a third digit for partial seconds if necessary synchronized(this) { // We must be synchronized here incase more theads access the ResultSet // bad practice but possible. Anyhow this is to protect sbuf and // SimpleDateFormat objects // First time? if(sbuf==null) sbuf = new StringBuffer(); sbuf.setLength(0); sbuf.append(s); char sub = sbuf.charAt(sbuf.length()-3); if (sub == '+' || sub == '-') { sbuf.setLength(sbuf.length()-3); if (subsecond) { sbuf.append('0').append("GMT").append(s.substring(s.length()-3)).append(":00"); } else { sbuf.append("GMT").append(s.substring(s.length()-3)).append(":00"); } } else if (subsecond) { sbuf.append('0'); } // could optimize this a tad to remove too many object creations... SimpleDateFormat df = null; if (s.length()>23 && subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSzzzzzzzzz"); } else if (s.length()>23 && !subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:sszzzzzzzzz"); } else if (s.length()>10 && subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); } else if (s.length()>10 && !subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); } else { df = new SimpleDateFormat("yyyy-MM-dd"); } try { return new Timestamp(df.parse(sbuf.toString()).getTime()); } catch(ParseException e) { throw new PSQLException("postgresql.res.badtimestamp",new Integer(e.getErrorOffset()),s); } } }
|
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/e1ef7b82bdfee6c62fb1381561188d1b6ee5e433/ResultSet.java/clean/org/postgresql/jdbc2/ResultSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8159,
11940,
12,
474,
14882,
13,
1216,
6483,
225,
288,
565,
514,
272,
273,
4997,
12,
2827,
1016,
1769,
565,
309,
12,
87,
631,
2011,
13,
202,
2463,
446,
31,
565,
1250,
720,
8538,
31,
565,
368,
430,
533,
1914,
279,
2611,
732,
1240,
20462,
3974,
565,
309,
261,
87,
18,
31806,
2668,
1093,
13,
422,
300,
21,
13,
288,
1377,
720,
8538,
273,
629,
31,
565,
289,
469,
288,
1377,
720,
8538,
273,
638,
31,
565,
289,
565,
368,
14852,
732,
854,
21920,
326,
533,
628,
9351,
740,
358,
279,
740,
2252,
848,
22413,
565,
368,
6290,
10999,
6371,
1123,
487,
296,
25315,
17,
6840,
30,
713,
11,
3560,
434,
2400,
6840,
11,
316,
1603,
14107,
9351,
740,
565,
368,
464,
2252,
10999,
8925,
6815,
309,
20462,
3974,
854,
3430,
3560,
434,
2795,
364,
1603,
14107,
565,
368,
2048,
333,
981,
2569,
87,
3397,
6371,
1123,
471,
4831,
603,
326,
21706,
31298,
17,
2777,
565,
368,
345,
5492,
487,
4831,
279,
12126,
8035,
364,
4702,
3974,
309,
4573,
565,
3852,
12,
2211,
13,
288,
1377,
368,
1660,
1297,
506,
3852,
2674,
316,
3593,
1898,
326,
17318,
2006,
326,
10842,
1377,
368,
5570,
27164,
1496,
3323,
18,
5502,
13606,
333,
353,
358,
17151,
2393,
696,
471,
1377,
368,
17005,
2184,
1377,
368,
5783,
813,
35,
1377,
309,
12,
87,
4385,
631,
2011,
13,
3639,
2393,
696,
273,
394,
6674,
5621,
1377,
2393,
696,
18,
542,
1782,
12,
20,
1769,
1377,
2393,
696,
18,
6923,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8159,
11940,
12,
474,
14882,
13,
1216,
6483,
225,
288,
565,
514,
272,
273,
4997,
12,
2827,
1016,
1769,
565,
309,
12,
87,
631,
2011,
13,
202,
2463,
446,
31,
565,
1250,
720,
8538,
31,
565,
368,
430,
533,
1914,
279,
2611,
732,
1240,
20462,
3974,
565,
309,
261,
87,
18,
31806,
2668,
1093,
13,
422,
300,
21,
13,
288,
1377,
720,
8538,
273,
629,
31,
565,
289,
469,
288,
1377,
720,
8538,
273,
638,
31,
565,
289,
565,
368,
14852,
732,
854,
21920,
326,
533,
628,
9351,
740,
358,
279,
740,
2252,
848,
22413,
565,
368,
6290,
10999,
6371,
1123,
487,
296,
25315,
17,
6840,
30,
713,
11,
3560,
434,
2400,
6840,
11,
316,
1603,
14107,
2
] |
c.weightx = 1.0; c.gridx = 1; c.gridy = 5; gb.setConstraints(_textColorField, c); add(_textColorField); c.gridy = 6; gb.setConstraints(_textFillField, c); add(_textFillField); c.gridx = 4; c.gridy = 1; gb.setConstraints(_fontField, c); add(_fontField); c.gridy = 2; gb.setConstraints(_sizeField, c); add(_sizeField); c.gridy = 3; gb.setConstraints(_styleField, c); add(_styleField); c.gridy = 5; gb.setConstraints(_justField, c); add(_justField); initChoices2(); }
|
c.weightx = 1.0; c.gridx = 1; c.gridy = 5; gb.setConstraints(_textColorField, c); add(_textColorField); c.gridy = 6; gb.setConstraints(_textFillField, c); add(_textFillField); c.gridx = 4; c.gridy = 1; gb.setConstraints(_fontField, c); add(_fontField); c.gridy = 2; gb.setConstraints(_sizeField, c); add(_sizeField); c.gridy = 3; gb.setConstraints(_styleField, c); add(_styleField); c.gridy = 5; gb.setConstraints(_justField, c); add(_justField); initChoices2(); }
|
public StylePanelFigText() { super(); GridBagLayout gb = (GridBagLayout) getLayout(); GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; c.ipadx = 0; c.ipady = 0; _fontField.addItemListener(this); _sizeField.addItemListener(this); _styleField.addItemListener(this); _justField.addItemListener(this); _textColorField.addItemListener(this); _textFillField.addItemListener(this); _textColorField.setRenderer(new ColorRenderer()); _textFillField.setRenderer(new ColorRenderer()); c.weightx = 0.0; c.gridx = 0; c.gridwidth = 1; c.gridy = 5; gb.setConstraints(_textColorLabel, c); add(_textColorLabel); c.gridy = 6; gb.setConstraints(_textFillLabel, c); add(_textFillLabel); c.gridx = 3; c.gridwidth = 1; c.gridy = 1; gb.setConstraints(_fontLabel, c); add(_fontLabel); c.gridy = 2; gb.setConstraints(_sizeLabel, c); add(_sizeLabel); c.gridy = 3; gb.setConstraints(_styleLabel, c); add(_styleLabel); // row 4 left blank for some reason... c.gridy = 5; gb.setConstraints(_justLabel, c); add(_justLabel); c.weightx = 1.0; c.gridx = 1; c.gridy = 5; gb.setConstraints(_textColorField, c); add(_textColorField); c.gridy = 6; gb.setConstraints(_textFillField, c); add(_textFillField); c.gridx = 4; c.gridy = 1; gb.setConstraints(_fontField, c); add(_fontField); c.gridy = 2; gb.setConstraints(_sizeField, c); add(_sizeField); c.gridy = 3; gb.setConstraints(_styleField, c); add(_styleField); c.gridy = 5; gb.setConstraints(_justField, c); add(_justField); initChoices2(); }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/StylePanelFigText.java/clean/src_new/org/argouml/ui/StylePanelFigText.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9767,
5537,
42,
360,
1528,
1435,
288,
565,
2240,
5621,
565,
7145,
5013,
3744,
21649,
273,
261,
6313,
5013,
3744,
13,
17670,
5621,
3639,
13075,
276,
273,
394,
13075,
5621,
565,
276,
18,
5935,
273,
13075,
18,
38,
18307,
31,
565,
276,
18,
625,
361,
92,
273,
374,
31,
276,
18,
625,
361,
93,
273,
374,
31,
565,
389,
5776,
974,
18,
1289,
1180,
2223,
12,
2211,
1769,
565,
389,
1467,
974,
18,
1289,
1180,
2223,
12,
2211,
1769,
565,
389,
4060,
974,
18,
1289,
1180,
2223,
12,
2211,
1769,
565,
389,
3732,
974,
18,
1289,
1180,
2223,
12,
2211,
1769,
565,
389,
955,
2957,
974,
18,
1289,
1180,
2223,
12,
2211,
1769,
565,
389,
955,
8026,
974,
18,
1289,
1180,
2223,
12,
2211,
1769,
565,
389,
955,
2957,
974,
18,
542,
6747,
12,
2704,
5563,
6747,
10663,
565,
389,
955,
8026,
974,
18,
542,
6747,
12,
2704,
5563,
6747,
10663,
565,
276,
18,
4865,
92,
273,
374,
18,
20,
31,
565,
276,
18,
5222,
92,
273,
374,
31,
565,
276,
18,
5222,
2819,
273,
404,
31,
565,
276,
18,
5222,
93,
273,
1381,
31,
565,
21649,
18,
542,
4878,
24899,
955,
2957,
2224,
16,
276,
1769,
565,
527,
24899,
955,
2957,
2224,
1769,
565,
276,
18,
5222,
93,
273,
1666,
31,
565,
21649,
18,
542,
4878,
24899,
955,
8026,
2224,
16,
276,
1769,
565,
527,
24899,
955,
8026,
2224,
1769,
565,
276,
18,
5222,
92,
273,
890,
31,
565,
276,
18,
5222,
2819,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9767,
5537,
42,
360,
1528,
1435,
288,
565,
2240,
5621,
565,
7145,
5013,
3744,
21649,
273,
261,
6313,
5013,
3744,
13,
17670,
5621,
3639,
13075,
276,
273,
394,
13075,
5621,
565,
276,
18,
5935,
273,
13075,
18,
38,
18307,
31,
565,
276,
18,
625,
361,
92,
273,
374,
31,
276,
18,
625,
361,
93,
273,
374,
31,
565,
389,
5776,
974,
18,
1289,
1180,
2223,
12,
2211,
1769,
565,
389,
1467,
974,
18,
1289,
1180,
2223,
12,
2211,
1769,
565,
389,
4060,
974,
18,
1289,
1180,
2223,
12,
2211,
1769,
565,
389,
3732,
974,
18,
1289,
1180,
2223,
12,
2211,
1769,
565,
389,
955,
2957,
974,
18,
1289,
1180,
2223,
12,
2211,
1769,
565,
389,
955,
8026,
2
] |
return (base64Alphabet[octect] != -1);
|
return( base64Alphabet[octect] != -1);
|
protected static boolean isData (byte octect) { return (base64Alphabet[octect] != -1); }
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/85ddd08ef8aee7002c72a2a2ae5338c193ff2aea/Base64.java/clean/src/org/apache/xerces/utils/Base64.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
1250,
353,
751,
261,
7229,
10844,
386,
13,
288,
3639,
327,
12,
1026,
1105,
27316,
63,
13410,
386,
65,
480,
300,
21,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
1250,
353,
751,
261,
7229,
10844,
386,
13,
288,
3639,
327,
12,
1026,
1105,
27316,
63,
13410,
386,
65,
480,
300,
21,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return (ColorHandle) value;
|
return doGetColorHandle( TOC.BORDER_BOTTOM_COLOR_MEMBER );
|
public ColorHandle getBorderBottomColor( ) { Object value = getProperty( TOC.BORDER_BOTTOM_COLOR_MEMBER ); if ( value == null ) { StyleHandle style = getStyle( ); if ( style == null ) { return null; } else { return style.getBorderBottomColor( ); } } return (ColorHandle) value; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/0e4cd9ee8eeb59e50378273ae983983b1c019429/TOCHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/TOCHandle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5563,
3259,
2882,
1019,
10393,
2957,
12,
262,
202,
95,
202,
202,
921,
460,
273,
3911,
12,
8493,
39,
18,
38,
7954,
67,
28891,
67,
10989,
67,
19630,
11272,
202,
202,
430,
261,
460,
422,
446,
262,
202,
202,
95,
1082,
202,
2885,
3259,
2154,
273,
14210,
12,
11272,
1082,
202,
430,
261,
2154,
422,
446,
262,
1082,
202,
95,
9506,
202,
2463,
446,
31,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
2463,
2154,
18,
588,
8107,
10393,
2957,
12,
11272,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
261,
2957,
3259,
13,
460,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5563,
3259,
2882,
1019,
10393,
2957,
12,
262,
202,
95,
202,
202,
921,
460,
273,
3911,
12,
8493,
39,
18,
38,
7954,
67,
28891,
67,
10989,
67,
19630,
11272,
202,
202,
430,
261,
460,
422,
446,
262,
202,
202,
95,
1082,
202,
2885,
3259,
2154,
273,
14210,
12,
11272,
1082,
202,
430,
261,
2154,
422,
446,
262,
1082,
202,
95,
9506,
202,
2463,
446,
31,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
2463,
2154,
18,
588,
8107,
10393,
2957,
12,
11272,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
261,
2957,
3259,
13,
460,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
c.addGameListener(new BotGUI(gui, c));
|
c.addGameListener(new BotGUI(this, c));
|
public void scenario() { FileDialog fd = new FileDialog(frame, "Select a scenario file...", FileDialog.LOAD); fd.setDirectory("data" + File.separatorChar + "scenarios"); // the filter doesn't seem to do anything in windows. oh well FilenameFilter ff = new FilenameFilter() { public boolean accept(File f, String s) { return s.endsWith(".mms"); } }; fd.setFilenameFilter(ff); fd.setFile("*.mms"); //see comment above for load game dialog fd.show(); if (fd.getFile() == null) { return; } ScenarioLoader sl = new ScenarioLoader(new File(fd.getDirectory(), fd.getFile())); Game g = null; try { g = sl.createGame(); } catch (Exception e) { new AlertDialog(frame, "Host Scenario", "Error: " + e.getMessage()).show(); return; } // get player types and colors set Player[] pa = new Player[g.getPlayersVector().size()]; g.getPlayersVector().copyInto(pa); ScenarioDialog sd = new ScenarioDialog(frame, pa); sd.show(); if (!sd.bSet) { return; } // host with the scenario. essentially copied from host() HostDialog hd = new HostDialog(frame); hd.yourNameF.setText(sd.localName); hd.show(); // verify dialog data if (hd.name == null || hd.serverPass == null || hd.port == 0) { return; } // Players should have to enter a non-blank, non-whitespace name. boolean foundValid = false; char[] nameChars = hd.name.toCharArray(); for (int loop = 0; !foundValid && loop < nameChars.length; loop++) { if (!Character.isWhitespace(nameChars[loop])) { foundValid = true; } } if (!foundValid) { new AlertDialog(frame, "Host Scenario", "Error: enter a player name.").show(); return; } // kick off a RNG check megamek.common.Compute.d6(); // start server server = new Server(hd.serverPass, hd.port); server.setGame(g); // apply any scenario damage sl.applyDamage(server); ClientGUI gui = null; if (sd.localName != "") { // initialize game client = new Client(hd.name, "localhost", hd.port); gui = new ClientGUI(client); gui.initialize(); try { client.connect(); } catch (Exception e) { ; } server.getGame().getOptions().loadOptions(client, hd.serverPass); // popup options dialog gui.getGameOptionsDialog().update(client.game.getOptions()); gui.getGameOptionsDialog().show(); } optdlg = null; // setup any bots for (int x = 0; x < pa.length; x++) { if (sd.playerTypes[x] == ScenarioDialog.T_BOT) { BotClient c = new TestBot(pa[x].getName(), "localhost", hd.port); try { c.connect(); } catch (Exception e) { ; } c.addGameListener(new BotGUI(gui, c)); c.retrieveServerInfo(); } } launch(gui.getFrame()); }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/cf9f68c5bf92fe3ef980c7139d077dbc5360c6c9/MegaMek.java/clean/megamek/src/megamek/MegaMek.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10766,
1435,
288,
3639,
1387,
6353,
5194,
273,
394,
1387,
6353,
12,
3789,
16,
315,
3391,
279,
10766,
585,
7070,
16,
1387,
6353,
18,
7783,
1769,
3639,
5194,
18,
542,
2853,
2932,
892,
6,
397,
1387,
18,
11287,
2156,
397,
315,
1017,
18087,
8863,
3639,
368,
326,
1034,
3302,
1404,
19264,
358,
741,
6967,
316,
9965,
18,
225,
29797,
5492,
3639,
16671,
1586,
6875,
273,
394,
16671,
1586,
1435,
288,
5411,
1071,
1250,
2791,
12,
812,
284,
16,
514,
272,
13,
288,
7734,
327,
272,
18,
5839,
1190,
2932,
18,
81,
959,
8863,
5411,
289,
3639,
289,
31,
3639,
5194,
18,
542,
5359,
1586,
12,
1403,
1769,
3639,
5194,
18,
542,
812,
2932,
11146,
81,
959,
8863,
368,
5946,
2879,
5721,
364,
1262,
7920,
6176,
3639,
5194,
18,
4500,
5621,
3639,
309,
261,
8313,
18,
29925,
1435,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
3639,
2850,
7754,
2886,
2020,
273,
394,
2850,
7754,
2886,
12,
2704,
1387,
12,
8313,
18,
588,
2853,
9334,
5194,
18,
29925,
1435,
10019,
3639,
14121,
314,
273,
446,
31,
3639,
775,
288,
5411,
314,
273,
2020,
18,
2640,
12496,
5621,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
394,
17913,
6353,
12,
3789,
16,
315,
2594,
2850,
7754,
3113,
315,
668,
30,
315,
397,
425,
18,
24906,
1435,
2934,
4500,
5621,
5411,
327,
31,
3639,
289,
3639,
368,
336,
7291,
1953,
471,
5740,
444,
3639,
19185,
8526,
6790,
273,
394,
19185,
63,
75,
18,
588,
1749,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10766,
1435,
288,
3639,
1387,
6353,
5194,
273,
394,
1387,
6353,
12,
3789,
16,
315,
3391,
279,
10766,
585,
7070,
16,
1387,
6353,
18,
7783,
1769,
3639,
5194,
18,
542,
2853,
2932,
892,
6,
397,
1387,
18,
11287,
2156,
397,
315,
1017,
18087,
8863,
3639,
368,
326,
1034,
3302,
1404,
19264,
358,
741,
6967,
316,
9965,
18,
225,
29797,
5492,
3639,
16671,
1586,
6875,
273,
394,
16671,
1586,
1435,
288,
5411,
1071,
1250,
2791,
12,
812,
284,
16,
514,
272,
13,
288,
7734,
327,
272,
18,
5839,
1190,
2932,
18,
81,
959,
8863,
5411,
289,
3639,
289,
31,
3639,
5194,
18,
542,
5359,
1586,
12,
1403,
1769,
3639,
5194,
18,
542,
812,
2932,
11146,
81,
959,
2
] |
System.out.println( "\n\nRequest " + request.getMethod() + " received at " + sipStack.getStackName() + " with server transaction id " + serverTransactionId);
|
logger.info("\n\nRequest " + request.getMethod() + " received at " + sipStack.getStackName() + " with server transaction id " + serverTransactionId + " branch ID = " + viaBranch);
|
public void processRequest(RequestEvent requestReceivedEvent) { Request request = requestReceivedEvent.getRequest(); ServerTransaction serverTransactionId = requestReceivedEvent.getServerTransaction(); System.out.println( "\n\nRequest " + request.getMethod() + " received at " + sipStack.getStackName() + " with server transaction id " + serverTransactionId); // We are the UAC so the only request we get is the BYE. if (request.getMethod().equals(Request.NOTIFY)) processNotify(request, serverTransactionId); }
|
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/Subscriber.java/buggy/trunk/src/examples/subsnotify/Subscriber.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1207,
691,
12,
691,
1133,
590,
8872,
1133,
13,
288,
202,
202,
691,
590,
273,
590,
8872,
1133,
18,
588,
691,
5621,
202,
202,
2081,
3342,
1438,
27387,
273,
1082,
202,
2293,
8872,
1133,
18,
588,
2081,
3342,
5621,
202,
202,
3163,
18,
659,
18,
8222,
12,
1082,
202,
12691,
82,
64,
82,
691,
315,
9506,
202,
15,
590,
18,
588,
1305,
1435,
9506,
202,
15,
315,
5079,
622,
315,
9506,
202,
15,
10341,
2624,
18,
588,
2624,
461,
1435,
9506,
202,
15,
315,
598,
1438,
2492,
612,
315,
9506,
202,
15,
1438,
27387,
1769,
202,
202,
759,
1660,
854,
326,
587,
2226,
1427,
326,
1338,
590,
732,
336,
353,
326,
6953,
41,
18,
202,
202,
430,
261,
2293,
18,
588,
1305,
7675,
14963,
12,
691,
18,
4400,
12096,
3719,
1082,
202,
2567,
9168,
12,
2293,
16,
1438,
27387,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1207,
691,
12,
691,
1133,
590,
8872,
1133,
13,
288,
202,
202,
691,
590,
273,
590,
8872,
1133,
18,
588,
691,
5621,
202,
202,
2081,
3342,
1438,
27387,
273,
1082,
202,
2293,
8872,
1133,
18,
588,
2081,
3342,
5621,
202,
202,
3163,
18,
659,
18,
8222,
12,
1082,
202,
12691,
82,
64,
82,
691,
315,
9506,
202,
15,
590,
18,
588,
1305,
1435,
9506,
202,
15,
315,
5079,
622,
315,
9506,
202,
15,
10341,
2624,
18,
588,
2624,
461,
1435,
9506,
202,
15,
315,
598,
1438,
2492,
612,
315,
9506,
202,
15,
1438,
27387,
1769,
202,
202,
759,
1660,
854,
326,
587,
2226,
1427,
326,
1338,
590,
732,
336,
353,
326,
6953,
41,
18,
202,
2
] |
public void runAnn(String name, Class c){
|
private void runAnn(String name, Class c){
|
public void runAnn(String name, Class c){ // Class, Set<Container>, Map //q = PojosQueryBuilder.buildAnnsQuery(c,po.map()); m.remove("exp"); // unused n = name;go(); }
|
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/0039ef3c66932163f0ec9bfa2b7f37eaa70abe47/PojosDaoTest.java/clean/components/server/test/ome/server/itests/PojosDaoTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1086,
14694,
12,
780,
508,
16,
1659,
276,
15329,
377,
202,
759,
1659,
16,
1000,
32,
2170,
20401,
1635,
377,
202,
759,
85,
273,
453,
6311,
538,
9073,
18,
3510,
979,
2387,
1138,
12,
71,
16,
1631,
18,
1458,
10663,
377,
202,
81,
18,
4479,
2932,
2749,
8863,
368,
10197,
377,
202,
82,
273,
508,
31,
3240,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1086,
14694,
12,
780,
508,
16,
1659,
276,
15329,
377,
202,
759,
1659,
16,
1000,
32,
2170,
20401,
1635,
377,
202,
759,
85,
273,
453,
6311,
538,
9073,
18,
3510,
979,
2387,
1138,
12,
71,
16,
1631,
18,
1458,
10663,
377,
202,
81,
18,
4479,
2932,
2749,
8863,
368,
10197,
377,
202,
82,
273,
508,
31,
3240,
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
] |
Token attr = null;
|
public final Expression step( PathExpr expr ) throws RecognitionException, TokenStreamException, PermissionDeniedException,EXistException { Expression step; Token attr = null; Token any = null; Token anyAttr = null; step = null; String qn; switch ( LA(1)) { case ATTRIB: { attr = LT(1); match(ATTRIB); if ( inputState.guessing==0 ) { step = new LocationStep(pool, Constants.ATTRIBUTE_AXIS, new NameTest(attr.getText())); expr.add(step); } break; } case STAR: { any = LT(1); match(STAR); if ( inputState.guessing==0 ) { step = new LocationStep(pool, -1, new TypeTest(Constants.ELEMENT_NODE)); expr.add(step); } break; } case ATTRIB_STAR: { anyAttr = LT(1); match(ATTRIB_STAR); if ( inputState.guessing==0 ) { step = new LocationStep(pool, Constants.ATTRIBUTE_AXIS, new TypeTest(Constants.ATTRIBUTE_NODE)); expr.add(step); } break; } case LITERAL_node: { match(LITERAL_node); match(LPAREN); match(RPAREN); if ( inputState.guessing==0 ) { step = new LocationStep(pool, -1, new TypeTest(Constants.NODE_TYPE)); expr.add(step); } break; } case PARENT: { match(PARENT); if ( inputState.guessing==0 ) { step = new LocationStep(pool, Constants.PARENT_AXIS, new TypeTest(Constants.NODE_TYPE)); expr.add(step); } break; } case SELF: { match(SELF); if ( inputState.guessing==0 ) { step = new LocationStep(pool, Constants.SELF_AXIS, new TypeTest(Constants.NODE_TYPE)); expr.add(step); } break; } case NCNAME: { qn=qname(); if ( inputState.guessing==0 ) { step = new LocationStep( pool, -1, new NameTest(qn)); expr.add(step); } break; } case LPAREN: case CONST: case INT: case LITERAL_text: case 32: case 33: case LITERAL_contains: case LITERAL_match: case LITERAL_near: case FUNC: { step=primary_expr(expr); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } return step; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/1c0cc42431436631d1b2e9ea8af63bb6dd883496/XPathParser.java/buggy/src/org/exist/parser/XPathParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
2235,
12,
202,
202,
743,
4742,
3065,
202,
13,
1216,
9539,
16,
3155,
1228,
503,
16,
8509,
15877,
16,
2294,
376,
503,
288,
202,
202,
2300,
2235,
31,
9506,
202,
1345,
225,
1604,
273,
446,
31,
202,
202,
1345,
225,
1281,
273,
446,
31,
202,
202,
1345,
225,
1281,
3843,
273,
446,
31,
202,
202,
4119,
273,
446,
31,
3196,
202,
780,
31054,
31,
25083,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
14043,
38,
30,
202,
202,
95,
1082,
202,
1747,
273,
11807,
12,
21,
1769,
1082,
202,
1916,
12,
26741,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
6862,
1082,
202,
4119,
273,
394,
7050,
4160,
12,
6011,
16,
6862,
9506,
202,
2918,
18,
11616,
67,
25614,
16,
6862,
9506,
202,
2704,
1770,
4709,
12,
1747,
18,
588,
1528,
1435,
10019,
6862,
1082,
202,
8638,
18,
1289,
12,
4119,
1769,
6862,
9506,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
21807,
30,
202,
202,
95,
1082,
202,
2273,
273,
11807,
12,
21,
1769,
1082,
202,
1916,
12,
20943,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
6862,
1082,
202,
4119,
273,
394,
7050,
4160,
12,
6011,
16,
6862,
9506,
202,
17,
21,
16,
6862,
9506,
202,
2704,
1412,
4709,
12,
2918,
18,
10976,
67,
8744,
10019,
6862,
1082,
202,
8638,
18,
1289,
12,
4119,
1769,
6862,
9506,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
2235,
12,
202,
202,
743,
4742,
3065,
202,
13,
1216,
9539,
16,
3155,
1228,
503,
16,
8509,
15877,
16,
2294,
376,
503,
288,
202,
202,
2300,
2235,
31,
9506,
202,
1345,
225,
1604,
273,
446,
31,
202,
202,
1345,
225,
1281,
273,
446,
31,
202,
202,
1345,
225,
1281,
3843,
273,
446,
31,
202,
202,
4119,
273,
446,
31,
3196,
202,
780,
31054,
31,
25083,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
14043,
38,
30,
202,
202,
95,
1082,
202,
1747,
273,
11807,
12,
21,
1769,
1082,
202,
1916,
12,
26741,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
6862,
1082,
202,
2
] |
|
channelBox.setVisible(true);
|
switcher.first(channelPanel);
|
public void setC(int cMap) { this.cMap = cMap; boolean hasThis = false; int numThis = -1; int value = -1; switch (cMap) { case 0: hasThis = db.hasZ; numThis = db.numZ; value = z; break; case 1: hasThis = db.hasT; numThis = db.numT; value = t; break; case 2: hasThis = db.hasC; numThis = db.numC; value = c; break; } if (numThis > 2) { // C spinner SpinnerNumberModel snm = (SpinnerNumberModel) channelSpin.getModel(); snm.setMaximum((Comparable) new Integer(numThis)); snm.setValue(new Integer(value)); channelSpin.setVisible(true); cLabel.setForeground(textColor); if (!hasThis) channelSpin.setEnabled(false); channelSpin.addChangeListener(this); // C label if (!hasThis) cLabel.setEnabled(false); channelBox.setVisible(false); } else { // C checkbox channelBox.setVisible(true); if (!hasThis) channelBox.setEnabled(false); channelBox.addItemListener(this); channelBox.setBackground(Color.white); channelSpin.setVisible(false); cLabel.setForeground(Color.white); } }
|
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/10b7736cc57ec6d68a6821b26159769bff1e9cb4/CustomWindow.java/buggy/loci/plugins/browser/CustomWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
11440,
12,
474,
276,
863,
13,
288,
565,
333,
18,
71,
863,
273,
276,
863,
31,
565,
1250,
711,
2503,
273,
629,
31,
565,
509,
818,
2503,
273,
300,
21,
31,
565,
509,
460,
273,
300,
21,
31,
565,
1620,
261,
71,
863,
13,
288,
1377,
648,
374,
30,
3639,
711,
2503,
273,
1319,
18,
5332,
62,
31,
3639,
818,
2503,
273,
1319,
18,
2107,
62,
31,
3639,
460,
273,
998,
31,
3639,
898,
31,
1377,
648,
404,
30,
3639,
711,
2503,
273,
1319,
18,
5332,
56,
31,
3639,
818,
2503,
273,
1319,
18,
2107,
56,
31,
3639,
460,
273,
268,
31,
3639,
898,
31,
1377,
648,
576,
30,
3639,
711,
2503,
273,
1319,
18,
5332,
39,
31,
3639,
818,
2503,
273,
1319,
18,
2107,
39,
31,
3639,
460,
273,
276,
31,
3639,
898,
31,
565,
289,
565,
309,
261,
2107,
2503,
405,
576,
13,
288,
1377,
368,
385,
24416,
1377,
5878,
7872,
1854,
1488,
4556,
81,
273,
261,
31676,
1854,
1488,
13,
1904,
3389,
267,
18,
588,
1488,
5621,
1377,
4556,
81,
18,
542,
13528,
12443,
799,
10207,
13,
394,
2144,
12,
2107,
2503,
10019,
1377,
4556,
81,
18,
542,
620,
12,
2704,
2144,
12,
1132,
10019,
1377,
1904,
3389,
267,
18,
542,
6207,
12,
3767,
1769,
1377,
276,
2224,
18,
542,
23206,
12,
955,
2957,
1769,
1377,
309,
16051,
5332,
2503,
13,
1904,
3389,
267,
18,
542,
1526,
12,
5743,
1769,
1377,
1904,
3389,
267,
18,
1289,
15744,
12,
2211,
1769,
1377,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11440,
12,
474,
276,
863,
13,
288,
565,
333,
18,
71,
863,
273,
276,
863,
31,
565,
1250,
711,
2503,
273,
629,
31,
565,
509,
818,
2503,
273,
300,
21,
31,
565,
509,
460,
273,
300,
21,
31,
565,
1620,
261,
71,
863,
13,
288,
1377,
648,
374,
30,
3639,
711,
2503,
273,
1319,
18,
5332,
62,
31,
3639,
818,
2503,
273,
1319,
18,
2107,
62,
31,
3639,
460,
273,
998,
31,
3639,
898,
31,
1377,
648,
404,
30,
3639,
711,
2503,
273,
1319,
18,
5332,
56,
31,
3639,
818,
2503,
273,
1319,
18,
2107,
56,
31,
3639,
460,
273,
268,
31,
3639,
898,
31,
1377,
648,
576,
30,
3639,
711,
2503,
273,
1319,
18,
5332,
2
] |
double tx = (x - getCenterX()) / rx; double ty = (y - getCenterY()) / ry; return tx * tx + ty * ty <= 1.0;
|
double tx = (x - (getX() + rx)) / rx; double ty = (y - (getY() + ry)) / ry; return tx * tx + ty * ty < 1.0;
|
public boolean contains(double x, double y) { double rx = getWidth() / 2; double ry = getHeight() / 2; double tx = (x - getCenterX()) / rx; double ty = (y - getCenterY()) / ry; return tx * tx + ty * ty <= 1.0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Ellipse2D.java/buggy/core/src/classpath/java/java/awt/geom/Ellipse2D.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1914,
12,
9056,
619,
16,
1645,
677,
13,
225,
288,
202,
202,
9056,
8581,
273,
8557,
1435,
342,
576,
31,
202,
202,
9056,
16826,
273,
9263,
1435,
342,
576,
31,
202,
202,
9056,
2229,
273,
261,
92,
300,
28916,
60,
10756,
342,
8581,
31,
202,
202,
9056,
13806,
273,
261,
93,
300,
28916,
61,
10756,
342,
16826,
31,
202,
202,
2463,
2229,
380,
2229,
397,
13806,
380,
13806,
1648,
404,
18,
20,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1914,
12,
9056,
619,
16,
1645,
677,
13,
225,
288,
202,
202,
9056,
8581,
273,
8557,
1435,
342,
576,
31,
202,
202,
9056,
16826,
273,
9263,
1435,
342,
576,
31,
202,
202,
9056,
2229,
273,
261,
92,
300,
28916,
60,
10756,
342,
8581,
31,
202,
202,
9056,
13806,
273,
261,
93,
300,
28916,
61,
10756,
342,
16826,
31,
202,
202,
2463,
2229,
380,
2229,
397,
13806,
380,
13806,
1648,
404,
18,
20,
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
] |
public PatternDescr lhs_exist() throws RecognitionException { PatternDescr d; Token loc=null; PatternDescr column = null; d = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:862:17: (loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column ) ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:862:17: loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column ) { loc=(Token)input.LT(1); match(input,54,FOLLOW_54_in_lhs_exist2426); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:862:30: ( '(' column= lhs_column ')' | column= lhs_column ) int alt57=2; int LA57_0 = input.LA(1); if ( LA57_0==21 ) { alt57=1; } else if ( LA57_0==ID ) { alt57=2; } else { NoViableAltException nvae = new NoViableAltException("862:30: ( \'(\' column= lhs_column \')\' | column= lhs_column )", 57, 0, input); throw nvae; } switch (alt57) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:862:31: '(' column= lhs_column ')' { match(input,21,FOLLOW_21_in_lhs_exist2429); following.push(FOLLOW_lhs_column_in_lhs_exist2433); column=lhs_column(); following.pop(); match(input,23,FOLLOW_23_in_lhs_exist2435); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:862:59: column= lhs_column { following.push(FOLLOW_lhs_column_in_lhs_exist2441); column=lhs_column(); following.pop(); } break; } d = new ExistsDescr( (ColumnDescr) column ); d.setLocation( loc.getLine(), loc.getCharPositionInLine() ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/297a1e0ef2967d8b4f7be9c022102a5a56e97489/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
7398,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
6830,
16198,
1057,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
5292,
22,
30,
4033,
30,
261,
1829,
33,
296,
1808,
11,
261,
7321,
1057,
33,
8499,
67,
2827,
5777,
571,
1057,
33,
8499,
67,
2827,
262,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
5292,
22,
30,
4033,
30,
1515,
33,
296,
1808,
11,
261,
7321,
1057,
33,
8499,
67,
2827,
5777,
571,
1057,
33,
8499,
67,
2827,
262,
5411,
288,
5411,
1515,
28657,
1345,
13,
2630,
18,
12050,
12,
21,
1769,
5411,
845,
12,
2630,
16,
6564,
16,
29890,
67,
6564,
67,
267,
67,
80,
4487,
67,
7398,
3247,
5558,
1769,
2398,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
5292,
22,
30,
5082,
30,
261,
7321,
1057,
33,
8499,
67,
2827,
5777,
571,
1057,
33,
8499,
67,
2827,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
7398,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
6830,
16198,
1057,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
5292,
22,
30,
4033,
30,
261,
1829,
33,
296,
1808,
11,
261,
7321,
1057,
33,
8499,
67,
2827,
5777,
571,
1057,
33,
8499,
67,
2827,
262,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
2
] |
||
}
|
} else if (node instanceof Colon3Node) { enclosingModule = state.runtime.getObject(); }
|
private static RubyModule getEnclosingModule(EvaluationState state, Node node) { RubyModule enclosingModule = null; if (node instanceof Colon2Node) { state.begin(((Colon2Node) node).getLeftNode()); if (state.getResult() != null && !state.getResult().isNil()) { enclosingModule = (RubyModule) state.getResult(); } } if (enclosingModule == null) { enclosingModule = state.getThreadContext().getRubyClass(); } return enclosingModule; }
|
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/145cff15d938188f5d32f56a3498aeb58147c842/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
19817,
3120,
336,
21594,
3120,
12,
13468,
1119,
919,
16,
2029,
756,
13,
288,
3639,
19817,
3120,
16307,
3120,
273,
446,
31,
7734,
309,
261,
2159,
1276,
1558,
265,
22,
907,
13,
288,
540,
202,
2019,
18,
10086,
12443,
12,
19636,
22,
907,
13,
756,
2934,
588,
3910,
907,
10663,
540,
202,
540,
202,
430,
261,
2019,
18,
588,
1253,
1435,
480,
446,
597,
401,
2019,
18,
588,
1253,
7675,
291,
12616,
10756,
288,
540,
202,
202,
1331,
10910,
3120,
273,
261,
54,
10340,
3120,
13,
919,
18,
588,
1253,
5621,
540,
202,
97,
469,
309,
261,
2159,
1276,
1558,
265,
23,
907,
13,
288,
16307,
3120,
273,
919,
18,
9448,
18,
588,
921,
5621,
289,
3639,
289,
469,
309,
261,
2159,
1276,
1558,
265,
23,
907,
13,
288,
16307,
3120,
273,
919,
18,
9448,
18,
588,
921,
5621,
289,
1171,
309,
261,
1331,
10910,
3120,
422,
446,
13,
288,
540,
202,
1331,
10910,
3120,
273,
919,
18,
588,
3830,
1042,
7675,
588,
54,
10340,
797,
5621,
3639,
289,
469,
309,
261,
2159,
1276,
1558,
265,
23,
907,
13,
288,
16307,
3120,
273,
919,
18,
9448,
18,
588,
921,
5621,
289,
3639,
327,
16307,
3120,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
19817,
3120,
336,
21594,
3120,
12,
13468,
1119,
919,
16,
2029,
756,
13,
288,
3639,
19817,
3120,
16307,
3120,
273,
446,
31,
7734,
309,
261,
2159,
1276,
1558,
265,
22,
907,
13,
288,
540,
202,
2019,
18,
10086,
12443,
12,
19636,
22,
907,
13,
756,
2934,
588,
3910,
907,
10663,
540,
202,
540,
202,
430,
261,
2019,
18,
588,
1253,
1435,
480,
446,
597,
401,
2019,
18,
588,
1253,
7675,
291,
12616,
10756,
288,
540,
202,
202,
1331,
10910,
3120,
273,
261,
54,
10340,
3120,
13,
919,
18,
588,
1253,
5621,
540,
202,
97,
469,
309,
261,
2159,
1276,
1558,
265,
23,
907,
13,
288,
16307,
3120,
273,
919,
18,
9448,
18,
588,
921,
5621,
289,
2
] |
boldRange(cstart, i - cstart + 1, presentation, true);
|
boldRange(cstart, i - cstart, presentation, true);
|
public String updatePresentation(Display display, String infoText, TextPresentation presentation, int maxWidth, int maxHeight) { int cstart = -1; int gstart = -1; // Loop over all characters of information text for (int i = 0; i < infoText.length(); i++) { switch (infoText.charAt(i)) { case '{': // if we get \foo\{ or \{, then a group doesn't start if (cstart >= 0 && infoText.charAt(i-1) != '\\') { boldRange(cstart, i - cstart + 1, presentation, false); cstart = -1; gstart = i; } else if (cstart < 0) { gstart = i; } break; case '}': // if we get \} then it doesn't mean that a group ends if (cstart >= 0 && infoText.charAt(i-1) != '\\') { boldRange(cstart, i - cstart + 1, presentation, true); cstart = -1; if (gstart >= 0) { italicizeRange(gstart, cstart - gstart, presentation); gstart = -1; } } else if (gstart >= 0) { italicizeRange(gstart, i - gstart + 1, presentation); gstart = -1; } break; case '\\': if (cstart < 0 && gstart < 0) { cstart = i; } break; case '\n': case '\r': case '\t': case ' ': if (cstart >= 0) { if (gstart >= 0) { italicizeRange(gstart, cstart - gstart, presentation); boldRange(cstart, i - cstart + 1, presentation, true); gstart = i; } else { boldRange(cstart, i - cstart + 1, presentation, false); } cstart = -1; } break; } } // check if we want to bold to the end of string if (gstart >= 0) { italicizeRange(gstart, infoText.length() - gstart, presentation); } if (cstart >= 0) { boldRange(cstart, infoText.length() - cstart, presentation, false); } // Return the information text return infoText; }
|
48893 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48893/ad0ce6f1b0ee762767ecbc67b680fe65efe6a84b/TexSourceViewerConfiguration.java/buggy/source/net/sourceforge/texlipse/editor/TexSourceViewerConfiguration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1089,
6351,
367,
12,
4236,
2562,
16,
514,
1123,
1528,
16,
7734,
3867,
6351,
367,
22525,
16,
509,
17681,
16,
509,
23185,
13,
288,
5411,
509,
276,
1937,
273,
300,
21,
31,
5411,
509,
314,
1937,
273,
300,
21,
31,
13491,
368,
9720,
1879,
777,
3949,
434,
1779,
977,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1123,
1528,
18,
2469,
5621,
277,
27245,
288,
7734,
1620,
261,
1376,
1528,
18,
3001,
861,
12,
77,
3719,
288,
7734,
648,
2292,
4278,
10792,
368,
309,
732,
336,
521,
11351,
64,
95,
578,
521,
95,
16,
1508,
279,
1041,
3302,
1404,
787,
10792,
309,
261,
71,
1937,
1545,
374,
597,
1123,
1528,
18,
3001,
861,
12,
77,
17,
21,
13,
480,
5282,
13,
288,
13491,
13068,
2655,
12,
71,
1937,
16,
277,
300,
276,
1937,
397,
404,
16,
22525,
16,
629,
1769,
13491,
276,
1937,
273,
300,
21,
31,
13491,
314,
1937,
273,
277,
31,
10792,
289,
469,
309,
261,
71,
1937,
411,
374,
13,
288,
13491,
314,
1937,
273,
277,
31,
10792,
289,
10792,
898,
31,
7734,
648,
9571,
30,
10792,
368,
309,
732,
336,
521,
97,
1508,
518,
3302,
1404,
3722,
716,
279,
1041,
3930,
10792,
309,
261,
71,
1937,
1545,
374,
597,
1123,
1528,
18,
3001,
861,
12,
77,
17,
21,
13,
480,
5282,
13,
288,
13491,
13068,
2655,
12,
71,
1937,
16,
277,
300,
276,
1937,
16,
22525,
16,
638,
1769,
13491,
276,
1937,
273,
300,
21,
31,
13491,
309,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1089,
6351,
367,
12,
4236,
2562,
16,
514,
1123,
1528,
16,
7734,
3867,
6351,
367,
22525,
16,
509,
17681,
16,
509,
23185,
13,
288,
5411,
509,
276,
1937,
273,
300,
21,
31,
5411,
509,
314,
1937,
273,
300,
21,
31,
13491,
368,
9720,
1879,
777,
3949,
434,
1779,
977,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1123,
1528,
18,
2469,
5621,
277,
27245,
288,
7734,
1620,
261,
1376,
1528,
18,
3001,
861,
12,
77,
3719,
288,
7734,
648,
2292,
4278,
10792,
368,
309,
732,
336,
521,
11351,
64,
95,
578,
521,
95,
16,
1508,
279,
1041,
3302,
1404,
787,
10792,
309,
261,
71,
1937,
1545,
374,
597,
1123,
1528,
18,
3001,
861,
12,
2
] |
public IPv4AddressAndMask(IPv4Address address, IPv4Address subnetMask) { this.address = address; this.subnetMask = subnetMask;
|
public IPv4AddressAndMask() {
|
public IPv4AddressAndMask(IPv4Address address, IPv4Address subnetMask) { this.address = address; this.subnetMask = subnetMask; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/IPv4AddressAndMask.java/clean/net/src/net/org/jnode/net/ipv4/IPv4AddressAndMask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7853,
24,
1887,
1876,
5796,
12,
12775,
24,
1887,
1758,
16,
7853,
24,
1887,
8821,
5796,
13,
288,
202,
202,
2211,
18,
2867,
273,
1758,
31,
202,
202,
2211,
18,
19926,
5796,
273,
8821,
5796,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7853,
24,
1887,
1876,
5796,
12,
12775,
24,
1887,
1758,
16,
7853,
24,
1887,
8821,
5796,
13,
288,
202,
202,
2211,
18,
2867,
273,
1758,
31,
202,
202,
2211,
18,
19926,
5796,
273,
8821,
5796,
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
] |
vPhaseReport.addElement(r);
|
addReport(r);
|
private void processMovement(Entity entity, MovePath md) { Report r; boolean sideslipped = false; // for VTOL sideslipping // check for fleeing if (md.contains(MovePath.STEP_FLEE)) { // Unit has fled the battlefield. r = new Report(2005, Report.PUBLIC); r.addDesc(entity); vPhaseReport.addElement(r); // Is the unit carrying passengers? final Vector passengers = entity.getLoadedUnits(); if ( !passengers.isEmpty() ) { final Enumeration iter = passengers.elements(); while ( iter.hasMoreElements() ) { final Entity passenger = (Entity) iter.nextElement(); // Unit has fled the battlefield. r = new Report(2010, Report.PUBLIC); r.indent(); r.addDesc(passenger); vPhaseReport.addElement(r); game.removeEntity( passenger.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT ); send( createRemoveEntityPacket(passenger.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT) ); } } // Handle any picked up MechWarriors Enumeration iter = entity.getPickedUpMechWarriors().elements(); while (iter.hasMoreElements() ) { Integer mechWarriorId = (Integer)iter.nextElement(); Entity mw = game.getEntity(mechWarriorId.intValue()); // Is the MechWarrior an enemy? int condition = IEntityRemovalConditions.REMOVE_IN_RETREAT; r = new Report(2010); if (mw.isCaptured()) { r = new Report(2015); condition = IEntityRemovalConditions.REMOVE_CAPTURED; } game.removeEntity( mw.getId(), condition ); send( createRemoveEntityPacket(mw.getId(), condition) ); r.addDesc(mw); r.indent(); vPhaseReport.addElement(r); } // Is the unit being swarmed? final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); // Has the swarmer taken a turn? if ( !swarmer.isDone() ) { // Dead entities don't take turns. game.removeTurnFor(swarmer); send(createTurnVectorPacket()); } // End swarmer-still-to-move // Unit has fled the battlefield. swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); r = new Report(2015, Report.PUBLIC); r.indent(); r.addDesc(swarmer); vPhaseReport.addElement(r); game.removeEntity( swarmerId, IEntityRemovalConditions.REMOVE_CAPTURED ); send( createRemoveEntityPacket(swarmerId, IEntityRemovalConditions.REMOVE_CAPTURED) ); } game.removeEntity( entity.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT ); send( createRemoveEntityPacket(entity.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT) ); return; } if (md.contains(MovePath.STEP_EJECT)) { if (entity instanceof Mech) { r = new Report(2020); r.subject = entity.getId(); r.add(entity.getCrew().getName()); r.addDesc(entity); vPhaseReport.addElement(r); } else if (entity instanceof Tank) { r = new Report(2025); r.subject = entity.getId(); r.addDesc(entity); vPhaseReport.addElement(r); } vPhaseReport.addAll( ejectEntity(entity, false)); return; } // okay, proceed with movement calculations Coords lastPos = entity.getPosition(); Coords curPos = entity.getPosition(); int curFacing = entity.getFacing(); int curVTOLElevation = entity.getElevation(); int distance = 0; int mpUsed = 0; int moveType = IEntityMovementType.MOVE_NONE; int overallMoveType = IEntityMovementType.MOVE_NONE; // if the entity already used some MPs, // it previously tried to get up and fell, // and then got another turn. set moveType // and overallMoveType accordingly if (entity.mpUsed > 0) { moveType = IEntityMovementType.MOVE_WALK; overallMoveType = IEntityMovementType.MOVE_WALK; if (entity.mpUsed > entity.getWalkMP()) { moveType = IEntityMovementType.MOVE_RUN; overallMoveType = IEntityMovementType.MOVE_RUN; } } boolean firstStep; boolean wasProne; boolean fellDuringMovement; int prevFacing = curFacing; IHex prevHex = null; final boolean isInfantry = (entity instanceof Infantry); AttackAction charge = null; PilotingRollData rollTarget; // cache this here, otherwise changing MP in the turn causes // errorneous gravity PSRs int cachedGravityLimit = (IEntityMovementType.MOVE_JUMP == moveType)? entity.getOriginalJumpMP() : entity.getRunMP(false); // Compile the move md.compile(game, entity); if (md.contains(MovePath.STEP_CLEAR_MINEFIELD)) { ClearMinefieldAction cma = new ClearMinefieldAction(entity.getId()); entity.setClearingMinefield(true); game.addAction(cma); } // check for MASC failure if (entity instanceof Mech) { Vector crits = new Vector(); if (((Mech)entity).checkForMASCFailure(md, vPhaseReport, crits)) { CriticalSlot cs = null; int loc = Entity.LOC_NONE; for(Enumeration e = crits.elements();e.hasMoreElements();) { Object o = e.nextElement(); if(o instanceof Integer) loc = (Integer) o; else if (o instanceof CriticalSlot) { cs = (CriticalSlot) o; applyCriticalHit(entity, loc, cs, true); } } // no movement after that md.clear(); } } overallMoveType = md.getLastStepMovementType(); //check for starting in liquid magma if(game.getBoard().getHex(entity.getPosition()).terrainLevel(Terrains.MAGMA) == 2 && entity.getElevation() == 0) { doMagmaDamage(entity, false); } // iterate through steps firstStep = true; fellDuringMovement = false; /* Bug 754610: Revert fix for bug 702735. */ MoveStep prevStep = null; Vector movePath = new Vector(); for (final Enumeration i = md.getSteps(); i.hasMoreElements();) { final MoveStep step = (MoveStep)i.nextElement(); wasProne = entity.isProne(); boolean isPavementStep = step.isPavementStep(); boolean entityFellWhileAttemptingToStand = false; // stop for illegal movement if (step.getMovementType() == IEntityMovementType.MOVE_ILLEGAL) { break; } //stop if the entity already killed itself if(entity.isDestroyed() || entity.isDoomed()) { break; } // check piloting skill for getting up rollTarget = entity.checkGetUp(step); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { entity.heatBuildup += 1; entity.setProne(false); entity.setHullDown(false); wasProne = false; game.resetPSRs(entity); entityFellWhileAttemptingToStand = !doSkillCheckInPlace(entity, rollTarget); } // did the entity just fall? if (entityFellWhileAttemptingToStand) { moveType = step.getMovementType(); curFacing = entity.getFacing(); curPos = entity.getPosition(); mpUsed = step.getMpUsed(); fellDuringMovement = true; break; } if (step.getType() == MovePath.STEP_UNJAM_RAC) { entity.setUnjammingRAC(true); game.addAction(new UnjamAction(entity.getId())); break; } if (step.getType() == MovePath.STEP_LAY_MINE) { LayMinefieldAction lma = new LayMinefieldAction(entity.getId(), step.getMineToLay()); game.addLayMinefieldAction(lma); entity.setLayingMines(true); break; } if (step.getType() == MovePath.STEP_SEARCHLIGHT && entity.hasSpotlight()) { final boolean SearchOn = !entity.isUsingSpotlight(); entity.setSpotlightState(SearchOn); sendServerChat(entity.getDisplayName() + " switched searchlight "+(SearchOn?"on":"off")+"."); } // set most step parameters moveType = step.getMovementType(); distance = step.getDistance(); mpUsed = step.getMpUsed(); // check for charge if (step.getType() == MovePath.STEP_CHARGE) { if (entity.canCharge()) { checkExtremeGravityMovement(entity, step, curPos, cachedGravityLimit); Targetable target = step.getTarget( game ); ChargeAttackAction caa = new ChargeAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); entity.setDisplacementAttack(caa); game.addCharge(caa); charge = caa; } else { sendServerChat("Illegal charge!! I don't think "+entity.getDisplayName() +" should be allowed to charge,"+ " but the client of "+entity.getOwner().getName()+" disagrees."); sendServerChat("Please make sure "+entity.getOwner().getName()+" is running MegaMek "+MegaMek.VERSION+ ", or if that is already the case, submit a bug report at http://megamek.sf.net/"); return; } break; } // check for dfa if (step.getType() == MovePath.STEP_DFA) { if (entity.canDFA()) { checkExtremeGravityMovement(entity, step, curPos, cachedGravityLimit); Targetable target = step.getTarget( game ); DfaAttackAction daa = new DfaAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); entity.setDisplacementAttack(daa); game.addCharge(daa); charge = daa; } else { sendServerChat("Illegal DFA!! I don't think "+entity.getDisplayName() +" should be allowed to DFA,"+ " but the client of "+entity.getOwner().getName()+" disagrees."); sendServerChat("Please make sure "+entity.getOwner().getName()+" is running MegaMek "+MegaMek.VERSION+ ", or if that is already the case, submit a bug report at http://megamek.sf.net/"); return; } break; } // set last step parameters curPos = step.getPosition(); if(moveType != IEntityMovementType.MOVE_JUMP || entity.getJumpType() != Mech.JUMP_BOOSTER) curFacing = step.getFacing(); curVTOLElevation = step.getElevation(); //set elevation in case of collapses entity.setElevation(step.getElevation()); final IHex curHex = game.getBoard().getHex(curPos); // check for automatic unstick if(entity.canUnstickByJumping() && entity.isStuck() && moveType == IEntityMovementType.MOVE_JUMP) { entity.setStuck(false); entity.setCanUnstickByJumping(false); } // Check for skid. rollTarget = entity.checkSkid(moveType, prevHex, overallMoveType, prevStep, prevFacing, curFacing, lastPos, curPos, isInfantry, distance); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { // Have an entity-meaningful PSR message. boolean psrPassed = true; if ( entity instanceof Mech ) { psrPassed = doSkillCheckWhileMoving( entity, lastPos, lastPos, rollTarget, true ); } else { psrPassed = doSkillCheckWhileMoving( entity, lastPos, lastPos, rollTarget, false ); } // Does the entity skid? if ( !psrPassed ){ curPos = lastPos; Coords nextPos = curPos; IHex nextHex = null; int skidDistance = 0; Enumeration targets = null; Entity target = null; int curElevation; int nextElevation; int skidDirection = prevFacing; // All charge damage is based upon // the pre-skid move distance. entity.delta_distance = distance-1; // Attacks against a skidding target have additional +2. moveType = IEntityMovementType.MOVE_SKID; // What is the first hex in the skid? if(step.isThisStepBackwards()) { skidDirection = (skidDirection + 3) % 6; } nextPos = curPos.translated( skidDirection ); nextHex = game.getBoard().getHex( nextPos ); // Move the entity a number hexes from curPos in the // skidDirection direction equal to half the distance moved // this turn (rounded up), unless something intervenes. for ( skidDistance = 0; skidDistance < (int) Math.ceil(entity.delta_distance / 2.0); skidDistance++ ) { // Is the next hex off the board? if ( !game.getBoard().contains(nextPos) ) { // Can the entity skid off the map? if (game.getOptions().booleanOption("push_off_board")) { // Yup. One dead entity. game.removeEntity(entity.getId(), IEntityRemovalConditions.REMOVE_PUSHED); send(createRemoveEntityPacket(entity.getId(), IEntityRemovalConditions.REMOVE_PUSHED)); r = new Report(2030, Report.PUBLIC); r.addDesc(entity); vPhaseReport.addElement(r); // TODO: remove passengers and swarmers. // The entity's movement is completed. return; } else { // Nope. Update the report. r = new Report(2035); r.subject = entity.getId(); r.indent(); vPhaseReport.addElement(r); } // Stay in the current hex and stop skidding. break; } // Can the skiding entity enter the next hex from this? // N.B. can skid along roads. if ( ( entity.isHexProhibited(curHex) || entity.isHexProhibited(nextHex) ) && !Compute.canMoveOnPavement(game, curPos, nextPos) ) { // Update report. r = new Report(2040); r.subject = entity.getId(); r.indent(); r.add(nextPos.getBoardNum(), true); vPhaseReport.addElement(r); // N.B. the BMRr pg. 22 says that the unit // "crashes" into the terrain but it doesn't // mention any damage. // Stay in the current hex and stop skidding. break; } // Hovercraft can "skid" over water. // all units can skid over ice. // TODO: allow entities to occupy different levels of // buildings. curElevation = curHex.floor(); nextElevation = nextHex.floor(); if ( entity instanceof Tank && entity.getMovementMode() == IEntityMovementMode.HOVER ) { if ( curHex.containsTerrain(Terrains.WATER) ) { curElevation = curHex.surface(); } if ( nextHex.containsTerrain(Terrains.WATER) ) { nextElevation += nextHex.surface(); } } else { if(curHex.containsTerrain(Terrains.ICE)) { curElevation = curHex.surface(); } if(nextHex.containsTerrain(Terrains.ICE)) { nextElevation = nextHex.surface(); } } // BMRr pg. 22 - Can't skid uphill, // but can skid downhill. if ( curElevation < nextElevation ) { r = new Report(2045); r.subject = entity.getId(); r.indent(); r.add(nextPos.getBoardNum(), true); vPhaseReport.addElement(r); // Stay in the current hex and stop skidding. break; } // Have skidding units suffer falls. else if ( curElevation > nextElevation + 1 ) { doEntityFallsInto( entity, curPos, nextPos, entity.getBasePilotingRoll() ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); // Stay in the current hex and stop skidding. break; } // Get any building in the hex. Building bldg = game.getBoard().getBuildingAt(nextPos); boolean bldgSuffered = false; boolean stopTheSkid = false; // Does the next hex contain an entities? // ASSUMPTION: hurt EVERYONE in the hex. // TODO: allow entities to occupy different levels of // buildings, and only skid into a single level. targets = game.getEntities( nextPos ); if ( targets.hasMoreElements()) { boolean skidChargeHit = false; while ( targets.hasMoreElements() ) { target = (Entity) targets.nextElement(); // TODO : allow ready targets to move out of way // Mechs and vehicles get charged, // but need to make a to-hit roll if ( target instanceof Mech || target instanceof Tank ) { ChargeAttackAction caa = new ChargeAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); ToHitData toHit = caa.toHit(game, true); // Calculate hit location. if ( entity instanceof Tank && ((entity.getMovementMode() == IEntityMovementMode.HOVER) || (entity.getMovementMode() == IEntityMovementMode.NAVAL) || (entity.getMovementMode() == IEntityMovementMode.HYDROFOIL)) && 0 < nextHex.terrainLevel(Terrains.WATER) && target.getElevation() < 0) { if ( 2 <= nextHex.terrainLevel(Terrains.WATER) || target.isProne() ) { // Hovercraft/Naval Craft can't hit the Mek. continue; } else { toHit.setHitTable(ToHitData.HIT_PUNCH); } } else if ( entity.getHeight() < target.getHeight() ) { toHit.setHitTable(ToHitData.HIT_KICK); } else { toHit.setHitTable(ToHitData.HIT_NORMAL); } toHit.setSideTable (Compute.targetSideTable(entity, target)); // roll int roll = Compute.d6(2); // Update report. r = new Report(2050); r.subject = entity.getId(); r.indent(); r.add(target.getShortName(), true); r.add(nextPos.getBoardNum(), true); r.newlines = 0; vPhaseReport.addElement(r); if (toHit.getValue() == ToHitData.IMPOSSIBLE) { roll = -12; r = new Report(2055); r.subject = entity.getId(); r.add(toHit.getDesc()); r.newlines = 0; vPhaseReport.addElement(r); } else if (toHit.getValue() == ToHitData.AUTOMATIC_SUCCESS) { r = new Report(2060); r.subject = entity.getId(); r.add(toHit.getDesc()); r.newlines = 0; vPhaseReport.addElement(r); roll = Integer.MAX_VALUE; } else { // report the roll r = new Report(2065); r.subject = entity.getId(); r.add(toHit.getValue()); r.add(roll); r.newlines = 0; vPhaseReport.addElement(r); } // Resolve a charge against the target. // ASSUMPTION: buildings block damage for // *EACH* entity charged. if (roll < toHit.getValue()) { r = new Report(2070); r.subject = entity.getId(); vPhaseReport.addElement(r); } else { // Resolve the charge. resolveChargeDamage (entity, target, toHit, skidDirection); // HACK: set the entity's location // to the original hex again, for the other targets if (targets.hasMoreElements()) { entity.setPosition(curPos); } bldgSuffered = true; skidChargeHit = true; } // The skid ends here if the target lives. if ( !target.isDoomed() && !target.isDestroyed() && !game.isOutOfGame(target) ) { stopTheSkid = true; } // if we don't do this here, // we can have a mech without a leg // standing on the field and moving // as if it still had his leg after // getting skid-charged. if (!target.isDone()) { resolvePilotingRolls(target); game.resetPSRs(target); target.applyDamage(); Report.addNewline(vPhaseReport); } } // Resolve "move-through" damage on infantry. // Infantry inside of a building don't get a // move-through, but suffer "bleed through" // from the building. else if ( target instanceof Infantry && bldg != null ) { // Update report. r = new Report(2075); r.subject = entity.getId(); r.indent(); r.add(target.getShortName(), true); r.add(nextPos.getBoardNum(), true); r.newlines = 0; vPhaseReport.addElement(r); // Infantry don't have different // tables for punches and kicks HitData hit = target.rollHitLocation( ToHitData.HIT_NORMAL, Compute.targetSideTable(entity, target) ); // Damage equals tonnage, divided by 5. // ASSUMPTION: damage is applied in one hit. vPhaseReport.addAll( damageEntity(target, hit, Math.round(entity.getWeight()/5))); Report.addNewline(vPhaseReport); } // Has the target been destroyed? if ( target.isDoomed() ) { // Has the target taken a turn? if ( !target.isDone() ) { // Dead entities don't take turns. game.removeTurnFor(target); send(createTurnVectorPacket()); } // End target-still-to-move // Clean out the entity. target.setDestroyed(true); game.moveToGraveyard(target.getId()); send(createRemoveEntityPacket(target.getId())); } // Update the target's position, // unless it is off the game map. if ( !game.isOutOfGame(target) ) { entityUpdate( target.getId() ); } } // Check the next entity in the hex. // if we missed all the entities in the hex, // move attacker to side hex if (!skidChargeHit) { Coords src = entity.getPosition(); Coords dest = Compute.getMissedChargeDisplacement (game, entity.getId(), src, skidDirection); doEntityDisplacement(entity, src, dest, null); } else { // HACK: otherwise, set the entities position to that // hex's coords, because we had to move the entity // back earlier for the other targets entity.setPosition(nextPos); } } // Handle the building in the hex. // TODO : BMRr pg. 22, only count buildings that are // higher than our starting terrain height. // TODO: allow units to skid on top of buildings. if ( bldg != null ) { // Report that the entity has entered the bldg. r = new Report(2080); r.subject = entity.getId(); r.indent(); r.add(bldg.getName()); r.add(nextPos.getBoardNum(), true); vPhaseReport.addElement(r); // If the building hasn't already suffered // damage, then apply charge damage to the // building and displace the entity inside. // ASSUMPTION: you don't charge the building // if Tanks or Mechs were charged. int chargeDamage = ChargeAttackAction.getDamageFor ( entity ); if ( !bldgSuffered ) { Report buildingReport = damageBuilding( bldg, chargeDamage ); buildingReport.indent(2); buildingReport.subject = entity.getId(); vPhaseReport.addElement(buildingReport); // Apply damage to the attacker. int toAttacker = ChargeAttackAction.getDamageTakenBy ( entity, bldg ); HitData hit = entity.rollHitLocation( ToHitData.HIT_NORMAL, entity.sideTable(nextPos) ); vPhaseReport.addAll( damageEntity( entity, hit, toAttacker )); Report.addNewline(vPhaseReport); entity.setPosition( nextPos ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); curPos = nextPos; } // End buildings-suffer-too // Any infantry in the building take damage // equal to the building being charged. // ASSUMPTION: infantry take no damage from the // building absorbing damage from // Tanks and Mechs being charged. damageInfantryIn( bldg, chargeDamage ); // If a building still stands, then end the skid, // and add it to the list of affected buildings. if ( bldg.getCurrentCF() > 0 ) { stopTheSkid = true; this.addAffectedBldg( bldg, false ); } } // End handle-building. // Do we stay in the current hex and stop skidding? if ( stopTheSkid ) { break; } // is the next hex a rubble hex? rollTarget = entity.checkRubbleMove(step, nextHex, curPos, nextPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckWhileMoving(entity, curPos, nextPos, rollTarget, true); if (entity.isProne()) { // if we fell, stop the skid (see bug 1115608) break; } } //check for breaking magma crust if(curHex.terrainLevel(Terrains.MAGMA) == 1) { int roll = Compute.d6(1); r = new Report(2395); r.addDesc(entity); r.add(roll); r.subject = entity.getId(); vPhaseReport.addElement(r); if(roll == 6) { curHex.removeTerrain(Terrains.MAGMA); curHex.addTerrain(Terrains.getTerrainFactory().createTerrain(Terrains.MAGMA, 2)); sendChangedHex(curPos); for(Enumeration e=game.getEntities(curPos);e.hasMoreElements();) { Entity en = (Entity)e.nextElement(); if(en != entity) doMagmaDamage(en, false); } } } //check for entering liquid magma if(curHex.terrainLevel(Terrains.MAGMA) == 2) { doMagmaDamage(entity, false); } // is the next hex a swamp? rollTarget = entity.checkSwampMove(step, nextHex, curPos, nextPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { if (!doSkillCheckWhileMoving(entity, curPos, nextPos, rollTarget, false)){ entity.setStuck(true); r = new Report(2081); r.subject = entity.getId(); r.add(entity.getDisplayName(), true); // stay here and stop skidding, see bug 1115608 break; } } // Update the position and keep skidding. entity.setPosition( nextPos ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); curPos = nextPos; r = new Report(2085); r.subject = entity.getId(); r.indent(); r.add(curPos.getBoardNum(), true); vPhaseReport.addElement(r); // Get the next hex in the skid? nextPos = nextPos.translated( skidDirection ); nextHex = game.getBoard().getHex( nextPos ); } // Handle the next skid hex. // If the skidding entity violates stacking, // displace targets until it doesn't. curPos = entity.getPosition(); target = Compute.stackingViolation (game, entity.getId(), curPos); while (target != null) { nextPos = Compute.getValidDisplacement (game, target.getId(), target.getPosition(), skidDirection); // ASSUMPTION // There should always be *somewhere* that // the target can go... last skid hex if // nothing else is available. if ( null == nextPos ) { // But I don't trust the assumption fully. // Report the error and try to continue. System.err.println( "The skid of " + entity.getShortName() + " should displace " + target.getShortName() + " in hex " + curPos.getBoardNum() + " but there is nowhere to go." ); break; } // indent displacement r = new Report(1210, Report.PUBLIC); r.indent(); r.newlines = 0; vPhaseReport.addElement(r); doEntityDisplacement(target, curPos, nextPos, null); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); target = Compute.stackingViolation( game, entity.getId(), curPos ); } // Mechs suffer damage for every hex skidded. if ( entity instanceof Mech ) { // Calculate one half falling damage times skid length. int damage = skidDistance * (int) Math.ceil(Math.round(entity.getWeight() / 10.0) / 2.0); // report skid damage r = new Report(2090); r.subject = entity.getId(); r.indent(); r.addDesc(entity); r.add(damage); vPhaseReport.addElement(r); // standard damage loop // All skid damage is to the front. while (damage > 0) { int cluster = Math.min(5, damage); HitData hit = entity.rollHitLocation(ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT); vPhaseReport.addAll( damageEntity(entity, hit, cluster)); damage -= cluster; } Report.addNewline(vPhaseReport); } // Clean up the entity if it has been destroyed. if ( entity.isDoomed() ) { entity.setDestroyed(true); game.moveToGraveyard(entity.getId()); send(createRemoveEntityPacket(entity.getId())); // The entity's movement is completed. return; } // Let the player know the ordeal is over. r = new Report(2095); r.subject = entity.getId(); r.indent(); vPhaseReport.addElement(r); // set entity parameters curFacing = entity.getFacing(); curPos = entity.getPosition(); entity.setSecondaryFacing( curFacing ); // skid consumes all movement if (md.hasActiveMASC()) { mpUsed = entity.getRunMP(); } else { mpUsed = entity.getRunMPwithoutMASC(); } entity.moved = moveType; fellDuringMovement = true; distance = entity.delta_distance; break; } // End failed-skid-psr } // End need-skid-psr if(entity instanceof VTOL) { rollTarget = ((VTOL)entity).checkSideSlip(moveType, prevHex, overallMoveType, prevStep, prevFacing, curFacing, lastPos, curPos, distance); if(rollTarget.getValue() != TargetRoll.CHECK_FALSE) { if(!doSkillCheckWhileMoving(entity,lastPos,curPos,rollTarget, false)) { //report sideslip sideslipped = true; r = new Report(2100); r.subject = entity.getId(); r.addDesc(entity); vPhaseReport.addElement(r); Coords newPos = lastPos.translated((prevFacing));//does this work for opposing hex? // Is the next hex off the board? if ( !game.getBoard().contains(newPos) ) { // Can the entity skid off the map? if (game.getOptions().booleanOption("push_off_board")) { // Yup. One dead entity. game.removeEntity(entity.getId(), IEntityRemovalConditions.REMOVE_PUSHED); send(createRemoveEntityPacket(entity.getId(), IEntityRemovalConditions.REMOVE_PUSHED)); r = new Report(2030); r.subject = entity.getId(); r.addDesc(entity); vPhaseReport.addElement(r); // TODO: remove passengers and swarmers. // The entity's movement is completed. return; } else { // Nope. Update the report. r = new Report(2035); r.subject = entity.getId(); vPhaseReport.addElement(r); } // Stay in the current hex and stop skidding. break; } int newElevation=(entity.calcElevation(game.getBoard().getHex(curPos),game.getBoard().getHex(newPos),curVTOLElevation,step.climbMode())); if(newElevation<=0) { r = new Report(2105); r.subject = entity.getId(); r.add(newPos.getBoardNum(), true); vPhaseReport.addElement(r); int hitSide=curFacing-prevFacing+6; hitSide=hitSide % 6; int table=0; switch(hitSide) {//quite hackish...I think it ought to work, though. case 0://can this happen? table=ToHitData.SIDE_FRONT; break; case 1: case 2: table=ToHitData.SIDE_LEFT; break; case 3: table=ToHitData.SIDE_REAR; break; case 4: case 5: table=ToHitData.SIDE_RIGHT; break; } curPos=newPos; curVTOLElevation=newElevation; vPhaseReport.addAll( crashVTOL(((VTOL)entity),true,distance,curPos,curVTOLElevation,table)); curVTOLElevation=0; IHex hex = game.getBoard().getHex(newPos); if((hex.containsTerrain(Terrains.WATER) && !hex.containsTerrain(Terrains.ICE)) || hex.containsTerrain(Terrains.WOODS) || hex.containsTerrain(Terrains.JUNGLE)) { vPhaseReport.addAll( destroyEntity(entity,"could not land in crash site")); } else { } } else { r = new Report(2110); r.subject = entity.getId(); r.add(newPos.getBoardNum(), true); vPhaseReport.addElement(r); entity.setElevation(entity.calcElevation(game.getBoard().getHex(curPos),game.getBoard().getHex(newPos),curVTOLElevation,step.climbMode())); curPos=newPos; } if(!entity.isDestroyed() && !entity.isDoomed()) { fellDuringMovement= true; //No, but it should work... } break; } } } // check if we've moved into rubble rollTarget = entity.checkRubbleMove(step, curHex, lastPos, curPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, true); } //check for breaking magma crust if(curHex.terrainLevel(Terrains.MAGMA) == 1 && step.getElevation() == 0 && step.getMovementType() != IEntityMovementType.MOVE_JUMP) { int roll = Compute.d6(1); r = new Report(2395); r.addDesc(entity); r.add(roll); r.subject = entity.getId(); vPhaseReport.addElement(r); if(roll == 6) { curHex.removeTerrain(Terrains.MAGMA); curHex.addTerrain(Terrains.getTerrainFactory().createTerrain(Terrains.MAGMA, 2)); sendChangedHex(curPos); for(Enumeration e=game.getEntities(curPos);e.hasMoreElements();) { Entity en = (Entity)e.nextElement(); if(en != entity) doMagmaDamage(en, false); } } } //check for entering liquid magma if(curHex.terrainLevel(Terrains.MAGMA) == 2 && step.getElevation() == 0 && step.getMovementType() != IEntityMovementType.MOVE_JUMP) { doMagmaDamage(entity, false); } // check if we've moved into a swamp rollTarget = entity.checkSwampMove(step, curHex, lastPos, curPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { if (!doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, false)){ entity.setStuck(true); entity.setCanUnstickByJumping(true); r = new Report(2081); r.add(entity.getDisplayName()); r.subject = entity.getId(); vPhaseReport.addElement(r); break; } } // check to see if we are a mech and we've moved OUT of fire IHex lastHex = game.getBoard().getHex(lastPos); if (entity instanceof Mech) { if ( !lastPos.equals(curPos) && (lastHex.containsTerrain(Terrains.FIRE) || lastHex.containsTerrain(Terrains.MAGMA)) && ( step.getMovementType() != IEntityMovementType.MOVE_JUMP // Bug #828741 -- jumping bypasses fire, but not on the first step // getMpUsed -- total MP used to this step // getMp -- MP used in this step // the difference will always be 0 on the "first step" of a jump, // and >0 on a step in the midst of a jump || ( 0 == step.getMpUsed() - step.getMp() ) ) ) { int heat=0; if(lastHex.containsTerrain(Terrains.FIRE)) heat+=2; if(lastHex.terrainLevel(Terrains.MAGMA) == 1) { heat+=2; } else if(lastHex.terrainLevel(Terrains.MAGMA) == 2) { heat+=5; } entity.heatBuildup+=heat; r = new Report(2115); r.subject = entity.getId(); r.addDesc(entity); r.add(heat); vPhaseReport.addElement(r); } } // check to see if we are not a mech and we've moved INTO fire if (!(entity instanceof Mech)) { if ( game.getBoard().getHex(curPos).containsTerrain(Terrains.FIRE) && !lastPos.equals(curPos) && step.getMovementType() != IEntityMovementType.MOVE_JUMP && step.getElevation() <= 1 ) { if(game.getOptions().booleanOption("vehicle_fires") && entity instanceof Tank) { checkForVehicleFire((Tank)entity, false); } else { doFlamingDeath(entity); } } } // check for extreme gravity movement if (!i.hasMoreElements() && !firstStep) { checkExtremeGravityMovement(entity, step, curPos, cachedGravityLimit); } // check for minefields. if ((!lastPos.equals(curPos) && (step.getMovementType() != IEntityMovementType.MOVE_JUMP)) || ((overallMoveType == IEntityMovementType.MOVE_JUMP) && (!i.hasMoreElements()))) { checkVibrabombs(entity, curPos, false, lastPos, curPos); if (game.containsMinefield(curPos)) { Enumeration minefields = game.getMinefields(curPos).elements(); while (minefields.hasMoreElements()) { Minefield mf = (Minefield) minefields.nextElement(); boolean isOnGround = (!i.hasMoreElements()); isOnGround |= (step.getMovementType() != IEntityMovementType.MOVE_JUMP); isOnGround &= step.getElevation() == 0; if (isOnGround) { enterMinefield(entity, mf, curPos, curPos, true); } else if (mf.getType() == Minefield.TYPE_THUNDER_ACTIVE) { enterMinefield(entity, mf, curPos, curPos, true, 2); } } } } // infantry discovers minefields if they end their move // in a minefield. if (!lastPos.equals(curPos) && !i.hasMoreElements() && isInfantry) { if (game.containsMinefield(curPos)) { Player owner = entity.getOwner(); Enumeration minefields = game.getMinefields(curPos).elements(); while (minefields.hasMoreElements()) { Minefield mf = (Minefield) minefields.nextElement(); if (!owner.containsMinefield(mf)) { r = new Report(2120); r.subject = entity.getId(); r.add(entity.getShortName(), true); vPhaseReport.addElement(r); revealMinefield(owner, mf); } } } } // check if we've moved into water rollTarget = entity.checkWaterMove(step, curHex, lastPos, curPos, isPavementStep); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { // Swarmers need special handling. final int swarmerId = entity.getSwarmAttackerId(); boolean swarmerDone = true; Entity swarmer = null; if (Entity.NONE != swarmerId) { swarmer = game.getEntity( swarmerId ); swarmerDone = swarmer.isDone(); } // Now do the skill check. doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, true); // Swarming infantry platoons may drown. if (curHex.terrainLevel(Terrains.WATER) > 1) { drownSwarmer(entity, curPos); } // Do we need to remove a game turn for the swarmer if (!swarmerDone && ( swarmer.isDoomed() || swarmer.isDestroyed() )) { // We have to diddle with the swarmer's // status to get its turn removed. swarmer.setDone( false ); swarmer.setUnloaded( false ); // Dead entities don't take turns. game.removeTurnFor( swarmer ); send( createTurnVectorPacket() ); // Return the original status. swarmer.setDone( true ); swarmer.setUnloaded( true ); } // check for inferno wash-off checkForWashedInfernos(entity, curPos); } // In water, may or may not be a new hex, neccessary to // check during movement, for breach damage, and always // set dry if appropriate //TODO: possibly make the locations local and set later doSetLocationsExposure(entity, curHex, step.getMovementType() == IEntityMovementType.MOVE_JUMP, step.getElevation()); //check for breaking ice by breaking through from below if(prevHex != null && prevStep != null && prevStep.getElevation() < 0 && step.getElevation() == 0 && prevHex.containsTerrain(Terrains.ICE) && prevHex.containsTerrain(Terrains.WATER) && step.getMovementType() != IEntityMovementType.MOVE_JUMP && !(lastPos.equals(curPos))) { r = new Report(2410); r.addDesc(entity); vPhaseReport.add(r); resolveIceBroken(lastPos); } //check for breaking ice by stepping on it if(curHex.containsTerrain(Terrains.ICE) && curHex.containsTerrain(Terrains.WATER) && step.getMovementType() != IEntityMovementType.MOVE_JUMP && !(lastPos.equals(curPos))) { if(step.getElevation() == 0 ) { int roll = Compute.d6(1); r = new Report(2118); r.addDesc(entity); r.add(roll); r.subject = entity.getId(); vPhaseReport.addElement(r); if(roll == 6) { resolveIceBroken(curPos); doEntityFallsInto(entity, lastPos, curPos, entity.getBasePilotingRoll(), false); } } //or intersecting it else if(step.getElevation() + entity.height() == 0) { r = new Report(2410); r.addDesc(entity); vPhaseReport.add(r); resolveIceBroken(curPos); } } // Handle loading units. if ( step.getType() == MovePath.STEP_LOAD ) { // Find the unit being loaded. Entity loaded = null; Enumeration entities = game.getEntities( curPos ); while ( entities.hasMoreElements() ) { // Is the other unit friendly and not the current entity? loaded = (Entity)entities.nextElement(); if ( entity.getOwner() == loaded.getOwner() && !entity.equals(loaded) ) { // The moving unit should be able to load the other // unit and the other should be able to have a turn. if ( !entity.canLoad(loaded) || !loaded.isSelectableThisTurn() ) { // Something is fishy in Denmark. System.err.println( entity.getShortName() + " can not load " + loaded.getShortName() ); loaded = null; } else { // Have the deployed unit load the indicated unit. this.loadUnit( entity, loaded ); // Stop looking. break; } } else { // Nope. Discard it. loaded = null; } } // Handle the next entity in this hex. // We were supposed to find someone to load. if ( loaded == null ) { System.err.println( "Could not find unit for " + entity.getShortName() + " to load in " + curPos ); } } // End STEP_LOAD // Handle unloading units. if ( step.getType() == MovePath.STEP_UNLOAD ) { Targetable unloaded = step.getTarget( game ); if ( !this.unloadUnit( entity, unloaded, curPos, curFacing, step.getElevation() ) ) { System.err.println( "Error! Server was told to unload " + unloaded.getDisplayName() + " from " + entity.getDisplayName() + " into " + curPos.getBoardNum() ); } } // Handle non-infantry moving into a building. int buildingMove = entity.checkMovementInBuilding(step, prevStep, curHex, prevHex); if (buildingMove > 0) { // Get the building being exited. Building bldgExited = null; if((buildingMove & 1) == 1) bldgExited = game.getBoard().getBuildingAt( lastPos ); // Get the building being entered. Building bldgEntered = null; if((buildingMove & 2) == 2) bldgEntered = game.getBoard().getBuildingAt( curPos ); // Get the building being stepped on. Building bldgStepped = null; if((buildingMove & 4) == 4) bldgStepped = game.getBoard().getBuildingAt( curPos ); boolean collapsed = false; //are we passing through a building wall? if(bldgEntered != null || bldgExited != null) { // If we're not leaving a building, just handle the "entered". if ( bldgExited == null) { collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "entering" ); this.addAffectedBldg( bldgEntered, collapsed ); } // If we're moving withing the same building, just handle // the "within". else if ( bldgExited.equals( bldgEntered ) ) { collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "moving in" ); this.addAffectedBldg( bldgEntered, collapsed ); } // If we have different buildings, roll for each. else if ( bldgExited != null && bldgEntered != null ) { collapsed = passBuildingWall( entity, bldgExited, lastPos, curPos, distance, "exiting" ); this.addAffectedBldg( bldgExited, collapsed ); collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "entering" ); this.addAffectedBldg( bldgEntered, collapsed ); } // Otherwise, just handle the "exited". else if (bldgExited != null){ collapsed = passBuildingWall( entity, bldgExited, lastPos, curPos, distance, "exiting" ); this.addAffectedBldg( bldgExited, collapsed ); } } //stepping on roof, no PSR just check for over weight if(bldgStepped != null) { collapsed = checkBuildingCollapseWhileMoving(bldgStepped, entity, curPos); this.addAffectedBldg( bldgStepped, collapsed ); } // Clean up the entity if it has been destroyed. if ( entity.isDoomed() ) { entity.setDestroyed(true); game.moveToGraveyard(entity.getId()); send(createRemoveEntityPacket(entity.getId())); // The entity's movement is completed. return; } // TODO: what if a building collapses into rubble? } // did the entity just fall? if (!wasProne && entity.isProne()) { curFacing = entity.getFacing(); curPos = entity.getPosition(); mpUsed = step.getMpUsed(); fellDuringMovement = true; break; } // dropping prone intentionally? if (step.getType() == MovePath.STEP_GO_PRONE) { mpUsed = step.getMpUsed(); rollTarget = entity.checkDislodgeSwarmers(step); if (rollTarget.getValue() == TargetRoll.CHECK_FALSE) { // Not being swarmed entity.setProne(true); // check to see if we washed off infernos checkForWashedInfernos(entity, curPos); break; } else { // Being swarmed entity.setPosition(curPos); if (doDislodgeSwarmerSkillCheck(entity, rollTarget, curPos)) { // Entity falls curFacing = entity.getFacing(); curPos = entity.getPosition(); fellDuringMovement = true; break; } } } //going hull down if(step.getType() == MovePath.STEP_HULL_DOWN) { mpUsed = step.getMpUsed(); entity.setHullDown(true); } // Track this step's location. movePath.addElement( new UnitLocation( entity.getId(), curPos, curFacing ) ); // update lastPos, prevStep, prevFacing & prevHex lastPos = new Coords(curPos); prevStep = step; /* Bug 754610: Revert fix for bug 702735. if (prevHex != null && !curHex.equals(prevHex)) { */ if (!curHex.equals(prevHex)) { prevFacing = curFacing; } prevHex = curHex; firstStep = false; } // set entity parameters entity.setPosition(curPos); entity.setFacing(curFacing); entity.setSecondaryFacing(curFacing); entity.delta_distance = distance; entity.moved = moveType; entity.mpUsed = mpUsed; if (!sideslipped && !fellDuringMovement) { entity.setElevation(curVTOLElevation); } entity.setClimbMode(md.getFinalClimbMode()); // if we ran with destroyed hip or gyro, we need a psr rollTarget = entity.checkRunningWithDamage(overallMoveType); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } // but the danger isn't over yet! landing from a jump can be risky! if (overallMoveType == IEntityMovementType.MOVE_JUMP && !entity.isMakingDfa()) { final IHex curHex = game.getBoard().getHex(curPos); // check for damaged criticals rollTarget = entity.checkLandingWithDamage(); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } // jumped into water? int waterLevel = curHex.terrainLevel(Terrains.WATER); if(curHex.containsTerrain(Terrains.ICE) && waterLevel > 0) { waterLevel = 0; //check for breaking ice int roll = Compute.d6(1); r = new Report(2122); r.add(entity.getDisplayName(), true); r.add(roll); r.subject = entity.getId(); vPhaseReport.addElement(r); if(roll >= 4) { //oops! resolveIceBroken(curPos); doEntityFallsInto(entity, lastPos, curPos, entity.getBasePilotingRoll(), false); } } rollTarget = entity.checkWaterMove(waterLevel); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } if (waterLevel > 1) { // Any swarming infantry will be destroyed. drownSwarmer(entity, curPos); } //check for building collapse Building bldg = game.getBoard().getBuildingAt(curPos); if(bldg != null) { checkForCollapse( bldg, game.getPositionMap() ); } //check for breaking magma crust if(curHex.terrainLevel(Terrains.MAGMA) == 1) { int roll = Compute.d6(1); r = new Report(2395); r.addDesc(entity); r.add(roll); r.subject = entity.getId(); vPhaseReport.addElement(r); if(roll == 6) { curHex.removeTerrain(Terrains.MAGMA); curHex.addTerrain(Terrains.getTerrainFactory().createTerrain(Terrains.MAGMA, 2)); sendChangedHex(curPos); for(Enumeration e=game.getEntities(curPos);e.hasMoreElements();) { Entity en = (Entity)e.nextElement(); if(en != entity) doMagmaDamage(en, false); } } } //check for entering liquid magma if(curHex.terrainLevel(Terrains.MAGMA) == 2) { doMagmaDamage(entity, false); } // jumped into swamp? maybe stuck! if (curHex.containsTerrain(Terrains.SWAMP) || curHex.containsTerrain(Terrains.MAGMA) || curHex.containsTerrain(Terrains.SNOW) || curHex.containsTerrain(Terrains.MUD) || curHex.containsTerrain(Terrains.TUNDRA)) { if (entity instanceof Mech) { entity.setStuck(true); r = new Report(2121); r.add(entity.getDisplayName(), true); r.subject = entity.getId(); vPhaseReport.addElement(r); } else if (entity instanceof Infantry) { PilotingRollData roll = entity.getBasePilotingRoll(); roll.addModifier(5, "infantry jumping into swamp"); if (!doSkillCheckWhileMoving(entity, curPos, curPos, roll, false)) { entity.setStuck(true); r = new Report(2081); r.add(entity.getDisplayName()); r.subject = entity.getId(); vPhaseReport.addElement(r); } } } // If the entity is being swarmed, jumping may dislodge the fleas. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); final PilotingRollData roll = entity.getBasePilotingRoll(); entity.addPilotingModifierForTerrain(roll); // Add a +4 modifier. roll.addModifier( 4, "dislodge swarming infantry" ); // If the swarmer has Assault claws, give a 1 modifier. // We can stop looking when we find our first match. for ( Enumeration iter = swarmer.getMisc(); iter.hasMoreElements(); ) { Mounted mount = (Mounted) iter.nextElement(); EquipmentType equip = mount.getType(); if ( BattleArmor.ASSAULT_CLAW.equals (equip.getInternalName()) ) { roll.addModifier( 1, "swarmer has assault claws" ); break; } } // okay, print the info r = new Report(2125); r.subject = entity.getId(); r.addDesc(entity); vPhaseReport.addElement(r); // roll final int diceRoll = Compute.d6(2); r = new Report(2130); r.subject = entity.getId(); r.add(roll.getValueAsString()); r.add(roll.getDesc()); r.add(diceRoll); if (diceRoll < roll.getValue()) { r.choose(false); vPhaseReport.addElement(r); } else { // Dislodged swarmers don't get turns. game.removeTurnFor( swarmer ); send( createTurnVectorPacket() ); // Update the report and the swarmer's status. r.choose(true); vPhaseReport.addElement(r); entity.setSwarmAttackerId( Entity.NONE ); swarmer.setSwarmTargetId( Entity.NONE ); // Did the infantry fall into water? if ( curHex.terrainLevel(Terrains.WATER) > 0 ) { // Swarming infantry die. swarmer.setPosition( curPos ); r = new Report(2135); r.subject = entity.getId(); r.indent(); r.addDesc(swarmer); vPhaseReport.addElement(r); vPhaseReport.addAll( destroyEntity(swarmer, "a watery grave", false)); } else { // Swarming infantry take an 11 point hit. // ASSUMPTION : damage should not be doubled. r = new Report(2140); r.subject = entity.getId(); r.indent(); r.addDesc(swarmer); vPhaseReport.addElement(r); vPhaseReport.addAll(damageEntity(swarmer, swarmer.rollHitLocation(ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT), 11)); Report.addNewline(vPhaseReport); swarmer.setPosition( curPos ); } entityUpdate( swarmerId ); } // End successful-PSR } // End try-to-dislodge-swarmers // one more check for inferno wash-off checkForWashedInfernos(entity, curPos); } // End entity-is-jumping // update entity's locations' exposure doSetLocationsExposure(entity, game.getBoard().getHex(curPos), false, entity.getElevation()); // should we give another turn to the entity to keep moving? if (fellDuringMovement && entity.mpUsed < entity.getRunMP() && entity.isSelectableThisTurn() && !entity.isDoomed()) { entity.applyDamage(); entity.setDone(false); GameTurn newTurn = new GameTurn.SpecificEntityTurn(entity.getOwner().getId(), entity.getId()); game.insertNextTurn(newTurn); // brief everybody on the turn update send(createTurnVectorPacket()); // let everyone know about what just happened send(entity.getOwner().getId(), createSpecialReportPacket()); } else { entity.setDone(true); } // If the entity is being swarmed, update the attacker's position. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); swarmer.setPosition( curPos ); // If the hex is on fire, and the swarming infantry is // *not* Battle Armor, it drops off. if ( !(swarmer instanceof BattleArmor) && game.getBoard().getHex(curPos).containsTerrain(Terrains.FIRE) ) { swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); r = new Report(2145); r.subject = entity.getId(); r.indent(); r.add(swarmer.getShortName(), true); vPhaseReport.addElement(r); } entityUpdate( swarmerId ); } // Update the entitiy's position, // unless it is off the game map. if (!game.isOutOfGame(entity)) { entityUpdate( entity.getId(), movePath ); if (entity.isDoomed()) { send(createRemoveEntityPacket(entity.getId(), entity.getRemovalCondition())); } } // if using double blind, update the player on new units he might see if (doBlind()) { send(entity.getOwner().getId(), createFilteredEntitiesPacket(entity.getOwner())); } // if we generated a charge attack, report it now if (charge != null) { send(createAttackPacket(charge, 1)); } }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/393a9905cc0201927e4535bd40befa92f4014c31/Server.java/buggy/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
49,
26140,
12,
1943,
1522,
16,
9933,
743,
3481,
13,
288,
3639,
8706,
436,
31,
3639,
1250,
22423,
3169,
1845,
273,
629,
31,
368,
364,
22944,
1741,
22423,
3169,
1382,
7734,
368,
866,
364,
284,
11182,
310,
3639,
309,
261,
1264,
18,
12298,
12,
7607,
743,
18,
26951,
67,
42,
900,
41,
3719,
288,
5411,
368,
8380,
711,
284,
1259,
326,
324,
4558,
298,
1518,
18,
5411,
436,
273,
394,
8706,
12,
6976,
25,
16,
8706,
18,
14939,
1769,
5411,
436,
18,
1289,
4217,
12,
1096,
1769,
5411,
527,
4820,
12,
86,
1769,
5411,
368,
2585,
326,
2836,
9331,
310,
1342,
275,
6215,
35,
5411,
727,
5589,
1342,
275,
6215,
273,
1522,
18,
588,
8835,
7537,
5621,
5411,
309,
261,
401,
5466,
275,
6215,
18,
291,
1921,
1435,
262,
288,
7734,
727,
13864,
1400,
273,
1342,
275,
6215,
18,
6274,
5621,
7734,
1323,
261,
1400,
18,
5332,
7417,
3471,
1435,
262,
288,
10792,
727,
3887,
1342,
14348,
273,
261,
1943,
13,
1400,
18,
4285,
1046,
5621,
10792,
368,
8380,
711,
284,
1259,
326,
324,
4558,
298,
1518,
18,
10792,
436,
273,
394,
8706,
12,
6734,
20,
16,
8706,
18,
14939,
1769,
10792,
436,
18,
9355,
5621,
10792,
436,
18,
1289,
4217,
12,
5466,
14348,
1769,
10792,
527,
4820,
12,
86,
1769,
10792,
7920,
18,
4479,
1943,
12,
1342,
14348,
18,
26321,
9334,
18701,
29202,
24543,
8545,
18,
22122,
67,
706,
67,
10238,
862,
789,
11272,
10792,
1366,
12,
752,
3288,
1943,
6667,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
49,
26140,
12,
1943,
1522,
16,
9933,
743,
3481,
13,
288,
3639,
8706,
436,
31,
3639,
1250,
22423,
3169,
1845,
273,
629,
31,
368,
364,
22944,
1741,
22423,
3169,
1382,
7734,
368,
866,
364,
284,
11182,
310,
3639,
309,
261,
1264,
18,
12298,
12,
7607,
743,
18,
26951,
67,
42,
900,
41,
3719,
288,
5411,
368,
8380,
711,
284,
1259,
326,
324,
4558,
298,
1518,
18,
5411,
436,
273,
394,
8706,
12,
6976,
25,
16,
8706,
18,
14939,
1769,
5411,
436,
18,
1289,
4217,
12,
1096,
1769,
5411,
527,
4820,
12,
86,
1769,
5411,
368,
2585,
326,
2836,
9331,
310,
1342,
275,
6215,
35,
5411,
727,
5589,
1342,
275,
6215,
273,
1522,
18,
588,
8835,
2
] |
public void edit (String name, String address, String phone, String mobile, String homepage, String email, IWorkLocation workLocation, List<IExternalPerson> allExternalPersons) { if (!externalPersonsAlreadyExists(name, address, workLocation, allExternalPersons)) { this.getPerson().edit(name, address, phone, mobile, homepage, email); this.setWorkLocation(workLocation); } else { throw new DomainException("error.exception.externalPerson.existingExternalPerson"); } }
|
public void edit(String name, String address, String phone, String mobile, String homepage, String email, IWorkLocation workLocation, List<IExternalPerson> allExternalPersons) { if (!externalPersonsAlreadyExists(name, address, workLocation, allExternalPersons)) { this.getPerson().edit(name, address, phone, mobile, homepage, email); this.setWorkLocation(workLocation); } else { throw new DomainException("error.exception.externalPerson.existingExternalPerson"); } }
|
public void edit (String name, String address, String phone, String mobile, String homepage, String email, IWorkLocation workLocation, List<IExternalPerson> allExternalPersons) { if (!externalPersonsAlreadyExists(name, address, workLocation, allExternalPersons)) { this.getPerson().edit(name, address, phone, mobile, homepage, email); this.setWorkLocation(workLocation); } else { throw new DomainException("error.exception.externalPerson.existingExternalPerson"); } }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/73c8a140638e5945088c0f8db0d9349bc3baf30f/ExternalPerson.java/clean/src/net/sourceforge/fenixedu/domain/ExternalPerson.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3874,
261,
780,
508,
16,
514,
1758,
16,
514,
7353,
16,
514,
13411,
16,
514,
30815,
16,
514,
2699,
16,
467,
2421,
2735,
1440,
2735,
16,
987,
32,
45,
6841,
8346,
34,
777,
6841,
8346,
87,
13,
288,
202,
202,
430,
16051,
9375,
8346,
87,
16686,
12,
529,
16,
1758,
16,
1440,
2735,
16,
777,
6841,
8346,
87,
3719,
288,
1082,
202,
2211,
18,
588,
8346,
7675,
4619,
12,
529,
16,
1758,
16,
7353,
16,
13411,
16,
30815,
16,
2699,
1769,
1082,
202,
2211,
18,
542,
2421,
2735,
12,
1252,
2735,
1769,
202,
202,
97,
469,
288,
1082,
202,
12849,
394,
24569,
2932,
1636,
18,
4064,
18,
9375,
8346,
18,
11711,
6841,
8346,
8863,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3874,
261,
780,
508,
16,
514,
1758,
16,
514,
7353,
16,
514,
13411,
16,
514,
30815,
16,
514,
2699,
16,
467,
2421,
2735,
1440,
2735,
16,
987,
32,
45,
6841,
8346,
34,
777,
6841,
8346,
87,
13,
288,
202,
202,
430,
16051,
9375,
8346,
87,
16686,
12,
529,
16,
1758,
16,
1440,
2735,
16,
777,
6841,
8346,
87,
3719,
288,
1082,
202,
2211,
18,
588,
8346,
7675,
4619,
12,
529,
16,
1758,
16,
7353,
16,
13411,
16,
30815,
16,
2699,
1769,
1082,
202,
2211,
18,
542,
2421,
2735,
12,
1252,
2735,
1769,
202,
202,
97,
469,
288,
1082,
202,
12849,
394,
24569,
2932,
1636,
18,
4064,
18,
9375,
8346,
18,
11711,
6841,
8346,
8863,
202,
2
] |
m_installer.updatePlPgsql(); m_installer.addStoredProcedures();
|
public void testTriggerSetSnmpInterfaceIdInIpInterfaceNullIfIndexNoSnmpInterface() throws Exception { if (!isDBTestEnabled()) { return; } m_installer.createSequences(); m_installer.createTables(); m_installer.updatePlPgsql(); m_installer.addStoredProcedures(); executeSQL("INSERT INTO node (nodeId, nodeCreateTime) VALUES ( 1, now() )"); executeSQL("INSERT INTO ipInterface (nodeId, ipAddr, ifIndex) VALUES ( 1, '1.2.3.4', null )"); Statement st = m_installer.m_dbconnection.createStatement(); ResultSet rs = st.executeQuery("SELECT id, snmpInterfaceID from ipInterface"); assertTrue("could not advance to read first row in ResultSet", rs.next()); assertEquals("ipInterface id", 1, rs.getInt(1)); int id = rs.getInt(2); assertTrue("ipInterface snmpInterfaceId to be null (was " + id + ")", rs.wasNull()); assertFalse("ResultSet contains more than one row", rs.next()); }
|
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/9c0a59382d378a750edf84524762ab71e335b4b3/InstallerDBTest.java/buggy/opennms-install/src/test/java/org/opennms/install/InstallerDBTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6518,
694,
10461,
1291,
1358,
548,
382,
5273,
1358,
2041,
2047,
1016,
2279,
10461,
1291,
1358,
1435,
1216,
1185,
288,
3639,
309,
16051,
291,
2290,
4709,
1526,
10756,
288,
5411,
327,
31,
3639,
289,
3639,
312,
67,
20163,
18,
2640,
21710,
5621,
3639,
312,
67,
20163,
18,
2640,
6905,
5621,
3639,
312,
67,
20163,
18,
2725,
1749,
52,
30175,
5621,
7734,
312,
67,
20163,
18,
1289,
18005,
626,
23382,
5621,
7734,
1836,
3997,
2932,
11356,
12421,
756,
261,
2159,
548,
16,
756,
1684,
950,
13,
13477,
261,
404,
16,
2037,
1435,
262,
8863,
3639,
1836,
3997,
2932,
11356,
12421,
2359,
1358,
261,
2159,
548,
16,
2359,
3178,
16,
309,
1016,
13,
13477,
261,
404,
16,
296,
21,
18,
22,
18,
23,
18,
24,
2187,
446,
262,
8863,
3639,
8056,
384,
273,
312,
67,
20163,
18,
81,
67,
1966,
4071,
18,
2640,
3406,
5621,
3639,
10842,
3597,
273,
384,
18,
8837,
1138,
2932,
4803,
612,
16,
15366,
1358,
734,
628,
2359,
1358,
8863,
3639,
1815,
5510,
2932,
15195,
486,
8312,
358,
855,
1122,
1027,
316,
10842,
3113,
3597,
18,
4285,
10663,
3639,
1815,
8867,
2932,
625,
1358,
612,
3113,
404,
16,
3597,
18,
588,
1702,
12,
21,
10019,
7734,
509,
612,
273,
3597,
18,
588,
1702,
12,
22,
1769,
3639,
1815,
5510,
2932,
625,
1358,
15366,
1358,
548,
358,
506,
446,
261,
17416,
315,
397,
612,
397,
7310,
16,
3597,
18,
17416,
2041,
10663,
3639,
1815,
8381,
2932,
13198,
1914,
1898,
2353,
1245,
1027,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6518,
694,
10461,
1291,
1358,
548,
382,
5273,
1358,
2041,
2047,
1016,
2279,
10461,
1291,
1358,
1435,
1216,
1185,
288,
3639,
309,
16051,
291,
2290,
4709,
1526,
10756,
288,
5411,
327,
31,
3639,
289,
3639,
312,
67,
20163,
18,
2640,
21710,
5621,
3639,
312,
67,
20163,
18,
2640,
6905,
5621,
3639,
312,
67,
20163,
18,
2725,
1749,
52,
30175,
5621,
7734,
312,
67,
20163,
18,
1289,
18005,
626,
23382,
5621,
7734,
1836,
3997,
2932,
11356,
12421,
756,
261,
2159,
548,
16,
756,
1684,
950,
13,
13477,
261,
404,
16,
2037,
1435,
262,
8863,
3639,
1836,
3997,
2932,
11356,
12421,
2359,
1358,
261,
2159,
548,
16,
2359,
3178,
16,
309,
1016,
13,
13477,
261,
404,
16,
2
] |
|
!getAnnotation(superclass,TAG_CT_IGNORESUPER,false)) {
|
!getAnnotation(clazz,TAG_CT_IGNORESUPER,false)) {
|
private BindingType createBindingTypeFor(JClass clazz) { // create the schema type TopLevelComplexType xsType = mSchema.addNewComplexType(); String tns = getTargetNamespace(clazz); String xsdName = getAnnotation(clazz,TAG_CT_TYPENAME,clazz.getSimpleName()); QName qname = new QName(tns,xsdName); xsType.setName(xsdName); // deal with inheritance - see if it extends anything JClass superclass = clazz.getSuperclass(); if (superclass != null && !superclass.isObject() && !getAnnotation(superclass,TAG_CT_IGNORESUPER,false)) { // FIXME we're ignoring interfaces at the moment BindingType superBindingType = getBindingTypeFor(superclass); ComplexContentDocument.ComplexContent ccd = xsType.addNewComplexContent(); ExtensionType et = ccd.addNewExtension(); et.setBase(superBindingType.getName().getXmlName().getQName()); } // create a binding type BindingTypeName btname = BindingTypeName.forPair(getJavaName(clazz), XmlTypeName.forTypeNamed(qname)); ByNameBean bindType = new ByNameBean(btname); mBindingFile.addBindingType(bindType,true,true); if (clazz.isPrimitive()) { // it's good to have registerd the dummy type, but don't go further logError("Unexpected simple type",clazz); return bindType; } String rootName = getAnnotation(clazz,TAG_CT_ROOT,null); if (rootName != null) { QName rootQName = new QName(tns, rootName); BindingTypeName docBtName = BindingTypeName.forPair(getJavaName(clazz), XmlTypeName.forGlobalName(XmlTypeName.ELEMENT, rootQName)); SimpleDocumentBinding sdb = new SimpleDocumentBinding(docBtName); sdb.setTypeOfElement(btname.getXmlName()); mBindingFile.addBindingType(sdb,true,true); } // run through the class' properties to populate the binding and xsdtypes SchemaPropertyFacade facade = new SchemaPropertyFacade(xsType,bindType,tns); bindProperties(clazz.getProperties(),facade); facade.finish(); // check to see if they want to create a root elements from this type JAnnotation[] anns = clazz.getAnnotations(TAG_CT_ROOT); for(int i=0; i<anns.length; i++) { TopLevelElement root = mSchema.addNewElement(); root.setName(makeNcNameSafe(anns[i].getStringValue())); root.setType(qname); // FIXME still not entirely clear to me what we should do about // the binding file here } return bindType; }
|
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/812aa459d7a7ff82b32d9bbae5fbc7f77005c428/Java2Schema.java/buggy/v2/src/binding/org/apache/xmlbeans/impl/binding/compile/Java2Schema.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
15689,
559,
752,
5250,
559,
1290,
12,
46,
797,
4003,
13,
288,
565,
368,
752,
326,
1963,
618,
565,
7202,
2355,
12795,
559,
9280,
559,
273,
312,
3078,
18,
1289,
1908,
12795,
559,
5621,
565,
514,
268,
2387,
273,
8571,
3402,
12,
830,
3638,
1769,
565,
514,
14802,
461,
273,
9887,
12,
830,
3638,
16,
7927,
67,
1268,
67,
5538,
52,
21150,
16,
830,
3638,
18,
588,
5784,
461,
10663,
565,
16723,
12621,
273,
394,
16723,
12,
88,
2387,
16,
19144,
461,
1769,
565,
9280,
559,
18,
542,
461,
12,
19144,
461,
1769,
565,
368,
10490,
598,
16334,
300,
2621,
309,
518,
3231,
6967,
565,
804,
797,
12098,
273,
4003,
18,
588,
28471,
5621,
565,
309,
261,
9565,
1106,
480,
446,
597,
401,
9565,
1106,
18,
291,
921,
1435,
597,
5411,
401,
588,
3257,
12,
830,
3638,
16,
7927,
67,
1268,
67,
3047,
3417,
7031,
3079,
654,
16,
5743,
3719,
288,
1377,
368,
9852,
732,
4565,
14398,
7349,
622,
326,
10382,
1377,
15689,
559,
2240,
5250,
559,
273,
29471,
559,
1290,
12,
9565,
1106,
1769,
1377,
16060,
1350,
2519,
18,
12795,
1350,
276,
4315,
273,
9280,
559,
18,
1289,
1908,
12795,
1350,
5621,
1377,
10021,
559,
3393,
273,
276,
4315,
18,
1289,
1908,
3625,
5621,
1377,
3393,
18,
542,
2171,
12,
9565,
5250,
559,
18,
17994,
7675,
588,
4432,
461,
7675,
588,
13688,
10663,
565,
289,
565,
368,
752,
279,
5085,
618,
565,
15689,
7947,
10921,
529,
273,
15689,
7947,
18,
1884,
4154,
12,
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,
282,
3238,
15689,
559,
752,
5250,
559,
1290,
12,
46,
797,
4003,
13,
288,
565,
368,
752,
326,
1963,
618,
565,
7202,
2355,
12795,
559,
9280,
559,
273,
312,
3078,
18,
1289,
1908,
12795,
559,
5621,
565,
514,
268,
2387,
273,
8571,
3402,
12,
830,
3638,
1769,
565,
514,
14802,
461,
273,
9887,
12,
830,
3638,
16,
7927,
67,
1268,
67,
5538,
52,
21150,
16,
830,
3638,
18,
588,
5784,
461,
10663,
565,
16723,
12621,
273,
394,
16723,
12,
88,
2387,
16,
19144,
461,
1769,
565,
9280,
559,
18,
542,
461,
12,
19144,
461,
1769,
565,
368,
10490,
598,
16334,
300,
2621,
309,
518,
3231,
6967,
565,
804,
797,
12098,
273,
4003,
18,
588,
28471,
5621,
565,
309,
261,
2
] |
s = parser.pack_replace(s);
|
public void setPackage( String s ) { s = parser.pack_replace(s); if( pack_name.length() > 0 ) pack_name = new String( s + "." + pack_name ); else pack_name = s; }
|
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/83d9303dfdcf170412cd25adfc2155d642fcaab4/AliasTypeSpec.java/clean/src/org/jacorb/idl/AliasTypeSpec.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2261,
12,
514,
272,
262,
565,
288,
3639,
272,
273,
2082,
18,
2920,
67,
2079,
12,
87,
1769,
202,
430,
12,
2298,
67,
529,
18,
2469,
1435,
405,
374,
262,
202,
565,
2298,
67,
529,
273,
394,
514,
12,
272,
397,
4585,
397,
2298,
67,
529,
11272,
202,
12107,
202,
565,
2298,
67,
529,
273,
272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2261,
12,
514,
272,
262,
565,
288,
3639,
272,
273,
2082,
18,
2920,
67,
2079,
12,
87,
1769,
202,
430,
12,
2298,
67,
529,
18,
2469,
1435,
405,
374,
262,
202,
565,
2298,
67,
529,
273,
394,
514,
12,
272,
397,
4585,
397,
2298,
67,
529,
11272,
202,
12107,
202,
565,
2298,
67,
529,
273,
272,
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
] |
|
Point location = tabFolder.getDisplay().map(tabFolder, null,
|
Point location = tabFolder.getControl().getDisplay().map(tabFolder.getControl(), null,
|
public EditorPresentation(Composite parent, IStackPresentationSite newSite) { super(new CTabFolder(parent, SWT.BORDER), newSite); final CTabFolder tabFolder = getTabFolder(); tabFolder.addCTabFolder2Listener(showListListener); preferenceStore.addPropertyChangeListener(propertyChangeListener); int tabLocation = preferenceStore .getInt(IPreferenceConstants.EDITOR_TAB_POSITION); setTabPosition(tabLocation); tabFolder.setSingleTab(!preferenceStore .getBoolean(IPreferenceConstants.SHOW_MULTIPLE_EDITOR_TABS)); setTabStyle(preferenceStore .getBoolean(IPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS)); // do not support close box on unselected tabs. tabFolder.setUnselectedCloseVisible(true); // do not support icons in unselected tabs. tabFolder.setUnselectedImageVisible(true); //tabFolder.setBorderVisible(true); // set basic colors ColorSchemeService.setTabAttributes(this, tabFolder); updateGradient(); final Shell shell = tabFolder.getShell(); IHandler openEditorDropDownHandler = new AbstractHandler() { public Object execute(Map parameterValuesByName) throws ExecutionException { Rectangle clientArea = tabFolder.getClientArea(); Point location = tabFolder.getDisplay().map(tabFolder, null, clientArea.x, clientArea.y); showList(shell, location.x, location.y); return null; } }; openEditorDropDownHandlerSubmission = new HandlerSubmission(null, shell, null, "org.eclipse.ui.window.openEditorDropDown", //$NON-NLS-1$ openEditorDropDownHandler, Priority.MEDIUM); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/db95d896a9728c87e103baad4b7543446b1ff52f/EditorPresentation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/EditorPresentation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
18451,
6351,
367,
12,
9400,
982,
16,
467,
2624,
6351,
367,
4956,
394,
4956,
13,
288,
3639,
2240,
12,
2704,
385,
5661,
3899,
12,
2938,
16,
348,
8588,
18,
38,
7954,
3631,
394,
4956,
1769,
3639,
727,
385,
5661,
3899,
3246,
3899,
273,
3181,
378,
3899,
5621,
3639,
3246,
3899,
18,
1289,
1268,
378,
3899,
22,
2223,
12,
4500,
682,
2223,
1769,
3639,
11555,
2257,
18,
1289,
1396,
15744,
12,
4468,
15744,
1769,
3639,
509,
3246,
2735,
273,
11555,
2257,
7734,
263,
588,
1702,
12,
45,
9624,
2918,
18,
13208,
67,
28899,
67,
15258,
1769,
3639,
444,
5661,
2555,
12,
7032,
2735,
1769,
3639,
3246,
3899,
18,
542,
5281,
5661,
12,
5,
19141,
2257,
7734,
263,
588,
5507,
12,
45,
9624,
2918,
18,
16677,
67,
24683,
900,
67,
13208,
67,
28899,
55,
10019,
3639,
444,
5661,
2885,
12,
19141,
2257,
7734,
263,
588,
5507,
12,
45,
9624,
2918,
18,
16677,
67,
4349,
1880,
30525,
67,
15066,
67,
28899,
55,
10019,
3639,
368,
741,
486,
2865,
1746,
3919,
603,
640,
8109,
10920,
18,
3639,
3246,
3899,
18,
542,
984,
8109,
4605,
6207,
12,
3767,
1769,
3639,
368,
741,
486,
2865,
17455,
316,
640,
8109,
10920,
18,
3639,
3246,
3899,
18,
542,
984,
8109,
2040,
6207,
12,
3767,
1769,
3639,
368,
7032,
3899,
18,
542,
8107,
6207,
12,
3767,
1769,
3639,
368,
444,
5337,
5740,
3639,
5563,
9321,
1179,
18,
542,
5661,
2498,
12,
2211,
16,
3246,
3899,
1769,
3639,
1089,
15651,
5621,
3639,
727,
19433,
5972,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18451,
6351,
367,
12,
9400,
982,
16,
467,
2624,
6351,
367,
4956,
394,
4956,
13,
288,
3639,
2240,
12,
2704,
385,
5661,
3899,
12,
2938,
16,
348,
8588,
18,
38,
7954,
3631,
394,
4956,
1769,
3639,
727,
385,
5661,
3899,
3246,
3899,
273,
3181,
378,
3899,
5621,
3639,
3246,
3899,
18,
1289,
1268,
378,
3899,
22,
2223,
12,
4500,
682,
2223,
1769,
3639,
11555,
2257,
18,
1289,
1396,
15744,
12,
4468,
15744,
1769,
3639,
509,
3246,
2735,
273,
11555,
2257,
7734,
263,
588,
1702,
12,
45,
9624,
2918,
18,
13208,
67,
28899,
67,
15258,
1769,
3639,
444,
5661,
2555,
12,
7032,
2735,
1769,
3639,
3246,
3899,
18,
542,
5281,
5661,
12,
5,
19141,
2257,
7734,
263,
588,
2
] |
flush(); }
|
public void complete() throws IOException { if (_state==STATE_END) return; super.complete(); if (_state<STATE_FLUSHING) { _state=STATE_FLUSHING; _needEOC=true; } flush(); }
|
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/b19f540b47523f4ad2c831b94ae789899c86bb18/Ajp13Generator.java/clean/trunk/extras/ajp/src/main/java/org/mortbay/jetty/ajp/Ajp13Generator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3912,
1435,
1216,
1860,
565,
288,
3639,
309,
261,
67,
2019,
631,
7998,
67,
4415,
13,
5411,
327,
31,
3639,
2240,
18,
6226,
5621,
3639,
309,
261,
67,
2019,
32,
7998,
67,
42,
31959,
1360,
13,
3639,
288,
5411,
389,
2019,
33,
7998,
67,
42,
31959,
1360,
31,
5411,
389,
14891,
41,
10809,
33,
3767,
31,
3639,
289,
3639,
3663,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3912,
1435,
1216,
1860,
565,
288,
3639,
309,
261,
67,
2019,
631,
7998,
67,
4415,
13,
5411,
327,
31,
3639,
2240,
18,
6226,
5621,
3639,
309,
261,
67,
2019,
32,
7998,
67,
42,
31959,
1360,
13,
3639,
288,
5411,
389,
2019,
33,
7998,
67,
42,
31959,
1360,
31,
5411,
389,
14891,
41,
10809,
33,
3767,
31,
3639,
289,
3639,
3663,
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
] |
|
public List authorizeDocids(String connectorName, List docidList,
|
public Set authorizeDocids(String connectorName, List docidList,
|
public List authorizeDocids(String connectorName, List docidList, String username) { throw new UnsupportedOperationException(); }
|
51978 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51978/c23ac3da8f4474b8be2ced546138732f98b9c06d/ProductionManager.java/clean/projects/connector-manager/source/java/com/google/enterprise/connector/manager/ProductionManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1000,
12229,
1759,
2232,
12,
780,
8703,
461,
16,
987,
997,
350,
682,
16,
1377,
514,
2718,
13,
288,
565,
604,
394,
13172,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1000,
12229,
1759,
2232,
12,
780,
8703,
461,
16,
987,
997,
350,
682,
16,
1377,
514,
2718,
13,
288,
565,
604,
394,
13172,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case 471: { Name ExpressionName = (Name) getRhsSym(1); setResult(ExpressionName.toExpr()); break; }
|
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 99: MethodDeclaration ::= MethodHeader MethodBody // case 99: { //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodHeader = (MethodDecl) getRhsSym(1); //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block MethodBody = (Block) getRhsSym(2); //#line 669 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" JPGPosition old_pos = (JPGPosition) MethodHeader.position(); setResult(MethodHeader.body(MethodBody) .position(pos(old_pos.getLeftIToken().getTokenIndex(), getRightSpan()))); break; } // // Rule 101: ResultType ::= void // case 101: { //#line 680 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 102: FormalParameterList ::= LastFormalParameter // case 102: { //#line 700 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 702 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 103: FormalParameterList ::= FormalParameters , LastFormalParameter // case 103: { //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 709 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 104: FormalParameters ::= FormalParameter // case 104: { //#line 714 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 716 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 105: FormalParameters ::= FormalParameters , FormalParameter // case 105: { //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 723 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 106: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 106: { //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 108: VariableModifiers ::= VariableModifiers VariableModifier // case 108: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 109: VariableModifier ::= final // case 109: { //#line 746 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 110: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 110: { //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 754 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 112: MethodModifiers ::= MethodModifiers MethodModifier // case 112: { //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 113: MethodModifier ::= public // case 113: { //#line 776 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 114: MethodModifier ::= protected // case 114: { //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 115: MethodModifier ::= private // case 115: { //#line 786 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 116: MethodModifier ::= abstract // case 116: { //#line 791 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 117: MethodModifier ::= static // case 117: { //#line 796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 118: MethodModifier ::= final // case 118: { //#line 801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 119: MethodModifier ::= native // case 119: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 120: MethodModifier ::= strictfp // case 120: { //#line 816 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 121: Throws ::= throws ExceptionTypeList // case 121: { //#line 820 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 822 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 122: ExceptionTypeList ::= ExceptionType // case 122: { //#line 826 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 828 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 123: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 123: { //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 126: MethodBody ::= ; // case 126: setResult(null); break; // // Rule 128: StaticInitializer ::= static Block // case 128: { //#line 855 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 857 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 129: SimpleTypeName ::= identifier // case 129: { //#line 872 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 131: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 131: { //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 881 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 132: ConstructorModifier ::= public // case 132: { //#line 889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 133: ConstructorModifier ::= protected // case 133: { //#line 894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 134: ConstructorModifier ::= private // case 134: { //#line 899 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 135: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 135: { //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; if (ExplicitConstructorInvocationopt == null) l = BlockStatementsopt; else { l = new TypedList(new LinkedList(), Stmt.class, false); l.add(ExplicitConstructorInvocationopt); l.addAll(BlockStatementsopt); } setResult(nf.Block(pos(), l)); break; } // // Rule 136: Arguments ::= ( ArgumentListopt ) // case 136: { //#line 936 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 938 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 139: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 139: { //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 140: InterfaceModifier ::= public // case 140: { //#line 964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 141: InterfaceModifier ::= protected // case 141: { //#line 969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 142: InterfaceModifier ::= private // case 142: { //#line 974 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 143: InterfaceModifier ::= abstract // case 143: { //#line 979 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 144: InterfaceModifier ::= static // case 144: { //#line 984 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 145: InterfaceModifier ::= strictfp // case 145: { //#line 989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 146: ExtendsInterfaces ::= extends InterfaceType // case 146: { //#line 993 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 995 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 147: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 147: { //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 148: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 148: { //#line 1012 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1014 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 150: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 150: { //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 152: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= ClassDeclaration // case 153: { //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1036 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 154: { //#line 1041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 155: InterfaceMemberDeclaration ::= ; // case 155: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 156: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 156: { //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1056 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 158: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 158: { //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1076 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 159: ConstantModifier ::= public // case 159: { //#line 1084 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 160: ConstantModifier ::= static // case 160: { //#line 1089 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 161: ConstantModifier ::= final // case 161: { //#line 1094 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 163: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 163: { //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1103 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 164: AbstractMethodModifier ::= public // case 164: { //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 165: AbstractMethodModifier ::= abstract // case 165: { //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 166: SimpleName ::= identifier // case 166: { //#line 1172 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 167: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 167: { //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1203 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 168: VariableInitializers ::= VariableInitializer // case 168: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 169: VariableInitializers ::= VariableInitializers , VariableInitializer // case 169: { //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 170: Block ::= { BlockStatementsopt } // case 170: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 171: BlockStatements ::= BlockStatement // case 171: { //#line 1243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1245 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 172: BlockStatements ::= BlockStatements BlockStatement // case 172: { //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1252 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 174: BlockStatement ::= ClassDeclaration // case 174: { //#line 1258 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 175: BlockStatement ::= Statement // case 175: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 177: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 177: { //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 201: IfThenStatement ::= if ( Expression ) Statement // case 201: { //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 202: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 202: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1346 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 203: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 203: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 204: EmptyStatement ::= ; // case 204: { //#line 1358 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 205: LabeledStatement ::= identifier : Statement // case 205: { //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1364 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 206: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 206: { //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 207: ExpressionStatement ::= StatementExpression ; // case 207: { //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1375 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 215: AssertStatement ::= assert Expression ; // case 215: { //#line 1396 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1398 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 216: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 216: { //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 217: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 217: { //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1409 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 218: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 218: { //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 220: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 220: { //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 221: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 221: { //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1430 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabel // case 222: { //#line 1437 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 223: SwitchLabels ::= SwitchLabels SwitchLabel // case 223: { //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1446 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 224: SwitchLabel ::= case ConstantExpression : // case 224: { //#line 1451 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1453 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 225: SwitchLabel ::= default : // case 225: { //#line 1460 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 226: WhileStatement ::= while ( Expression ) Statement // case 226: { //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1469 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 227: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 227: { //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1475 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 228: DoStatement ::= do Statement while ( Expression ) ; // case 228: { //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1481 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 231: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 231: { //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 232: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 232: { //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1496 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 234: ForInit ::= LocalVariableDeclaration // case 234: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1503 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpression // case 236: { //#line 1511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 237: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 237: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 238: BreakStatement ::= break identifieropt ; // case 238: { //#line 1528 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1530 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 239: ContinueStatement ::= continue identifieropt ; // case 239: { //#line 1536 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1538 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 240: ReturnStatement ::= return Expressionopt ; // case 240: { //#line 1544 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1546 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 241: ThrowStatement ::= throw Expression ; // case 241: { //#line 1550 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1552 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 242: TryStatement ::= try Block Catches // case 242: { //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1564 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 243: TryStatement ::= try Block Catchesopt Finally // case 243: { //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1569 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 244: Catches ::= CatchClause // case 244: { //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1575 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 245: Catches ::= Catches CatchClause // case 245: { //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1582 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 246: CatchClause ::= catch ( FormalParameter ) Block // case 246: { //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1589 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 247: Finally ::= finally Block // case 247: { //#line 1593 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 251: PrimaryNoNewArray ::= Type . class // case 251: { //#line 1613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 252: PrimaryNoNewArray ::= void . class // case 252: { //#line 1634 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 253: PrimaryNoNewArray ::= this // case 253: { //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 254: PrimaryNoNewArray ::= ClassName . this // case 254: { //#line 1643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1645 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 255: PrimaryNoNewArray ::= ( Expression ) // case 255: { //#line 1648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1650 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 260: Literal ::= IntegerLiteral$IntegerLiteral // case 260: { //#line 1658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1660 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 261: Literal ::= LongLiteral$LongLiteral // case 261: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 262: Literal ::= FloatingPointLiteral$FloatLiteral // case 262: { //#line 1670 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1672 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 263: Literal ::= DoubleLiteral$DoubleLiteral // case 263: { //#line 1676 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1678 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 264: Literal ::= BooleanLiteral // case 264: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 265: Literal ::= CharacterLiteral$CharacterLiteral // case 265: { //#line 1687 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1689 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 266: Literal ::= StringLiteral$str // case 266: { //#line 1693 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1695 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 267: Literal ::= null // case 267: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 268: BooleanLiteral ::= true$trueLiteral // case 268: { //#line 1705 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: BooleanLiteral ::= false$falseLiteral // case 269: { //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1712 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 270: ArgumentList ::= Expression // case 270: { //#line 1725 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1727 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 271: ArgumentList ::= ArgumentList , Expression // case 271: { //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 272: DimExprs ::= DimExpr // case 272: { //#line 1768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1770 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 273: DimExprs ::= DimExprs DimExpr // case 273: { //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1777 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 274: DimExpr ::= [ Expression ] // case 274: { //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1784 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 275: Dims ::= [ ] // case 275: { //#line 1790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 276: Dims ::= Dims [ ] // case 276: { //#line 1793 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 277: FieldAccess ::= Primary . identifier // case 277: { //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= super . identifier // case 278: { //#line 1804 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1806 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 279: FieldAccess ::= ClassName . super$sup . identifier // case 279: { //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 280: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 280: { //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1817 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 282: PostfixExpression ::= ExpressionName // case 282: { //#line 1840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 285: PostIncrementExpression ::= PostfixExpression ++ // case 285: { //#line 1848 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 286: PostDecrementExpression ::= PostfixExpression -- // case 286: { //#line 1854 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 289: UnaryExpression ::= + UnaryExpression // case 289: { //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1864 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 290: UnaryExpression ::= - UnaryExpression // case 290: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 292: PreIncrementExpression ::= ++ UnaryExpression // case 292: { //#line 1874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1876 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 293: PreDecrementExpression ::= -- UnaryExpression // case 293: { //#line 1880 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 295: { //#line 1887 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 296: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 296: { //#line 1892 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 299: { //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1908 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 300: { //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 301: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 301: { //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1918 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 303: { //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1925 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 304: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 304: { //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1930 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 306: { //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1937 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 307: { //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1942 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 308: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 308: { //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1948 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression < ShiftExpression // case 310: { //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression > ShiftExpression // case 311: { //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1961 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 312: { //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1966 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 313: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 313: { //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1971 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression == RelationalExpression // case 315: { //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1987 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 316: EqualityExpression ::= EqualityExpression != RelationalExpression // case 316: { //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1992 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 318: AndExpression ::= AndExpression & EqualityExpression // case 318: { //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1999 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 320: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 320: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2006 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 322: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 322: { //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2013 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 324: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 324: { //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2020 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 326: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 326: { //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 328: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 328: { //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 331: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 331: { //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 332: LeftHandSide ::= ExpressionName // case 332: { //#line 2047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2049 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 335: AssignmentOperator ::= = // case 335: { //#line 2057 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 336: AssignmentOperator ::= *= // case 336: { //#line 2062 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= /= // case 337: { //#line 2067 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= %= // case 338: { //#line 2072 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= += // case 339: { //#line 2077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= -= // case 340: { //#line 2082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= <<= // case 341: { //#line 2087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > = // case 342: { //#line 2092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= > > > = // case 343: { //#line 2098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= &= // case 344: { //#line 2104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= ^= // case 345: { //#line 2109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 346: AssignmentOperator ::= |= // case 346: { //#line 2114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 349: Dimsopt ::= $Empty // case 349: { //#line 2127 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 351: Catchesopt ::= $Empty // case 351: { //#line 2134 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 353: identifieropt ::= $Empty // case 353: setResult(null); break; // // Rule 354: identifieropt ::= identifier // case 354: { //#line 2141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2143 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 355: ForUpdateopt ::= $Empty // case 355: { //#line 2149 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 357: Expressionopt ::= $Empty // case 357: setResult(null); break; // // Rule 359: ForInitopt ::= $Empty // case 359: { //#line 2160 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 361: SwitchLabelsopt ::= $Empty // case 361: { //#line 2167 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 363: SwitchBlockStatementGroupsopt ::= $Empty // case 363: { //#line 2174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 365: VariableModifiersopt ::= $Empty // case 365: { //#line 2181 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 367: VariableInitializersopt ::= $Empty // case 367: setResult(null); break; // // Rule 369: AbstractMethodModifiersopt ::= $Empty // case 369: { //#line 2211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 371: ConstantModifiersopt ::= $Empty // case 371: { //#line 2218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 373: InterfaceMemberDeclarationsopt ::= $Empty // case 373: { //#line 2225 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 375: ExtendsInterfacesopt ::= $Empty // case 375: { //#line 2232 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 377: InterfaceModifiersopt ::= $Empty // case 377: { //#line 2239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 379: ClassBodyopt ::= $Empty // case 379: setResult(null); break; // // Rule 381: Argumentsopt ::= $Empty // case 381: setResult(null); break; // // Rule 382: Argumentsopt ::= Arguments // case 382: throw new Error("No action specified for rule " + 382); // // Rule 383: ,opt ::= $Empty // case 383: setResult(null); break; // // Rule 385: ArgumentListopt ::= $Empty // case 385: { //#line 2269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 387: BlockStatementsopt ::= $Empty // case 387: { //#line 2276 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 389: ExplicitConstructorInvocationopt ::= $Empty // case 389: setResult(null); break; // // Rule 391: ConstructorModifiersopt ::= $Empty // case 391: { //#line 2287 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 393: ...opt ::= $Empty // case 393: setResult(null); break; // // Rule 395: FormalParameterListopt ::= $Empty // case 395: { //#line 2298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 397: Throwsopt ::= $Empty // case 397: { //#line 2305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 399: MethodModifiersopt ::= $Empty // case 399: { //#line 2312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 401: FieldModifiersopt ::= $Empty // case 401: { //#line 2319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 403: ClassBodyDeclarationsopt ::= $Empty // case 403: { //#line 2326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 405: Interfacesopt ::= $Empty // case 405: { //#line 2333 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 407: Superopt ::= $Empty // case 407: { //#line 2340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 409: ClassModifiersopt ::= $Empty // case 409: { //#line 2351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 411: TypeDeclarationsopt ::= $Empty // case 411: { //#line 2363 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 413: ImportDeclarationsopt ::= $Empty // case 413: { //#line 2370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 415: PackageDeclarationopt ::= $Empty // case 415: setResult(null); break; // // Rule 417: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 717 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 418: { //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 726 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 419: PackageDeclaration ::= package PackageName ; // case 419: { //#line 732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 420: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 420: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 422: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 422: { //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 423: X10ClassModifier ::= ClassModifier // case 423: { //#line 761 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 763 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 424: X10ClassModifier ::= safe // case 424: { //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 425: PropertyList ::= ( Properties WhereClauseopt ) // case 425: { //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 426: PropertyList ::= ( WhereClause ) // case 426: { //#line 779 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 427: Properties ::= Property // case 427: { //#line 788 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 428: Properties ::= Properties , Property // case 428: { //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 797 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 429: Property ::= Type identifier // case 429: { //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 805 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 430: MethodHeader ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 430: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 813 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, null)); break; } // // Rule 431: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 431: { //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 432: { //#line 840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 433: { //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 847 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 434: { //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 852 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 435: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 435: { //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 858 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 436: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 436: { //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 875 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 437: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 900 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 907 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 439: { //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 915 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 440: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 440: { //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 924 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 441: { //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 442: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 442: { //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 934 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 444: AssignPropertyCall ::= property ( ArgumentList ) // case 444: { //#line 939 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 941 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 445: Type ::= DataType // case 445: { //#line 950 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 952 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 446: Type ::= nullable < Type > DepParametersopt // case 446: { //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 957 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 447: Type ::= future < Type > // case 447: { //#line 963 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 965 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 451: PrimitiveType ::= NumericType DepParametersopt // case 451: { //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 982 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 452: PrimitiveType ::= boolean DepParametersopt // case 452: { //#line 988 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 457: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 457: { //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 458: DepParameters ::= ( DepParameterExpr ) // case 458: { //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1023 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 459: DepParameterExpr ::= ArgumentList WhereClauseopt // case 459: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 460: DepParameterExpr ::= WhereClause // case 460: { //#line 1032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 461: WhereClause ::= : ConstExpression // case 461: { //#line 1038 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1040 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 462: ConstPrimary ::= Literal // case 462: { //#line 1045 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 463: ConstPrimary ::= Type . class // case 463: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1052 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 464: ConstPrimary ::= void . class // case 464: { //#line 1071 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 465: ConstPrimary ::= this // case 465: { //#line 1077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 466: ConstPrimary ::= here // case 466: { //#line 1082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 467: ConstPrimary ::= ClassName . this // case 467: { //#line 1085 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 468: ConstPrimary ::= ( ConstExpression ) // case 468: { //#line 1090 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 470: ConstPrimary ::= self // case 470: { //#line 1098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 471: ConstPostfixExpression ::= ConstPrimary // case 471: { //#line 1104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 472: ConstPostfixExpression ::= ExpressionName // case 472: { //#line 1109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 473: ConstUnaryExpression ::= ConstPostfixExpression // case 473: { //#line 1114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 474: ConstUnaryExpression ::= + ConstUnaryExpression // case 474: { //#line 1119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= - ConstUnaryExpression // case 475: { //#line 1124 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 476: ConstUnaryExpression ::= ! ConstUnaryExpression // case 476: { //#line 1129 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 477: { //#line 1135 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1137 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 478: { //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1142 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 479: { //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 480: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 480: { //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 481: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 481: { //#line 1156 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1158 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 482: { //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1163 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 483: { //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1168 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 484: ConstRelationalExpression ::= ConstAdditiveExpression // case 484: { //#line 1173 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 485: { //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 486: { //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1185 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 487: { //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1190 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 488: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 488: { //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1195 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 489: ConstEqualityExpression ::= ConstRelationalExpression // case 489: { //#line 1199 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 490: { //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1206 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 491: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 491: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 492: ConstAndExpression ::= ConstEqualityExpression // case 492: { //#line 1215 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1217 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 493: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 493: { //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1222 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstAndExpression // case 494: { //#line 1226 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1228 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 495: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 495: { //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1233 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 496: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 497: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 497: { //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1244 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression // case 498: { //#line 1248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 499: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 499: { //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1255 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 500: ConstFieldAccess ::= ConstPrimary . identifier // case 500: { //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= super . identifier // case 501: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 502: ConstFieldAccess ::= ClassName . super$sup . identifier // case 502: { //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1272 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 504: X10ArrayType ::= Type [ . ] // case 504: { //#line 1288 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1290 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 505: X10ArrayType ::= Type value [ . ] // case 505: { //#line 1293 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1295 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 506: X10ArrayType ::= Type [ DepParameterExpr ] // case 506: { //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1300 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 507: X10ArrayType ::= Type value [ DepParameterExpr ] // case 507: { //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 508: ObjectKind ::= value // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: ObjectKind ::= reference // case 509: throw new Error("No action specified for rule " + 509); // // Rule 510: MethodModifier ::= atomic // case 510: { //#line 1319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 511: MethodModifier ::= extern // case 511: { //#line 1324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 512: MethodModifier ::= safe // case 512: { //#line 1329 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 513: MethodModifier ::= sequential // case 513: { //#line 1334 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 514: MethodModifier ::= local // case 514: { //#line 1339 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 515: MethodModifier ::= nonblocking // case 515: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 518: { //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 519: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 519: { //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 520: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 520: { //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1383 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 521: ThisClause ::= this DepParameters // case 521: { //#line 1391 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1393 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 522: Super ::= extends DataType // case 522: { //#line 1397 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1399 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 523: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 523: { //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1405 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 524: MethodDeclarator ::= MethodDeclarator [ ] // case 524: { //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1417 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 525: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 525: { //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1425 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 526: { //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1461 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 527: { //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 528: { //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 529: { //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1482 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 530: { //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1487 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 531: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 531: { //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 532: Valueopt ::= $Empty // case 532: setResult(null); break; // // Rule 533: Valueopt ::= value // case 533: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 536: ArrayBaseType ::= nullable < Type > // case 536: { //#line 1508 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1510 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= future < Type > // case 537: { //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1515 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 538: ArrayBaseType ::= ( Type ) // case 538: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 539: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 539: { //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 540: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 540: { //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 557: NowStatement ::= now ( Clock ) Statement // case 557: { //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1561 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 558: ClockedClause ::= clocked ( ClockList ) // case 558: { //#line 1565 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 559: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 559: { //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 560: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 560: { //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1583 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 561: WhenStatement ::= when ( Expression ) Statement // case 561: { //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1592 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 562: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 562: { //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1597 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 563: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1604 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 564: { //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1614 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 565: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 565: { //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1624 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 566: FinishStatement ::= finish Statement // case 566: { //#line 1631 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 567: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 567: { //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 568: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 568: { //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1646 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 569: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 569: { //#line 1653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1655 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 570: { //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1661 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 571: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 571: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 572: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1673 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 573: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 574: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 574: { //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1694 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 575: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 575: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1703 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 576: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 576: { //#line 1708 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 578: NextStatement ::= next ; // case 578: { //#line 1718 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 579: AwaitStatement ::= await Expression ; // case 579: { //#line 1722 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 580: ClockList ::= Clock // case 580: { //#line 1728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 581: ClockList ::= ClockList , Clock // case 581: { //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1737 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 582: Clock ::= Expression // case 582: { //#line 1743 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1745 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 583: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 583: { //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1757 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 584: { //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1762 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 585: RelationalExpression ::= RelationalExpression instanceof Type // case 585: { //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 586: IdentifierList ::= identifier // case 586: { //#line 1780 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 587: IdentifierList ::= IdentifierList , identifier // case 587: { //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1789 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 588: Primary ::= here // case 588: { //#line 1796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 591: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 591: { //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1814 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 592: RegionExpressionList ::= RegionExpression // case 592: { //#line 1830 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1832 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 593: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 593: { //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1839 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 594: Primary ::= [ RegionExpressionList ] // case 594: { //#line 1844 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1846 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 595: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 595: { //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 596: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 596: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 597: FieldModifier ::= mutable // case 597: { //#line 1877 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 598: FieldModifier ::= const // case 598: { //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 599: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 607: throw new Error("No action specified for rule " + 607); // // Rule 608: MethodModifier ::= synchronized // case 608: { //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"synchronized\" is an invalid X10 Method Modifier"); setResult(Flags.SYNCHRONIZED); break; } // // Rule 609: FieldModifier ::= volatile // case 609: { //#line 1922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"volatile\" is an invalid X10 Field Modifier"); setResult(Flags.VOLATILE); break; } // // Rule 610: SynchronizedStatement ::= synchronized ( Expression ) Block // case 610: { //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1931 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "Synchronized Statement is invalid in X10"); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 611: ThisClauseopt ::= $Empty // case 611: setResult(null); break; // // Rule 613: PlaceTypeSpecifieropt ::= $Empty // case 613: setResult(null); break; // // Rule 615: DepParametersopt ::= $Empty // case 615: setResult(null); break; // // Rule 617: PropertyListopt ::= $Empty // case 617: setResult(null); break; // // Rule 619: WhereClauseopt ::= $Empty // case 619: setResult(null); break; // // Rule 621: ObjectKindopt ::= $Empty // case 621: setResult(null); break; // // Rule 623: ArrayInitializeropt ::= $Empty // case 623: setResult(null); break; // // Rule 625: PlaceExpressionSingleListopt ::= $Empty // case 625: setResult(null); break; // // Rule 627: ArgumentListopt ::= $Empty // case 627: setResult(null); break; // // Rule 629: X10ClassModifiersopt ::= $Empty // case 629: { //#line 1977 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 631: DepParametersopt ::= $Empty // case 631: setResult(null); break; // // Rule 633: Unsafeopt ::= $Empty // case 633: setResult(null); break; // // Rule 634: Unsafeopt ::= unsafe // case 634: { //#line 1989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 635: ParamIdopt ::= $Empty // case 635: setResult(null); break; // // Rule 636: ParamIdopt ::= identifier // case 636: { //#line 1996 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1998 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 637: ClockedClauseopt ::= $Empty // case 637: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
|
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/56cdb14fdb9589988a93eb9a76aae3872ab98272/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
648,
1059,
11212,
30,
288,
225,
1770,
5371,
461,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
225,
21582,
12,
2300,
461,
18,
869,
4742,
10663,
898,
31,
289,
1377,
648,
1059,
11212,
30,
288,
225,
1770,
5371,
461,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
225,
21582,
12,
2300,
461,
18,
869,
4742,
10663,
898,
31,
289,
1377,
648,
1059,
11212,
30,
288,
225,
1770,
5371,
461,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
225,
21582,
12,
2300,
461,
18,
869,
4742,
10663,
898,
31,
289,
1377,
648,
1059,
11212,
30,
288,
225,
1770,
5371,
461,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
225,
21582,
12,
2300,
461,
18,
869,
4742,
10663,
898,
31,
289,
565,
1071,
225,
648,
1059,
11212,
30,
288,
225,
1770,
5371,
461,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
225,
21582,
12,
2300,
461,
18,
869,
4742,
10663,
898,
31,
289,
565,
918,
225,
648,
1059,
11212,
30,
288,
225,
1770,
5371,
461,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
225,
21582,
12,
2300,
461,
18,
869,
4742,
10663,
898,
31,
289,
565,
1720,
1803,
12,
474,
225,
648,
1059,
11212,
30,
288,
225,
1770,
5371,
461,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
225,
21582,
12,
2300,
461,
18,
869,
4742,
10663,
898,
31,
289,
565,
1720,
1854,
13,
225,
648,
1059,
11212,
30,
288,
225,
1770,
5371,
461,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
648,
1059,
11212,
30,
288,
225,
1770,
5371,
461,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
225,
21582,
12,
2300,
461,
18,
869,
4742,
10663,
898,
31,
289,
1377,
648,
1059,
11212,
30,
288,
225,
1770,
5371,
461,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
225,
21582,
12,
2300,
461,
18,
869,
4742,
10663,
898,
31,
289,
1377,
648,
1059,
11212,
30,
288,
225,
1770,
5371,
461,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
225,
21582,
12,
2300,
461,
18,
869,
4742,
10663,
898,
31,
289,
1377,
648,
1059,
11212,
30,
288,
225,
1770,
5371,
461,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
225,
21582,
12,
2
] |
|
log.error(msg, npde);
|
log.debug(msg);
|
protected void leavingProperties(NodeState state, QName name, int level) throws RepositoryException, SAXException { if (name.equals(NODENAME_XMLTEXT)) { // the node represents xml character data Iterator iter = props.iterator(); while (iter.hasNext()) { PropertyState propState = (PropertyState) iter.next(); QName propName = propState.getName(); if (propName.equals(PROPNAME_XMLCHARACTERS)) { InternalValue val = propState.getValues()[0]; char[] chars = val.toJCRValue(nsReg).getString().toCharArray(); contentHandler.characters(chars, 0, chars.length); } } } else { // regular node // element name String elemName; try { if (state.getParentUUIDs().size() == 0) { // root node needs a name elemName = NODENAME_ROOT.toJCRName(nsReg); } else { elemName = name.toJCRName(nsReg); } } catch (NoPrefixDeclaredException npde) { // should never get here... String msg = "internal error: encountered unregistered namespace"; log.error(msg, npde); throw new RepositoryException(msg, npde); } if (!XMLChar.isValidName(elemName)) { throw new InvalidSerializedDataException("the node name is not a valid xml element name: " + elemName); } // attributes (properties) AttributesImpl attrs = new AttributesImpl(); Iterator iter = props.iterator(); while (iter.hasNext()) { PropertyState propState = (PropertyState) iter.next(); QName propName = propState.getName(); // attribute name String attrName; try { attrName = propName.toJCRName(nsReg); } catch (NoPrefixDeclaredException npde) { // should never get here... String msg = "internal error: encountered unregistered namespace"; log.error(msg, npde); throw new RepositoryException(msg, npde); } if (!XMLChar.isValidName(attrName)) { throw new InvalidSerializedDataException("the property name is not a valid xml attribute name: " + attrName); } // attribute value String attrValue; int type = propState.getType(); // process property value (guaranteed to be single-valued and non-null) InternalValue val = propState.getValues()[0]; if (type == PropertyType.BINARY) { if (binaryAsLink) { try { attrValue = hierMgr.getPath(new PropertyId(propState.getParentUUID(), propState.getName())).toJCRPath(nsReg); } catch (NoPrefixDeclaredException npde) { // should never get here... String msg = "internal error: encountered unregistered namespace"; log.error(msg, npde); throw new RepositoryException(msg, npde); } } else { // binary data, base64 encoding required BLOBFileValue blob = (BLOBFileValue) val.internalValue(); InputStream in = blob.getStream(); StringWriter writer = new StringWriter(); try { Base64.encode(in, writer); in.close(); writer.close(); } catch (IOException ioe) { // check if the exception wraps a SAXException Throwable t = ioe.getCause(); if (t != null && t instanceof SAXException) { throw (SAXException) t; } else { throw new SAXException(ioe); } } attrValue = writer.toString(); } } else { attrValue = val.toJCRValue(nsReg).getString(); } attrs.addAttribute(propName.getNamespaceURI(), propName.getLocalName(), attrName, CDATA_TYPE, attrValue); } // start element (node) contentHandler.startElement(name.getNamespaceURI(), name.getLocalName(), elemName, attrs); } }
|
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/3b7f71d681f98b81e7e99a2ad0c83e71116624e7/DocViewSAXEventGenerator.java/buggy/src/java/org/apache/jackrabbit/core/xml/DocViewSAXEventGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
15086,
2297,
12,
907,
1119,
919,
16,
16723,
508,
16,
509,
1801,
13,
5411,
1216,
13367,
16,
14366,
288,
3639,
309,
261,
529,
18,
14963,
12,
50,
1212,
21150,
67,
4201,
5151,
3719,
288,
5411,
368,
326,
756,
8686,
2025,
3351,
501,
5411,
4498,
1400,
273,
3458,
18,
9838,
5621,
5411,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
7734,
4276,
1119,
2270,
1119,
273,
261,
1396,
1119,
13,
1400,
18,
4285,
5621,
7734,
16723,
9994,
273,
2270,
1119,
18,
17994,
5621,
7734,
309,
261,
5986,
461,
18,
14963,
12,
15811,
1985,
67,
4201,
7305,
6526,
11367,
3719,
288,
10792,
3186,
620,
1244,
273,
2270,
1119,
18,
588,
1972,
1435,
63,
20,
15533,
10792,
1149,
8526,
5230,
273,
1244,
18,
869,
46,
5093,
620,
12,
2387,
1617,
2934,
588,
780,
7675,
869,
15936,
5621,
10792,
913,
1503,
18,
20558,
12,
7549,
16,
374,
16,
5230,
18,
2469,
1769,
7734,
289,
5411,
289,
3639,
289,
469,
288,
5411,
368,
6736,
756,
5411,
368,
930,
508,
5411,
514,
3659,
461,
31,
5411,
775,
288,
7734,
309,
261,
2019,
18,
588,
3054,
5562,
87,
7675,
1467,
1435,
422,
374,
13,
288,
10792,
368,
1365,
756,
4260,
279,
508,
10792,
3659,
461,
273,
423,
1212,
21150,
67,
9185,
18,
869,
46,
5093,
461,
12,
2387,
1617,
1769,
7734,
289,
469,
288,
10792,
3659,
461,
273,
508,
18,
869,
46,
5093,
461,
12,
2387,
1617,
1769,
7734,
289,
5411,
289,
1044,
261,
2279,
2244,
18888,
503,
1130,
323,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
15086,
2297,
12,
907,
1119,
919,
16,
16723,
508,
16,
509,
1801,
13,
5411,
1216,
13367,
16,
14366,
288,
3639,
309,
261,
529,
18,
14963,
12,
50,
1212,
21150,
67,
4201,
5151,
3719,
288,
5411,
368,
326,
756,
8686,
2025,
3351,
501,
5411,
4498,
1400,
273,
3458,
18,
9838,
5621,
5411,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
7734,
4276,
1119,
2270,
1119,
273,
261,
1396,
1119,
13,
1400,
18,
4285,
5621,
7734,
16723,
9994,
273,
2270,
1119,
18,
17994,
5621,
7734,
309,
261,
5986,
461,
18,
14963,
12,
15811,
1985,
67,
4201,
7305,
6526,
11367,
3719,
288,
10792,
3186,
620,
1244,
273,
2270,
1119,
18,
588,
1972,
1435,
63,
20,
15533,
10792,
1149,
8526,
2
] |
mLog.debug("new SmartListHelper: list.size= " + pList.size() + " page size=" + pPageSize);
|
log.debug("new SmartListHelper: list.size= " + list.size() + " page size=" + size);
|
public SmartListHelper(List pList, int pPageSize, TableProperties pProperties) { if (mLog.isDebugEnabled()) { mLog.debug("new SmartListHelper: list.size= " + pList.size() + " page size=" + pPageSize); } if (pList == null || pPageSize < 1) { throw new IllegalArgumentException( "Bad arguments passed into " + "SmartListHelper() constructor. List=" + pList + ", pagesize=" + pPageSize); } mProp = pProperties; mPageSize = pPageSize; mFullList = pList; if (mFullList != null) { mFullListSize = pList.size(); } else { mFullListSize = 0; } mPageCount = computedPageCount(); mCurrentPage = 1; }
|
10316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10316/1f015620e66bc5b3e00897f80df0461ae3b81609/SmartListHelper.java/clean/displaytag/src/main/java/org/displaytag/pagination/SmartListHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19656,
682,
2276,
12,
682,
293,
682,
16,
509,
293,
24035,
16,
3555,
2297,
293,
2297,
13,
565,
288,
3639,
309,
261,
81,
1343,
18,
291,
2829,
1526,
10756,
3639,
288,
5411,
613,
18,
4148,
2932,
2704,
19656,
682,
2276,
30,
666,
18,
1467,
33,
315,
397,
666,
18,
1467,
1435,
397,
315,
1363,
963,
1546,
397,
963,
1769,
3639,
289,
3639,
309,
261,
84,
682,
422,
446,
747,
293,
24035,
411,
404,
13,
3639,
288,
5411,
604,
394,
2754,
12,
7734,
315,
6434,
1775,
2275,
1368,
315,
10792,
397,
315,
23824,
682,
2276,
1435,
3885,
18,
987,
1546,
10792,
397,
293,
682,
10792,
397,
3104,
4689,
554,
1546,
10792,
397,
293,
24035,
1769,
3639,
289,
3639,
312,
4658,
273,
293,
2297,
31,
3639,
312,
24035,
273,
293,
24035,
31,
3639,
312,
5080,
682,
273,
293,
682,
31,
3639,
309,
261,
81,
5080,
682,
480,
446,
13,
3639,
288,
5411,
312,
5080,
682,
1225,
273,
293,
682,
18,
1467,
5621,
3639,
289,
3639,
469,
3639,
288,
5411,
312,
5080,
682,
1225,
273,
374,
31,
3639,
289,
3639,
312,
1964,
1380,
273,
8470,
1964,
1380,
5621,
3639,
28326,
1964,
273,
404,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19656,
682,
2276,
12,
682,
293,
682,
16,
509,
293,
24035,
16,
3555,
2297,
293,
2297,
13,
565,
288,
3639,
309,
261,
81,
1343,
18,
291,
2829,
1526,
10756,
3639,
288,
5411,
613,
18,
4148,
2932,
2704,
19656,
682,
2276,
30,
666,
18,
1467,
33,
315,
397,
666,
18,
1467,
1435,
397,
315,
1363,
963,
1546,
397,
963,
1769,
3639,
289,
3639,
309,
261,
84,
682,
422,
446,
747,
293,
24035,
411,
404,
13,
3639,
288,
5411,
604,
394,
2754,
12,
7734,
315,
6434,
1775,
2275,
1368,
315,
10792,
397,
315,
23824,
682,
2276,
1435,
3885,
18,
987,
1546,
10792,
397,
293,
682,
10792,
397,
3104,
4689,
554,
1546,
10792,
397,
293,
24035,
1769,
3639,
289,
3639,
2
] |
System.out.println("unlock of " + this + " by " + o + " completed.");
|
public synchronized void unlock(Object o) { if (lock_holder == o) { lock_holder = null;System.out.println("unlock of " + this + " by " + o + " completed."); }else {System.out.println("unlock of " + this + " attempted when the caller (" +o + ") does not have 'this' locked");} }
|
13245 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13245/f80d4232513cd62b549c168ea1378989936254ea/Lockable.java/buggy/src/clients/application_library/Lockable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
7186,
12,
921,
320,
13,
288,
202,
202,
430,
261,
739,
67,
4505,
422,
320,
13,
288,
1082,
202,
739,
67,
4505,
273,
446,
31,
3163,
18,
659,
18,
8222,
2932,
26226,
434,
315,
397,
333,
397,
315,
635,
315,
397,
320,
397,
315,
5951,
1199,
1769,
202,
202,
97,
12107,
288,
3163,
18,
659,
18,
8222,
2932,
26226,
434,
315,
397,
333,
397,
315,
18121,
1347,
326,
4894,
7566,
397,
83,
397,
9369,
1552,
486,
1240,
296,
2211,
11,
8586,
8863,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
7186,
12,
921,
320,
13,
288,
202,
202,
430,
261,
739,
67,
4505,
422,
320,
13,
288,
1082,
202,
739,
67,
4505,
273,
446,
31,
3163,
18,
659,
18,
8222,
2932,
26226,
434,
315,
397,
333,
397,
315,
635,
315,
397,
320,
397,
315,
5951,
1199,
1769,
202,
202,
97,
12107,
288,
3163,
18,
659,
18,
8222,
2932,
26226,
434,
315,
397,
333,
397,
315,
18121,
1347,
326,
4894,
7566,
397,
83,
397,
9369,
1552,
486,
1240,
296,
2211,
11,
8586,
8863,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
getToolSettingsPreferenceStore().setValue(((IOption) key).getId(),
|
setOption(((IOption) key),
|
public void parseAllOptions() { // Get the all build options string from all options field String alloptions = getToolSettingsPreferenceStore().getString(allOptionsId); // list that holds the options for the option type other than // boolean,string and enumerated List optionsList = new ArrayList(); // additional options buffer StringBuffer addnOptions = new StringBuffer(); // split all build options string Vector optionsArr = getOptionVector(alloptions); Iterator optIter = optionsArr.iterator(); while(optIter.hasNext()) { String optionValue = (String)optIter.next(); boolean optionValueExist = false; // get the options for this tool IOption[] options = tool.getOptions(); for (int k = 0; k < options.length; ++k) { IOption opt = options[k]; String name = opt.getId(); // check whether the option value is "STRING" type Iterator stringOptsIter = stringOptionsMap.values().iterator(); while (stringOptsIter.hasNext()) { if (((String) stringOptsIter.next()).indexOf(optionValue) != -1) optionValueExist = true; } // check whether the option value is "OBJECTS" type Iterator userObjsIter = userObjsMap.values().iterator(); while (userObjsIter.hasNext()) { if (((String) userObjsIter.next()).indexOf(optionValue) != -1) optionValueExist = true; } // if the value does not exist in string option or user objects // option if (!optionValueExist) { try { // check whether the option value is already exist // and also change the preference store based on // the option value switch (opt.getValueType()) { case IOption.BOOLEAN : String boolCommand; boolCommand = opt.getCommand(); if (boolCommand != null && boolCommand.equals(optionValue)) { getToolSettingsPreferenceStore() .setValue(opt.getId(), true); optionValueExist = true; } boolCommand = opt.getCommandFalse(); if (boolCommand != null && boolCommand.equals(optionValue)) { getToolSettingsPreferenceStore() .setValue(opt.getId(), false); optionValueExist = true; } break; case IOption.ENUMERATED : String enumeration = ""; //$NON-NLS-1$ String[] enumValues = opt.getApplicableValues(); for (int i = 0; i < enumValues.length; i++) { if (opt.getEnumCommand(enumValues[i]).equals( optionValue)) { enumeration = enumValues[i]; optionValueExist = true; } } if (!enumeration.equals("")) //$NON-NLS-1$ getToolSettingsPreferenceStore() .setValue(opt.getId(), enumeration); break; case IOption.STRING_LIST : case IOption.INCLUDE_PATH : case IOption.PREPROCESSOR_SYMBOLS : case IOption.LIBRARIES : if (opt.getCommand() != null && optionValue.startsWith(opt .getCommand())) { optionsList.add(optionValue); optionValueExist = true; } break; default : break; } } catch (BuildException e) {} } } // If the parsed string does not match with any previous option // values then consider this option as a additional build option if (!optionValueExist) { addnOptions.append(optionValue + ITool.WHITE_SPACE); } } // check whether some of the "STRING" option value or "OBJECTS" type // option value removed // by the user from all build option field Set set = stringOptionsMap.keySet(); for (int s = 0; s < set.size(); s++) { Iterator iterator = set.iterator(); while (iterator.hasNext()) { Object key = iterator.next(); String val = (String) stringOptionsMap.get(key); if (alloptions.indexOf(val) == -1) { StringBuffer buf = new StringBuffer(); String[] vals = val.split(WHITESPACE); for (int t = 0; t < vals.length; t++) { if (alloptions.indexOf(vals[t]) != -1) buf.append(vals[t] + ITool.WHITE_SPACE); } getToolSettingsPreferenceStore().setValue(((IOption) key).getId(), buf.toString().trim()); } } } // "OBJECTS" type Set objSet = userObjsMap.keySet(); for (int s = 0; s < objSet.size(); s++) { Iterator iterator = objSet.iterator(); while (iterator.hasNext()) { Object key = iterator.next(); String val = (String) userObjsMap.get(key); ArrayList list = new ArrayList(); String[] vals = BuildToolsSettingsStore.parseString(val); for (int t = 0; t < vals.length; t++) { if (alloptions.indexOf(vals[t]) != -1) list.add(vals[t]); } String listArr[] = new String[list.size()]; list.toArray(listArr); String liststr = BuildToolsSettingsStore.createList(listArr); getToolSettingsPreferenceStore().setValue(((IOption) key).getId(), liststr); } } // Now update the preference store with parsed options // Get the options for this tool IOption[] options = tool.getOptions(); for (int k = 0; k < options.length; ++k) { IOption opt = options[k]; String name = opt.getId(); String listStr = ""; //$NON-NLS-1$ String[] listVal = null; try { switch (opt.getValueType()) { case IOption.BOOLEAN : ArrayList optsList = new ArrayList(optionsArr); if (opt.getCommand() != null && opt.getCommand().length() > 0 && !optsList.contains(opt.getCommand())) getToolSettingsPreferenceStore().setValue(opt.getId(), false); if (opt.getCommandFalse() != null && opt.getCommandFalse().length() > 0 && !optsList.contains(opt.getCommandFalse())) getToolSettingsPreferenceStore().setValue(opt.getId(), true); break; case IOption.STRING : // TODO create a lst of valid default string options for the tool if (getDefaultOptionNames().contains(opt.getName())) { String newOptions = getToolSettingsPreferenceStore().getString( opt.getId()); if (addnOptions.length() > 0) { newOptions = newOptions + ITool.WHITE_SPACE + addnOptions.toString().trim(); } getToolSettingsPreferenceStore().setValue(opt.getId(), newOptions); } break; case IOption.STRING_LIST : case IOption.INCLUDE_PATH : case IOption.PREPROCESSOR_SYMBOLS : case IOption.LIBRARIES : ArrayList newList = new ArrayList(); for (int i = 0; i < optionsList.size(); i++) { if (opt.getCommand() != null && ((String) optionsList.get(i)).startsWith(opt .getCommand())) { newList.add(((String) optionsList.get(i)) .substring(opt.getCommand().length())); } } String[] strlist = new String[newList.size()]; newList.toArray(strlist); newList.clear(); getToolSettingsPreferenceStore().setValue(opt.getId(), BuildToolsSettingsStore.createList(strlist)); break; default : break; } } catch (BuildException e) {} } }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/ca2e8c288e0d3b7b382d3418afbe110662fcfed4/BuildToolSettingsPage.java/clean/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildToolSettingsPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1109,
1595,
1320,
1435,
288,
202,
202,
759,
968,
326,
777,
1361,
702,
533,
628,
777,
702,
652,
202,
202,
780,
524,
383,
573,
273,
336,
6364,
2628,
9624,
2257,
7675,
588,
780,
12,
454,
1320,
548,
1769,
202,
202,
759,
666,
716,
14798,
326,
702,
364,
326,
1456,
618,
1308,
2353,
202,
202,
759,
1250,
16,
1080,
471,
3557,
690,
202,
202,
682,
702,
682,
273,
394,
2407,
5621,
202,
202,
759,
3312,
702,
1613,
202,
202,
780,
1892,
527,
82,
1320,
273,
394,
6674,
5621,
202,
202,
759,
1416,
777,
1361,
702,
533,
202,
202,
5018,
702,
5715,
273,
5651,
5018,
12,
287,
383,
573,
1769,
202,
202,
3198,
2153,
2360,
273,
702,
5715,
18,
9838,
5621,
202,
202,
17523,
12,
3838,
2360,
18,
5332,
2134,
10756,
288,
1082,
202,
780,
28272,
273,
261,
780,
13,
3838,
2360,
18,
4285,
5621,
1082,
202,
6494,
28272,
4786,
273,
629,
31,
1082,
202,
759,
336,
326,
702,
364,
333,
5226,
1082,
202,
45,
1895,
8526,
702,
273,
5226,
18,
588,
1320,
5621,
1082,
202,
1884,
261,
474,
417,
273,
374,
31,
417,
411,
702,
18,
2469,
31,
965,
79,
13,
288,
9506,
202,
45,
1895,
2153,
273,
702,
63,
79,
15533,
9506,
202,
780,
508,
273,
2153,
18,
26321,
5621,
9506,
202,
759,
866,
2856,
326,
1456,
460,
353,
315,
5804,
6,
618,
9506,
202,
3198,
533,
5476,
2360,
273,
533,
1320,
863,
18,
2372,
7675,
9838,
5621,
9506,
202,
17523,
261,
1080,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
1595,
1320,
1435,
288,
202,
202,
759,
968,
326,
777,
1361,
702,
533,
628,
777,
702,
652,
202,
202,
780,
524,
383,
573,
273,
336,
6364,
2628,
9624,
2257,
7675,
588,
780,
12,
454,
1320,
548,
1769,
202,
202,
759,
666,
716,
14798,
326,
702,
364,
326,
1456,
618,
1308,
2353,
202,
202,
759,
1250,
16,
1080,
471,
3557,
690,
202,
202,
682,
702,
682,
273,
394,
2407,
5621,
202,
202,
759,
3312,
702,
1613,
202,
202,
780,
1892,
527,
82,
1320,
273,
394,
6674,
5621,
202,
202,
759,
1416,
777,
1361,
702,
533,
202,
202,
5018,
702,
5715,
273,
5651,
5018,
12,
287,
383,
573,
1769,
202,
202,
3198,
2153,
2360,
273,
702,
2
] |
match(input,ID,FOLLOW_ID_in_enum_constraint1901);
|
match(input,ID,FOLLOW_ID_in_enum_constraint1951);
|
public String enum_constraint() throws RecognitionException { String text; Token cls=null; Token en=null; text = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:556:17: ( (cls= ID '.' en= ID ) ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:556:17: (cls= ID '.' en= ID ) { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:556:17: (cls= ID '.' en= ID ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:556:18: cls= ID '.' en= ID { cls=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_enum_constraint1895); match(input,48,FOLLOW_48_in_enum_constraint1897); en=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_enum_constraint1901); } text = cls.getText() + "." + en.getText(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return text; }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2792,
67,
13364,
1435,
1216,
9539,
288,
6647,
514,
977,
31,
3639,
3155,
2028,
33,
2011,
31,
3639,
3155,
570,
33,
2011,
31,
1171,
202,
202,
955,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
2539,
26,
30,
4033,
30,
261,
261,
6429,
33,
1599,
2611,
570,
33,
1599,
262,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
2539,
26,
30,
4033,
30,
261,
6429,
33,
1599,
2611,
570,
33,
1599,
262,
5411,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
2539,
26,
30,
4033,
30,
261,
6429,
33,
1599,
2611,
570,
33,
1599,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
2539,
26,
30,
2643,
30,
2028,
33,
1599,
2611,
570,
33,
1599,
5411,
288,
5411,
2028,
28657,
1345,
13,
2630,
18,
12050,
12,
21,
1769,
5411,
845,
12,
2630,
16,
734,
16,
29890,
67,
734,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2792,
67,
13364,
1435,
1216,
9539,
288,
6647,
514,
977,
31,
3639,
3155,
2028,
33,
2011,
31,
3639,
3155,
570,
33,
2011,
31,
1171,
202,
202,
955,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
2539,
26,
30,
4033,
30,
261,
261,
6429,
33,
1599,
2611,
570,
33,
1599,
262,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
2539,
2
] |
if (((PatchListModel)e.getSource ()).getRowCount ()>1)
|
if (((PatchListModel)e.getSource()).getRowCount()>1)
|
public void tableChanged (TableModelEvent e) { if (((PatchListModel)e.getSource ()).getRowCount ()>0) { PatchEdit.saveAction.setEnabled (true); PatchEdit.menuSaveAs.setEnabled (true); PatchEdit.searchAction.setEnabled (true); PatchEdit.exportAction.setEnabled (true); } if (((PatchListModel)e.getSource ()).getRowCount ()>1) { PatchEdit.sortAction.setEnabled (true); PatchEdit.dupAction.setEnabled (true); PatchEdit.crossBreedAction.setEnabled(true); } }
|
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/62b315e8a465a26dabe894fe915eab34f48f17f0/LibraryFrame.java/clean/JSynthLib/core/LibraryFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1014,
5033,
261,
1388,
1488,
1133,
425,
13,
5411,
288,
7734,
309,
261,
12443,
7332,
682,
1488,
13,
73,
18,
588,
1830,
1832,
2934,
588,
26359,
1832,
34,
20,
13,
7734,
288,
10792,
12042,
4666,
18,
5688,
1803,
18,
542,
1526,
261,
3767,
1769,
10792,
12042,
4666,
18,
5414,
4755,
1463,
18,
542,
1526,
261,
3767,
1769,
10792,
12042,
4666,
18,
3072,
1803,
18,
542,
1526,
261,
3767,
1769,
1082,
565,
12042,
4666,
18,
6530,
1803,
18,
542,
1526,
261,
3767,
1769,
1082,
10792,
289,
1171,
309,
261,
12443,
7332,
682,
1488,
13,
73,
18,
588,
1830,
1435,
2934,
588,
26359,
1435,
34,
21,
13,
7734,
288,
10792,
12042,
4666,
18,
3804,
1803,
18,
542,
1526,
261,
3767,
1769,
10792,
12042,
4666,
18,
26427,
1803,
18,
542,
1526,
261,
3767,
1769,
10792,
12042,
4666,
18,
14653,
38,
15656,
1803,
18,
542,
1526,
12,
3767,
1769,
17311,
289,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1014,
5033,
261,
1388,
1488,
1133,
425,
13,
5411,
288,
7734,
309,
261,
12443,
7332,
682,
1488,
13,
73,
18,
588,
1830,
1832,
2934,
588,
26359,
1832,
34,
20,
13,
7734,
288,
10792,
12042,
4666,
18,
5688,
1803,
18,
542,
1526,
261,
3767,
1769,
10792,
12042,
4666,
18,
5414,
4755,
1463,
18,
542,
1526,
261,
3767,
1769,
10792,
12042,
4666,
18,
3072,
1803,
18,
542,
1526,
261,
3767,
1769,
1082,
565,
12042,
4666,
18,
6530,
1803,
18,
542,
1526,
261,
3767,
1769,
1082,
10792,
289,
1171,
309,
261,
12443,
7332,
682,
1488,
13,
73,
18,
588,
1830,
1435,
2934,
588,
26359,
1435,
34,
21,
13,
7734,
288,
10792,
12042,
4666,
18,
3804,
1803,
18,
542,
1526,
2
] |
final StringTokenizer choicesTok = new StringTokenizer(choicesSt, "|");
|
String choicesArr[] = choicesSt.split("|"); List<String> choicesList = Arrays.asList(choicesArr);
|
public void getChoices( final PlayerCharacter aPc, final List<String> availableList, final List<String> selectedList) { /* This will need to be re-worked at some point when I can think of a better way. * This feat is different from the others in that it requires a bonus to be * embedded in the choice. Probably this whole feat methodology needs to be * re-thought as its getting a bit bloated - a generic way to embed bonuses could * be done to simplify this all tremendously instead of so many special * cases.*/ final StringTokenizer cTok = new StringTokenizer(stChoices, "[]"); final String choicesSt = cTok.nextToken(); while (cTok.hasMoreTokens()) { aBonusList.add(cTok.nextToken()); } final StringTokenizer choicesTok = new StringTokenizer(choicesSt, "|"); // get appropriate choices for chooser ChooserUtilities.buildSpellTypeChoices( availableList, uniqueList, aPc, (Enumeration<String>)choicesTok); pobject.addAssociatedTo(selectedList); }
|
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/8bccedf8c60135fe3a7ba347975a704ba6f48762/SpellLevelChoiceManager.java/buggy/code/src/java/pcgen/core/chooser/SpellLevelChoiceManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
336,
17442,
12,
202,
202,
6385,
19185,
7069,
279,
28136,
16,
202,
202,
6385,
987,
32,
780,
34,
5411,
2319,
682,
16,
202,
202,
6385,
987,
32,
780,
34,
5411,
3170,
682,
13,
202,
95,
202,
202,
20308,
1220,
903,
1608,
358,
506,
283,
17,
1252,
329,
622,
2690,
1634,
1347,
467,
848,
15507,
434,
279,
7844,
4031,
18,
1082,
380,
1220,
11002,
353,
3775,
628,
326,
10654,
316,
716,
518,
4991,
279,
324,
22889,
358,
506,
1082,
380,
7488,
316,
326,
6023,
18,
225,
14610,
6906,
333,
7339,
11002,
707,
4676,
4260,
358,
506,
1082,
380,
283,
17,
451,
83,
9540,
487,
2097,
8742,
279,
2831,
324,
383,
690,
300,
279,
5210,
4031,
358,
4724,
324,
265,
6117,
3377,
1082,
380,
506,
2731,
358,
16499,
333,
777,
268,
2764,
409,
1481,
715,
3560,
434,
1427,
4906,
4582,
1082,
380,
6088,
4509,
19,
202,
202,
6385,
16370,
276,
20477,
1377,
273,
394,
16370,
12,
334,
17442,
16,
5158,
4279,
1769,
202,
202,
6385,
514,
1850,
7246,
510,
273,
276,
20477,
18,
4285,
1345,
5621,
202,
202,
17523,
261,
71,
20477,
18,
5332,
7417,
5157,
10756,
202,
202,
95,
1082,
202,
69,
38,
22889,
682,
18,
1289,
12,
71,
20477,
18,
4285,
1345,
10663,
202,
202,
97,
202,
202,
6385,
16370,
7246,
20477,
273,
394,
16370,
12,
11937,
510,
16,
11747,
8863,
202,
202,
759,
336,
5505,
7246,
364,
5011,
13164,
202,
202,
17324,
11864,
18,
3510,
3389,
1165,
559,
17442,
12,
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,
918,
336,
17442,
12,
202,
202,
6385,
19185,
7069,
279,
28136,
16,
202,
202,
6385,
987,
32,
780,
34,
5411,
2319,
682,
16,
202,
202,
6385,
987,
32,
780,
34,
5411,
3170,
682,
13,
202,
95,
202,
202,
20308,
1220,
903,
1608,
358,
506,
283,
17,
1252,
329,
622,
2690,
1634,
1347,
467,
848,
15507,
434,
279,
7844,
4031,
18,
1082,
380,
1220,
11002,
353,
3775,
628,
326,
10654,
316,
716,
518,
4991,
279,
324,
22889,
358,
506,
1082,
380,
7488,
316,
326,
6023,
18,
225,
14610,
6906,
333,
7339,
11002,
707,
4676,
4260,
358,
506,
1082,
380,
283,
17,
451,
83,
9540,
487,
2097,
8742,
279,
2831,
324,
383,
690,
300,
279,
5210,
4031,
358,
2
] |
if ( checkedUpdates )
|
if ( checkedUpdates && localMetadata.exists() )
|
protected String resolveVersion( Artifact artifact, ArtifactRepository localRepository, List remoteRepositories ) throws ArtifactMetadataRetrievalException { VersionArtifactMetadata localMetadata; try { localMetadata = readFromLocalRepository( artifact, localRepository ); } catch ( IOException e ) { throw new ArtifactMetadataRetrievalException( "Error reading local metadata", e ); } boolean alreadyResolved = alreadyResolved( artifact ); if ( !alreadyResolved ) { boolean checkedUpdates = false; for ( Iterator i = remoteRepositories.iterator(); i.hasNext(); ) { ArtifactRepository repository = (ArtifactRepository) i.next(); ArtifactRepositoryPolicy policy = artifact.isSnapshot() ? repository.getSnapshots() : repository.getReleases(); if ( !policy.isEnabled() ) { getLogger().debug( "Skipping disabled repository " + repository.getId() ); } else { // TODO: should be able to calculate this less often boolean checkForUpdates = policy.checkOutOfDate( localMetadata.getLastModified() ); if ( checkForUpdates ) { getLogger().info( artifact.getArtifactId() + ": checking for updates from " + repository.getId() ); VersionArtifactMetadata remoteMetadata; try { remoteMetadata = retrieveFromRemoteRepository( artifact, repository, localMetadata, policy.getChecksumPolicy() ); // we must only flag this after checking for updates, otherwise subsequent attempts will look // for SNAPSHOT without checking the metadata checkedUpdates = true; } catch ( ResourceDoesNotExistException e ) { getLogger().debug( "Error resolving artifact version from metadata.", e ); continue; } int difference = remoteMetadata.compareTo( localMetadata ); if ( difference > 0 ) { // remote is newer artifact.setRepository( repository ); localMetadata = remoteMetadata; } } } } if ( checkedUpdates ) { localMetadata.storeInLocalRepository( localRepository ); } resolvedArtifactCache.add( getCacheKey( artifact ) ); } String version = localMetadata.constructVersion(); // TODO: if the POM and JAR are inconsistent, this might mean that different version of each are used if ( !artifact.getFile().exists() || localMetadata.newerThanFile( artifact.getFile() ) ) { if ( getLogger().isInfoEnabled() && !alreadyResolved ) { if ( version != null && !version.equals( artifact.getBaseVersion() ) ) { String message = artifact.getArtifactId() + ": resolved to version " + version; if ( artifact.getRepository() != null ) { message += " from repository " + artifact.getRepository().getId(); } else { message += " from local repository"; } getLogger().info( message ); } } return version; } else { if ( getLogger().isInfoEnabled() && !alreadyResolved ) { // Locally installed file is newer, don't use the resolved version getLogger().info( artifact.getArtifactId() + ": using locally installed snapshot" ); } return artifact.getVersion(); } }
|
47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/8cb9563692dc903e54c3b601873e6fe22128afaf/AbstractVersionTransformation.java/buggy/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/AbstractVersionTransformation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
2245,
1444,
12,
14022,
6462,
16,
14022,
3305,
1191,
3305,
16,
987,
2632,
18429,
262,
3639,
1216,
14022,
2277,
27356,
503,
565,
288,
3639,
4049,
7581,
2277,
1191,
2277,
31,
3639,
775,
3639,
288,
5411,
1191,
2277,
273,
20876,
2042,
3305,
12,
6462,
16,
1191,
3305,
11272,
3639,
289,
3639,
1044,
261,
1860,
425,
262,
3639,
288,
5411,
604,
394,
14022,
2277,
27356,
503,
12,
315,
668,
6453,
1191,
1982,
3113,
425,
11272,
3639,
289,
3639,
1250,
1818,
12793,
273,
1818,
12793,
12,
6462,
11272,
3639,
309,
261,
401,
17583,
12793,
262,
3639,
288,
5411,
1250,
5950,
5121,
273,
629,
31,
5411,
364,
261,
4498,
277,
273,
2632,
18429,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
14022,
3305,
3352,
273,
261,
7581,
3305,
13,
277,
18,
4285,
5621,
7734,
14022,
3305,
2582,
3329,
273,
6462,
18,
291,
4568,
1435,
692,
3352,
18,
588,
17095,
1435,
10792,
294,
3352,
18,
588,
26217,
5621,
7734,
309,
261,
401,
5086,
18,
291,
1526,
1435,
262,
7734,
288,
10792,
7156,
7675,
4148,
12,
315,
16877,
5673,
3352,
315,
397,
3352,
18,
26321,
1435,
11272,
7734,
289,
7734,
469,
7734,
288,
10792,
368,
2660,
30,
1410,
506,
7752,
358,
4604,
333,
5242,
16337,
10792,
1250,
13855,
5121,
273,
3329,
18,
1893,
11224,
1626,
12,
1191,
2277,
18,
588,
14747,
1435,
11272,
10792,
309,
261,
13855,
5121,
262,
10792,
288,
13491,
7156,
7675,
1376,
12,
18701,
6462,
18,
588,
7581,
548,
1435,
397,
6398,
6728,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
2245,
1444,
12,
14022,
6462,
16,
14022,
3305,
1191,
3305,
16,
987,
2632,
18429,
262,
3639,
1216,
14022,
2277,
27356,
503,
565,
288,
3639,
4049,
7581,
2277,
1191,
2277,
31,
3639,
775,
3639,
288,
5411,
1191,
2277,
273,
20876,
2042,
3305,
12,
6462,
16,
1191,
3305,
11272,
3639,
289,
3639,
1044,
261,
1860,
425,
262,
3639,
288,
5411,
604,
394,
14022,
2277,
27356,
503,
12,
315,
668,
6453,
1191,
1982,
3113,
425,
11272,
3639,
289,
3639,
1250,
1818,
12793,
273,
1818,
12793,
12,
6462,
11272,
3639,
309,
261,
401,
17583,
12793,
262,
3639,
288,
5411,
1250,
5950,
5121,
273,
629,
31,
5411,
364,
261,
4498,
277,
273,
2632,
18429,
18,
9838,
5621,
277,
18,
5332,
2134,
2
] |
StringBuffer result = new StringBuffer(); for (int c = 0; c < text.length(); c++) { char letter = text.charAt(c); if (letter == '\"') result.append("\\\""); else if (letter == '\\') result.append("\\\\"); else if (letter == '\n') result.append("\\n"); else result.append(letter); } return result.toString(); }
|
StringBuffer result = new StringBuffer(); for(int c = 0; c < text.length(); c++) { char letter = text.charAt(c); if (letter == '\"') result.append("\\\""); else if (letter == '\\') result.append("\\\\"); else if (letter == '\n') result.append("\\n"); else result.append(letter); } return result.toString(); }
|
private static String escapeToJava(String text) { StringBuffer result = new StringBuffer(); for (int c = 0; c < text.length(); c++) { char letter = text.charAt(c); if (letter == '\"') result.append("\\\""); else if (letter == '\\') result.append("\\\\"); else if (letter == '\n') result.append("\\n"); else result.append(letter); } return result.toString(); }
|
10062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10062/55ef928971f1cd3bf080886a5ec7786988f3d5d3/IssuezillaXMLParser.java/buggy/source/ca/odell/glazedlists/demo/issuebrowser/IssuezillaXMLParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
4114,
774,
5852,
12,
780,
977,
13,
288,
202,
202,
780,
1892,
563,
273,
394,
6674,
5621,
202,
202,
1884,
261,
474,
276,
273,
374,
31,
276,
411,
977,
18,
2469,
5621,
276,
27245,
288,
1082,
202,
3001,
9471,
273,
977,
18,
3001,
861,
12,
71,
1769,
1082,
202,
430,
261,
13449,
422,
2337,
5187,
13,
9506,
202,
2088,
18,
6923,
2932,
1695,
8530,
1769,
1082,
202,
12107,
309,
261,
13449,
422,
5282,
13,
9506,
202,
2088,
18,
6923,
2932,
13011,
8863,
1082,
202,
12107,
309,
261,
13449,
422,
2337,
82,
6134,
9506,
202,
2088,
18,
6923,
2932,
1695,
82,
8863,
1082,
202,
12107,
9506,
202,
2088,
18,
6923,
12,
13449,
1769,
202,
202,
97,
202,
202,
2463,
563,
18,
10492,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
4114,
774,
5852,
12,
780,
977,
13,
288,
202,
202,
780,
1892,
563,
273,
394,
6674,
5621,
202,
202,
1884,
261,
474,
276,
273,
374,
31,
276,
411,
977,
18,
2469,
5621,
276,
27245,
288,
1082,
202,
3001,
9471,
273,
977,
18,
3001,
861,
12,
71,
1769,
1082,
202,
430,
261,
13449,
422,
2337,
5187,
13,
9506,
202,
2088,
18,
6923,
2932,
1695,
8530,
1769,
1082,
202,
12107,
309,
261,
13449,
422,
5282,
13,
9506,
202,
2088,
18,
6923,
2932,
13011,
8863,
1082,
202,
12107,
309,
261,
13449,
422,
2337,
82,
6134,
9506,
202,
2088,
18,
6923,
2932,
1695,
82,
8863,
1082,
202,
12107,
9506,
202,
2088,
18,
6923,
12,
13449,
1769,
202,
202,
2
] |
log.info("No longer accepting connections on " + acceptorSocketAddress); ioAcceptor.unbind(acceptorSocketAddress); acceptorSocketAddress = null;
|
Iterator addressItr = sessionsForAcceptorAddress.entrySet().iterator(); while (addressItr.hasNext()) { Map.Entry entry = (Map.Entry) addressItr.next(); SocketAddress acceptorSocketAddress = (SocketAddress) entry.getKey(); log.info("No longer accepting connections on " + acceptorSocketAddress); IoAcceptor ioAcceptor = getIoAcceptor(acceptorSocketAddress); System.out.println("@@@@@ DEBUG AbstractSocketAcceptor.stopAcceptingConnections isbound "+ioAcceptor.isBound(acceptorSocketAddress)); ioAcceptor.unbind(acceptorSocketAddress); } ioAcceptorForTransport.clear();
|
protected void stopAcceptingConnections() { log.info("No longer accepting connections on " + acceptorSocketAddress); ioAcceptor.unbind(acceptorSocketAddress); acceptorSocketAddress = null; }
|
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/efbf7a39b2f1ba5c12c71065d484017b332c284e/AbstractSocketAcceptor.java/buggy/src/quickfix/mina/acceptor/AbstractSocketAcceptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2132,
5933,
310,
9314,
1435,
288,
3639,
613,
18,
1376,
2932,
2279,
7144,
25806,
5921,
603,
315,
397,
2791,
280,
15520,
1769,
3639,
2527,
5933,
280,
18,
318,
4376,
12,
1077,
6757,
15520,
1769,
3639,
2791,
280,
15520,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2132,
5933,
310,
9314,
1435,
288,
3639,
613,
18,
1376,
2932,
2279,
7144,
25806,
5921,
603,
315,
397,
2791,
280,
15520,
1769,
3639,
2527,
5933,
280,
18,
318,
4376,
12,
1077,
6757,
15520,
1769,
3639,
2791,
280,
15520,
273,
446,
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
] |
skipTokens(stream, 3);
|
stream.skipTokens(3);
|
public void testEmptyModule() throws TokenStreamException { final String inStr = "module Empty where"; final PreprocessedTokenStream stream = new PreprocessedTokenStream(new HaskellLexer(new StringReader(inStr))); skipTokens(stream, 3); Token t = stream.nextToken(); assertEquals(OPENBLOCK, t.getType()); assertEquals(-1, t.getColumn()); assertEquals(EOF, stream.nextToken().getType()); }
|
51700 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51700/8f6592dcb186da275bcaf9b56b9b22e07fc4f69d/PreprocessedTokenStreamTest.java/buggy/net.sf.eclipsefp.haskell.core.jparser.test/src/net/sf/eclipsefp/haskell/core/jparser/test/PreprocessedTokenStreamTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1921,
3120,
1435,
1216,
3155,
1228,
503,
288,
202,
202,
6385,
514,
316,
1585,
273,
315,
2978,
8953,
1625,
14432,
202,
202,
6385,
2962,
11005,
1345,
1228,
1407,
273,
394,
2962,
11005,
1345,
1228,
12,
2704,
670,
835,
1165,
13356,
12,
2704,
26227,
12,
267,
1585,
3719,
1769,
9506,
202,
7457,
5157,
12,
3256,
16,
890,
1769,
202,
202,
1345,
268,
273,
1407,
18,
4285,
1345,
5621,
202,
202,
11231,
8867,
12,
11437,
11403,
16,
268,
18,
588,
559,
10663,
202,
202,
11231,
8867,
19236,
21,
16,
268,
18,
588,
1494,
10663,
202,
202,
11231,
8867,
12,
12706,
16,
1407,
18,
4285,
1345,
7675,
588,
559,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
1842,
1921,
3120,
1435,
1216,
3155,
1228,
503,
288,
202,
202,
6385,
514,
316,
1585,
273,
315,
2978,
8953,
1625,
14432,
202,
202,
6385,
2962,
11005,
1345,
1228,
1407,
273,
394,
2962,
11005,
1345,
1228,
12,
2704,
670,
835,
1165,
13356,
12,
2704,
26227,
12,
267,
1585,
3719,
1769,
9506,
202,
7457,
5157,
12,
3256,
16,
890,
1769,
202,
202,
1345,
268,
273,
1407,
18,
4285,
1345,
5621,
202,
202,
11231,
8867,
12,
11437,
11403,
16,
268,
18,
588,
559,
10663,
202,
202,
11231,
8867,
19236,
21,
16,
268,
18,
588,
1494,
10663,
202,
202,
11231,
8867,
12,
12706,
16,
1407,
18,
4285,
1345,
7675,
588,
559,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100
] |
int _m232 = mark(); synPredMatched232 = true;
|
int _m233 = mark(); synPredMatched233 = true;
|
public final void primaryExpr() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST primaryExpr_AST = null; String varName= null; switch ( LA(1)) { case LT: case XML_COMMENT: case XML_PI: { directConstructor(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case SELF: { contextItemExpr(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LPAREN: { parenthesizedExpr(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case DOLLAR: { varRef(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case STRING_LITERAL: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { literal(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: boolean synPredMatched229 = false; if (((_tokenSet_10.member(LA(1))))) { int _m229 = mark(); synPredMatched229 = true; inputState.guessing++; try { { { switch ( LA(1)) { case LITERAL_element: { match(LITERAL_element); break; } case LITERAL_attribute: { match(LITERAL_attribute); break; } case LITERAL_text: { match(LITERAL_text); break; } case LITERAL_document: { match(LITERAL_document); break; } case 141: { match(141); break; } case LITERAL_comment: { match(LITERAL_comment); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } match(LCURLY); } } catch (RecognitionException pe) { synPredMatched229 = false; } rewind(_m229); inputState.guessing--; } if ( synPredMatched229 ) { computedConstructor(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { boolean synPredMatched232 = false; if (((_tokenSet_10.member(LA(1))))) { int _m232 = mark(); synPredMatched232 = true; inputState.guessing++; try { { { switch ( LA(1)) { case LITERAL_element: { match(LITERAL_element); break; } case LITERAL_attribute: { match(LITERAL_attribute); break; } case 141: { match(141); break; } case LITERAL_namespace: { match(LITERAL_namespace); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } qName(); match(LCURLY); } } catch (RecognitionException pe) { synPredMatched232 = false; } rewind(_m232); inputState.guessing--; } if ( synPredMatched232 ) { computedConstructor(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else if ((_tokenSet_1.member(LA(1)))) { functionCall(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } }} returnAST = primaryExpr_AST; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/10544e5ec103a411822c6180ed81ef38eab15de8/XQueryParser.java/buggy/src/org/exist/xquery/parser/XQueryParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3354,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
16,
10172,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
3354,
4742,
67,
9053,
273,
446,
31,
202,
202,
780,
13722,
33,
446,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
11807,
30,
202,
202,
3593,
3167,
67,
12200,
30,
202,
202,
3593,
3167,
67,
1102,
30,
202,
202,
95,
1082,
202,
7205,
6293,
5621,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
1082,
202,
8258,
4742,
67,
9053,
273,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
2972,
9053,
18,
3085,
31,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
29918,
30,
202,
202,
95,
1082,
202,
2472,
1180,
4742,
5621,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
1082,
202,
8258,
4742,
67,
9053,
273,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
2972,
9053,
18,
3085,
31,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
511,
15111,
30,
202,
202,
95,
1082,
202,
13012,
7915,
1235,
4742,
5621,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
1082,
202,
8258,
4742,
67,
9053,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3354,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
16,
10172,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
3354,
4742,
67,
9053,
273,
446,
31,
202,
202,
780,
13722,
33,
446,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
11807,
30,
202,
202,
3593,
3167,
67,
12200,
30,
202,
202,
3593,
3167,
67,
1102,
30,
202,
202,
95,
1082,
202,
7205,
6293,
5621,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
1082,
202,
8258,
4742,
2
] |
property.setOneToMany(true);
|
property.setOneToMany(true); property.setBidirectional(false);
|
private void establishRelationshipForSetToType(DefaultGrailsDomainClassProperty property, Class relatedClassPropertyType) { if(relatedClassPropertyType == null) { // uni-directional one-to-many property.setOneToMany(true); } else if( relatedClassPropertyType.equals( Set.class ) ){ // many-to-many property.setManyToMany(true); } else if( GrailsClassUtils.isDomainClass( relatedClassPropertyType ) ) { // bi-directional one-to-many property.setOneToMany( true ); } }
|
47932 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47932/1353ede437371005e9a4979398eaa63f062e991f/DefaultGrailsDomainClass.java/clean/grails/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
18312,
8180,
1290,
694,
31616,
12,
1868,
14571,
14573,
3748,
797,
1396,
1272,
16,
1659,
3746,
797,
22802,
13,
288,
9506,
202,
430,
12,
9243,
797,
22802,
422,
446,
13,
288,
1082,
202,
759,
7738,
17,
9855,
287,
1245,
17,
869,
17,
9353,
1082,
202,
4468,
18,
542,
3335,
12601,
12,
3767,
1769,
202,
202,
97,
9506,
202,
12107,
309,
12,
3746,
797,
22802,
18,
14963,
12,
1000,
18,
1106,
262,
262,
95,
1082,
202,
759,
4906,
17,
869,
17,
9353,
1082,
202,
4468,
18,
542,
5594,
12601,
12,
3767,
1769,
202,
202,
97,
202,
202,
12107,
309,
12,
10812,
14573,
797,
1989,
18,
291,
3748,
797,
12,
3746,
797,
22802,
262,
262,
288,
1082,
202,
759,
10054,
17,
9855,
287,
1245,
17,
869,
17,
9353,
1082,
202,
4468,
18,
542,
3335,
12601,
12,
638,
11272,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
18312,
8180,
1290,
694,
31616,
12,
1868,
14571,
14573,
3748,
797,
1396,
1272,
16,
1659,
3746,
797,
22802,
13,
288,
9506,
202,
430,
12,
9243,
797,
22802,
422,
446,
13,
288,
1082,
202,
759,
7738,
17,
9855,
287,
1245,
17,
869,
17,
9353,
1082,
202,
4468,
18,
542,
3335,
12601,
12,
3767,
1769,
202,
202,
97,
9506,
202,
12107,
309,
12,
3746,
797,
22802,
18,
14963,
12,
1000,
18,
1106,
262,
262,
95,
1082,
202,
759,
4906,
17,
869,
17,
9353,
1082,
202,
4468,
18,
542,
5594,
12601,
12,
3767,
1769,
202,
202,
97,
202,
202,
12107,
309,
12,
10812,
14573,
797,
1989,
18,
291,
3748,
797,
12,
3746,
797,
22802,
262,
262,
288,
1082,
2
] |
if (len == 0) return ScriptRuntime.NaNobj;
|
int start = 0; char c; for (;;) { if (start == len) { return ScriptRuntime.NaNobj; } c = s.charAt(start); if (!TokenStream.isJSSpace(c)) { break; } ++start; }
|
private Object js_parseFloat(Context cx, Object[] args) { if (args.length < 1) return ScriptRuntime.NaNobj; String s = ScriptRuntime.toString(args[0]); int len = s.length(); if (len == 0) return ScriptRuntime.NaNobj; int i; char c; // Scan forward to the first digit or . for (i=0; TokenStream.isJSSpace(c = s.charAt(i)) && i+1 < len; i++) /* empty */ ; int start = i; if (c == '+' || c == '-') c = s.charAt(++i); if (c == 'I') { // check for "Infinity" double d; if (i+8 <= len && s.substring(i, i+8).equals("Infinity")) d = s.charAt(start) == '-' ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY; else return ScriptRuntime.NaNobj; return new Double(d); } // Find the end of the legal bit int decimal = -1; int exponent = -1; for (; i < len; i++) { switch (s.charAt(i)) { case '.': if (decimal != -1) // Only allow a single decimal point. break; decimal = i; continue; case 'e': case 'E': if (exponent != -1) break; exponent = i; continue; case '+': case '-': // Only allow '+' or '-' after 'e' or 'E' if (exponent != i-1) break; continue; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': continue; default: break; } break; } s = s.substring(start, i); try { return Double.valueOf(s); } catch (NumberFormatException ex) { return ScriptRuntime.NaNobj; } }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/4ad826a35e76cb27011d7ce32f9515c2d80a93c0/NativeGlobal.java/clean/js/rhino/src/org/mozilla/javascript/NativeGlobal.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3828,
67,
2670,
4723,
12,
1042,
9494,
16,
1033,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
411,
404,
13,
5411,
327,
7739,
5576,
18,
24101,
2279,
441,
31,
3639,
514,
272,
273,
7739,
5576,
18,
10492,
12,
1968,
63,
20,
19226,
3639,
509,
562,
273,
272,
18,
2469,
5621,
3639,
309,
261,
1897,
422,
374,
13,
5411,
327,
7739,
5576,
18,
24101,
2279,
441,
31,
3639,
509,
277,
31,
3639,
1149,
276,
31,
3639,
368,
8361,
5104,
358,
326,
1122,
8035,
578,
263,
3639,
364,
261,
77,
33,
20,
31,
3155,
1228,
18,
291,
46,
1260,
909,
12,
71,
273,
272,
18,
3001,
861,
12,
77,
3719,
597,
277,
15,
21,
411,
562,
31,
277,
27245,
5411,
1748,
1008,
1195,
5411,
274,
3639,
509,
787,
273,
277,
31,
3639,
309,
261,
71,
422,
10058,
747,
276,
422,
4014,
13,
5411,
276,
273,
272,
18,
3001,
861,
12,
9904,
77,
1769,
3639,
309,
261,
71,
422,
296,
45,
6134,
288,
5411,
368,
866,
364,
315,
382,
7850,
6,
5411,
1645,
302,
31,
5411,
309,
261,
77,
15,
28,
1648,
562,
597,
272,
18,
28023,
12,
77,
16,
277,
15,
28,
2934,
14963,
2932,
382,
7850,
6,
3719,
7734,
302,
273,
272,
18,
3001,
861,
12,
1937,
13,
422,
4014,
692,
3698,
18,
5407,
22421,
67,
17716,
4766,
6647,
294,
3698,
18,
7057,
16325,
67,
17716,
31,
5411,
469,
7734,
327,
7739,
5576,
18,
24101,
2279,
441,
31,
5411,
327,
394,
3698,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3828,
67,
2670,
4723,
12,
1042,
9494,
16,
1033,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
411,
404,
13,
5411,
327,
7739,
5576,
18,
24101,
2279,
441,
31,
3639,
514,
272,
273,
7739,
5576,
18,
10492,
12,
1968,
63,
20,
19226,
3639,
509,
562,
273,
272,
18,
2469,
5621,
3639,
309,
261,
1897,
422,
374,
13,
5411,
327,
7739,
5576,
18,
24101,
2279,
441,
31,
3639,
509,
277,
31,
3639,
1149,
276,
31,
3639,
368,
8361,
5104,
358,
326,
1122,
8035,
578,
263,
3639,
364,
261,
77,
33,
20,
31,
3155,
1228,
18,
291,
46,
1260,
909,
12,
71,
273,
272,
18,
3001,
861,
12,
77,
3719,
597,
277,
15,
21,
411,
562,
2
] |
assertSame("should be multiplication", mockMultiplication, parser.parse("1*2")); }
|
assertSame("should be multiplication", mockMultiplication, parser.parse("1*2")); }
|
public void testParsesMultiplication() throws Exception { mockExpressionFactory.expects(once()).method("newLiteral").with(eq(1.0)) .will(returnValue(mockLiteral1)); mockExpressionFactory.expects(once()).method("newLiteral").with(eq(2.0)) .will(returnValue(mockLiteral2)); mockExpressionFactory.expects(once()).method("newMultiplication") .with(same(mockLiteral1), same(mockLiteral2)) .will(returnValue(mockMultiplication)); assertSame("should be multiplication", mockMultiplication, parser.parse("1*2")); }
|
57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/InfixParserTest.java/buggy/jmock/examples/calculator/src/test/jmock/examples/calculator/InfixParserTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
6656,
5002,
1254,
1435,
1216,
1185,
288,
202,
202,
22851,
2300,
1733,
18,
12339,
87,
12,
8243,
1435,
2934,
2039,
2932,
2704,
6177,
20387,
1918,
12,
11253,
12,
21,
18,
20,
3719,
1082,
3639,
263,
20194,
12,
2463,
620,
12,
22851,
6177,
21,
10019,
202,
202,
22851,
2300,
1733,
18,
12339,
87,
12,
8243,
1435,
2934,
2039,
2932,
2704,
6177,
20387,
1918,
12,
11253,
12,
22,
18,
20,
3719,
1082,
3639,
263,
20194,
12,
2463,
620,
12,
22851,
6177,
22,
10019,
202,
202,
22851,
2300,
1733,
18,
12339,
87,
12,
8243,
1435,
2934,
2039,
2932,
2704,
5002,
1254,
7923,
1082,
3639,
263,
1918,
12,
14307,
12,
22851,
6177,
21,
3631,
1967,
12,
22851,
6177,
22,
3719,
1082,
3639,
263,
20194,
12,
2463,
620,
12,
22851,
5002,
1254,
10019,
202,
202,
11231,
8650,
2932,
13139,
506,
23066,
3113,
5416,
5002,
1254,
16,
2082,
18,
2670,
2932,
21,
14,
22,
7923,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
6656,
5002,
1254,
1435,
1216,
1185,
288,
202,
202,
22851,
2300,
1733,
18,
12339,
87,
12,
8243,
1435,
2934,
2039,
2932,
2704,
6177,
20387,
1918,
12,
11253,
12,
21,
18,
20,
3719,
1082,
3639,
263,
20194,
12,
2463,
620,
12,
22851,
6177,
21,
10019,
202,
202,
22851,
2300,
1733,
18,
12339,
87,
12,
8243,
1435,
2934,
2039,
2932,
2704,
6177,
20387,
1918,
12,
11253,
12,
22,
18,
20,
3719,
1082,
3639,
263,
20194,
12,
2463,
620,
12,
22851,
6177,
22,
10019,
202,
202,
22851,
2300,
1733,
18,
12339,
87,
12,
8243,
1435,
2934,
2039,
2932,
2704,
5002,
1254,
7923,
1082,
3639,
263,
1918,
12,
14307,
12,
22851,
6177,
21,
3631,
1967,
12,
22851,
6177,
2
] |
_p = new PrintWriter(stream); _drawingArea = drawingArea; translate( _hInset - drawingArea.x, _vInset - drawingArea.y);
|
_writer = new Utf8Writer(stream); _drawingArea = drawingArea; translate( _hInset - drawingArea.x, _vInset - drawingArea.y);
|
public SVGWriter(OutputStream stream, Rectangle drawingArea) throws IOException, Exception { _p = new PrintWriter(stream); _drawingArea = drawingArea; translate( _hInset - drawingArea.x, _vInset - drawingArea.y); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware(false); factory.setValidating(false); DocumentBuilder builder = factory.newDocumentBuilder(); _svg = builder.newDocument(); _root = _svg.createElement( "svg"); _root.setAttribute("xmlns","http://www.w3.org/2000/svg"); _root.setAttribute( "width", "" + (2 * _hInset + scaleX(_drawingArea.width))); _root.setAttribute( "height", "" + (2 * _vInset + scaleY(_drawingArea.height))); }
|
1732 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1732/84ee26396dff82292a4357b917fb20cc185f2bc6/SVGWriter.java/buggy/src/org/tigris/gef/persistence/SVGWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11281,
2289,
12,
4632,
1407,
16,
13264,
16327,
5484,
13,
1216,
1860,
16,
1185,
288,
3639,
389,
84,
273,
394,
14071,
12,
3256,
1769,
202,
67,
9446,
310,
5484,
273,
16327,
5484,
31,
202,
13929,
12,
389,
76,
382,
542,
300,
16327,
5484,
18,
92,
16,
389,
90,
382,
542,
300,
16327,
5484,
18,
93,
1769,
3639,
30236,
3272,
273,
30236,
18,
2704,
1442,
5621,
3639,
3272,
18,
542,
3402,
10155,
12,
5743,
1769,
3639,
3272,
18,
542,
31496,
12,
5743,
1769,
3639,
4319,
1263,
2089,
273,
3272,
18,
2704,
2519,
1263,
5621,
3639,
389,
11451,
273,
2089,
18,
2704,
2519,
5621,
202,
67,
3085,
273,
389,
11451,
18,
2640,
1046,
12,
315,
11451,
8863,
3639,
389,
3085,
18,
542,
1499,
2932,
16741,
15937,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
17172,
19,
11451,
8863,
202,
67,
3085,
18,
542,
1499,
12,
315,
2819,
3113,
1408,
397,
261,
22,
380,
389,
76,
382,
542,
397,
3159,
60,
24899,
9446,
310,
5484,
18,
2819,
3719,
1769,
202,
67,
3085,
18,
542,
1499,
12,
315,
4210,
3113,
1408,
397,
261,
22,
380,
389,
90,
382,
542,
397,
3159,
61,
24899,
9446,
310,
5484,
18,
4210,
3719,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11281,
2289,
12,
4632,
1407,
16,
13264,
16327,
5484,
13,
1216,
1860,
16,
1185,
288,
3639,
389,
84,
273,
394,
14071,
12,
3256,
1769,
202,
67,
9446,
310,
5484,
273,
16327,
5484,
31,
202,
13929,
12,
389,
76,
382,
542,
300,
16327,
5484,
18,
92,
16,
389,
90,
382,
542,
300,
16327,
5484,
18,
93,
1769,
3639,
30236,
3272,
273,
30236,
18,
2704,
1442,
5621,
3639,
3272,
18,
542,
3402,
10155,
12,
5743,
1769,
3639,
3272,
18,
542,
31496,
12,
5743,
1769,
3639,
4319,
1263,
2089,
273,
3272,
18,
2704,
2519,
1263,
5621,
3639,
389,
11451,
273,
2089,
18,
2704,
2519,
5621,
202,
67,
3085,
273,
389,
11451,
18,
2640,
1046,
12,
315,
11451,
8863,
3639,
389,
2
] |
return ByteBufferHelper.putInt (this, value);
|
ByteBufferHelper.putInt(this, value, order()); return this;
|
final public ByteBuffer putInt (int value) { return ByteBufferHelper.putInt (this, value); }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/cbc6b01a62d01a3bd4a11282dcdebf781800adb9/ByteBufferImpl.java/clean/libraries/javalib/java/nio/ByteBufferImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
7400,
20047,
261,
474,
460,
13,
225,
288,
565,
7400,
2276,
18,
458,
1702,
12,
2211,
16,
460,
16,
1353,
10663,
327,
333,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
7400,
20047,
261,
474,
460,
13,
225,
288,
565,
7400,
2276,
18,
458,
1702,
12,
2211,
16,
460,
16,
1353,
10663,
327,
333,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Document docContext = (Node.DOCUMENT_NODE == context.getNodeType()) ? (Document)context : context.getOwnerDocument(); XObject arg = (XObject)this.getArg0().execute(xctxt);
|
Document docContext = (Node.DOCUMENT_NODE == context.getNodeType()) ? (Document) context : context.getOwnerDocument(); XObject arg = (XObject) this.getArg0().execute(xctxt);
|
public XObject execute(XPathContext xctxt) throws org.xml.sax.SAXException { Node context = xctxt.getCurrentNode(); Document docContext = (Node.DOCUMENT_NODE == context.getNodeType()) ? (Document)context : context.getOwnerDocument(); XObject arg = (XObject)this.getArg0().execute(xctxt); String base = ""; Expression arg1Expr = this.getArg1(); if(null != arg1Expr) { // The URI reference may be relative. The base URI (see [3.2 Base URI]) // of the node in the second argument node-set that is first in document // order is used as the base URI for resolving the // relative URI into an absolute URI. XObject arg2 = arg1Expr.execute(xctxt); if(XObject.CLASS_NODESET == arg2.getType()) { Node baseNode = arg2.nodeset().nextNode(); if (baseNode == null) warn(xctxt, XSLTErrorResources.WG_EMPTY_SECOND_ARG, null); Document baseDoc = (baseNode == null ? null : (Node.DOCUMENT_NODE == baseNode.getNodeType()) ? (Document)baseNode : baseNode.getOwnerDocument()); if(baseDoc == null || baseDoc instanceof Stylesheet) { // base = ((Stylesheet)baseDoc).getBaseIdentifier(); base = xctxt.getNamespaceContext().getBaseIdentifier(); } else base = xctxt.getSourceTreeManager().findURIFromDoc(baseDoc); } else { base = arg2.str(); } } else { // If the second argument is omitted, then it defaults to // the node in the stylesheet that contains the expression that // includes the call to the document function. Note that a // zero-length URI reference is a reference to the document // relative to which the URI reference is being resolved; thus // document("") refers to the root node of the stylesheet; // the tree representation of the stylesheet is exactly // the same as if the XML document containing the stylesheet // was the initial source document. base = xctxt.getNamespaceContext().getBaseIdentifier(); } XNodeSet nodes = new XNodeSet(); NodeSet mnl = nodes.mutableNodeset(); NodeIterator iterator = (XObject.CLASS_NODESET == arg.getType()) ? arg.nodeset() : null; Node pos = null; while((null == iterator) || (null != (pos = iterator.nextNode()))) { String ref = (null != iterator) ? DOMHelper.getNodeData(pos) : arg.str(); if(null == ref) continue; if(null == docContext) { error(xctxt, XSLTErrorResources.ER_NO_CONTEXT_OWNERDOC, null); //"context does not have an owner document!"); } // From http://www.ics.uci.edu/pub/ietf/uri/rfc1630.txt // A partial form can be distinguished from an absolute form in that the // latter must have a colon and that colon must occur before any slash // characters. Systems not requiring partial forms should not use any // unencoded slashes in their naming schemes. If they do, absolute URIs // will still work, but confusion may result. int indexOfColon = ref.indexOf(':'); int indexOfSlash = ref.indexOf('/'); if((indexOfColon != -1) && (indexOfSlash != -1) && (indexOfColon < indexOfSlash)) { // The url (or filename, for that matter) is absolute. base = null; } Node newDoc = getDoc(xctxt, context, ref, base); // nodes.mutableNodeset().addNode(newDoc); if(null != newDoc) { // TODO: mnl.addNodeInDocOrder(newDoc, true, xctxt); ?? mnl.addElement(newDoc); } if(null == iterator) break; } return nodes; }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/FuncDocument.java/buggy/src/org/apache/xalan/templates/FuncDocument.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1139,
921,
1836,
12,
14124,
1042,
25465,
13,
377,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
225,
288,
3639,
2029,
819,
273,
25465,
18,
588,
3935,
907,
5621,
565,
4319,
997,
1042,
273,
261,
907,
18,
18450,
67,
8744,
422,
819,
18,
588,
15101,
10756,
21821,
692,
261,
2519,
13,
2472,
294,
819,
18,
588,
5541,
2519,
5621,
565,
1139,
921,
1501,
273,
261,
60,
921,
13,
2211,
18,
588,
4117,
20,
7675,
8837,
12,
92,
20364,
1769,
565,
514,
1026,
273,
1408,
31,
565,
5371,
1501,
21,
4742,
273,
333,
18,
588,
4117,
21,
5621,
565,
309,
12,
2011,
480,
1501,
21,
4742,
13,
565,
288,
1377,
368,
1021,
3699,
2114,
2026,
506,
3632,
18,
1021,
1026,
3699,
261,
5946,
306,
23,
18,
22,
3360,
3699,
5717,
4202,
368,
434,
326,
756,
316,
326,
2205,
1237,
756,
17,
542,
716,
353,
1122,
316,
1668,
4202,
368,
1353,
353,
1399,
487,
326,
1026,
3699,
364,
17188,
326,
4202,
368,
3632,
3699,
1368,
392,
4967,
3699,
18,
4202,
1139,
921,
1501,
22,
273,
1501,
21,
4742,
18,
8837,
12,
92,
20364,
1769,
1377,
309,
12,
60,
921,
18,
5237,
67,
8744,
4043,
422,
1501,
22,
18,
588,
559,
10756,
1377,
288,
3639,
2029,
1026,
907,
273,
1501,
22,
18,
4690,
278,
7675,
4285,
907,
5621,
7734,
309,
261,
1969,
907,
422,
446,
13,
1850,
1894,
12,
92,
20364,
16,
20751,
668,
3805,
18,
59,
43,
67,
13625,
67,
16328,
67,
10973,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1139,
921,
1836,
12,
14124,
1042,
25465,
13,
377,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
225,
288,
3639,
2029,
819,
273,
25465,
18,
588,
3935,
907,
5621,
565,
4319,
997,
1042,
273,
261,
907,
18,
18450,
67,
8744,
422,
819,
18,
588,
15101,
10756,
21821,
692,
261,
2519,
13,
2472,
294,
819,
18,
588,
5541,
2519,
5621,
565,
1139,
921,
1501,
273,
261,
60,
921,
13,
2211,
18,
588,
4117,
20,
7675,
8837,
12,
92,
20364,
1769,
565,
514,
1026,
273,
1408,
31,
565,
5371,
1501,
21,
4742,
273,
333,
18,
588,
4117,
21,
5621,
565,
309,
12,
2011,
480,
1501,
21,
4742,
13,
565,
288,
1377,
368,
1021,
3699,
2114,
2026,
2
] |
throws IOException { JspWriter out = pageContext.getOut(); HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); if (collections != null) { out.print("<tr><td class=\"metadataFieldLabel\">" + "Appears in Collections:</td><td class=\"metadataFieldValue\">"); for (int i = 0; i < collections.length; i++) { out.print("<A HREF=\""); out.print(request.getContextPath()); out.print("/handle/"); out.print(collections[i].getHandle()); out.print("\">"); out.print(collections[i].getMetadata("name")); out.print("</A><BR>"); } out.println("</td></tr>"); } }
|
throws IOException { JspWriter out = pageContext.getOut(); HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); if (collections != null) { out.print("<tr><td class=\"metadataFieldLabel\">" + "Appears in Collections:</td><td class=\"metadataFieldValue\">"); for (int i = 0; i < collections.length; i++) { out.print("<A HREF=\""); out.print(request.getContextPath()); out.print("/handle/"); out.print(collections[i].getHandle()); out.print("\">"); out.print(collections[i].getMetadata("name")); out.print("</A><BR>"); } out.println("</td></tr>"); } }
|
private void listCollections() throws IOException { JspWriter out = pageContext.getOut(); HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); if (collections != null) { out.print("<tr><td class=\"metadataFieldLabel\">" + "Appears in Collections:</td><td class=\"metadataFieldValue\">"); for (int i = 0; i < collections.length; i++) { out.print("<A HREF=\""); out.print(request.getContextPath()); out.print("/handle/"); out.print(collections[i].getHandle()); out.print("\">"); out.print(collections[i].getMetadata("name")); out.print("</A><BR>"); } out.println("</td></tr>"); } }
|
31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/d6a4245fc7794957c945bba7f1baa61ba2afa2b5/ItemTag.java/buggy/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
666,
15150,
1435,
3639,
1216,
1860,
565,
288,
3639,
19300,
2289,
596,
273,
21442,
18,
588,
1182,
5621,
3639,
9984,
590,
273,
5411,
261,
2940,
18572,
13,
21442,
18,
588,
691,
5621,
5411,
309,
261,
19246,
480,
446,
13,
3639,
288,
5411,
596,
18,
1188,
2932,
32,
313,
4438,
4465,
667,
5189,
4165,
974,
2224,
21121,
397,
7734,
315,
1294,
347,
5913,
316,
5737,
19814,
4465,
4438,
4465,
667,
5189,
4165,
13559,
21121,
1769,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6980,
18,
2469,
31,
277,
27245,
5411,
288,
7734,
596,
18,
1188,
2932,
32,
37,
670,
10771,
5189,
8863,
7734,
596,
18,
1188,
12,
2293,
18,
29120,
743,
10663,
7734,
596,
18,
1188,
2932,
19,
4110,
4898,
1769,
7734,
596,
18,
1188,
12,
19246,
63,
77,
8009,
588,
3259,
10663,
7734,
596,
18,
1188,
2932,
21121,
1769,
7734,
596,
18,
1188,
12,
19246,
63,
77,
8009,
588,
2277,
2932,
529,
7923,
1769,
7734,
596,
18,
1188,
2932,
1757,
37,
4438,
7192,
2984,
1769,
5411,
289,
5411,
596,
18,
8222,
2932,
1757,
4465,
4695,
313,
2984,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
666,
15150,
1435,
3639,
1216,
1860,
565,
288,
3639,
19300,
2289,
596,
273,
21442,
18,
588,
1182,
5621,
3639,
9984,
590,
273,
5411,
261,
2940,
18572,
13,
21442,
18,
588,
691,
5621,
5411,
309,
261,
19246,
480,
446,
13,
3639,
288,
5411,
596,
18,
1188,
2932,
32,
313,
4438,
4465,
667,
5189,
4165,
974,
2224,
21121,
397,
7734,
315,
1294,
347,
5913,
316,
5737,
19814,
4465,
4438,
4465,
667,
5189,
4165,
13559,
21121,
1769,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6980,
18,
2469,
31,
277,
27245,
5411,
288,
7734,
596,
18,
1188,
2932,
32,
37,
670,
10771,
5189,
8863,
7734,
596,
18,
1188,
12,
2293,
18,
29120,
743,
10663,
7734,
596,
18,
2
] |
public int getPriority() { return priority; }
|
public int getPriority() { return priority; }
|
public int getPriority() { return priority; }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/db81257d917ebece0f698552e2128163ed643e02/Decision.java/clean/src_new/org/argouml/cognitive/Decision.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
25332,
1435,
288,
327,
4394,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
509,
25332,
1435,
288,
327,
4394,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String result = ""; try { result = _properties.getProperty(key, defaultValue); } catch (Exception e) { result = defaultValue; } if (Configuration.cat.isDebugEnabled()) Configuration.cat.debug("key '" + key + "' returns '" + result + "'"); return result; }
|
String result = ""; try { result = _properties.getProperty(key, defaultValue); } catch (Exception e) { result = defaultValue; } if (Configuration.cat.isDebugEnabled()) Configuration.cat.debug("key '" + key + "' returns '" + result + "'"); return result; }
|
public String getValue(String key, String defaultValue) { String result = ""; try { result = _properties.getProperty(key, defaultValue); } catch (Exception e) { result = defaultValue; } if (Configuration.cat.isDebugEnabled()) Configuration.cat.debug("key '" + key + "' returns '" + result + "'"); return result; }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/ConfigurationProperties.java/clean/src_new/org/argouml/application/configuration/ConfigurationProperties.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2366,
12,
780,
498,
16,
514,
4593,
13,
288,
1377,
514,
563,
273,
1408,
31,
1377,
775,
288,
1850,
563,
273,
389,
4738,
18,
588,
1396,
12,
856,
16,
4593,
1769,
1377,
289,
1377,
1044,
261,
503,
425,
13,
288,
1850,
563,
273,
4593,
31,
1377,
289,
1377,
309,
261,
1750,
18,
2574,
18,
291,
2829,
1526,
10756,
202,
225,
4659,
18,
2574,
18,
4148,
2932,
856,
2119,
397,
498,
4405,
225,
397,
2491,
1135,
2119,
397,
563,
397,
5862,
1769,
1377,
327,
563,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2366,
12,
780,
498,
16,
514,
4593,
13,
288,
1377,
514,
563,
273,
1408,
31,
1377,
775,
288,
1850,
563,
273,
389,
4738,
18,
588,
1396,
12,
856,
16,
4593,
1769,
1377,
289,
1377,
1044,
261,
503,
425,
13,
288,
1850,
563,
273,
4593,
31,
1377,
289,
1377,
309,
261,
1750,
18,
2574,
18,
291,
2829,
1526,
10756,
202,
225,
4659,
18,
2574,
18,
4148,
2932,
856,
2119,
397,
498,
4405,
225,
397,
2491,
1135,
2119,
397,
563,
397,
5862,
1769,
1377,
327,
563,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw new BAD_OPERATION("Extracting " + typeNamer.nameIt(kind) + " when stored " + typeNamer.nameIt(xKind) );
|
if (!( xKind == TCKind._tk_alias && has._type().kind().value() == kind ) ) throw new BAD_OPERATION("Extracting " + typeNamer.nameIt(kind) + " when stored " + typeNamer.nameIt(xKind) );
|
protected void check(int kind) throws BAD_OPERATION { if (has == null) throw new BAD_OPERATION("value not set"); if (xKind >= 0) { if (xKind != kind) throw new BAD_OPERATION("Extracting " + typeNamer.nameIt(kind) + " when stored " + typeNamer.nameIt(xKind) ); } else { if (type().kind().value() != kind) throw new BAD_OPERATION("Extracting " + typeNamer.nameIt(kind) + " stored " + typeNamer.nameIt(type()) ); } }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/36718ba08db6631df8ab9fb801d408ca98ad4420/gnuAny.java/buggy/gnu/CORBA/gnuAny.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
866,
12,
474,
3846,
13,
7734,
1216,
16467,
67,
22040,
225,
288,
565,
309,
261,
5332,
422,
446,
13,
1377,
604,
394,
16467,
67,
22040,
2932,
1132,
486,
444,
8863,
565,
309,
261,
92,
5677,
1545,
374,
13,
1377,
288,
3639,
309,
261,
92,
5677,
480,
3846,
13,
1850,
604,
394,
16467,
67,
22040,
2932,
4976,
310,
315,
397,
618,
50,
24458,
18,
529,
7193,
12,
9224,
13,
397,
21394,
315,
1347,
4041,
315,
397,
618,
50,
24458,
18,
529,
7193,
12,
92,
5677,
13,
4766,
11272,
1377,
289,
565,
469,
1377,
288,
3639,
309,
261,
723,
7675,
9224,
7675,
1132,
1435,
480,
3846,
13,
1850,
604,
394,
16467,
67,
22040,
2932,
4976,
310,
315,
397,
618,
50,
24458,
18,
529,
7193,
12,
9224,
13,
397,
21394,
315,
4041,
315,
397,
618,
50,
24458,
18,
529,
7193,
12,
723,
10756,
4766,
11272,
1377,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
866,
12,
474,
3846,
13,
7734,
1216,
16467,
67,
22040,
225,
288,
565,
309,
261,
5332,
422,
446,
13,
1377,
604,
394,
16467,
67,
22040,
2932,
1132,
486,
444,
8863,
565,
309,
261,
92,
5677,
1545,
374,
13,
1377,
288,
3639,
309,
261,
92,
5677,
480,
3846,
13,
1850,
604,
394,
16467,
67,
22040,
2932,
4976,
310,
315,
397,
618,
50,
24458,
18,
529,
7193,
12,
9224,
13,
397,
21394,
315,
1347,
4041,
315,
397,
618,
50,
24458,
18,
529,
7193,
12,
92,
5677,
13,
4766,
11272,
1377,
289,
565,
469,
1377,
288,
3639,
309,
261,
723,
7675,
9224,
7675,
1132,
1435,
480,
3846,
13,
1850,
604,
394,
16467,
67,
22040,
2932,
4976,
310,
315,
397,
2
] |
public org.quickfix.field.UnderlyingSecurityType getUnderlyingSecurityType() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityType value = new org.quickfix.field.UnderlyingSecurityType();
|
public quickfix.field.UnderlyingSecurityType getUnderlyingSecurityType() throws FieldNotFound { quickfix.field.UnderlyingSecurityType value = new quickfix.field.UnderlyingSecurityType();
|
public org.quickfix.field.UnderlyingSecurityType getUnderlyingSecurityType() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityType value = new org.quickfix.field.UnderlyingSecurityType(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteRequest.java/buggy/src/java/src/quickfix/fix44/QuoteRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
559,
10833,
765,
6291,
4368,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
559,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
559,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
559,
10833,
765,
6291,
4368,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
559,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
559,
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
] |
IPluginContribution pc = new IPluginContribution() { /* (non-Javadoc) * @see org.eclipse.ui.IPluginContribution#getLocalId() */ public String getLocalId() { return menuElement.getAttribute(ATT_ID); } /* (non-Javadoc) * @see org.eclipse.ui.IPluginContribution#getPluginId() */ public String getPluginId() { return menuElement.getDeclaringExtension() .getNamespace(); } }; if (WorkbenchActivityHelper.filterItem(pc)) continue;
|
public void contribute(IMenuManager menu, boolean menuAppendIfMissing, IToolBarManager toolbar, boolean toolAppendIfMissing) { if (menus != null && menu != null) { for (int i = 0; i < menus.size(); i++) { final IConfigurationElement menuElement = (IConfigurationElement) menus .get(i); IPluginContribution pc = new IPluginContribution() { /* (non-Javadoc) * @see org.eclipse.ui.IPluginContribution#getLocalId() */ public String getLocalId() { return menuElement.getAttribute(ATT_ID); } /* (non-Javadoc) * @see org.eclipse.ui.IPluginContribution#getPluginId() */ public String getPluginId() { return menuElement.getDeclaringExtension() .getNamespace(); } }; if (WorkbenchActivityHelper.filterItem(pc)) continue; contributeMenu(menuElement, menu, menuAppendIfMissing); } } if (actions != null) { for (int i = 0; i < actions.size(); i++) { ActionDescriptor ad = (ActionDescriptor) actions.get(i); if (WorkbenchActivityHelper.filterItem(ad)) continue; if (menu != null) contributeMenuAction(ad, menu, menuAppendIfMissing); if (toolbar != null) contributeToolbarAction(ad, toolbar, toolAppendIfMissing); } } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/aa809617cf24457419a7fdcb4a32b4b52487bdd2/PluginActionBuilder.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PluginActionBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
356,
887,
12,
3445,
2104,
1318,
3824,
16,
1250,
3824,
5736,
2047,
4841,
16,
7734,
467,
6364,
5190,
1318,
12748,
16,
1250,
5226,
5736,
2047,
4841,
13,
288,
5411,
309,
261,
26065,
480,
446,
597,
3824,
480,
446,
13,
288,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
21374,
18,
1467,
5621,
277,
27245,
288,
10792,
727,
467,
1750,
1046,
3824,
1046,
273,
261,
45,
1750,
1046,
13,
21374,
18701,
263,
588,
12,
77,
1769,
10792,
467,
3773,
442,
4027,
6125,
273,
394,
467,
3773,
442,
4027,
1435,
288,
13491,
1748,
261,
5836,
17,
24060,
13,
7682,
380,
632,
5946,
2358,
18,
20416,
18,
4881,
18,
45,
3773,
442,
4027,
7,
588,
2042,
548,
1435,
7682,
1195,
13491,
1071,
514,
6993,
548,
1435,
288,
18701,
327,
3824,
1046,
18,
588,
1499,
12,
789,
56,
67,
734,
1769,
13491,
289,
13491,
1748,
261,
5836,
17,
24060,
13,
7682,
380,
632,
5946,
2358,
18,
20416,
18,
4881,
18,
45,
3773,
442,
4027,
7,
588,
3773,
548,
1435,
7682,
1195,
13491,
1071,
514,
16319,
548,
1435,
288,
18701,
327,
3824,
1046,
18,
588,
3456,
5968,
3625,
1435,
4766,
565,
263,
588,
3402,
5621,
13491,
289,
10792,
289,
31,
10792,
309,
261,
2421,
22144,
6193,
2276,
18,
2188,
1180,
12,
2436,
3719,
13491,
1324,
31,
10792,
356,
887,
4599,
12,
5414,
1046,
16,
3824,
16,
3824,
5736,
2047,
4841,
1769,
7734,
289,
5411,
289,
5411,
309,
261,
4905,
480,
446,
13,
288,
7734,
364,
261,
474,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
356,
887,
12,
3445,
2104,
1318,
3824,
16,
1250,
3824,
5736,
2047,
4841,
16,
7734,
467,
6364,
5190,
1318,
12748,
16,
1250,
5226,
5736,
2047,
4841,
13,
288,
5411,
309,
261,
26065,
480,
446,
597,
3824,
480,
446,
13,
288,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
21374,
18,
1467,
5621,
277,
27245,
288,
10792,
727,
467,
1750,
1046,
3824,
1046,
273,
261,
45,
1750,
1046,
13,
21374,
18701,
263,
588,
12,
77,
1769,
10792,
467,
3773,
442,
4027,
6125,
273,
394,
467,
3773,
442,
4027,
1435,
288,
13491,
1748,
261,
5836,
17,
24060,
13,
7682,
380,
632,
5946,
2358,
18,
20416,
18,
4881,
18,
45,
3773,
442,
4027,
7,
588,
2042,
548,
2
] |
|
Button add = toolkit.createButton(container, "Add", SWT.PUSH | SWT.CENTER); add.addSelectionListener(new SelectionAdapter() {
|
Button addButton = toolkit.createButton(container, " Add ", SWT.PUSH | SWT.CENTER); addButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { addLink(); } }); Button deleteButton = toolkit.createButton(container, "Delete", SWT.PUSH | SWT.CENTER); deleteButton.setText("Delete"); deleteButton.addSelectionListener(new SelectionAdapter() {
|
private void createAddDeleteButtons(Composite parent, FormToolkit toolkit) { Composite container = toolkit.createComposite(parent); container.setLayout(new GridLayout(1, true)); Button add = toolkit.createButton(container, "Add", SWT.PUSH | SWT.CENTER); add.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { InputDialog dialog = new InputDialog(Display.getDefault().getActiveShell(), "New related link", "Enter new related link for this task", "", null); dialog.open(); String url = null; String link = dialog.getValue(); if (!(link.startsWith("http://") || link.startsWith("https://"))) { url = "http://" + link; } else { url = link; } links.add(url); tableViewer.add(url); } }); Button delete = toolkit.createButton(container, "Delete", SWT.PUSH | SWT.CENTER); delete.setText("Delete"); delete.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { String url = (String) ((IStructuredSelection) tableViewer .getSelection()).getFirstElement(); if (url != null) { links.remove(url); tableViewer.remove(url); } } }); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/28cd3239ff0e182c6b8596d7ddd2a18879adcf98/TaskSummaryEditor.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskSummaryEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
986,
2613,
14388,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
9400,
1478,
273,
5226,
8691,
18,
2640,
9400,
12,
2938,
1769,
202,
202,
3782,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
21,
16,
638,
10019,
202,
202,
3616,
527,
273,
5226,
8691,
18,
2640,
3616,
12,
3782,
16,
315,
986,
3113,
348,
8588,
18,
30348,
571,
348,
8588,
18,
19835,
1769,
202,
202,
1289,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
25083,
202,
36,
6618,
1082,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
1210,
6353,
6176,
273,
394,
2741,
6353,
12,
4236,
18,
588,
1868,
7675,
588,
3896,
13220,
9334,
315,
1908,
3746,
1692,
3113,
9944,
202,
6,
10237,
394,
3746,
1692,
364,
333,
1562,
3113,
23453,
446,
1769,
9506,
202,
12730,
18,
3190,
5621,
9506,
202,
780,
880,
273,
446,
31,
9506,
202,
780,
1692,
273,
6176,
18,
24805,
5621,
9506,
202,
430,
16051,
12,
1232,
18,
17514,
1190,
2932,
2505,
2207,
7923,
747,
1692,
18,
17514,
1190,
2932,
4528,
14334,
20349,
288,
6862,
202,
718,
273,
315,
2505,
14334,
397,
1692,
31,
6862,
6862,
202,
97,
469,
288,
6862,
202,
718,
273,
1692,
31,
9506,
202,
97,
9506,
202,
7135,
18,
1289,
12,
718,
1769,
9506,
202,
2121,
18415,
18,
1289,
12,
718,
1769,
6862,
1082,
202,
97,
202,
202,
22938,
202,
202,
3616,
1430,
273,
5226,
8691,
18,
2640,
3616,
12,
3782,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
986,
2613,
14388,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
9400,
1478,
273,
5226,
8691,
18,
2640,
9400,
12,
2938,
1769,
202,
202,
3782,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
21,
16,
638,
10019,
202,
202,
3616,
527,
273,
5226,
8691,
18,
2640,
3616,
12,
3782,
16,
315,
986,
3113,
348,
8588,
18,
30348,
571,
348,
8588,
18,
19835,
1769,
202,
202,
1289,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
25083,
202,
36,
6618,
1082,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
1210,
6353,
6176,
273,
394,
2741,
6353,
12,
4236,
18,
588,
1868,
7675,
588,
3896,
2
] |
if ((fParentResource == null && fOriginalResource == null) && (event.getChangedProperty() != null && event .getChangedProperty() .equals(IBuildPropertiesConstants.PROPERTY_BIN_INCLUDES))) { if (event.getOldValue() == null && event.getNewValue() != null) { IFile file = fProject.getFile(new Path(event.getNewValue() .toString())); if (!file.exists())
|
if (fParentResource == null && fOriginalResource == null){ if (event.getChangedProperty() != null && event .getChangedProperty() .equals(IBuildPropertiesConstants.PROPERTY_BIN_INCLUDES)) { if (event.getOldValue() == null && event.getNewValue() != null) { IFile file = fProject.getFile(new Path(event.getNewValue() .toString())); if (!file.exists()) return; fParentResource = fOriginalResource = file; isChecked = true; } else if (event.getOldValue() != null && event.getNewValue() == null) { IFile file = fProject.getFile(new Path(event.getOldValue() .toString())); if (!file.exists()) return; fParentResource = fOriginalResource = file; isChecked = false; } else {
|
public void modelChanged(IModelChangedEvent event) { if (event.getChangeType() == IModelChangedEvent.WORLD_CHANGED) { markStale(); } Object changeObject = event.getChangedObjects()[0]; if (!(changeObject instanceof IBuildEntry && (((IBuildEntry) changeObject) .getName().equals( IBuildPropertiesConstants.PROPERTY_BIN_EXCLUDES) || ((IBuildEntry) changeObject) .getName().equals( IBuildPropertiesConstants.PROPERTY_BIN_INCLUDES)))) return; if ((fParentResource == null && fOriginalResource != null) || (fOriginalResource == null && fParentResource != null)) { initializeCheckState(); return; } if ((fParentResource == null && fOriginalResource == null) && (event.getChangedProperty() != null && event .getChangedProperty() .equals(IBuildPropertiesConstants.PROPERTY_BIN_INCLUDES))) { if (event.getOldValue() == null && event.getNewValue() != null) { // adding token IFile file = fProject.getFile(new Path(event.getNewValue() .toString())); if (!file.exists()) return; fParentResource = fOriginalResource = file; isChecked = true; } else if (event.getOldValue() != null && event.getNewValue() == null) { // removing token IFile file = fProject.getFile(new Path(event.getOldValue() .toString())); if (!file.exists()) return; fParentResource = fOriginalResource = file; isChecked = false; } else { return; } } fTreeViewer.setChecked(fParentResource, isChecked); fTreeViewer.setGrayed(fOriginalResource, false); fTreeViewer.setParentsGrayed(fParentResource, true); setParentsChecked(fParentResource); fTreeViewer.setGrayed(fParentResource, false); if (fParentResource instanceof IFolder) { fTreeViewer.setSubtreeChecked(fParentResource, isChecked); setChildrenGrayed(fParentResource, false); } while (!fOriginalResource.equals(fParentResource)) { fTreeViewer.setChecked(fOriginalResource, isChecked); fOriginalResource = fOriginalResource.getParent(); } fParentResource = null; fOriginalResource = null; }
|
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/bdb74eef218581f5fa19a65ade72c160e3ea7abe/BinSection.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/build/BinSection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
938,
5033,
12,
45,
1488,
27553,
871,
13,
288,
202,
202,
430,
261,
2575,
18,
588,
3043,
559,
1435,
422,
467,
1488,
27553,
18,
5613,
12069,
67,
24435,
13,
288,
1082,
202,
3355,
19155,
5621,
202,
202,
97,
202,
202,
921,
2549,
921,
273,
871,
18,
588,
5033,
4710,
1435,
63,
20,
15533,
202,
202,
430,
16051,
12,
3427,
921,
1276,
467,
3116,
1622,
597,
261,
12443,
45,
3116,
1622,
13,
2549,
921,
13,
9506,
202,
18,
17994,
7675,
14963,
12,
25083,
202,
45,
3116,
2297,
2918,
18,
9900,
67,
12615,
67,
2294,
14829,
55,
13,
747,
14015,
45,
3116,
1622,
13,
2549,
921,
13,
9506,
202,
18,
17994,
7675,
14963,
12,
25083,
202,
45,
3116,
2297,
2918,
18,
9900,
67,
12615,
67,
26003,
55,
3719,
3719,
1082,
202,
2463,
31,
202,
202,
430,
14015,
74,
3054,
1420,
422,
446,
597,
284,
8176,
1420,
480,
446,
13,
9506,
202,
20081,
261,
74,
8176,
1420,
422,
446,
597,
284,
3054,
1420,
480,
446,
3719,
288,
1082,
202,
11160,
1564,
1119,
5621,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
14015,
74,
3054,
1420,
422,
446,
597,
284,
8176,
1420,
422,
446,
13,
9506,
202,
10,
10,
261,
2575,
18,
588,
5033,
1396,
1435,
480,
446,
597,
871,
25083,
202,
18,
588,
5033,
1396,
1435,
25083,
202,
18,
14963,
12,
45,
3116,
2297,
2918,
18,
9900,
67,
12615,
67,
26003,
55,
20349,
288,
1082,
202,
430,
261,
2575,
18,
588,
7617,
620,
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,
225,
202,
482,
918,
938,
5033,
12,
45,
1488,
27553,
871,
13,
288,
202,
202,
430,
261,
2575,
18,
588,
3043,
559,
1435,
422,
467,
1488,
27553,
18,
5613,
12069,
67,
24435,
13,
288,
1082,
202,
3355,
19155,
5621,
202,
202,
97,
202,
202,
921,
2549,
921,
273,
871,
18,
588,
5033,
4710,
1435,
63,
20,
15533,
202,
202,
430,
16051,
12,
3427,
921,
1276,
467,
3116,
1622,
597,
261,
12443,
45,
3116,
1622,
13,
2549,
921,
13,
9506,
202,
18,
17994,
7675,
14963,
12,
25083,
202,
45,
3116,
2297,
2918,
18,
9900,
67,
12615,
67,
2294,
14829,
55,
13,
747,
14015,
45,
3116,
1622,
13,
2549,
921,
13,
9506,
202,
18,
17994,
7675,
14963,
12,
25083,
202,
45,
2
] |
String location = configurationElement.getAttribute(ATT_LOCATION);
|
String location = configurationElement.getAttribute(IWorkbenchRegistryConstants.ATT_LOCATION);
|
public int getLocation() { int direction = IPageLayout.RIGHT; String location = configurationElement.getAttribute(ATT_LOCATION); if (location != null) { if (location.equalsIgnoreCase("left")) //$NON-NLS-1$ direction = IPageLayout.LEFT; else if (location.equalsIgnoreCase("top")) //$NON-NLS-1$ direction = IPageLayout.TOP; else if (location.equalsIgnoreCase("bottom")) //$NON-NLS-1$ direction = IPageLayout.BOTTOM; //no else for right - it is the default value; } return direction; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/23cbb9b66f3df77f808e086e90482a516f0c469f/StickyViewDescriptor.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/StickyViewDescriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
13312,
1435,
288,
377,
202,
474,
4068,
273,
467,
1964,
3744,
18,
11847,
31,
377,
202,
377,
202,
780,
2117,
273,
1664,
1046,
18,
588,
1499,
12,
45,
2421,
22144,
4243,
2918,
18,
789,
56,
67,
15277,
1769,
3639,
309,
261,
3562,
480,
446,
13,
288,
5411,
309,
261,
3562,
18,
14963,
5556,
2932,
4482,
6,
3719,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
4068,
273,
467,
1964,
3744,
18,
10066,
31,
5411,
469,
309,
261,
3562,
18,
14963,
5556,
2932,
3669,
6,
3719,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
4068,
273,
467,
1964,
3744,
18,
10462,
31,
5411,
469,
309,
261,
3562,
18,
14963,
5556,
2932,
9176,
6,
3719,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
4068,
273,
467,
1964,
3744,
18,
28891,
31,
5411,
368,
2135,
469,
364,
2145,
300,
518,
353,
326,
805,
460,
31,
3639,
289,
377,
202,
3639,
327,
4068,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
13312,
1435,
288,
377,
202,
474,
4068,
273,
467,
1964,
3744,
18,
11847,
31,
377,
202,
377,
202,
780,
2117,
273,
1664,
1046,
18,
588,
1499,
12,
45,
2421,
22144,
4243,
2918,
18,
789,
56,
67,
15277,
1769,
3639,
309,
261,
3562,
480,
446,
13,
288,
5411,
309,
261,
3562,
18,
14963,
5556,
2932,
4482,
6,
3719,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
4068,
273,
467,
1964,
3744,
18,
10066,
31,
5411,
469,
309,
261,
3562,
18,
14963,
5556,
2932,
3669,
6,
3719,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
4068,
273,
467,
1964,
3744,
18,
10462,
31,
5411,
469,
309,
261,
3562,
18,
14963,
5556,
2932,
9176,
6,
3719,
4329,
3993,
17,
2
] |
suite.addTestSuite(ApiSignatureTest.class); suite.addTestSuite(ClassLoaderTest.class); suite.addTestSuite(ConfigurationExceptionTest.class); suite.addTestSuite(HandleTest.class); suite.addTestSuite(InvalidHandleExceptionTest.class); suite.addTestSuite(InvalidRuleSessionExceptionTest.class); suite.addTestSuite(ObjectFilterTest.class); suite.addTestSuite(RuleExceptionTest.class); suite.addTestSuite(RuleExecutionExceptionTest.class); suite.addTestSuite(RuleExecutionSetMetadataTest.class); suite.addTestSuite(RuleExecutionSetNotFoundExceptionTest.class); suite.addTestSuite(RuleRuntimeTest.class); suite.addTestSuite(RuleServiceProviderManagerTest.class); suite.addTestSuite(RuleServiceProviderTest.class); suite.addTestSuite(RuleSessionCreateExceptionTest.class); suite.addTestSuite(RuleSessionTest.class); suite.addTestSuite(RuleSessionTypeUnsupportedExceptionTest.class); suite.addTestSuite(LocalRuleExecutionSetProviderTest.class); suite.addTestSuite(RuleAdministrationExceptionTest.class); suite.addTestSuite(RuleAdministratorTest.class); suite.addTestSuite(RuleExecutionSetCreateExceptionTest.class); suite.addTestSuite(RuleExecutionSetRegisterExceptionTest.class); suite.addTestSuite(RuleExecutionSetTest.class); suite.addTestSuite(RuleExecutionSetDeregistrationExceptionTest.class); suite.addTestSuite(RuleTest.class); return suite;
|
suite.addTestSuite(ApiSignatureTest.class); suite.addTestSuite(ClassLoaderTest.class); suite.addTestSuite(ConfigurationExceptionTest.class); suite.addTestSuite(HandleTest.class); suite.addTestSuite(InvalidHandleExceptionTest.class); suite.addTestSuite(InvalidRuleSessionExceptionTest.class); suite.addTestSuite(ObjectFilterTest.class); suite.addTestSuite(RuleExceptionTest.class); suite.addTestSuite(RuleExecutionExceptionTest.class); suite.addTestSuite(RuleExecutionSetMetadataTest.class); suite.addTestSuite(RuleExecutionSetNotFoundExceptionTest.class); suite.addTestSuite(RuleRuntimeTest.class); suite.addTestSuite(RuleServiceProviderManagerTest.class); suite.addTestSuite(RuleServiceProviderTest.class); suite.addTestSuite(RuleSessionCreateExceptionTest.class); suite.addTestSuite(RuleSessionTest.class); suite.addTestSuite(RuleSessionTypeUnsupportedExceptionTest.class); suite.addTestSuite(StatefulRuleSessionTest.class); suite.addTestSuite(StatelessRuleSessionTest.class); suite.addTestSuite(LocalRuleExecutionSetProviderTest.class); suite.addTestSuite(RuleAdministrationExceptionTest.class); suite.addTestSuite(RuleAdministratorTest.class); suite.addTestSuite(RuleExecutionSetCreateExceptionTest.class); suite.addTestSuite(RuleExecutionSetRegisterExceptionTest.class); suite.addTestSuite(RuleExecutionSetTest.class); suite.addTestSuite(RuleExecutionSetDeregistrationExceptionTest.class); suite.addTestSuite(RuleTest.class); return suite;
|
public static Test suite() { System.setProperty( "jsr94.tck.configuration", "drools-jsr94/src/test/resources/org/drools/jsr94/tck"); TestSuite suite = new TestSuite( "JSR 94 Test Compatability Kit" ); suite.addTestSuite(ApiSignatureTest.class); suite.addTestSuite(ClassLoaderTest.class); suite.addTestSuite(ConfigurationExceptionTest.class); suite.addTestSuite(HandleTest.class); suite.addTestSuite(InvalidHandleExceptionTest.class); suite.addTestSuite(InvalidRuleSessionExceptionTest.class); suite.addTestSuite(ObjectFilterTest.class); suite.addTestSuite(RuleExceptionTest.class); suite.addTestSuite(RuleExecutionExceptionTest.class); suite.addTestSuite(RuleExecutionSetMetadataTest.class); suite.addTestSuite(RuleExecutionSetNotFoundExceptionTest.class); suite.addTestSuite(RuleRuntimeTest.class); suite.addTestSuite(RuleServiceProviderManagerTest.class); suite.addTestSuite(RuleServiceProviderTest.class); suite.addTestSuite(RuleSessionCreateExceptionTest.class); suite.addTestSuite(RuleSessionTest.class); suite.addTestSuite(RuleSessionTypeUnsupportedExceptionTest.class);// suite.addTestSuite(StatefulRuleSessionTest.class);// suite.addTestSuite(StatelessRuleSessionTest.class); suite.addTestSuite(LocalRuleExecutionSetProviderTest.class); suite.addTestSuite(RuleAdministrationExceptionTest.class); suite.addTestSuite(RuleAdministratorTest.class); suite.addTestSuite(RuleExecutionSetCreateExceptionTest.class);// suite.addTestSuite(RuleExecutionSetProviderTest.class); suite.addTestSuite(RuleExecutionSetRegisterExceptionTest.class); suite.addTestSuite(RuleExecutionSetTest.class); suite.addTestSuite(RuleExecutionSetDeregistrationExceptionTest.class); suite.addTestSuite(RuleTest.class); return suite; }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/c920dd99f983d69591e61b792fa30bcbff835e63/AllTests.java/buggy/drools-jsr94/src/test/java/org/jcp/jsr94/tck/AllTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
7766,
11371,
1435,
282,
288,
4202,
2332,
18,
542,
1396,
12,
6647,
315,
2924,
86,
11290,
18,
88,
363,
18,
7025,
3113,
315,
12215,
17,
2924,
86,
11290,
19,
4816,
19,
3813,
19,
4683,
19,
3341,
19,
12215,
19,
2924,
86,
11290,
19,
88,
363,
8863,
2868,
7766,
13587,
11371,
273,
394,
7766,
13587,
12,
315,
6479,
54,
31069,
7766,
5427,
270,
2967,
1475,
305,
6,
11272,
202,
282,
11371,
18,
1289,
4709,
13587,
12,
3064,
5374,
4709,
18,
1106,
1769,
202,
282,
11371,
18,
1289,
4709,
13587,
12,
7805,
4709,
18,
1106,
1769,
202,
282,
11371,
18,
1289,
4709,
13587,
12,
10737,
4709,
18,
1106,
1769,
202,
282,
11371,
18,
1289,
4709,
13587,
12,
3259,
4709,
18,
1106,
1769,
202,
282,
11371,
18,
1289,
4709,
13587,
12,
1941,
3259,
503,
4709,
18,
1106,
1769,
202,
282,
11371,
18,
1289,
4709,
13587,
12,
1941,
2175,
2157,
503,
4709,
18,
1106,
1769,
202,
282,
11371,
18,
1289,
4709,
13587,
12,
921,
1586,
4709,
18,
1106,
1769,
202,
282,
11371,
18,
1289,
4709,
13587,
12,
2175,
503,
4709,
18,
1106,
1769,
202,
282,
11371,
18,
1289,
4709,
13587,
12,
2175,
14576,
4709,
18,
1106,
1769,
202,
282,
11371,
18,
1289,
4709,
13587,
12,
2175,
3210,
694,
2277,
4709,
18,
1106,
1769,
202,
282,
11371,
18,
1289,
4709,
13587,
12,
2175,
3210,
694,
3990,
4709,
18,
1106,
1769,
202,
282,
11371,
18,
1289,
4709,
13587,
12,
2175,
5576,
4709,
18,
1106,
1769,
202,
282,
11371,
18,
1289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
7766,
11371,
1435,
282,
288,
4202,
2332,
18,
542,
1396,
12,
6647,
315,
2924,
86,
11290,
18,
88,
363,
18,
7025,
3113,
315,
12215,
17,
2924,
86,
11290,
19,
4816,
19,
3813,
19,
4683,
19,
3341,
19,
12215,
19,
2924,
86,
11290,
19,
88,
363,
8863,
2868,
7766,
13587,
11371,
273,
394,
7766,
13587,
12,
315,
6479,
54,
31069,
7766,
5427,
270,
2967,
1475,
305,
6,
11272,
202,
282,
11371,
18,
1289,
4709,
13587,
12,
3064,
5374,
4709,
18,
1106,
1769,
202,
282,
11371,
18,
1289,
4709,
13587,
12,
7805,
4709,
18,
1106,
1769,
202,
282,
11371,
18,
1289,
4709,
13587,
12,
10737,
4709,
18,
1106,
1769,
202,
282,
11371,
18,
1289,
4709,
13587,
12,
3259,
2
] |
String newValue = Boolean.toString(value);
|
String newValue = String.valueOf(value);
|
public void putBoolean(String key, boolean value) { checkRemoved(); if (key == null) throw new NullPointerException(); String oldValue = null; if (temporarySettings.containsKey(key)) oldValue = (String) temporarySettings.get(key); else oldValue = getOriginal().get(key, null); String newValue = Boolean.toString(value); temporarySettings.put(key, newValue); if (!newValue.equalsIgnoreCase(oldValue)) firePropertyChangeEvent(key, oldValue, newValue); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/528c62e810dd96140b435fd651b5ed05c662d4ec/WorkingCopyPreferences.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/preferences/WorkingCopyPreferences.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1378,
5507,
12,
780,
498,
16,
1250,
460,
13,
288,
202,
202,
1893,
10026,
5621,
202,
202,
430,
261,
856,
422,
446,
13,
1082,
202,
12849,
394,
10108,
5621,
202,
202,
780,
11144,
273,
446,
31,
202,
202,
430,
261,
31143,
2628,
18,
12298,
653,
12,
856,
3719,
1082,
202,
1673,
620,
273,
261,
780,
13,
6269,
2628,
18,
588,
12,
856,
1769,
202,
202,
12107,
1082,
202,
1673,
620,
273,
18354,
7675,
588,
12,
856,
16,
446,
1769,
202,
202,
780,
6129,
273,
3411,
18,
10492,
12,
1132,
1769,
202,
202,
31143,
2628,
18,
458,
12,
856,
16,
6129,
1769,
202,
202,
430,
16051,
2704,
620,
18,
14963,
5556,
12,
1673,
620,
3719,
1082,
202,
12179,
1396,
20930,
12,
856,
16,
11144,
16,
6129,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1378,
5507,
12,
780,
498,
16,
1250,
460,
13,
288,
202,
202,
1893,
10026,
5621,
202,
202,
430,
261,
856,
422,
446,
13,
1082,
202,
12849,
394,
10108,
5621,
202,
202,
780,
11144,
273,
446,
31,
202,
202,
430,
261,
31143,
2628,
18,
12298,
653,
12,
856,
3719,
1082,
202,
1673,
620,
273,
261,
780,
13,
6269,
2628,
18,
588,
12,
856,
1769,
202,
202,
12107,
1082,
202,
1673,
620,
273,
18354,
7675,
588,
12,
856,
16,
446,
1769,
202,
202,
780,
6129,
273,
3411,
18,
10492,
12,
1132,
1769,
202,
202,
31143,
2628,
18,
458,
12,
856,
16,
6129,
1769,
202,
202,
430,
16051,
2704,
620,
18,
14963,
5556,
12,
1673,
620,
3719,
1082,
2
] |
public MailboxStatus status (String mailbox, String[] statusNames)
|
public MailboxStatus status(String mailbox, String[] statusNames)
|
public MailboxStatus status (String mailbox, String[] statusNames) throws IOException { String tag = newTag (); StringBuffer buffer = new StringBuffer (STATUS) .append (' ') .append (quote (UTF7imap.encode (mailbox))) .append (' ') .append ('('); for (int i = 0; i < statusNames.length; i++) { if (i > 0) { buffer.append (' '); } buffer.append (statusNames[i]); } buffer.append (')'); sendCommand (tag, buffer.toString ()); MailboxStatus ms = new MailboxStatus (); while (true) { IMAPResponse response = readResponse (); String id = response.getID (); if (response.isUntagged ()) { if (id == STATUS) { List code = response.getResponseCode (); int last = (code == null) ? 0 : code.size () - 1; for (int i = 0; i < last; i += 2) { try { String statusName = ((String) code.get (i)).intern (); int value = Integer.parseInt ((String) code.get (i + 1)); if (statusName == MESSAGES) { ms.messageCount = value; } else if (statusName == RECENT) { ms.newMessageCount = value; } else if (statusName == UIDNEXT) { ms.uidNext = value; } else if (statusName == UIDVALIDITY) { ms.uidValidity = value; } else if (statusName == UNSEEN) { ms.firstUnreadMessage = value; } } catch (NumberFormatException e) { throw new IMAPException (id, "Invalid code: " + code); } } } else { asyncResponses.add (response); } } else if (tag.equals (response.getTag ())) { processAlerts (response); if (id == OK) { return ms; } else { throw new IMAPException (id, response.getText ()); } } else { throw new IMAPException (id, response.getText ()); } } }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/32651f721fa7044d71e84f6431a1ca18d965af13/IMAPConnection.java/buggy/libraries/javalib/gnu/inet/imap/IMAPConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
11542,
2147,
1482,
1267,
12,
780,
14187,
16,
514,
8526,
1267,
1557,
13,
565,
1216,
1860,
225,
288,
565,
514,
1047,
273,
394,
1805,
261,
1769,
565,
6674,
1613,
273,
394,
6674,
261,
8608,
13,
1377,
263,
6923,
7707,
8624,
1377,
263,
6923,
261,
6889,
261,
5159,
27,
12161,
18,
3015,
261,
4408,
2147,
20349,
1377,
263,
6923,
7707,
8624,
1377,
263,
6923,
7707,
2668,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1267,
1557,
18,
2469,
31,
277,
27245,
1377,
288,
3639,
309,
261,
77,
405,
374,
13,
1850,
288,
5411,
1613,
18,
6923,
7707,
28005,
1850,
289,
3639,
1613,
18,
6923,
261,
2327,
1557,
63,
77,
19226,
1377,
289,
565,
1613,
18,
6923,
7707,
2506,
1769,
565,
1366,
2189,
261,
2692,
16,
1613,
18,
10492,
1832,
1769,
565,
11542,
2147,
1482,
4086,
273,
394,
11542,
2147,
1482,
261,
1769,
565,
1323,
261,
3767,
13,
1377,
288,
3639,
6246,
2203,
1064,
766,
273,
26694,
261,
1769,
3639,
514,
612,
273,
766,
18,
588,
734,
261,
1769,
3639,
309,
261,
2740,
18,
291,
57,
496,
346,
2423,
1832,
13,
1850,
288,
5411,
309,
261,
350,
422,
7136,
13,
2868,
288,
7734,
987,
981,
273,
766,
18,
588,
1064,
1085,
261,
1769,
7734,
509,
1142,
273,
261,
710,
422,
446,
13,
692,
374,
294,
981,
18,
1467,
1832,
300,
404,
31,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1142,
31,
277,
1011,
576,
13,
5375,
288,
10792,
775,
8227,
288,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
11542,
2147,
1482,
1267,
12,
780,
14187,
16,
514,
8526,
1267,
1557,
13,
565,
1216,
1860,
225,
288,
565,
514,
1047,
273,
394,
1805,
261,
1769,
565,
6674,
1613,
273,
394,
6674,
261,
8608,
13,
1377,
263,
6923,
7707,
8624,
1377,
263,
6923,
261,
6889,
261,
5159,
27,
12161,
18,
3015,
261,
4408,
2147,
20349,
1377,
263,
6923,
7707,
8624,
1377,
263,
6923,
7707,
2668,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1267,
1557,
18,
2469,
31,
277,
27245,
1377,
288,
3639,
309,
261,
77,
405,
374,
13,
1850,
288,
5411,
1613,
18,
6923,
7707,
28005,
1850,
289,
3639,
1613,
18,
6923,
261,
2327,
1557,
63,
77,
19226,
1377,
289,
565,
1613,
18,
2
] |
additionalExceptions = NSArray.EmptyArray;
|
return NSArray.EmptyArray;
|
public NSArray additionalExceptions() { if (additionalExceptions == null) { additionalExceptions = super.additionalExceptions(); if (additionalExceptions == null) additionalExceptions = NSArray.EmptyArray; } return additionalExceptions; }
|
810 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/810/f78306fc16898f6c0502c6625520050d52c4c12f/ERXValidationException.java/buggy/Wonder/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXValidationException.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11472,
1076,
3312,
11416,
1435,
288,
3639,
309,
261,
13996,
11416,
422,
446,
13,
288,
5411,
3312,
11416,
273,
2240,
18,
13996,
11416,
5621,
5411,
309,
261,
13996,
11416,
422,
446,
13,
7734,
327,
11472,
1076,
18,
1921,
1076,
31,
3639,
289,
3639,
327,
3312,
11416,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11472,
1076,
3312,
11416,
1435,
288,
3639,
309,
261,
13996,
11416,
422,
446,
13,
288,
5411,
3312,
11416,
273,
2240,
18,
13996,
11416,
5621,
5411,
309,
261,
13996,
11416,
422,
446,
13,
7734,
327,
11472,
1076,
18,
1921,
1076,
31,
3639,
289,
3639,
327,
3312,
11416,
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
] |
public void modifier() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:109:9: ( ('private'|'public'|'protected'|'static'|'transient'|'final'|'abstract'|'native'|'threadsafe'|'synchronized'|'volatile'|'strictfp')) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:109:17: ('private'|'public'|'protected'|'static'|'transient'|'final'|'abstract'|'native'|'threadsafe'|'synchronized'|'volatile'|'strictfp') { if ( (input.LA(1)>=77 && input.LA(1)<=88) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_modifier288); throw mse; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/7e425814ce563fcc662b266adb2a4dc8e1a95d19/JavaParser.java/clean/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
9606,
1435,
1216,
9539,
288,
282,
775,
288,
759,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
22267,
30,
29,
30,
261,
7707,
1152,
11,
16637,
482,
11,
16637,
1117,
11,
16637,
3845,
11,
16637,
22670,
11,
16637,
6385,
11,
16637,
17801,
11,
16637,
13635,
11,
16637,
5930,
4626,
11,
16637,
22043,
11,
16637,
15416,
20295,
11,
16637,
13948,
7944,
26112,
759,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
22267,
30,
4033,
30,
7707,
1152,
11,
16637,
482,
11,
16637,
1117,
11,
16637,
3845,
11,
16637,
22670,
11,
16637,
6385,
11,
16637,
17801,
11,
16637,
13635,
11,
16637,
5930,
4626,
11,
16637,
22043,
11,
16637,
15416,
20295,
11,
16637,
13948,
7944,
6134,
95,
430,
261,
261,
2630,
18,
2534,
12,
21,
13,
34,
33,
4700,
597,
810,
18,
2534,
12,
21,
13,
32,
33,
5482,
13,
262,
288,
2630,
18,
21224,
5621,
1636,
11548,
33,
5743,
31,
97,
12107,
288,
11729,
11073,
24582,
18689,
273,
2704,
28102,
12,
2011,
16,
2630,
1769,
266,
3165,
1265,
11729,
11073,
694,
12,
2630,
16,
81,
307,
16,
29890,
67,
542,
67,
267,
67,
20597,
22,
5482,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
9606,
1435,
1216,
9539,
288,
282,
775,
288,
759,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
22267,
30,
29,
30,
261,
7707,
1152,
11,
16637,
482,
11,
16637,
1117,
11,
16637,
3845,
11,
16637,
22670,
11,
16637,
6385,
11,
16637,
17801,
11,
16637,
13635,
11,
16637,
5930,
4626,
11,
16637,
22043,
11,
16637,
15416,
20295,
11,
16637,
13948,
7944,
26112,
759,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
2
] |
||
private final void touchBlock(int i, int value) { hashes[i] = (hashes[i] + (value<<1)) | 1; }
|
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/e87b31606f688d97d1580bcab4c7589a7d24935d/CompactByteArray.java/clean/icu4j/src/com/ibm/icu/util/CompactByteArray.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6385,
6459,
14084,
1768,
12,
474,
77,
16,
474,
1132,
15329,
17612,
63,
77,
65,
28657,
17612,
63,
77,
3737,
12,
1132,
17685,
21,
3719,
96,
21,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6385,
6459,
14084,
1768,
12,
474,
77,
16,
474,
1132,
15329,
17612,
63,
77,
65,
28657,
17612,
63,
77,
3737,
12,
1132,
17685,
21,
3719,
96,
21,
31,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.